Socket
Socket
Sign inDemoInstall

shelljs

Package Overview
Dependencies
23
Maintainers
3
Versions
53
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.8.0 to 0.8.1

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc