Socket
Socket
Sign inDemoInstall

@npmcli/config

Package Overview
Dependencies
Maintainers
5
Versions
73
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@npmcli/config - npm Package Compare versions

Comparing version 7.1.0 to 7.2.0

7

lib/definitions/index.js

@@ -21,9 +21,2 @@ const definitions = require('./definitions.js')

}
// XXX make this the bin/npm-cli.js file explicitly instead
// otherwise using npm programmatically is a bit of a pain.
flat.npmBin = require.main ? require.main.filename
: /* istanbul ignore next - not configurable property */ undefined
flat.nodeBin = process.env.NODE || process.execPath
return flat

@@ -30,0 +23,0 @@ }

3

lib/index.js

@@ -118,2 +118,3 @@ // TODO: set the scope config from package.json or explicit cli config

this.npmPath = npmPath
this.npmBin = join(this.npmPath, 'bin/npm-cli.js')
this.argv = argv

@@ -235,2 +236,4 @@ this.env = env

}
this.#flatOptions.nodeBin = this.execPath
this.#flatOptions.npmBin = this.npmBin
process.emit('timeEnd', 'config:load:flatten')

@@ -237,0 +240,0 @@

@@ -104,6 +104,3 @@ // Set environment variables for any non-default configs,

}
if (require.main && require.main.filename) {
env.npm_execpath = require.main.filename
}
env.npm_execpath = config.npmBin
env.NODE = env.npm_node_execpath = config.execPath

@@ -110,0 +107,0 @@ }

{
"name": "@npmcli/config",
"version": "7.1.0",
"version": "7.2.0",
"files": [

@@ -5,0 +5,0 @@ "bin/",

Sorry, the diff of this file is too big to display

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