@cenk1cenk2/oclif-common 3.1.0-beta.15 → 3.1.0-beta.16
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/dist/index.js +3 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -701,20 +701,20 @@ var ConfigService = class {
|
|
|
701
701
|
variable.extensions.map(async (extension) => {
|
|
702
702
|
const clone = JSON.parse(JSON.stringify(extension));
|
|
703
703
|
clone.env = clone.env.replace("${i}" /* ELEMENT_REPLACER */, i.toString());
|
|
704
|
-
clone.key[clone.key.findIndex((value) => value === "__element" /* ELEMENT */)] = i;
|
|
704
|
+
clone.key[clone.key.findIndex((value) => value === "__element" /* ELEMENT */)] = i.toString();
|
|
705
705
|
data = process.env[clone.env];
|
|
706
706
|
if (!data) {
|
|
707
707
|
this.logger.trace("No extension for environment variable: %s -> %s", clone.key.join("."), clone.env);
|
|
708
708
|
return;
|
|
709
709
|
}
|
|
710
|
-
|
|
710
|
+
config = await cb(config, clone, data);
|
|
711
|
+
return true;
|
|
711
712
|
})
|
|
712
713
|
)).filter(Boolean);
|
|
713
714
|
if (extensions.length === 0) {
|
|
714
715
|
this.logger.trace("No more extensions for environment variables: %s -> %d", variable.key.join("."), i);
|
|
715
716
|
break;
|
|
716
717
|
}
|
|
717
|
-
console.log(extensions);
|
|
718
718
|
}
|
|
719
719
|
}
|
|
720
720
|
})
|
package/package.json
CHANGED