Socket
Socket
Sign inDemoInstall

@npmcli/config

Package Overview
Dependencies
Maintainers
6
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 1.1.7 to 1.1.8

7

lib/env-replace.js

@@ -6,2 +6,4 @@ // replace any ${ENV} values with the appropriate environ.

module.exports = (f, env) => f.replace(envExpr, (orig, esc, name) => {
const val = env[name] !== undefined ? env[name] : `\$\{${name}\}`
// consume the escape chars that are relevant.

@@ -11,6 +13,3 @@ if (esc.length % 2)

if (undefined === env[name])
throw new Error('Failed to replace env in config: ' + orig)
return (esc.substr(esc.length / 2)) + env[name]
return (esc.substr(esc.length / 2)) + val
})

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

// set proper globalPrefix now that everything is loaded
this.globalPrefix = this.get('prefix')
process.emit('time', 'config:load:setEnvs')

@@ -246,0 +249,0 @@ this.setEnvs()

{
"name": "@npmcli/config",
"version": "1.1.7",
"version": "1.1.8",
"files": [

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

@@ -5,3 +5,3 @@ # `@npmcli/config`

This module is the spiritual decendant of
This module is the spiritual descendant of
[`npmconf`](http://npm.im/npmconf), and the code that once lived in npm's

@@ -31,3 +31,3 @@ `lib/config/` folder.

The resulting heirarchy of configs:
The resulting hierarchy of configs:

@@ -34,0 +34,0 @@ - CLI switches. eg `--some-key=some-value` on the command line. These are

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