@genapi/presets 3.6.4 → 3.7.0
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/axios/index.d.mts +7 -7
- package/dist/axios/index.mjs +5 -5
- package/dist/axios/js/config/index.d.mts +1 -1
- package/dist/axios/js/index.d.mts +3 -3
- package/dist/axios/js/index.mjs +2 -2
- package/dist/axios/js/parser/index.d.mts +1 -1
- package/dist/axios/js/parser/index.mjs +1 -1
- package/dist/axios/ts/config/index.d.mts +1 -1
- package/dist/axios/ts/index.d.mts +3 -3
- package/dist/axios/ts/index.mjs +2 -2
- package/dist/axios/ts/parser/index.d.mts +1 -1
- package/dist/axios/ts/parser/index.mjs +1 -1
- package/dist/{axios-iv3walM_.mjs → axios-C--VNFKW.mjs} +2 -2
- package/dist/{config-B6Kbwf1K.mjs → config-BGwXcXx1.mjs} +1 -1
- package/dist/{config-CwXkxa5e.mjs → config-C94x0Nge.mjs} +1 -1
- package/dist/{config-BhuG_ib-.mjs → config-CEngTpXa.mjs} +1 -1
- package/dist/{config-D3PcAA6e.mjs → config-DdUVYIe0.mjs} +1 -1
- package/dist/{config-mEpI8_sx.mjs → config-Dm0OCPw8.mjs} +1 -1
- package/dist/{config-Cc3VHRal.mjs → config-Dn-mxTew.mjs} +1 -1
- package/dist/fetch/index.d.mts +7 -7
- package/dist/fetch/index.mjs +5 -5
- package/dist/fetch/js/config/index.d.mts +1 -1
- package/dist/fetch/js/index.d.mts +3 -3
- package/dist/fetch/js/index.mjs +2 -2
- package/dist/fetch/js/parser/index.d.mts +1 -1
- package/dist/fetch/js/parser/index.mjs +1 -1
- package/dist/fetch/ts/config/index.d.mts +1 -1
- package/dist/fetch/ts/index.d.mts +3 -3
- package/dist/fetch/ts/index.mjs +2 -2
- package/dist/fetch/ts/parser/index.d.mts +1 -1
- package/dist/fetch/ts/parser/index.mjs +1 -1
- package/dist/{fetch-DLL06Jn7.mjs → fetch-TYDXDaTS.mjs} +2 -2
- package/dist/got/index.d.mts +7 -7
- package/dist/got/index.mjs +5 -5
- package/dist/got/js/config/index.d.mts +1 -1
- package/dist/got/js/index.d.mts +3 -3
- package/dist/got/js/index.mjs +2 -2
- package/dist/got/js/parser/index.d.mts +1 -1
- package/dist/got/js/parser/index.mjs +1 -1
- package/dist/got/ts/config/index.d.mts +1 -1
- package/dist/got/ts/index.d.mts +3 -3
- package/dist/got/ts/index.mjs +2 -2
- package/dist/got/ts/parser/index.d.mts +1 -1
- package/dist/got/ts/parser/index.mjs +1 -1
- package/dist/{got-Bk_ycTUL.mjs → got-D5A7dJdZ.mjs} +2 -2
- package/dist/{index.d-CEni3u-v.d.mts → index.d-1kS19nJx.d.mts} +3 -3
- package/dist/{index.d-BfxfJzRS.d.mts → index.d-1qaowKKm.d.mts} +3 -3
- package/dist/{index.d-B0Dj119v.d.mts → index.d-42t92mX0.d.mts} +1 -1
- package/dist/{index.d-yzOi6A83.d.mts → index.d-B0xaEiBX.d.mts} +3 -3
- package/dist/{index.d-D5GtXziQ.d.mts → index.d-B1m7PaBv.d.mts} +2 -2
- package/dist/{index.d-CZFjwNR8.d.mts → index.d-B6j2V4Az.d.mts} +3 -3
- package/dist/{index.d-pOHvTyqd.d.mts → index.d-BCWDJjEV.d.mts} +1 -1
- package/dist/{index.d-BtHVL3BR.d.mts → index.d-BN2_wiGD.d.mts} +3 -3
- package/dist/{index.d-BTl_y5wj.d.mts → index.d-BNkgVflG.d.mts} +2 -2
- package/dist/{index.d-DUEyaGJk.d.mts → index.d-BY4lF6QY.d.mts} +1 -1
- package/dist/{index.d-CCg_Iz5v.d.mts → index.d-BxDzXRov.d.mts} +3 -3
- package/dist/{index.d-DggSdR0X.d.mts → index.d-BxQraJfG.d.mts} +3 -3
- package/dist/{index.d-99mf5fZX.d.mts → index.d-Bxgqqjp3.d.mts} +1 -1
- package/dist/{index.d-B_46bdja.d.mts → index.d-C0EKSJ26.d.mts} +1 -1
- package/dist/{index.d-dxrAw57N.d.mts → index.d-C5ya5SE3.d.mts} +1 -1
- package/dist/index.d-C6gpVbqC.d.mts +12 -0
- package/dist/{index.d-BkDJnw7U.d.mts → index.d-CFvCqVRj.d.mts} +1 -1
- package/dist/{index.d-DY6RM6Ay.d.mts → index.d-CJ27pjS6.d.mts} +1 -1
- package/dist/index.d-CM3KHaZM.d.mts +12 -0
- package/dist/{index.d-DrCRTA_-.d.mts → index.d-CTkBXgsL.d.mts} +1 -1
- package/dist/{index.d-Cf66U2mM.d.mts → index.d-CXNw0ZkA.d.mts} +2 -2
- package/dist/{index.d-sD6rvM8B.d.mts → index.d-C_cfONoz.d.mts} +2 -2
- package/dist/{index.d-Dq2vxB2L.d.mts → index.d-Ceqrd7FN.d.mts} +1 -1
- package/dist/{index.d-Blu1fWNS.d.mts → index.d-Cgflcv1m.d.mts} +3 -3
- package/dist/{index.d-DWHBuUbH.d.mts → index.d-CmW7DwIV.d.mts} +3 -3
- package/dist/{index.d-Cd_xBZkT.d.mts → index.d-DDTGaUmA.d.mts} +2 -2
- package/dist/{index.d-jXY3HfJV.d.mts → index.d-DHMHzs8Q.d.mts} +2 -2
- package/dist/{index.d-BWW0jq-P.d.mts → index.d-DOPIfZ0r.d.mts} +4 -4
- package/dist/{index.d-CjnRhC1X.d.mts → index.d-Dd6ZDpp9.d.mts} +4 -4
- package/dist/{index.d-DrmSSkE4.d.mts → index.d-DgbGF4C3.d.mts} +4 -4
- package/dist/{index.d-DEHbLh_t.d.mts → index.d-DmOkv7N9.d.mts} +3 -3
- package/dist/{index.d-Bs9ACBYl.d.mts → index.d-DpQbWiOh.d.mts} +2 -2
- package/dist/{index.d-CVft0H8H.d.mts → index.d-Dvtsr9g-.d.mts} +2 -2
- package/dist/{index.d-C0TXUsBB.d.mts → index.d-LlaJb0pD.d.mts} +3 -3
- package/dist/{index.d-B-3xNMdO.d.mts → index.d-RZUAACu-.d.mts} +2 -2
- package/dist/{index.d-Bl3eJN4u.d.mts → index.d-SxIr6Uhl.d.mts} +3 -3
- package/dist/{index.d-DB4DQcb7.d.mts → index.d-TD1X3MeU.d.mts} +2 -2
- package/dist/{index.d-Bgc7dYZS.d.mts → index.d-mJ3Pcxey.d.mts} +2 -2
- package/dist/{index.d-B7QHlSFS.d.mts → index.d-mXlHJ3vm.d.mts} +3 -3
- package/dist/{index.d-DcMTRJFe.d.mts → index.d-xPgxVw9l.d.mts} +2 -2
- package/dist/index.d.mts +40 -40
- package/dist/index.mjs +36 -36
- package/dist/{js-nrzOgHcn.mjs → js-BHy43BOA.mjs} +2 -2
- package/dist/{js-D-lPI2Zn.mjs → js-CsFu-S2j.mjs} +1 -1
- package/dist/{js-BP1luA69.mjs → js-SMul0x9Q.mjs} +2 -2
- package/dist/{js-DV7q1vbm.mjs → js-Swp-o6ZG.mjs} +3 -3
- package/dist/{js-nPYw8nGm.mjs → js-jTe7QP2M.mjs} +1 -1
- package/dist/{js-CW96SJaN.mjs → js-rCsJDgHU.mjs} +3 -3
- package/dist/ky/index.d.mts +6 -6
- package/dist/ky/index.mjs +7 -7
- package/dist/ky/js/config/index.mjs +1 -1
- package/dist/ky/js/index.d.mts +2 -2
- package/dist/ky/js/index.mjs +3 -3
- package/dist/ky/js/parser/index.d.mts +1 -1
- package/dist/ky/js/parser/index.mjs +1 -1
- package/dist/ky/ts/config/index.d.mts +1 -1
- package/dist/ky/ts/config/index.mjs +1 -1
- package/dist/ky/ts/index.d.mts +3 -3
- package/dist/ky/ts/index.mjs +3 -3
- package/dist/ky/ts/parser/index.d.mts +1 -1
- package/dist/ky/ts/parser/index.mjs +1 -1
- package/dist/{ky-yrBtHJOC.mjs → ky--lXnn0gU.mjs} +2 -2
- package/dist/ofetch/index.d.mts +6 -6
- package/dist/ofetch/index.mjs +7 -7
- package/dist/ofetch/js/config/index.mjs +1 -1
- package/dist/ofetch/js/index.d.mts +2 -2
- package/dist/ofetch/js/index.mjs +3 -3
- package/dist/ofetch/js/parser/index.d.mts +1 -1
- package/dist/ofetch/js/parser/index.mjs +1 -1
- package/dist/ofetch/ts/config/index.d.mts +1 -1
- package/dist/ofetch/ts/config/index.mjs +1 -1
- package/dist/ofetch/ts/index.d.mts +3 -3
- package/dist/ofetch/ts/index.mjs +3 -3
- package/dist/ofetch/ts/parser/index.d.mts +1 -1
- package/dist/ofetch/ts/parser/index.mjs +1 -1
- package/dist/{ofetch-CRcbex0G.mjs → ofetch-qhtvI1gy.mjs} +2 -2
- package/dist/{parser-eI6eqR9i.mjs → parser-820U-7tY.mjs} +10 -8
- package/dist/{parser-EdhJ3Qd1.mjs → parser-BEbsKXRG.mjs} +10 -8
- package/dist/{parser-XfpBe6J7.mjs → parser-BMWMb1tW.mjs} +11 -9
- package/dist/{parser-Bca6rvOA.mjs → parser-BMaYANAS.mjs} +10 -8
- package/dist/{parser-ILpmQxJS.mjs → parser-BOXlubkg.mjs} +11 -9
- package/dist/{parser-DWEwuz0M.mjs → parser-B_pvME5o.mjs} +10 -8
- package/dist/{parser-CKxD1WcD.mjs → parser-By1vGa1J.mjs} +11 -9
- package/dist/{parser-Cmtirdyk.mjs → parser-C267rNUI.mjs} +10 -8
- package/dist/{parser-2fyRmQ9U.mjs → parser-CFUtEOtZ.mjs} +11 -9
- package/dist/{parser-BfHrwX8k.mjs → parser-CedZCyxl.mjs} +11 -9
- package/dist/{parser-C7x_CYBU.mjs → parser-OUoEsF2d.mjs} +11 -9
- package/dist/{parser-OMrPnoEH.mjs → parser-kk99DwsW.mjs} +10 -8
- package/dist/{ts-CGmPodda.mjs → ts-B-VDMOmJ.mjs} +3 -3
- package/dist/{ts-Bm10CVRI.mjs → ts-CBFVpM-p.mjs} +2 -2
- package/dist/{ts-wjKQK01I.mjs → ts-CBWxAza5.mjs} +1 -1
- package/dist/{ts-DaGoV8V5.mjs → ts-CKsdt6vA.mjs} +3 -3
- package/dist/{ts-C63VeyhJ.mjs → ts-Cnuezdyy.mjs} +1 -1
- package/dist/{ts-B_95wjwz.mjs → ts-ILF3D-J-.mjs} +2 -2
- package/dist/uni/index.d.mts +7 -7
- package/dist/uni/index.mjs +7 -7
- package/dist/uni/js/config/index.d.mts +1 -1
- package/dist/uni/js/config/index.mjs +1 -1
- package/dist/uni/js/index.d.mts +3 -3
- package/dist/uni/js/index.mjs +3 -3
- package/dist/uni/js/parser/index.d.mts +1 -1
- package/dist/uni/js/parser/index.mjs +1 -1
- package/dist/uni/ts/config/index.d.mts +1 -1
- package/dist/uni/ts/config/index.mjs +1 -1
- package/dist/uni/ts/index.d.mts +3 -3
- package/dist/uni/ts/index.mjs +3 -3
- package/dist/uni/ts/parser/index.d.mts +1 -1
- package/dist/uni/ts/parser/index.mjs +1 -1
- package/dist/{uni-D2Xd9fEW.mjs → uni-CQMaFViG.mjs} +2 -2
- package/package.json +4 -4
- package/dist/index.d-hifkeXRt.d.mts +0 -12
- package/dist/index.d-yBHJ-qeO.d.mts +0 -12
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { literalFieldsToString, parseHeaderCommits, parseMethodMetadata, parseMethodParameters, parseOpenapiSpecification, transformBaseURL, transformDefinitions, transformParameters, transformQueryParams, transformUrlSyntax, traversePaths } from "@genapi/parser";
|
|
2
|
+
import { inject, provide } from "@genapi/shared";
|
|
2
3
|
|
|
3
4
|
//#region src/ofetch/js/parser/index.ts
|
|
4
5
|
function parser(configRead) {
|
|
@@ -6,19 +7,20 @@ function parser(configRead) {
|
|
|
6
7
|
const comments = parseHeaderCommits(source);
|
|
7
8
|
const interfaces = [];
|
|
8
9
|
const functions = [];
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
configRead,
|
|
13
|
-
functions,
|
|
14
|
-
interfaces
|
|
10
|
+
provide({
|
|
11
|
+
interfaces,
|
|
12
|
+
functions
|
|
15
13
|
});
|
|
14
|
+
transformBaseURL(source);
|
|
15
|
+
transformDefinitions(source.definitions);
|
|
16
|
+
transformPaths(source.paths);
|
|
16
17
|
configRead.graphs.comments = comments;
|
|
17
18
|
configRead.graphs.functions = functions;
|
|
18
19
|
configRead.graphs.interfaces = interfaces;
|
|
19
20
|
return configRead;
|
|
20
21
|
}
|
|
21
|
-
function transformPaths(paths
|
|
22
|
+
function transformPaths(paths) {
|
|
23
|
+
const { configRead, functions, interfaces } = inject();
|
|
22
24
|
traversePaths(paths, (config) => {
|
|
23
25
|
/**
|
|
24
26
|
|
|
@@ -29,7 +31,7 @@ function transformPaths(paths, { configRead, functions, interfaces }) {
|
|
|
29
31
|
formData: "body",
|
|
30
32
|
query: "params"
|
|
31
33
|
});
|
|
32
|
-
let { name, description, url, responseType, body } = parseMethodMetadata(config
|
|
34
|
+
let { name, description, url, responseType, body } = parseMethodMetadata(config);
|
|
33
35
|
interfaces.push(...attachInters);
|
|
34
36
|
parameters.push({
|
|
35
37
|
name: "options",
|
|
@@ -64,4 +66,4 @@ function transformPaths(paths, { configRead, functions, interfaces }) {
|
|
|
64
66
|
}
|
|
65
67
|
|
|
66
68
|
//#endregion
|
|
67
|
-
export { parser as parser$
|
|
69
|
+
export { parser as parser$8, transformPaths as transformPaths$8 };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { literalFieldsToString, parseHeaderCommits, parseMethodMetadata, parseMethodParameters, parseOpenapiSpecification, transformBaseURL, transformDefinitions, transformParameters, transformQueryParams, transformUrlSyntax, traversePaths } from "@genapi/parser";
|
|
2
|
+
import { inject, provide } from "@genapi/shared";
|
|
2
3
|
|
|
3
4
|
//#region src/ofetch/ts/parser/index.ts
|
|
4
5
|
function parser(configRead) {
|
|
@@ -6,19 +7,20 @@ function parser(configRead) {
|
|
|
6
7
|
const comments = parseHeaderCommits(source);
|
|
7
8
|
const interfaces = [];
|
|
8
9
|
const functions = [];
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
configRead,
|
|
13
|
-
functions,
|
|
14
|
-
interfaces
|
|
10
|
+
provide({
|
|
11
|
+
interfaces,
|
|
12
|
+
functions
|
|
15
13
|
});
|
|
14
|
+
transformBaseURL(source);
|
|
15
|
+
transformDefinitions(source.definitions);
|
|
16
|
+
transformPaths(source.paths);
|
|
16
17
|
configRead.graphs.comments = comments;
|
|
17
18
|
configRead.graphs.functions = functions;
|
|
18
19
|
configRead.graphs.interfaces = interfaces;
|
|
19
20
|
return configRead;
|
|
20
21
|
}
|
|
21
|
-
function transformPaths(paths
|
|
22
|
+
function transformPaths(paths) {
|
|
23
|
+
const { configRead, functions, interfaces } = inject();
|
|
22
24
|
traversePaths(paths, (config) => {
|
|
23
25
|
/**
|
|
24
26
|
|
|
@@ -29,7 +31,7 @@ function transformPaths(paths, { configRead, functions, interfaces }) {
|
|
|
29
31
|
formData: "body",
|
|
30
32
|
query: "params"
|
|
31
33
|
});
|
|
32
|
-
let { name, description, url, responseType, body } = parseMethodMetadata(config
|
|
34
|
+
let { name, description, url, responseType, body } = parseMethodMetadata(config);
|
|
33
35
|
interfaces.push(...attachInters);
|
|
34
36
|
parameters.push({
|
|
35
37
|
name: "options",
|
|
@@ -63,4 +65,4 @@ function transformPaths(paths, { configRead, functions, interfaces }) {
|
|
|
63
65
|
}
|
|
64
66
|
|
|
65
67
|
//#endregion
|
|
66
|
-
export { parser as parser$
|
|
68
|
+
export { parser as parser$9, transformPaths as transformPaths$9 };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { literalFieldsToString, parseHeaderCommits, parseMethodMetadata, parseMethodParameters, parseOpenapiSpecification, transformBaseURL, transformDefinitions, transformParameters, transformUrlSyntax, traversePaths } from "@genapi/parser";
|
|
2
|
+
import { inject, provide } from "@genapi/shared";
|
|
2
3
|
|
|
3
4
|
//#region src/axios/ts/parser/index.ts
|
|
4
5
|
function parser(configRead) {
|
|
@@ -6,19 +7,20 @@ function parser(configRead) {
|
|
|
6
7
|
const comments = parseHeaderCommits(source);
|
|
7
8
|
const interfaces = [];
|
|
8
9
|
const functions = [];
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
configRead,
|
|
13
|
-
functions,
|
|
14
|
-
interfaces
|
|
10
|
+
provide({
|
|
11
|
+
interfaces,
|
|
12
|
+
functions
|
|
15
13
|
});
|
|
14
|
+
transformBaseURL(source);
|
|
15
|
+
transformDefinitions(source.definitions);
|
|
16
|
+
transformPaths(source.paths);
|
|
16
17
|
configRead.graphs.comments = comments;
|
|
17
18
|
configRead.graphs.functions = functions;
|
|
18
19
|
configRead.graphs.interfaces = interfaces;
|
|
19
20
|
return configRead;
|
|
20
21
|
}
|
|
21
|
-
function transformPaths(paths
|
|
22
|
+
function transformPaths(paths) {
|
|
23
|
+
const { configRead, functions, interfaces } = inject();
|
|
22
24
|
traversePaths(paths, (config) => {
|
|
23
25
|
/**
|
|
24
26
|
|
|
@@ -29,7 +31,7 @@ function transformPaths(paths, { configRead, functions, interfaces }) {
|
|
|
29
31
|
body: "data",
|
|
30
32
|
query: "params"
|
|
31
33
|
});
|
|
32
|
-
let { name, description, url, responseType } = parseMethodMetadata(config
|
|
34
|
+
let { name, description, url, responseType } = parseMethodMetadata(config);
|
|
33
35
|
options.push(["...", "config"]);
|
|
34
36
|
interfaces.push(...attachInters);
|
|
35
37
|
parameters.push({
|
|
@@ -59,4 +61,4 @@ function transformPaths(paths, { configRead, functions, interfaces }) {
|
|
|
59
61
|
}
|
|
60
62
|
|
|
61
63
|
//#endregion
|
|
62
|
-
export { parser, transformPaths };
|
|
64
|
+
export { parser as parser$1, transformPaths as transformPaths$1 };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { literalFieldsToString, parseHeaderCommits, parseMethodMetadata, parseMethodParameters, parseOpenapiSpecification, transformBaseURL, transformBodyStringify, transformDefinitions, transformParameters, transformQueryParams, transformUrlSyntax, traversePaths } from "@genapi/parser";
|
|
2
|
+
import { inject, provide } from "@genapi/shared";
|
|
2
3
|
|
|
3
4
|
//#region src/got/ts/parser/index.ts
|
|
4
5
|
function parser(configRead) {
|
|
@@ -6,19 +7,20 @@ function parser(configRead) {
|
|
|
6
7
|
const comments = parseHeaderCommits(source);
|
|
7
8
|
const interfaces = [];
|
|
8
9
|
const functions = [];
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
configRead,
|
|
13
|
-
functions,
|
|
14
|
-
interfaces
|
|
10
|
+
provide({
|
|
11
|
+
interfaces,
|
|
12
|
+
functions
|
|
15
13
|
});
|
|
14
|
+
transformBaseURL(source);
|
|
15
|
+
transformDefinitions(source.definitions);
|
|
16
|
+
transformPaths(source.paths);
|
|
16
17
|
configRead.graphs.comments = comments;
|
|
17
18
|
configRead.graphs.functions = functions;
|
|
18
19
|
configRead.graphs.interfaces = interfaces;
|
|
19
20
|
return configRead;
|
|
20
21
|
}
|
|
21
|
-
function transformPaths(paths
|
|
22
|
+
function transformPaths(paths) {
|
|
23
|
+
const { configRead, functions, interfaces } = inject();
|
|
22
24
|
traversePaths(paths, (config) => {
|
|
23
25
|
/**
|
|
24
26
|
|
|
@@ -26,7 +28,7 @@ function transformPaths(paths, { configRead, functions, interfaces }) {
|
|
|
26
28
|
|
|
27
29
|
*/
|
|
28
30
|
const { parameters, interfaces: attachInters, options } = parseMethodParameters(config);
|
|
29
|
-
let { name, description, url, responseType } = parseMethodMetadata(config
|
|
31
|
+
let { name, description, url, responseType } = parseMethodMetadata(config);
|
|
30
32
|
interfaces.push(...attachInters);
|
|
31
33
|
parameters.push({
|
|
32
34
|
name: "config",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { config$11 as config } from "./config-
|
|
2
|
-
import { parser$11 as parser } from "./parser-
|
|
1
|
+
import { config$11 as config } from "./config-CEngTpXa.mjs";
|
|
2
|
+
import { parser$11 as parser } from "./parser-BOXlubkg.mjs";
|
|
3
3
|
import pipeline, { compiler as compiler$1, dest as dest$1, generate as generate$1, original as original$1 } from "@genapi/pipeline";
|
|
4
4
|
|
|
5
|
-
//#region src/
|
|
5
|
+
//#region src/uni/ts/index.ts
|
|
6
6
|
function openapiPipeline(userConfig) {
|
|
7
7
|
const process = pipeline((userConfig$1) => config(userConfig$1), (configRead) => original$1(configRead), (configRead) => parser(configRead), (configRead) => compiler$1(configRead), (configRead) => generate$1(configRead), (configRead) => dest$1(configRead));
|
|
8
8
|
return process(userConfig);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { config$1 as config } from "./config-B89EoGE7.mjs";
|
|
2
|
-
import { parser } from "./parser-
|
|
2
|
+
import { parser$1 as parser } from "./parser-OUoEsF2d.mjs";
|
|
3
3
|
import pipeline, { compiler as compiler$1, dest as dest$1, generate as generate$1, original as original$1 } from "@genapi/pipeline";
|
|
4
4
|
|
|
5
5
|
//#region src/axios/ts/index.ts
|
|
@@ -16,4 +16,4 @@ openapiPipeline.dest = dest$1;
|
|
|
16
16
|
var ts_default = openapiPipeline;
|
|
17
17
|
|
|
18
18
|
//#endregion
|
|
19
|
-
export { compiler$1
|
|
19
|
+
export { compiler$1, dest$1, generate$1, original$1, ts_default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { config$5 as config } from "./config-aVU8JEKy.mjs";
|
|
2
|
-
import { parser$5 as parser } from "./parser-
|
|
2
|
+
import { parser$5 as parser } from "./parser-kk99DwsW.mjs";
|
|
3
3
|
import pipeline, { compiler as compiler$1, dest as dest$1, generate as generate$1, original as original$1 } from "@genapi/pipeline";
|
|
4
4
|
|
|
5
5
|
//#region src/got/ts/index.ts
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { config$9 as config } from "./config-
|
|
2
|
-
import { parser$9 as parser } from "./parser-
|
|
1
|
+
import { config$9 as config } from "./config-C94x0Nge.mjs";
|
|
2
|
+
import { parser$9 as parser } from "./parser-CedZCyxl.mjs";
|
|
3
3
|
import pipeline, { compiler as compiler$1, dest as dest$1, generate as generate$1, original as original$1 } from "@genapi/pipeline";
|
|
4
4
|
|
|
5
|
-
//#region src/
|
|
5
|
+
//#region src/ofetch/ts/index.ts
|
|
6
6
|
function openapiPipeline(userConfig) {
|
|
7
7
|
const process = pipeline((userConfig$1) => config(userConfig$1), (configRead) => original$1(configRead), (configRead) => parser(configRead), (configRead) => compiler$1(configRead), (configRead) => generate$1(configRead), (configRead) => dest$1(configRead));
|
|
8
8
|
return process(userConfig);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { config$3 as config } from "./config-BHBub1xl.mjs";
|
|
2
|
-
import { parser$3 as parser } from "./parser-
|
|
2
|
+
import { parser$3 as parser } from "./parser-BEbsKXRG.mjs";
|
|
3
3
|
import pipeline, { compiler as compiler$1, dest as dest$1, generate as generate$1, original as original$1 } from "@genapi/pipeline";
|
|
4
4
|
|
|
5
5
|
//#region src/fetch/ts/index.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { config$
|
|
2
|
-
import { parser$7 as parser } from "./parser-
|
|
1
|
+
import { config$7 as config } from "./config-BGwXcXx1.mjs";
|
|
2
|
+
import { parser$7 as parser } from "./parser-BMaYANAS.mjs";
|
|
3
3
|
import pipeline, { compiler as compiler$1, dest as dest$1, generate as generate$1, original as original$1 } from "@genapi/pipeline";
|
|
4
4
|
|
|
5
5
|
//#region src/ky/ts/index.ts
|
package/dist/uni/index.d.mts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import "../index.d-
|
|
2
|
-
import "../index.d-
|
|
3
|
-
import { openapiPipeline$
|
|
4
|
-
import "../index.d-
|
|
5
|
-
import "../index.d-
|
|
6
|
-
import { openapiPipeline$
|
|
7
|
-
import "../index.d-
|
|
1
|
+
import "../index.d-xPgxVw9l.mjs";
|
|
2
|
+
import "../index.d-C5ya5SE3.mjs";
|
|
3
|
+
import { openapiPipeline$6 as openapiPipeline } from "../index.d-mXlHJ3vm.mjs";
|
|
4
|
+
import "../index.d-DHMHzs8Q.mjs";
|
|
5
|
+
import "../index.d-CFvCqVRj.mjs";
|
|
6
|
+
import { openapiPipeline$4 as openapiPipeline$1 } from "../index.d-1kS19nJx.mjs";
|
|
7
|
+
import "../index.d-C6gpVbqC.mjs";
|
|
8
8
|
|
|
9
9
|
export { openapiPipeline as js, openapiPipeline$1 as ts };
|
package/dist/uni/index.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import "../config-
|
|
2
|
-
import "../parser-
|
|
3
|
-
import { js_default$
|
|
4
|
-
import "../config-
|
|
5
|
-
import "../parser-
|
|
6
|
-
import { ts_default$
|
|
7
|
-
import "../uni-
|
|
1
|
+
import "../config-Dn-mxTew.mjs";
|
|
2
|
+
import "../parser-BMWMb1tW.mjs";
|
|
3
|
+
import { js_default$5 as js_default } from "../js-rCsJDgHU.mjs";
|
|
4
|
+
import "../config-CEngTpXa.mjs";
|
|
5
|
+
import "../parser-BOXlubkg.mjs";
|
|
6
|
+
import { ts_default$5 as ts_default } from "../ts-B-VDMOmJ.mjs";
|
|
7
|
+
import "../uni-CQMaFViG.mjs";
|
|
8
8
|
|
|
9
9
|
export { js_default as js, ts_default as ts };
|
package/dist/uni/js/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { parser$
|
|
2
|
-
import { config$
|
|
3
|
-
import { compiler$
|
|
1
|
+
import { parser$21 as parser } from "../../index.d-xPgxVw9l.mjs";
|
|
2
|
+
import { config$23 as config } from "../../index.d-C5ya5SE3.mjs";
|
|
3
|
+
import { compiler$18 as compiler, dest$18 as dest, generate$18 as generate, openapiPipeline$6 as openapiPipeline, original$18 as original } from "../../index.d-mXlHJ3vm.mjs";
|
|
4
4
|
|
|
5
5
|
export { compiler, config, openapiPipeline as default, dest, generate, original, parser };
|
package/dist/uni/js/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { config$
|
|
2
|
-
import { parser$
|
|
3
|
-
import { compiler$
|
|
1
|
+
import { config$10 as config } from "../../config-Dn-mxTew.mjs";
|
|
2
|
+
import { parser$10 as parser } from "../../parser-BMWMb1tW.mjs";
|
|
3
|
+
import { compiler$10 as compiler, dest$10 as dest, generate$10 as generate, js_default$5 as js_default, original$10 as original } from "../../js-rCsJDgHU.mjs";
|
|
4
4
|
|
|
5
5
|
export { compiler, config, js_default as default, dest, generate, original, parser };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { PathsTransformOptions$
|
|
1
|
+
import { PathsTransformOptions$9 as PathsTransformOptions, parser$21 as parser, transformPaths$21 as transformPaths } from "../../../index.d-xPgxVw9l.mjs";
|
|
2
2
|
|
|
3
3
|
export { PathsTransformOptions, parser, transformPaths };
|
package/dist/uni/ts/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { parser$
|
|
2
|
-
import { config$
|
|
3
|
-
import { compiler$
|
|
1
|
+
import { parser$23 as parser } from "../../index.d-DHMHzs8Q.mjs";
|
|
2
|
+
import { config$22 as config } from "../../index.d-CFvCqVRj.mjs";
|
|
3
|
+
import { compiler$16 as compiler, dest$16 as dest, generate$16 as generate, openapiPipeline$4 as openapiPipeline, original$16 as original } from "../../index.d-1kS19nJx.mjs";
|
|
4
4
|
|
|
5
5
|
export { compiler, config, openapiPipeline as default, dest, generate, original, parser };
|
package/dist/uni/ts/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { config$
|
|
2
|
-
import { parser$
|
|
3
|
-
import { compiler$
|
|
1
|
+
import { config$11 as config } from "../../config-CEngTpXa.mjs";
|
|
2
|
+
import { parser$11 as parser } from "../../parser-BOXlubkg.mjs";
|
|
3
|
+
import { compiler$11 as compiler, dest$11 as dest, generate$11 as generate, original$11 as original, ts_default$5 as ts_default } from "../../ts-B-VDMOmJ.mjs";
|
|
4
4
|
|
|
5
5
|
export { compiler, config, ts_default as default, dest, generate, original, parser };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { PathsTransformOptions$
|
|
1
|
+
import { PathsTransformOptions$11 as PathsTransformOptions, parser$23 as parser, transformPaths$23 as transformPaths } from "../../../index.d-DHMHzs8Q.mjs";
|
|
2
2
|
|
|
3
3
|
export { PathsTransformOptions, parser, transformPaths };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __export } from "./chunk-BL35Yyzp.mjs";
|
|
2
|
-
import { js_default$
|
|
3
|
-
import { ts_default$
|
|
2
|
+
import { js_default$5 as js_default } from "./js-rCsJDgHU.mjs";
|
|
3
|
+
import { ts_default$5 as ts_default } from "./ts-B-VDMOmJ.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/uni/index.ts
|
|
6
6
|
var uni_exports = {};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@genapi/presets",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.7.0",
|
|
5
5
|
"author": "Hairyf <wwu710632@gmail.com>",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"homepage": "https://github.com/hairyf/genapi#readme",
|
|
@@ -63,9 +63,9 @@
|
|
|
63
63
|
],
|
|
64
64
|
"dependencies": {
|
|
65
65
|
"openapi-specification-types": "^0.0.3",
|
|
66
|
-
"@genapi/parser": "3.
|
|
67
|
-
"@genapi/
|
|
68
|
-
"@genapi/
|
|
66
|
+
"@genapi/parser": "3.7.0",
|
|
67
|
+
"@genapi/pipeline": "3.7.0",
|
|
68
|
+
"@genapi/shared": "3.7.0"
|
|
69
69
|
},
|
|
70
70
|
"scripts": {
|
|
71
71
|
"build": "tsdown",
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { __export } from "./chunk-BL35Yyzp.mjs";
|
|
2
|
-
import { openapiPipeline$4 as openapiPipeline } from "./index.d-CEni3u-v.mjs";
|
|
3
|
-
import { openapiPipeline as openapiPipeline$1 } from "./index.d-C0TXUsBB.mjs";
|
|
4
|
-
|
|
5
|
-
//#region src/got/index.d.ts
|
|
6
|
-
|
|
7
|
-
declare namespace index_d_exports {
|
|
8
|
-
export { openapiPipeline as js, openapiPipeline$1 as ts, }
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
//#endregion
|
|
12
|
-
export { index_d_exports as index_d_exports$1 };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { __export } from "./chunk-BL35Yyzp.mjs";
|
|
2
|
-
import { openapiPipeline$3 as openapiPipeline } from "./index.d-DggSdR0X.mjs";
|
|
3
|
-
import { openapiPipeline$1 } from "./index.d-Blu1fWNS.mjs";
|
|
4
|
-
|
|
5
|
-
//#region src/axios/index.d.ts
|
|
6
|
-
|
|
7
|
-
declare namespace index_d_exports {
|
|
8
|
-
export { openapiPipeline as js, openapiPipeline$1 as ts, }
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
//#endregion
|
|
12
|
-
export { index_d_exports };
|