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

cnf

Package Overview
Dependencies
Maintainers
9
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cnf - npm Package Compare versions

Comparing version 3.2.0 to 3.3.0

2

package.json
{
"name": "cnf",
"version": "3.2.0",
"version": "3.3.0",
"description": "Configuration loader",

@@ -5,0 +5,0 @@ "scripts": {

@@ -8,2 +8,12 @@ var fs = require('fs');

function exportDefaultSupport(envPath) {
var envFile = require(envPath);
var keys = Object.keys(envFile);
if (keys.length === 1 && keys[0] === 'default') {
console.log(keys);
envFile = envFile.default;
}
return envFile;
}
try {

@@ -14,3 +24,3 @@ envPath = resolve.sync(env + '.app.config.js', {

});
envFile = require(envPath);
envFile = exportDefaultSupport(envPath);
} catch (ex) {

@@ -21,3 +31,3 @@ envPath = resolve.sync(env + '.js', {

});
envFile = require(envPath);
envFile = exportDefaultSupport(envPath);
}

@@ -30,3 +40,3 @@

});
globalConfig = require(globalConfigPath);
globalConfig = exportDefaultSupport(globalConfigPath);
envFile = deepExtend(globalConfig, envFile);

@@ -41,7 +51,6 @@ } catch (e) {

});
globalConfig = require(globalConfigPath);
globalConfig = exportDefaultSupport(globalConfigPath);
envFile = deepExtend(globalConfig, envFile);
} catch (e) {
}
}

@@ -125,8 +134,3 @@

var keys = Object.keys(envFile);
if(keys.length === 1 && keys[0] === 'default'){
envFile = envFile.default;
}
module.exports = envFile;
module.exports.env = env;
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