Socket
Socket
Sign inDemoInstall

config-js

Package Overview
Dependencies
20
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.1.7 to 1.1.8

9

index.js

@@ -179,5 +179,8 @@ /*!

// invalid value found and no defaukt value, then we throw an error
if (!isValid && typeof defaultValue === 'undefined' && !fromEnv)
throw new Error('No config value found');
// invalid value found and no default value, then we throw an error
if (!isValid && typeof defaultValue === 'undefined' && !fromEnv) {
debug('Var statuses ','!isValid',!isValid,'typeof defaultValue',
typeof defaultValue, '!fromEnv',!fromEnv);
throw new Error('No config value found for: '+propertyName);
}

@@ -184,0 +187,0 @@ // either return found value or default

{
"name": "config-js",
"version": "1.1.7",
"version": "1.1.8",
"description": "A simple config module. Support for regions and auto-load when file changes.",

@@ -5,0 +5,0 @@ "keywords": [

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