Comparing version 3.0.2 to 3.0.3
'use strict'; | ||
const fs = require('fs'); | ||
const zlib = require('zlib'); | ||
@@ -31,10 +32,7 @@ const assert = require('assert'); | ||
const write = streams.pop(); | ||
const isGunzip = allStreams.some((write) => { | ||
return write instanceof zlib.Gunzip | ||
}); | ||
const isGunzip = allStreams.some((write) => write instanceof zlib.Gunzip); | ||
const isGzip = allStreams.some((write) => write instanceof zlib.Gzip); | ||
const isFsWriteStream = allStreams.some((write) => write instanceof fs.WriteStream); | ||
const isGzip = allStreams.some((write) => { | ||
return write instanceof zlib.Gzip | ||
}); | ||
const rm = (event, stream, fn) => { | ||
@@ -116,2 +114,5 @@ stream.removeListener(event, fn); | ||
if (readError && !isFsWriteStream) | ||
return onEnd(); | ||
if (bothFinish || justEnd) | ||
@@ -118,0 +119,0 @@ return onEnd(); |
{ | ||
"name": "pipe-io", | ||
"version": "3.0.2", | ||
"version": "3.0.3", | ||
"author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)", | ||
@@ -35,2 +35,3 @@ "description": "Pipe streams and handle events", | ||
"eslint-plugin-node": "^6.0.1", | ||
"gunzip-maybe": "^1.4.1", | ||
"nodemon": "^1.11.0", | ||
@@ -41,4 +42,5 @@ "nyc": "^11.0.2", | ||
"tape": "^4.2.0", | ||
"tar-fs": "^1.14.0" | ||
"tar-fs": "^1.14.0", | ||
"try-to-catch": "^1.0.2" | ||
} | ||
} |
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
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
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
12320
11
1