Socket
Socket
Sign inDemoInstall

zip-stream

Package Overview
Dependencies
Maintainers
1
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

zip-stream - npm Package Compare versions

Comparing version 0.1.4 to 0.2.0

25

lib/zip-stream.js

@@ -24,3 +24,4 @@ /**

comment: '',
forceUTC: false
forceUTC: false,
store: false
});

@@ -39,2 +40,6 @@

if (options.zlib.level === 0) {
options.store = true;
}
Transform.call(this, options);

@@ -74,3 +79,3 @@

callback(null);
callback(null, file);
}

@@ -88,3 +93,5 @@

var processStream = self._newProcessStream(file.store);
processStream.once('error', callback);
processStream.once('error', function(err) {
callback(err, file);
});

@@ -118,7 +125,9 @@ processStream.once('end', function() {

callback(null);
callback(null, file);
}
var processStream = self._newProcessStream(file.store);
processStream.once('error', callback);
processStream.once('error', function(err) {
callback(err, file);
});

@@ -161,3 +170,3 @@ processStream.once('end', function() {

date: null,
store: false,
store: this.options.store,
comment: ''

@@ -174,6 +183,2 @@ });

if (this.options.zlib && this.options.zlib.level === 0) {
data.store = true;
}
data.flags = (1 << 3);

@@ -180,0 +185,0 @@ data.compressionMethod = data.store ? 0 : 8;

2

package.json
{
"name": "zip-stream",
"version": "0.1.4",
"version": "0.2.0",
"description": "a streaming zip generator.",

@@ -5,0 +5,0 @@ "homepage": "https://github.com/ctalkington/node-zip-stream",

@@ -1,2 +0,2 @@

# zip-stream v0.1.4 [![Build Status](https://secure.travis-ci.org/ctalkington/node-zip-stream.png?branch=master)](http://travis-ci.org/ctalkington/node-zip-stream)
# zip-stream v0.2.0 [![Build Status](https://secure.travis-ci.org/ctalkington/node-zip-stream.png?branch=master)](http://travis-ci.org/ctalkington/node-zip-stream)

@@ -30,3 +30,3 @@ zip-stream is a streaming zip generator. It was built to be a successor to [zipstream](https://npmjs.org/package/zipstream). Dependencies are kept to a minimum through the use of many of node's built-in modules including the use of zlib module for compression.

archive.entry('string contents', { name: 'string.txt' }, function(err) {
archive.entry('string contents', { name: 'string.txt' }, function(err, file) {
if (err) throw err;

@@ -40,3 +40,3 @@

#### entry(input, data, callback(err))
#### entry(input, data, callback(err, file))

@@ -59,2 +59,6 @@ Appends an input source (text string, buffer, or stream) to the instance. When the instance has received, processed, and emitted the input, the callback is fired.

#### store `boolean`
If true, all entry contents will be archived without compression by default.
#### zlib `object`

@@ -80,3 +84,3 @@

If true, entry contents will be stored without compression.
If true, entry contents will be archived without compression.

@@ -83,0 +87,0 @@ #### comment `string`

Sorry, the diff of this file is not supported yet

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