Socket
Socket
Sign inDemoInstall

@foal/core

Package Overview
Dependencies
108
Maintainers
1
Versions
96
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.8.0 to 0.8.1

16

lib/core/config.js

@@ -16,10 +16,2 @@ "use strict";

}
const defaultJSONValue = this.readJSONValue('config/default.json', key);
if (defaultJSONValue !== undefined) {
return defaultJSONValue;
}
const defaultYAMLValue = this.readYAMLValue('config/default.yml', key);
if (defaultYAMLValue !== undefined) {
return defaultYAMLValue;
}
const envJSONFilePath = `config/${process.env.NODE_ENV || 'development'}.json`;

@@ -35,2 +27,10 @@ const envJSONValue = this.readJSONValue(envJSONFilePath, key);

}
const defaultJSONValue = this.readJSONValue('config/default.json', key);
if (defaultJSONValue !== undefined) {
return defaultJSONValue;
}
const defaultYAMLValue = this.readYAMLValue('config/default.yml', key);
if (defaultYAMLValue !== undefined) {
return defaultYAMLValue;
}
return defaultValue;

@@ -37,0 +37,0 @@ }

{
"name": "@foal/core",
"version": "0.8.0",
"version": "0.8.1",
"description": "High level web framework to create enterprise-grade Node.JS applications.",

@@ -5,0 +5,0 @@ "main": "./lib/index.js",

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc