Comparing version 1.1.5 to 1.1.6
@@ -362,3 +362,4 @@ | ||
// it is a "_" - convert all other to "-" | ||
var p = k.replace(/^npm_config_/, '') | ||
var p = k.toLowerCase() | ||
.replace(/^npm_config_/, '') | ||
.replace(/(?!^)_/g, '-') | ||
@@ -365,0 +366,0 @@ conf[p] = env[k] |
{ | ||
"name": "npmconf", | ||
"version": "1.1.5", | ||
"version": "1.1.6", | ||
"description": "The config thing npm uses", | ||
@@ -5,0 +5,0 @@ "main": "npmconf.js", |
@@ -18,2 +18,3 @@ var path = require('path') | ||
process.env.npm_config__underbar_env_thing = 'underful' | ||
process.env.NPM_CONFIG_UPPERCASE_ENV_THING = 42 | ||
@@ -23,2 +24,3 @@ exports.envData = { | ||
'_underbar-env-thing': 'underful', | ||
'uppercase-env-thing': '42', | ||
'other-env-thing': '1000' | ||
@@ -29,2 +31,3 @@ } | ||
'_underbar-env-thing': 'underful', | ||
'uppercase-env-thing': 42, | ||
'other-env-thing': 1000, | ||
@@ -31,0 +34,0 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
41689
25
1208
42