Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

pacote

Package Overview
Dependencies
Maintainers
2
Versions
223
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pacote - npm Package Compare versions

Comparing version 5.0.0 to 5.0.1

10

CHANGELOG.md

@@ -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)

28

lib/extract-stream.js

@@ -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"

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