Socket
Socket
Sign inDemoInstall

@npmcli/promise-spawn

Package Overview
Dependencies
Maintainers
4
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@npmcli/promise-spawn - npm Package Compare versions

Comparing version 1.3.1 to 1.3.2

13

index.js

@@ -14,14 +14,9 @@ const {spawn} = require('child_process')

const isRoot = process.getuid && process.getuid() === 0
return !isRoot ? promiseSpawnUid(cmd, args, {
const { uid, gid } = isRoot ? inferOwner.sync(cwd) : {}
return promiseSpawnUid(cmd, args, {
...opts,
cwd,
uid: undefined,
gid: undefined,
uid,
gid
}, extra)
: inferOwner(cwd).then(({uid, gid}) => promiseSpawnUid(cmd, args, {
...opts,
cwd,
uid,
gid,
}, extra))
}

@@ -28,0 +23,0 @@

{
"name": "@npmcli/promise-spawn",
"version": "1.3.1",
"version": "1.3.2",
"files": [

@@ -5,0 +5,0 @@ "index.js"

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