@cenk1cenk2/oclif-common 6.2.6 → 6.2.8

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.d.ts CHANGED
@@ -404,4 +404,4 @@ declare const notFoundHook: Hook<'command_not_found'>;
404
404
 
405
405
  declare const updateNotifierHook: Hook<'init'>;
406
406
 
407
- export { ClassType, CliModule, CliModuleOptions, Command, CommonLockerData, ConfigIterator, ConfigModule, ConfigModuleOptions, ConfigService, DeepPartial, EnvironmentVariableParser, FileConstants, FileSystemService, FilesystemModule, GenericParser, GlobalConfig, HelpGroups, InferArgs, InferFlags, JsonParser, LockData, LockableData, LockerModule, LockerService, LockerServiceOptions, LogFieldStatus, LogLevels, LoggerFormat, LoggerModule, LoggerService, LogoGeneratorFn, LogoModule, LogoService, MergeStrategy, ParserModule, ParserService, PipeProcessToLoggerOptions, RegisterHook, SetCtxAssignOptions, SetCtxDefaultsOptions, ShouldRunAfterHook, ShouldRunBeforeHook, TOKEN_LOGO_GENERATOR, TOKEN_VALIDATOR_SERVICE_OPTIONS, UnlockData, ValidatorModule, ValidatorService, ValidatorServiceOptions, Winston, WinstonService, YamlParser, isDebug, isHookedWithRegister, isHookedWithShouldRunAfter, isHookedWithShouldRunBefore, isSilent, isVerbose, merge, notFoundHook, pipeProcessThroughListr, pipeProcessToLogger, setCtxAssign, setCtxDefaults, setup, uniqueArrayFilter, updateNotifierHook };
407
+ export { type ClassType, CliModule, type CliModuleOptions, Command, type CommonLockerData, type ConfigIterator, ConfigModule, type ConfigModuleOptions, ConfigService, type DeepPartial, EnvironmentVariableParser, FileConstants, FileSystemService, FilesystemModule, GenericParser, type GlobalConfig, HelpGroups, type InferArgs, type InferFlags, JsonParser, type LockData, type LockableData, LockerModule, LockerService, type LockerServiceOptions, LogFieldStatus, LogLevels, type LoggerFormat, LoggerModule, LoggerService, type LogoGeneratorFn, LogoModule, LogoService, MergeStrategy, ParserModule, ParserService, type PipeProcessToLoggerOptions, RegisterHook, type SetCtxAssignOptions, type SetCtxDefaultsOptions, ShouldRunAfterHook, ShouldRunBeforeHook, TOKEN_LOGO_GENERATOR, TOKEN_VALIDATOR_SERVICE_OPTIONS, type UnlockData, ValidatorModule, ValidatorService, type ValidatorServiceOptions, type Winston, WinstonService, YamlParser, isDebug, isHookedWithRegister, isHookedWithShouldRunAfter, isHookedWithShouldRunBefore, isSilent, isVerbose, merge, notFoundHook, pipeProcessThroughListr, pipeProcessToLogger, setCtxAssign, setCtxDefaults, setup, uniqueArrayFilter, updateNotifierHook };
package/dist/index.js CHANGED
@@ -173,8 +173,7 @@ function _ts_param(paramIndex, decorator) {
173
173
  };
174
174
  }
175
175
  __name(_ts_param, "_ts_param");
176
- var _a;
177
- var WinstonService = (_a = class {
176
+ var _WinstonService = class _WinstonService {
178
177
  constructor(options) {
179
178
  __publicField(this, "options");
180
179
  __publicField(this, "instance");
@@ -262,7 +261,9 @@ var WinstonService = (_a = class {
262
261
  }
263
262
  return `${coloring(icon)}${context ? " " + coloring(`[${context}]`) : ""}${status ? " " + coloring(`[${status}]`) : ""} ${msgColoring(message)}`;
264
263
  }
265
- }, __name(_a, "WinstonService"), _a);
264
+ };
265
+ __name(_WinstonService, "WinstonService");
266
+ var WinstonService = _WinstonService;
266
267
  WinstonService = _ts_decorate([
267
268
  Injectable(),
268
269
  _ts_param(0, Inject(TOKEN_CONFIG_MODULE_OPTIONS)),
@@ -289,8 +290,7 @@ function _ts_metadata2(k, v) {
289
290
  return Reflect.metadata(k, v);
290
291
  }
291
292
  __name(_ts_metadata2, "_ts_metadata");
292
- var _a2;
293
- var LoggerService = (_a2 = class {
293
+ var _LoggerService = class _LoggerService {
294
294
  constructor(winston2) {
295
295
  __publicField(this, "winston");
296
296
  __publicField(this, "context");
@@ -359,7 +359,9 @@ var LoggerService = (_a2 = class {
359
359
  ...format2 ?? {}
360
360
  });
361
361
  }
362
- }, __name(_a2, "LoggerService"), _a2);
362
+ };
363
+ __name(_LoggerService, "LoggerService");
364
+ var LoggerService = _LoggerService;
363
365
  LoggerService = _ts_decorate2([
364
366
  Injectable2({
365
367
  scope: Scope.TRANSIENT
@@ -382,9 +384,10 @@ function _ts_decorate3(decorators, target, key, desc) {
382
384
  return c > 3 && r && Object.defineProperty(target, key, r), r;
383
385
  }
384
386
  __name(_ts_decorate3, "_ts_decorate");
385
- var _a3;
386
- var LoggerModule = (_a3 = class {
387
- }, __name(_a3, "LoggerModule"), _a3);
387
+ var _LoggerModule = class _LoggerModule {
388
+ };
389
+ __name(_LoggerModule, "LoggerModule");
390
+ var LoggerModule = _LoggerModule;
388
391
  LoggerModule = _ts_decorate3([
389
392
  Global(),
390
393
  Module({
@@ -422,8 +425,7 @@ function _ts_metadata3(k, v) {
422
425
  return Reflect.metadata(k, v);
423
426
  }
424
427
  __name(_ts_metadata3, "_ts_metadata");
425
- var _a4;
426
- var FileSystemService = (_a4 = class {
428
+ var _FileSystemService = class _FileSystemService {
427
429
  constructor(logger) {
428
430
  __publicField(this, "logger");
429
431
  __publicField(this, "extra");
@@ -551,7 +553,9 @@ var FileSystemService = (_a4 = class {
551
553
  throw new Error(`Error while creating the directory "${directory}": ${e.message}`);
552
554
  }
553
555
  }
554
- }, __name(_a4, "FileSystemService"), _a4);
556
+ };
557
+ __name(_FileSystemService, "FileSystemService");
558
+ var FileSystemService = _FileSystemService;
555
559
  FileSystemService = _ts_decorate4([
556
560
  Injectable3(),
557
561
  _ts_metadata3("design:type", Function),
@@ -573,9 +577,10 @@ function _ts_decorate5(decorators, target, key, desc) {
573
577
  return c > 3 && r && Object.defineProperty(target, key, r), r;
574
578
  }
575
579
  __name(_ts_decorate5, "_ts_decorate");
576
- var _a5;
577
- var FilesystemModule = (_a5 = class {
578
- }, __name(_a5, "FilesystemModule"), _a5);
580
+ var _FilesystemModule = class _FilesystemModule {
581
+ };
582
+ __name(_FilesystemModule, "FilesystemModule");
583
+ var FilesystemModule = _FilesystemModule;
579
584
  FilesystemModule = _ts_decorate5([
580
585
  Global2(),
581
586
  Module2({
@@ -605,8 +610,7 @@ function _ts_metadata4(k, v) {
605
610
  return Reflect.metadata(k, v);
606
611
  }
607
612
  __name(_ts_metadata4, "_ts_metadata");
608
- var _a6;
609
- var ParserService = (_a6 = class {
613
+ var _ParserService = class _ParserService {
610
614
  constructor(moduleRef, fs2, logger) {
611
615
  __publicField(this, "moduleRef");
612
616
  __publicField(this, "fs");
@@ -668,7 +672,9 @@ var ParserService = (_a6 = class {
668
672
  this.logger.trace("Stringifying data: %s", parser.constructor.name);
669
673
  return parser.stringify(data);
670
674
  }
671
- }, __name(_a6, "ParserService"), _a6);
675
+ };
676
+ __name(_ParserService, "ParserService");
677
+ var ParserService = _ParserService;
672
678
  ParserService = _ts_decorate6([
673
679
  Injectable4(),
674
680
  _ts_metadata4("design:type", Function),
@@ -779,8 +785,7 @@ function _ts_param2(paramIndex, decorator) {
779
785
  };
780
786
  }
781
787
  __name(_ts_param2, "_ts_param");
782
- var _a7;
783
- var ConfigService = (_a7 = class {
788
+ var _ConfigService = class _ConfigService {
784
789
  constructor(parser, logger, options) {
785
790
  __publicField(this, "parser");
786
791
  __publicField(this, "logger");
@@ -928,7 +933,9 @@ var ConfigService = (_a7 = class {
928
933
  async write(path, data) {
929
934
  return this.parser.write(path, data);
930
935
  }
931
- }, __name(_a7, "ConfigService"), _a7);
936
+ };
937
+ __name(_ConfigService, "ConfigService");
938
+ var ConfigService = _ConfigService;
932
939
  ConfigService = _ts_decorate7([
933
940
  Injectable5(),
934
941
  _ts_param2(2, Inject2(TOKEN_CONFIG_MODULE_OPTIONS)),
@@ -956,9 +963,10 @@ function _ts_decorate8(decorators, target, key, desc) {
956
963
  return c > 3 && r && Object.defineProperty(target, key, r), r;
957
964
  }
958
965
  __name(_ts_decorate8, "_ts_decorate");
959
- var _a8;
960
- var ParserModule = (_a8 = class {
961
- }, __name(_a8, "ParserModule"), _a8);
966
+ var _ParserModule = class _ParserModule {
967
+ };
968
+ __name(_ParserModule, "ParserModule");
969
+ var ParserModule = _ParserModule;
962
970
  ParserModule = _ts_decorate8([
963
971
  Global3(),
964
972
  Module3({
@@ -986,9 +994,10 @@ function _ts_decorate9(decorators, target, key, desc) {
986
994
  return c > 3 && r && Object.defineProperty(target, key, r), r;
987
995
  }
988
996
  __name(_ts_decorate9, "_ts_decorate");
989
- var _a9;
990
- var ConfigModule = (_a9 = class {
991
- }, __name(_a9, "ConfigModule"), _a9);
997
+ var _ConfigModule = class _ConfigModule {
998
+ };
999
+ __name(_ConfigModule, "ConfigModule");
1000
+ var ConfigModule = _ConfigModule;
992
1001
  ConfigModule = _ts_decorate9([
993
1002
  Global4(),
994
1003
  Module4({
@@ -1027,8 +1036,7 @@ function _ts_metadata6(k, v) {
1027
1036
  return Reflect.metadata(k, v);
1028
1037
  }
1029
1038
  __name(_ts_metadata6, "_ts_metadata");
1030
- var _a10;
1031
- var EnvironmentVariableParser = (_a10 = class {
1039
+ var _EnvironmentVariableParser = class _EnvironmentVariableParser {
1032
1040
  constructor(logger) {
1033
1041
  __publicField(this, "logger");
1034
1042
  __publicField(this, "extensions");
@@ -1059,7 +1067,9 @@ var EnvironmentVariableParser = (_a10 = class {
1059
1067
  stringify(data) {
1060
1068
  return Object.entries(data).map(([k, v]) => `${k}=${v}`).join(EOL2) + EOL2;
1061
1069
  }
1062
- }, __name(_a10, "EnvironmentVariableParser"), _a10);
1070
+ };
1071
+ __name(_EnvironmentVariableParser, "EnvironmentVariableParser");
1072
+ var EnvironmentVariableParser = _EnvironmentVariableParser;
1063
1073
  EnvironmentVariableParser = _ts_decorate10([
1064
1074
  Injectable6(),
1065
1075
  _ts_metadata6("design:type", Function),
@@ -1086,8 +1096,7 @@ function _ts_metadata7(k, v) {
1086
1096
  return Reflect.metadata(k, v);
1087
1097
  }
1088
1098
  __name(_ts_metadata7, "_ts_metadata");
1089
- var _a11;
1090
- var JsonParser = (_a11 = class {
1099
+ var _JsonParser = class _JsonParser {
1091
1100
  constructor(logger) {
1092
1101
  __publicField(this, "logger");
1093
1102
  __publicField(this, "extensions");
@@ -1108,7 +1117,9 @@ var JsonParser = (_a11 = class {
1108
1117
  stringify(data) {
1109
1118
  return JSON.stringify(data, null, 2);
1110
1119
  }
1111
- }, __name(_a11, "JsonParser"), _a11);
1120
+ };
1121
+ __name(_JsonParser, "JsonParser");
1122
+ var JsonParser = _JsonParser;
1112
1123
  JsonParser = _ts_decorate11([
1113
1124
  Injectable7(),
1114
1125
  _ts_metadata7("design:type", Function),
@@ -1136,8 +1147,7 @@ function _ts_metadata8(k, v) {
1136
1147
  return Reflect.metadata(k, v);
1137
1148
  }
1138
1149
  __name(_ts_metadata8, "_ts_metadata");
1139
- var _a12;
1140
- var YamlParser = (_a12 = class {
1150
+ var _YamlParser = class _YamlParser {
1141
1151
  constructor(logger) {
1142
1152
  __publicField(this, "logger");
1143
1153
  __publicField(this, "extensions");
@@ -1161,7 +1171,9 @@ var YamlParser = (_a12 = class {
1161
1171
  prettyErrors: true
1162
1172
  });
1163
1173
  }
1164
- }, __name(_a12, "YamlParser"), _a12);
1174
+ };
1175
+ __name(_YamlParser, "YamlParser");
1176
+ var YamlParser = _YamlParser;
1165
1177
  YamlParser = _ts_decorate12([
1166
1178
  Injectable8(),
1167
1179
  _ts_metadata8("design:type", Function),
@@ -1187,8 +1199,7 @@ function _ts_metadata9(k, v) {
1187
1199
  return Reflect.metadata(k, v);
1188
1200
  }
1189
1201
  __name(_ts_metadata9, "_ts_metadata");
1190
- var _a13;
1191
- var LockerService = (_a13 = class {
1202
+ var _LockerService = class _LockerService {
1192
1203
  constructor(logger, fs2, parser, options) {
1193
1204
  __publicField(this, "logger");
1194
1205
  __publicField(this, "fs");
@@ -1331,7 +1342,9 @@ var LockerService = (_a13 = class {
1331
1342
  }
1332
1343
  return [];
1333
1344
  }
1334
- }, __name(_a13, "LockerService"), _a13);
1345
+ };
1346
+ __name(_LockerService, "LockerService");
1347
+ var LockerService = _LockerService;
1335
1348
  LockerService = _ts_decorate13([
1336
1349
  Injectable9(),
1337
1350
  _ts_metadata9("design:type", Function),
@@ -1356,12 +1369,11 @@ function _ts_decorate14(decorators, target, key, desc) {
1356
1369
  return c > 3 && r && Object.defineProperty(target, key, r), r;
1357
1370
  }
1358
1371
  __name(_ts_decorate14, "_ts_decorate");
1359
- var _a14;
1360
- var LockerModule = (_a14 = class {
1372
+ var _LockerModule = class _LockerModule {
1361
1373
  static forFeature(options) {
1362
1374
  const token = options.token ?? LockerService;
1363
1375
  return {
1364
- module: _a14,
1376
+ module: _LockerModule,
1365
1377
  providers: [
1366
1378
  {
1367
1379
  provide: token,
@@ -1375,7 +1387,9 @@ var LockerModule = (_a14 = class {
1375
1387
  ]
1376
1388
  };
1377
1389
  }
1378
- }, __name(_a14, "LockerModule"), _a14);
1390
+ };
1391
+ __name(_LockerModule, "LockerModule");
1392
+ var LockerModule = _LockerModule;
1379
1393
  LockerModule = _ts_decorate14([
1380
1394
  Module5({})
1381
1395
  ], LockerModule);
@@ -1406,8 +1420,7 @@ function _ts_metadata10(k, v) {
1406
1420
  return Reflect.metadata(k, v);
1407
1421
  }
1408
1422
  __name(_ts_metadata10, "_ts_metadata");
1409
- var _a15;
1410
- var LogoService = (_a15 = class {
1423
+ var _LogoService = class _LogoService {
1411
1424
  constructor(cs, moduleRef) {
1412
1425
  __publicField(this, "cs");
1413
1426
  __publicField(this, "generator");
@@ -1436,7 +1449,9 @@ var LogoService = (_a15 = class {
1436
1449
  write(...data) {
1437
1450
  process.stdout.write(data.join(" ") + EOL3);
1438
1451
  }
1439
- }, __name(_a15, "LogoService"), _a15);
1452
+ };
1453
+ __name(_LogoService, "LogoService");
1454
+ var LogoService = _LogoService;
1440
1455
  LogoService = _ts_decorate15([
1441
1456
  Injectable10(),
1442
1457
  _ts_metadata10("design:type", Function),
@@ -1458,9 +1473,10 @@ function _ts_decorate16(decorators, target, key, desc) {
1458
1473
  return c > 3 && r && Object.defineProperty(target, key, r), r;
1459
1474
  }
1460
1475
  __name(_ts_decorate16, "_ts_decorate");
1461
- var _a16;
1462
- var LogoModule = (_a16 = class {
1463
- }, __name(_a16, "LogoModule"), _a16);
1476
+ var _LogoModule = class _LogoModule {
1477
+ };
1478
+ __name(_LogoModule, "LogoModule");
1479
+ var LogoModule = _LogoModule;
1464
1480
  LogoModule = _ts_decorate16([
1465
1481
  Module6({
1466
1482
  providers: [
@@ -1499,8 +1515,7 @@ function _ts_metadata11(k, v) {
1499
1515
  return Reflect.metadata(k, v);
1500
1516
  }
1501
1517
  __name(_ts_metadata11, "_ts_metadata");
1502
- var _a17;
1503
- var ValidatorService = (_a17 = class {
1518
+ var _ValidatorService = class _ValidatorService {
1504
1519
  constructor(logger, moduleRef) {
1505
1520
  __publicField(this, "logger");
1506
1521
  __publicField(this, "options");
@@ -1564,7 +1579,9 @@ var ValidatorService = (_a17 = class {
1564
1579
  err.children.forEach((children) => this.logValidationError(children));
1565
1580
  }
1566
1581
  }
1567
- }, __name(_a17, "ValidatorService"), _a17);
1582
+ };
1583
+ __name(_ValidatorService, "ValidatorService");
1584
+ var ValidatorService = _ValidatorService;
1568
1585
  ValidatorService = _ts_decorate17([
1569
1586
  Injectable11(),
1570
1587
  _ts_metadata11("design:type", Function),
@@ -1586,9 +1603,10 @@ function _ts_decorate18(decorators, target, key, desc) {
1586
1603
  return c > 3 && r && Object.defineProperty(target, key, r), r;
1587
1604
  }
1588
1605
  __name(_ts_decorate18, "_ts_decorate");
1589
- var _a18;
1590
- var ValidatorModule = (_a18 = class {
1591
- }, __name(_a18, "ValidatorModule"), _a18);
1606
+ var _ValidatorModule = class _ValidatorModule {
1607
+ };
1608
+ __name(_ValidatorModule, "ValidatorModule");
1609
+ var ValidatorModule = _ValidatorModule;
1592
1610
  ValidatorModule = _ts_decorate18([
1593
1611
  Global5(),
1594
1612
  Module7({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cenk1cenk2/oclif-common",
3
- "version": "6.2.6",
3
+ "version": "6.2.8",
4
4
  "description": "Oclif common package for oclif2 projects.",
5
5
  "repository": "https://gitlab.kilic.dev/libraries/oclif-tools",
6
6
  "type": "module",
@@ -61,25 +61,25 @@
61
61
  }
62
62
  },
63
63
  "dependencies": {
64
- "@nestjs/common": "^10.2.8",
65
- "@nestjs/core": "^10.2.8",
64
+ "@nestjs/common": "^10.2.10",
65
+ "@nestjs/core": "^10.2.10",
66
66
  "deepmerge": "^4.3.1",
67
67
  "object-path-immutable": "^4.1.2",
68
- "reflect-metadata": "^0.1.13",
68
+ "reflect-metadata": "^0.1.14",
69
69
  "winston": "^3.11.0"
70
70
  },
71
71
  "devDependencies": {
72
- "@listr2/manager": "^1.0.2",
73
- "@oclif/core": "^3.10.1",
74
- "@types/fs-extra": "^11.0.3",
75
- "@types/through": "^0.0.32",
76
- "@types/update-notifier": "^6.0.6",
72
+ "@listr2/manager": "^2.0.0",
73
+ "@oclif/core": "^3.14.1",
74
+ "@types/fs-extra": "^11.0.4",
75
+ "@types/through": "^0.0.33",
76
+ "@types/update-notifier": "^6.0.8",
77
77
  "class-transformer": "^0.5.1",
78
78
  "class-validator": "^0.14.0",
79
79
  "enquirer": "^2.4.1",
80
80
  "execa": "^8.0.1",
81
- "fs-extra": "^11.1.1",
82
- "listr2": "^7.0.2",
81
+ "fs-extra": "^11.2.0",
82
+ "listr2": "^8.0.0",
83
83
  "source-map-support": "^0.5.21",
84
84
  "yaml": "^2.3.4"
85
85
  }