@keq-request/cli 5.0.0-alpha.18 → 5.0.0-alpha.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.
- package/CHANGELOG.md +7 -0
- package/dist/cli.cjs +52 -52
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +52 -52
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +51 -51
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +51 -51
- package/dist/index.js.map +1 -1
- package/dist/tasks/utils/api-document.d.ts +2 -2
- package/dist/tasks/utils/api-document.d.ts.map +1 -1
- package/dist/tasks/utils/api-document_v3_1.d.ts +2 -2
- package/dist/tasks/utils/api-document_v3_1.d.ts.map +1 -1
- package/dist/types/build-cli-options.d.ts +1 -1
- package/dist/types/runtime-config.d.ts +1 -1
- package/dist/utils/debugger.d.ts +1 -1
- package/dist/utils/{swagger-utils → openapi-utils}/dereference-deep.d.ts.map +1 -1
- package/dist/utils/{swagger-utils → openapi-utils}/dereference-operation.d.ts.map +1 -1
- package/dist/utils/{swagger-utils → openapi-utils}/dereference.d.ts.map +1 -1
- package/dist/utils/{swagger-utils → openapi-utils}/index.d.ts +1 -1
- package/dist/utils/{swagger-utils → openapi-utils}/index.d.ts.map +1 -1
- package/dist/utils/{swagger-utils → openapi-utils}/is-ref-defined.d.ts.map +1 -1
- package/dist/utils/{swagger-utils → openapi-utils}/remove-undefined-ref.d.ts.map +1 -1
- package/dist/utils/{swagger-utils → openapi-utils}/update-operation-id.d.ts.map +1 -1
- package/package.json +13 -13
- /package/dist/utils/{swagger-utils → openapi-utils}/dereference-deep.d.ts +0 -0
- /package/dist/utils/{swagger-utils → openapi-utils}/dereference-operation.d.ts +0 -0
- /package/dist/utils/{swagger-utils → openapi-utils}/dereference.d.ts +0 -0
- /package/dist/utils/{swagger-utils → openapi-utils}/is-ref-defined.d.ts +0 -0
- /package/dist/utils/{swagger-utils → openapi-utils}/remove-undefined-ref.d.ts +0 -0
- /package/dist/utils/{swagger-utils → openapi-utils}/update-operation-id.d.ts +0 -0
|
@@ -5,8 +5,8 @@ import { ApiDocumentV3_1 } from './api-document_v3_1.js';
|
|
|
5
5
|
import { RuntimeConfig } from '../../types/runtime-config.js';
|
|
6
6
|
export declare class ApiDocument<T extends OpenAPI.Document = OpenAPI.Document> {
|
|
7
7
|
readonly module: ModuleDefinition;
|
|
8
|
-
readonly
|
|
9
|
-
constructor(
|
|
8
|
+
readonly specification: T;
|
|
9
|
+
constructor(specification: T, module: ModuleDefinition);
|
|
10
10
|
static cache: Map<string, ApiDocument>;
|
|
11
11
|
private static download;
|
|
12
12
|
private static read;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api-document.d.ts","sourceRoot":"","sources":["../../../src/tasks/utils/api-document.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAA;AACpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAA;AACzD,OAAO,EAAW,QAAQ,EAAE,MAAM,wBAAwB,CAAA;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAA;AAExD,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAA;AAKzD,qBAAa,WAAW,CAAC,CAAC,SAAS,OAAO,CAAC,QAAQ,GAAG,OAAO,CAAC,QAAQ;IACpE,QAAQ,CAAC,MAAM,EAAE,gBAAgB,CAAA;IACjC,QAAQ,CAAC,
|
|
1
|
+
{"version":3,"file":"api-document.d.ts","sourceRoot":"","sources":["../../../src/tasks/utils/api-document.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAA;AACpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAA;AACzD,OAAO,EAAW,QAAQ,EAAE,MAAM,wBAAwB,CAAA;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAA;AAExD,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAA;AAKzD,qBAAa,WAAW,CAAC,CAAC,SAAS,OAAO,CAAC,QAAQ,GAAG,OAAO,CAAC,QAAQ;IACpE,QAAQ,CAAC,MAAM,EAAE,gBAAgB,CAAA;IACjC,QAAQ,CAAC,aAAa,EAAE,CAAC,CAAA;gBAEb,aAAa,EAAE,CAAC,EAAE,MAAM,EAAE,gBAAgB;IAKtD,MAAM,CAAC,KAAK,EAAE,GAAG,CAAC,MAAM,EAAE,WAAW,CAAC,CAAY;mBAE7B,QAAQ;mBA0BR,IAAI;WAaZ,MAAM,CAAC,gBAAgB,EAAE,gBAAgB,GAAG,OAAO,CAAC,WAAW,CAAC;IAcvE,QAAQ,IAAI,UAAU,CAAC,OAAO,QAAQ,CAAC;IAK7C,GAAG,IAAI,WAAW;IAaZ,MAAM,CAAC,EAAE,CAAC,EAAE,aAAa,GAAG,OAAO,CAAC,eAAe,CAAC;CA4B3D"}
|
|
@@ -4,8 +4,8 @@ import { OperationDefinition } from './operation-definition.js';
|
|
|
4
4
|
import { SchemaDefinition } from './schema-definition.js';
|
|
5
5
|
export declare class ApiDocumentV3_1 {
|
|
6
6
|
readonly module: ModuleDefinition;
|
|
7
|
-
readonly
|
|
8
|
-
constructor(
|
|
7
|
+
readonly specification: OpenAPIV3_1.Document;
|
|
8
|
+
constructor(specification: OpenAPIV3_1.Document, module: ModuleDefinition);
|
|
9
9
|
get schemas(): SchemaDefinition[];
|
|
10
10
|
get operations(): OperationDefinition[];
|
|
11
11
|
isEmpty(): boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api-document_v3_1.d.ts","sourceRoot":"","sources":["../../../src/tasks/utils/api-document_v3_1.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACxD,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAA;AAEzD,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAA;AAC/D,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAA;AAKzD,qBAAa,eAAe;IAC1B,QAAQ,CAAC,MAAM,EAAE,gBAAgB,CAAA;IACjC,QAAQ,CAAC,
|
|
1
|
+
{"version":3,"file":"api-document_v3_1.d.ts","sourceRoot":"","sources":["../../../src/tasks/utils/api-document_v3_1.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACxD,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAA;AAEzD,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAA;AAC/D,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAA;AAKzD,qBAAa,eAAe;IAC1B,QAAQ,CAAC,MAAM,EAAE,gBAAgB,CAAA;IACjC,QAAQ,CAAC,aAAa,EAAE,WAAW,CAAC,QAAQ,CAAA;gBAEhC,aAAa,EAAE,WAAW,CAAC,QAAQ,EAAE,MAAM,EAAE,gBAAgB;IAKzE,IAAI,OAAO,IAAI,gBAAgB,EAAE,CAWhC;IAED,IAAI,UAAU,IAAI,mBAAmB,EAAE,CAatC;IAED,OAAO,IAAI,OAAO;IAIlB,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,gBAAgB,GAAG,SAAS;IAQvD,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO;IASnC,QAAQ,CAAC,MAAM,EAAE,CAAC,mBAAmB,EAAE,mBAAmB,KAAK,OAAO,GAAG,eAAe;CA8BzF"}
|
|
@@ -33,7 +33,7 @@ export declare const RuntimeConfig: import("@sinclair/typebox").TObject<{
|
|
|
33
33
|
}>>]>>;
|
|
34
34
|
debug: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
35
35
|
/**
|
|
36
|
-
* Whether to tolerate wrong swagger structure
|
|
36
|
+
* Whether to tolerate wrong openapi/swagger structure
|
|
37
37
|
*/
|
|
38
38
|
tolerant: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
39
39
|
plugins: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TAny>>;
|
package/dist/utils/debugger.d.ts
CHANGED
|
@@ -2,6 +2,6 @@ import { RuntimeConfig } from '../types/runtime-config.js';
|
|
|
2
2
|
export declare class Debugger {
|
|
3
3
|
private rc?;
|
|
4
4
|
constructor(rc?: RuntimeConfig | undefined);
|
|
5
|
-
|
|
5
|
+
writeOpenapi(fullpath: string, openapi: any): void;
|
|
6
6
|
}
|
|
7
7
|
//# sourceMappingURL=debugger.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dereference-deep.d.ts","sourceRoot":"","sources":["../../../src/utils/
|
|
1
|
+
{"version":3,"file":"dereference-deep.d.ts","sourceRoot":"","sources":["../../../src/utils/openapi-utils/dereference-deep.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAKxD,wBAAgB,eAAe,CAAC,CAAC,SAAS,WAAW,CAAC,YAAY,GAAG,WAAW,CAAC,cAAc,GAAG,WAAW,CAAC,eAAe,GAAG,WAAW,CAAC,iBAAiB,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,WAAW,CAAC,QAAQ,GAAG,CAAC,CAsB7M"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dereference-operation.d.ts","sourceRoot":"","sources":["../../../src/utils/
|
|
1
|
+
{"version":3,"file":"dereference-operation.d.ts","sourceRoot":"","sources":["../../../src/utils/openapi-utils/dereference-operation.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAgCxD,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,WAAW,CAAC,QAAQ,GAAG,IAAI,CAkBxE;AAeD,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,WAAW,CAAC,QAAQ,GAAG,WAAW,CAAC,QAAQ,CASxF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dereference.d.ts","sourceRoot":"","sources":["../../../src/utils/
|
|
1
|
+
{"version":3,"file":"dereference.d.ts","sourceRoot":"","sources":["../../../src/utils/openapi-utils/dereference.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAGxD,wBAAgB,WAAW,CAAC,CAAC,SAAS,WAAW,CAAC,YAAY,GAAG,WAAW,CAAC,cAAc,GAAG,WAAW,CAAC,eAAe,GAAG,WAAW,CAAC,iBAAiB,GAAG,WAAW,CAAC,eAAe,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,WAAW,CAAC,QAAQ,GAAG,CAAC,CAcvO"}
|
|
@@ -4,7 +4,7 @@ import { isRefDefined } from './is-ref-defined.js';
|
|
|
4
4
|
import { removeUndefinedRef } from './remove-undefined-ref.js';
|
|
5
5
|
import { updateOperationId } from './update-operation-id.js';
|
|
6
6
|
import { dereferenceDeep } from './dereference-deep.js';
|
|
7
|
-
export declare class
|
|
7
|
+
export declare class OpenapiUtils {
|
|
8
8
|
static isRefDefined: typeof isRefDefined;
|
|
9
9
|
static dereference: typeof dereference;
|
|
10
10
|
static dereferenceDeep: typeof dereferenceDeep;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/openapi-utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAC9C,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAA;AACjE,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAA;AAClD,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAA;AAC9D,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAA;AAC5D,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAGvD,qBAAa,YAAY;IACvB,MAAM,CAAC,YAAY,sBAAe;IAClC,MAAM,CAAC,WAAW,qBAAc;IAChC,MAAM,CAAC,eAAe,yBAAkB;IACxC,MAAM,CAAC,kBAAkB,4BAAqB;IAC9C,MAAM,CAAC,oBAAoB,8BAAuB;IAClD,MAAM,CAAC,iBAAiB,2BAAoB;CAC7C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"is-ref-defined.d.ts","sourceRoot":"","sources":["../../../src/utils/
|
|
1
|
+
{"version":3,"file":"is-ref-defined.d.ts","sourceRoot":"","sources":["../../../src/utils/openapi-utils/is-ref-defined.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAGxD,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,WAAW,CAAC,QAAQ,GAAG,OAAO,CAOjF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remove-undefined-ref.d.ts","sourceRoot":"","sources":["../../../src/utils/
|
|
1
|
+
{"version":3,"file":"remove-undefined-ref.d.ts","sourceRoot":"","sources":["../../../src/utils/openapi-utils/remove-undefined-ref.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAMxD,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,WAAW,CAAC,QAAQ,GAAG,WAAW,CAAC,QAAQ,CAgBtF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-operation-id.d.ts","sourceRoot":"","sources":["../../../src/utils/
|
|
1
|
+
{"version":3,"file":"update-operation-id.d.ts","sourceRoot":"","sources":["../../../src/utils/openapi-utils/update-operation-id.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAIxD,KAAK,gBAAgB,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,WAAW,CAAC,eAAe,KAAK,MAAM,GAAG,SAAS,CAAA;AAGxH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,WAAW,CAAC,QAAQ,EAAE,EAAE,EAAE,gBAAgB,GAAG,WAAW,CAAC,QAAQ,CAmB3G"}
|
package/package.json
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"keq": "dist/cli.cjs"
|
|
8
8
|
},
|
|
9
9
|
"description": "Transform Swagger/OpenAPI to the function that send request by keq",
|
|
10
|
-
"version": "5.0.0-alpha.
|
|
10
|
+
"version": "5.0.0-alpha.19",
|
|
11
11
|
"engines": {
|
|
12
12
|
"node": ">=20.0.0"
|
|
13
13
|
},
|
|
@@ -47,27 +47,27 @@
|
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@types/fs-extra": "^11.0.4",
|
|
50
|
-
"@types/node": "^20.19.
|
|
50
|
+
"@types/node": "^20.19.25",
|
|
51
51
|
"@types/ramda": "^0.31.1",
|
|
52
52
|
"@types/swagger2openapi": "^7.0.4",
|
|
53
|
-
"keq": "5.0.0-alpha.
|
|
53
|
+
"keq": "5.0.0-alpha.19"
|
|
54
54
|
},
|
|
55
55
|
"dependencies": {
|
|
56
|
-
"@inquirer/prompts": "^7.
|
|
56
|
+
"@inquirer/prompts": "^7.10.1",
|
|
57
57
|
"@listr2/prompt-adapter-inquirer": "^3.0.5",
|
|
58
|
-
"@opendoc/openapi-shaking": "^1.5.
|
|
59
|
-
"@scalar/openapi-parser": "^0.23.
|
|
60
|
-
"@scalar/openapi-types": "^0.5.
|
|
58
|
+
"@opendoc/openapi-shaking": "^1.5.3",
|
|
59
|
+
"@scalar/openapi-parser": "^0.23.4",
|
|
60
|
+
"@scalar/openapi-types": "^0.5.2",
|
|
61
61
|
"@sinclair/typebox": "^0.34.41",
|
|
62
62
|
"@types/semver": "^7.7.1",
|
|
63
|
-
"@types/validator": "^13.15.
|
|
63
|
+
"@types/validator": "^13.15.10",
|
|
64
64
|
"chalk": "4.1.2",
|
|
65
65
|
"change-case": "4.1.2",
|
|
66
66
|
"commander": "^14.0.2",
|
|
67
67
|
"cosmiconfig": "^9.0.0",
|
|
68
68
|
"fs-extra": "^11.3.2",
|
|
69
69
|
"inquirer-select-pro": "1.0.0-alpha.9",
|
|
70
|
-
"js-yaml": "^4.1.
|
|
70
|
+
"js-yaml": "^4.1.1",
|
|
71
71
|
"jsonpath-plus": "^10.3.0",
|
|
72
72
|
"jsonpointer": "^5.0.1",
|
|
73
73
|
"listr2": "^9.0.5",
|
|
@@ -76,16 +76,16 @@
|
|
|
76
76
|
"swagger-fix": "^1.0.5",
|
|
77
77
|
"tapable": "^2.3.0",
|
|
78
78
|
"ts-custom-error": "^3.3.1",
|
|
79
|
-
"type-fest": "^5.
|
|
79
|
+
"type-fest": "^5.3.0",
|
|
80
80
|
"valid-url": "^1.0.9",
|
|
81
|
-
"validator": "^13.15.
|
|
81
|
+
"validator": "^13.15.23",
|
|
82
82
|
"word-wrap": "^1.2.5"
|
|
83
83
|
},
|
|
84
84
|
"peerDependencies": {
|
|
85
|
-
"keq": "5.0.0-alpha.
|
|
85
|
+
"keq": "5.0.0-alpha.19"
|
|
86
86
|
},
|
|
87
87
|
"optionalDependencies": {
|
|
88
|
-
"eslint": "^9"
|
|
88
|
+
"eslint": "^9.39.1"
|
|
89
89
|
},
|
|
90
90
|
"scripts": {
|
|
91
91
|
"build": "tsup",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|