hono-takibi 0.29.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.
Files changed (31) hide show
  1. package/dist/cli.js +8 -8
  2. package/dist/core/docs/index.d.ts +1 -1
  3. package/dist/core/docs/index.js +1 -1
  4. package/dist/core/hooks/index.d.ts +2 -2
  5. package/dist/core/hooks/index.js +1 -1
  6. package/dist/core/rpc/index.d.ts +2 -2
  7. package/dist/core/rpc/index.js +4 -4
  8. package/dist/core/type/index.d.ts +1 -1
  9. package/dist/core/type/index.js +3 -3
  10. package/dist/{core-BFsWwAXx.js → core-Dr2bFSj6.js} +9 -1118
  11. package/dist/{docs-MRoh0U3g.js → docs-B35NJDqJ.js} +2 -2
  12. package/dist/generator/mock/index.d.ts +23 -0
  13. package/dist/generator/mock/index.js +1 -0
  14. package/dist/generator/zod-openapi-hono/openapi/index.d.ts +1 -1
  15. package/dist/generator/zod-openapi-hono/openapi/index.js +1 -1
  16. package/dist/{guard-D-yHkxqE.js → guard-BNQ9WfOm.js} +43 -2
  17. package/dist/{hooks-Cu1bRToh.js → hooks-Bjzy2N8f.js} +4 -4
  18. package/dist/{index-DvZscmYm.d.ts → index-DN54hj9W.d.ts} +1 -0
  19. package/dist/{index-8HyUtaew.d.ts → index-nkUsldwj.d.ts} +1 -1
  20. package/dist/index.js +1 -1
  21. package/dist/mock-BKLmjjh-.js +1115 -0
  22. package/dist/openapi-DCo11_TE.js +96 -0
  23. package/dist/openapi-OPxB_-2_.js +365 -0
  24. package/dist/{openapi-D9J3Kaij.js → routes-De93FgAf.js} +111 -406
  25. package/dist/{rpc-CVE9_EnW.js → rpc-B7PiQ1sR.js} +1 -1
  26. package/dist/{shared-BNo1Lr1g.js → shared-Dj8C8Wcq.js} +7 -7
  27. package/dist/{utils-Kv3B0qkM.js → utils-BhQ-YVD3.js} +1 -1
  28. package/dist/vite-plugin/index.js +4 -4
  29. package/package.json +11 -7
  30. package/dist/openapi-tYYvoKiU.js +0 -34
  31. package/dist/{emit-CqkT9T4Q.js → emit-uG6QWP1c.js} +1 -1
package/dist/cli.js CHANGED
@@ -1,11 +1,11 @@
1
1
  #!/usr/bin/env node
2
- import { Z as INPUT_EXTENSIONS, m as isInputPath } from "./guard-D-yHkxqE.js";
2
+ import { _ as isInputPath, et as INPUT_EXTENSIONS } from "./guard-BNQ9WfOm.js";
3
3
  import * as NodeRuntime from "@effect/platform-node/NodeRuntime";
4
4
  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.29.0";
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";
@@ -39,9 +39,9 @@ function loadConfig(configPath, reload) {
39
39
  function runJobs(config) {
40
40
  return Effect.gen(function* () {
41
41
  const [{ parseOpenAPI }, { FormatOptions }, { cleanSplitOutputs, makeJob, openAPI3, packageRoots }] = yield* Effect.promise(() => Promise.all([
42
- import("./openapi-tYYvoKiU.js").then((n) => n.t),
42
+ import("./openapi-DCo11_TE.js").then((n) => n.t),
43
43
  import("./format-BF7SbaMP.js").then((n) => n.r),
44
- import("./shared-BNo1Lr1g.js").then((n) => n.o)
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-BNo1Lr1g.js").then((n) => n.o));
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,
@@ -207,9 +207,9 @@ function generate(args) {
207
207
  });
208
208
  if (input !== void 0 && output !== void 0) {
209
209
  const [{ parseOpenAPI }, { takibi }, { openAPI3 }] = yield* Effect.promise(() => Promise.all([
210
- import("./openapi-tYYvoKiU.js").then((n) => n.t),
211
- import("./core-BFsWwAXx.js").then((n) => n.t),
212
- import("./shared-BNo1Lr1g.js").then((n) => n.o)
210
+ import("./openapi-DCo11_TE.js").then((n) => n.t),
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));
@@ -1,3 +1,3 @@
1
- import { t as OpenAPI } from "../../index-DvZscmYm.js";
1
+ import { t as OpenAPI } from "../../index-DN54hj9W.js";
2
2
  import { Effect } from "effect";
3
3
  export declare function docs(openAPI: OpenAPI, output: string, entry?: string, basePath?: string, curl?: boolean, baseUrl?: string): Effect.Effect<string, import("effect/PlatformError").PlatformError, import("effect/FileSystem").FileSystem>;
@@ -1 +1 @@
1
- export { t as docs } from "../../docs-MRoh0U3g.js";
1
+ export { t as docs } from "../../docs-B35NJDqJ.js";
@@ -1,6 +1,6 @@
1
- import { t as OpenAPI } from "../../index-DvZscmYm.js";
2
1
  import { n as GenerateError, t as FormatError } from "../../index-sZ1C8djg.js";
3
- import { t as Grouping } from "../../index-8HyUtaew.js";
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';
@@ -1 +1 @@
1
- export { t as hooks } from "../../hooks-Cu1bRToh.js";
1
+ export { t as hooks } from "../../hooks-Bjzy2N8f.js";
@@ -1,6 +1,6 @@
1
- import { t as OpenAPI } from "../../index-DvZscmYm.js";
2
1
  import { n as GenerateError, t as FormatError } from "../../index-sZ1C8djg.js";
3
- import { t as Grouping } from "../../index-8HyUtaew.js";
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.
@@ -1,8 +1,8 @@
1
- import { O as isRecord, Y as HTTP_METHODS, b as isOperationLike, v as isOpenAPIPaths } from "../../guard-D-yHkxqE.js";
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-Kv3B0qkM.js";
4
- import { c as makeGroupClientName, i as parsePathItem, l as operationTags, n as makeOperationDeps, r as operationHasArgs, t as formatPath } from "../../rpc-CVE9_EnW.js";
5
- import { t as emit } from "../../emit-CqkT9T4Q.js";
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 { _ 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-DvZscmYm.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.
@@ -1,6 +1,6 @@
1
- import { N as isSchemaArray, S as isParameterArray, d as isHttpMethod, g as isMediaWithSchema, j as isRequestBody, o as isBinaryFile, v as isOpenAPIPaths, x as isParameter, y as isOperation, z as isStringRef } from "../../guard-D-yHkxqE.js";
2
- import { d as makeSafeKey, v as statusCodeToNumber, y as toIdentifierPascalCase } from "../../utils-Kv3B0qkM.js";
3
- import { t as emit } from "../../emit-CqkT9T4Q.js";
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";
3
+ import { d as makeSafeKey, v as statusCodeToNumber, y as toIdentifierPascalCase } from "../../utils-BhQ-YVD3.js";
4
4
  import { Effect } from "effect";
5
5
  import path from "node:path";
6
6
  // src/core/type/index.ts