@cenk1cenk2/oclif-common 6.0.2 → 6.0.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.
- package/dist/index.d.ts +2 -4
- package/dist/index.js +2 -6
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -34,8 +34,6 @@ interface ConfigModuleOptions {
|
|
|
34
34
|
config: GlobalConfig;
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
declare const INSTANCE_LOCKER_SERVICE: InjectionToken;
|
|
38
|
-
|
|
39
37
|
declare class GenericParser {
|
|
40
38
|
static extensions: string[];
|
|
41
39
|
parse<T = unknown>(data: string | Buffer): T | Promise<T>;
|
|
@@ -349,7 +347,7 @@ declare class ShouldRunAfterHook<Ctx> {
|
|
|
349
347
|
shouldRunAfter(ctx: Ctx): void | Promise<void>;
|
|
350
348
|
}
|
|
351
349
|
declare class RegisterHook {
|
|
352
|
-
register(cli: DynamicModule, options: CliModuleOptions): DynamicModule
|
|
350
|
+
register(cli: DynamicModule, options: CliModuleOptions): DynamicModule | Promise<DynamicModule>;
|
|
353
351
|
}
|
|
354
352
|
|
|
355
353
|
type InferFlags<T extends typeof Command$1> = Interfaces.InferredFlags<(typeof Command$1)['baseFlags'] & T['flags']>;
|
|
@@ -403,4 +401,4 @@ declare const notFoundHook: Hook<'command_not_found'>;
|
|
|
403
401
|
|
|
404
402
|
declare const updateNotifierHook: Hook<'init'>;
|
|
405
403
|
|
|
406
|
-
export { ClassType, CliModule, CliModuleOptions, Command, CommonLockerData, ConfigIterator, ConfigModule, ConfigModuleOptions, ConfigService, DeepPartial, EnvironmentVariableParser, FileConstants, FileSystemService, FilesystemModule, GenericParser, GlobalConfig, HelpGroups,
|
|
404
|
+
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 };
|
package/dist/index.js
CHANGED
|
@@ -1157,9 +1157,6 @@ ConfigModule = _ts_decorate12([
|
|
|
1157
1157
|
})
|
|
1158
1158
|
], ConfigModule);
|
|
1159
1159
|
|
|
1160
|
-
// src/lib/locker/locker.constants.ts
|
|
1161
|
-
var INSTANCE_LOCKER_SERVICE = Symbol("INSTANCE_LOCKER_SERVICE");
|
|
1162
|
-
|
|
1163
1160
|
// src/lib/locker/locker.service.ts
|
|
1164
1161
|
import { Injectable as Injectable9 } from "@nestjs/common";
|
|
1165
1162
|
import op2 from "object-path-immutable";
|
|
@@ -1348,7 +1345,7 @@ __name(_ts_decorate14, "_ts_decorate");
|
|
|
1348
1345
|
var _a14;
|
|
1349
1346
|
var LockerModule = (_a14 = class {
|
|
1350
1347
|
static forFeature(options) {
|
|
1351
|
-
const token = options.token ??
|
|
1348
|
+
const token = options.token ?? LockerService;
|
|
1352
1349
|
return {
|
|
1353
1350
|
module: _a14,
|
|
1354
1351
|
providers: [
|
|
@@ -1746,7 +1743,7 @@ var _Command = class _Command extends BaseCommand {
|
|
|
1746
1743
|
}
|
|
1747
1744
|
};
|
|
1748
1745
|
const cli = CliModule.forRoot(options);
|
|
1749
|
-
this.app = await CliModule.create(isHookedWithRegister(this) ? this.register(cli, options) : cli);
|
|
1746
|
+
this.app = await CliModule.create(isHookedWithRegister(this) ? await this.register(cli, options) : cli);
|
|
1750
1747
|
const cs = this.app.get(ConfigService);
|
|
1751
1748
|
this.logger = await this.app.resolve(LoggerService);
|
|
1752
1749
|
this.app.useLogger(this.logger);
|
|
@@ -1884,7 +1881,6 @@ export {
|
|
|
1884
1881
|
FilesystemModule,
|
|
1885
1882
|
Flags2 as Flags,
|
|
1886
1883
|
HelpGroups,
|
|
1887
|
-
INSTANCE_LOCKER_SERVICE,
|
|
1888
1884
|
Inject3 as Inject,
|
|
1889
1885
|
JsonParser,
|
|
1890
1886
|
LockerModule,
|