Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

webpack-version-plugin

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

webpack-version-plugin - npm Package Compare versions

Comparing version 2.0.1 to 2.0.2

2

package.json
{
"name": "webpack-version-plugin",
"version": "2.0.1",
"version": "2.0.2",
"description": "webpack-version-plugin",

@@ -5,0 +5,0 @@ "main": "src/index.js",

@@ -76,2 +76,6 @@ # webpack-version-plugin

## Changelog
- 2021-06-01
Ignore Dynamic module.
- 2018-04-16

@@ -78,0 +82,0 @@

function WebpackVersionPlugin(opts) {
if (typeof opts.cb !== 'function') {
throw new Error('You must set the cb option');
throw new TypeError('You must set the cb function');
}

@@ -17,7 +17,9 @@ this.opts = opts;

compilation.chunks.forEach(function (item) {
hashMap[item.name] = {
chunkHash: item.hash,
files: item.files,
// contentHash: item.contentHash
};
if (!item.name) {
hashMap[item.name] = {
chunkHash: item.hash,
files: item.files,
// contentHash: item.contentHash
};
}
});

@@ -24,0 +26,0 @@

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