zip-stream
Advanced tools
Comparing version 0.3.0 to 0.3.1
@@ -82,2 +82,7 @@ /** | ||
if (source.length === 0) { | ||
data.store = true; | ||
data.compressionMethod = 0; | ||
} | ||
self.write(headers.encode('file', data)); | ||
@@ -93,3 +98,3 @@ | ||
if (data.store || source.length === 0) { | ||
if (data.store) { | ||
data.uncompressedSize = source.length; | ||
@@ -96,0 +101,0 @@ data.compressedSize = data.uncompressedSize; |
{ | ||
"name": "zip-stream", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"description": "a streaming zip generator.", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/ctalkington/node-zip-stream", |
@@ -1,2 +0,2 @@ | ||
# zip-stream v0.3.0 [![Build Status](https://travis-ci.org/ctalkington/node-zip-stream.svg?branch=master)](https://travis-ci.org/ctalkington/node-zip-stream) | ||
# zip-stream v0.3.1 [![Build Status](https://travis-ci.org/ctalkington/node-zip-stream.svg?branch=master)](https://travis-ci.org/ctalkington/node-zip-stream) | ||
@@ -3,0 +3,0 @@ 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. |
@@ -199,3 +199,3 @@ /*global before,describe,it */ | ||
testStream.on('close', function() { | ||
assert.equal(testStream.digest, '61ac99936f7dc99f38fbaa3789050b6b14900e47'); | ||
assert.equal(testStream.digest, '6ac3baa5e36a6ee0ec2fe06d760243c86645ed16'); | ||
done(); | ||
@@ -202,0 +202,0 @@ }); |
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
189588
1137