@dbpath/environments
Advanced tools
Comparing version 0.2.18 to 0.2.19
@@ -73,4 +73,8 @@ "use strict"; | ||
const env = envs[envName]; | ||
if (env) | ||
if (env) { | ||
const errors = (0, exports.environmentValidator)(envName)(env); | ||
if (errors.length > 0) | ||
return [`Errors loading environment details`, ...errors, 'You need to edit the config file before you can use this environment']; | ||
return { env, envName }; | ||
} | ||
return [`Environment ${envName} not found. Legal names are ${Object.keys(envs).sort()}`]; | ||
@@ -77,0 +81,0 @@ }); |
{ | ||
"name": "@dbpath/environments", | ||
"description": "", | ||
"version": "0.2.18", | ||
"version": "0.2.19", | ||
"main": "dist/index", | ||
@@ -20,7 +20,7 @@ "types": "dist/index", | ||
"dependencies": { | ||
"@dbpath/utils": "0.2.18", | ||
"@dbpath/files": "0.2.18", | ||
"@dbpath/postgres": "0.2.18", | ||
"@dbpath/mysql": "0.2.18", | ||
"@dbpath/oracle": "0.2.18" | ||
"@dbpath/utils": "0.2.19", | ||
"@dbpath/files": "0.2.19", | ||
"@dbpath/postgres": "0.2.19", | ||
"@dbpath/mysql": "0.2.19", | ||
"@dbpath/oracle": "0.2.19" | ||
}, | ||
@@ -27,0 +27,0 @@ "devDependencies": { |
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
20174
353
+ Added@dbpath/config@0.2.19(transitive)
+ Added@dbpath/dal@0.2.19(transitive)
+ Added@dbpath/files@0.2.19(transitive)
+ Added@dbpath/fixtures@0.2.19(transitive)
+ Added@dbpath/mysql@0.2.19(transitive)
+ Added@dbpath/oracle@0.2.19(transitive)
+ Added@dbpath/postgres@0.2.19(transitive)
+ Added@dbpath/types@0.2.19(transitive)
+ Added@dbpath/utils@0.2.19(transitive)
- Removed@dbpath/config@0.2.18(transitive)
- Removed@dbpath/dal@0.2.18(transitive)
- Removed@dbpath/files@0.2.18(transitive)
- Removed@dbpath/fixtures@0.2.18(transitive)
- Removed@dbpath/mysql@0.2.18(transitive)
- Removed@dbpath/oracle@0.2.18(transitive)
- Removed@dbpath/postgres@0.2.18(transitive)
- Removed@dbpath/types@0.2.18(transitive)
- Removed@dbpath/utils@0.2.18(transitive)
Updated@dbpath/files@0.2.19
Updated@dbpath/mysql@0.2.19
Updated@dbpath/oracle@0.2.19
Updated@dbpath/postgres@0.2.19
Updated@dbpath/utils@0.2.19