Socket
Socket
Sign inDemoInstall

node-stream-zip

Package Overview
Dependencies
0
Maintainers
1
Versions
49
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.3.7 to 1.3.8

22

node_stream_zip.js

@@ -355,3 +355,3 @@ /**

if (!entries)
throw 'storeEntries disabled';
throw new Error('storeEntries disabled');
}

@@ -410,6 +410,6 @@

} else {
throw 'Unknown compression method: ' + entry.method;
throw new Error('Unknown compression method: ' + entry.method);
}
if (data.length !== entry.size)
throw 'Invalid size';
throw new Error('Invalid size');
if (canVerifyCrc(entry)) {

@@ -589,3 +589,3 @@ var verify = new CrcVerify(entry.crc, entry.size);

if (data.length != consts.ENDHDR || data.readUInt32LE(0) != consts.ENDSIG)
throw 'Invalid central directory';
throw new Error('Invalid central directory');
// number of entries on this volume

@@ -612,3 +612,3 @@ this.volumeEntries = data.readUInt16LE(consts.ENDSUB);

if (data.length != consts.ENDL64HDR || data.readUInt32LE(0) != consts.ENDL64SIG)
throw 'Invalid zip64 central directory locator';
throw new Error('Invalid zip64 central directory locator');
// ZIP64 EOCD header offset

@@ -627,3 +627,3 @@ this.headerOffset = Util.readUInt64LE(data, consts.ENDSUB);

if (data.length != consts.END64HDR || data.readUInt32LE(0) != consts.END64SIG)
throw 'Invalid central directory';
throw new Error('Invalid central directory');
// number of entries on this volume

@@ -649,3 +649,3 @@ this.volumeEntries = Util.readUInt64LE(data, consts.END64SUB);

if (data.length < offset + consts.CENHDR || data.readUInt32LE(offset) != consts.CENSIG) {
throw 'Invalid entry header';
throw new Error('Invalid entry header');
}

@@ -687,3 +687,3 @@ // version made by

if (data.readUInt32LE(0) != consts.LOCSIG) {
throw 'Invalid local header';
throw new Error('Invalid local header');
}

@@ -828,3 +828,3 @@ // version needed to extract

if (fsOp && fsOp.waiting)
throw 'Operation in progress';
throw new Error('Operation in progress');
};

@@ -956,5 +956,5 @@

if (crc !== this.crc)
throw 'Invalid CRC';
throw new Error('Invalid CRC');
if (this.state.size !== this.size)
throw 'Invalid size';
throw new Error('Invalid size');
}

@@ -961,0 +961,0 @@ };

{
"name": "node-stream-zip",
"version": "1.3.7",
"version": "1.3.8",
"description": "node.js library for reading and extraction of ZIP archives",

@@ -5,0 +5,0 @@ "keywords": [

@@ -37,2 +37,3 @@ # node-stream-zip [![Build status](https://travis-ci.org/antelle/node-stream-zip.svg?branch=master)](https://travis-ci.org/antelle/node-stream-zip)

console.log('Entry extracted');
zip.close();
});

@@ -42,2 +43,3 @@ // extract folder

console.log('Extracted ' + count + ' entries');
zip.close();
});

@@ -47,2 +49,3 @@ // extract all

console.log('Extracted ' + count + ' entries');
zip.close();
});

@@ -49,0 +52,0 @@ // read file as buffer in sync way

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc