gulp-decompress
Advanced tools
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
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
3754
42
5
+ Addedplugin-error@^1.0.1
+ Addedvinyl@^2.1.0
+ Addedansi-colors@1.1.0(transitive)
+ Addedarchive-type@4.0.0(transitive)
+ Addedarr-diff@4.0.0(transitive)
+ Addedarr-union@3.1.0(transitive)
+ Addedassign-symbols@1.0.0(transitive)
+ Addedclone@2.1.2(transitive)
+ Addedclone-buffer@1.0.0(transitive)
+ Addedclone-stats@1.0.0(transitive)
+ Addedcloneable-readable@1.1.3(transitive)
+ Addedextend-shallow@3.0.2(transitive)
+ Addedfile-type@4.4.0(transitive)
+ Addedis-extendable@1.0.1(transitive)
+ Addedis-plain-object@2.0.4(transitive)
+ Addedisobject@3.0.1(transitive)
+ Addedplugin-error@1.0.1(transitive)
+ Addedremove-trailing-separator@1.1.0(transitive)
+ Addedreplace-ext@1.0.1(transitive)
+ Addedvinyl@2.2.1(transitive)
- Removedgulp-util@^3.0.1
- Removedansi-gray@0.1.1(transitive)
- Removedansi-regex@2.1.1(transitive)
- Removedansi-styles@2.2.1(transitive)
- Removedarchive-type@3.2.0(transitive)
- Removedarray-differ@1.0.0(transitive)
- Removedarray-uniq@1.0.3(transitive)
- Removedbeeper@1.1.1(transitive)
- Removedchalk@1.1.3(transitive)
- Removedclone@1.0.4(transitive)
- Removedclone-stats@0.0.1(transitive)
- Removedcolor-support@1.1.3(transitive)
- Removeddateformat@2.2.0(transitive)
- Removedduplexer2@0.0.2(transitive)
- Removedescape-string-regexp@1.0.5(transitive)
- Removedfancy-log@1.3.3(transitive)
- Removedglogg@1.0.2(transitive)
- Removedgulp-util@3.0.8(transitive)
- Removedgulplog@1.0.0(transitive)
- Removedhas-ansi@2.0.0(transitive)
- Removedhas-gulplog@0.1.0(transitive)
- Removedisarray@0.0.1(transitive)
- Removedlodash._basecopy@3.0.1(transitive)
- Removedlodash._basetostring@3.0.1(transitive)
- Removedlodash._basevalues@3.0.0(transitive)
- Removedlodash._getnative@3.9.1(transitive)
- Removedlodash._isiterateecall@3.0.9(transitive)
- Removedlodash._reescape@3.0.0(transitive)
- Removedlodash._reevaluate@3.0.0(transitive)
- Removedlodash._reinterpolate@3.0.0(transitive)
- Removedlodash._root@3.0.1(transitive)
- Removedlodash.escape@3.2.0(transitive)
- Removedlodash.isarguments@3.1.0(transitive)
- Removedlodash.isarray@3.0.4(transitive)
- Removedlodash.keys@3.1.2(transitive)
- Removedlodash.restparam@3.6.1(transitive)
- Removedlodash.template@3.6.2(transitive)
- Removedlodash.templatesettings@3.1.1(transitive)
- Removedminimist@1.2.8(transitive)
- Removedmultipipe@0.1.2(transitive)
- Removedobject-assign@3.0.0(transitive)
- Removedparse-node-version@1.0.1(transitive)
- Removedreadable-stream@1.1.14(transitive)
- Removedreplace-ext@0.0.1(transitive)
- Removedsparkles@1.0.1(transitive)
- Removedstring_decoder@0.10.31(transitive)
- Removedstrip-ansi@3.0.1(transitive)
- Removedsupports-color@2.0.0(transitive)
- Removedthrough2@2.0.5(transitive)
- Removedtime-stamp@1.1.0(transitive)
- Removedvinyl@0.5.3(transitive)
Updatedarchive-type@^4.0.0