Comparing version 1.0.6 to 1.0.7
@@ -17,4 +17,3 @@ 'use strict'; | ||
var yauzl = require('yauzl'); | ||
var async = require('async'); | ||
var eachSeries = async.eachSeries; | ||
var eachSeries = require('itchy/legacy'); | ||
@@ -78,7 +77,5 @@ util.inherits(OneZip, Emitter); | ||
_this._parse(function (error) { | ||
if (!error) { | ||
_this._extract(_this._from); | ||
} else { | ||
_this.emit('error', error); | ||
} | ||
if (!error) return _this._extract(_this._from); | ||
_this.emit('error', error); | ||
}); | ||
@@ -254,3 +251,5 @@ break; | ||
if (/\/$/.test(fileName)) mkdirp(fileName, fn);else zipfile.openReadStream(entry, _this9._onOpenReadStream(function (readStream) { | ||
if (/\/$/.test(fileName)) return mkdirp(fileName, fn); | ||
zipfile.openReadStream(entry, _this9._onOpenReadStream(function (readStream) { | ||
_this9._writeFile(fileName, readStream, fn); | ||
@@ -257,0 +256,0 @@ })); |
@@ -15,4 +15,3 @@ 'use strict'; | ||
const yauzl = require('yauzl'); | ||
const async = require('async'); | ||
const eachSeries = async.eachSeries; | ||
const eachSeries = require('itchy/legacy'); | ||
@@ -81,7 +80,6 @@ util.inherits(OneZip, Emitter); | ||
this._parse((error) => { | ||
if (!error) { | ||
this._extract(this._from); | ||
} else { | ||
this.emit('error', error); | ||
} | ||
if (!error) | ||
return this._extract(this._from); | ||
this.emit('error', error); | ||
}); | ||
@@ -93,7 +91,7 @@ break; | ||
OneZip.prototype.abort = function() { | ||
OneZip.prototype.abort = function() { | ||
this._abort = true; | ||
}; | ||
OneZip.prototype._parallel = function(from, files, callback) { | ||
OneZip.prototype._parallel = function(from, files, callback) { | ||
let i = files.length; | ||
@@ -259,7 +257,7 @@ | ||
if (/\/$/.test(fileName)) | ||
mkdirp(fileName, fn); | ||
else | ||
zipfile.openReadStream(entry, this._onOpenReadStream((readStream) => { | ||
this._writeFile(fileName, readStream, fn); | ||
})); | ||
return mkdirp(fileName, fn); | ||
zipfile.openReadStream(entry, this._onOpenReadStream((readStream) => { | ||
this._writeFile(fileName, readStream, fn); | ||
})); | ||
}); | ||
@@ -266,0 +264,0 @@ |
{ | ||
"name": "onezip", | ||
"version": "1.0.6", | ||
"version": "1.0.7", | ||
"description": "pack and extract .zip archives with emitter", | ||
@@ -37,5 +37,5 @@ "main": "lib/onezip.js", | ||
"dependencies": { | ||
"async": "^2.0.1", | ||
"findit": "^2.0.0", | ||
"glob": "^7.0.0", | ||
"itchy": "^1.0.0", | ||
"mkdirp": "^0.5.1", | ||
@@ -42,0 +42,0 @@ "pipe-io": "^2.0.1", |
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
27678
623
+ Addeditchy@^1.0.0
+ Addeditchy@1.0.0(transitive)
- Removedasync@^2.0.1
- Removedasync@2.6.4(transitive)
- Removedlodash@4.17.21(transitive)