gulp-vinyl-zip
Advanced tools
Comparing version 2.4.0 to 2.5.0
@@ -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++; |
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
15471
352