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.
Files changed (47) hide show
  1. package/dist/bun/{index-NDG7Wihu.d.ts → index-kJIc86qB.d.ts} +2 -2
  2. package/dist/bun/index.d.ts +1 -1
  3. package/dist/cjs/compose.d.ts +1 -1
  4. package/dist/cjs/context.d.ts +1 -1
  5. package/dist/cjs/cookie.d.ts +1 -1
  6. package/dist/cjs/dynamic-handle.d.ts +1 -1
  7. package/dist/cjs/error.d.ts +1 -1
  8. package/dist/cjs/handler.d.ts +1 -1
  9. package/dist/cjs/{index-NDG7Wihu.d.ts → index-kJIc86qB.d.ts} +2 -2
  10. package/dist/cjs/index.d.ts +1 -1
  11. package/dist/cjs/index.js +204 -88
  12. package/dist/cjs/trace.d.ts +1 -1
  13. package/dist/cjs/type-system.d.ts +1 -1
  14. package/dist/cjs/types.d.ts +1 -1
  15. package/dist/cjs/utils.d.ts +1 -1
  16. package/dist/cjs/ws/index.d.ts +1 -1
  17. package/dist/cjs/ws/types.d.ts +1 -1
  18. package/dist/compose.d.ts +1 -1
  19. package/dist/context.d.ts +1 -1
  20. package/dist/cookie.d.ts +1 -1
  21. package/dist/dynamic-handle.d.ts +1 -1
  22. package/dist/error.d.ts +1 -1
  23. package/dist/handler.d.ts +1 -1
  24. package/dist/{index-NDG7Wihu.d.ts → index-kJIc86qB.d.ts} +2 -2
  25. package/dist/index.d.ts +1 -1
  26. package/dist/{index.js → index.mjs} +199 -85
  27. package/dist/trace.d.ts +1 -1
  28. package/dist/type-system.d.ts +1 -1
  29. package/dist/types.d.ts +1 -1
  30. package/dist/utils.d.ts +1 -1
  31. package/dist/ws/index.d.ts +1 -1
  32. package/dist/ws/types.d.ts +1 -1
  33. package/package.json +130 -156
  34. package/trace/trace.json +0 -2671
  35. package/trace/types.json +0 -42825
  36. /package/dist/{compose.js → compose.mjs} +0 -0
  37. /package/dist/{context.js → context.mjs} +0 -0
  38. /package/dist/{cookie.js → cookie.mjs} +0 -0
  39. /package/dist/{dynamic-handle.js → dynamic-handle.mjs} +0 -0
  40. /package/dist/{error.js → error.mjs} +0 -0
  41. /package/dist/{handler.js → handler.mjs} +0 -0
  42. /package/dist/{trace.js → trace.mjs} +0 -0
  43. /package/dist/{type-system.js → type-system.mjs} +0 -0
  44. /package/dist/{types.js → types.mjs} +0 -0
  45. /package/dist/{utils.js → utils.mjs} +0 -0
  46. /package/dist/ws/{index.js → index.mjs} +0 -0
  47. /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 "all" | "error" ? Word extends `${string} ` | `${string}_` | `${string}-` ? AddPrefix<Word, Definitions["error"]> : AddPrefixCapitalize<Word, Definitions["error"]> : Definitions["error"];
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 "all" | "error" ? AddSuffixCapitalize<Word, Definitions["error"]> : Definitions["error"];
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>;
@@ -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-NDG7Wihu.js';
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';
@@ -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-NDG7Wihu.js';
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';
@@ -1,4 +1,4 @@
1
- export { C as Context, aw as PreContext } from './index-NDG7Wihu.js';
1
+ export { C as Context, aw as PreContext } from './index-kJIc86qB.js';
2
2
  import 'bun';
3
3
  import '@sinclair/typebox';
4
4
  import '@sinclair/typebox/compiler';
@@ -1,4 +1,4 @@
1
- export { g as Cookie, f as CookieOptions, h as createCookieJar, p as parseCookie } from './index-NDG7Wihu.js';
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-NDG7Wihu.js';
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';
@@ -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-NDG7Wihu.js';
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';
@@ -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-NDG7Wihu.js';
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 "all" | "error" ? Word extends `${string} ` | `${string}_` | `${string}-` ? AddPrefix<Word, Definitions["error"]> : AddPrefixCapitalize<Word, Definitions["error"]> : Definitions["error"];
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 "all" | "error" ? AddSuffixCapitalize<Word, Definitions["error"]> : Definitions["error"];
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>;
@@ -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-NDG7Wihu.js';
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';