@keq-request/cli 5.0.0-alpha.10 → 5.0.0-alpha.12
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/CHANGELOG.md +23 -0
- package/dist/cli.cjs +673 -222
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +673 -222
- package/dist/cli.js.map +1 -1
- package/dist/compiler/compiler.d.ts +29 -0
- package/dist/compiler/compiler.d.ts.map +1 -0
- package/dist/compiler/index.d.ts +2 -0
- package/dist/compiler/index.d.ts.map +1 -0
- package/dist/compiler/intercepter/perfect-error-message.d.ts +3 -0
- package/dist/compiler/intercepter/perfect-error-message.d.ts.map +1 -0
- package/dist/compiler/intercepter/print-information.d.ts +5 -0
- package/dist/compiler/intercepter/print-information.d.ts.map +1 -0
- package/dist/index.cjs +620 -154
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +9 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +609 -150
- package/dist/index.js.map +1 -1
- package/dist/plugins/body-fallback/index.d.ts +6 -0
- package/dist/plugins/body-fallback/index.d.ts.map +1 -0
- package/dist/plugins/eslint/index.d.ts +15 -0
- package/dist/plugins/eslint/index.d.ts.map +1 -0
- package/dist/plugins/index.d.ts +4 -0
- package/dist/plugins/index.d.ts.map +1 -0
- package/dist/plugins/prettier/index.d.ts +6 -0
- package/dist/plugins/prettier/index.d.ts.map +1 -0
- package/dist/plugins.cjs +159 -0
- package/dist/plugins.cjs.map +1 -0
- package/dist/plugins.js +120 -0
- package/dist/plugins.js.map +1 -0
- package/dist/renderer/json-schema/index.d.ts.map +1 -1
- package/dist/renderer/operation-request/index.d.ts.map +1 -1
- package/dist/renderer/operation-type/index.d.ts +2 -1
- package/dist/renderer/operation-type/index.d.ts.map +1 -1
- package/dist/renderer/request/index.d.ts.map +1 -1
- package/dist/tasks/compile/index.d.ts +3 -5
- package/dist/tasks/compile/index.d.ts.map +1 -1
- package/dist/tasks/compile/utils/compile-operation-definition.d.ts +5 -2
- package/dist/tasks/compile/utils/compile-operation-definition.d.ts.map +1 -1
- package/dist/tasks/compile/utils/compile-schema-definition.d.ts +5 -2
- package/dist/tasks/compile/utils/compile-schema-definition.d.ts.map +1 -1
- package/dist/tasks/download/index.d.ts +3 -3
- package/dist/tasks/download/index.d.ts.map +1 -1
- package/dist/tasks/index.d.ts +9 -11
- package/dist/tasks/index.d.ts.map +1 -1
- package/dist/tasks/interactive/index.d.ts +9 -6
- package/dist/tasks/interactive/index.d.ts.map +1 -1
- package/dist/tasks/persist/index.d.ts +3 -8
- package/dist/tasks/persist/index.d.ts.map +1 -1
- package/dist/tasks/setup/index.d.ts +7 -1
- package/dist/tasks/setup/index.d.ts.map +1 -1
- package/dist/tasks/shaking/index.d.ts +4 -5
- package/dist/tasks/shaking/index.d.ts.map +1 -1
- package/dist/tasks/types/base-task-options.d.ts +6 -0
- package/dist/tasks/types/base-task-options.d.ts.map +1 -0
- package/dist/tasks/types/file.d.ts +4 -0
- package/dist/tasks/types/file.d.ts.map +1 -0
- package/dist/tasks/types/index.d.ts +6 -0
- package/dist/tasks/types/index.d.ts.map +1 -0
- package/dist/tasks/types/task-context.d.ts +4 -0
- package/dist/tasks/types/task-context.d.ts.map +1 -1
- package/dist/tasks/types/task-wrapper.d.ts +4 -0
- package/dist/tasks/types/task-wrapper.d.ts.map +1 -0
- package/dist/tasks/utils/anchor.d.ts +20 -0
- package/dist/tasks/utils/anchor.d.ts.map +1 -0
- package/dist/tasks/utils/artifact.d.ts +2 -0
- package/dist/tasks/utils/artifact.d.ts.map +1 -1
- package/dist/tasks/utils/index.d.ts +11 -0
- package/dist/tasks/utils/index.d.ts.map +1 -0
- package/dist/tasks/utils/proxy-task-wrapper.d.ts +3 -0
- package/dist/tasks/utils/proxy-task-wrapper.d.ts.map +1 -0
- package/dist/tasks/validate/index.d.ts +3 -6
- package/dist/tasks/validate/index.d.ts.map +1 -1
- package/dist/types/index.d.ts +7 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/plugin.d.ts +5 -0
- package/dist/types/plugin.d.ts.map +1 -0
- package/dist/types/runtime-config.d.ts +4 -1
- package/dist/types/runtime-config.d.ts.map +1 -1
- package/package.json +20 -4
- package/dist/tasks/append-ignore-rule/index.d.ts +0 -10
- package/dist/tasks/append-ignore-rule/index.d.ts.map +0 -1
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { AsyncSeriesHook, AsyncSeriesWaterfallHook, SyncHook } from 'tapable';
|
|
2
|
+
import { InteractiveTaskOptions, SetupTaskOptions, ShakingTaskOptions, type TaskWrapper, type TaskContext, Artifact, OperationDefinition, SchemaDefinition } from '../tasks/index.js';
|
|
3
|
+
interface Options extends SetupTaskOptions {
|
|
4
|
+
build: boolean | {
|
|
5
|
+
shaking?: ShakingTaskOptions;
|
|
6
|
+
};
|
|
7
|
+
interactive?: boolean | InteractiveTaskOptions;
|
|
8
|
+
}
|
|
9
|
+
export declare class Compiler {
|
|
10
|
+
options: Options;
|
|
11
|
+
context: TaskContext;
|
|
12
|
+
hooks: {
|
|
13
|
+
afterSetup: AsyncSeriesHook<[TaskWrapper], import("tapable").UnsetAdditionalOptions>;
|
|
14
|
+
afterDownload: AsyncSeriesHook<[TaskWrapper], import("tapable").UnsetAdditionalOptions>;
|
|
15
|
+
afterValidate: AsyncSeriesHook<[TaskWrapper], import("tapable").UnsetAdditionalOptions>;
|
|
16
|
+
afterShaking: AsyncSeriesHook<[TaskWrapper], import("tapable").UnsetAdditionalOptions>;
|
|
17
|
+
afterCompile: AsyncSeriesHook<[TaskWrapper], import("tapable").UnsetAdditionalOptions>;
|
|
18
|
+
afterPersist: AsyncSeriesHook<[TaskWrapper], import("tapable").UnsetAdditionalOptions>;
|
|
19
|
+
done: SyncHook<[], void, import("tapable").UnsetAdditionalOptions>;
|
|
20
|
+
afterCompileKeqRequest: AsyncSeriesWaterfallHook<[Artifact, TaskWrapper], Artifact, import("tapable").UnsetAdditionalOptions>;
|
|
21
|
+
afterCompileSchema: AsyncSeriesWaterfallHook<[Artifact, SchemaDefinition, TaskWrapper], Artifact, import("tapable").UnsetAdditionalOptions>;
|
|
22
|
+
afterCompileOperationType: AsyncSeriesWaterfallHook<[Artifact, OperationDefinition, TaskWrapper], Artifact, import("tapable").UnsetAdditionalOptions>;
|
|
23
|
+
afterCompileOperationRequest: AsyncSeriesWaterfallHook<[Artifact, OperationDefinition, TaskWrapper], Artifact, import("tapable").UnsetAdditionalOptions>;
|
|
24
|
+
};
|
|
25
|
+
constructor(options: Options);
|
|
26
|
+
run(): Promise<void>;
|
|
27
|
+
}
|
|
28
|
+
export {};
|
|
29
|
+
//# sourceMappingURL=compiler.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"compiler.d.ts","sourceRoot":"","sources":["../../src/compiler/compiler.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,wBAAwB,EAAiD,QAAQ,EAAE,MAAM,SAAS,CAAA;AAE5H,OAAO,EAQL,sBAAsB,EACtB,gBAAgB,EAChB,kBAAkB,EAClB,KAAK,WAAW,EAChB,KAAK,WAAW,EAChB,QAAQ,EACR,mBAAmB,EACnB,gBAAgB,EACjB,MAAM,mBAAmB,CAAA;AAK1B,UAAU,OAAQ,SAAQ,gBAAgB;IACxC,KAAK,EAAE,OAAO,GAAG;QACf,OAAO,CAAC,EAAE,kBAAkB,CAAA;KAC7B,CAAA;IAED,WAAW,CAAC,EAAE,OAAO,GAAG,sBAAsB,CAAA;CAC/C;AAGD,qBAAa,QAAQ;IAqBV,OAAO,EAAE,OAAO;IApBzB,OAAO,EAAE,WAAW,CAAK;IAEzB,KAAK;;;;;;;;;;;;MAeJ;gBAGQ,OAAO,EAAE,OAAO;IAUnB,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;CA4B3B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/compiler/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"perfect-error-message.d.ts","sourceRoot":"","sources":["../../../src/compiler/intercepter/perfect-error-message.ts"],"names":[],"mappings":"AAEA,OAAO,EAAW,eAAe,EAAiB,MAAM,SAAS,CAAA;AAEjE,wBAAgB,mBAAmB,IAAI,eAAe,CAAC,OAAO,EAAE,OAAO,CAAC,CA+CvE"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { HookInterceptor } from 'tapable';
|
|
2
|
+
import { TaskWrapper } from '../../tasks/index.js';
|
|
3
|
+
export declare function proxyTaskWrapper(pluginName: string, task: TaskWrapper): TaskWrapper;
|
|
4
|
+
export declare function printInformation(taskIndex: number): HookInterceptor<unknown, unknown>;
|
|
5
|
+
//# sourceMappingURL=print-information.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"print-information.d.ts","sourceRoot":"","sources":["../../../src/compiler/intercepter/print-information.ts"],"names":[],"mappings":"AACA,OAAO,EAAW,eAAe,EAAE,MAAM,SAAS,CAAA;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAG9C,wBAAgB,gBAAgB,CAAC,UAAU,EAAE,MAAM,EAAE,IAAI,EAAE,WAAW,GAAG,WAAW,CAWnF;AAGD,wBAAgB,gBAAgB,CAAC,SAAS,EAAE,MAAM,GAAG,eAAe,CAAC,OAAO,EAAE,OAAO,CAAC,CAsCrF"}
|