Comparing version 1.1.1 to 1.1.2
@@ -0,1 +1,2 @@ | ||
'use strict'; | ||
var fs = require('fs') | ||
@@ -55,3 +56,3 @@ var ini = require('ini') | ||
} | ||
var cursor = obj | ||
@@ -61,3 +62,4 @@ keypath.forEach(function _buildSubObj(_subkey,i){ | ||
// (check for _subkey first so we ignore empty strings) | ||
if (!_subkey) | ||
// (check for cursor to avoid assignment to primitive objects) | ||
if (!_subkey || typeof cursor !== 'object') | ||
return | ||
@@ -70,4 +72,4 @@ | ||
cursor[_subkey] = env[k] | ||
// Build sub-object if nothing already exists at the keypath | ||
@@ -74,0 +76,0 @@ if (cursor[_subkey] === undefined) |
{ | ||
"name": "rc", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "hardwired configuration loader", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -10,2 +10,3 @@ | ||
process.env[n+'_someOpt__a__b'] = 186 | ||
process.env[n+'_someOpt__a__b__c'] = 243 | ||
process.env[n+'_someOpt__x__y'] = 1862 | ||
@@ -12,0 +13,0 @@ process.env[n+'_someOpt__z'] = 186577 |
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
14859
222
15