Socket
Socket
Sign inDemoInstall

webpack-subresource-integrity

Package Overview
Dependencies
Maintainers
1
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

webpack-subresource-integrity - npm Package Compare versions

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": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc