Socket
Socket
Sign inDemoInstall

gulp-shell

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-shell - npm Package Compare versions

Comparing version 0.2.9 to 0.2.10

22

index.js

@@ -19,2 +19,5 @@ var _ = require('lodash')

var pathToBin = path.join(process.cwd(), 'node_modules/.bin')
var PATH = pathToBin + path.delimiter + process.env.PATH
options = _.extend({

@@ -24,9 +27,6 @@ ignoreErrors: false,

cwd: process.cwd(),
env: _.defaults({PATH: PATH}, process.env),
maxBuffer: 16 * 1024 * 1024
}, options)
var pathToBin = path.join(process.cwd(), 'node_modules/.bin')
var PATH = pathToBin + path.delimiter + process.env.PATH
var env = _.defaults({PATH: PATH}, process.env)
var stream = through.obj(function (file, unused, done) {

@@ -40,9 +40,14 @@ var self = this

var child = exec(command, {
env: env,
env: options.env,
cwd: options.cwd,
maxBuffer: options.maxBuffer
}, function (error) {
}, function (error, stdout, stderr) {
process.stdin.unpipe(child.stdin)
process.stdin.pause()
if (error && !options.ignoreErrors) {
error.stdout = stdout
error.stderr = stderr
}
done(options.ignoreErrors ? null : error)

@@ -60,3 +65,6 @@ })

if (error) {
self.emit('error', new gutil.PluginError(PLUGIN_NAME, error))
self.emit('error', new gutil.PluginError(PLUGIN_NAME, error, {
stdout: error.stdout,
stderr: error.stderr
}))
} else {

@@ -63,0 +71,0 @@ self.push(file)

{
"name": "gulp-shell",
"version": "0.2.9",
"version": "0.2.10",
"description": "A handy command line interface for gulp",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -57,4 +57,2 @@ # gulp-shell

Note: All the commands will be executed in an environment where `PATH` prepended by `./node_modules/.bin`, allowing you to run executables in your Node's dependencies.
You can find more examples in the [gulpfile][] of this project.

@@ -114,1 +112,7 @@

You won't need to set this option unless you encounter a "stdout maxBuffer exceeded" error.
#### options.env
type: `Object`
default: [`process.env`](http://nodejs.org/api/process.html#process_process_env) with `PATH` prepended by `./node_modules/.bin`, allowing you to run executables in your Node's dependencies.
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