Socket
Socket
Sign inDemoInstall

rc

Package Overview
Dependencies
Maintainers
1
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rc - npm Package Compare versions

Comparing version 1.1.7 to 1.2.0

3

lib/utils.js

@@ -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)
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc