aboutsummaryrefslogtreecommitdiff
path: root/node_modules/compress-commons
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/compress-commons')
-rw-r--r--node_modules/compress-commons/README.md2
-rw-r--r--node_modules/compress-commons/lib/archivers/zip/util.js4
-rw-r--r--node_modules/compress-commons/lib/archivers/zip/zip-archive-entry.js4
-rw-r--r--node_modules/compress-commons/lib/archivers/zip/zip-archive-output-stream.js4
-rw-r--r--node_modules/compress-commons/package.json2
5 files changed, 8 insertions, 8 deletions
diff --git a/node_modules/compress-commons/README.md b/node_modules/compress-commons/README.md
index 80055ca32..04eec191b 100644
--- a/node_modules/compress-commons/README.md
+++ b/node_modules/compress-commons/README.md
@@ -1,4 +1,4 @@
-# Compress Commons v1.2.0 [![Build Status](https://travis-ci.org/archiverjs/node-compress-commons.svg?branch=master)](https://travis-ci.org/archiverjs/node-compress-commons) [![Build status](https://ci.appveyor.com/api/projects/status/fx3066dufdpar0it/branch/master?svg=true)](https://ci.appveyor.com/project/ctalkington/node-compress-commons/branch/master)
+# Compress Commons v1.2.1 [![Build Status](https://travis-ci.org/archiverjs/node-compress-commons.svg?branch=master)](https://travis-ci.org/archiverjs/node-compress-commons) [![Build status](https://ci.appveyor.com/api/projects/status/fx3066dufdpar0it/branch/master?svg=true)](https://ci.appveyor.com/project/ctalkington/node-compress-commons/branch/master)
Compress Commons is a library that defines a common interface for working with archive formats within node.
diff --git a/node_modules/compress-commons/lib/archivers/zip/util.js b/node_modules/compress-commons/lib/archivers/zip/util.js
index 147702c34..d3ca45e14 100644
--- a/node_modules/compress-commons/lib/archivers/zip/util.js
+++ b/node_modules/compress-commons/lib/archivers/zip/util.js
@@ -49,7 +49,7 @@ util.getEightBytes = function(v) {
util.getShortBytes = function(v) {
var buf = new Buffer(2);
- buf.writeUInt16LE(v, 0);
+ buf.writeUInt16LE((v & 0xFFFF) >>> 0, 0);
return buf;
};
@@ -60,7 +60,7 @@ util.getShortBytesValue = function(buf, offset) {
util.getLongBytes = function(v) {
var buf = new Buffer(4);
- buf.writeUInt32LE(v, 0);
+ buf.writeUInt32LE((v & 0xFFFFFFFF) >>> 0, 0);
return buf;
};
diff --git a/node_modules/compress-commons/lib/archivers/zip/zip-archive-entry.js b/node_modules/compress-commons/lib/archivers/zip/zip-archive-entry.js
index e5b0d69a7..92b4eee23 100644
--- a/node_modules/compress-commons/lib/archivers/zip/zip-archive-entry.js
+++ b/node_modules/compress-commons/lib/archivers/zip/zip-archive-entry.js
@@ -26,8 +26,8 @@ var ZipArchiveEntry = module.exports = function(name) {
this.method = -1;
this.name = null;
- this.size = -1;
- this.csize = -1;
+ this.size = 0;
+ this.csize = 0;
this.gpb = new GeneralPurposeBit();
this.crc = 0;
this.time = -1;
diff --git a/node_modules/compress-commons/lib/archivers/zip/zip-archive-output-stream.js b/node_modules/compress-commons/lib/archivers/zip/zip-archive-output-stream.js
index d74c1e770..7c3934e81 100644
--- a/node_modules/compress-commons/lib/archivers/zip/zip-archive-output-stream.js
+++ b/node_modules/compress-commons/lib/archivers/zip/zip-archive-output-stream.js
@@ -224,7 +224,7 @@ ZipArchiveOutputStream.prototype._writeCentralDirectoryZip64 = function() {
this.write(zipUtil.getLongBytes(constants.SIG_ZIP64_EOCD));
// size of the ZIP64 EOCD record
- this.write(zipUtil.getEightBytes(56));
+ this.write(zipUtil.getEightBytes(44));
// version made by
this.write(zipUtil.getShortBytes(constants.MIN_VERSION_ZIP64));
@@ -437,4 +437,4 @@ ZipArchiveOutputStream.prototype.isZip64 = function() {
ZipArchiveOutputStream.prototype.setComment = function(comment) {
this._archive.comment = comment;
-}; \ No newline at end of file
+};
diff --git a/node_modules/compress-commons/package.json b/node_modules/compress-commons/package.json
index 2058d0778..4f43ba3a4 100644
--- a/node_modules/compress-commons/package.json
+++ b/node_modules/compress-commons/package.json
@@ -1,6 +1,6 @@
{
"name": "compress-commons",
- "version": "1.2.0",
+ "version": "1.2.2",
"description": "a library that defines a common interface for working with archive formats within node",
"homepage": "https://github.com/archiverjs/node-compress-commons",
"author": {