shelljs
Advanced tools
Comparing version 0.8.0 to 0.8.1
{ | ||
"name": "shelljs", | ||
"version": "0.8.0", | ||
"version": "0.8.1", | ||
"description": "Portable Unix shell commands for Node.js", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -8,4 +8,7 @@ if (require.main !== module) { | ||
var params = JSON.parse(process.argv[2]); | ||
var paramFilePath = process.argv[2]; | ||
var serializedParams = fs.readFileSync(paramFilePath, 'utf8'); | ||
var params = JSON.parse(serializedParams); | ||
var cmd = params.command; | ||
@@ -12,0 +15,0 @@ var execOptions = params.execOptions; |
@@ -24,2 +24,3 @@ var common = require('./common'); | ||
var tempDir = _tempDir(); | ||
var paramsFile = path.resolve(tempDir + '/' + common.randomFileName()); | ||
var stderrFile = path.resolve(tempDir + '/' + common.randomFileName()); | ||
@@ -36,2 +37,3 @@ var stdoutFile = path.resolve(tempDir + '/' + common.randomFileName()); | ||
if (fs.existsSync(paramsFile)) common.unlinkSync(paramsFile); | ||
if (fs.existsSync(stderrFile)) common.unlinkSync(stderrFile); | ||
@@ -50,5 +52,7 @@ if (fs.existsSync(stdoutFile)) common.unlinkSync(stdoutFile); | ||
fs.writeFileSync(paramsFile, JSON.stringify(paramsToSerialize), 'utf8'); | ||
var execArgs = [ | ||
path.join(__dirname, 'exec-child.js'), | ||
JSON.stringify(paramsToSerialize), | ||
paramsFile, | ||
]; | ||
@@ -90,2 +94,3 @@ | ||
// No biggie if we can't erase the files now -- they're in a temp dir anyway | ||
try { common.unlinkSync(paramsFile); } catch (e) {} | ||
try { common.unlinkSync(stderrFile); } catch (e) {} | ||
@@ -92,0 +97,0 @@ try { common.unlinkSync(stdoutFile); } catch (e) {} |
Sorry, the diff of this file is too big to display
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 4 instances in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
202952
3153
40