@kanjijs/platform-hono 0.2.0-beta.40 → 0.2.0-beta.42
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/adapter.d.ts +2 -2
- package/dist/core/src/metadata.d.ts +1 -1
- package/dist/filter.d.ts +2 -2
- package/package.json +6 -6
package/dist/adapter.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { type Constructor, Container, type ValidatorAdapter } from "@kanjijs/core";
|
|
1
2
|
import { Hono } from "hono";
|
|
2
3
|
import { cors } from "hono/cors";
|
|
3
|
-
import { secureHeaders } from "hono/secure-headers";
|
|
4
4
|
import { logger } from "hono/logger";
|
|
5
|
-
import {
|
|
5
|
+
import { secureHeaders } from "hono/secure-headers";
|
|
6
6
|
export interface KanjijsAdapterOptions {
|
|
7
7
|
validator?: ValidatorAdapter;
|
|
8
8
|
globalPrefix?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ContractSpec } from "@kanjijs/contracts";
|
|
2
2
|
import "reflect-metadata";
|
|
3
|
-
export type Constructor<T = unknown> = new (...args:
|
|
3
|
+
export type Constructor<T = unknown> = new (...args: any[]) => T;
|
|
4
4
|
export type HttpMethod = "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
|
|
5
5
|
export type RouteParamType = "BODY" | "QUERY" | "PARAM" | "HEADERS" | "CONTEXT";
|
|
6
6
|
export interface RouteParamMetadata {
|
package/dist/filter.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Context } from "hono";
|
|
2
1
|
import { type ExceptionFilter } from "@kanjijs/core";
|
|
2
|
+
import type { Context } from "hono";
|
|
3
3
|
export declare class KanjijsExceptionFilter implements ExceptionFilter {
|
|
4
4
|
catch(exception: unknown, c: Context): Response & import("hono").TypedResponse<{
|
|
5
5
|
statusCode: number;
|
|
@@ -7,5 +7,5 @@ export declare class KanjijsExceptionFilter implements ExceptionFilter {
|
|
|
7
7
|
error: string;
|
|
8
8
|
timestamp: string;
|
|
9
9
|
requestId: import("hono/utils/types").JSONValue;
|
|
10
|
-
},
|
|
10
|
+
}, import("hono/utils/http-status").ContentfulStatusCode, "json">;
|
|
11
11
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kanjijs/platform-hono",
|
|
3
|
-
"version": "0.2.0-beta.
|
|
3
|
+
"version": "0.2.0-beta.42",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -10,19 +10,19 @@
|
|
|
10
10
|
"LICENSE"
|
|
11
11
|
],
|
|
12
12
|
"scripts": {
|
|
13
|
-
"build": "bun build src/index.ts --outdir dist --target bun && tsc --emitDeclarationOnly --declaration --outDir dist"
|
|
13
|
+
"build": "bun build src/index.ts --outdir dist --target bun && bunx tsc --emitDeclarationOnly --declaration --outDir dist -p tsconfig.build.json"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@kanjijs/common": "^0.2.0-beta.
|
|
17
|
-
"@kanjijs/contracts": "^0.2.0-beta.
|
|
16
|
+
"@kanjijs/common": "^0.2.0-beta.42",
|
|
17
|
+
"@kanjijs/contracts": "^0.2.0-beta.42",
|
|
18
18
|
"hono": "^4.0.0",
|
|
19
19
|
"reflect-metadata": "^0.2.0"
|
|
20
20
|
},
|
|
21
21
|
"peerDependencies": {
|
|
22
|
-
"@kanjijs/core": "^0.2.0-beta.
|
|
22
|
+
"@kanjijs/core": "^0.2.0-beta.42"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"bun-types": "latest",
|
|
26
|
-
"@kanjijs/core": "^0.2.0-beta.
|
|
26
|
+
"@kanjijs/core": "^0.2.0-beta.42"
|
|
27
27
|
}
|
|
28
28
|
}
|