Comparing version 1.1.7 to 1.2.0
@@ -47,3 +47,3 @@ 'use strict'; | ||
for(var k in env) { | ||
if((k.indexOf(prefix)) === 0) { | ||
if(k.toLowerCase().indexOf(prefix) === 0) { | ||
@@ -105,1 +105,2 @@ var keypath = k.substring(l).split('__') | ||
{ | ||
"name": "rc", | ||
"version": "1.1.7", | ||
"version": "1.2.0", | ||
"description": "hardwired configuration loader", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
var n = 'rc'+Math.random() | ||
var seed = Math.random(); | ||
var n = 'rc'+ seed; | ||
var N = 'RC'+ seed; | ||
var assert = require('assert') | ||
@@ -21,2 +23,5 @@ | ||
// should ignore case for config name section. | ||
process.env[N+'_test_upperCase'] = 187 | ||
var config = require('../')(n, { | ||
@@ -41,2 +46,3 @@ option: true | ||
assert.equal(config.test_upperCase, 187) | ||
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
15051
227
16