@poppinss/utils
Advanced tools
Comparing version 2.2.5 to 2.2.6
@@ -45,5 +45,6 @@ "use strict"; | ||
} | ||
if (!this.config[listName][keyName]) { | ||
const defaultValue = this.config[keyName]; | ||
if (!this.config[listName][defaultValue]) { | ||
throw new Exception_1.Exception([ | ||
`Invalid "${this.serviceName}" config. "${keyName}" is not defined inside "${listName}".`, | ||
`Invalid "${this.serviceName}" config. "${defaultValue}" is not defined inside "${listName}".`, | ||
`Make sure set it inside "${this.configLocation}"`, | ||
@@ -50,0 +51,0 @@ ].join(' ')); |
{ | ||
"name": "@poppinss/utils", | ||
"version": "2.2.5", | ||
"version": "2.2.6", | ||
"description": "Handy utilities for repetitive work", | ||
@@ -5,0 +5,0 @@ "main": "build/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
57618
784