elysia 0.8.11 → 0.8.12
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/bun/{index-NDG7Wihu.d.ts → index-kJIc86qB.d.ts} +2 -2
- package/dist/bun/index.d.ts +1 -1
- package/dist/cjs/compose.d.ts +1 -1
- package/dist/cjs/context.d.ts +1 -1
- package/dist/cjs/cookie.d.ts +1 -1
- package/dist/cjs/dynamic-handle.d.ts +1 -1
- package/dist/cjs/error.d.ts +1 -1
- package/dist/cjs/handler.d.ts +1 -1
- package/dist/cjs/{index-NDG7Wihu.d.ts → index-kJIc86qB.d.ts} +2 -2
- package/dist/cjs/index.d.ts +1 -1
- package/dist/cjs/index.js +204 -88
- package/dist/cjs/trace.d.ts +1 -1
- package/dist/cjs/type-system.d.ts +1 -1
- package/dist/cjs/types.d.ts +1 -1
- package/dist/cjs/utils.d.ts +1 -1
- package/dist/cjs/ws/index.d.ts +1 -1
- package/dist/cjs/ws/types.d.ts +1 -1
- package/dist/compose.d.ts +1 -1
- package/dist/context.d.ts +1 -1
- package/dist/cookie.d.ts +1 -1
- package/dist/dynamic-handle.d.ts +1 -1
- package/dist/error.d.ts +1 -1
- package/dist/handler.d.ts +1 -1
- package/dist/{index-NDG7Wihu.d.ts → index-kJIc86qB.d.ts} +2 -2
- package/dist/index.d.ts +1 -1
- package/dist/{index.js → index.mjs} +199 -85
- package/dist/trace.d.ts +1 -1
- package/dist/type-system.d.ts +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/utils.d.ts +1 -1
- package/dist/ws/index.d.ts +1 -1
- package/dist/ws/types.d.ts +1 -1
- package/package.json +130 -156
- package/trace/trace.json +0 -2671
- package/trace/types.json +0 -42825
- /package/dist/{compose.js → compose.mjs} +0 -0
- /package/dist/{context.js → context.mjs} +0 -0
- /package/dist/{cookie.js → cookie.mjs} +0 -0
- /package/dist/{dynamic-handle.js → dynamic-handle.mjs} +0 -0
- /package/dist/{error.js → error.mjs} +0 -0
- /package/dist/{handler.js → handler.mjs} +0 -0
- /package/dist/{trace.js → trace.mjs} +0 -0
- /package/dist/{type-system.js → type-system.mjs} +0 -0
- /package/dist/{types.js → types.mjs} +0 -0
- /package/dist/{utils.js → utils.mjs} +0 -0
- /package/dist/ws/{index.js → index.mjs} +0 -0
- /package/dist/ws/{types.js → types.mjs} +0 -0
|
@@ -2028,7 +2028,7 @@ declare class Elysia<BasePath extends string = '', Decorators extends DecoratorB
|
|
|
2028
2028
|
resolve: Type extends "all" | "decorator" ? Word extends `${string} ` | `${string}_` | `${string}-` ? AddPrefix<Word, Decorators["resolve"]> : AddPrefixCapitalize<Word, Decorators["resolve"]> : Decorators["resolve"];
|
|
2029
2029
|
}, {
|
|
2030
2030
|
type: Type extends "all" | "model" ? Word extends `${string} ` | `${string}_` | `${string}-` ? AddPrefix<Word, Definitions["type"]> : AddPrefixCapitalize<Word, Definitions["type"]> : Definitions["type"];
|
|
2031
|
-
error: Type extends "
|
|
2031
|
+
error: Type extends "error" | "all" ? Word extends `${string} ` | `${string}_` | `${string}-` ? AddPrefix<Word, Definitions["error"]> : AddPrefixCapitalize<Word, Definitions["error"]> : Definitions["error"];
|
|
2032
2032
|
}, ParentSchema, Macro, Routes, Scoped>;
|
|
2033
2033
|
suffix<const Type extends 'all' | 'decorator' | 'state' | 'model' | 'error', const Word extends string>(type: Type, word: Word): Elysia<BasePath, {
|
|
2034
2034
|
request: Type extends "all" | "decorator" ? AddSuffixCapitalize<Word, Decorators["request"]> : Decorators["request"];
|
|
@@ -2037,7 +2037,7 @@ declare class Elysia<BasePath extends string = '', Decorators extends DecoratorB
|
|
|
2037
2037
|
resolve: Type extends "all" | "decorator" ? AddSuffixCapitalize<Word, Decorators["resolve"]> : Decorators["resolve"];
|
|
2038
2038
|
}, {
|
|
2039
2039
|
type: Type extends "all" | "model" ? AddSuffixCapitalize<Word, Definitions["type"]> : Definitions["type"];
|
|
2040
|
-
error: Type extends "
|
|
2040
|
+
error: Type extends "error" | "all" ? AddSuffixCapitalize<Word, Definitions["error"]> : Definitions["error"];
|
|
2041
2041
|
}, ParentSchema, Macro, Routes, Scoped>;
|
|
2042
2042
|
compile(): this;
|
|
2043
2043
|
handle: (request: Request) => Promise<Response>;
|
package/dist/bun/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import 'bun';
|
|
2
2
|
export { Static, TSchema } from '@sinclair/typebox';
|
|
3
|
-
export { J as AfterHandler, _ as BodyHandler, a9 as Checksum, c as ComposedHandler, C as Context, g as Cookie, f as CookieOptions, D as DecoratorBase, s as DefinitionBase, E as Elysia, b as ElysiaConfig, a0 as ErrorHandler, z as HTTPMethod, H as Handler, A as InputSchema, a3 as InternalRoute, I as InternalServerError, n as InvalidCookieSignature, x as LifeCycleEvent, L as LifeCycleStore, a4 as ListenCallback, a2 as LocalHook, q as MaybePromise, B as MergeSchema, N as NotFoundError, F as OptionalHandler, m as ParseError, aw as PreContext, P as PreHandler, t as RouteBase, u as RouteSchema, S as SchemaValidator, X as TraceEvent, d as TraceHandler, Y as TraceProcess, T as TraceReporter, e as TraceStream, v as UnwrapRoute, U as UnwrapSchema, V as ValidationError, Q as VoidHandler, E as default, l as error, ak as getResponseSchemaValidator, aj as getSchemaValidator, aJ as mapCompactResponse, aI as mapEarlyResponse, aH as mapResponse, ae as mergeDeep, ai as mergeHook, ag as mergeObjectArray, aA as t } from './index-
|
|
3
|
+
export { J as AfterHandler, _ as BodyHandler, a9 as Checksum, c as ComposedHandler, C as Context, g as Cookie, f as CookieOptions, D as DecoratorBase, s as DefinitionBase, E as Elysia, b as ElysiaConfig, a0 as ErrorHandler, z as HTTPMethod, H as Handler, A as InputSchema, a3 as InternalRoute, I as InternalServerError, n as InvalidCookieSignature, x as LifeCycleEvent, L as LifeCycleStore, a4 as ListenCallback, a2 as LocalHook, q as MaybePromise, B as MergeSchema, N as NotFoundError, F as OptionalHandler, m as ParseError, aw as PreContext, P as PreHandler, t as RouteBase, u as RouteSchema, S as SchemaValidator, X as TraceEvent, d as TraceHandler, Y as TraceProcess, T as TraceReporter, e as TraceStream, v as UnwrapRoute, U as UnwrapSchema, V as ValidationError, Q as VoidHandler, E as default, l as error, ak as getResponseSchemaValidator, aj as getSchemaValidator, aJ as mapCompactResponse, aI as mapEarlyResponse, aH as mapResponse, ae as mergeDeep, ai as mergeHook, ag as mergeObjectArray, aA as t } from './index-kJIc86qB.js';
|
|
4
4
|
import '@sinclair/typebox/compiler';
|
|
5
5
|
import '@sinclair/typebox/system';
|
|
6
6
|
import 'openapi-types';
|
package/dist/cjs/compose.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { L as LifeCycleStore, S as SchemaValidator, H as Handler, E as Elysia, P as PreHandler, b as ElysiaConfig, T as TraceReporter, c as ComposedHandler } from './index-
|
|
1
|
+
import { L as LifeCycleStore, S as SchemaValidator, H as Handler, E as Elysia, P as PreHandler, b as ElysiaConfig, T as TraceReporter, c as ComposedHandler } from './index-kJIc86qB.js';
|
|
2
2
|
import { TAnySchema } from '@sinclair/typebox';
|
|
3
3
|
import 'bun';
|
|
4
4
|
import '@sinclair/typebox/compiler';
|
package/dist/cjs/context.d.ts
CHANGED
package/dist/cjs/cookie.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { g as Cookie, f as CookieOptions, h as createCookieJar, p as parseCookie } from './index-
|
|
1
|
+
export { g as Cookie, f as CookieOptions, h as createCookieJar, p as parseCookie } from './index-kJIc86qB.js';
|
|
2
2
|
import 'bun';
|
|
3
3
|
import '@sinclair/typebox';
|
|
4
4
|
import '@sinclair/typebox/compiler';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { H as Handler, L as LifeCycleStore, S as SchemaValidator, E as Elysia, C as Context, a as ElysiaErrors } from './index-
|
|
1
|
+
import { H as Handler, L as LifeCycleStore, S as SchemaValidator, E as Elysia, C as Context, a as ElysiaErrors } from './index-kJIc86qB.js';
|
|
2
2
|
import 'bun';
|
|
3
3
|
import '@sinclair/typebox';
|
|
4
4
|
import '@sinclair/typebox/compiler';
|
package/dist/cjs/error.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '@sinclair/typebox/compiler';
|
|
2
2
|
import '@sinclair/typebox';
|
|
3
|
-
export { j as ELYSIA_RESPONSE, i as ERROR_CODE, a as ElysiaErrors, I as InternalServerError, n as InvalidCookieSignature, N as NotFoundError, m as ParseError, V as ValidationError, l as error, k as isProduction } from './index-
|
|
3
|
+
export { j as ELYSIA_RESPONSE, i as ERROR_CODE, a as ElysiaErrors, I as InternalServerError, n as InvalidCookieSignature, N as NotFoundError, m as ParseError, V as ValidationError, l as error, k as isProduction } from './index-kJIc86qB.js';
|
|
4
4
|
import 'bun';
|
|
5
5
|
import '@sinclair/typebox/system';
|
|
6
6
|
import 'openapi-types';
|
package/dist/cjs/handler.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { aG as cookieToHeader, aK as errorToResponse, aE as isNotEmpty, aJ as mapCompactResponse, aI as mapEarlyResponse, aH as mapResponse, aF as parseSetCookies } from './index-
|
|
1
|
+
export { aG as cookieToHeader, aK as errorToResponse, aE as isNotEmpty, aJ as mapCompactResponse, aI as mapEarlyResponse, aH as mapResponse, aF as parseSetCookies } from './index-kJIc86qB.js';
|
|
2
2
|
import 'bun';
|
|
3
3
|
import '@sinclair/typebox';
|
|
4
4
|
import '@sinclair/typebox/compiler';
|
|
@@ -2028,7 +2028,7 @@ declare class Elysia<BasePath extends string = '', Decorators extends DecoratorB
|
|
|
2028
2028
|
resolve: Type extends "all" | "decorator" ? Word extends `${string} ` | `${string}_` | `${string}-` ? AddPrefix<Word, Decorators["resolve"]> : AddPrefixCapitalize<Word, Decorators["resolve"]> : Decorators["resolve"];
|
|
2029
2029
|
}, {
|
|
2030
2030
|
type: Type extends "all" | "model" ? Word extends `${string} ` | `${string}_` | `${string}-` ? AddPrefix<Word, Definitions["type"]> : AddPrefixCapitalize<Word, Definitions["type"]> : Definitions["type"];
|
|
2031
|
-
error: Type extends "
|
|
2031
|
+
error: Type extends "error" | "all" ? Word extends `${string} ` | `${string}_` | `${string}-` ? AddPrefix<Word, Definitions["error"]> : AddPrefixCapitalize<Word, Definitions["error"]> : Definitions["error"];
|
|
2032
2032
|
}, ParentSchema, Macro, Routes, Scoped>;
|
|
2033
2033
|
suffix<const Type extends 'all' | 'decorator' | 'state' | 'model' | 'error', const Word extends string>(type: Type, word: Word): Elysia<BasePath, {
|
|
2034
2034
|
request: Type extends "all" | "decorator" ? AddSuffixCapitalize<Word, Decorators["request"]> : Decorators["request"];
|
|
@@ -2037,7 +2037,7 @@ declare class Elysia<BasePath extends string = '', Decorators extends DecoratorB
|
|
|
2037
2037
|
resolve: Type extends "all" | "decorator" ? AddSuffixCapitalize<Word, Decorators["resolve"]> : Decorators["resolve"];
|
|
2038
2038
|
}, {
|
|
2039
2039
|
type: Type extends "all" | "model" ? AddSuffixCapitalize<Word, Definitions["type"]> : Definitions["type"];
|
|
2040
|
-
error: Type extends "
|
|
2040
|
+
error: Type extends "error" | "all" ? AddSuffixCapitalize<Word, Definitions["error"]> : Definitions["error"];
|
|
2041
2041
|
}, ParentSchema, Macro, Routes, Scoped>;
|
|
2042
2042
|
compile(): this;
|
|
2043
2043
|
handle: (request: Request) => Promise<Response>;
|
package/dist/cjs/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import 'bun';
|
|
2
2
|
export { Static, TSchema } from '@sinclair/typebox';
|
|
3
|
-
export { J as AfterHandler, _ as BodyHandler, a9 as Checksum, c as ComposedHandler, C as Context, g as Cookie, f as CookieOptions, D as DecoratorBase, s as DefinitionBase, E as Elysia, b as ElysiaConfig, a0 as ErrorHandler, z as HTTPMethod, H as Handler, A as InputSchema, a3 as InternalRoute, I as InternalServerError, n as InvalidCookieSignature, x as LifeCycleEvent, L as LifeCycleStore, a4 as ListenCallback, a2 as LocalHook, q as MaybePromise, B as MergeSchema, N as NotFoundError, F as OptionalHandler, m as ParseError, aw as PreContext, P as PreHandler, t as RouteBase, u as RouteSchema, S as SchemaValidator, X as TraceEvent, d as TraceHandler, Y as TraceProcess, T as TraceReporter, e as TraceStream, v as UnwrapRoute, U as UnwrapSchema, V as ValidationError, Q as VoidHandler, E as default, l as error, ak as getResponseSchemaValidator, aj as getSchemaValidator, aJ as mapCompactResponse, aI as mapEarlyResponse, aH as mapResponse, ae as mergeDeep, ai as mergeHook, ag as mergeObjectArray, aA as t } from './index-
|
|
3
|
+
export { J as AfterHandler, _ as BodyHandler, a9 as Checksum, c as ComposedHandler, C as Context, g as Cookie, f as CookieOptions, D as DecoratorBase, s as DefinitionBase, E as Elysia, b as ElysiaConfig, a0 as ErrorHandler, z as HTTPMethod, H as Handler, A as InputSchema, a3 as InternalRoute, I as InternalServerError, n as InvalidCookieSignature, x as LifeCycleEvent, L as LifeCycleStore, a4 as ListenCallback, a2 as LocalHook, q as MaybePromise, B as MergeSchema, N as NotFoundError, F as OptionalHandler, m as ParseError, aw as PreContext, P as PreHandler, t as RouteBase, u as RouteSchema, S as SchemaValidator, X as TraceEvent, d as TraceHandler, Y as TraceProcess, T as TraceReporter, e as TraceStream, v as UnwrapRoute, U as UnwrapSchema, V as ValidationError, Q as VoidHandler, E as default, l as error, ak as getResponseSchemaValidator, aj as getSchemaValidator, aJ as mapCompactResponse, aI as mapEarlyResponse, aH as mapResponse, ae as mergeDeep, ai as mergeHook, ag as mergeObjectArray, aA as t } from './index-kJIc86qB.js';
|
|
4
4
|
import '@sinclair/typebox/compiler';
|
|
5
5
|
import '@sinclair/typebox/system';
|
|
6
6
|
import 'openapi-types';
|