webpack-subresource-integrity
Advanced tools
Comparing version 1.0.1 to 1.0.2
13
index.js
@@ -58,9 +58,8 @@ var crypto = require('crypto'); | ||
source, | ||
'var sriHashes = {', | ||
this.indent( | ||
Object.keys(allDepChunkIds).map(function mapChunkId(chunkId) { | ||
return chunkId + ':"' + makePlaceholder(chunkId) + '"'; | ||
}).join(',\n') | ||
), | ||
'};' | ||
'var sriHashes = ' + JSON.stringify( | ||
Object.keys(allDepChunkIds).reduce(function chunkIdReducer(sriHashes, chunkId) { | ||
sriHashes[chunkId] = makePlaceholder(chunkId); // eslint-disable-line no-param-reassign | ||
return sriHashes; | ||
}, {}) | ||
) + ';' | ||
]); | ||
@@ -67,0 +66,0 @@ } |
{ | ||
"name": "webpack-subresource-integrity", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Webpack plugin for enabling Subresource Integrity", | ||
@@ -5,0 +5,0 @@ "engines": { |
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
21871
296