@genapi/presets 3.5.0 → 3.6.2
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-CG6HLmR9.mjs → axios-BW0LI_Q5.mjs} +2 -2
- package/dist/{config-Dp9C4aUE.mjs → config-B16vmOTT.mjs} +1 -1
- package/dist/{config-IeVj3de_.mjs → config-B8vtDa36.mjs} +1 -1
- package/dist/{config-B6UDPRkS.mjs → config-BHBub1xl.mjs} +1 -1
- package/dist/config-BhuG_ib-.mjs +21 -0
- package/dist/config-Cc3VHRal.mjs +19 -0
- package/dist/{config-DdUVYIe0.mjs → config-D3PcAA6e.mjs} +1 -1
- package/dist/{config-CDvaM7ZL.mjs → config-DgC2f2AO.mjs} +1 -1
- package/dist/{config-Dm0OCPw8.mjs → config-SP_VEcsX.mjs} +1 -1
- package/dist/fetch/index.d.mts +7 -7
- package/dist/fetch/index.mjs +6 -6
- 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/config/index.mjs +1 -1
- package/dist/fetch/ts/index.d.mts +3 -3
- package/dist/fetch/ts/index.mjs +3 -3
- package/dist/fetch/ts/parser/index.d.mts +1 -1
- package/dist/fetch/ts/parser/index.mjs +1 -1
- package/dist/{fetch-DDSgFojK.mjs → fetch-DLL06Jn7.mjs} +2 -2
- package/dist/got/index.d.mts +7 -7
- package/dist/got/index.mjs +6 -6
- package/dist/got/js/config/index.d.mts +1 -1
- package/dist/got/js/config/index.mjs +1 -1
- package/dist/got/js/index.d.mts +3 -3
- package/dist/got/js/index.mjs +3 -3
- 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-DhRc0hx6.mjs → got-Bk_ycTUL.mjs} +2 -2
- package/dist/{index.d-DTsMFJM4.d.mts → index.d--7J4xg_C.d.mts} +4 -4
- package/dist/index.d-1yIjHRcL.d.mts +18 -0
- package/dist/{index.d-Dsok7fEc.d.mts → index.d-Ax3GuVKY.d.mts} +1 -1
- package/dist/{index.d-sEb0cOvU.d.mts → index.d-B4ICHGvq.d.mts} +4 -4
- package/dist/{index.d-Ba1tOHnm.d.mts → index.d-B8FQBHuC.d.mts} +3 -3
- package/dist/index.d-B9C3SJsw.d.mts +7 -0
- package/dist/{index.d-C10wnMdy.d.mts → index.d-BBXqLTYE.d.mts} +2 -2
- package/dist/index.d-BD5sl7Ep.d.mts +18 -0
- package/dist/{index.d-BEPmcVlv.d.mts → index.d-BHnYB8-L.d.mts} +4 -4
- package/dist/{index.d-DgSgg69k.d.mts → index.d-BId_SGCG.d.mts} +4 -4
- package/dist/index.d-BXZFm7XN.d.mts +12 -0
- package/dist/{index.d-B9YjsDSU.d.mts → index.d-BY4lF6QY.d.mts} +1 -1
- package/dist/{index.d-DT6dJ1Sg.d.mts → index.d-BipR8eG-.d.mts} +2 -2
- package/dist/{index.d-C-mT1tVI.d.mts → index.d-BlRzU5xC.d.mts} +4 -4
- package/dist/{index.d-D9OXwZhj.d.mts → index.d-BoZ-vUvw.d.mts} +1 -1
- package/dist/index.d-BycZForE.d.mts +7 -0
- package/dist/{index.d-C-mKHl9s.d.mts → index.d-C21FenrV.d.mts} +1 -1
- package/dist/{index.d-DndBUrRi.d.mts → index.d-C94i_Ld-.d.mts} +4 -4
- package/dist/index.d-CQQrcfNG.d.mts +12 -0
- package/dist/{index.d-DlncPuTy.d.mts → index.d-CT88RB6L.d.mts} +1 -1
- package/dist/{index.d-D6AeBSov.d.mts → index.d-CU0fle6w.d.mts} +2 -2
- package/dist/{index.d-DkWb7AYg.d.mts → index.d-CyV_khLK.d.mts} +1 -1
- package/dist/{index.d-CozwYURq.d.mts → index.d-D4ZIfXQd.d.mts} +1 -1
- package/dist/{index.d-BCl4h5vb.d.mts → index.d-D6rkgGxJ.d.mts} +4 -4
- package/dist/{index.d-CGbHzQH8.d.mts → index.d-DZSMSdyd.d.mts} +4 -4
- package/dist/index.d-Dah_fwpb.d.mts +14 -0
- package/dist/{index.d-BVDe1tFu.d.mts → index.d-DcpAaqwz.d.mts} +2 -2
- package/dist/{index.d-BvMhV1lw.d.mts → index.d-DiC1GzwU.d.mts} +2 -2
- package/dist/{index.d-DBNQTE-q.d.mts → index.d-DlOtVVNW.d.mts} +4 -4
- package/dist/{index.d-DD9vtQSr.d.mts → index.d-DnncVh_i.d.mts} +2 -2
- package/dist/{index.d-B6ea0pDX.d.mts → index.d-DvsJY4UE.d.mts} +1 -1
- package/dist/{index.d-D0ou41dA.d.mts → index.d-HwneV6CI.d.mts} +3 -3
- package/dist/{index.d-xT7aQSB2.d.mts → index.d-NMl8NDEt.d.mts} +2 -2
- package/dist/{index.d-C38NRU-q.d.mts → index.d-UA_EL6Jy.d.mts} +4 -4
- package/dist/{index.d-YNb6GO8o.d.mts → index.d-UIoZwyY2.d.mts} +4 -4
- package/dist/{index.d-qxp4tWxk.d.mts → index.d-YgLxf9uo.d.mts} +1 -1
- package/dist/{index.d-Dx6IWWI4.d.mts → index.d-dNN_tNZV.d.mts} +1 -1
- package/dist/{index.d-yppv-kCz.d.mts → index.d-dTdSE3Nv.d.mts} +2 -2
- package/dist/{index.d-B5ex0iL6.d.mts → index.d-tlklextY.d.mts} +4 -4
- package/dist/{index.d-Ch6ZYMn0.d.mts → index.d-uCMbfz5s.d.mts} +2 -2
- package/dist/index.d-uWaO2vv3.d.mts +14 -0
- package/dist/index.d.mts +44 -36
- package/dist/index.mjs +41 -33
- package/dist/{js-DxwOJyF7.mjs → js-BCS_sNBj.mjs} +4 -4
- package/dist/{ts-B0VNlOAi.mjs → js-BOcaVvtV.mjs} +5 -5
- package/dist/{js-CfKFwY21.mjs → js-CCL2XaV1.mjs} +1 -1
- package/dist/{js-t1rqZHU4.mjs → js-D-lPI2Zn.mjs} +3 -3
- package/dist/{js-nNB2l-OU.mjs → js-Dy54CkTs.mjs} +3 -3
- package/dist/{js-CqtsolD8.mjs → js-nPYw8nGm.mjs} +1 -1
- package/dist/ky/index.d.mts +7 -7
- package/dist/ky/index.mjs +7 -7
- package/dist/ky/js/config/index.d.mts +1 -1
- package/dist/ky/js/config/index.mjs +1 -1
- package/dist/ky/js/index.d.mts +3 -3
- 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-tkF4RP6y.mjs → ky-DOxzHjUb.mjs} +2 -2
- package/dist/ofetch/index.d.mts +7 -7
- package/dist/ofetch/index.mjs +7 -7
- package/dist/ofetch/js/config/index.d.mts +1 -1
- package/dist/ofetch/js/config/index.mjs +1 -1
- package/dist/ofetch/js/index.d.mts +3 -3
- 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-D17IUjVF.mjs → ofetch-C583BhsO.mjs} +2 -2
- package/dist/{parser-GwoAS3rw.mjs → parser-Bx_gOfLW.mjs} +1 -1
- package/dist/{parser-B-nJrHKw.mjs → parser-C2BjbPH8.mjs} +2 -2
- package/dist/{parser-CaRC8JQj.mjs → parser-CYgwRRB6.mjs} +2 -2
- package/dist/{parser-BkWqv1qf.mjs → parser-Cmtirdyk.mjs} +2 -2
- package/dist/{parser-8NB1Nfwt.mjs → parser-Cry70H8k.mjs} +1 -1
- package/dist/{parser-CSJYNO0a.mjs → parser-DWEwuz0M.mjs} +1 -1
- package/dist/{parser-aevzlGBk.mjs → parser-EdhJ3Qd1.mjs} +2 -2
- package/dist/parser-ILpmQxJS.mjs +62 -0
- package/dist/{parser-ZdK3ZwJM.mjs → parser-OMrPnoEH.mjs} +2 -2
- package/dist/parser-XfpBe6J7.mjs +63 -0
- package/dist/{parser-CAdkVm2b.mjs → parser-eI6eqR9i.mjs} +1 -1
- package/dist/{parser-BGXx6lbG.mjs → parser-gnwFYowJ.mjs} +2 -2
- package/dist/{ts-BLbY66M1.mjs → ts-C63VeyhJ.mjs} +3 -3
- package/dist/{ts-4mi0Q-kd.mjs → ts-DOrq_AoX.mjs} +1 -1
- package/dist/ts-D_YpWQhG.mjs +19 -0
- package/dist/ts-DcJ-UYUh.mjs +19 -0
- package/dist/{ts-BrqtDsf2.mjs → ts-nwWpi9VS.mjs} +4 -4
- package/dist/{ts-DjVYemin.mjs → ts-wjKQK01I.mjs} +1 -1
- package/dist/uni/index.d.mts +9 -0
- package/dist/uni/index.mjs +9 -0
- package/dist/uni/js/config/index.d.mts +3 -0
- package/dist/uni/js/config/index.mjs +3 -0
- package/dist/uni/js/index.d.mts +5 -0
- package/dist/uni/js/index.mjs +5 -0
- package/dist/uni/js/parser/index.d.mts +3 -0
- package/dist/uni/js/parser/index.mjs +3 -0
- package/dist/uni/ts/config/index.d.mts +3 -0
- package/dist/uni/ts/config/index.mjs +3 -0
- package/dist/uni/ts/index.d.mts +5 -0
- package/dist/uni/ts/index.mjs +5 -0
- package/dist/uni/ts/parser/index.d.mts +3 -0
- package/dist/uni/ts/parser/index.mjs +3 -0
- package/dist/uni-Cx6gyWLU.mjs +13 -0
- package/package.json +4 -4
- package/dist/index.d-DD5okdfE.d.mts +0 -12
- /package/dist/{index.d-B-u-rHVf.d.mts → index.d-BdvcH69c.d.mts} +0 -0
|
@@ -26,7 +26,7 @@ function transformPaths(paths, { configRead, functions, interfaces }) {
|
|
|
26
26
|
|
|
27
27
|
*/
|
|
28
28
|
const { parameters, interfaces: attachInters, options } = parseMethodParameters(config);
|
|
29
|
-
let { name, description, url, responseType } = parseMethodMetadata(config);
|
|
29
|
+
let { name, description, url, responseType } = parseMethodMetadata(config, interfaces);
|
|
30
30
|
interfaces.push(...attachInters);
|
|
31
31
|
parameters.push({
|
|
32
32
|
name: "config",
|
|
@@ -66,4 +66,4 @@ function transformPaths(paths, { configRead, functions, interfaces }) {
|
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
//#endregion
|
|
69
|
-
export { parser as parser$
|
|
69
|
+
export { parser as parser$5, transformPaths as transformPaths$5 };
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { literalFieldsToString, parseHeaderCommits, parseMethodMetadata, parseMethodParameters, parseOpenapiSpecification, transformBaseURL, transformDefinitions, transformParameters, transformUrlSyntax, traversePaths } from "@genapi/parser";
|
|
2
|
+
|
|
3
|
+
//#region src/uni/js/parser/index.ts
|
|
4
|
+
function parser(configRead) {
|
|
5
|
+
const source = parseOpenapiSpecification(configRead.source);
|
|
6
|
+
const comments = parseHeaderCommits(source);
|
|
7
|
+
const interfaces = [];
|
|
8
|
+
const functions = [];
|
|
9
|
+
transformBaseURL(source, { configRead });
|
|
10
|
+
transformDefinitions(source.definitions, { interfaces });
|
|
11
|
+
transformPaths(source.paths, {
|
|
12
|
+
configRead,
|
|
13
|
+
functions,
|
|
14
|
+
interfaces
|
|
15
|
+
});
|
|
16
|
+
configRead.graphs.comments = comments;
|
|
17
|
+
configRead.graphs.functions = functions;
|
|
18
|
+
configRead.graphs.interfaces = interfaces;
|
|
19
|
+
return configRead;
|
|
20
|
+
}
|
|
21
|
+
function transformPaths(paths, { configRead, functions, interfaces }) {
|
|
22
|
+
traversePaths(paths, (config) => {
|
|
23
|
+
/**
|
|
24
|
+
|
|
25
|
+
* function params/function options/function use interfaces
|
|
26
|
+
|
|
27
|
+
*/
|
|
28
|
+
const { parameters, interfaces: attachInters, options } = parseMethodParameters(config, {
|
|
29
|
+
body: "data",
|
|
30
|
+
query: "params"
|
|
31
|
+
});
|
|
32
|
+
let { name, description, url, responseType } = parseMethodMetadata(config, interfaces);
|
|
33
|
+
options.push(["...", "config"]);
|
|
34
|
+
interfaces.push(...attachInters);
|
|
35
|
+
parameters.push({
|
|
36
|
+
type: "import('@uni-helper/uni-network').UnConfig<never>",
|
|
37
|
+
name: "config",
|
|
38
|
+
required: false
|
|
39
|
+
});
|
|
40
|
+
options.unshift("url");
|
|
41
|
+
options.unshift(["method", `"${config.method}"`]);
|
|
42
|
+
if (configRead.config.baseURL) options.unshift("baseURL");
|
|
43
|
+
transformParameters(parameters, {
|
|
44
|
+
syntax: "ecmascript",
|
|
45
|
+
configRead,
|
|
46
|
+
description,
|
|
47
|
+
interfaces,
|
|
48
|
+
responseType,
|
|
49
|
+
generic: "import('@uni-helper/uni-network').UnResponse<{__type__}>"
|
|
50
|
+
});
|
|
51
|
+
url = transformUrlSyntax(url);
|
|
52
|
+
functions.push({
|
|
53
|
+
export: true,
|
|
54
|
+
name,
|
|
55
|
+
description,
|
|
56
|
+
parameters,
|
|
57
|
+
body: [`const url = ${url}`, `return http.request({ ${literalFieldsToString(options)} })`]
|
|
58
|
+
});
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
//#endregion
|
|
63
|
+
export { parser as parser$8, transformPaths as transformPaths$8 };
|
|
@@ -26,7 +26,7 @@ function transformPaths(paths, { configRead, functions, interfaces }) {
|
|
|
26
26
|
|
|
27
27
|
*/
|
|
28
28
|
const { parameters, interfaces: attachInters, options } = parseMethodParameters(config, { formData: "body" });
|
|
29
|
-
let { name, description, url, responseType, body } = parseMethodMetadata(config);
|
|
29
|
+
let { name, description, url, responseType, body } = parseMethodMetadata(config, interfaces);
|
|
30
30
|
interfaces.push(...attachInters);
|
|
31
31
|
parameters.push({
|
|
32
32
|
name: "config",
|
|
@@ -29,7 +29,7 @@ function transformPaths(paths, { configRead, functions, interfaces }) {
|
|
|
29
29
|
formData: "body",
|
|
30
30
|
query: "params"
|
|
31
31
|
});
|
|
32
|
-
let { name, description, url, responseType, body } = parseMethodMetadata(config);
|
|
32
|
+
let { name, description, url, responseType, body } = parseMethodMetadata(config, interfaces);
|
|
33
33
|
interfaces.push(...attachInters);
|
|
34
34
|
parameters.push({
|
|
35
35
|
name: "options",
|
|
@@ -63,4 +63,4 @@ function transformPaths(paths, { configRead, functions, interfaces }) {
|
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
//#endregion
|
|
66
|
-
export { parser as parser$
|
|
66
|
+
export { parser as parser$10, transformPaths as transformPaths$10 };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { config$
|
|
2
|
-
import { parser$
|
|
1
|
+
import { config$3 as config } from "./config-BHBub1xl.mjs";
|
|
2
|
+
import { parser$3 as parser } from "./parser-EdhJ3Qd1.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
|
|
@@ -16,4 +16,4 @@ openapiPipeline.dest = dest$1;
|
|
|
16
16
|
var ts_default = openapiPipeline;
|
|
17
17
|
|
|
18
18
|
//#endregion
|
|
19
|
-
export { compiler$1 as compiler$
|
|
19
|
+
export { compiler$1 as compiler$3, dest$1 as dest$3, generate$1 as generate$3, original$1 as original$3, ts_default as ts_default$1 };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { config$1 as config } from "./config-B89EoGE7.mjs";
|
|
2
|
-
import { parser$1 as parser } from "./parser-
|
|
2
|
+
import { parser$1 as parser } from "./parser-Bx_gOfLW.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
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { config$10 as config } from "./config-B16vmOTT.mjs";
|
|
2
|
+
import { parser$10 as parser } from "./parser-gnwFYowJ.mjs";
|
|
3
|
+
import pipeline, { compiler as compiler$1, dest as dest$1, generate as generate$1, original as original$1 } from "@genapi/pipeline";
|
|
4
|
+
|
|
5
|
+
//#region src/ofetch/ts/index.ts
|
|
6
|
+
function openapiPipeline(userConfig) {
|
|
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
|
+
return process(userConfig);
|
|
9
|
+
}
|
|
10
|
+
openapiPipeline.config = config;
|
|
11
|
+
openapiPipeline.original = original$1;
|
|
12
|
+
openapiPipeline.parser = parser;
|
|
13
|
+
openapiPipeline.compiler = compiler$1;
|
|
14
|
+
openapiPipeline.generate = generate$1;
|
|
15
|
+
openapiPipeline.dest = dest$1;
|
|
16
|
+
var ts_default = openapiPipeline;
|
|
17
|
+
|
|
18
|
+
//#endregion
|
|
19
|
+
export { compiler$1 as compiler$10, dest$1 as dest$10, generate$1 as generate$10, original$1 as original$10, ts_default as ts_default$4 };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { config$11 as config } from "./config-B8vtDa36.mjs";
|
|
2
|
+
import { parser$11 as parser } from "./parser-C2BjbPH8.mjs";
|
|
3
|
+
import pipeline, { compiler as compiler$1, dest as dest$1, generate as generate$1, original as original$1 } from "@genapi/pipeline";
|
|
4
|
+
|
|
5
|
+
//#region src/ky/ts/index.ts
|
|
6
|
+
function openapiPipeline(userConfig) {
|
|
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
|
+
return process(userConfig);
|
|
9
|
+
}
|
|
10
|
+
openapiPipeline.config = config;
|
|
11
|
+
openapiPipeline.original = original$1;
|
|
12
|
+
openapiPipeline.parser = parser;
|
|
13
|
+
openapiPipeline.compiler = compiler$1;
|
|
14
|
+
openapiPipeline.generate = generate$1;
|
|
15
|
+
openapiPipeline.dest = dest$1;
|
|
16
|
+
var ts_default = openapiPipeline;
|
|
17
|
+
|
|
18
|
+
//#endregion
|
|
19
|
+
export { compiler$1 as compiler$11, dest$1 as dest$11, generate$1 as generate$11, original$1 as original$11, ts_default as ts_default$5 };
|
|
@@ -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-BhuG_ib-.mjs";
|
|
2
|
+
import { parser$9 as parser } from "./parser-ILpmQxJS.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);
|
|
@@ -16,4 +16,4 @@ openapiPipeline.dest = dest$1;
|
|
|
16
16
|
var ts_default = openapiPipeline;
|
|
17
17
|
|
|
18
18
|
//#endregion
|
|
19
|
-
export { compiler$1 as compiler$9, dest$1 as dest$9, generate$1 as generate$9, original$1 as original$9, ts_default as ts_default$
|
|
19
|
+
export { compiler$1 as compiler$9, dest$1 as dest$9, generate$1 as generate$9, original$1 as original$9, ts_default as ts_default$3 };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { config$5 as config } from "./config-aVU8JEKy.mjs";
|
|
2
|
-
import { parser$
|
|
2
|
+
import { parser$5 as parser } from "./parser-OMrPnoEH.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
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import "../index.d-dTdSE3Nv.mjs";
|
|
2
|
+
import "../index.d-BycZForE.mjs";
|
|
3
|
+
import { openapiPipeline } from "../index.d-C94i_Ld-.mjs";
|
|
4
|
+
import "../index.d-DcpAaqwz.mjs";
|
|
5
|
+
import "../index.d-B9C3SJsw.mjs";
|
|
6
|
+
import { openapiPipeline$7 as openapiPipeline$1 } from "../index.d-D6rkgGxJ.mjs";
|
|
7
|
+
import "../index.d-CQQrcfNG.mjs";
|
|
8
|
+
|
|
9
|
+
export { openapiPipeline as js, openapiPipeline$1 as ts };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import "../config-Cc3VHRal.mjs";
|
|
2
|
+
import "../parser-XfpBe6J7.mjs";
|
|
3
|
+
import { js_default$5 as js_default } from "../js-BCS_sNBj.mjs";
|
|
4
|
+
import "../config-BhuG_ib-.mjs";
|
|
5
|
+
import "../parser-ILpmQxJS.mjs";
|
|
6
|
+
import { ts_default$3 as ts_default } from "../ts-nwWpi9VS.mjs";
|
|
7
|
+
import "../uni-Cx6gyWLU.mjs";
|
|
8
|
+
|
|
9
|
+
export { js_default as js, ts_default as ts };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { parser$12 as parser } from "../../index.d-dTdSE3Nv.mjs";
|
|
2
|
+
import { config$22 as config } from "../../index.d-BycZForE.mjs";
|
|
3
|
+
import { compiler$12 as compiler, dest$12 as dest, generate$12 as generate, openapiPipeline, original$12 as original } from "../../index.d-C94i_Ld-.mjs";
|
|
4
|
+
|
|
5
|
+
export { compiler, config, openapiPipeline as default, dest, generate, original, parser };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { config$8 as config } from "../../config-Cc3VHRal.mjs";
|
|
2
|
+
import { parser$8 as parser } from "../../parser-XfpBe6J7.mjs";
|
|
3
|
+
import { compiler$8 as compiler, dest$8 as dest, generate$8 as generate, js_default$5 as js_default, original$8 as original } from "../../js-BCS_sNBj.mjs";
|
|
4
|
+
|
|
5
|
+
export { compiler, config, js_default as default, dest, generate, original, parser };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { parser$14 as parser } from "../../index.d-DcpAaqwz.mjs";
|
|
2
|
+
import { config$15 as config } from "../../index.d-B9C3SJsw.mjs";
|
|
3
|
+
import { compiler$19 as compiler, dest$19 as dest, generate$19 as generate, openapiPipeline$7 as openapiPipeline, original$19 as original } from "../../index.d-D6rkgGxJ.mjs";
|
|
4
|
+
|
|
5
|
+
export { compiler, config, openapiPipeline as default, dest, generate, original, parser };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { config$9 as config } from "../../config-BhuG_ib-.mjs";
|
|
2
|
+
import { parser$9 as parser } from "../../parser-ILpmQxJS.mjs";
|
|
3
|
+
import { compiler$9 as compiler, dest$9 as dest, generate$9 as generate, original$9 as original, ts_default$3 as ts_default } from "../../ts-nwWpi9VS.mjs";
|
|
4
|
+
|
|
5
|
+
export { compiler, config, ts_default as default, dest, generate, original, parser };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { __export } from "./chunk-BL35Yyzp.mjs";
|
|
2
|
+
import { js_default$5 as js_default } from "./js-BCS_sNBj.mjs";
|
|
3
|
+
import { ts_default$3 as ts_default } from "./ts-nwWpi9VS.mjs";
|
|
4
|
+
|
|
5
|
+
//#region src/uni/index.ts
|
|
6
|
+
var uni_exports = {};
|
|
7
|
+
__export(uni_exports, {
|
|
8
|
+
js: () => js_default,
|
|
9
|
+
ts: () => ts_default
|
|
10
|
+
});
|
|
11
|
+
|
|
12
|
+
//#endregion
|
|
13
|
+
export { 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.6.2",
|
|
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/
|
|
67
|
-
"@genapi/
|
|
68
|
-
"@genapi/shared": "3.
|
|
66
|
+
"@genapi/parser": "3.6.2",
|
|
67
|
+
"@genapi/pipeline": "3.6.2",
|
|
68
|
+
"@genapi/shared": "3.6.2"
|
|
69
69
|
},
|
|
70
70
|
"scripts": {
|
|
71
71
|
"build": "tsdown",
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { __export } from "./chunk-BL35Yyzp.mjs";
|
|
2
|
-
import { openapiPipeline$3 as openapiPipeline } from "./index.d-C38NRU-q.mjs";
|
|
3
|
-
import { openapiPipeline$6 as openapiPipeline$1 } from "./index.d-DgSgg69k.mjs";
|
|
4
|
-
|
|
5
|
-
//#region src/ofetch/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 };
|
|
File without changes
|