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

webpack-dynamic-hash

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

webpack-dynamic-hash - npm Package Compare versions

Comparing version 1.0.7 to 1.0.8

33

index.js

@@ -73,17 +73,20 @@ /**

getAppHash(app);
fs.exists(path.join(__dirname, 'build/js/' + init + '.js'), function(result) {
if (!result) {
fs.rename('build/js/' + init + initHash + '.js', 'build/js/' + init + '.js', function (err) {
if (err) {
console.log(err);
} else {
changeFile('build/js/' + init + '.js');
}
})
} else {
changeFile('build/js/' + init + '.js');
}
})
setTimeout(function () {
fs.exists(path.join(__dirname, 'build/js/' + init + initHash + '.js'), function(result) {
if (result) {
fs.rename('build/js/' + init + initHash + '.js', 'build/js/' + init + '.js', function (err) {
if (err) {
console.log(err);
} else {
changeFile('build/js/' + init + '.js');
}
})
} else {
changeFile('build/js/' + init + '.js');
}
})
}, 20 );
}
};
fs.exists(path.join(__dirname, 'build'), function(result) {

@@ -101,5 +104,5 @@ compiler.plugin('done', function (stats) {

} catch (e) {
console.log(e);
}

@@ -106,0 +109,0 @@ };

{
"name": "webpack-dynamic-hash",
"version": "1.0.7",
"version": "1.0.8",
"main": "index.js",

@@ -5,0 +5,0 @@ "scripts": {

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