amphtml-validator
Advanced tools
Comparing version 1.0.19 to 1.0.20
{ | ||
"name": "amphtml-validator", | ||
"version": "1.0.19", | ||
"version": "1.0.20", | ||
"description": "Official validator for AMP HTML (www.ampproject.org)", | ||
@@ -27,4 +27,4 @@ "keywords": ["AMP", "validator", "validate", "AMP HTML", "Accelerated Mobile Pages"], | ||
"scripts": { | ||
"postinstall": "/bin/sh -c \"exit 0\" 2> NUL && rm NUL || node postinstall-windows.js" | ||
"postinstall": "/bin/sh -c \"exit 0\" 2> postinstall.DELETEME && rm postinstall.DELETEME || node postinstall-windows.js" | ||
} | ||
} |
@@ -23,2 +23,10 @@ /** | ||
// The postinstall invocation in package.json creates this temp file and on | ||
// Windows installations, it won't delete it. We used to redirect to NUL | ||
// but that doesn't work in Linux if the underlying filesystem is SMB | ||
// (since in Windows NUL is special). So now we clean it up best-effort here. | ||
if (fs.existsSync('postinstall.DELETEME')) { | ||
fs.unlinkSync('postinstall.DELETEME'); | ||
} | ||
if (process.env.OS !== 'Windows_NT') { | ||
@@ -25,0 +33,0 @@ console./*OK*/ error( |
@@ -82,1 +82,4 @@ # amphtml-validator Node.js Package | ||
* Set correct process exit status for old versions of Node.js (v0.10.25). | ||
### 1.0.20 | ||
* Better npm post-install for virtual machines, running debian over windows with SMB shared folder |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
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
35979
795
85