@cenk1cenk2/oclif-common 3.1.0-beta.2 → 3.1.0-beta.3

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.
Files changed (2) hide show
  1. package/dist/index.js +4 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -653,7 +653,7 @@ var ConfigService = class {
653
653
  extras.push(await iter(value["__element" /* ELEMENT */], [...location, "__element" /* ELEMENT */]));
654
654
  }
655
655
  if ("__name" /* NAME */ in value && "__format" /* PARSER */ in value) {
656
- return [
656
+ const variable = [
657
657
  {
658
658
  key: location,
659
659
  env: value["__name" /* NAME */],
@@ -661,6 +661,8 @@ var ConfigService = class {
661
661
  },
662
662
  ...extras
663
663
  ];
664
+ this.logger.trace("Added to search for environment variables: %o", variable);
665
+ return variable;
664
666
  } else {
665
667
  return iter(value, location);
666
668
  }
@@ -692,6 +694,7 @@ var ConfigService = class {
692
694
  throw new Error(`Timed-out in ${timeout}ms while looking for element environment variables.`);
693
695
  }
694
696
  const clone = JSON.parse(JSON.stringify(variable));
697
+ this.logger.trace("Looking for environment variable element: %o", clone);
695
698
  data = process.env[clone.env.replace("${i}" /* ELEMENT_REPLACER */, i.toString())];
696
699
  if (!data) {
697
700
  this.logger.trace("No more variable available: %s -> %d", variable.env, i);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cenk1cenk2/oclif-common",
3
- "version": "3.1.0-beta.2",
3
+ "version": "3.1.0-beta.3",
4
4
  "description": "Oclif common package for oclif2 projects.",
5
5
  "repository": "https://gitlab.kilic.dev/libraries/oclif-tools",
6
6
  "author": {