webpack-dynamic-hash
Advanced tools
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": { |
AI-detected possible typosquat
Supply chain riskAI has identified this package as a potential typosquat of a more popular package. This suggests that the package may be intentionally mimicking another package's name, description, or other metadata.
Found 1 instance in 1 package
4812
100
0