@sdk-it/hono 0.12.10 → 0.13.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/README.md CHANGED
@@ -197,7 +197,7 @@ node --experimental-strip-types ./openapi.ts
197
197
  npx tsx ./openapi.ts
198
198
 
199
199
  # using bun
200
- node --experimental-strip-types ./openapi.ts
200
+ bun ./openapi.ts
201
201
  ```
202
202
 
203
203
  > [!TIP]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sdk-it/hono",
3
- "version": "0.12.10",
3
+ "version": "0.13.0",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -26,7 +26,7 @@
26
26
  "!**/*.tsbuildinfo"
27
27
  ],
28
28
  "dependencies": {
29
- "@sdk-it/core": "0.12.10",
29
+ "@sdk-it/core": "0.13.0",
30
30
  "hono": "^4.7.4",
31
31
  "typescript": "^5.7.2",
32
32
  "zod": "^3.24.2"
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=hono.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"hono.d.ts","sourceRoot":"","sources":["../../src/lib/hono.ts"],"names":[],"mappings":""}
@@ -1,32 +0,0 @@
1
- import type { PathsObject } from 'openapi3-ts/oas31';
2
- import { $types } from '@sdk-it/core';
3
- export type SemanticSource = 'query' | 'queries' | 'body' | 'params' | 'headers';
4
- export interface Selector {
5
- name: string;
6
- select: string;
7
- against: string;
8
- source: SemanticSource;
9
- nullable: boolean;
10
- required: boolean;
11
- }
12
- export type Method = 'get' | 'post' | 'put' | 'patch' | 'delete';
13
- export interface ResponseItem {
14
- statusCode: string;
15
- response: DateType;
16
- contentType: string;
17
- headers: string[];
18
- }
19
- export declare class Paths {
20
- #private;
21
- private operations;
22
- addPath(name: string, path: string, method: Method, selectors: Selector[], responses: ResponseItem[]): this;
23
- getPaths(): Promise<PathsObject>;
24
- }
25
- interface DateType {
26
- [$types]: any[];
27
- kind: string;
28
- optional: boolean;
29
- }
30
- export declare function toSchema(data: DateType | string | null | undefined): any;
31
- export {};
32
- //# sourceMappingURL=paths.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"paths.d.ts","sourceRoot":"","sources":["../../src/lib/paths.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAGV,WAAW,EAIZ,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAEtC,MAAM,MAAM,cAAc,GACtB,OAAO,GACP,SAAS,GACT,MAAM,GACN,QAAQ,GACR,SAAS,CAAC;AAQd,MAAM,WAAW,QAAQ;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,cAAc,CAAC;IACvB,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,OAAO,CAAC;CACnB;AACD,MAAM,MAAM,MAAM,GAAG,KAAK,GAAG,MAAM,GAAG,KAAK,GAAG,OAAO,GAAG,QAAQ,CAAC;AAEjE,MAAM,WAAW,YAAY;IAC3B,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,QAAQ,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB;AAED,qBAAa,KAAK;;IAChB,OAAO,CAAC,UAAU,CAMV;IAER,OAAO,CACL,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,QAAQ,EAAE,EACrB,SAAS,EAAE,YAAY,EAAE;IAiFrB,QAAQ;CA8Bf;AAwBD,UAAU,QAAQ;IAChB,CAAC,MAAM,CAAC,EAAE,GAAG,EAAE,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED,wBAAgB,QAAQ,CAAC,IAAI,EAAE,QAAQ,GAAG,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,GAAG,CA+BxE"}