@npmcli/run-script
Advanced tools
Comparing version 4.1.2 to 4.1.3
@@ -39,5 +39,5 @@ 'use strict' | ||
// and finally, prefix shell meta chars with a ^ | ||
result = result.replace(/[!^&()<>|"]/g, '^$&') | ||
result = result.replace(/[ !^&()<>|"]/g, '^$&') | ||
if (doubleEscape) { | ||
result = result.replace(/[!^&()<>|"]/g, '^$&') | ||
result = result.replace(/[ !^&()<>|"]/g, '^$&') | ||
} | ||
@@ -44,0 +44,0 @@ |
@@ -86,3 +86,5 @@ /* eslint camelcase: "off" */ | ||
} | ||
const spawnArgs = isCmd ? ['/d', '/s', '/c', scriptFile] : ['-c', scriptFile] | ||
const spawnArgs = isCmd | ||
? ['/d', '/s', '/c', escape.cmd(scriptFile)] | ||
: ['-c', escape.sh(scriptFile)] | ||
@@ -89,0 +91,0 @@ const spawnOpts = { |
{ | ||
"name": "@npmcli/run-script", | ||
"version": "4.1.2", | ||
"version": "4.1.3", | ||
"description": "Run a lifecycle script for a package (descendant of npm-lifecycle)", | ||
@@ -5,0 +5,0 @@ "author": "GitHub Inc.", |
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
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
20994
404