Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

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.1 to 1.1.2

8

lib/utils.js

@@ -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

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