Comparing version 0.5.0-exp-230507.1922 to 0.5.0-exp-230509.157
@@ -35,3 +35,5 @@ /// <reference types="bun-types" /> | ||
}; | ||
export type Handler<Route extends TypedRoute, Instance extends ElysiaInstance> = (context: Context<Route, Instance['store']> & Instance['request']) => IsUnknown<Route['response']> extends false ? Response | MaybePromise<Route['response']> : Response | MaybePromise<unknown>; | ||
export type Handler<Route extends TypedRoute, Instance extends ElysiaInstance> = (context: Context<Route, Instance['store']> & Instance['request']) => IsUnknown<Route['response']> extends false ? Route['response'] extends { | ||
200: unknown; | ||
} ? Response | MaybePromise<Route['response'][keyof Route['response']]> : Response | MaybePromise<Route['response']> : Response | MaybePromise<unknown>; | ||
export type NoReturnHandler<Route extends TypedRoute = TypedRoute, Instance extends ElysiaInstance = ElysiaInstance> = (context: Context<Route, Instance['store']> & Instance['request']) => void | Promise<void>; | ||
@@ -38,0 +40,0 @@ export type LifeCycleEvent = 'start' | 'request' | 'parse' | 'transform' | 'beforeHandle' | 'afterHandle' | 'error' | 'stop'; |
{ | ||
"name": "elysia", | ||
"description": "Fast, and friendly Bun web framework", | ||
"version": "0.5.0-exp-230507.1922", | ||
"version": "0.5.0-exp-230509.0157", | ||
"author": { | ||
@@ -94,3 +94,3 @@ "name": "saltyAom", | ||
"dependencies": { | ||
"@sinclair/typebox": "0.26.8", | ||
"@sinclair/typebox": "^0.28.9", | ||
"@types/lodash.clonedeep": "^4.5.7", | ||
@@ -97,0 +97,0 @@ "fast-querystring": "^1.1.1", |
@@ -63,3 +63,5 @@ import type { Serve, Server } from 'bun' | ||
) => IsUnknown<Route['response']> extends false | ||
? Response | MaybePromise<Route['response']> | ||
? Route['response'] extends { 200: unknown } | ||
? Response | MaybePromise<Route['response'][keyof Route['response']]> | ||
: Response | MaybePromise<Route['response']> | ||
: Response | MaybePromise<unknown> | ||
@@ -66,0 +68,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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
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
218331
5864
3
+ Added@sinclair/typebox@0.28.20(transitive)
- Removed@sinclair/typebox@0.26.8(transitive)
Updated@sinclair/typebox@^0.28.9