We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0929b26 commit d084c45Copy full SHA for d084c45
.gitignore
@@ -4,3 +4,4 @@
4
node_modules
5
coverage
6
.nyc_output
7
+package-lock.json
index.js
@@ -26,7 +26,7 @@ module.exports = function(opts) {
26
try {
27
const val = String((manifest[str] && manifest[str][prop]) || str);
28
if (prop === 'path') return opts.prepend + val;
29
- if (prop === 'integrity') val !== str ? val : false;
+ if (prop === 'integrity') return val === str ? false : val;
30
output = PROD ? val : false;
31
} catch (err) {}
32
0 commit comments