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.0.0 to 7.0.1

10

lib/index.js

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

await readFile(file, 'utf8').then(
data => this.#loadObject(ini.parse(data), type, file),
data => {
const parsedConfig = ini.parse(data)
if (type === 'project' && parsedConfig.prefix) {
// Log error if prefix is mentioned in project .npmrc
/* eslint-disable-next-line max-len */
log.error('config', `prefix cannot be changed from project config: ${file}.`)
}
return this.#loadObject(parsedConfig, type, file)
},
er => this.#loadObject(null, type, file, er)

@@ -616,0 +624,0 @@ )

4

package.json
{
"name": "@npmcli/config",
"version": "7.0.0",
"version": "7.0.1",
"files": [

@@ -36,3 +36,3 @@ "bin/",

"@npmcli/template-oss": "4.18.0",
"tap": "^16.3.4"
"tap": "^16.3.8"
},

@@ -39,0 +39,0 @@ "dependencies": {

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