@longzai-intelligence-transport/http-adapter-bun 0.2.2 → 0.2.3
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/index.d.ts +0 -2
- package/package.json +3 -6
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ApiResponse, InferRouteBody, InferRouteParams, InferRouteQuery, InferRouteResponse, RouteDefinition, StreamResponseRoute } from "@longzai-intelligence-transport/http-core";
|
|
2
|
-
//#region src/index.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* 验证错误详情
|
|
5
4
|
*
|
|
@@ -389,5 +388,4 @@ declare function createRouteMap<TRoutes extends Record<string, RouteDefinition>,
|
|
|
389
388
|
* @returns fetch 处理函数
|
|
390
389
|
*/
|
|
391
390
|
declare function createFetchHandler<TContext = unknown>(routeMap: Record<string, Record<string, BunRouteHandler<TContext>>>, options?: FetchHandlerOptions): FetchHandlerFn;
|
|
392
|
-
//#endregion
|
|
393
391
|
export { type BunRequestContext, type BunRouteHandler, type BunRouteHandlerOptions, type FetchHandlerFn, type FetchHandlerOptions, type InferStreamRouteResponse, type PathToRegexResult, type RouteHandlerFn, type RouteHandlerResult, type RouteMapEntry, type RoutesMap, type ValidatedRouteContext, type ValidationErrorData, type ValidationErrorDetail, createFetchHandler, createRouteHandler, createRouteMap, extractPathParams, extractQueryParams, parseRequestBody, pathToRegex };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@longzai-intelligence-transport/http-adapter-bun",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.3",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"adapter",
|
|
6
6
|
"bun",
|
|
@@ -26,10 +26,7 @@
|
|
|
26
26
|
"build": "lzi-builder",
|
|
27
27
|
"build:prod": "NODE_ENV=production bun run build",
|
|
28
28
|
"prepublishOnly": "bun run build:prod",
|
|
29
|
-
"typecheck": "
|
|
30
|
-
"typecheck:app": "lzi-tsgo typecheck tsconfig/app.json",
|
|
31
|
-
"typecheck:node": "lzi-tsgo typecheck tsconfig/node.json",
|
|
32
|
-
"typecheck:test": "lzi-tsgo typecheck tsconfig/test.json",
|
|
29
|
+
"typecheck": "lzi-typecheck",
|
|
33
30
|
"lint": "oxlint && oxfmt --check",
|
|
34
31
|
"lint:fix": "oxlint --fix && oxfmt",
|
|
35
32
|
"test": "bun test",
|
|
@@ -38,7 +35,7 @@
|
|
|
38
35
|
"clean": "lzi-dev-cli clean"
|
|
39
36
|
},
|
|
40
37
|
"dependencies": {
|
|
41
|
-
"@longzai-intelligence-transport/http-core": "0.2.
|
|
38
|
+
"@longzai-intelligence-transport/http-core": "0.2.3"
|
|
42
39
|
},
|
|
43
40
|
"devDependencies": {
|
|
44
41
|
"zod": "^4.4.3"
|