hono-takibi 0.30.0 → 0.30.1
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/cli.js +5 -5
- package/dist/core/docs/index.js +1 -1
- package/dist/core/hooks/index.d.ts +1 -1
- package/dist/core/hooks/index.js +1 -1
- package/dist/core/rpc/index.d.ts +1 -1
- package/dist/core/rpc/index.js +2 -2
- package/dist/core/type/index.d.ts +1 -1
- package/dist/core/type/index.js +1 -1
- package/dist/{core-C-wH_UxC.js → core-Dr2bFSj6.js} +8 -1117
- package/dist/generator/mock/index.d.ts +23 -0
- package/dist/generator/mock/index.js +1 -0
- package/dist/generator/zod-openapi-hono/openapi/index.js +1 -1
- package/dist/{hooks-JLvbNojU.js → hooks-Bjzy2N8f.js} +1 -1
- package/dist/mock-BKLmjjh-.js +1115 -0
- package/dist/openapi-OPxB_-2_.js +365 -0
- package/dist/{openapi-Bk4KBGJZ.js → routes-De93FgAf.js} +5 -374
- package/dist/{shared-BBl5tC8y.js → shared-Dj8C8Wcq.js} +6 -6
- package/dist/vite-plugin/index.js +3 -3
- package/package.json +7 -3
- package/dist/{docs-CDp93aXs.js → docs-B35NJDqJ.js} +1 -1
- package/dist/{emit-CqkT9T4Q.js → emit-uG6QWP1c.js} +1 -1
package/dist/cli.js
CHANGED
|
@@ -5,7 +5,7 @@ import * as NodeServices from "@effect/platform-node/NodeServices";
|
|
|
5
5
|
import { Console, Effect, FileSystem, Option, Path, Ref, Schema, Stream } from "effect";
|
|
6
6
|
import { Argument, CliError, Command, Flag } from "effect/cli";
|
|
7
7
|
// package.json
|
|
8
|
-
var version = "0.30.
|
|
8
|
+
var version = "0.30.1";
|
|
9
9
|
var description = "Hono Takibi is a code generator from OpenAPI to @hono/zod-openapi";
|
|
10
10
|
// src/cli/index.ts
|
|
11
11
|
const COMMAND_NAME = "hono-takibi";
|
|
@@ -41,7 +41,7 @@ function runJobs(config) {
|
|
|
41
41
|
const [{ parseOpenAPI }, { FormatOptions }, { cleanSplitOutputs, makeJob, openAPI3, packageRoots }] = yield* Effect.promise(() => Promise.all([
|
|
42
42
|
import("./openapi-DCo11_TE.js").then((n) => n.t),
|
|
43
43
|
import("./format-BF7SbaMP.js").then((n) => n.r),
|
|
44
|
-
import("./shared-
|
|
44
|
+
import("./shared-Dj8C8Wcq.js").then((n) => n.o)
|
|
45
45
|
]));
|
|
46
46
|
const openAPI = yield* openAPI3(yield* parseOpenAPI(config.input), config.input);
|
|
47
47
|
const jobs = makeJob(openAPI, config, yield* packageRoots(openAPI, config));
|
|
@@ -79,7 +79,7 @@ function reportJobs(config, previous) {
|
|
|
79
79
|
onFailure: (error) => Console.error(`❌ ${error.message}`),
|
|
80
80
|
onSuccess: (report) => Console.log(report)
|
|
81
81
|
}));
|
|
82
|
-
const { outsideSources } = yield* Effect.promise(() => import("./shared-
|
|
82
|
+
const { outsideSources } = yield* Effect.promise(() => import("./shared-Dj8C8Wcq.js").then((n) => n.o));
|
|
83
83
|
const inputDirectory = path.dirname(path.resolve(config.input));
|
|
84
84
|
return {
|
|
85
85
|
inputDirectory,
|
|
@@ -208,8 +208,8 @@ function generate(args) {
|
|
|
208
208
|
if (input !== void 0 && output !== void 0) {
|
|
209
209
|
const [{ parseOpenAPI }, { takibi }, { openAPI3 }] = yield* Effect.promise(() => Promise.all([
|
|
210
210
|
import("./openapi-DCo11_TE.js").then((n) => n.t),
|
|
211
|
-
import("./core-
|
|
212
|
-
import("./shared-
|
|
211
|
+
import("./core-Dr2bFSj6.js").then((n) => n.t),
|
|
212
|
+
import("./shared-Dj8C8Wcq.js").then((n) => n.o)
|
|
213
213
|
]));
|
|
214
214
|
const document = yield* openAPI3(yield* parseOpenAPI(input), input);
|
|
215
215
|
return yield* Console.log(yield* takibi(document, output));
|
package/dist/core/docs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as docs } from "../../docs-
|
|
1
|
+
export { t as docs } from "../../docs-B35NJDqJ.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as OpenAPI } from "../../index-DN54hj9W.js";
|
|
2
1
|
import { n as GenerateError, t as FormatError } from "../../index-sZ1C8djg.js";
|
|
3
2
|
import { t as Grouping } from "../../index-nkUsldwj.js";
|
|
3
|
+
import { t as OpenAPI } from "../../index-DN54hj9W.js";
|
|
4
4
|
declare const HOOK_CONFIGS: {
|
|
5
5
|
readonly swr: {
|
|
6
6
|
readonly packageName: 'swr';
|
package/dist/core/hooks/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as hooks } from "../../hooks-
|
|
1
|
+
export { t as hooks } from "../../hooks-Bjzy2N8f.js";
|
package/dist/core/rpc/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as OpenAPI } from "../../index-DN54hj9W.js";
|
|
2
1
|
import { n as GenerateError, t as FormatError } from "../../index-sZ1C8djg.js";
|
|
3
2
|
import { t as Grouping } from "../../index-nkUsldwj.js";
|
|
3
|
+
import { t as OpenAPI } from "../../index-DN54hj9W.js";
|
|
4
4
|
import { Effect } from "effect";
|
|
5
5
|
/**
|
|
6
6
|
* Generates RPC client wrapper functions from OpenAPI specification.
|
package/dist/core/rpc/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { C as isOperationLike, Q as HTTP_METHODS, j as isRecord, x as isOpenAPIPaths } from "../../guard-BNQ9WfOm.js";
|
|
2
|
+
import { t as emit } from "../../emit-uG6QWP1c.js";
|
|
2
3
|
import { i as GenerateError } from "../../format-BF7SbaMP.js";
|
|
3
|
-
import { _ as routeName, u as makeInferRequestType } from "../../utils-BhQ-YVD3.js";
|
|
4
4
|
import { c as makeGroupClientName, i as parsePathItem, l as operationTags, n as makeOperationDeps, r as operationHasArgs, t as formatPath } from "../../rpc-B7PiQ1sR.js";
|
|
5
|
-
import {
|
|
5
|
+
import { _ as routeName, u as makeInferRequestType } from "../../utils-BhQ-YVD3.js";
|
|
6
6
|
import { Effect } from "effect";
|
|
7
7
|
import { dirname } from "node:path";
|
|
8
8
|
// src/core/rpc/index.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as OpenAPI } from "../../index-DN54hj9W.js";
|
|
2
1
|
import { t as FormatError } from "../../index-sZ1C8djg.js";
|
|
2
|
+
import { t as OpenAPI } from "../../index-DN54hj9W.js";
|
|
3
3
|
import { Effect } from "effect";
|
|
4
4
|
/**
|
|
5
5
|
* Generates TypeScript type declarations from OpenAPI specification.
|
package/dist/core/type/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { H as isStringRef, I as isSchemaArray, P as isRequestBody, S as isOperation, T as isParameterArray, l as isBinaryFile, m as isHttpMethod, w as isParameter, x as isOpenAPIPaths, y as isMediaWithSchema } from "../../guard-BNQ9WfOm.js";
|
|
2
|
+
import { t as emit } from "../../emit-uG6QWP1c.js";
|
|
2
3
|
import { d as makeSafeKey, v as statusCodeToNumber, y as toIdentifierPascalCase } from "../../utils-BhQ-YVD3.js";
|
|
3
|
-
import { t as emit } from "../../emit-CqkT9T4Q.js";
|
|
4
4
|
import { Effect } from "effect";
|
|
5
5
|
import path from "node:path";
|
|
6
6
|
// src/core/type/index.ts
|