@cenk1cenk2/oclif-common 3.9.2 → 3.9.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.
@@ -411,7 +411,8 @@ var ConfigService = class {
411
411
  this.defaults = (0, import_path2.join)(this.oclif.root, "config" /* CONFIG_SERVICE_DEFAULTS_DIR */);
412
412
  this.logger = new Logger(this.constructor.name, { level: config.logLevel });
413
413
  this.parser = new ParserService();
414
- Object.assign(ConfigService.instance, config);
414
+ Object.assign(this, config);
415
+ ConfigService.instance = this;
415
416
  this.recalculate();
416
417
  this.logger.trace("Created a new instance.");
417
418
  }
@@ -407,7 +407,8 @@ var ConfigService = class {
407
407
  this.defaults = (0, import_path2.join)(this.oclif.root, "config" /* CONFIG_SERVICE_DEFAULTS_DIR */);
408
408
  this.logger = new Logger(this.constructor.name, { level: config.logLevel });
409
409
  this.parser = new ParserService();
410
- Object.assign(ConfigService.instance, config);
410
+ Object.assign(this, config);
411
+ ConfigService.instance = this;
411
412
  this.recalculate();
412
413
  this.logger.trace("Created a new instance.");
413
414
  }
@@ -574,7 +574,8 @@ var ConfigService = class {
574
574
  this.defaults = (0, import_path2.join)(this.oclif.root, "config" /* CONFIG_SERVICE_DEFAULTS_DIR */);
575
575
  this.logger = new Logger(this.constructor.name, { level: config.logLevel });
576
576
  this.parser = new ParserService();
577
- Object.assign(ConfigService.instance, config);
577
+ Object.assign(this, config);
578
+ ConfigService.instance = this;
578
579
  this.recalculate();
579
580
  this.logger.trace("Created a new instance.");
580
581
  }
package/dist/index.js CHANGED
@@ -470,7 +470,8 @@ var ConfigService = class {
470
470
  this.defaults = (0, import_path2.join)(this.oclif.root, "config" /* CONFIG_SERVICE_DEFAULTS_DIR */);
471
471
  this.logger = new Logger(this.constructor.name, { level: config.logLevel });
472
472
  this.parser = new ParserService();
473
- Object.assign(ConfigService.instance, config);
473
+ Object.assign(this, config);
474
+ ConfigService.instance = this;
474
475
  this.recalculate();
475
476
  this.logger.trace("Created a new instance.");
476
477
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cenk1cenk2/oclif-common",
3
- "version": "3.9.2",
3
+ "version": "3.9.3",
4
4
  "description": "Oclif common package for oclif2 projects.",
5
5
  "repository": "https://gitlab.kilic.dev/libraries/oclif-tools",
6
6
  "author": {