Socket
Socket
Sign inDemoInstall

compress-commons

Package Overview
Dependencies
Maintainers
1
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

compress-commons - npm Package Compare versions

Comparing version 6.0.1 to 6.0.2

3

lib/archivers/archive-output-stream.js

@@ -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"

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