webpack-subresource-integrity
Advanced tools
Comparing version 0.3.1 to 0.3.2
11
index.js
@@ -131,7 +131,10 @@ var crypto = require('crypto'); | ||
Object.values(assets).forEach(function forEachAsset(asset) { | ||
if (!asset.integrity) { | ||
asset.integrity = computeIntegrity(asset.source()); | ||
for (var key in assets) { | ||
if (assets.hasOwnProperty(key)) { | ||
var asset = assets[key]; | ||
if (!asset.integrity) { | ||
asset.integrity = computeIntegrity(asset.source()); | ||
} | ||
} | ||
}); | ||
} | ||
@@ -138,0 +141,0 @@ callback(); |
{ | ||
"name": "webpack-subresource-integrity", | ||
"version": "0.3.1", | ||
"version": "0.3.2", | ||
"description": "Webpack plugin for ensuring subresource integrity", | ||
@@ -5,0 +5,0 @@ "main": "index", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9234
124