Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

elysia

Package Overview
Dependencies
Maintainers
1
Versions
449
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

elysia - npm Package Compare versions

Comparing version 0.5.0-exp-230507.1922 to 0.5.0-exp-230509.157

4

dist/types.d.ts

@@ -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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc