Socket
Socket
Sign inDemoInstall

@npmcli/run-script

Package Overview
Dependencies
Maintainers
7
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@npmcli/run-script - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

2

lib/make-spawn-args.js
const isWindows = require('./is-windows.js')
const setPATH = require('./set-path.js')
const {resolve} = require('path')
const npm_config_node_gyp = require.resolve('node-gyp/bin/node-gyp.js')

@@ -26,2 +27,3 @@ const makeSpawnArgs = options => {

npm_lifecycle_script: cmd,
npm_config_node_gyp,
}),

@@ -28,0 +30,0 @@ stdio,

3

lib/set-path.js
const {resolve, dirname} = require('path')
const isWindows = require('./is-windows.js')
const nodeGypPath = resolve(__dirname, 'node-gyp-bin')

@@ -15,3 +16,3 @@ // Windows typically calls its PATH environ 'Path', but this is not

const pathArr = []
const pathArr = [nodeGypPath]
// unshift the ./node_modules/.bin from every folder

@@ -18,0 +19,0 @@ // walk up until dirname() does nothing, at the root

{
"name": "@npmcli/run-script",
"version": "1.1.0",
"version": "1.1.1",
"description": "Run a lifecycle script for a package (descendant of npm-lifecycle)",

@@ -24,2 +24,3 @@ "author": "Isaac Z. Schlueter <i@izs.me> (https://izs.me)",

"infer-owner": "^1.0.4",
"node-gyp": "^6.1.0",
"read-package-json-fast": "^1.1.3"

@@ -26,0 +27,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