Comparing version 1.5.1 to 1.5.2
@@ -1340,4 +1340,4 @@ 'use strict'; | ||
var parse$$1; | ||
var parseEnv; | ||
var parseObject; | ||
var parseShell; | ||
var parseString; | ||
@@ -1368,22 +1368,22 @@ var shellRequired; | ||
parseEnv = function(s) { | ||
var args, cmd, env, k, ref, v; | ||
env = {}; | ||
args = s.split(' '); | ||
while (cmd = args.shift()) { | ||
if ((cmd.indexOf('=')) === -1) { | ||
break; | ||
} | ||
parseShell = function(s, env) { | ||
var args, cmd, foundEnv, k, ref, v; | ||
args = index.parse(s, env); | ||
cmd = args.shift(); | ||
while (~cmd.indexOf('=')) { | ||
foundEnv = true; | ||
ref = cmd.split('=', 2), k = ref[0], v = ref[1]; | ||
env[k] = v; | ||
cmd = args.shift(); | ||
} | ||
return env; | ||
if (foundEnv) { | ||
return parseShell(s, env); | ||
} | ||
return [cmd, args, env]; | ||
}; | ||
parseString = function(s, opts) { | ||
var args, cmd, env; | ||
env = Object.assign({}, process.env, opts.env, parseEnv(s)); | ||
args = index.parse(s, env); | ||
cmd = args.shift(); | ||
return [cmd, args, env]; | ||
var args, cmd, env, ref; | ||
env = Object.assign({}, process.env, opts.env); | ||
return ref = parseShell(s, env), cmd = ref[0], args = ref[1], env = ref[2], ref; | ||
}; | ||
@@ -1390,0 +1390,0 @@ |
{ | ||
"name": "executive", | ||
"version": "1.5.1", | ||
"version": "1.5.2", | ||
"description": "Elegant command execution with built-in control flow", | ||
@@ -5,0 +5,0 @@ "main": "lib/executive.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
316788