blaizejs 0.3.1 → 0.3.3
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/README.md +462 -646
- package/dist/chunk-337RPHG5.js +11 -0
- package/dist/{chunk-3A5J5MKL.js.map → chunk-337RPHG5.js.map} +1 -1
- package/dist/chunk-HX7XLEO3.js +11 -0
- package/dist/{unsupported-media-type-error-VUXOJ72O.js.map → chunk-HX7XLEO3.js.map} +1 -1
- package/dist/chunk-KE2IOPV4.js +11 -0
- package/dist/{chunk-SF7ZGOEK.js.map → chunk-KE2IOPV4.js.map} +1 -1
- package/dist/chunk-LY65OJH4.js +11 -0
- package/dist/{payload-too-large-error-WZMDORKR.js.map → chunk-LY65OJH4.js.map} +1 -1
- package/dist/chunk-VM3QGHVO.js +11 -0
- package/dist/{chunk-ZZEQFU5V.js.map → chunk-VM3QGHVO.js.map} +1 -1
- package/dist/index.cjs +39 -3442
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +18 -2
- package/dist/index.d.ts +18 -2
- package/dist/index.js +39 -3117
- package/dist/index.js.map +1 -1
- package/dist/{validation-error-WZFF75S7.js → internal-server-error-JHHSKW5B.js} +4 -9
- package/dist/{internal-server-error-PKVC3ZEU.js → payload-too-large-error-SOQINKUL.js} +4 -9
- package/dist/unsupported-media-type-error-KJMHH5CY.js +11 -0
- package/dist/unsupported-media-type-error-KJMHH5CY.js.map +1 -0
- package/dist/validation-error-Q6IOTN4C.js +11 -0
- package/dist/validation-error-Q6IOTN4C.js.map +1 -0
- package/package.json +8 -8
- package/dist/chunk-3A5J5MKL.js +0 -38
- package/dist/chunk-SF7ZGOEK.js +0 -148
- package/dist/chunk-ZZEQFU5V.js +0 -38
- package/dist/payload-too-large-error-WZMDORKR.js +0 -29
- package/dist/unsupported-media-type-error-VUXOJ72O.js +0 -29
- /package/dist/{internal-server-error-PKVC3ZEU.js.map → internal-server-error-JHHSKW5B.js.map} +0 -0
- /package/dist/{validation-error-WZFF75S7.js.map → payload-too-large-error-SOQINKUL.js.map} +0 -0
package/dist/index.d.cts
CHANGED
|
@@ -843,7 +843,7 @@ interface Middleware {
|
|
|
843
843
|
/**
|
|
844
844
|
* Helper type to extract TypeScript type from Zod schema
|
|
845
845
|
*/
|
|
846
|
-
type Infer<T> = T extends z.ZodType
|
|
846
|
+
type Infer<T> = T extends z.ZodType ? z.output<T> : unknown;
|
|
847
847
|
/**
|
|
848
848
|
* HTTP methods supported by the router
|
|
849
849
|
*/
|
|
@@ -1803,6 +1803,22 @@ declare class InternalServerError extends BlaizeError<InternalServerErrorDetails
|
|
|
1803
1803
|
constructor(title: string, details?: InternalServerErrorDetails | undefined, correlationId?: string | undefined);
|
|
1804
1804
|
}
|
|
1805
1805
|
|
|
1806
|
+
declare class PayloadTooLargeError extends BlaizeError<PayloadTooLargeErrorDetails> {
|
|
1807
|
+
constructor(title: string, details?: PayloadTooLargeErrorDetails | undefined, correlationId?: string);
|
|
1808
|
+
}
|
|
1809
|
+
|
|
1810
|
+
declare class RequestTimeoutError extends BlaizeError {
|
|
1811
|
+
constructor(title: string, details?: unknown, correlationId?: string);
|
|
1812
|
+
}
|
|
1813
|
+
|
|
1814
|
+
declare class UnsupportedMediaTypeError extends BlaizeError {
|
|
1815
|
+
constructor(title: string, details?: unknown, correlationId?: string);
|
|
1816
|
+
}
|
|
1817
|
+
|
|
1818
|
+
declare class UnprocessableEntityError extends BlaizeError {
|
|
1819
|
+
constructor(title: string, details?: unknown, correlationId?: string);
|
|
1820
|
+
}
|
|
1821
|
+
|
|
1806
1822
|
declare const VERSION = "0.1.0";
|
|
1807
1823
|
declare const ServerAPI: {
|
|
1808
1824
|
createServer: typeof create;
|
|
@@ -1850,4 +1866,4 @@ declare const Blaize: {
|
|
|
1850
1866
|
VERSION: string;
|
|
1851
1867
|
};
|
|
1852
1868
|
|
|
1853
|
-
export { Blaize, BlaizeError, type BlaizeErrorResponse, type BodyParseError, type BuildRoutesRegistry, type ClientConfig, ConflictError, type ConflictErrorDetails, type Context, type ContextOptions, type ContextRequest, type ContextResponse, type CreateClient, type CreateContextFn, type CreateDeleteRoute, type CreateGetRoute, type CreateHeadRoute, type CreateOptionsRoute, type CreatePatchRoute, type CreatePostRoute, type CreatePutRoute, type ErrorHandlerOptions, ErrorSeverity, type ErrorTransformContext, ErrorType, type ExtractMethod, type FileCache, type FindRouteFilesOptions, ForbiddenError, type ForbiddenErrorDetails, type GetContextFn, type Http2Options, type HttpMethod, type Infer, type InternalRequestArgs, InternalServerError, type InternalServerErrorDetails, type Matcher, type Middleware, MiddlewareAPI, type MiddlewareFunction, type MiddlewareOptions, type MultipartData, type MultipartError, type MultipartLimits, type NetworkErrorContext, type NextFunction, NotFoundError, type NotFoundErrorDetails, type ParseErrorContext, type ParseOptions, type ParseResult, type ParsedRoute, type ParserState, type PayloadTooLargeErrorDetails, type Plugin, type PluginFactory, type PluginHooks, type PluginLifecycleManager, type PluginLifecycleOptions, type PluginOptions, PluginsAPI, type ProcessResponseOptions, type ProcessingConfig, type QueryParams, RateLimitError, type RateLimitErrorDetails, type ReloadMetrics, type RequestHandler, type RequestOptions, type RequestParams, type Result, type Route, type RouteDefinition, type RouteEntry, type RouteHandler, type RouteMatch, type RouteMethodOptions, type RouteNode, type RouteOptions, type RouteRegistry, type RouteSchema, type Router, RouterAPI, type RouterOptions, type Server, ServerAPI, type ServerOptions, type ServerOptionsInput, type StandardErrorResponse, type StartOptions, type State, type StopOptions, type StreamOptions, type TimeoutErrorContext, UnauthorizedError, type UnauthorizedErrorDetails, type UnifiedRequest, type UnifiedResponse, type UnknownFunction, type UnsupportedMediaTypeErrorDetails, type UploadProgress, type UploadedFile, VERSION, type ValidationConfig, ValidationError, type ValidationErrorDetails, type ValidationFieldError, type WatchOptions, compose, createDeleteRoute, createGetRoute, createHeadRoute, create$2 as createMiddleware, createOptionsRoute, createPatchRoute, create$1 as createPlugin, createPostRoute, createPutRoute, create as createServer,
|
|
1869
|
+
export { Blaize, BlaizeError, type BlaizeErrorResponse, type BodyParseError, type BuildRoutesRegistry, type ClientConfig, ConflictError, type ConflictErrorDetails, type Context, type ContextOptions, type ContextRequest, type ContextResponse, type CreateClient, type CreateContextFn, type CreateDeleteRoute, type CreateGetRoute, type CreateHeadRoute, type CreateOptionsRoute, type CreatePatchRoute, type CreatePostRoute, type CreatePutRoute, type ErrorHandlerOptions, ErrorSeverity, type ErrorTransformContext, ErrorType, type ExtractMethod, type FileCache, type FindRouteFilesOptions, ForbiddenError, type ForbiddenErrorDetails, type GetContextFn, type Http2Options, type HttpMethod, type Infer, type InternalRequestArgs, InternalServerError, type InternalServerErrorDetails, type Matcher, type Middleware, MiddlewareAPI, type MiddlewareFunction, type MiddlewareOptions, type MultipartData, type MultipartError, type MultipartLimits, type NetworkErrorContext, type NextFunction, NotFoundError, type NotFoundErrorDetails, type ParseErrorContext, type ParseOptions, type ParseResult, type ParsedRoute, type ParserState, PayloadTooLargeError, type PayloadTooLargeErrorDetails, type Plugin, type PluginFactory, type PluginHooks, type PluginLifecycleManager, type PluginLifecycleOptions, type PluginOptions, PluginsAPI, type ProcessResponseOptions, type ProcessingConfig, type QueryParams, RateLimitError, type RateLimitErrorDetails, type ReloadMetrics, type RequestHandler, type RequestOptions, type RequestParams, RequestTimeoutError, type Result, type Route, type RouteDefinition, type RouteEntry, type RouteHandler, type RouteMatch, type RouteMethodOptions, type RouteNode, type RouteOptions, type RouteRegistry, type RouteSchema, type Router, RouterAPI, type RouterOptions, type Server, ServerAPI, type ServerOptions, type ServerOptionsInput, type StandardErrorResponse, type StartOptions, type State, type StopOptions, type StreamOptions, type TimeoutErrorContext, UnauthorizedError, type UnauthorizedErrorDetails, type UnifiedRequest, type UnifiedResponse, type UnknownFunction, UnprocessableEntityError, UnsupportedMediaTypeError, type UnsupportedMediaTypeErrorDetails, type UploadProgress, type UploadedFile, VERSION, type ValidationConfig, ValidationError, type ValidationErrorDetails, type ValidationFieldError, type WatchOptions, compose, createDeleteRoute, createGetRoute, createHeadRoute, create$2 as createMiddleware, createOptionsRoute, createPatchRoute, create$1 as createPlugin, createPostRoute, createPutRoute, create as createServer, isBodyParseError };
|
package/dist/index.d.ts
CHANGED
|
@@ -843,7 +843,7 @@ interface Middleware {
|
|
|
843
843
|
/**
|
|
844
844
|
* Helper type to extract TypeScript type from Zod schema
|
|
845
845
|
*/
|
|
846
|
-
type Infer<T> = T extends z.ZodType
|
|
846
|
+
type Infer<T> = T extends z.ZodType ? z.output<T> : unknown;
|
|
847
847
|
/**
|
|
848
848
|
* HTTP methods supported by the router
|
|
849
849
|
*/
|
|
@@ -1803,6 +1803,22 @@ declare class InternalServerError extends BlaizeError<InternalServerErrorDetails
|
|
|
1803
1803
|
constructor(title: string, details?: InternalServerErrorDetails | undefined, correlationId?: string | undefined);
|
|
1804
1804
|
}
|
|
1805
1805
|
|
|
1806
|
+
declare class PayloadTooLargeError extends BlaizeError<PayloadTooLargeErrorDetails> {
|
|
1807
|
+
constructor(title: string, details?: PayloadTooLargeErrorDetails | undefined, correlationId?: string);
|
|
1808
|
+
}
|
|
1809
|
+
|
|
1810
|
+
declare class RequestTimeoutError extends BlaizeError {
|
|
1811
|
+
constructor(title: string, details?: unknown, correlationId?: string);
|
|
1812
|
+
}
|
|
1813
|
+
|
|
1814
|
+
declare class UnsupportedMediaTypeError extends BlaizeError {
|
|
1815
|
+
constructor(title: string, details?: unknown, correlationId?: string);
|
|
1816
|
+
}
|
|
1817
|
+
|
|
1818
|
+
declare class UnprocessableEntityError extends BlaizeError {
|
|
1819
|
+
constructor(title: string, details?: unknown, correlationId?: string);
|
|
1820
|
+
}
|
|
1821
|
+
|
|
1806
1822
|
declare const VERSION = "0.1.0";
|
|
1807
1823
|
declare const ServerAPI: {
|
|
1808
1824
|
createServer: typeof create;
|
|
@@ -1850,4 +1866,4 @@ declare const Blaize: {
|
|
|
1850
1866
|
VERSION: string;
|
|
1851
1867
|
};
|
|
1852
1868
|
|
|
1853
|
-
export { Blaize, BlaizeError, type BlaizeErrorResponse, type BodyParseError, type BuildRoutesRegistry, type ClientConfig, ConflictError, type ConflictErrorDetails, type Context, type ContextOptions, type ContextRequest, type ContextResponse, type CreateClient, type CreateContextFn, type CreateDeleteRoute, type CreateGetRoute, type CreateHeadRoute, type CreateOptionsRoute, type CreatePatchRoute, type CreatePostRoute, type CreatePutRoute, type ErrorHandlerOptions, ErrorSeverity, type ErrorTransformContext, ErrorType, type ExtractMethod, type FileCache, type FindRouteFilesOptions, ForbiddenError, type ForbiddenErrorDetails, type GetContextFn, type Http2Options, type HttpMethod, type Infer, type InternalRequestArgs, InternalServerError, type InternalServerErrorDetails, type Matcher, type Middleware, MiddlewareAPI, type MiddlewareFunction, type MiddlewareOptions, type MultipartData, type MultipartError, type MultipartLimits, type NetworkErrorContext, type NextFunction, NotFoundError, type NotFoundErrorDetails, type ParseErrorContext, type ParseOptions, type ParseResult, type ParsedRoute, type ParserState, type PayloadTooLargeErrorDetails, type Plugin, type PluginFactory, type PluginHooks, type PluginLifecycleManager, type PluginLifecycleOptions, type PluginOptions, PluginsAPI, type ProcessResponseOptions, type ProcessingConfig, type QueryParams, RateLimitError, type RateLimitErrorDetails, type ReloadMetrics, type RequestHandler, type RequestOptions, type RequestParams, type Result, type Route, type RouteDefinition, type RouteEntry, type RouteHandler, type RouteMatch, type RouteMethodOptions, type RouteNode, type RouteOptions, type RouteRegistry, type RouteSchema, type Router, RouterAPI, type RouterOptions, type Server, ServerAPI, type ServerOptions, type ServerOptionsInput, type StandardErrorResponse, type StartOptions, type State, type StopOptions, type StreamOptions, type TimeoutErrorContext, UnauthorizedError, type UnauthorizedErrorDetails, type UnifiedRequest, type UnifiedResponse, type UnknownFunction, type UnsupportedMediaTypeErrorDetails, type UploadProgress, type UploadedFile, VERSION, type ValidationConfig, ValidationError, type ValidationErrorDetails, type ValidationFieldError, type WatchOptions, compose, createDeleteRoute, createGetRoute, createHeadRoute, create$2 as createMiddleware, createOptionsRoute, createPatchRoute, create$1 as createPlugin, createPostRoute, createPutRoute, create as createServer,
|
|
1869
|
+
export { Blaize, BlaizeError, type BlaizeErrorResponse, type BodyParseError, type BuildRoutesRegistry, type ClientConfig, ConflictError, type ConflictErrorDetails, type Context, type ContextOptions, type ContextRequest, type ContextResponse, type CreateClient, type CreateContextFn, type CreateDeleteRoute, type CreateGetRoute, type CreateHeadRoute, type CreateOptionsRoute, type CreatePatchRoute, type CreatePostRoute, type CreatePutRoute, type ErrorHandlerOptions, ErrorSeverity, type ErrorTransformContext, ErrorType, type ExtractMethod, type FileCache, type FindRouteFilesOptions, ForbiddenError, type ForbiddenErrorDetails, type GetContextFn, type Http2Options, type HttpMethod, type Infer, type InternalRequestArgs, InternalServerError, type InternalServerErrorDetails, type Matcher, type Middleware, MiddlewareAPI, type MiddlewareFunction, type MiddlewareOptions, type MultipartData, type MultipartError, type MultipartLimits, type NetworkErrorContext, type NextFunction, NotFoundError, type NotFoundErrorDetails, type ParseErrorContext, type ParseOptions, type ParseResult, type ParsedRoute, type ParserState, PayloadTooLargeError, type PayloadTooLargeErrorDetails, type Plugin, type PluginFactory, type PluginHooks, type PluginLifecycleManager, type PluginLifecycleOptions, type PluginOptions, PluginsAPI, type ProcessResponseOptions, type ProcessingConfig, type QueryParams, RateLimitError, type RateLimitErrorDetails, type ReloadMetrics, type RequestHandler, type RequestOptions, type RequestParams, RequestTimeoutError, type Result, type Route, type RouteDefinition, type RouteEntry, type RouteHandler, type RouteMatch, type RouteMethodOptions, type RouteNode, type RouteOptions, type RouteRegistry, type RouteSchema, type Router, RouterAPI, type RouterOptions, type Server, ServerAPI, type ServerOptions, type ServerOptionsInput, type StandardErrorResponse, type StartOptions, type State, type StopOptions, type StreamOptions, type TimeoutErrorContext, UnauthorizedError, type UnauthorizedErrorDetails, type UnifiedRequest, type UnifiedResponse, type UnknownFunction, UnprocessableEntityError, UnsupportedMediaTypeError, type UnsupportedMediaTypeErrorDetails, type UploadProgress, type UploadedFile, VERSION, type ValidationConfig, ValidationError, type ValidationErrorDetails, type ValidationFieldError, type WatchOptions, compose, createDeleteRoute, createGetRoute, createHeadRoute, create$2 as createMiddleware, createOptionsRoute, createPatchRoute, create$1 as createPlugin, createPostRoute, createPutRoute, create as createServer, isBodyParseError };
|