gulp-decompress
Advanced tools
Comparing version 2.0.2 to 2.0.3
23
index.js
@@ -32,11 +32,20 @@ 'use strict'; | ||
stat.mode = x.mode; | ||
stat.mtime = x.mtime; | ||
stat.isDirectory = () => x.type === 'directory'; | ||
if (x.type === 'symlink') { | ||
stat.isSymbolicLink = () => true; | ||
} else { | ||
stat.mode = x.mode; | ||
stat.isDirectory = () => x.type === 'directory'; | ||
} | ||
this.push(new Vinyl({ | ||
const vinylOptions = { | ||
stat, | ||
contents: stat.isDirectory() ? null : x.data, | ||
contents: (stat.isDirectory() || stat.isSymbolicLink()) ? null : x.data, | ||
path: x.path | ||
})); | ||
}; | ||
if (x.linkname) { | ||
vinylOptions.symlink = x.linkname; | ||
} | ||
this.push(new Vinyl(vinylOptions)); | ||
} | ||
@@ -46,6 +55,6 @@ | ||
}) | ||
.catch(err => { | ||
cb(new PluginError('gulp-decompress:', err, {fileName: file.path})); | ||
.catch(error => { | ||
cb(new PluginError('gulp-decompress:', error, {fileName: file.path})); | ||
}); | ||
} | ||
}); |
{ | ||
"name": "gulp-decompress", | ||
"version": "2.0.2", | ||
"version": "2.0.3", | ||
"description": "Extract TAR, TAR.BZ2, TAR.GZ and ZIP archives", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
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
3993
50