Comparing version 0.5.5 to 0.5.6
@@ -15,3 +15,3 @@ /// <reference types="@cloudflare/workers-types" /> | ||
render: (template: string, params?: object, options?: object) => Promise<Response>; | ||
notFound: () => Response; | ||
notFound: () => Response | Promise<Response>; | ||
constructor(req: Request<RequestParamKeyType>, opts?: { | ||
@@ -18,0 +18,0 @@ res: Response; |
@@ -15,3 +15,3 @@ /// <reference types="@cloudflare/workers-types" /> | ||
export declare type MiddlewareHandler = (c: Context, next: Function) => Promise<void>; | ||
export declare type NotFoundHandler = (c: Context) => Response; | ||
export declare type NotFoundHandler = (c: Context) => Response | Promise<Response>; | ||
export declare type ErrorHandler = (err: Error, c: Context) => Response; | ||
@@ -18,0 +18,0 @@ declare type ParamKeyName<NameWithPattern> = NameWithPattern extends `${infer Name}{${infer _Pattern}` ? Name : NameWithPattern; |
{ | ||
"name": "hono", | ||
"version": "0.5.5", | ||
"version": "0.5.6", | ||
"description": "[炎] Ultrafast web framework for Cloudflare Workers.", | ||
@@ -24,2 +24,3 @@ "main": "dist/index.js", | ||
"./etag": "./dist/middleware/etag/etag.js", | ||
"./graphql-server": "./dist/middleware/graphql-server/graphql-server.js", | ||
"./logger": "./dist/middleware/logger/logger.js", | ||
@@ -49,2 +50,5 @@ "./mustache": "./dist/middleware/mustache/mustache.js", | ||
], | ||
"graphql-server": [ | ||
"./dist/middleware/graphql-server/graphql-server.d.ts" | ||
], | ||
"logger": [ | ||
@@ -107,2 +111,3 @@ "./dist/middleware/logger/logger.d.ts" | ||
"form-data": "^4.0.0", | ||
"graphql": "^16.3.0", | ||
"jest": "^27.4.5", | ||
@@ -109,0 +114,0 @@ "jest-environment-miniflare": "^2.0.0", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
82886
63
1892
26