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

decompress

Package Overview
Dependencies
Maintainers
1
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

decompress - npm Package Compare versions

Comparing version 0.1.8 to 0.1.9

13

index.js
'use strict';
var endsWith = require('mout/string/endsWith');
var find = require('mout/array/find');
var fs = require('fs');
var mapKey = require('map-key');
var mkdir = require('mkdirp');

@@ -37,6 +36,6 @@ var path = require('path');

'application/zip': this._extractZip,
'application/x-gzip': this._extractTarGz,
'application/x-tar': this._extractTar,
'application/x-tgz': this._extractTarGz
};
this.extractorTypes = Object.keys(this.extractors);
this.extractor = this._getExtractor(this.ext);

@@ -91,8 +90,3 @@ }

src = src.toLowerCase();
var ext = find(this.extractorTypes, function (ext) {
return endsWith(src, ext);
});
return ext ? this.extractors[ext] : null;
return mapKey.endsWith(this.extractors, src);
};

@@ -182,2 +176,3 @@

var decompress = new Decompress(opts);
console.log('decompress.extract() is deprecated, use decompress() instead');
return decompress.extract();

@@ -184,0 +179,0 @@ };

{
"name": "decompress",
"version": "0.1.8",
"version": "0.1.9",
"description": "Easily extract zip, tar and tar.gz archives",

@@ -28,9 +28,9 @@ "keywords": [

"dependencies": {
"adm-zip": "~0.4.3",
"mkdirp": "~0.3.5",
"mout": "~0.9.0",
"rimraf": "~2.2.2",
"stream-combiner": "~0.0.2",
"tar": "~0.1.18",
"tempfile": "~0.1.2"
"adm-zip": "^0.4.3",
"mkdirp": "^0.3.5",
"rimraf": "^2.2.2",
"stream-combiner": "^0.0.2",
"tar": "^0.1.18",
"tempfile": "^0.1.2",
"map-key": "^0.1.0"
},

@@ -37,0 +37,0 @@ "devDependencies": {

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