@cenk1cenk2/oclif-common 7.0.18 → 7.0.19

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 (28) hide show
  1. package/dist/_virtual/{_@oxc-project_runtime@0.124.0 → _@oxc-project_runtime@0.126.0}/helpers/decorate.mjs +1 -1
  2. package/dist/_virtual/{_@oxc-project_runtime@0.124.0 → _@oxc-project_runtime@0.126.0}/helpers/decorateMetadata.mjs +1 -1
  3. package/dist/_virtual/{_@oxc-project_runtime@0.124.0 → _@oxc-project_runtime@0.126.0}/helpers/decorateParam.mjs +1 -1
  4. package/dist/commands/base.command.mjs +7 -7
  5. package/dist/lib/cli.module.mjs +1 -1
  6. package/dist/lib/config/config.constants.mjs +1 -8
  7. package/dist/lib/config/config.module.mjs +1 -1
  8. package/dist/lib/config/config.service.mjs +14 -14
  9. package/dist/lib/fs/filesystem.module.mjs +1 -1
  10. package/dist/lib/fs/filesystem.service.mjs +2 -2
  11. package/dist/lib/locker/locker.module.mjs +1 -1
  12. package/dist/lib/locker/locker.service.mjs +2 -2
  13. package/dist/lib/logger/logger.module.mjs +1 -1
  14. package/dist/lib/logger/logger.service.mjs +13 -13
  15. package/dist/lib/logger/pipe/pipe-process-to-logger.mjs +4 -4
  16. package/dist/lib/logger/winston.service.mjs +14 -14
  17. package/dist/lib/logo/logo.module.mjs +1 -1
  18. package/dist/lib/logo/logo.service.mjs +2 -2
  19. package/dist/lib/parser/fts/env-parser.service.mjs +2 -2
  20. package/dist/lib/parser/fts/json-parser.service.mjs +2 -2
  21. package/dist/lib/parser/fts/yaml-parser.service.mjs +2 -2
  22. package/dist/lib/parser/parser.module.mjs +1 -1
  23. package/dist/lib/parser/parser.service.mjs +2 -2
  24. package/dist/lib/validator/validator.module.mjs +1 -1
  25. package/dist/lib/validator/validator.service.mjs +2 -2
  26. package/dist/utils/environment.mjs +3 -3
  27. package/dist/utils/merge.mjs +1 -1
  28. package/package.json +2 -2
@@ -1,4 +1,4 @@
1
- //#region \0@oxc-project+runtime@0.124.0/helpers/decorate.js
1
+ //#region \0@oxc-project+runtime@0.126.0/helpers/decorate.js
2
2
  function __decorate(decorators, target, key, desc) {
3
3
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
4
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -1,4 +1,4 @@
1
- //#region \0@oxc-project+runtime@0.124.0/helpers/decorateMetadata.js
1
+ //#region \0@oxc-project+runtime@0.126.0/helpers/decorateMetadata.js
2
2
  function __decorateMetadata(k, v) {
3
3
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
4
4
  }
@@ -1,4 +1,4 @@
1
- //#region \0@oxc-project+runtime@0.124.0/helpers/decorateParam.js
1
+ //#region \0@oxc-project+runtime@0.126.0/helpers/decorateParam.js
2
2
  function __decorateParam(paramIndex, decorator) {
3
3
  return function(target, key) {
4
4
  decorator(target, key, paramIndex);
@@ -19,11 +19,11 @@ import "reflect-metadata";
19
19
  var Command$1 = class extends Command {
20
20
  static baseFlags = {
21
21
  ["log-level"]: Flags.string({
22
- default: LogLevels.INFO,
22
+ default: "INFO",
23
23
  env: "LOG_LEVEL",
24
24
  description: "Set the log level of the application.",
25
25
  options: Object.values(LogLevels).map((level) => level.toLowerCase()),
26
- helpGroup: HelpGroups.CLI,
26
+ helpGroup: "CLI",
27
27
  parse: async (input) => input?.toUpperCase()
28
28
  }),
29
29
  ci: Flags.boolean({
@@ -31,14 +31,14 @@ var Command$1 = class extends Command {
31
31
  hidden: true,
32
32
  env: "CI",
33
33
  description: "Instruct whether this is running the CI/CD configuration.",
34
- helpGroup: HelpGroups.CLI
34
+ helpGroup: "CLI"
35
35
  }),
36
36
  json: Flags.boolean({
37
37
  default: false,
38
38
  hidden: true,
39
39
  env: "JSON",
40
40
  description: "Put the CLI to respond in JSON.",
41
- helpGroup: HelpGroups.CLI
41
+ helpGroup: "CLI"
42
42
  })
43
43
  };
44
44
  logger;
@@ -47,7 +47,7 @@ var Command$1 = class extends Command {
47
47
  flags;
48
48
  args;
49
49
  exit(code) {
50
- this.logger.trace("Code -> %d", code, { status: LogFieldStatus.EXIT });
50
+ this.logger.trace("Code -> %d", code, { status: "exit" });
51
51
  super.exit(code ?? 0);
52
52
  }
53
53
  /** Run all tasks from task manager. */
@@ -89,7 +89,7 @@ var Command$1 = class extends Command {
89
89
  oclif: this.config,
90
90
  command: this.ctor,
91
91
  config: {
92
- logLevel: this.flags?.["log-level"] ?? LogLevels.INFO,
92
+ logLevel: this.flags?.["log-level"] ?? "INFO",
93
93
  isJson: this.flags?.json ?? false
94
94
  }
95
95
  } };
@@ -114,7 +114,7 @@ var Command$1 = class extends Command {
114
114
  process.kill(process.pid, "SIGINT");
115
115
  });
116
116
  const terminate = () => {
117
- this.logger.fatal("Caught terminate signal.", { status: LogFieldStatus.TERMINATE });
117
+ this.logger.fatal("Caught terminate signal.", { status: "terminate" });
118
118
  process.exit(1);
119
119
  };
120
120
  process.on("SIGINT", terminate);
@@ -40,7 +40,7 @@ var CliModule = class CliModule {
40
40
  providers: [{
41
41
  provide: TOKEN_CONFIG_MODULE_OPTIONS,
42
42
  useValue: { config: {
43
- logLevel: LogLevels.INFO,
43
+ logLevel: "INFO",
44
44
  isJson: false
45
45
  } }
46
46
  }],
@@ -1,12 +1,5 @@
1
1
  //#region src/lib/config/config.constants.ts
2
- let ConfigEnvKeys = /* @__PURE__ */ function(ConfigEnvKeys) {
3
- ConfigEnvKeys["NAME"] = "__name";
4
- ConfigEnvKeys["PARSER"] = "__format";
5
- ConfigEnvKeys["ELEMENT"] = "__element";
6
- ConfigEnvKeys["ELEMENT_REPLACER"] = "${i}";
7
- return ConfigEnvKeys;
8
- }({});
9
2
  const TOKEN_CONFIG_MODULE_OPTIONS = Symbol("TOKEN_CONFIG_MODULE_OPTIONS");
10
3
 
11
4
  //#endregion
12
- export { ConfigEnvKeys, TOKEN_CONFIG_MODULE_OPTIONS };
5
+ export { TOKEN_CONFIG_MODULE_OPTIONS };
@@ -1,4 +1,4 @@
1
- import { __decorate } from "../../_virtual/_@oxc-project_runtime@0.124.0/helpers/decorate.mjs";
1
+ import { __decorate } from "../../_virtual/_@oxc-project_runtime@0.126.0/helpers/decorate.mjs";
2
2
  import { ConfigService } from "./config.service.mjs";
3
3
  import { ParserModule } from "../parser/parser.module.mjs";
4
4
  import { Global, Module } from "@nestjs/common";
@@ -1,8 +1,8 @@
1
1
  import { FileConstants } from "../../constants/file.constants.mjs";
2
- import { ConfigEnvKeys, TOKEN_CONFIG_MODULE_OPTIONS } from "./config.constants.mjs";
3
- import { __decorateMetadata } from "../../_virtual/_@oxc-project_runtime@0.124.0/helpers/decorateMetadata.mjs";
4
- import { __decorateParam } from "../../_virtual/_@oxc-project_runtime@0.124.0/helpers/decorateParam.mjs";
5
- import { __decorate } from "../../_virtual/_@oxc-project_runtime@0.124.0/helpers/decorate.mjs";
2
+ import { TOKEN_CONFIG_MODULE_OPTIONS } from "./config.constants.mjs";
3
+ import { __decorateMetadata } from "../../_virtual/_@oxc-project_runtime@0.126.0/helpers/decorateMetadata.mjs";
4
+ import { __decorateParam } from "../../_virtual/_@oxc-project_runtime@0.126.0/helpers/decorateParam.mjs";
5
+ import { __decorate } from "../../_virtual/_@oxc-project_runtime@0.126.0/helpers/decorate.mjs";
6
6
  import { LoggerService } from "../logger/logger.service.mjs";
7
7
  import "../logger/index.mjs";
8
8
  import { ParserService } from "../parser/parser.service.mjs";
@@ -29,7 +29,7 @@ let ConfigService = class ConfigService {
29
29
  }
30
30
  async onModuleInit() {
31
31
  this.root = this.options.oclif?.root;
32
- this.defaults = join(this.options.oclif?.root, FileConstants.CONFIG_SERVICE_DEFAULTS_DIR);
32
+ this.defaults = join(this.options.oclif?.root, "config");
33
33
  this.oclif = this.options.oclif;
34
34
  this.config = this.options.config;
35
35
  this.command = this.options.command;
@@ -52,7 +52,7 @@ let ConfigService = class ConfigService {
52
52
  this.logger.trace("Read config from: %s", path);
53
53
  return config;
54
54
  }
55
- async extend(paths, strategy = MergeStrategy.OVERWRITE) {
55
+ async extend(paths, strategy = "OVERWRITE") {
56
56
  this.logger.trace("Will generate config from: %o with %s", paths, strategy);
57
57
  const configs = (await Promise.all(paths.map(async (path) => {
58
58
  try {
@@ -65,7 +65,7 @@ let ConfigService = class ConfigService {
65
65
  }))).filter(Boolean);
66
66
  return this.merge(configs, strategy);
67
67
  }
68
- merge(configs, strategy = MergeStrategy.OVERWRITE) {
68
+ merge(configs, strategy = "OVERWRITE") {
69
69
  if (configs.length === 0) throw new Error("Nothing to merge, configuration files are empty.");
70
70
  return merge(strategy, ...configs);
71
71
  }
@@ -81,14 +81,14 @@ let ConfigService = class ConfigService {
81
81
  }];
82
82
  else if (typeof value === "object") {
83
83
  let extensions;
84
- if (ConfigEnvKeys.ELEMENT in value) {
85
- extensions = await iter(value[ConfigEnvKeys.ELEMENT], [...location, ConfigEnvKeys.ELEMENT]);
84
+ if ("__element" in value) {
85
+ extensions = await iter(value["__element"], [...location, "__element"]);
86
86
  this.logger.trace("Expanding location to elements: %s -> %s", location, extensions.map((extension) => extension.key.join(".")).join(", "));
87
87
  }
88
- if (ConfigEnvKeys.NAME in value && ConfigEnvKeys.PARSER in value) return [{
88
+ if ("__name" in value && "__format" in value) return [{
89
89
  key: location,
90
- env: value[ConfigEnvKeys.NAME],
91
- parser: value[ConfigEnvKeys.PARSER],
90
+ env: value["__name"],
91
+ parser: value["__format"],
92
92
  extensions
93
93
  }];
94
94
  else return iter(value, location);
@@ -117,8 +117,8 @@ let ConfigService = class ConfigService {
117
117
  if (Date.now() - startedAt > timeout) throw new Error(`Timed-out in ${timeout}ms while looking for element environment variables.`);
118
118
  if (variable.extensions.map((extension) => {
119
119
  const clone = JSON.parse(JSON.stringify(extension));
120
- clone.env = clone.env.replace(ConfigEnvKeys.ELEMENT_REPLACER, i.toString());
121
- clone.key[clone.key.findIndex((value) => value === ConfigEnvKeys.ELEMENT)] = i.toString();
120
+ clone.env = clone.env.replace("${i}", i.toString());
121
+ clone.key[clone.key.findIndex((value) => value === "__element")] = i.toString();
122
122
  data = process.env[clone.env];
123
123
  if (!data) {
124
124
  this.logger.trace("No extension for environment variable: %s -> %s", clone.key.join("."), clone.env);
@@ -1,4 +1,4 @@
1
- import { __decorate } from "../../_virtual/_@oxc-project_runtime@0.124.0/helpers/decorate.mjs";
1
+ import { __decorate } from "../../_virtual/_@oxc-project_runtime@0.126.0/helpers/decorate.mjs";
2
2
  import { FileSystemService } from "./filesystem.service.mjs";
3
3
  import { Global, Module } from "@nestjs/common";
4
4
 
@@ -1,5 +1,5 @@
1
- import { __decorateMetadata } from "../../_virtual/_@oxc-project_runtime@0.124.0/helpers/decorateMetadata.mjs";
2
- import { __decorate } from "../../_virtual/_@oxc-project_runtime@0.124.0/helpers/decorate.mjs";
1
+ import { __decorateMetadata } from "../../_virtual/_@oxc-project_runtime@0.126.0/helpers/decorateMetadata.mjs";
2
+ import { __decorate } from "../../_virtual/_@oxc-project_runtime@0.126.0/helpers/decorate.mjs";
3
3
  import { LoggerService } from "../logger/logger.service.mjs";
4
4
  import "../logger/index.mjs";
5
5
  import { Injectable } from "@nestjs/common";
@@ -1,4 +1,4 @@
1
- import { __decorate } from "../../_virtual/_@oxc-project_runtime@0.124.0/helpers/decorate.mjs";
1
+ import { __decorate } from "../../_virtual/_@oxc-project_runtime@0.126.0/helpers/decorate.mjs";
2
2
  import { LoggerService } from "../logger/logger.service.mjs";
3
3
  import "../logger/index.mjs";
4
4
  import { FileSystemService } from "../fs/filesystem.service.mjs";
@@ -1,5 +1,5 @@
1
- import { __decorateMetadata } from "../../_virtual/_@oxc-project_runtime@0.124.0/helpers/decorateMetadata.mjs";
2
- import { __decorate } from "../../_virtual/_@oxc-project_runtime@0.124.0/helpers/decorate.mjs";
1
+ import { __decorateMetadata } from "../../_virtual/_@oxc-project_runtime@0.126.0/helpers/decorateMetadata.mjs";
2
+ import { __decorate } from "../../_virtual/_@oxc-project_runtime@0.126.0/helpers/decorate.mjs";
3
3
  import { LoggerService } from "../logger/logger.service.mjs";
4
4
  import "../logger/index.mjs";
5
5
  import { FileSystemService } from "../fs/filesystem.service.mjs";
@@ -1,4 +1,4 @@
1
- import { __decorate } from "../../_virtual/_@oxc-project_runtime@0.124.0/helpers/decorate.mjs";
1
+ import { __decorate } from "../../_virtual/_@oxc-project_runtime@0.126.0/helpers/decorate.mjs";
2
2
  import { WinstonService } from "./winston.service.mjs";
3
3
  import { LoggerService } from "./logger.service.mjs";
4
4
  import { ConfigModule } from "../config/config.module.mjs";
@@ -1,6 +1,6 @@
1
1
  import { LogFieldStatus, LogLevels } from "./logger.constants.mjs";
2
- import { __decorateMetadata } from "../../_virtual/_@oxc-project_runtime@0.124.0/helpers/decorateMetadata.mjs";
3
- import { __decorate } from "../../_virtual/_@oxc-project_runtime@0.124.0/helpers/decorate.mjs";
2
+ import { __decorateMetadata } from "../../_virtual/_@oxc-project_runtime@0.126.0/helpers/decorateMetadata.mjs";
3
+ import { __decorate } from "../../_virtual/_@oxc-project_runtime@0.126.0/helpers/decorate.mjs";
4
4
  import { WinstonService } from "./winston.service.mjs";
5
5
  import { Injectable, Scope } from "@nestjs/common";
6
6
  import { splat } from "listr2";
@@ -20,37 +20,37 @@ let LoggerService = class LoggerService {
20
20
  return this.parseMessage(level, data, args);
21
21
  }
22
22
  direct(data, ...args) {
23
- return this.parseMessage(LogLevels.DIRECT, data, args);
23
+ return this.parseMessage("DIRECT", data, args);
24
24
  }
25
25
  fatal(data, ...args) {
26
- return this.parseMessage(LogLevels.FATAL, data, args);
26
+ return this.parseMessage("FATAL", data, args);
27
27
  }
28
28
  error(data, ...args) {
29
- return this.parseMessage(LogLevels.ERROR, data, args);
29
+ return this.parseMessage("ERROR", data, args);
30
30
  }
31
31
  warn(data, ...args) {
32
- return this.parseMessage(LogLevels.WARN, data, args);
32
+ return this.parseMessage("WARN", data, args);
33
33
  }
34
34
  info(data, ...args) {
35
- return this.parseMessage(LogLevels.INFO, data, args);
35
+ return this.parseMessage("INFO", data, args);
36
36
  }
37
37
  verbose(data, ...args) {
38
- return this.parseMessage(LogLevels.VERBOSE, data, args);
38
+ return this.parseMessage("VERBOSE", data, args);
39
39
  }
40
40
  debug(data, ...args) {
41
- return this.parseMessage(LogLevels.DEBUG, data, args);
41
+ return this.parseMessage("DEBUG", data, args);
42
42
  }
43
43
  trace(data, ...args) {
44
- return this.parseMessage(LogLevels.TRACE, data, args);
44
+ return this.parseMessage("TRACE", data, args);
45
45
  }
46
46
  run(data, ...args) {
47
- return this.parseMessage(LogLevels.INFO, data, args, { status: LogFieldStatus.RUN });
47
+ return this.parseMessage("INFO", data, args, { status: "run" });
48
48
  }
49
49
  end(data, ...args) {
50
- return this.parseMessage(LogLevels.INFO, data, args, { status: LogFieldStatus.END });
50
+ return this.parseMessage("INFO", data, args, { status: "end" });
51
51
  }
52
52
  stage(data, ...args) {
53
- return this.parseMessage(LogLevels.TRACE, data, args, { status: LogFieldStatus.STAGE });
53
+ return this.parseMessage("TRACE", data, args, { status: "stage" });
54
54
  }
55
55
  splat(...args) {
56
56
  const message = args.shift();
@@ -7,10 +7,10 @@ import { Writable } from "stream";
7
7
  */
8
8
  function pipeProcessToLogger(logger, instance, options) {
9
9
  options = {
10
- start: LogLevels.INFO,
11
- end: LogLevels.INFO,
12
- stdout: LogLevels.INFO,
13
- stderr: LogLevels.WARN,
10
+ start: "INFO",
11
+ end: "INFO",
12
+ stdout: "INFO",
13
+ stderr: "WARN",
14
14
  ...options
15
15
  };
16
16
  if (options.start) logger.run(instance.spawnargs.join(" "), {
@@ -1,8 +1,8 @@
1
1
  import { TOKEN_CONFIG_MODULE_OPTIONS } from "../config/config.constants.mjs";
2
2
  import { LogLevels } from "./logger.constants.mjs";
3
- import { __decorateMetadata } from "../../_virtual/_@oxc-project_runtime@0.124.0/helpers/decorateMetadata.mjs";
4
- import { __decorateParam } from "../../_virtual/_@oxc-project_runtime@0.124.0/helpers/decorateParam.mjs";
5
- import { __decorate } from "../../_virtual/_@oxc-project_runtime@0.124.0/helpers/decorate.mjs";
3
+ import { __decorateMetadata } from "../../_virtual/_@oxc-project_runtime@0.126.0/helpers/decorateMetadata.mjs";
4
+ import { __decorateParam } from "../../_virtual/_@oxc-project_runtime@0.126.0/helpers/decorateParam.mjs";
5
+ import { __decorate } from "../../_virtual/_@oxc-project_runtime@0.126.0/helpers/decorate.mjs";
6
6
  import { Inject, Injectable } from "@nestjs/common";
7
7
  import { color, figures } from "listr2";
8
8
  import { EOL } from "os";
@@ -34,10 +34,10 @@ let WinstonService = class WinstonService {
34
34
  levels: Object.fromEntries(Object.values(LogLevels).map((level, i) => {
35
35
  return [level, i];
36
36
  })),
37
- silent: this.options.config.logLevel === LogLevels.SILENT || this.options.config.isJson,
38
- transports: [new transports.Console({ stderrLevels: [LogLevels.FATAL, LogLevels.ERROR] })]
37
+ silent: this.options.config.logLevel === "SILENT" || this.options.config.isJson,
38
+ transports: [new transports.Console({ stderrLevels: ["FATAL", "ERROR"] })]
39
39
  });
40
- logger.log(LogLevels.TRACE, "Initiated new winston with level: %s", this.options.config.logLevel, { context: this.constructor.name });
40
+ logger.log("TRACE", "Initiated new winston with level: %s", this.options.config.logLevel, { context: this.constructor.name });
41
41
  return logger;
42
42
  }
43
43
  logColoring({ level, message, context, status }) {
@@ -49,31 +49,31 @@ let WinstonService = class WinstonService {
49
49
  return input;
50
50
  };
51
51
  switch (level) {
52
- case LogLevels.DIRECT: return message;
53
- case LogLevels.FATAL:
52
+ case "DIRECT": return message;
53
+ case "FATAL":
54
54
  coloring = color.red;
55
55
  msgColoring = color.red;
56
56
  break;
57
- case LogLevels.ERROR:
57
+ case "ERROR":
58
58
  coloring = color.red;
59
59
  icon = figures.cross;
60
60
  break;
61
- case LogLevels.WARN:
61
+ case "WARN":
62
62
  coloring = color.yellow;
63
63
  icon = figures.warning;
64
64
  break;
65
- case LogLevels.INFO:
65
+ case "INFO":
66
66
  coloring = color.green;
67
67
  icon = figures.pointerSmall;
68
68
  break;
69
- case LogLevels.VERBOSE:
69
+ case "VERBOSE":
70
70
  coloring = color.dim;
71
71
  break;
72
- case LogLevels.DEBUG:
72
+ case "DEBUG":
73
73
  coloring = color.cyan;
74
74
  msgColoring = color.dim;
75
75
  break;
76
- case LogLevels.TRACE:
76
+ case "TRACE":
77
77
  coloring = color.magenta;
78
78
  msgColoring = color.dim;
79
79
  break;
@@ -1,4 +1,4 @@
1
- import { __decorate } from "../../_virtual/_@oxc-project_runtime@0.124.0/helpers/decorate.mjs";
1
+ import { __decorate } from "../../_virtual/_@oxc-project_runtime@0.126.0/helpers/decorate.mjs";
2
2
  import { LogoService } from "./logo.service.mjs";
3
3
  import { Module } from "@nestjs/common";
4
4
 
@@ -1,5 +1,5 @@
1
- import { __decorateMetadata } from "../../_virtual/_@oxc-project_runtime@0.124.0/helpers/decorateMetadata.mjs";
2
- import { __decorate } from "../../_virtual/_@oxc-project_runtime@0.124.0/helpers/decorate.mjs";
1
+ import { __decorateMetadata } from "../../_virtual/_@oxc-project_runtime@0.126.0/helpers/decorateMetadata.mjs";
2
+ import { __decorate } from "../../_virtual/_@oxc-project_runtime@0.126.0/helpers/decorate.mjs";
3
3
  import { ConfigService } from "../config/config.service.mjs";
4
4
  import "../config/index.mjs";
5
5
  import { TOKEN_LOGO_GENERATOR } from "./logo.constants.mjs";
@@ -1,5 +1,5 @@
1
- import { __decorateMetadata } from "../../../_virtual/_@oxc-project_runtime@0.124.0/helpers/decorateMetadata.mjs";
2
- import { __decorate } from "../../../_virtual/_@oxc-project_runtime@0.124.0/helpers/decorate.mjs";
1
+ import { __decorateMetadata } from "../../../_virtual/_@oxc-project_runtime@0.126.0/helpers/decorateMetadata.mjs";
2
+ import { __decorate } from "../../../_virtual/_@oxc-project_runtime@0.126.0/helpers/decorate.mjs";
3
3
  import { LoggerService } from "../../logger/logger.service.mjs";
4
4
  import "../../logger/index.mjs";
5
5
  import { Injectable } from "@nestjs/common";
@@ -1,5 +1,5 @@
1
- import { __decorateMetadata } from "../../../_virtual/_@oxc-project_runtime@0.124.0/helpers/decorateMetadata.mjs";
2
- import { __decorate } from "../../../_virtual/_@oxc-project_runtime@0.124.0/helpers/decorate.mjs";
1
+ import { __decorateMetadata } from "../../../_virtual/_@oxc-project_runtime@0.126.0/helpers/decorateMetadata.mjs";
2
+ import { __decorate } from "../../../_virtual/_@oxc-project_runtime@0.126.0/helpers/decorate.mjs";
3
3
  import { LoggerService } from "../../logger/logger.service.mjs";
4
4
  import "../../logger/index.mjs";
5
5
  import { Injectable } from "@nestjs/common";
@@ -1,5 +1,5 @@
1
- import { __decorateMetadata } from "../../../_virtual/_@oxc-project_runtime@0.124.0/helpers/decorateMetadata.mjs";
2
- import { __decorate } from "../../../_virtual/_@oxc-project_runtime@0.124.0/helpers/decorate.mjs";
1
+ import { __decorateMetadata } from "../../../_virtual/_@oxc-project_runtime@0.126.0/helpers/decorateMetadata.mjs";
2
+ import { __decorate } from "../../../_virtual/_@oxc-project_runtime@0.126.0/helpers/decorate.mjs";
3
3
  import { LoggerService } from "../../logger/logger.service.mjs";
4
4
  import "../../logger/index.mjs";
5
5
  import { Injectable } from "@nestjs/common";
@@ -1,4 +1,4 @@
1
- import { __decorate } from "../../_virtual/_@oxc-project_runtime@0.124.0/helpers/decorate.mjs";
1
+ import { __decorate } from "../../_virtual/_@oxc-project_runtime@0.126.0/helpers/decorate.mjs";
2
2
  import { FilesystemModule } from "../fs/filesystem.module.mjs";
3
3
  import "../fs/index.mjs";
4
4
  import { ParserService } from "./parser.service.mjs";
@@ -1,5 +1,5 @@
1
- import { __decorateMetadata } from "../../_virtual/_@oxc-project_runtime@0.124.0/helpers/decorateMetadata.mjs";
2
- import { __decorate } from "../../_virtual/_@oxc-project_runtime@0.124.0/helpers/decorate.mjs";
1
+ import { __decorateMetadata } from "../../_virtual/_@oxc-project_runtime@0.126.0/helpers/decorateMetadata.mjs";
2
+ import { __decorate } from "../../_virtual/_@oxc-project_runtime@0.126.0/helpers/decorate.mjs";
3
3
  import { LoggerService } from "../logger/logger.service.mjs";
4
4
  import "../logger/index.mjs";
5
5
  import { FileSystemService } from "../fs/filesystem.service.mjs";
@@ -1,4 +1,4 @@
1
- import { __decorate } from "../../_virtual/_@oxc-project_runtime@0.124.0/helpers/decorate.mjs";
1
+ import { __decorate } from "../../_virtual/_@oxc-project_runtime@0.126.0/helpers/decorate.mjs";
2
2
  import { ValidatorService } from "./validator.service.mjs";
3
3
  import { Global, Module } from "@nestjs/common";
4
4
 
@@ -1,5 +1,5 @@
1
- import { __decorateMetadata } from "../../_virtual/_@oxc-project_runtime@0.124.0/helpers/decorateMetadata.mjs";
2
- import { __decorate } from "../../_virtual/_@oxc-project_runtime@0.124.0/helpers/decorate.mjs";
1
+ import { __decorateMetadata } from "../../_virtual/_@oxc-project_runtime@0.126.0/helpers/decorateMetadata.mjs";
2
+ import { __decorate } from "../../_virtual/_@oxc-project_runtime@0.126.0/helpers/decorate.mjs";
3
3
  import { LoggerService } from "../logger/logger.service.mjs";
4
4
  import "../logger/index.mjs";
5
5
  import { TOKEN_VALIDATOR_SERVICE_OPTIONS } from "./validator.constants.mjs";
@@ -3,13 +3,13 @@ import "../lib/logger/index.mjs";
3
3
 
4
4
  //#region src/utils/environment.ts
5
5
  function isVerbose(logLevel) {
6
- return logLevel === LogLevels.VERBOSE;
6
+ return logLevel === "VERBOSE";
7
7
  }
8
8
  function isDebug(logLevel) {
9
- return [LogLevels.DEBUG, LogLevels.TRACE].includes(logLevel);
9
+ return ["DEBUG", "TRACE"].includes(logLevel);
10
10
  }
11
11
  function isSilent(logLevel) {
12
- return logLevel === LogLevels.SILENT;
12
+ return logLevel === "SILENT";
13
13
  }
14
14
 
15
15
  //#endregion
@@ -5,7 +5,7 @@ import deepmerge from "deepmerge";
5
5
  /** Merge objects deep from overwriting the properties from source to target.
6
6
  * Does not mutate the object */
7
7
  function merge(strategy, ...source) {
8
- return deepmerge.all(source, { arrayMerge: strategy === MergeStrategy.EXTEND ? (dest, src) => [...dest, ...src].filter(uniqueArrayFilter) : (_, src) => src });
8
+ return deepmerge.all(source, { arrayMerge: strategy === "EXTEND" ? (dest, src) => [...dest, ...src].filter(uniqueArrayFilter) : (_, src) => src });
9
9
  }
10
10
  function uniqueArrayFilter(value, index, self) {
11
11
  return self.indexOf(value) === index;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cenk1cenk2/oclif-common",
3
- "version": "7.0.18",
3
+ "version": "7.0.19",
4
4
  "description": "Oclif common package for oclif2 projects.",
5
5
  "repository": "https://gitlab.kilic.dev/libraries/oclif-tools",
6
6
  "type": "module",
@@ -47,7 +47,7 @@
47
47
  "dependencies": {
48
48
  "@nestjs/common": "^11.1.19",
49
49
  "@nestjs/core": "^11.1.19",
50
- "@oxc-project/runtime": "^0.125.0",
50
+ "@oxc-project/runtime": "^0.126.0",
51
51
  "deepmerge": "^4.3.1",
52
52
  "object-path-immutable": "^4.1.2",
53
53
  "reflect-metadata": "^0.2.1",