gulp-vinyl-zip
Advanced tools
Comparing version 2.2.0 to 2.4.0
@@ -14,3 +14,5 @@ 'use strict'; | ||
return [constants.S_IRWXU, constants.S_IRWXG, constants.S_IRWXO] | ||
// The following constants are not available on all platforms: | ||
// 448 = constants.S_IRWXU, 56 = constants.S_IRWXG, 7 = constants.S_IRWXO | ||
return [448, 56, 7] | ||
.map(function (mask) { return attr & mask; }) | ||
@@ -17,0 +19,0 @@ .reduce(function (a, b) { return a + b; }, attr & constants.S_IFMT); |
{ | ||
"name": "gulp-vinyl-zip", | ||
"version": "2.2.0", | ||
"version": "2.4.0", | ||
"description": "Streaming vinyl adapter for zip archives", | ||
@@ -40,3 +40,3 @@ "main": "index.js", | ||
"devDependencies": { | ||
"mocha": "^5.2.0", | ||
"mocha": "^7.1.2", | ||
"standard": "^12.0.1", | ||
@@ -43,0 +43,0 @@ "temp": "^0.8.1" |
@@ -19,2 +19,9 @@ 'use strict'; | ||
.pipe(through.obj(function (chunk, enc, cb) { | ||
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); | ||
} | ||
count++; | ||
@@ -21,0 +28,0 @@ 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
14352
344