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

gulp-decompress

Package Overview
Dependencies
Maintainers
2
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-decompress - npm Package Compare versions

Comparing version 2.0.2 to 2.0.3

23

index.js

@@ -32,11 +32,20 @@ 'use strict';

stat.mode = x.mode;
stat.mtime = x.mtime;
stat.isDirectory = () => x.type === 'directory';
if (x.type === 'symlink') {
stat.isSymbolicLink = () => true;
} else {
stat.mode = x.mode;
stat.isDirectory = () => x.type === 'directory';
}
this.push(new Vinyl({
const vinylOptions = {
stat,
contents: stat.isDirectory() ? null : x.data,
contents: (stat.isDirectory() || stat.isSymbolicLink()) ? null : x.data,
path: x.path
}));
};
if (x.linkname) {
vinylOptions.symlink = x.linkname;
}
this.push(new Vinyl(vinylOptions));
}

@@ -46,6 +55,6 @@

})
.catch(err => {
cb(new PluginError('gulp-decompress:', err, {fileName: file.path}));
.catch(error => {
cb(new PluginError('gulp-decompress:', error, {fileName: file.path}));
});
}
});
{
"name": "gulp-decompress",
"version": "2.0.2",
"version": "2.0.3",
"description": "Extract TAR, TAR.BZ2, TAR.GZ and ZIP archives",

@@ -5,0 +5,0 @@ "license": "MIT",

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