Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

unzipper

Package Overview
Dependencies
Maintainers
1
Versions
76
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

unzipper - npm Package Compare versions

Comparing version 0.10.4 to 0.10.5

8

lib/Open/directory.js

@@ -96,3 +96,7 @@ var binary = require('binary');

sourceSize = size;
source.stream(Math.max(0,size-tailSize)).pipe(endDir);
source.stream(Math.max(0,size-tailSize))
.on('error', function (error) { endDir.emit('error', error) })
.pipe(endDir);
return endDir.pull(signature);

@@ -166,3 +170,3 @@ })

});
},{concurrency: opts.concurrency || 1});
}, opts.concurrency > 1 ? {concurrency: opts.concurrency || undefined} : undefined);
});

@@ -169,0 +173,0 @@ };

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

var fs = require('fs');
var fs = require('graceful-fs');
var Promise = require('bluebird');

@@ -3,0 +3,0 @@ var directory = require('./directory');

@@ -86,3 +86,3 @@ var Promise = require('bluebird');

entry.vars.then(function(vars) {
var fileSizeKnown = !(vars.flags & 0x08),
var fileSizeKnown = !(vars.flags & 0x08) || vars.compressedSize > 0,
eof;

@@ -89,0 +89,0 @@

@@ -167,3 +167,3 @@ var util = require('util');

var fileSizeKnown = !(vars.flags & 0x08),
var fileSizeKnown = !(vars.flags & 0x08) || vars.compressedSize > 0,
eof;

@@ -170,0 +170,0 @@

{
"name": "unzipper",
"version": "0.10.4",
"version": "0.10.5",
"description": "Unzip cross-platform streaming API ",

@@ -32,2 +32,3 @@ "author": "Evan Oxfeld <eoxfeld@gmail.com>",

"fstream": "^1.0.12",
"graceful-fs": "^4.2.2",
"listenercount": "~1.0.1",

@@ -34,0 +35,0 @@ "readable-stream": "~2.3.6",

@@ -1,6 +0,10 @@

const fs = require('fs')
const unzipper = require('./unzip');
fs.createReadStream('./testData/compressed-standard/archive.zip')
.pipe(unzipper.Extract({path:'public/icons'}))
.on('finish',() => console.log('finish'))
async function main() {
const zip = await unzipper.Open.file('./scorm-file-test.zip');
await zip.extract({path:'/home/zjonsson/git/node-unzipper/tmp'});
console.log('done');
}
main().then(console.log,console.log)
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