Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gulp-vinyl-zip

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-vinyl-zip - npm Package Compare versions

Comparing version 1.0.7 to 1.0.8

4

lib/zip/index.js

@@ -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);
});
});
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc