@travetto/base
Advanced tools
Comparing version 0.0.98 to 0.0.99
@@ -28,3 +28,4 @@ #!/usr/bin/env node | ||
const stat = LOADED[rel] = fs.statSync(rel); | ||
if (stat.ctimeMs < fs.statSync(full).ctimeMs) { | ||
const fullStat = fs.statSync(full); | ||
if (stat.ctimeMs < fullStat.ctimeMs || stat.mtimeMs < fullStat.mtimeMs || stat.atime < fullStat.mtime) { | ||
fs.unlinkSync(rel); | ||
@@ -31,0 +32,0 @@ delete LOADED[rel]; |
@@ -21,4 +21,6 @@ { | ||
}, | ||
"scripts": {}, | ||
"version": "0.0.98" | ||
"scripts": { | ||
"postinstall": "./support/clean-build.js" | ||
}, | ||
"version": "0.0.99" | ||
} |
Install scripts
Supply chain riskInstall scripts are run when the package is installed. The majority of malware in npm is hidden in install scripts.
Found 1 instance in 1 package
32974
24
979
1