Comparing version 1.2.3 to 1.2.4
@@ -5,3 +5,3 @@ { | ||
"homepage": "https://github.com/microlinkhq/tinyspawn", | ||
"version": "1.2.3", | ||
"version": "1.2.4", | ||
"main": "src/index.js", | ||
@@ -8,0 +8,0 @@ "author": { |
@@ -8,4 +8,4 @@ <div align="center"> | ||
![Last version](https://img.shields.io/github/tag/microlinkhq.svg?style=flat-square) | ||
[![Coverage Status](https://img.shields.io/coveralls/microlinkhq.svg?style=flat-square)](https://coveralls.io/github/microlinkhq) | ||
![Last version](https://img.shields.io/github/tag/microlinkhq/tinyspawn.svg?style=flat-square) | ||
[![Coverage Status](https://img.shields.io/coveralls/microlinkhq/tinyspawn.svg?style=flat-square)](https://coveralls.io/github/microlinkhq/tinyspawn) | ||
[![NPM Status](https://img.shields.io/npm/dm/tinyspawn.svg?style=flat-square)](https://www.npmjs.org/package/tinyspawn) | ||
@@ -12,0 +12,0 @@ |
@@ -6,3 +6,3 @@ 'use strict' | ||
const EVENT_EMITTER_PROPS = Object.getOwnPropertyNames(require('events').EventEmitter.prototype).filter(name => !name.startsWith('_')) | ||
const EE_PROPS = Object.getOwnPropertyNames(require('events').EventEmitter.prototype).filter(name => !name.startsWith('_')) | ||
@@ -49,3 +49,3 @@ const eos = (stream, listener, buffer = []) => stream[listener].on('data', data => buffer.push(data)) && buffer | ||
const subprocess = Object.assign(promise, childProcess) | ||
EVENT_EMITTER_PROPS.forEach(name => (subprocess[name] = childProcess[name].bind(childProcess))) | ||
if (childProcess) EE_PROPS.forEach(name => (subprocess[name] = childProcess[name].bind(childProcess))) | ||
return subprocess | ||
@@ -52,0 +52,0 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11251