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 2.4.0 to 2.5.0

.github/workflows/ci.yml

3

lib/src/index.js

@@ -53,2 +53,3 @@ 'use strict';

if (stat.isFile()) {
stat.size = entry.uncompressedSize;
if (entry.uncompressedSize === 0) {

@@ -70,2 +71,3 @@ file.contents = Buffer.alloc(0);

} else if (stat.isSymbolicLink()) {
stat.size = entry.uncompressedSize;
q.push(function (cb) {

@@ -86,3 +88,2 @@ zip.openReadStream(entry, function (err, readStream) {

} else if (stat.isDirectory()) {
file.contents = null;
result.emit('data', new File(file));

@@ -89,0 +90,0 @@ } else {

{
"name": "gulp-vinyl-zip",
"version": "2.4.0",
"version": "2.5.0",
"description": "Streaming vinyl adapter for zip archives",

@@ -10,2 +10,5 @@ "main": "index.js",

},
"engines": {
"node": ">= 10"
},
"repository": {

@@ -12,0 +15,0 @@ "type": "git",

# gulp-vinyl-zip
[![Build Status](https://travis-ci.org/joaomoreno/gulp-vinyl-zip.svg?branch=master)](https://travis-ci.org/joaomoreno/gulp-vinyl-zip)
[![CI](https://github.com/joaomoreno/gulp-vinyl-zip/actions/workflows/ci.yml/badge.svg)](https://github.com/joaomoreno/gulp-vinyl-zip/actions/workflows/ci.yml)

@@ -5,0 +5,0 @@ A library for creating and extracting ZIP archives from/to streams.

@@ -20,7 +20,14 @@ 'use strict';

const filepath = chunk.path;
const filemode = chunk.stat.mode;
if (filepath === 'vinyl-zip.fs') {
assert.strictEqual(33188, filemode);
} else if (chunk.path === 'src/index.js') {
assert.strictEqual(33204, filemode);
if (filepath === 'vinyl-zip.js') {
assert.strictEqual(33188, chunk.stat.mode);
assert.strictEqual(230, chunk.stat.size);
} else if (filepath === 'src') {
assert.strictEqual(16877, chunk.stat.mode);
assert.strictEqual(undefined, chunk.stat.size);
} else if (filepath === 'link') {
assert.strictEqual(41453, chunk.stat.mode);
assert.strictEqual(13, chunk.stat.size);
} else if (filepath === 'src/index.js') {
assert.strictEqual(33204, chunk.stat.mode);
assert.strictEqual(555, chunk.stat.size);
}

@@ -27,0 +34,0 @@ count++;

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