extract-zip
Advanced tools
Comparing version 1.2.0 to 1.3.0
16
index.js
@@ -35,2 +35,7 @@ var fs = require('fs') | ||
zipfile.on('entry', function (entry) { | ||
if (cancelled) { | ||
debug('skipping entry', entry.fileName, {cancelled: cancelled}) | ||
return | ||
} | ||
debug('zipfile entry', entry.fileName) | ||
@@ -44,3 +49,10 @@ | ||
q.push(entry, function (err) { | ||
debug('finished processing', entry.fileName, {err: err}) | ||
// if any extraction fails then abort everything | ||
if (err) { | ||
cancelled = true | ||
q.kill() | ||
zipfile.close() | ||
return cb(err) | ||
} | ||
debug('finished processing', entry.fileName) | ||
}) | ||
@@ -55,3 +67,3 @@ }) | ||
if (cancelled) { | ||
debug('skipping entry', entry.fileName, {cancelled: cancelled}) | ||
debug('skipping entry extraction', entry.fileName, {cancelled: cancelled}) | ||
return setImmediate(done) | ||
@@ -58,0 +70,0 @@ } |
{ | ||
"name": "extract-zip", | ||
"version": "1.2.0", | ||
"version": "1.3.0", | ||
"description": "unzip a zip file into a directory using 100% pure gluten-free organic javascript", | ||
@@ -28,7 +28,7 @@ "main": "index.js", | ||
"dependencies": { | ||
"async": "1.5.0", | ||
"concat-stream": "1.5.0", | ||
"debug": "0.7.4", | ||
"async": "0.9.0", | ||
"mkdirp": "0.5.0", | ||
"concat-stream": "1.5.0", | ||
"yauzl": "^2.3.1" | ||
"yauzl": "2.3.1" | ||
}, | ||
@@ -35,0 +35,0 @@ "devDependencies": { |
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
7740
151
+ Addedasync@1.5.0(transitive)
+ Addedfd-slicer@1.0.1(transitive)
+ Addedyauzl@2.3.1(transitive)
- Removedasync@0.9.0(transitive)
- Removedbuffer-crc32@0.2.13(transitive)
- Removedfd-slicer@1.1.0(transitive)
- Removedyauzl@2.10.0(transitive)
Updatedasync@1.5.0
Updatedyauzl@2.3.1