compress-commons
Advanced tools
Comparing version 6.0.1 to 6.0.2
@@ -9,2 +9,3 @@ /** | ||
var inherits = require('util').inherits; | ||
var isStream = require('is-stream'); | ||
var Transform = require('readable-stream').Transform; | ||
@@ -88,3 +89,3 @@ | ||
this._appendBuffer(ae, source, callback); | ||
} else if (util.isStream(source)) { | ||
} else if (isStream(source)) { | ||
this._appendStream(ae, source, callback); | ||
@@ -91,0 +92,0 @@ } else { |
@@ -10,9 +10,6 @@ /** | ||
var PassThrough = require('readable-stream').PassThrough; | ||
var isStream = require('is-stream'); | ||
var util = module.exports = {}; | ||
util.isStream = function(source) { | ||
return source instanceof Stream; | ||
}; | ||
util.normalizeInputSource = function(source) { | ||
@@ -23,3 +20,3 @@ if (source === null) { | ||
return Buffer.from(source); | ||
} else if (util.isStream(source) && !source._readableState) { | ||
} else if (isStream(source) && !source._readableState) { | ||
var normalized = new PassThrough(); | ||
@@ -26,0 +23,0 @@ source.pipe(normalized); |
{ | ||
"name": "compress-commons", | ||
"version": "6.0.1", | ||
"version": "6.0.2", | ||
"description": "a library that defines a common interface for working with archive formats within node", | ||
@@ -31,2 +31,3 @@ "homepage": "https://github.com/archiverjs/node-compress-commons", | ||
"crc32-stream": "^6.0.0", | ||
"is-stream": "^2.0.1", | ||
"normalize-path": "^3.0.0", | ||
@@ -33,0 +34,0 @@ "readable-stream": "^4.0.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
35726
5
1068
+ Addedis-stream@^2.0.1
+ Addedis-stream@2.0.1(transitive)