gulp-decompress
Advanced tools
Comparing version 1.0.2 to 1.1.0
@@ -12,4 +12,2 @@ 'use strict'; | ||
return through.obj(function (file, enc, cb) { | ||
var self = this; | ||
if (file.isNull()) { | ||
@@ -39,10 +37,10 @@ cb(null, file); | ||
if (err) { | ||
cb(new gutil.PluginError('gulp-decompress:', err, { fileName: file.path })); | ||
cb(new gutil.PluginError('gulp-decompress:', err, {fileName: file.path})); | ||
return; | ||
} | ||
files.forEach(self.push.bind(self)); | ||
files.forEach(this.push.bind(this)); | ||
cb(); | ||
}); | ||
}.bind(this)); | ||
}); | ||
}; |
{ | ||
"name": "gulp-decompress", | ||
"version": "1.0.2", | ||
"version": "1.1.0", | ||
"description": "Extract TAR, TAR.BZ2, TAR.GZ and ZIP archives", | ||
@@ -34,6 +34,6 @@ "license": "MIT", | ||
"dependencies": { | ||
"archive-type": "^2.0.0", | ||
"archive-type": "^3.0.0", | ||
"decompress": "^2.1.1", | ||
"gulp-util": "^3.0.1", | ||
"through2": "^0.6.3" | ||
"through2": "^2.0.0" | ||
}, | ||
@@ -40,0 +40,0 @@ "devDependencies": { |
@@ -5,8 +5,10 @@ # gulp-decompress [![Build Status](http://img.shields.io/travis/kevva/gulp-decompress.svg?style=flat)](https://travis-ci.org/kevva/gulp-decompress) | ||
## Install | ||
```sh | ||
``` | ||
$ npm install --save gulp-decompress | ||
``` | ||
## Usage | ||
@@ -20,3 +22,3 @@ | ||
return gulp.src('*.{tar,tar.bz2,tar.gz,zip}') | ||
.pipe(decompress({ strip: 1 })) | ||
.pipe(decompress({strip: 1})) | ||
.pipe(gulp.dest('dist')); | ||
@@ -26,2 +28,3 @@ }); | ||
## Options | ||
@@ -31,14 +34,15 @@ | ||
Type: `String` | ||
Type: `string` | ||
Set mode on the extracted files, i.e `{ mode: '755' }`. | ||
Set mode on the extracted files, i.e `{mode: '755'}`. | ||
### strip | ||
Type: `Number` | ||
Type: `number` | ||
Equivalent to `--strip-components` for tar. | ||
## License | ||
MIT © [Kevin Mårtensson](https://github.com/kevva) |
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
45
3633
36
+ Addedarchive-type@3.2.0(transitive)
- Removedarchive-type@2.1.0(transitive)
- Removedfile-type@2.12.0(transitive)
- Removedread-chunk@1.0.1(transitive)
Updatedarchive-type@^3.0.0
Updatedthrough2@^2.0.0