@dbpath/environments
Advanced tools
Comparing version 0.3.9 to 0.3.10
@@ -44,2 +44,5 @@ "use strict"; | ||
exports.stateFileName = 'dbpath.state.json'; | ||
function envNotFound(envName, envs) { | ||
return [`Environment ${envName} not found. Legal names are ${Object.keys(envs).sort()}`]; | ||
} | ||
function currentEnvName(cwd, marker, env, cleanE) { | ||
@@ -54,3 +57,3 @@ if (env) | ||
return foundEnv; | ||
return [`Environment ${foundEnv} not found. Legal values are ${Object.keys(cleanE).sort().join(', ')}`]; | ||
return envNotFound(foundEnv, cleanE); | ||
} | ||
@@ -81,3 +84,3 @@ exports.currentEnvName = currentEnvName; | ||
} | ||
return [`Environment ${envName} not found. Legal names are ${Object.keys(envs).sort()}`]; | ||
return envNotFound(envName, envs); | ||
}); | ||
@@ -84,0 +87,0 @@ } |
{ | ||
"name": "@dbpath/environments", | ||
"description": "", | ||
"version": "0.3.9", | ||
"version": "0.3.10", | ||
"main": "dist/index", | ||
@@ -20,7 +20,7 @@ "types": "dist/index", | ||
"dependencies": { | ||
"@dbpath/utils": "0.3.9", | ||
"@dbpath/files": "0.3.9", | ||
"@dbpath/postgres": "0.3.9", | ||
"@dbpath/mysql": "0.3.9", | ||
"@dbpath/oracle": "0.3.9" | ||
"@dbpath/utils": "0.3.10", | ||
"@dbpath/files": "0.3.10", | ||
"@dbpath/postgres": "0.3.10", | ||
"@dbpath/mysql": "0.3.10", | ||
"@dbpath/oracle": "0.3.10" | ||
}, | ||
@@ -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
20454
363
+ Added@dbpath/config@0.3.10(transitive)
+ Added@dbpath/dal@0.3.10(transitive)
+ Added@dbpath/files@0.3.10(transitive)
+ Added@dbpath/fixtures@0.3.10(transitive)
+ Added@dbpath/mysql@0.3.10(transitive)
+ Added@dbpath/oracle@0.3.10(transitive)
+ Added@dbpath/postgres@0.3.10(transitive)
+ Added@dbpath/types@0.3.10(transitive)
+ Added@dbpath/utils@0.3.10(transitive)
- Removed@dbpath/config@0.3.9(transitive)
- Removed@dbpath/dal@0.3.9(transitive)
- Removed@dbpath/files@0.3.9(transitive)
- Removed@dbpath/fixtures@0.3.9(transitive)
- Removed@dbpath/mysql@0.3.9(transitive)
- Removed@dbpath/oracle@0.3.9(transitive)
- Removed@dbpath/postgres@0.3.9(transitive)
- Removed@dbpath/types@0.3.9(transitive)
- Removed@dbpath/utils@0.3.9(transitive)
Updated@dbpath/files@0.3.10
Updated@dbpath/mysql@0.3.10
Updated@dbpath/oracle@0.3.10
Updated@dbpath/postgres@0.3.10
Updated@dbpath/utils@0.3.10