gulp-unzip
Advanced tools
Comparing version 0.1.3 to 0.1.4
@@ -13,3 +13,3 @@ var through = require('through2'); | ||
} | ||
var opts = {}; | ||
@@ -19,3 +19,3 @@ options = options || {}; | ||
opts.keepEmpty = options.keepEmpty || false; | ||
// unzip file | ||
@@ -31,3 +31,3 @@ var self = this | ||
} | ||
entry.pipe(through.obj(function(chunk, enc, cb){ | ||
@@ -38,3 +38,3 @@ // gutil.log("Find file: "+ entry.path) | ||
}, function(cb){ | ||
if(chunks.length > 0 || opts.keepEmpty){ | ||
if(entry.type == 'File' && (chunks.length > 0 || opts.keepEmpty)){ | ||
self.push(new gutil.File({ | ||
@@ -41,0 +41,0 @@ cwd : "./", |
{ | ||
"name": "gulp-unzip", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"description": "gulp plugin for unzip", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
3461
1