spawn-wrap
Advanced tools
Comparing version 1.3.5 to 1.3.6
@@ -187,2 +187,3 @@ module.exports = wrap | ||
var hasMain = false | ||
var mainIndex = 1 | ||
for (var a = 1; !hasMain && a < options.args.length; a++) { | ||
@@ -210,2 +211,3 @@ switch (options.args[a]) { | ||
hasMain = true | ||
mainIndex = a | ||
a = options.args.length | ||
@@ -219,3 +221,3 @@ break | ||
var replace = workingDir + '/' + command | ||
options.args.splice(1, 0, replace) | ||
options.args.splice(mainIndex, 0, replace) | ||
} | ||
@@ -222,0 +224,0 @@ |
{ | ||
"name": "spawn-wrap", | ||
"version": "1.3.5", | ||
"version": "1.3.6", | ||
"description": "Wrap all spawned Node.js child processes by adding environs and arguments ahead of the main JavaScript file argument.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
22863
533