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.1 to 2.0.2

13

index.js

@@ -5,4 +5,5 @@ 'use strict';

const decompress = require('decompress');
const gutil = require('gulp-util');
const PluginError = require('plugin-error');
const Transform = require('readable-stream/transform');
const Vinyl = require('vinyl');

@@ -18,3 +19,3 @@ module.exports = opts => new Transform({

if (file.isStream()) {
cb(new gutil.PluginError('gulp-decompress', 'Streaming is not supported'));
cb(new PluginError('gulp-decompress', 'Streaming is not supported'));
return;

@@ -30,3 +31,3 @@ }

.then(files => {
files.forEach(x => {
for (const x of files) {
const stat = new fs.Stats();

@@ -38,3 +39,3 @@

this.push(new gutil.File({
this.push(new Vinyl({
stat,

@@ -44,3 +45,3 @@ contents: stat.isDirectory() ? null : x.data,

}));
});
}

@@ -50,5 +51,5 @@ cb();

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

@@ -34,17 +34,15 @@ "license": "MIT",

"dependencies": {
"archive-type": "^3.0.0",
"archive-type": "^4.0.0",
"decompress": "^4.0.0",
"gulp-util": "^3.0.1",
"readable-stream": "^2.0.2"
"plugin-error": "^1.0.1",
"readable-stream": "^2.0.2",
"vinyl": "^2.1.0"
},
"devDependencies": {
"ava": "*",
"get-stream": "^2.2.0",
"get-stream": "^3.0.0",
"is-jpg": "^1.0.0",
"pify": "^2.3.0",
"pify": "^3.0.0",
"xo": "*"
},
"xo": {
"esnext": true
}
}

@@ -1,2 +0,2 @@

# gulp-decompress [![Build Status](http://img.shields.io/travis/kevva/gulp-decompress.svg?style=flat)](https://travis-ci.org/kevva/gulp-decompress)
# gulp-decompress [![Build Status](https://travis-ci.org/kevva/gulp-decompress.svg?branch=master)](https://travis-ci.org/kevva/gulp-decompress)

@@ -9,3 +9,3 @@ > Extract TAR, TAR.BZ2, TAR.GZ and ZIP archives using [decompress](https://github.com/kevva/decompress)

```
$ npm install --save gulp-decompress
$ npm install gulp-decompress
```

@@ -20,7 +20,7 @@

gulp.task('default', () => {
return gulp.src('*.{tar,tar.bz2,tar.gz,zip}')
gulp.task('default', () =>
gulp.src('*.{tar,tar.bz2,tar.gz,zip}')
.pipe(decompress({strip: 1}))
.pipe(gulp.dest('dist'));
});
.pipe(gulp.dest('dist'))
);
```

@@ -27,0 +27,0 @@

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