gulp-vinyl-zip
Advanced tools
Comparing version 2.0.0 to 2.1.0
@@ -13,2 +13,3 @@ 'use strict'; | ||
var zip = new yazl.ZipFile(); | ||
var isEmpty = true; | ||
@@ -43,4 +44,9 @@ var stream = through.obj(function(file, enc, cb) { | ||
isEmpty = false; | ||
cb(); | ||
}, function(cb) { | ||
if (isEmpty && options.unlessEmpty) { | ||
return cb(); | ||
} | ||
stream.push(new File({path: zipPath, contents: zip.outputStream})); | ||
@@ -47,0 +53,0 @@ zip.end(function() { |
{ | ||
"name": "gulp-vinyl-zip", | ||
"version": "2.0.0", | ||
"version": "2.1.0", | ||
"description": "Streaming vinyl adapter for zip archives", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
13780
322