Skip to content

Commit 7900338

Browse files
committed
fix: no integrity
1 parent ab990cc commit 7900338

File tree

4 files changed

+6
-11134
lines changed

4 files changed

+6
-11134
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@
44
node_modules
55
coverage
66
.nyc_output
7+
package-lock.json

index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ module.exports = function(opts) {
2626
try {
2727
const val = String((manifest[str] && manifest[str][prop]) || str);
2828
if (prop === 'path') return opts.prepend + val;
29+
if (prop === 'integrity') return val === str ? false : val;
2930
output = PROD ? val : false;
3031
} catch (err) {}
3132

0 commit comments

Comments
 (0)