New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

runscript

Package Overview
Dependencies
Maintainers
3
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

runscript - npm Package Compare versions

Comparing version 1.2.0 to 1.2.1

LICENSE.txt

5

History.md
1.2.1 / 2017-02-22
==================
* fix: exit code < 0 as error too (#3)
1.2.0 / 2017-02-04

@@ -3,0 +8,0 @@ ==================

16

index.js

@@ -1,15 +0,3 @@

/**
* Copyright(c) node-modules and other contributors.
* MIT Licensed
*
* Authors:
* fengmk2 <m@fengmk2.com> (http://fengmk2.com)
*/
'use strict';
/**
* Module dependencies.
*/
const is = require('is-type-of');

@@ -45,3 +33,3 @@ const assert = require('assert');

const proc = spawn(sh, [shFlag, script], options);
const proc = spawn(sh, [ shFlag, script ], options);
const stdout = [];

@@ -77,3 +65,3 @@ const stderr = [];

}
if (code > 0) {
if (code !== 0) {
const err = new Error(`Run "${sh} ${shFlag} ${script}" error, exit code ${code}`);

@@ -80,0 +68,0 @@ err.stdio = stdio;

{
"name": "runscript",
"version": "1.2.0",
"version": "1.2.1",
"description": "Run script easy!",

@@ -10,7 +10,7 @@ "main": "index.js",

"scripts": {
"test": "npm run lint && mocha -t 5000 test/*.test.js",
"test-cov": "istanbul cover _mocha -- -t 5000 test/*.test.js",
"test": "npm run lint && egg-bin test",
"test-cov": "egg-bin cov",
"lint": "eslint index.js test",
"ci": "npm run lint && npm run test-cov",
"autod": "autod -w --prefix '~'"
"autod": "autod -w --prefix '^'"
},

@@ -22,6 +22,6 @@ "dependencies": {

"autod": "*",
"eslint": "1",
"eslint-config-egg": "1",
"istanbul": "*",
"mocha": "*"
"egg-bin": "^2.2.1",
"egg-ci": "^1.1.0",
"eslint": "3",
"eslint-config-egg": "3"
},

@@ -46,4 +46,7 @@ "homepage": "https://github.com/node-modules/runscript",

},
"ci": {
"version": "4, 6, 7"
},
"author": "fengmk2 <m@fengmk2.com> (http://fengmk2.com)",
"license": "MIT"
}

@@ -38,8 +38,8 @@ runscript

runScript('node -v', { stdio: 'pipe' })
.then(stdio => {
console.log(stdio);
})
.catch(err => {
console.error(err);
});
.then(stdio => {
console.log(stdio);
})
.catch(err => {
console.error(err);
});
```

@@ -49,2 +49,2 @@

[MIT](LICENSE)
[MIT](LICENSE.txt)
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