Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

executive

Package Overview
Dependencies
Maintainers
1
Versions
86
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

executive - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

22

lib/execSync.js
// Generated by CoffeeScript 1.10.0
var error, parse, spawnSync;
var logError, parse, spawnSync;

@@ -8,6 +8,6 @@ spawnSync = require('child_process').spawnSync;

error = require('./utils').error;
logError = (require('./utils')).error;
module.exports = function(cmd, opts, cb) {
var args, output, pid, ref, ref1, signal, status, stderr, stdout;
var args, error, output, pid, ref, ref1, signal, status, stderr, stdout;
ref = parse(cmd, opts), cmd = ref[0], args = ref[1], opts = ref[2];

@@ -20,13 +20,15 @@ opts.stdio = [0, 'pipe', 'pipe'];

}
if (typeof err !== "undefined" && err !== null) {
if (typeof err !== "undefined" && err !== null) {
error(err);
if (error != null) {
error.code = status;
error.signal = signal;
error.pid = pid;
error.stdout = stdout;
error.stderr = stderr;
if (error != null) {
logError(error);
}
err.code = status;
err.signal = signal;
err.pid = pid;
}
return cb(err, stdout, stderr);
return cb(error, stdout, stderr);
};
//# sourceMappingURL=execSync.js.map

@@ -13,3 +13,3 @@ // Generated by CoffeeScript 1.10.0

module.exports = function(cmds, opts, cb) {
var executor, flow, ref2;
var err, executor, flow, out, ref2;
if (isString(cmds)) {

@@ -38,2 +38,17 @@ cmds = cmds.split('\n');

}
if (opts.sync) {
out = '';
err = '';
flow(executor, cmds, opts, function(err, stdout, stderr) {
if (err != null) {
throw err;
}
out = stdout;
return err = stderr;
});
return {
stdout: out,
stderr: err
};
}
return new Promise(function(resolve, reject) {

@@ -40,0 +55,0 @@ return flow(executor, cmds, opts, function(err, stdout, stderr) {

{
"name": "executive",
"version": "1.0.0",
"version": "1.0.1",
"description": "Elegant command execution.",

@@ -5,0 +5,0 @@ "main": "lib/",

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc