Comparing version 1.0.0 to 1.0.1
@@ -129,2 +129,3 @@ 'use strict'; | ||
this.emit('start'); | ||
var from = this._from; | ||
@@ -227,7 +228,6 @@ var to = this._to; | ||
this.emit('start'); | ||
yauzl.open(from, { lazyEntries: true, autoClose: false }, function (error, zipfile) { | ||
var wasError = void 0; | ||
var handleError = function handleError(error) { | ||
if (error) { | ||
wasError = true; | ||
_this9.emit('error', error); | ||
@@ -234,0 +234,0 @@ } |
@@ -127,2 +127,3 @@ 'use strict'; | ||
this.emit('start'); | ||
const from = this._from; | ||
@@ -149,3 +150,3 @@ const to = this._to; | ||
const stream = this._createReadStream(filename, () => { | ||
end(name) | ||
end(name); | ||
}); | ||
@@ -208,3 +209,3 @@ | ||
}); | ||
} | ||
}; | ||
@@ -230,7 +231,6 @@ OneZip.prototype._parse = function(fn) { | ||
this.emit('start'); | ||
yauzl.open(from, {lazyEntries: true, autoClose: false}, (error, zipfile) => { | ||
let wasError; | ||
const handleError = (error) => { | ||
if (error) { | ||
wasError = true; | ||
this.emit('error', error); | ||
@@ -237,0 +237,0 @@ } |
{ | ||
"name": "onezip", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "pack and extract .zip archives with emitter", | ||
@@ -42,3 +42,3 @@ "main": "lib/onezip.js", | ||
"pipe-io": "^1.2.0", | ||
"yargs-parser": "^3.2.0", | ||
"yargs-parser": "^4.0.2", | ||
"yauzl": "^2.6.0", | ||
@@ -45,0 +45,0 @@ "yazl": "^2.4.1" |
@@ -131,3 +131,3 @@ # OneZip [![License][LicenseIMGURL]][LicenseURL] [![NPM version][NPMIMGURL]][NPMURL] [![Dependency Status][DependencyStatusIMGURL]][DependencyStatusURL] [![Build Status][BuildStatusIMGURL]][BuildStatusURL] [![Coverage Status][CoverageIMGURL]][CoverageURL] | ||
- [Jaguar](https://github.com/coderaser/jaguar "Jaguar") - Pack and extract .tar.gz archives with emitter. | ||
- [Jaguar](https://github.com/coderaser/node-jaguar "Jaguar") - Pack and extract .tar.gz archives with emitter. | ||
@@ -147,3 +147,3 @@ ## License | ||
[CoverageURL]: https://coveralls.io/github/coderaiser/node-jaguar?branch=master | ||
[CoverageIMGURL]: https://coveralls.io/repos/coderaiser/node-jaguar/badge.svg?branch=master&service=github | ||
[CoverageURL]: https://coveralls.io/github/coderaiser/node-onezip?branch=master | ||
[CoverageIMGURL]: https://coveralls.io/repos/coderaiser/node-onezip/badge.svg?branch=master&service=github |
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
12
26655
616
+ Addedyargs-parser@4.2.1(transitive)
- Removedlodash.assign@4.2.0(transitive)
- Removedyargs-parser@3.2.0(transitive)
Updatedyargs-parser@^4.0.2