Comparing version 1.1.8 to 1.1.9
(function () { | ||
'use strict'; | ||
var fs = require('fs'), | ||
exec = require('execon'), | ||
assert = require('assert'); | ||
var assert = require('assert'); | ||
@@ -25,7 +23,2 @@ module.exports = all; | ||
function all(streams, options, callback) { | ||
var n, write, isFSWrite; | ||
assert(streams, 'could not be empty!'); | ||
assert(options, 'could not be empty!'); | ||
if (!callback) { | ||
@@ -39,12 +32,6 @@ callback = options; | ||
n = streams.length - 1; | ||
write = streams[n]; | ||
isFSWrite = write instanceof fs.WriteStream; | ||
assert(streams, 'streams could not be empty!'); | ||
assert(options, 'callback could not be empty!'); | ||
exec.if(!isFSWrite, function() { | ||
pipe(streams, options, callback); | ||
}, function(fn) { | ||
write.once('open', fn); | ||
on('error', write, callback); | ||
}); | ||
pipe(streams, options, callback); | ||
} | ||
@@ -51,0 +38,0 @@ |
{ | ||
"name": "pipe-io", | ||
"version": "1.1.8", | ||
"version": "1.1.9", | ||
"author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)", | ||
@@ -11,5 +11,3 @@ "description": "Pipe streams and handle events", | ||
}, | ||
"dependencies": { | ||
"execon": "~1.1.0" | ||
}, | ||
"dependencies": {}, | ||
"license": "MIT", | ||
@@ -16,0 +14,0 @@ "engines": { |
Sorry, the diff of this file is not supported yet
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
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
0
0
5352
63
- Removedexecon@~1.1.0
- Removedexecon@1.1.1(transitive)