routup 6.0.0-beta.3 → 6.0.0
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 +1 -2
- package/dist/bun.d.mts +2 -2
- package/dist/bun.mjs +2 -2
- package/dist/cloudflare.d.mts +2 -2
- package/dist/cloudflare.mjs +2 -2
- package/dist/deno.d.mts +2 -2
- package/dist/deno.mjs +2 -2
- package/dist/generic.d.mts +2 -2
- package/dist/generic.mjs +2 -2
- package/dist/{index-BeNEpRff.d.mts → index-lqadk4U6.d.mts} +12 -10
- package/dist/node.d.mts +2 -2
- package/dist/node.mjs +2 -2
- package/dist/service-worker.d.mts +2 -2
- package/dist/service-worker.mjs +2 -2
- package/dist/{src-KLwWuArk.mjs → src-CA6xFXqy.mjs} +159 -168
- package/dist/src-CA6xFXqy.mjs.map +1 -0
- package/package.json +3 -3
- package/dist/src-KLwWuArk.mjs.map +0 -1
package/README.md
CHANGED
|
@@ -39,7 +39,6 @@ npm install routup --save
|
|
|
39
39
|
- 🌐 **Web-standard APIs** — built on `Request` / `Response` for portability
|
|
40
40
|
- 📝 **Return-based handlers** — return strings, objects, streams, `Blob`s, or `Response` directly
|
|
41
41
|
- ✨ **Async middleware** — onion model with `event.next()`
|
|
42
|
-
- 📌 **Lifecycle hooks** — `request`, `response`, `error` for cross-cutting concerns
|
|
43
42
|
- 🧭 **Pluggable router & cache** — `LinearRouter` (default), `TrieRouter`, or `SmartRouter` (auto-selects); opt-in LRU lookup cache
|
|
44
43
|
- ⏱️ **Per-handler timeouts** — bounded execution with `AbortSignal` cooperative cancellation
|
|
45
44
|
- 🏷️ **Automatic ETag & 304** — strong/weak ETags out of the box, configurable per app or disabled entirely
|
|
@@ -55,7 +54,7 @@ npm install routup --save
|
|
|
55
54
|
|
|
56
55
|
## Documentation
|
|
57
56
|
|
|
58
|
-
To read the docs, visit [https://routup.
|
|
57
|
+
To read the docs, visit [https://routup.dev](https://routup.dev)
|
|
59
58
|
|
|
60
59
|
## Usage
|
|
61
60
|
|
package/dist/bun.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { $ as
|
|
1
|
+
import { $ as IApp, $t as IDispatcherEvent, A as sendFormat, At as CoreHandler, B as appendResponseHeader, Bt as HandlerErrorListener, C as getRequestAcceptableContentTypes, Ct as WebHandler, D as setResponseContentTypeByFileName, Dt as NodeHandler, E as toResponse, Et as fromNodeMiddleware, F as SendFileStats, Ft as ErrorHandler, G as createEventStream, Gt as PathMatcherExecResult, H as serializeEventStreamMessage, Ht as PathMatcher, I as sendFile, It as ErrorHandlerOptions, J as ResponseCacheHeadersOptions, Jt as createError, K as EventStreamListener, Kt as PathMatcherOptions, L as setResponseHeaderContentType, Lt as HandlerAfterListener, M as SendFileContentOptions, Mt as Handler, N as SendFileDisposition, Nt as HandlerOptions, O as sendStream, Ot as NodeMiddleware, P as SendFileOptions, Pt as defineErrorHandler, Q as AppOptionsInput, Qt as IDispatcher, R as setResponseHeaderAttachment, Rt as HandlerBaseOptions, S as getRequestAcceptableContentType, St as fromWebHandler, T as isRequestCacheable, Tt as fromNodeHandler, U as EventStreamHandle, Ut as IPathMatcher, V as appendResponseHeaderDirective, Vt as isPath, W as EventStreamOptions, Wt as Path, X as AppContext, Xt as HandlerType, Y as setResponseCacheHeaders, Yt as HandlerSymbol, Z as AppOptions, Zt as DispatcherEvent, _ as getRequestAcceptableLanguages, _t as matchHandlerMethod, a as SmartRouter, an as NextFn, at as LruCache, b as getRequestAcceptableCharset, bt as isWebHandler, c as RequestProtocolOptions, cn as MethodNameLike, ct as isPlugin, d as RequestIpOptions, dn as HTTPErrorInput, dt as PluginInstallFn, en as AppEvent, et as BaseRouterOptions, f as getRequestIP, ft as PluginNotInstalledError, g as getRequestAcceptableLanguage, gt as PluginErrorCode, h as matchRequestContentType, ht as PluginError, i as TrieRouter, in as IAppEvent, it as RouteMatch, j as SendFileContent, jt as CoreHandlerOptions, k as sendRedirect, kt as defineCoreHandler, l as getRequestProtocol, ln as AppError, lt as Plugin, m as getRequestHostName, mt as isPluginError, n as App, nn as AppRequest, nt as ObjectLiteral, o as SmartRouterOptions, on as HeaderName, ot as LruCacheOptions, p as RequestHostNameOptions, pt as PluginInstallError, q as EventStreamMessage, qt as isError, r as buildRoutePathMatcher, rn as AppResponse, rt as Route, s as LinearRouter, sn as MethodName, st as ICache, t as normalizeAppOptions, tn as AppEventCreateContext, tt as IRouter, u as useRequestNegotiator, un as ErrorSymbol, ut as PluginInstallContext, v as getRequestAcceptableEncoding, vt as isHandler, w as getRequestHeader, wt as WebHandlerProvider, x as getRequestAcceptableCharsets, xt as isWebHandlerProvider, y as getRequestAcceptableEncodings, yt as isHandlerOptions, z as setResponseHeaderInline, zt as HandlerBeforeListener } from "./index-lqadk4U6.mjs";
|
|
2
2
|
import { Server, ServerOptions } from "srvx";
|
|
3
3
|
|
|
4
4
|
//#region src/_entries/bun.d.ts
|
|
5
5
|
declare function serve(app: IApp, options?: Omit<ServerOptions, 'fetch'>): Server;
|
|
6
6
|
//#endregion
|
|
7
|
-
export { App, AppContext, AppError, AppEvent, AppEventCreateContext, AppOptions, AppOptionsInput, AppRequest, AppResponse, BaseRouterOptions, CoreHandler, CoreHandlerOptions, DispatcherEvent, ErrorHandler, ErrorHandlerOptions, ErrorSymbol, EventStreamHandle, EventStreamListener, EventStreamMessage, EventStreamOptions, HTTPErrorInput, Handler, HandlerAfterListener, HandlerBaseOptions, HandlerBeforeListener, HandlerErrorListener, HandlerOptions, HandlerSymbol, HandlerType, HeaderName, IApp, IAppEvent, ICache, IDispatcher, IDispatcherEvent, IPathMatcher, IRouter, LinearRouter, LruCache, LruCacheOptions, MethodName, MethodNameLike, NextFn, NodeHandler, NodeMiddleware, ObjectLiteral, Path, PathMatcher, PathMatcherExecResult, PathMatcherOptions, Plugin, PluginError, PluginErrorCode, PluginInstallContext, PluginInstallError, PluginInstallFn, PluginNotInstalledError, RequestHostNameOptions, RequestIpOptions, RequestProtocolOptions, ResponseCacheHeadersOptions, Route, RouteMatch, SendFileContent, SendFileContentOptions, SendFileDisposition, SendFileOptions, SendFileStats, SmartRouter, SmartRouterOptions, TrieRouter, WebHandler, WebHandlerProvider, appendResponseHeader, appendResponseHeaderDirective, buildRoutePathMatcher, createError, createEventStream, defineCoreHandler, defineErrorHandler, fromNodeHandler, fromNodeMiddleware, fromWebHandler, getRequestAcceptableCharset, getRequestAcceptableCharsets, getRequestAcceptableContentType, getRequestAcceptableContentTypes, getRequestAcceptableEncoding, getRequestAcceptableEncodings, getRequestAcceptableLanguage, getRequestAcceptableLanguages, getRequestHeader, getRequestHostName, getRequestIP, getRequestProtocol, isError, isHandler, isHandlerOptions, isPath, isPlugin, isPluginError, isRequestCacheable, isWebHandler, isWebHandlerProvider, matchHandlerMethod, matchRequestContentType, normalizeAppOptions,
|
|
7
|
+
export { App, AppContext, AppError, AppEvent, AppEventCreateContext, AppOptions, AppOptionsInput, AppRequest, AppResponse, BaseRouterOptions, CoreHandler, CoreHandlerOptions, DispatcherEvent, ErrorHandler, ErrorHandlerOptions, ErrorSymbol, EventStreamHandle, EventStreamListener, EventStreamMessage, EventStreamOptions, HTTPErrorInput, Handler, HandlerAfterListener, HandlerBaseOptions, HandlerBeforeListener, HandlerErrorListener, HandlerOptions, HandlerSymbol, HandlerType, HeaderName, IApp, IAppEvent, ICache, IDispatcher, IDispatcherEvent, IPathMatcher, IRouter, LinearRouter, LruCache, LruCacheOptions, MethodName, MethodNameLike, NextFn, NodeHandler, NodeMiddleware, ObjectLiteral, Path, PathMatcher, PathMatcherExecResult, PathMatcherOptions, Plugin, PluginError, PluginErrorCode, PluginInstallContext, PluginInstallError, PluginInstallFn, PluginNotInstalledError, RequestHostNameOptions, RequestIpOptions, RequestProtocolOptions, ResponseCacheHeadersOptions, Route, RouteMatch, SendFileContent, SendFileContentOptions, SendFileDisposition, SendFileOptions, SendFileStats, SmartRouter, SmartRouterOptions, TrieRouter, WebHandler, WebHandlerProvider, appendResponseHeader, appendResponseHeaderDirective, buildRoutePathMatcher, createError, createEventStream, defineCoreHandler, defineErrorHandler, fromNodeHandler, fromNodeMiddleware, fromWebHandler, getRequestAcceptableCharset, getRequestAcceptableCharsets, getRequestAcceptableContentType, getRequestAcceptableContentTypes, getRequestAcceptableEncoding, getRequestAcceptableEncodings, getRequestAcceptableLanguage, getRequestAcceptableLanguages, getRequestHeader, getRequestHostName, getRequestIP, getRequestProtocol, isError, isHandler, isHandlerOptions, isPath, isPlugin, isPluginError, isRequestCacheable, isWebHandler, isWebHandlerProvider, matchHandlerMethod, matchRequestContentType, normalizeAppOptions, sendFile, sendFormat, sendRedirect, sendStream, serializeEventStreamMessage, serve, setResponseCacheHeaders, setResponseContentTypeByFileName, setResponseHeaderAttachment, setResponseHeaderContentType, setResponseHeaderInline, toResponse, useRequestNegotiator };
|
|
8
8
|
//# sourceMappingURL=bun.d.mts.map
|
package/dist/bun.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as
|
|
1
|
+
import { $ as setResponseHeaderInline, A as isWebHandler, B as toResponse, C as getRequestAcceptableCharset, D as isHandler, E as matchHandlerMethod, F as defineCoreHandler, G as sendFormat, H as isError, I as Handler, J as useRequestNegotiator, K as getRequestAcceptableContentType, L as HandlerSymbol, M as fromNodeHandler, N as fromNodeMiddleware, O as isHandlerOptions, P as defineErrorHandler, Q as setResponseHeaderAttachment, R as HandlerType, S as getRequestAcceptableEncodings, T as isRequestCacheable, U as sendStream, V as createError, W as sendRedirect, X as sendFile, Y as getRequestHeader, Z as setResponseHeaderContentType, _ as getRequestHostName, a as LinearRouter, at as AppError, b as getRequestAcceptableLanguages, c as PluginNotInstalledError, ct as AppEvent, d as isPluginError, dt as LruCache, et as setResponseContentTypeByFileName, f as PluginErrorCode, g as getRequestIP, h as getRequestProtocol, i as TrieRouter, it as serializeEventStreamMessage, j as isWebHandlerProvider, k as fromWebHandler, l as PluginInstallError, lt as HeaderName, m as PathMatcher, n as normalizeAppOptions, nt as appendResponseHeaderDirective, o as buildRoutePathMatcher, ot as ErrorSymbol, p as isPath, q as getRequestAcceptableContentTypes, r as SmartRouter, rt as createEventStream, s as isPlugin, st as setResponseCacheHeaders, t as App, tt as appendResponseHeader, u as PluginError, ut as MethodName, v as matchRequestContentType, w as getRequestAcceptableCharsets, x as getRequestAcceptableEncoding, y as getRequestAcceptableLanguage, z as DispatcherEvent } from "./src-CA6xFXqy.mjs";
|
|
2
2
|
import { serve as serve$1 } from "srvx/bun";
|
|
3
3
|
//#region src/_entries/bun.ts
|
|
4
4
|
function serve(app, options) {
|
|
@@ -8,6 +8,6 @@ function serve(app, options) {
|
|
|
8
8
|
});
|
|
9
9
|
}
|
|
10
10
|
//#endregion
|
|
11
|
-
export { App, AppError, AppEvent, DispatcherEvent, ErrorSymbol, Handler, HandlerSymbol, HandlerType, HeaderName, LinearRouter, LruCache, MethodName, PathMatcher, PluginError, PluginErrorCode, PluginInstallError, PluginNotInstalledError, SmartRouter, TrieRouter, appendResponseHeader, appendResponseHeaderDirective, buildRoutePathMatcher, createError, createEventStream, defineCoreHandler, defineErrorHandler, fromNodeHandler, fromNodeMiddleware, fromWebHandler, getRequestAcceptableCharset, getRequestAcceptableCharsets, getRequestAcceptableContentType, getRequestAcceptableContentTypes, getRequestAcceptableEncoding, getRequestAcceptableEncodings, getRequestAcceptableLanguage, getRequestAcceptableLanguages, getRequestHeader, getRequestHostName, getRequestIP, getRequestProtocol, isError, isHandler, isHandlerOptions, isPath, isPlugin, isPluginError, isRequestCacheable, isWebHandler, isWebHandlerProvider, matchHandlerMethod, matchRequestContentType, normalizeAppOptions,
|
|
11
|
+
export { App, AppError, AppEvent, DispatcherEvent, ErrorSymbol, Handler, HandlerSymbol, HandlerType, HeaderName, LinearRouter, LruCache, MethodName, PathMatcher, PluginError, PluginErrorCode, PluginInstallError, PluginNotInstalledError, SmartRouter, TrieRouter, appendResponseHeader, appendResponseHeaderDirective, buildRoutePathMatcher, createError, createEventStream, defineCoreHandler, defineErrorHandler, fromNodeHandler, fromNodeMiddleware, fromWebHandler, getRequestAcceptableCharset, getRequestAcceptableCharsets, getRequestAcceptableContentType, getRequestAcceptableContentTypes, getRequestAcceptableEncoding, getRequestAcceptableEncodings, getRequestAcceptableLanguage, getRequestAcceptableLanguages, getRequestHeader, getRequestHostName, getRequestIP, getRequestProtocol, isError, isHandler, isHandlerOptions, isPath, isPlugin, isPluginError, isRequestCacheable, isWebHandler, isWebHandlerProvider, matchHandlerMethod, matchRequestContentType, normalizeAppOptions, sendFile, sendFormat, sendRedirect, sendStream, serializeEventStreamMessage, serve, setResponseCacheHeaders, setResponseContentTypeByFileName, setResponseHeaderAttachment, setResponseHeaderContentType, setResponseHeaderInline, toResponse, useRequestNegotiator };
|
|
12
12
|
|
|
13
13
|
//# sourceMappingURL=bun.mjs.map
|
package/dist/cloudflare.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { $ as
|
|
1
|
+
import { $ as IApp, $t as IDispatcherEvent, A as sendFormat, At as CoreHandler, B as appendResponseHeader, Bt as HandlerErrorListener, C as getRequestAcceptableContentTypes, Ct as WebHandler, D as setResponseContentTypeByFileName, Dt as NodeHandler, E as toResponse, Et as fromNodeMiddleware, F as SendFileStats, Ft as ErrorHandler, G as createEventStream, Gt as PathMatcherExecResult, H as serializeEventStreamMessage, Ht as PathMatcher, I as sendFile, It as ErrorHandlerOptions, J as ResponseCacheHeadersOptions, Jt as createError, K as EventStreamListener, Kt as PathMatcherOptions, L as setResponseHeaderContentType, Lt as HandlerAfterListener, M as SendFileContentOptions, Mt as Handler, N as SendFileDisposition, Nt as HandlerOptions, O as sendStream, Ot as NodeMiddleware, P as SendFileOptions, Pt as defineErrorHandler, Q as AppOptionsInput, Qt as IDispatcher, R as setResponseHeaderAttachment, Rt as HandlerBaseOptions, S as getRequestAcceptableContentType, St as fromWebHandler, T as isRequestCacheable, Tt as fromNodeHandler, U as EventStreamHandle, Ut as IPathMatcher, V as appendResponseHeaderDirective, Vt as isPath, W as EventStreamOptions, Wt as Path, X as AppContext, Xt as HandlerType, Y as setResponseCacheHeaders, Yt as HandlerSymbol, Z as AppOptions, Zt as DispatcherEvent, _ as getRequestAcceptableLanguages, _t as matchHandlerMethod, a as SmartRouter, an as NextFn, at as LruCache, b as getRequestAcceptableCharset, bt as isWebHandler, c as RequestProtocolOptions, cn as MethodNameLike, ct as isPlugin, d as RequestIpOptions, dn as HTTPErrorInput, dt as PluginInstallFn, en as AppEvent, et as BaseRouterOptions, f as getRequestIP, ft as PluginNotInstalledError, g as getRequestAcceptableLanguage, gt as PluginErrorCode, h as matchRequestContentType, ht as PluginError, i as TrieRouter, in as IAppEvent, it as RouteMatch, j as SendFileContent, jt as CoreHandlerOptions, k as sendRedirect, kt as defineCoreHandler, l as getRequestProtocol, ln as AppError, lt as Plugin, m as getRequestHostName, mt as isPluginError, n as App, nn as AppRequest, nt as ObjectLiteral, o as SmartRouterOptions, on as HeaderName, ot as LruCacheOptions, p as RequestHostNameOptions, pt as PluginInstallError, q as EventStreamMessage, qt as isError, r as buildRoutePathMatcher, rn as AppResponse, rt as Route, s as LinearRouter, sn as MethodName, st as ICache, t as normalizeAppOptions, tn as AppEventCreateContext, tt as IRouter, u as useRequestNegotiator, un as ErrorSymbol, ut as PluginInstallContext, v as getRequestAcceptableEncoding, vt as isHandler, w as getRequestHeader, wt as WebHandlerProvider, x as getRequestAcceptableCharsets, xt as isWebHandlerProvider, y as getRequestAcceptableEncodings, yt as isHandlerOptions, z as setResponseHeaderInline, zt as HandlerBeforeListener } from "./index-lqadk4U6.mjs";
|
|
2
2
|
import { Server, ServerOptions } from "srvx";
|
|
3
3
|
|
|
4
4
|
//#region src/_entries/cloudflare.d.ts
|
|
5
5
|
declare function serve(app: IApp, options?: Omit<ServerOptions, 'fetch'>): Server;
|
|
6
6
|
//#endregion
|
|
7
|
-
export { App, AppContext, AppError, AppEvent, AppEventCreateContext, AppOptions, AppOptionsInput, AppRequest, AppResponse, BaseRouterOptions, CoreHandler, CoreHandlerOptions, DispatcherEvent, ErrorHandler, ErrorHandlerOptions, ErrorSymbol, EventStreamHandle, EventStreamListener, EventStreamMessage, EventStreamOptions, HTTPErrorInput, Handler, HandlerAfterListener, HandlerBaseOptions, HandlerBeforeListener, HandlerErrorListener, HandlerOptions, HandlerSymbol, HandlerType, HeaderName, IApp, IAppEvent, ICache, IDispatcher, IDispatcherEvent, IPathMatcher, IRouter, LinearRouter, LruCache, LruCacheOptions, MethodName, MethodNameLike, NextFn, NodeHandler, NodeMiddleware, ObjectLiteral, Path, PathMatcher, PathMatcherExecResult, PathMatcherOptions, Plugin, PluginError, PluginErrorCode, PluginInstallContext, PluginInstallError, PluginInstallFn, PluginNotInstalledError, RequestHostNameOptions, RequestIpOptions, RequestProtocolOptions, ResponseCacheHeadersOptions, Route, RouteMatch, SendFileContent, SendFileContentOptions, SendFileDisposition, SendFileOptions, SendFileStats, SmartRouter, SmartRouterOptions, TrieRouter, WebHandler, WebHandlerProvider, appendResponseHeader, appendResponseHeaderDirective, buildRoutePathMatcher, createError, createEventStream, defineCoreHandler, defineErrorHandler, fromNodeHandler, fromNodeMiddleware, fromWebHandler, getRequestAcceptableCharset, getRequestAcceptableCharsets, getRequestAcceptableContentType, getRequestAcceptableContentTypes, getRequestAcceptableEncoding, getRequestAcceptableEncodings, getRequestAcceptableLanguage, getRequestAcceptableLanguages, getRequestHeader, getRequestHostName, getRequestIP, getRequestProtocol, isError, isHandler, isHandlerOptions, isPath, isPlugin, isPluginError, isRequestCacheable, isWebHandler, isWebHandlerProvider, matchHandlerMethod, matchRequestContentType, normalizeAppOptions,
|
|
7
|
+
export { App, AppContext, AppError, AppEvent, AppEventCreateContext, AppOptions, AppOptionsInput, AppRequest, AppResponse, BaseRouterOptions, CoreHandler, CoreHandlerOptions, DispatcherEvent, ErrorHandler, ErrorHandlerOptions, ErrorSymbol, EventStreamHandle, EventStreamListener, EventStreamMessage, EventStreamOptions, HTTPErrorInput, Handler, HandlerAfterListener, HandlerBaseOptions, HandlerBeforeListener, HandlerErrorListener, HandlerOptions, HandlerSymbol, HandlerType, HeaderName, IApp, IAppEvent, ICache, IDispatcher, IDispatcherEvent, IPathMatcher, IRouter, LinearRouter, LruCache, LruCacheOptions, MethodName, MethodNameLike, NextFn, NodeHandler, NodeMiddleware, ObjectLiteral, Path, PathMatcher, PathMatcherExecResult, PathMatcherOptions, Plugin, PluginError, PluginErrorCode, PluginInstallContext, PluginInstallError, PluginInstallFn, PluginNotInstalledError, RequestHostNameOptions, RequestIpOptions, RequestProtocolOptions, ResponseCacheHeadersOptions, Route, RouteMatch, SendFileContent, SendFileContentOptions, SendFileDisposition, SendFileOptions, SendFileStats, SmartRouter, SmartRouterOptions, TrieRouter, WebHandler, WebHandlerProvider, appendResponseHeader, appendResponseHeaderDirective, buildRoutePathMatcher, createError, createEventStream, defineCoreHandler, defineErrorHandler, fromNodeHandler, fromNodeMiddleware, fromWebHandler, getRequestAcceptableCharset, getRequestAcceptableCharsets, getRequestAcceptableContentType, getRequestAcceptableContentTypes, getRequestAcceptableEncoding, getRequestAcceptableEncodings, getRequestAcceptableLanguage, getRequestAcceptableLanguages, getRequestHeader, getRequestHostName, getRequestIP, getRequestProtocol, isError, isHandler, isHandlerOptions, isPath, isPlugin, isPluginError, isRequestCacheable, isWebHandler, isWebHandlerProvider, matchHandlerMethod, matchRequestContentType, normalizeAppOptions, sendFile, sendFormat, sendRedirect, sendStream, serializeEventStreamMessage, serve, setResponseCacheHeaders, setResponseContentTypeByFileName, setResponseHeaderAttachment, setResponseHeaderContentType, setResponseHeaderInline, toResponse, useRequestNegotiator };
|
|
8
8
|
//# sourceMappingURL=cloudflare.d.mts.map
|
package/dist/cloudflare.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as
|
|
1
|
+
import { $ as setResponseHeaderInline, A as isWebHandler, B as toResponse, C as getRequestAcceptableCharset, D as isHandler, E as matchHandlerMethod, F as defineCoreHandler, G as sendFormat, H as isError, I as Handler, J as useRequestNegotiator, K as getRequestAcceptableContentType, L as HandlerSymbol, M as fromNodeHandler, N as fromNodeMiddleware, O as isHandlerOptions, P as defineErrorHandler, Q as setResponseHeaderAttachment, R as HandlerType, S as getRequestAcceptableEncodings, T as isRequestCacheable, U as sendStream, V as createError, W as sendRedirect, X as sendFile, Y as getRequestHeader, Z as setResponseHeaderContentType, _ as getRequestHostName, a as LinearRouter, at as AppError, b as getRequestAcceptableLanguages, c as PluginNotInstalledError, ct as AppEvent, d as isPluginError, dt as LruCache, et as setResponseContentTypeByFileName, f as PluginErrorCode, g as getRequestIP, h as getRequestProtocol, i as TrieRouter, it as serializeEventStreamMessage, j as isWebHandlerProvider, k as fromWebHandler, l as PluginInstallError, lt as HeaderName, m as PathMatcher, n as normalizeAppOptions, nt as appendResponseHeaderDirective, o as buildRoutePathMatcher, ot as ErrorSymbol, p as isPath, q as getRequestAcceptableContentTypes, r as SmartRouter, rt as createEventStream, s as isPlugin, st as setResponseCacheHeaders, t as App, tt as appendResponseHeader, u as PluginError, ut as MethodName, v as matchRequestContentType, w as getRequestAcceptableCharsets, x as getRequestAcceptableEncoding, y as getRequestAcceptableLanguage, z as DispatcherEvent } from "./src-CA6xFXqy.mjs";
|
|
2
2
|
import { serve as serve$1 } from "srvx/cloudflare";
|
|
3
3
|
//#region src/_entries/cloudflare.ts
|
|
4
4
|
function serve(app, options) {
|
|
@@ -8,6 +8,6 @@ function serve(app, options) {
|
|
|
8
8
|
});
|
|
9
9
|
}
|
|
10
10
|
//#endregion
|
|
11
|
-
export { App, AppError, AppEvent, DispatcherEvent, ErrorSymbol, Handler, HandlerSymbol, HandlerType, HeaderName, LinearRouter, LruCache, MethodName, PathMatcher, PluginError, PluginErrorCode, PluginInstallError, PluginNotInstalledError, SmartRouter, TrieRouter, appendResponseHeader, appendResponseHeaderDirective, buildRoutePathMatcher, createError, createEventStream, defineCoreHandler, defineErrorHandler, fromNodeHandler, fromNodeMiddleware, fromWebHandler, getRequestAcceptableCharset, getRequestAcceptableCharsets, getRequestAcceptableContentType, getRequestAcceptableContentTypes, getRequestAcceptableEncoding, getRequestAcceptableEncodings, getRequestAcceptableLanguage, getRequestAcceptableLanguages, getRequestHeader, getRequestHostName, getRequestIP, getRequestProtocol, isError, isHandler, isHandlerOptions, isPath, isPlugin, isPluginError, isRequestCacheable, isWebHandler, isWebHandlerProvider, matchHandlerMethod, matchRequestContentType, normalizeAppOptions,
|
|
11
|
+
export { App, AppError, AppEvent, DispatcherEvent, ErrorSymbol, Handler, HandlerSymbol, HandlerType, HeaderName, LinearRouter, LruCache, MethodName, PathMatcher, PluginError, PluginErrorCode, PluginInstallError, PluginNotInstalledError, SmartRouter, TrieRouter, appendResponseHeader, appendResponseHeaderDirective, buildRoutePathMatcher, createError, createEventStream, defineCoreHandler, defineErrorHandler, fromNodeHandler, fromNodeMiddleware, fromWebHandler, getRequestAcceptableCharset, getRequestAcceptableCharsets, getRequestAcceptableContentType, getRequestAcceptableContentTypes, getRequestAcceptableEncoding, getRequestAcceptableEncodings, getRequestAcceptableLanguage, getRequestAcceptableLanguages, getRequestHeader, getRequestHostName, getRequestIP, getRequestProtocol, isError, isHandler, isHandlerOptions, isPath, isPlugin, isPluginError, isRequestCacheable, isWebHandler, isWebHandlerProvider, matchHandlerMethod, matchRequestContentType, normalizeAppOptions, sendFile, sendFormat, sendRedirect, sendStream, serializeEventStreamMessage, serve, setResponseCacheHeaders, setResponseContentTypeByFileName, setResponseHeaderAttachment, setResponseHeaderContentType, setResponseHeaderInline, toResponse, useRequestNegotiator };
|
|
12
12
|
|
|
13
13
|
//# sourceMappingURL=cloudflare.mjs.map
|
package/dist/deno.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { $ as
|
|
1
|
+
import { $ as IApp, $t as IDispatcherEvent, A as sendFormat, At as CoreHandler, B as appendResponseHeader, Bt as HandlerErrorListener, C as getRequestAcceptableContentTypes, Ct as WebHandler, D as setResponseContentTypeByFileName, Dt as NodeHandler, E as toResponse, Et as fromNodeMiddleware, F as SendFileStats, Ft as ErrorHandler, G as createEventStream, Gt as PathMatcherExecResult, H as serializeEventStreamMessage, Ht as PathMatcher, I as sendFile, It as ErrorHandlerOptions, J as ResponseCacheHeadersOptions, Jt as createError, K as EventStreamListener, Kt as PathMatcherOptions, L as setResponseHeaderContentType, Lt as HandlerAfterListener, M as SendFileContentOptions, Mt as Handler, N as SendFileDisposition, Nt as HandlerOptions, O as sendStream, Ot as NodeMiddleware, P as SendFileOptions, Pt as defineErrorHandler, Q as AppOptionsInput, Qt as IDispatcher, R as setResponseHeaderAttachment, Rt as HandlerBaseOptions, S as getRequestAcceptableContentType, St as fromWebHandler, T as isRequestCacheable, Tt as fromNodeHandler, U as EventStreamHandle, Ut as IPathMatcher, V as appendResponseHeaderDirective, Vt as isPath, W as EventStreamOptions, Wt as Path, X as AppContext, Xt as HandlerType, Y as setResponseCacheHeaders, Yt as HandlerSymbol, Z as AppOptions, Zt as DispatcherEvent, _ as getRequestAcceptableLanguages, _t as matchHandlerMethod, a as SmartRouter, an as NextFn, at as LruCache, b as getRequestAcceptableCharset, bt as isWebHandler, c as RequestProtocolOptions, cn as MethodNameLike, ct as isPlugin, d as RequestIpOptions, dn as HTTPErrorInput, dt as PluginInstallFn, en as AppEvent, et as BaseRouterOptions, f as getRequestIP, ft as PluginNotInstalledError, g as getRequestAcceptableLanguage, gt as PluginErrorCode, h as matchRequestContentType, ht as PluginError, i as TrieRouter, in as IAppEvent, it as RouteMatch, j as SendFileContent, jt as CoreHandlerOptions, k as sendRedirect, kt as defineCoreHandler, l as getRequestProtocol, ln as AppError, lt as Plugin, m as getRequestHostName, mt as isPluginError, n as App, nn as AppRequest, nt as ObjectLiteral, o as SmartRouterOptions, on as HeaderName, ot as LruCacheOptions, p as RequestHostNameOptions, pt as PluginInstallError, q as EventStreamMessage, qt as isError, r as buildRoutePathMatcher, rn as AppResponse, rt as Route, s as LinearRouter, sn as MethodName, st as ICache, t as normalizeAppOptions, tn as AppEventCreateContext, tt as IRouter, u as useRequestNegotiator, un as ErrorSymbol, ut as PluginInstallContext, v as getRequestAcceptableEncoding, vt as isHandler, w as getRequestHeader, wt as WebHandlerProvider, x as getRequestAcceptableCharsets, xt as isWebHandlerProvider, y as getRequestAcceptableEncodings, yt as isHandlerOptions, z as setResponseHeaderInline, zt as HandlerBeforeListener } from "./index-lqadk4U6.mjs";
|
|
2
2
|
import { Server, ServerOptions } from "srvx";
|
|
3
3
|
|
|
4
4
|
//#region src/_entries/deno.d.ts
|
|
5
5
|
declare function serve(app: IApp, options?: Omit<ServerOptions, 'fetch'>): Server;
|
|
6
6
|
//#endregion
|
|
7
|
-
export { App, AppContext, AppError, AppEvent, AppEventCreateContext, AppOptions, AppOptionsInput, AppRequest, AppResponse, BaseRouterOptions, CoreHandler, CoreHandlerOptions, DispatcherEvent, ErrorHandler, ErrorHandlerOptions, ErrorSymbol, EventStreamHandle, EventStreamListener, EventStreamMessage, EventStreamOptions, HTTPErrorInput, Handler, HandlerAfterListener, HandlerBaseOptions, HandlerBeforeListener, HandlerErrorListener, HandlerOptions, HandlerSymbol, HandlerType, HeaderName, IApp, IAppEvent, ICache, IDispatcher, IDispatcherEvent, IPathMatcher, IRouter, LinearRouter, LruCache, LruCacheOptions, MethodName, MethodNameLike, NextFn, NodeHandler, NodeMiddleware, ObjectLiteral, Path, PathMatcher, PathMatcherExecResult, PathMatcherOptions, Plugin, PluginError, PluginErrorCode, PluginInstallContext, PluginInstallError, PluginInstallFn, PluginNotInstalledError, RequestHostNameOptions, RequestIpOptions, RequestProtocolOptions, ResponseCacheHeadersOptions, Route, RouteMatch, SendFileContent, SendFileContentOptions, SendFileDisposition, SendFileOptions, SendFileStats, SmartRouter, SmartRouterOptions, TrieRouter, WebHandler, WebHandlerProvider, appendResponseHeader, appendResponseHeaderDirective, buildRoutePathMatcher, createError, createEventStream, defineCoreHandler, defineErrorHandler, fromNodeHandler, fromNodeMiddleware, fromWebHandler, getRequestAcceptableCharset, getRequestAcceptableCharsets, getRequestAcceptableContentType, getRequestAcceptableContentTypes, getRequestAcceptableEncoding, getRequestAcceptableEncodings, getRequestAcceptableLanguage, getRequestAcceptableLanguages, getRequestHeader, getRequestHostName, getRequestIP, getRequestProtocol, isError, isHandler, isHandlerOptions, isPath, isPlugin, isPluginError, isRequestCacheable, isWebHandler, isWebHandlerProvider, matchHandlerMethod, matchRequestContentType, normalizeAppOptions,
|
|
7
|
+
export { App, AppContext, AppError, AppEvent, AppEventCreateContext, AppOptions, AppOptionsInput, AppRequest, AppResponse, BaseRouterOptions, CoreHandler, CoreHandlerOptions, DispatcherEvent, ErrorHandler, ErrorHandlerOptions, ErrorSymbol, EventStreamHandle, EventStreamListener, EventStreamMessage, EventStreamOptions, HTTPErrorInput, Handler, HandlerAfterListener, HandlerBaseOptions, HandlerBeforeListener, HandlerErrorListener, HandlerOptions, HandlerSymbol, HandlerType, HeaderName, IApp, IAppEvent, ICache, IDispatcher, IDispatcherEvent, IPathMatcher, IRouter, LinearRouter, LruCache, LruCacheOptions, MethodName, MethodNameLike, NextFn, NodeHandler, NodeMiddleware, ObjectLiteral, Path, PathMatcher, PathMatcherExecResult, PathMatcherOptions, Plugin, PluginError, PluginErrorCode, PluginInstallContext, PluginInstallError, PluginInstallFn, PluginNotInstalledError, RequestHostNameOptions, RequestIpOptions, RequestProtocolOptions, ResponseCacheHeadersOptions, Route, RouteMatch, SendFileContent, SendFileContentOptions, SendFileDisposition, SendFileOptions, SendFileStats, SmartRouter, SmartRouterOptions, TrieRouter, WebHandler, WebHandlerProvider, appendResponseHeader, appendResponseHeaderDirective, buildRoutePathMatcher, createError, createEventStream, defineCoreHandler, defineErrorHandler, fromNodeHandler, fromNodeMiddleware, fromWebHandler, getRequestAcceptableCharset, getRequestAcceptableCharsets, getRequestAcceptableContentType, getRequestAcceptableContentTypes, getRequestAcceptableEncoding, getRequestAcceptableEncodings, getRequestAcceptableLanguage, getRequestAcceptableLanguages, getRequestHeader, getRequestHostName, getRequestIP, getRequestProtocol, isError, isHandler, isHandlerOptions, isPath, isPlugin, isPluginError, isRequestCacheable, isWebHandler, isWebHandlerProvider, matchHandlerMethod, matchRequestContentType, normalizeAppOptions, sendFile, sendFormat, sendRedirect, sendStream, serializeEventStreamMessage, serve, setResponseCacheHeaders, setResponseContentTypeByFileName, setResponseHeaderAttachment, setResponseHeaderContentType, setResponseHeaderInline, toResponse, useRequestNegotiator };
|
|
8
8
|
//# sourceMappingURL=deno.d.mts.map
|
package/dist/deno.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as
|
|
1
|
+
import { $ as setResponseHeaderInline, A as isWebHandler, B as toResponse, C as getRequestAcceptableCharset, D as isHandler, E as matchHandlerMethod, F as defineCoreHandler, G as sendFormat, H as isError, I as Handler, J as useRequestNegotiator, K as getRequestAcceptableContentType, L as HandlerSymbol, M as fromNodeHandler, N as fromNodeMiddleware, O as isHandlerOptions, P as defineErrorHandler, Q as setResponseHeaderAttachment, R as HandlerType, S as getRequestAcceptableEncodings, T as isRequestCacheable, U as sendStream, V as createError, W as sendRedirect, X as sendFile, Y as getRequestHeader, Z as setResponseHeaderContentType, _ as getRequestHostName, a as LinearRouter, at as AppError, b as getRequestAcceptableLanguages, c as PluginNotInstalledError, ct as AppEvent, d as isPluginError, dt as LruCache, et as setResponseContentTypeByFileName, f as PluginErrorCode, g as getRequestIP, h as getRequestProtocol, i as TrieRouter, it as serializeEventStreamMessage, j as isWebHandlerProvider, k as fromWebHandler, l as PluginInstallError, lt as HeaderName, m as PathMatcher, n as normalizeAppOptions, nt as appendResponseHeaderDirective, o as buildRoutePathMatcher, ot as ErrorSymbol, p as isPath, q as getRequestAcceptableContentTypes, r as SmartRouter, rt as createEventStream, s as isPlugin, st as setResponseCacheHeaders, t as App, tt as appendResponseHeader, u as PluginError, ut as MethodName, v as matchRequestContentType, w as getRequestAcceptableCharsets, x as getRequestAcceptableEncoding, y as getRequestAcceptableLanguage, z as DispatcherEvent } from "./src-CA6xFXqy.mjs";
|
|
2
2
|
import { serve as serve$1 } from "srvx/deno";
|
|
3
3
|
//#region src/_entries/deno.ts
|
|
4
4
|
function serve(app, options) {
|
|
@@ -8,6 +8,6 @@ function serve(app, options) {
|
|
|
8
8
|
});
|
|
9
9
|
}
|
|
10
10
|
//#endregion
|
|
11
|
-
export { App, AppError, AppEvent, DispatcherEvent, ErrorSymbol, Handler, HandlerSymbol, HandlerType, HeaderName, LinearRouter, LruCache, MethodName, PathMatcher, PluginError, PluginErrorCode, PluginInstallError, PluginNotInstalledError, SmartRouter, TrieRouter, appendResponseHeader, appendResponseHeaderDirective, buildRoutePathMatcher, createError, createEventStream, defineCoreHandler, defineErrorHandler, fromNodeHandler, fromNodeMiddleware, fromWebHandler, getRequestAcceptableCharset, getRequestAcceptableCharsets, getRequestAcceptableContentType, getRequestAcceptableContentTypes, getRequestAcceptableEncoding, getRequestAcceptableEncodings, getRequestAcceptableLanguage, getRequestAcceptableLanguages, getRequestHeader, getRequestHostName, getRequestIP, getRequestProtocol, isError, isHandler, isHandlerOptions, isPath, isPlugin, isPluginError, isRequestCacheable, isWebHandler, isWebHandlerProvider, matchHandlerMethod, matchRequestContentType, normalizeAppOptions,
|
|
11
|
+
export { App, AppError, AppEvent, DispatcherEvent, ErrorSymbol, Handler, HandlerSymbol, HandlerType, HeaderName, LinearRouter, LruCache, MethodName, PathMatcher, PluginError, PluginErrorCode, PluginInstallError, PluginNotInstalledError, SmartRouter, TrieRouter, appendResponseHeader, appendResponseHeaderDirective, buildRoutePathMatcher, createError, createEventStream, defineCoreHandler, defineErrorHandler, fromNodeHandler, fromNodeMiddleware, fromWebHandler, getRequestAcceptableCharset, getRequestAcceptableCharsets, getRequestAcceptableContentType, getRequestAcceptableContentTypes, getRequestAcceptableEncoding, getRequestAcceptableEncodings, getRequestAcceptableLanguage, getRequestAcceptableLanguages, getRequestHeader, getRequestHostName, getRequestIP, getRequestProtocol, isError, isHandler, isHandlerOptions, isPath, isPlugin, isPluginError, isRequestCacheable, isWebHandler, isWebHandlerProvider, matchHandlerMethod, matchRequestContentType, normalizeAppOptions, sendFile, sendFormat, sendRedirect, sendStream, serializeEventStreamMessage, serve, setResponseCacheHeaders, setResponseContentTypeByFileName, setResponseHeaderAttachment, setResponseHeaderContentType, setResponseHeaderInline, toResponse, useRequestNegotiator };
|
|
12
12
|
|
|
13
13
|
//# sourceMappingURL=deno.mjs.map
|
package/dist/generic.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { $ as
|
|
1
|
+
import { $ as IApp, $t as IDispatcherEvent, A as sendFormat, At as CoreHandler, B as appendResponseHeader, Bt as HandlerErrorListener, C as getRequestAcceptableContentTypes, Ct as WebHandler, D as setResponseContentTypeByFileName, Dt as NodeHandler, E as toResponse, Et as fromNodeMiddleware, F as SendFileStats, Ft as ErrorHandler, G as createEventStream, Gt as PathMatcherExecResult, H as serializeEventStreamMessage, Ht as PathMatcher, I as sendFile, It as ErrorHandlerOptions, J as ResponseCacheHeadersOptions, Jt as createError, K as EventStreamListener, Kt as PathMatcherOptions, L as setResponseHeaderContentType, Lt as HandlerAfterListener, M as SendFileContentOptions, Mt as Handler, N as SendFileDisposition, Nt as HandlerOptions, O as sendStream, Ot as NodeMiddleware, P as SendFileOptions, Pt as defineErrorHandler, Q as AppOptionsInput, Qt as IDispatcher, R as setResponseHeaderAttachment, Rt as HandlerBaseOptions, S as getRequestAcceptableContentType, St as fromWebHandler, T as isRequestCacheable, Tt as fromNodeHandler, U as EventStreamHandle, Ut as IPathMatcher, V as appendResponseHeaderDirective, Vt as isPath, W as EventStreamOptions, Wt as Path, X as AppContext, Xt as HandlerType, Y as setResponseCacheHeaders, Yt as HandlerSymbol, Z as AppOptions, Zt as DispatcherEvent, _ as getRequestAcceptableLanguages, _t as matchHandlerMethod, a as SmartRouter, an as NextFn, at as LruCache, b as getRequestAcceptableCharset, bt as isWebHandler, c as RequestProtocolOptions, cn as MethodNameLike, ct as isPlugin, d as RequestIpOptions, dn as HTTPErrorInput, dt as PluginInstallFn, en as AppEvent, et as BaseRouterOptions, f as getRequestIP, ft as PluginNotInstalledError, g as getRequestAcceptableLanguage, gt as PluginErrorCode, h as matchRequestContentType, ht as PluginError, i as TrieRouter, in as IAppEvent, it as RouteMatch, j as SendFileContent, jt as CoreHandlerOptions, k as sendRedirect, kt as defineCoreHandler, l as getRequestProtocol, ln as AppError, lt as Plugin, m as getRequestHostName, mt as isPluginError, n as App, nn as AppRequest, nt as ObjectLiteral, o as SmartRouterOptions, on as HeaderName, ot as LruCacheOptions, p as RequestHostNameOptions, pt as PluginInstallError, q as EventStreamMessage, qt as isError, r as buildRoutePathMatcher, rn as AppResponse, rt as Route, s as LinearRouter, sn as MethodName, st as ICache, t as normalizeAppOptions, tn as AppEventCreateContext, tt as IRouter, u as useRequestNegotiator, un as ErrorSymbol, ut as PluginInstallContext, v as getRequestAcceptableEncoding, vt as isHandler, w as getRequestHeader, wt as WebHandlerProvider, x as getRequestAcceptableCharsets, xt as isWebHandlerProvider, y as getRequestAcceptableEncodings, yt as isHandlerOptions, z as setResponseHeaderInline, zt as HandlerBeforeListener } from "./index-lqadk4U6.mjs";
|
|
2
2
|
import { Server, ServerOptions } from "srvx";
|
|
3
3
|
|
|
4
4
|
//#region src/_entries/generic.d.ts
|
|
5
5
|
declare function serve(app: IApp, options?: Omit<ServerOptions, 'fetch'>): Server;
|
|
6
6
|
//#endregion
|
|
7
|
-
export { App, AppContext, AppError, AppEvent, AppEventCreateContext, AppOptions, AppOptionsInput, AppRequest, AppResponse, BaseRouterOptions, CoreHandler, CoreHandlerOptions, DispatcherEvent, ErrorHandler, ErrorHandlerOptions, ErrorSymbol, EventStreamHandle, EventStreamListener, EventStreamMessage, EventStreamOptions, HTTPErrorInput, Handler, HandlerAfterListener, HandlerBaseOptions, HandlerBeforeListener, HandlerErrorListener, HandlerOptions, HandlerSymbol, HandlerType, HeaderName, IApp, IAppEvent, ICache, IDispatcher, IDispatcherEvent, IPathMatcher, IRouter, LinearRouter, LruCache, LruCacheOptions, MethodName, MethodNameLike, NextFn, NodeHandler, NodeMiddleware, ObjectLiteral, Path, PathMatcher, PathMatcherExecResult, PathMatcherOptions, Plugin, PluginError, PluginErrorCode, PluginInstallContext, PluginInstallError, PluginInstallFn, PluginNotInstalledError, RequestHostNameOptions, RequestIpOptions, RequestProtocolOptions, ResponseCacheHeadersOptions, Route, RouteMatch, SendFileContent, SendFileContentOptions, SendFileDisposition, SendFileOptions, SendFileStats, SmartRouter, SmartRouterOptions, TrieRouter, WebHandler, WebHandlerProvider, appendResponseHeader, appendResponseHeaderDirective, buildRoutePathMatcher, createError, createEventStream, defineCoreHandler, defineErrorHandler, fromNodeHandler, fromNodeMiddleware, fromWebHandler, getRequestAcceptableCharset, getRequestAcceptableCharsets, getRequestAcceptableContentType, getRequestAcceptableContentTypes, getRequestAcceptableEncoding, getRequestAcceptableEncodings, getRequestAcceptableLanguage, getRequestAcceptableLanguages, getRequestHeader, getRequestHostName, getRequestIP, getRequestProtocol, isError, isHandler, isHandlerOptions, isPath, isPlugin, isPluginError, isRequestCacheable, isWebHandler, isWebHandlerProvider, matchHandlerMethod, matchRequestContentType, normalizeAppOptions,
|
|
7
|
+
export { App, AppContext, AppError, AppEvent, AppEventCreateContext, AppOptions, AppOptionsInput, AppRequest, AppResponse, BaseRouterOptions, CoreHandler, CoreHandlerOptions, DispatcherEvent, ErrorHandler, ErrorHandlerOptions, ErrorSymbol, EventStreamHandle, EventStreamListener, EventStreamMessage, EventStreamOptions, HTTPErrorInput, Handler, HandlerAfterListener, HandlerBaseOptions, HandlerBeforeListener, HandlerErrorListener, HandlerOptions, HandlerSymbol, HandlerType, HeaderName, IApp, IAppEvent, ICache, IDispatcher, IDispatcherEvent, IPathMatcher, IRouter, LinearRouter, LruCache, LruCacheOptions, MethodName, MethodNameLike, NextFn, NodeHandler, NodeMiddleware, ObjectLiteral, Path, PathMatcher, PathMatcherExecResult, PathMatcherOptions, Plugin, PluginError, PluginErrorCode, PluginInstallContext, PluginInstallError, PluginInstallFn, PluginNotInstalledError, RequestHostNameOptions, RequestIpOptions, RequestProtocolOptions, ResponseCacheHeadersOptions, Route, RouteMatch, SendFileContent, SendFileContentOptions, SendFileDisposition, SendFileOptions, SendFileStats, SmartRouter, SmartRouterOptions, TrieRouter, WebHandler, WebHandlerProvider, appendResponseHeader, appendResponseHeaderDirective, buildRoutePathMatcher, createError, createEventStream, defineCoreHandler, defineErrorHandler, fromNodeHandler, fromNodeMiddleware, fromWebHandler, getRequestAcceptableCharset, getRequestAcceptableCharsets, getRequestAcceptableContentType, getRequestAcceptableContentTypes, getRequestAcceptableEncoding, getRequestAcceptableEncodings, getRequestAcceptableLanguage, getRequestAcceptableLanguages, getRequestHeader, getRequestHostName, getRequestIP, getRequestProtocol, isError, isHandler, isHandlerOptions, isPath, isPlugin, isPluginError, isRequestCacheable, isWebHandler, isWebHandlerProvider, matchHandlerMethod, matchRequestContentType, normalizeAppOptions, sendFile, sendFormat, sendRedirect, sendStream, serializeEventStreamMessage, serve, setResponseCacheHeaders, setResponseContentTypeByFileName, setResponseHeaderAttachment, setResponseHeaderContentType, setResponseHeaderInline, toResponse, useRequestNegotiator };
|
|
8
8
|
//# sourceMappingURL=generic.d.mts.map
|
package/dist/generic.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as
|
|
1
|
+
import { $ as setResponseHeaderInline, A as isWebHandler, B as toResponse, C as getRequestAcceptableCharset, D as isHandler, E as matchHandlerMethod, F as defineCoreHandler, G as sendFormat, H as isError, I as Handler, J as useRequestNegotiator, K as getRequestAcceptableContentType, L as HandlerSymbol, M as fromNodeHandler, N as fromNodeMiddleware, O as isHandlerOptions, P as defineErrorHandler, Q as setResponseHeaderAttachment, R as HandlerType, S as getRequestAcceptableEncodings, T as isRequestCacheable, U as sendStream, V as createError, W as sendRedirect, X as sendFile, Y as getRequestHeader, Z as setResponseHeaderContentType, _ as getRequestHostName, a as LinearRouter, at as AppError, b as getRequestAcceptableLanguages, c as PluginNotInstalledError, ct as AppEvent, d as isPluginError, dt as LruCache, et as setResponseContentTypeByFileName, f as PluginErrorCode, g as getRequestIP, h as getRequestProtocol, i as TrieRouter, it as serializeEventStreamMessage, j as isWebHandlerProvider, k as fromWebHandler, l as PluginInstallError, lt as HeaderName, m as PathMatcher, n as normalizeAppOptions, nt as appendResponseHeaderDirective, o as buildRoutePathMatcher, ot as ErrorSymbol, p as isPath, q as getRequestAcceptableContentTypes, r as SmartRouter, rt as createEventStream, s as isPlugin, st as setResponseCacheHeaders, t as App, tt as appendResponseHeader, u as PluginError, ut as MethodName, v as matchRequestContentType, w as getRequestAcceptableCharsets, x as getRequestAcceptableEncoding, y as getRequestAcceptableLanguage, z as DispatcherEvent } from "./src-CA6xFXqy.mjs";
|
|
2
2
|
import { serve as serve$1 } from "srvx/generic";
|
|
3
3
|
//#region src/_entries/generic.ts
|
|
4
4
|
function serve(app, options) {
|
|
@@ -8,6 +8,6 @@ function serve(app, options) {
|
|
|
8
8
|
});
|
|
9
9
|
}
|
|
10
10
|
//#endregion
|
|
11
|
-
export { App, AppError, AppEvent, DispatcherEvent, ErrorSymbol, Handler, HandlerSymbol, HandlerType, HeaderName, LinearRouter, LruCache, MethodName, PathMatcher, PluginError, PluginErrorCode, PluginInstallError, PluginNotInstalledError, SmartRouter, TrieRouter, appendResponseHeader, appendResponseHeaderDirective, buildRoutePathMatcher, createError, createEventStream, defineCoreHandler, defineErrorHandler, fromNodeHandler, fromNodeMiddleware, fromWebHandler, getRequestAcceptableCharset, getRequestAcceptableCharsets, getRequestAcceptableContentType, getRequestAcceptableContentTypes, getRequestAcceptableEncoding, getRequestAcceptableEncodings, getRequestAcceptableLanguage, getRequestAcceptableLanguages, getRequestHeader, getRequestHostName, getRequestIP, getRequestProtocol, isError, isHandler, isHandlerOptions, isPath, isPlugin, isPluginError, isRequestCacheable, isWebHandler, isWebHandlerProvider, matchHandlerMethod, matchRequestContentType, normalizeAppOptions,
|
|
11
|
+
export { App, AppError, AppEvent, DispatcherEvent, ErrorSymbol, Handler, HandlerSymbol, HandlerType, HeaderName, LinearRouter, LruCache, MethodName, PathMatcher, PluginError, PluginErrorCode, PluginInstallError, PluginNotInstalledError, SmartRouter, TrieRouter, appendResponseHeader, appendResponseHeaderDirective, buildRoutePathMatcher, createError, createEventStream, defineCoreHandler, defineErrorHandler, fromNodeHandler, fromNodeMiddleware, fromWebHandler, getRequestAcceptableCharset, getRequestAcceptableCharsets, getRequestAcceptableContentType, getRequestAcceptableContentTypes, getRequestAcceptableEncoding, getRequestAcceptableEncodings, getRequestAcceptableLanguage, getRequestAcceptableLanguages, getRequestHeader, getRequestHostName, getRequestIP, getRequestProtocol, isError, isHandler, isHandlerOptions, isPath, isPlugin, isPluginError, isRequestCacheable, isWebHandler, isWebHandlerProvider, matchHandlerMethod, matchRequestContentType, normalizeAppOptions, sendFile, sendFormat, sendRedirect, sendStream, serializeEventStreamMessage, serve, setResponseCacheHeaders, setResponseContentTypeByFileName, setResponseHeaderAttachment, setResponseHeaderContentType, setResponseHeaderInline, toResponse, useRequestNegotiator };
|
|
12
12
|
|
|
13
13
|
//# sourceMappingURL=generic.mjs.map
|
|
@@ -1270,12 +1270,6 @@ declare function setResponseHeaderInline(event: IAppEvent, filename?: string): v
|
|
|
1270
1270
|
//#region src/response/helpers/header-content-type.d.ts
|
|
1271
1271
|
declare function setResponseHeaderContentType(event: IAppEvent, input: string, ifNotExists?: boolean): void;
|
|
1272
1272
|
//#endregion
|
|
1273
|
-
//#region src/response/helpers/send-accepted.d.ts
|
|
1274
|
-
declare function sendAccepted(event: IAppEvent, data?: unknown): Promise<Response>;
|
|
1275
|
-
//#endregion
|
|
1276
|
-
//#region src/response/helpers/send-created.d.ts
|
|
1277
|
-
declare function sendCreated(event: IAppEvent, data?: unknown): Promise<Response>;
|
|
1278
|
-
//#endregion
|
|
1279
1273
|
//#region src/response/helpers/send-file.d.ts
|
|
1280
1274
|
type SendFileContentOptions = {
|
|
1281
1275
|
end?: number;
|
|
@@ -1812,8 +1806,16 @@ declare class App implements IApp {
|
|
|
1812
1806
|
* Walk the matched routes for the current event, dispatching each
|
|
1813
1807
|
* handler in order. Re-entered (recursively) from the `setNext`
|
|
1814
1808
|
* continuation so `event.next()` resumes from the next match.
|
|
1815
|
-
|
|
1816
|
-
|
|
1809
|
+
*
|
|
1810
|
+
* The match list is captured once per dispatch — there is no
|
|
1811
|
+
* mid-walk path-rewrite refresh. `IAppEvent.path` is a snapshot
|
|
1812
|
+
* on the handler's facade event (see `event/module.ts`), so user
|
|
1813
|
+
* middleware cannot mutate the dispatcher's path before calling
|
|
1814
|
+
* `event.next()`. If a future API surface lets middleware rewrite
|
|
1815
|
+
* paths end-to-end, this loop will need a per-call refresh + a
|
|
1816
|
+
* `methodsAllowed` reset (see closed issue #913).
|
|
1817
|
+
*/
|
|
1818
|
+
protected runMatches(event: IDispatcherEvent, matches: readonly RouteMatch<Handler>[], startIndex: number): Promise<Response | undefined>;
|
|
1817
1819
|
delete(...handlers: (Handler | HandlerOptions)[]): this;
|
|
1818
1820
|
delete(path: Path, ...handlers: (Handler | HandlerOptions)[]): this;
|
|
1819
1821
|
get(...handlers: (Handler | HandlerOptions)[]): this;
|
|
@@ -1887,5 +1889,5 @@ declare class App implements IApp {
|
|
|
1887
1889
|
//#region src/app/options.d.ts
|
|
1888
1890
|
declare function normalizeAppOptions(input: AppOptionsInput): AppOptions;
|
|
1889
1891
|
//#endregion
|
|
1890
|
-
export {
|
|
1891
|
-
//# sourceMappingURL=index-
|
|
1892
|
+
export { IApp as $, IDispatcherEvent as $t, sendFormat as A, CoreHandler as At, appendResponseHeader as B, HandlerErrorListener as Bt, getRequestAcceptableContentTypes as C, WebHandler as Ct, setResponseContentTypeByFileName as D, NodeHandler as Dt, toResponse as E, fromNodeMiddleware as Et, SendFileStats as F, ErrorHandler as Ft, createEventStream as G, PathMatcherExecResult as Gt, serializeEventStreamMessage as H, PathMatcher as Ht, sendFile as I, ErrorHandlerOptions as It, ResponseCacheHeadersOptions as J, createError as Jt, EventStreamListener as K, PathMatcherOptions as Kt, setResponseHeaderContentType as L, HandlerAfterListener as Lt, SendFileContentOptions as M, Handler as Mt, SendFileDisposition as N, HandlerOptions as Nt, sendStream as O, NodeMiddleware as Ot, SendFileOptions as P, defineErrorHandler as Pt, AppOptionsInput as Q, IDispatcher as Qt, setResponseHeaderAttachment as R, HandlerBaseOptions as Rt, getRequestAcceptableContentType as S, fromWebHandler as St, isRequestCacheable as T, fromNodeHandler as Tt, EventStreamHandle as U, IPathMatcher as Ut, appendResponseHeaderDirective as V, isPath as Vt, EventStreamOptions as W, Path as Wt, AppContext as X, HandlerType as Xt, setResponseCacheHeaders as Y, HandlerSymbol as Yt, AppOptions as Z, DispatcherEvent as Zt, getRequestAcceptableLanguages as _, matchHandlerMethod as _t, SmartRouter as a, NextFn as an, LruCache as at, getRequestAcceptableCharset as b, isWebHandler as bt, RequestProtocolOptions as c, MethodNameLike as cn, isPlugin as ct, RequestIpOptions as d, HTTPErrorInput$1 as dn, PluginInstallFn as dt, AppEvent as en, BaseRouterOptions as et, getRequestIP as f, PluginNotInstalledError as ft, getRequestAcceptableLanguage as g, PluginErrorCode as gt, matchRequestContentType as h, PluginError as ht, TrieRouter as i, IAppEvent as in, RouteMatch as it, SendFileContent as j, CoreHandlerOptions as jt, sendRedirect as k, defineCoreHandler as kt, getRequestProtocol as l, AppError as ln, Plugin as lt, getRequestHostName as m, isPluginError as mt, App as n, AppRequest as nn, ObjectLiteral as nt, SmartRouterOptions as o, HeaderName as on, LruCacheOptions as ot, RequestHostNameOptions as p, PluginInstallError as pt, EventStreamMessage as q, isError as qt, buildRoutePathMatcher as r, AppResponse as rn, Route as rt, LinearRouter as s, MethodName as sn, ICache as st, normalizeAppOptions as t, AppEventCreateContext as tn, IRouter as tt, useRequestNegotiator as u, ErrorSymbol as un, PluginInstallContext as ut, getRequestAcceptableEncoding as v, isHandler as vt, getRequestHeader as w, WebHandlerProvider as wt, getRequestAcceptableCharsets as x, isWebHandlerProvider as xt, getRequestAcceptableEncodings as y, isHandlerOptions as yt, setResponseHeaderInline as z, HandlerBeforeListener as zt };
|
|
1893
|
+
//# sourceMappingURL=index-lqadk4U6.d.mts.map
|
package/dist/node.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as
|
|
1
|
+
import { $ as IApp, $t as IDispatcherEvent, A as sendFormat, At as CoreHandler, B as appendResponseHeader, Bt as HandlerErrorListener, C as getRequestAcceptableContentTypes, Ct as WebHandler, D as setResponseContentTypeByFileName, Dt as NodeHandler, E as toResponse, Et as fromNodeMiddleware, F as SendFileStats, Ft as ErrorHandler, G as createEventStream, Gt as PathMatcherExecResult, H as serializeEventStreamMessage, Ht as PathMatcher, I as sendFile, It as ErrorHandlerOptions, J as ResponseCacheHeadersOptions, Jt as createError, K as EventStreamListener, Kt as PathMatcherOptions, L as setResponseHeaderContentType, Lt as HandlerAfterListener, M as SendFileContentOptions, Mt as Handler, N as SendFileDisposition, Nt as HandlerOptions, O as sendStream, Ot as NodeMiddleware, P as SendFileOptions, Pt as defineErrorHandler, Q as AppOptionsInput, Qt as IDispatcher, R as setResponseHeaderAttachment, Rt as HandlerBaseOptions, S as getRequestAcceptableContentType, St as fromWebHandler, T as isRequestCacheable, Tt as fromNodeHandler, U as EventStreamHandle, Ut as IPathMatcher, V as appendResponseHeaderDirective, Vt as isPath, W as EventStreamOptions, Wt as Path, X as AppContext, Xt as HandlerType, Y as setResponseCacheHeaders, Yt as HandlerSymbol, Z as AppOptions, Zt as DispatcherEvent, _ as getRequestAcceptableLanguages, _t as matchHandlerMethod, a as SmartRouter, an as NextFn, at as LruCache, b as getRequestAcceptableCharset, bt as isWebHandler, c as RequestProtocolOptions, cn as MethodNameLike, ct as isPlugin, d as RequestIpOptions, dn as HTTPErrorInput, dt as PluginInstallFn, en as AppEvent, et as BaseRouterOptions, f as getRequestIP, ft as PluginNotInstalledError, g as getRequestAcceptableLanguage, gt as PluginErrorCode, h as matchRequestContentType, ht as PluginError, i as TrieRouter, in as IAppEvent, it as RouteMatch, j as SendFileContent, jt as CoreHandlerOptions, k as sendRedirect, kt as defineCoreHandler, l as getRequestProtocol, ln as AppError, lt as Plugin, m as getRequestHostName, mt as isPluginError, n as App, nn as AppRequest, nt as ObjectLiteral, o as SmartRouterOptions, on as HeaderName, ot as LruCacheOptions, p as RequestHostNameOptions, pt as PluginInstallError, q as EventStreamMessage, qt as isError, r as buildRoutePathMatcher, rn as AppResponse, rt as Route, s as LinearRouter, sn as MethodName, st as ICache, t as normalizeAppOptions, tn as AppEventCreateContext, tt as IRouter, u as useRequestNegotiator, un as ErrorSymbol, ut as PluginInstallContext, v as getRequestAcceptableEncoding, vt as isHandler, w as getRequestHeader, wt as WebHandlerProvider, x as getRequestAcceptableCharsets, xt as isWebHandlerProvider, y as getRequestAcceptableEncodings, yt as isHandlerOptions, z as setResponseHeaderInline, zt as HandlerBeforeListener } from "./index-lqadk4U6.mjs";
|
|
2
2
|
import * as _$srvx_node0 from "srvx/node";
|
|
3
3
|
import * as _$srvx from "srvx";
|
|
4
4
|
import { Server, ServerOptions } from "srvx";
|
|
@@ -7,5 +7,5 @@ import { Server, ServerOptions } from "srvx";
|
|
|
7
7
|
declare function serve(app: IApp, options?: Omit<ServerOptions, 'fetch'>): Server;
|
|
8
8
|
declare function toNodeHandler(app: IApp): _$srvx.NodeHttpHandler & _$srvx_node0.AdapterMeta;
|
|
9
9
|
//#endregion
|
|
10
|
-
export { App, AppContext, AppError, AppEvent, AppEventCreateContext, AppOptions, AppOptionsInput, AppRequest, AppResponse, BaseRouterOptions, CoreHandler, CoreHandlerOptions, DispatcherEvent, ErrorHandler, ErrorHandlerOptions, ErrorSymbol, EventStreamHandle, EventStreamListener, EventStreamMessage, EventStreamOptions, HTTPErrorInput, Handler, HandlerAfterListener, HandlerBaseOptions, HandlerBeforeListener, HandlerErrorListener, HandlerOptions, HandlerSymbol, HandlerType, HeaderName, IApp, IAppEvent, ICache, IDispatcher, IDispatcherEvent, IPathMatcher, IRouter, LinearRouter, LruCache, LruCacheOptions, MethodName, MethodNameLike, NextFn, NodeHandler, NodeMiddleware, ObjectLiteral, Path, PathMatcher, PathMatcherExecResult, PathMatcherOptions, Plugin, PluginError, PluginErrorCode, PluginInstallContext, PluginInstallError, PluginInstallFn, PluginNotInstalledError, RequestHostNameOptions, RequestIpOptions, RequestProtocolOptions, ResponseCacheHeadersOptions, Route, RouteMatch, SendFileContent, SendFileContentOptions, SendFileDisposition, SendFileOptions, SendFileStats, SmartRouter, SmartRouterOptions, TrieRouter, WebHandler, WebHandlerProvider, appendResponseHeader, appendResponseHeaderDirective, buildRoutePathMatcher, createError, createEventStream, defineCoreHandler, defineErrorHandler, fromNodeHandler, fromNodeMiddleware, fromWebHandler, getRequestAcceptableCharset, getRequestAcceptableCharsets, getRequestAcceptableContentType, getRequestAcceptableContentTypes, getRequestAcceptableEncoding, getRequestAcceptableEncodings, getRequestAcceptableLanguage, getRequestAcceptableLanguages, getRequestHeader, getRequestHostName, getRequestIP, getRequestProtocol, isError, isHandler, isHandlerOptions, isPath, isPlugin, isPluginError, isRequestCacheable, isWebHandler, isWebHandlerProvider, matchHandlerMethod, matchRequestContentType, normalizeAppOptions,
|
|
10
|
+
export { App, AppContext, AppError, AppEvent, AppEventCreateContext, AppOptions, AppOptionsInput, AppRequest, AppResponse, BaseRouterOptions, CoreHandler, CoreHandlerOptions, DispatcherEvent, ErrorHandler, ErrorHandlerOptions, ErrorSymbol, EventStreamHandle, EventStreamListener, EventStreamMessage, EventStreamOptions, HTTPErrorInput, Handler, HandlerAfterListener, HandlerBaseOptions, HandlerBeforeListener, HandlerErrorListener, HandlerOptions, HandlerSymbol, HandlerType, HeaderName, IApp, IAppEvent, ICache, IDispatcher, IDispatcherEvent, IPathMatcher, IRouter, LinearRouter, LruCache, LruCacheOptions, MethodName, MethodNameLike, NextFn, NodeHandler, NodeMiddleware, ObjectLiteral, Path, PathMatcher, PathMatcherExecResult, PathMatcherOptions, Plugin, PluginError, PluginErrorCode, PluginInstallContext, PluginInstallError, PluginInstallFn, PluginNotInstalledError, RequestHostNameOptions, RequestIpOptions, RequestProtocolOptions, ResponseCacheHeadersOptions, Route, RouteMatch, SendFileContent, SendFileContentOptions, SendFileDisposition, SendFileOptions, SendFileStats, SmartRouter, SmartRouterOptions, TrieRouter, WebHandler, WebHandlerProvider, appendResponseHeader, appendResponseHeaderDirective, buildRoutePathMatcher, createError, createEventStream, defineCoreHandler, defineErrorHandler, fromNodeHandler, fromNodeMiddleware, fromWebHandler, getRequestAcceptableCharset, getRequestAcceptableCharsets, getRequestAcceptableContentType, getRequestAcceptableContentTypes, getRequestAcceptableEncoding, getRequestAcceptableEncodings, getRequestAcceptableLanguage, getRequestAcceptableLanguages, getRequestHeader, getRequestHostName, getRequestIP, getRequestProtocol, isError, isHandler, isHandlerOptions, isPath, isPlugin, isPluginError, isRequestCacheable, isWebHandler, isWebHandlerProvider, matchHandlerMethod, matchRequestContentType, normalizeAppOptions, sendFile, sendFormat, sendRedirect, sendStream, serializeEventStreamMessage, serve, setResponseCacheHeaders, setResponseContentTypeByFileName, setResponseHeaderAttachment, setResponseHeaderContentType, setResponseHeaderInline, toNodeHandler, toResponse, useRequestNegotiator };
|
|
11
11
|
//# sourceMappingURL=node.d.mts.map
|
package/dist/node.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as
|
|
1
|
+
import { $ as setResponseHeaderInline, A as isWebHandler, B as toResponse, C as getRequestAcceptableCharset, D as isHandler, E as matchHandlerMethod, F as defineCoreHandler, G as sendFormat, H as isError, I as Handler, J as useRequestNegotiator, K as getRequestAcceptableContentType, L as HandlerSymbol, M as fromNodeHandler, N as fromNodeMiddleware, O as isHandlerOptions, P as defineErrorHandler, Q as setResponseHeaderAttachment, R as HandlerType, S as getRequestAcceptableEncodings, T as isRequestCacheable, U as sendStream, V as createError, W as sendRedirect, X as sendFile, Y as getRequestHeader, Z as setResponseHeaderContentType, _ as getRequestHostName, a as LinearRouter, at as AppError, b as getRequestAcceptableLanguages, c as PluginNotInstalledError, ct as AppEvent, d as isPluginError, dt as LruCache, et as setResponseContentTypeByFileName, f as PluginErrorCode, g as getRequestIP, h as getRequestProtocol, i as TrieRouter, it as serializeEventStreamMessage, j as isWebHandlerProvider, k as fromWebHandler, l as PluginInstallError, lt as HeaderName, m as PathMatcher, n as normalizeAppOptions, nt as appendResponseHeaderDirective, o as buildRoutePathMatcher, ot as ErrorSymbol, p as isPath, q as getRequestAcceptableContentTypes, r as SmartRouter, rt as createEventStream, s as isPlugin, st as setResponseCacheHeaders, t as App, tt as appendResponseHeader, u as PluginError, ut as MethodName, v as matchRequestContentType, w as getRequestAcceptableCharsets, x as getRequestAcceptableEncoding, y as getRequestAcceptableLanguage, z as DispatcherEvent } from "./src-CA6xFXqy.mjs";
|
|
2
2
|
import { serve as serve$1, toNodeHandler as toNodeHandler$1 } from "srvx/node";
|
|
3
3
|
//#region src/_entries/node.ts
|
|
4
4
|
function serve(app, options) {
|
|
@@ -11,6 +11,6 @@ function toNodeHandler(app) {
|
|
|
11
11
|
return toNodeHandler$1(app.fetch.bind(app));
|
|
12
12
|
}
|
|
13
13
|
//#endregion
|
|
14
|
-
export { App, AppError, AppEvent, DispatcherEvent, ErrorSymbol, Handler, HandlerSymbol, HandlerType, HeaderName, LinearRouter, LruCache, MethodName, PathMatcher, PluginError, PluginErrorCode, PluginInstallError, PluginNotInstalledError, SmartRouter, TrieRouter, appendResponseHeader, appendResponseHeaderDirective, buildRoutePathMatcher, createError, createEventStream, defineCoreHandler, defineErrorHandler, fromNodeHandler, fromNodeMiddleware, fromWebHandler, getRequestAcceptableCharset, getRequestAcceptableCharsets, getRequestAcceptableContentType, getRequestAcceptableContentTypes, getRequestAcceptableEncoding, getRequestAcceptableEncodings, getRequestAcceptableLanguage, getRequestAcceptableLanguages, getRequestHeader, getRequestHostName, getRequestIP, getRequestProtocol, isError, isHandler, isHandlerOptions, isPath, isPlugin, isPluginError, isRequestCacheable, isWebHandler, isWebHandlerProvider, matchHandlerMethod, matchRequestContentType, normalizeAppOptions,
|
|
14
|
+
export { App, AppError, AppEvent, DispatcherEvent, ErrorSymbol, Handler, HandlerSymbol, HandlerType, HeaderName, LinearRouter, LruCache, MethodName, PathMatcher, PluginError, PluginErrorCode, PluginInstallError, PluginNotInstalledError, SmartRouter, TrieRouter, appendResponseHeader, appendResponseHeaderDirective, buildRoutePathMatcher, createError, createEventStream, defineCoreHandler, defineErrorHandler, fromNodeHandler, fromNodeMiddleware, fromWebHandler, getRequestAcceptableCharset, getRequestAcceptableCharsets, getRequestAcceptableContentType, getRequestAcceptableContentTypes, getRequestAcceptableEncoding, getRequestAcceptableEncodings, getRequestAcceptableLanguage, getRequestAcceptableLanguages, getRequestHeader, getRequestHostName, getRequestIP, getRequestProtocol, isError, isHandler, isHandlerOptions, isPath, isPlugin, isPluginError, isRequestCacheable, isWebHandler, isWebHandlerProvider, matchHandlerMethod, matchRequestContentType, normalizeAppOptions, sendFile, sendFormat, sendRedirect, sendStream, serializeEventStreamMessage, serve, setResponseCacheHeaders, setResponseContentTypeByFileName, setResponseHeaderAttachment, setResponseHeaderContentType, setResponseHeaderInline, toNodeHandler, toResponse, useRequestNegotiator };
|
|
15
15
|
|
|
16
16
|
//# sourceMappingURL=node.mjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as
|
|
1
|
+
import { $ as IApp, $t as IDispatcherEvent, A as sendFormat, At as CoreHandler, B as appendResponseHeader, Bt as HandlerErrorListener, C as getRequestAcceptableContentTypes, Ct as WebHandler, D as setResponseContentTypeByFileName, Dt as NodeHandler, E as toResponse, Et as fromNodeMiddleware, F as SendFileStats, Ft as ErrorHandler, G as createEventStream, Gt as PathMatcherExecResult, H as serializeEventStreamMessage, Ht as PathMatcher, I as sendFile, It as ErrorHandlerOptions, J as ResponseCacheHeadersOptions, Jt as createError, K as EventStreamListener, Kt as PathMatcherOptions, L as setResponseHeaderContentType, Lt as HandlerAfterListener, M as SendFileContentOptions, Mt as Handler, N as SendFileDisposition, Nt as HandlerOptions, O as sendStream, Ot as NodeMiddleware, P as SendFileOptions, Pt as defineErrorHandler, Q as AppOptionsInput, Qt as IDispatcher, R as setResponseHeaderAttachment, Rt as HandlerBaseOptions, S as getRequestAcceptableContentType, St as fromWebHandler, T as isRequestCacheable, Tt as fromNodeHandler, U as EventStreamHandle, Ut as IPathMatcher, V as appendResponseHeaderDirective, Vt as isPath, W as EventStreamOptions, Wt as Path, X as AppContext, Xt as HandlerType, Y as setResponseCacheHeaders, Yt as HandlerSymbol, Z as AppOptions, Zt as DispatcherEvent, _ as getRequestAcceptableLanguages, _t as matchHandlerMethod, a as SmartRouter, an as NextFn, at as LruCache, b as getRequestAcceptableCharset, bt as isWebHandler, c as RequestProtocolOptions, cn as MethodNameLike, ct as isPlugin, d as RequestIpOptions, dn as HTTPErrorInput, dt as PluginInstallFn, en as AppEvent, et as BaseRouterOptions, f as getRequestIP, ft as PluginNotInstalledError, g as getRequestAcceptableLanguage, gt as PluginErrorCode, h as matchRequestContentType, ht as PluginError, i as TrieRouter, in as IAppEvent, it as RouteMatch, j as SendFileContent, jt as CoreHandlerOptions, k as sendRedirect, kt as defineCoreHandler, l as getRequestProtocol, ln as AppError, lt as Plugin, m as getRequestHostName, mt as isPluginError, n as App, nn as AppRequest, nt as ObjectLiteral, o as SmartRouterOptions, on as HeaderName, ot as LruCacheOptions, p as RequestHostNameOptions, pt as PluginInstallError, q as EventStreamMessage, qt as isError, r as buildRoutePathMatcher, rn as AppResponse, rt as Route, s as LinearRouter, sn as MethodName, st as ICache, t as normalizeAppOptions, tn as AppEventCreateContext, tt as IRouter, u as useRequestNegotiator, un as ErrorSymbol, ut as PluginInstallContext, v as getRequestAcceptableEncoding, vt as isHandler, w as getRequestHeader, wt as WebHandlerProvider, x as getRequestAcceptableCharsets, xt as isWebHandlerProvider, y as getRequestAcceptableEncodings, yt as isHandlerOptions, z as setResponseHeaderInline, zt as HandlerBeforeListener } from "./index-lqadk4U6.mjs";
|
|
2
2
|
import * as _$srvx from "srvx";
|
|
3
3
|
import { ServerOptions } from "srvx";
|
|
4
4
|
import * as _$srvx_service_worker0 from "srvx/service-worker";
|
|
@@ -6,5 +6,5 @@ import * as _$srvx_service_worker0 from "srvx/service-worker";
|
|
|
6
6
|
//#region src/_entries/service-worker.d.ts
|
|
7
7
|
declare function serve(app: IApp, options?: Omit<ServerOptions, 'fetch'>): _$srvx.Server<_$srvx_service_worker0.ServiceWorkerHandler>;
|
|
8
8
|
//#endregion
|
|
9
|
-
export { App, AppContext, AppError, AppEvent, AppEventCreateContext, AppOptions, AppOptionsInput, AppRequest, AppResponse, BaseRouterOptions, CoreHandler, CoreHandlerOptions, DispatcherEvent, ErrorHandler, ErrorHandlerOptions, ErrorSymbol, EventStreamHandle, EventStreamListener, EventStreamMessage, EventStreamOptions, HTTPErrorInput, Handler, HandlerAfterListener, HandlerBaseOptions, HandlerBeforeListener, HandlerErrorListener, HandlerOptions, HandlerSymbol, HandlerType, HeaderName, IApp, IAppEvent, ICache, IDispatcher, IDispatcherEvent, IPathMatcher, IRouter, LinearRouter, LruCache, LruCacheOptions, MethodName, MethodNameLike, NextFn, NodeHandler, NodeMiddleware, ObjectLiteral, Path, PathMatcher, PathMatcherExecResult, PathMatcherOptions, Plugin, PluginError, PluginErrorCode, PluginInstallContext, PluginInstallError, PluginInstallFn, PluginNotInstalledError, RequestHostNameOptions, RequestIpOptions, RequestProtocolOptions, ResponseCacheHeadersOptions, Route, RouteMatch, SendFileContent, SendFileContentOptions, SendFileDisposition, SendFileOptions, SendFileStats, SmartRouter, SmartRouterOptions, TrieRouter, WebHandler, WebHandlerProvider, appendResponseHeader, appendResponseHeaderDirective, buildRoutePathMatcher, createError, createEventStream, defineCoreHandler, defineErrorHandler, fromNodeHandler, fromNodeMiddleware, fromWebHandler, getRequestAcceptableCharset, getRequestAcceptableCharsets, getRequestAcceptableContentType, getRequestAcceptableContentTypes, getRequestAcceptableEncoding, getRequestAcceptableEncodings, getRequestAcceptableLanguage, getRequestAcceptableLanguages, getRequestHeader, getRequestHostName, getRequestIP, getRequestProtocol, isError, isHandler, isHandlerOptions, isPath, isPlugin, isPluginError, isRequestCacheable, isWebHandler, isWebHandlerProvider, matchHandlerMethod, matchRequestContentType, normalizeAppOptions,
|
|
9
|
+
export { App, AppContext, AppError, AppEvent, AppEventCreateContext, AppOptions, AppOptionsInput, AppRequest, AppResponse, BaseRouterOptions, CoreHandler, CoreHandlerOptions, DispatcherEvent, ErrorHandler, ErrorHandlerOptions, ErrorSymbol, EventStreamHandle, EventStreamListener, EventStreamMessage, EventStreamOptions, HTTPErrorInput, Handler, HandlerAfterListener, HandlerBaseOptions, HandlerBeforeListener, HandlerErrorListener, HandlerOptions, HandlerSymbol, HandlerType, HeaderName, IApp, IAppEvent, ICache, IDispatcher, IDispatcherEvent, IPathMatcher, IRouter, LinearRouter, LruCache, LruCacheOptions, MethodName, MethodNameLike, NextFn, NodeHandler, NodeMiddleware, ObjectLiteral, Path, PathMatcher, PathMatcherExecResult, PathMatcherOptions, Plugin, PluginError, PluginErrorCode, PluginInstallContext, PluginInstallError, PluginInstallFn, PluginNotInstalledError, RequestHostNameOptions, RequestIpOptions, RequestProtocolOptions, ResponseCacheHeadersOptions, Route, RouteMatch, SendFileContent, SendFileContentOptions, SendFileDisposition, SendFileOptions, SendFileStats, SmartRouter, SmartRouterOptions, TrieRouter, WebHandler, WebHandlerProvider, appendResponseHeader, appendResponseHeaderDirective, buildRoutePathMatcher, createError, createEventStream, defineCoreHandler, defineErrorHandler, fromNodeHandler, fromNodeMiddleware, fromWebHandler, getRequestAcceptableCharset, getRequestAcceptableCharsets, getRequestAcceptableContentType, getRequestAcceptableContentTypes, getRequestAcceptableEncoding, getRequestAcceptableEncodings, getRequestAcceptableLanguage, getRequestAcceptableLanguages, getRequestHeader, getRequestHostName, getRequestIP, getRequestProtocol, isError, isHandler, isHandlerOptions, isPath, isPlugin, isPluginError, isRequestCacheable, isWebHandler, isWebHandlerProvider, matchHandlerMethod, matchRequestContentType, normalizeAppOptions, sendFile, sendFormat, sendRedirect, sendStream, serializeEventStreamMessage, serve, setResponseCacheHeaders, setResponseContentTypeByFileName, setResponseHeaderAttachment, setResponseHeaderContentType, setResponseHeaderInline, toResponse, useRequestNegotiator };
|
|
10
10
|
//# sourceMappingURL=service-worker.d.mts.map
|
package/dist/service-worker.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as
|
|
1
|
+
import { $ as setResponseHeaderInline, A as isWebHandler, B as toResponse, C as getRequestAcceptableCharset, D as isHandler, E as matchHandlerMethod, F as defineCoreHandler, G as sendFormat, H as isError, I as Handler, J as useRequestNegotiator, K as getRequestAcceptableContentType, L as HandlerSymbol, M as fromNodeHandler, N as fromNodeMiddleware, O as isHandlerOptions, P as defineErrorHandler, Q as setResponseHeaderAttachment, R as HandlerType, S as getRequestAcceptableEncodings, T as isRequestCacheable, U as sendStream, V as createError, W as sendRedirect, X as sendFile, Y as getRequestHeader, Z as setResponseHeaderContentType, _ as getRequestHostName, a as LinearRouter, at as AppError, b as getRequestAcceptableLanguages, c as PluginNotInstalledError, ct as AppEvent, d as isPluginError, dt as LruCache, et as setResponseContentTypeByFileName, f as PluginErrorCode, g as getRequestIP, h as getRequestProtocol, i as TrieRouter, it as serializeEventStreamMessage, j as isWebHandlerProvider, k as fromWebHandler, l as PluginInstallError, lt as HeaderName, m as PathMatcher, n as normalizeAppOptions, nt as appendResponseHeaderDirective, o as buildRoutePathMatcher, ot as ErrorSymbol, p as isPath, q as getRequestAcceptableContentTypes, r as SmartRouter, rt as createEventStream, s as isPlugin, st as setResponseCacheHeaders, t as App, tt as appendResponseHeader, u as PluginError, ut as MethodName, v as matchRequestContentType, w as getRequestAcceptableCharsets, x as getRequestAcceptableEncoding, y as getRequestAcceptableLanguage, z as DispatcherEvent } from "./src-CA6xFXqy.mjs";
|
|
2
2
|
import { serve as serve$1 } from "srvx/service-worker";
|
|
3
3
|
//#region src/_entries/service-worker.ts
|
|
4
4
|
function serve(app, options) {
|
|
@@ -8,6 +8,6 @@ function serve(app, options) {
|
|
|
8
8
|
});
|
|
9
9
|
}
|
|
10
10
|
//#endregion
|
|
11
|
-
export { App, AppError, AppEvent, DispatcherEvent, ErrorSymbol, Handler, HandlerSymbol, HandlerType, HeaderName, LinearRouter, LruCache, MethodName, PathMatcher, PluginError, PluginErrorCode, PluginInstallError, PluginNotInstalledError, SmartRouter, TrieRouter, appendResponseHeader, appendResponseHeaderDirective, buildRoutePathMatcher, createError, createEventStream, defineCoreHandler, defineErrorHandler, fromNodeHandler, fromNodeMiddleware, fromWebHandler, getRequestAcceptableCharset, getRequestAcceptableCharsets, getRequestAcceptableContentType, getRequestAcceptableContentTypes, getRequestAcceptableEncoding, getRequestAcceptableEncodings, getRequestAcceptableLanguage, getRequestAcceptableLanguages, getRequestHeader, getRequestHostName, getRequestIP, getRequestProtocol, isError, isHandler, isHandlerOptions, isPath, isPlugin, isPluginError, isRequestCacheable, isWebHandler, isWebHandlerProvider, matchHandlerMethod, matchRequestContentType, normalizeAppOptions,
|
|
11
|
+
export { App, AppError, AppEvent, DispatcherEvent, ErrorSymbol, Handler, HandlerSymbol, HandlerType, HeaderName, LinearRouter, LruCache, MethodName, PathMatcher, PluginError, PluginErrorCode, PluginInstallError, PluginNotInstalledError, SmartRouter, TrieRouter, appendResponseHeader, appendResponseHeaderDirective, buildRoutePathMatcher, createError, createEventStream, defineCoreHandler, defineErrorHandler, fromNodeHandler, fromNodeMiddleware, fromWebHandler, getRequestAcceptableCharset, getRequestAcceptableCharsets, getRequestAcceptableContentType, getRequestAcceptableContentTypes, getRequestAcceptableEncoding, getRequestAcceptableEncodings, getRequestAcceptableLanguage, getRequestAcceptableLanguages, getRequestHeader, getRequestHostName, getRequestIP, getRequestProtocol, isError, isHandler, isHandlerOptions, isPath, isPlugin, isPluginError, isRequestCacheable, isWebHandler, isWebHandlerProvider, matchHandlerMethod, matchRequestContentType, normalizeAppOptions, sendFile, sendFormat, sendRedirect, sendStream, serializeEventStreamMessage, serve, setResponseCacheHeaders, setResponseContentTypeByFileName, setResponseHeaderAttachment, setResponseHeaderContentType, setResponseHeaderInline, toResponse, useRequestNegotiator };
|
|
12
12
|
|
|
13
13
|
//# sourceMappingURL=service-worker.mjs.map
|