Comparing version 5.0.0 to 5.0.1
@@ -5,2 +5,12 @@ # Change Log | ||
<a name="5.0.1"></a> | ||
## [5.0.1](https://github.com/zkat/pacote/compare/v5.0.0...v5.0.1) (2017-08-17) | ||
### Bug Fixes | ||
* **tar:** chown directories on extract as well ([2fa4598](https://github.com/zkat/pacote/commit/2fa4598)) | ||
<a name="5.0.0"></a> | ||
@@ -7,0 +17,0 @@ # [5.0.0](https://github.com/zkat/pacote/compare/v4.0.0...v5.0.0) (2017-08-16) |
@@ -13,22 +13,12 @@ 'use strict' | ||
onwarn: msg => opts.log && opts.log.warn('tar', msg), | ||
onentry: makeOnEntry(opts), | ||
preserveOwner: opts.uid != null || opts.gid != null | ||
uid: opts.uid, | ||
gid: opts.gid, | ||
onentry (entry) { | ||
if (entry.type.toLowerCase() === 'file') { | ||
entry.mode = opts.fmode & ~(opts.umask || 0) | ||
} else if (entry.type.toLowerCase() === 'directory') { | ||
entry.mode = opts.dmode & ~(opts.umask || 0) | ||
} | ||
} | ||
}) | ||
} | ||
function makeOnEntry (opts) { | ||
const sawEntry = {} | ||
return entry => _onentry(entry, sawEntry, opts) | ||
} | ||
function _onentry (entry, sawIgnores, opts) { | ||
if (process.getuid) { | ||
entry.uid = opts.uid == null ? entry.uid : opts.uid | ||
entry.gid = opts.gid == null ? entry.gid : opts.gid | ||
} | ||
if (entry.type.toLowerCase() === 'file') { | ||
entry.mode = opts.fmode & ~(opts.umask || 0) | ||
} else if (entry.type.toLowerCase() === 'directory') { | ||
entry.mode = opts.dmode & ~(opts.umask || 0) | ||
} | ||
} |
{ | ||
"name": "pacote", | ||
"version": "5.0.0", | ||
"version": "5.0.1", | ||
"description": "JavaScript package downloader", | ||
@@ -62,3 +62,3 @@ "main": "index.js", | ||
"ssri": "^4.1.6", | ||
"tar": "^3.1.13", | ||
"tar": "^3.2.0", | ||
"unique-filename": "^1.1.0", | ||
@@ -65,0 +65,0 @@ "which": "^1.3.0" |
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
84492
1526
Updatedtar@^3.2.0