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

onezip

Package Overview
Dependencies
Maintainers
1
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

onezip - npm Package Compare versions

Comparing version 1.0.6 to 1.0.7

15

legacy/lib/onezip.js

@@ -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

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