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

frack-settings

Package Overview
Dependencies
Maintainers
2
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

frack-settings - npm Package Compare versions

Comparing version 0.1.5 to 0.1.6

2

package.json
{
"name": "frack-settings",
"version": "0.1.5",
"version": "0.1.6",
"description": "Settings defaults and runtime loader from rc file",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -39,5 +39,5 @@ /* eslint-disable global-require */

const settings = getFrackRc()
guards.checkAppEnv(settings)
const currentEnv = process.env.APP_ENV || 'development'
guards.checkAppEnv(settings, currentEnv)
return deepMerge(settings[currentEnv], settings.common)
}

@@ -1,2 +0,2 @@

function checkAppEnv(frackSettings) {
function checkAppEnv(frackSettings, currentEnv) {
if (typeof frackSettings !== 'object') {

@@ -6,5 +6,5 @@ throw new Error(`Settings should be object instead of ${typeof frackSettings}`)

if (Object.keys(frackSettings).indexOf(process.env.APP_ENV) === -1) {
throw new Error(`Enviroment variable APP_ENV with value ${process.env
.APP_ENV} doesn't match any app enviroment section in .frackrc.js`)
if (Object.keys(frackSettings).indexOf(currentEnv) === -1) {
throw new Error(`Enviroment variable APP_ENV with value ${currentEnv}
doesn't match any app enviroment section in .frackrc.js`)
}

@@ -11,0 +11,0 @@ }

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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