gulp-vinyl-zip
Advanced tools
Comparing version 1.0.7 to 1.0.8
@@ -23,3 +23,3 @@ 'use strict'; | ||
if (file.stat.isSymbolicLink && file.stat.isSymbolicLink()) { | ||
if (stat.isSymbolicLink && stat.isSymbolicLink()) { | ||
zip.addBuffer(new Buffer(file.symlink), path, opts); | ||
@@ -33,3 +33,3 @@ } else if (file.isDirectory()) { | ||
} | ||
cb(); | ||
@@ -36,0 +36,0 @@ }, function(cb) { |
{ | ||
"name": "gulp-vinyl-zip", | ||
"version": "1.0.7", | ||
"version": "1.0.8", | ||
"description": "Streaming vinyl adapter for zip archives", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -84,11 +84,11 @@ 'use strict'; | ||
if (stats[file.path].atime || file.stat.atime) { | ||
if (stats[file.path].atime.valueOf() || file.stat.atime.valueOf()) { | ||
assert.equal(stats[file.path].atime.getTime(), file.stat.atime.getTime()); | ||
} | ||
if (stats[file.path].ctime || file.stat.ctime) { | ||
if (stats[file.path].ctime.valueOf() || file.stat.ctime.valueOf()) { | ||
assert.equal(stats[file.path].ctime.getTime(), file.stat.ctime.getTime()); | ||
} | ||
if (stats[file.path].mtime || file.stat.mtime) { | ||
if (stats[file.path].mtime.valueOf() || file.stat.mtime.valueOf()) { | ||
assert.equal(stats[file.path].mtime.getTime(), file.stat.mtime.getTime()); | ||
@@ -108,2 +108,15 @@ } | ||
}); | ||
it('dest should not assume files have `stat`', function (cb) { | ||
var dest = temp.openSync('gulp-vinyl-zip-test').path; | ||
lib.src(path.join(__dirname, 'assets', 'archive.zip')) | ||
.pipe(through.obj(function(chunk, enc, cb) { | ||
delete chunk.stat; | ||
this.push(chunk); | ||
cb(); | ||
})) | ||
.pipe(lib.dest(dest)) | ||
.on('end', cb); | ||
}); | ||
}); |
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
11506
261