@keeex/projectconfig 5.0.0 → 5.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/loader.js +2 -2
- package/package.json +1 -1
package/lib/loader.js
CHANGED
|
@@ -46,7 +46,7 @@ const getConfigSuffix = () => {
|
|
|
46
46
|
/** If a suffix is present, return both the name without and with the suffix */
|
|
47
47
|
const applySuffix = (basestr) => {
|
|
48
48
|
const suffix = getConfigSuffix();
|
|
49
|
-
return suffix ? [
|
|
49
|
+
return suffix ? [`${basestr}${suffix}`, basestr] : [basestr];
|
|
50
50
|
};
|
|
51
51
|
let defaultDirsCache = null;
|
|
52
52
|
/** Compute the default directories to look through */
|
|
@@ -136,7 +136,7 @@ const getFromCli = async (argv, argName, candidates) => {
|
|
|
136
136
|
};
|
|
137
137
|
/** Return the specified object from the first available source */
|
|
138
138
|
const getBaseData = async (argv, argName, candidates, predicate) => {
|
|
139
|
-
const result = (await getFromCli(argv, argName, candidates)) ?? getFromFile(argName, candidates);
|
|
139
|
+
const result = (await getFromCli(argv, argName, candidates)) ?? (await getFromFile(argName, candidates));
|
|
140
140
|
if (predicate) {
|
|
141
141
|
try {
|
|
142
142
|
predicate(result, true);
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@keeex/projectconfig","version":"5.0.
|
|
1
|
+
{"name":"@keeex/projectconfig","version":"5.0.2","description":"Load project configuration with separate secrets","main":"./lib/index.js","scripts":{},"type":"module","author":"KeeeX SAS","contributors":[{"email":"gabriel@keeex.net","name":"Gabriel Paul \"Cley Faye\" Risterucci"}],"license":"SEE LICENSE IN LICENSE","files":["lib"],"exports":{".":"./lib/index.js","./env.js":"./lib/env.js","./index.js":"./lib/index.js","./lib/env.js":"./lib/env.js","./lib/index.js":"./lib/index.js","./lib/loader.js":"./lib/loader.js","./lib/types.js":"./lib/types.js","./loader.js":"./lib/loader.js","./types.js":"./lib/types.js"},"homepage":"https://keeex.me/oss"}
|