Socket
Socket
Sign inDemoInstall

@npmcli/config

Package Overview
Dependencies
Maintainers
7
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 2.3.1 to 2.3.2

8

lib/index.js

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

async loadProjectConfig () {
// the localPrefix can be set by the CLI config, but otherwise is
// found by walking up the folder tree. either way, we load it before
// we return to make sure localPrefix is set
await this.loadLocalPrefix()
if (this[_get]('global') === true || this[_get]('location') === 'global') {

@@ -507,5 +512,2 @@ this.data.get('project').source = '(global mode enabled, ignored)'

// the localPrefix can be set by the CLI config, but otherwise is
// found by walking up the folder tree
await this.loadLocalPrefix()
const projectFile = resolve(this.localPrefix, '.npmrc')

@@ -512,0 +514,0 @@ // if we're in the ~ directory, and there happens to be a node_modules

{
"name": "@npmcli/config",
"version": "2.3.1",
"version": "2.3.2",
"files": [

@@ -5,0 +5,0 @@ "lib"

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