routup 6.0.0-beta.1 → 6.0.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bun.d.mts +2 -2
- package/dist/bun.mjs +1 -1
- package/dist/cloudflare.d.mts +2 -2
- package/dist/cloudflare.mjs +1 -1
- package/dist/deno.d.mts +2 -2
- package/dist/deno.mjs +1 -1
- package/dist/generic.d.mts +2 -2
- package/dist/generic.mjs +1 -1
- package/dist/{index-B80OpXdo.d.mts → index-6qjxyFZh.d.mts} +13 -102
- package/dist/node.d.mts +2 -2
- package/dist/node.mjs +1 -1
- package/dist/service-worker.d.mts +2 -2
- package/dist/service-worker.mjs +1 -1
- package/dist/{src-DaK6SZc0.mjs → src-BfsqxIfL.mjs} +11 -50
- package/dist/src-BfsqxIfL.mjs.map +1 -0
- package/package.json +1 -1
- package/dist/src-DaK6SZc0.mjs.map +0 -1
package/dist/bun.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { $ as AppOptions, $t as
|
|
1
|
+
import { $ as AppOptions, $t as HandlerType, A as sendFormat, At as NodeHandler, B as setResponseHeaderAttachment, Bt as HandlerAfterListener, C as getRequestAcceptableContentTypes, Ct as isWebHandler, D as setResponseContentTypeByFileName, Dt as WebHandlerProvider, E as toResponse, Et as WebHandler, F as SendFileStats, Ft as Handler, G as EventStreamHandle, Gt as PathMatcher, H as appendResponseHeader, Ht as HandlerBeforeListener, I as sendFile, It as HandlerOptions, J as EventStreamListener, Jt as PathMatcherExecResult, K as EventStreamOptions, Kt as IPathMatcher, L as sendCreated, Lt as defineErrorHandler, M as SendFileContentOptions, Mt as defineCoreHandler, N as SendFileDisposition, Nt as CoreHandler, O as sendStream, Ot as fromNodeHandler, P as SendFileOptions, Pt as CoreHandlerOptions, Q as AppContext, Qt as HandlerSymbol, R as sendAccepted, Rt as ErrorHandler, S as getRequestAcceptableContentType, St as isHandlerOptions, T as isRequestCacheable, Tt as fromWebHandler, U as appendResponseHeaderDirective, Ut as HandlerErrorListener, V as setResponseHeaderInline, Vt as HandlerBaseOptions, W as serializeEventStreamMessage, Wt as isPath, X as ResponseCacheHeadersOptions, Xt as isError, Y as EventStreamMessage, Yt as PathMatcherOptions, Z as setResponseCacheHeaders, Zt as createError, _ as getRequestAcceptableLanguages, _t as isPluginError, a as SmartRouter, an as AppRequest, at as Route, b as getRequestAcceptableCharset, bt as matchHandlerMethod, c as RequestProtocolOptions, cn as NextFn, ct as LruCacheOptions, d as RequestIpOptions, dn as MethodNameLike, dt as Plugin, en as DispatcherEvent, et as AppOptionsInput, f as getRequestIP, fn as AppError, ft as PluginInstallContext, g as getRequestAcceptableLanguage, gt as PluginAlreadyInstalledError, h as matchRequestContentType, ht as PluginInstallError, i as TrieRouter, in as AppEventCreateContext, it as ObjectLiteral, j as SendFileContent, jt as NodeMiddleware, k as sendRedirect, kt as fromNodeMiddleware, l as getRequestProtocol, ln as HeaderName, lt as ICache, m as getRequestHostName, mn as HTTPErrorInput, mt as PluginNotInstalledError, n as App, nn as IDispatcherEvent, nt as BaseRouterOptions, o as SmartRouterOptions, on as AppResponse, ot as RouteMatch, p as RequestHostNameOptions, pn as ErrorSymbol, pt as PluginInstallFn, q as createEventStream, qt as Path, r as buildRoutePathMatcher, rn as AppEvent, rt as IRouter, s as LinearRouter, sn as IAppEvent, st as LruCache, t as normalizeAppOptions, tn as IDispatcher, tt as IApp, u as useRequestNegotiator, un as MethodName, ut as isPlugin, v as getRequestAcceptableEncoding, vt as PluginError, w as getRequestHeader, wt as isWebHandlerProvider, x as getRequestAcceptableCharsets, xt as isHandler, y as getRequestAcceptableEncodings, yt as PluginErrorCode, z as setResponseHeaderContentType, zt as ErrorHandlerOptions } from "./index-6qjxyFZh.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,
|
|
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, PluginAlreadyInstalledError, 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, sendAccepted, sendCreated, 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 isError, A as fromWebHandler, B as DispatcherEvent, C as getRequestAcceptableEncodings, D as matchHandlerMethod, E as isRequestCacheable, F as defineErrorHandler, G as getRequestAcceptableContentTypes, H as sendRedirect, I as defineCoreHandler, J as sendFile, K as useRequestNegotiator, L as Handler, M as isWebHandlerProvider, N as fromNodeHandler, O as isHandler, P as fromNodeMiddleware, Q as createError, R as HandlerSymbol, S as getRequestAcceptableEncoding, T as getRequestAcceptableCharsets, U as sendFormat, V as sendStream, W as getRequestAcceptableContentType, X as sendAccepted, Y as sendCreated, Z as toResponse, _ as getRequestIP, a as LinearRouter, at as appendResponseHeaderDirective, b as getRequestAcceptableLanguage, c as PluginNotInstalledError, ct as AppError, d as PluginError, dt as AppEvent, et as setResponseHeaderContentType, f as isPluginError, ft as HeaderName, g as getRequestProtocol, h as PathMatcher, i as TrieRouter, it as appendResponseHeader, j as isWebHandler, k as isHandlerOptions, l as PluginInstallError, lt as ErrorSymbol, m as isPath, mt as LruCache, n as normalizeAppOptions, nt as setResponseHeaderInline, o as buildRoutePathMatcher, ot as createEventStream, p as PluginErrorCode, pt as MethodName, q as getRequestHeader, r as SmartRouter, rt as setResponseContentTypeByFileName, s as isPlugin, st as serializeEventStreamMessage, t as App, tt as setResponseHeaderAttachment, u as PluginAlreadyInstalledError, ut as setResponseCacheHeaders, v as getRequestHostName, w as getRequestAcceptableCharset, x as getRequestAcceptableLanguages, y as matchRequestContentType, z as HandlerType } from "./src-
|
|
1
|
+
import { $ as isError, A as fromWebHandler, B as DispatcherEvent, C as getRequestAcceptableEncodings, D as matchHandlerMethod, E as isRequestCacheable, F as defineErrorHandler, G as getRequestAcceptableContentTypes, H as sendRedirect, I as defineCoreHandler, J as sendFile, K as useRequestNegotiator, L as Handler, M as isWebHandlerProvider, N as fromNodeHandler, O as isHandler, P as fromNodeMiddleware, Q as createError, R as HandlerSymbol, S as getRequestAcceptableEncoding, T as getRequestAcceptableCharsets, U as sendFormat, V as sendStream, W as getRequestAcceptableContentType, X as sendAccepted, Y as sendCreated, Z as toResponse, _ as getRequestIP, a as LinearRouter, at as appendResponseHeaderDirective, b as getRequestAcceptableLanguage, c as PluginNotInstalledError, ct as AppError, d as PluginError, dt as AppEvent, et as setResponseHeaderContentType, f as isPluginError, ft as HeaderName, g as getRequestProtocol, h as PathMatcher, i as TrieRouter, it as appendResponseHeader, j as isWebHandler, k as isHandlerOptions, l as PluginInstallError, lt as ErrorSymbol, m as isPath, mt as LruCache, n as normalizeAppOptions, nt as setResponseHeaderInline, o as buildRoutePathMatcher, ot as createEventStream, p as PluginErrorCode, pt as MethodName, q as getRequestHeader, r as SmartRouter, rt as setResponseContentTypeByFileName, s as isPlugin, st as serializeEventStreamMessage, t as App, tt as setResponseHeaderAttachment, u as PluginAlreadyInstalledError, ut as setResponseCacheHeaders, v as getRequestHostName, w as getRequestAcceptableCharset, x as getRequestAcceptableLanguages, y as matchRequestContentType, z as HandlerType } from "./src-BfsqxIfL.mjs";
|
|
2
2
|
import { serve as serve$1 } from "srvx/bun";
|
|
3
3
|
//#region src/_entries/bun.ts
|
|
4
4
|
function serve(app, options) {
|
package/dist/cloudflare.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { $ as AppOptions, $t as
|
|
1
|
+
import { $ as AppOptions, $t as HandlerType, A as sendFormat, At as NodeHandler, B as setResponseHeaderAttachment, Bt as HandlerAfterListener, C as getRequestAcceptableContentTypes, Ct as isWebHandler, D as setResponseContentTypeByFileName, Dt as WebHandlerProvider, E as toResponse, Et as WebHandler, F as SendFileStats, Ft as Handler, G as EventStreamHandle, Gt as PathMatcher, H as appendResponseHeader, Ht as HandlerBeforeListener, I as sendFile, It as HandlerOptions, J as EventStreamListener, Jt as PathMatcherExecResult, K as EventStreamOptions, Kt as IPathMatcher, L as sendCreated, Lt as defineErrorHandler, M as SendFileContentOptions, Mt as defineCoreHandler, N as SendFileDisposition, Nt as CoreHandler, O as sendStream, Ot as fromNodeHandler, P as SendFileOptions, Pt as CoreHandlerOptions, Q as AppContext, Qt as HandlerSymbol, R as sendAccepted, Rt as ErrorHandler, S as getRequestAcceptableContentType, St as isHandlerOptions, T as isRequestCacheable, Tt as fromWebHandler, U as appendResponseHeaderDirective, Ut as HandlerErrorListener, V as setResponseHeaderInline, Vt as HandlerBaseOptions, W as serializeEventStreamMessage, Wt as isPath, X as ResponseCacheHeadersOptions, Xt as isError, Y as EventStreamMessage, Yt as PathMatcherOptions, Z as setResponseCacheHeaders, Zt as createError, _ as getRequestAcceptableLanguages, _t as isPluginError, a as SmartRouter, an as AppRequest, at as Route, b as getRequestAcceptableCharset, bt as matchHandlerMethod, c as RequestProtocolOptions, cn as NextFn, ct as LruCacheOptions, d as RequestIpOptions, dn as MethodNameLike, dt as Plugin, en as DispatcherEvent, et as AppOptionsInput, f as getRequestIP, fn as AppError, ft as PluginInstallContext, g as getRequestAcceptableLanguage, gt as PluginAlreadyInstalledError, h as matchRequestContentType, ht as PluginInstallError, i as TrieRouter, in as AppEventCreateContext, it as ObjectLiteral, j as SendFileContent, jt as NodeMiddleware, k as sendRedirect, kt as fromNodeMiddleware, l as getRequestProtocol, ln as HeaderName, lt as ICache, m as getRequestHostName, mn as HTTPErrorInput, mt as PluginNotInstalledError, n as App, nn as IDispatcherEvent, nt as BaseRouterOptions, o as SmartRouterOptions, on as AppResponse, ot as RouteMatch, p as RequestHostNameOptions, pn as ErrorSymbol, pt as PluginInstallFn, q as createEventStream, qt as Path, r as buildRoutePathMatcher, rn as AppEvent, rt as IRouter, s as LinearRouter, sn as IAppEvent, st as LruCache, t as normalizeAppOptions, tn as IDispatcher, tt as IApp, u as useRequestNegotiator, un as MethodName, ut as isPlugin, v as getRequestAcceptableEncoding, vt as PluginError, w as getRequestHeader, wt as isWebHandlerProvider, x as getRequestAcceptableCharsets, xt as isHandler, y as getRequestAcceptableEncodings, yt as PluginErrorCode, z as setResponseHeaderContentType, zt as ErrorHandlerOptions } from "./index-6qjxyFZh.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,
|
|
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, PluginAlreadyInstalledError, 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, sendAccepted, sendCreated, 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 isError, A as fromWebHandler, B as DispatcherEvent, C as getRequestAcceptableEncodings, D as matchHandlerMethod, E as isRequestCacheable, F as defineErrorHandler, G as getRequestAcceptableContentTypes, H as sendRedirect, I as defineCoreHandler, J as sendFile, K as useRequestNegotiator, L as Handler, M as isWebHandlerProvider, N as fromNodeHandler, O as isHandler, P as fromNodeMiddleware, Q as createError, R as HandlerSymbol, S as getRequestAcceptableEncoding, T as getRequestAcceptableCharsets, U as sendFormat, V as sendStream, W as getRequestAcceptableContentType, X as sendAccepted, Y as sendCreated, Z as toResponse, _ as getRequestIP, a as LinearRouter, at as appendResponseHeaderDirective, b as getRequestAcceptableLanguage, c as PluginNotInstalledError, ct as AppError, d as PluginError, dt as AppEvent, et as setResponseHeaderContentType, f as isPluginError, ft as HeaderName, g as getRequestProtocol, h as PathMatcher, i as TrieRouter, it as appendResponseHeader, j as isWebHandler, k as isHandlerOptions, l as PluginInstallError, lt as ErrorSymbol, m as isPath, mt as LruCache, n as normalizeAppOptions, nt as setResponseHeaderInline, o as buildRoutePathMatcher, ot as createEventStream, p as PluginErrorCode, pt as MethodName, q as getRequestHeader, r as SmartRouter, rt as setResponseContentTypeByFileName, s as isPlugin, st as serializeEventStreamMessage, t as App, tt as setResponseHeaderAttachment, u as PluginAlreadyInstalledError, ut as setResponseCacheHeaders, v as getRequestHostName, w as getRequestAcceptableCharset, x as getRequestAcceptableLanguages, y as matchRequestContentType, z as HandlerType } from "./src-
|
|
1
|
+
import { $ as isError, A as fromWebHandler, B as DispatcherEvent, C as getRequestAcceptableEncodings, D as matchHandlerMethod, E as isRequestCacheable, F as defineErrorHandler, G as getRequestAcceptableContentTypes, H as sendRedirect, I as defineCoreHandler, J as sendFile, K as useRequestNegotiator, L as Handler, M as isWebHandlerProvider, N as fromNodeHandler, O as isHandler, P as fromNodeMiddleware, Q as createError, R as HandlerSymbol, S as getRequestAcceptableEncoding, T as getRequestAcceptableCharsets, U as sendFormat, V as sendStream, W as getRequestAcceptableContentType, X as sendAccepted, Y as sendCreated, Z as toResponse, _ as getRequestIP, a as LinearRouter, at as appendResponseHeaderDirective, b as getRequestAcceptableLanguage, c as PluginNotInstalledError, ct as AppError, d as PluginError, dt as AppEvent, et as setResponseHeaderContentType, f as isPluginError, ft as HeaderName, g as getRequestProtocol, h as PathMatcher, i as TrieRouter, it as appendResponseHeader, j as isWebHandler, k as isHandlerOptions, l as PluginInstallError, lt as ErrorSymbol, m as isPath, mt as LruCache, n as normalizeAppOptions, nt as setResponseHeaderInline, o as buildRoutePathMatcher, ot as createEventStream, p as PluginErrorCode, pt as MethodName, q as getRequestHeader, r as SmartRouter, rt as setResponseContentTypeByFileName, s as isPlugin, st as serializeEventStreamMessage, t as App, tt as setResponseHeaderAttachment, u as PluginAlreadyInstalledError, ut as setResponseCacheHeaders, v as getRequestHostName, w as getRequestAcceptableCharset, x as getRequestAcceptableLanguages, y as matchRequestContentType, z as HandlerType } from "./src-BfsqxIfL.mjs";
|
|
2
2
|
import { serve as serve$1 } from "srvx/cloudflare";
|
|
3
3
|
//#region src/_entries/cloudflare.ts
|
|
4
4
|
function serve(app, options) {
|
package/dist/deno.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { $ as AppOptions, $t as
|
|
1
|
+
import { $ as AppOptions, $t as HandlerType, A as sendFormat, At as NodeHandler, B as setResponseHeaderAttachment, Bt as HandlerAfterListener, C as getRequestAcceptableContentTypes, Ct as isWebHandler, D as setResponseContentTypeByFileName, Dt as WebHandlerProvider, E as toResponse, Et as WebHandler, F as SendFileStats, Ft as Handler, G as EventStreamHandle, Gt as PathMatcher, H as appendResponseHeader, Ht as HandlerBeforeListener, I as sendFile, It as HandlerOptions, J as EventStreamListener, Jt as PathMatcherExecResult, K as EventStreamOptions, Kt as IPathMatcher, L as sendCreated, Lt as defineErrorHandler, M as SendFileContentOptions, Mt as defineCoreHandler, N as SendFileDisposition, Nt as CoreHandler, O as sendStream, Ot as fromNodeHandler, P as SendFileOptions, Pt as CoreHandlerOptions, Q as AppContext, Qt as HandlerSymbol, R as sendAccepted, Rt as ErrorHandler, S as getRequestAcceptableContentType, St as isHandlerOptions, T as isRequestCacheable, Tt as fromWebHandler, U as appendResponseHeaderDirective, Ut as HandlerErrorListener, V as setResponseHeaderInline, Vt as HandlerBaseOptions, W as serializeEventStreamMessage, Wt as isPath, X as ResponseCacheHeadersOptions, Xt as isError, Y as EventStreamMessage, Yt as PathMatcherOptions, Z as setResponseCacheHeaders, Zt as createError, _ as getRequestAcceptableLanguages, _t as isPluginError, a as SmartRouter, an as AppRequest, at as Route, b as getRequestAcceptableCharset, bt as matchHandlerMethod, c as RequestProtocolOptions, cn as NextFn, ct as LruCacheOptions, d as RequestIpOptions, dn as MethodNameLike, dt as Plugin, en as DispatcherEvent, et as AppOptionsInput, f as getRequestIP, fn as AppError, ft as PluginInstallContext, g as getRequestAcceptableLanguage, gt as PluginAlreadyInstalledError, h as matchRequestContentType, ht as PluginInstallError, i as TrieRouter, in as AppEventCreateContext, it as ObjectLiteral, j as SendFileContent, jt as NodeMiddleware, k as sendRedirect, kt as fromNodeMiddleware, l as getRequestProtocol, ln as HeaderName, lt as ICache, m as getRequestHostName, mn as HTTPErrorInput, mt as PluginNotInstalledError, n as App, nn as IDispatcherEvent, nt as BaseRouterOptions, o as SmartRouterOptions, on as AppResponse, ot as RouteMatch, p as RequestHostNameOptions, pn as ErrorSymbol, pt as PluginInstallFn, q as createEventStream, qt as Path, r as buildRoutePathMatcher, rn as AppEvent, rt as IRouter, s as LinearRouter, sn as IAppEvent, st as LruCache, t as normalizeAppOptions, tn as IDispatcher, tt as IApp, u as useRequestNegotiator, un as MethodName, ut as isPlugin, v as getRequestAcceptableEncoding, vt as PluginError, w as getRequestHeader, wt as isWebHandlerProvider, x as getRequestAcceptableCharsets, xt as isHandler, y as getRequestAcceptableEncodings, yt as PluginErrorCode, z as setResponseHeaderContentType, zt as ErrorHandlerOptions } from "./index-6qjxyFZh.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,
|
|
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, PluginAlreadyInstalledError, 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, sendAccepted, sendCreated, 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 isError, A as fromWebHandler, B as DispatcherEvent, C as getRequestAcceptableEncodings, D as matchHandlerMethod, E as isRequestCacheable, F as defineErrorHandler, G as getRequestAcceptableContentTypes, H as sendRedirect, I as defineCoreHandler, J as sendFile, K as useRequestNegotiator, L as Handler, M as isWebHandlerProvider, N as fromNodeHandler, O as isHandler, P as fromNodeMiddleware, Q as createError, R as HandlerSymbol, S as getRequestAcceptableEncoding, T as getRequestAcceptableCharsets, U as sendFormat, V as sendStream, W as getRequestAcceptableContentType, X as sendAccepted, Y as sendCreated, Z as toResponse, _ as getRequestIP, a as LinearRouter, at as appendResponseHeaderDirective, b as getRequestAcceptableLanguage, c as PluginNotInstalledError, ct as AppError, d as PluginError, dt as AppEvent, et as setResponseHeaderContentType, f as isPluginError, ft as HeaderName, g as getRequestProtocol, h as PathMatcher, i as TrieRouter, it as appendResponseHeader, j as isWebHandler, k as isHandlerOptions, l as PluginInstallError, lt as ErrorSymbol, m as isPath, mt as LruCache, n as normalizeAppOptions, nt as setResponseHeaderInline, o as buildRoutePathMatcher, ot as createEventStream, p as PluginErrorCode, pt as MethodName, q as getRequestHeader, r as SmartRouter, rt as setResponseContentTypeByFileName, s as isPlugin, st as serializeEventStreamMessage, t as App, tt as setResponseHeaderAttachment, u as PluginAlreadyInstalledError, ut as setResponseCacheHeaders, v as getRequestHostName, w as getRequestAcceptableCharset, x as getRequestAcceptableLanguages, y as matchRequestContentType, z as HandlerType } from "./src-
|
|
1
|
+
import { $ as isError, A as fromWebHandler, B as DispatcherEvent, C as getRequestAcceptableEncodings, D as matchHandlerMethod, E as isRequestCacheable, F as defineErrorHandler, G as getRequestAcceptableContentTypes, H as sendRedirect, I as defineCoreHandler, J as sendFile, K as useRequestNegotiator, L as Handler, M as isWebHandlerProvider, N as fromNodeHandler, O as isHandler, P as fromNodeMiddleware, Q as createError, R as HandlerSymbol, S as getRequestAcceptableEncoding, T as getRequestAcceptableCharsets, U as sendFormat, V as sendStream, W as getRequestAcceptableContentType, X as sendAccepted, Y as sendCreated, Z as toResponse, _ as getRequestIP, a as LinearRouter, at as appendResponseHeaderDirective, b as getRequestAcceptableLanguage, c as PluginNotInstalledError, ct as AppError, d as PluginError, dt as AppEvent, et as setResponseHeaderContentType, f as isPluginError, ft as HeaderName, g as getRequestProtocol, h as PathMatcher, i as TrieRouter, it as appendResponseHeader, j as isWebHandler, k as isHandlerOptions, l as PluginInstallError, lt as ErrorSymbol, m as isPath, mt as LruCache, n as normalizeAppOptions, nt as setResponseHeaderInline, o as buildRoutePathMatcher, ot as createEventStream, p as PluginErrorCode, pt as MethodName, q as getRequestHeader, r as SmartRouter, rt as setResponseContentTypeByFileName, s as isPlugin, st as serializeEventStreamMessage, t as App, tt as setResponseHeaderAttachment, u as PluginAlreadyInstalledError, ut as setResponseCacheHeaders, v as getRequestHostName, w as getRequestAcceptableCharset, x as getRequestAcceptableLanguages, y as matchRequestContentType, z as HandlerType } from "./src-BfsqxIfL.mjs";
|
|
2
2
|
import { serve as serve$1 } from "srvx/deno";
|
|
3
3
|
//#region src/_entries/deno.ts
|
|
4
4
|
function serve(app, options) {
|
package/dist/generic.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { $ as AppOptions, $t as
|
|
1
|
+
import { $ as AppOptions, $t as HandlerType, A as sendFormat, At as NodeHandler, B as setResponseHeaderAttachment, Bt as HandlerAfterListener, C as getRequestAcceptableContentTypes, Ct as isWebHandler, D as setResponseContentTypeByFileName, Dt as WebHandlerProvider, E as toResponse, Et as WebHandler, F as SendFileStats, Ft as Handler, G as EventStreamHandle, Gt as PathMatcher, H as appendResponseHeader, Ht as HandlerBeforeListener, I as sendFile, It as HandlerOptions, J as EventStreamListener, Jt as PathMatcherExecResult, K as EventStreamOptions, Kt as IPathMatcher, L as sendCreated, Lt as defineErrorHandler, M as SendFileContentOptions, Mt as defineCoreHandler, N as SendFileDisposition, Nt as CoreHandler, O as sendStream, Ot as fromNodeHandler, P as SendFileOptions, Pt as CoreHandlerOptions, Q as AppContext, Qt as HandlerSymbol, R as sendAccepted, Rt as ErrorHandler, S as getRequestAcceptableContentType, St as isHandlerOptions, T as isRequestCacheable, Tt as fromWebHandler, U as appendResponseHeaderDirective, Ut as HandlerErrorListener, V as setResponseHeaderInline, Vt as HandlerBaseOptions, W as serializeEventStreamMessage, Wt as isPath, X as ResponseCacheHeadersOptions, Xt as isError, Y as EventStreamMessage, Yt as PathMatcherOptions, Z as setResponseCacheHeaders, Zt as createError, _ as getRequestAcceptableLanguages, _t as isPluginError, a as SmartRouter, an as AppRequest, at as Route, b as getRequestAcceptableCharset, bt as matchHandlerMethod, c as RequestProtocolOptions, cn as NextFn, ct as LruCacheOptions, d as RequestIpOptions, dn as MethodNameLike, dt as Plugin, en as DispatcherEvent, et as AppOptionsInput, f as getRequestIP, fn as AppError, ft as PluginInstallContext, g as getRequestAcceptableLanguage, gt as PluginAlreadyInstalledError, h as matchRequestContentType, ht as PluginInstallError, i as TrieRouter, in as AppEventCreateContext, it as ObjectLiteral, j as SendFileContent, jt as NodeMiddleware, k as sendRedirect, kt as fromNodeMiddleware, l as getRequestProtocol, ln as HeaderName, lt as ICache, m as getRequestHostName, mn as HTTPErrorInput, mt as PluginNotInstalledError, n as App, nn as IDispatcherEvent, nt as BaseRouterOptions, o as SmartRouterOptions, on as AppResponse, ot as RouteMatch, p as RequestHostNameOptions, pn as ErrorSymbol, pt as PluginInstallFn, q as createEventStream, qt as Path, r as buildRoutePathMatcher, rn as AppEvent, rt as IRouter, s as LinearRouter, sn as IAppEvent, st as LruCache, t as normalizeAppOptions, tn as IDispatcher, tt as IApp, u as useRequestNegotiator, un as MethodName, ut as isPlugin, v as getRequestAcceptableEncoding, vt as PluginError, w as getRequestHeader, wt as isWebHandlerProvider, x as getRequestAcceptableCharsets, xt as isHandler, y as getRequestAcceptableEncodings, yt as PluginErrorCode, z as setResponseHeaderContentType, zt as ErrorHandlerOptions } from "./index-6qjxyFZh.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,
|
|
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, PluginAlreadyInstalledError, 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, sendAccepted, sendCreated, 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 isError, A as fromWebHandler, B as DispatcherEvent, C as getRequestAcceptableEncodings, D as matchHandlerMethod, E as isRequestCacheable, F as defineErrorHandler, G as getRequestAcceptableContentTypes, H as sendRedirect, I as defineCoreHandler, J as sendFile, K as useRequestNegotiator, L as Handler, M as isWebHandlerProvider, N as fromNodeHandler, O as isHandler, P as fromNodeMiddleware, Q as createError, R as HandlerSymbol, S as getRequestAcceptableEncoding, T as getRequestAcceptableCharsets, U as sendFormat, V as sendStream, W as getRequestAcceptableContentType, X as sendAccepted, Y as sendCreated, Z as toResponse, _ as getRequestIP, a as LinearRouter, at as appendResponseHeaderDirective, b as getRequestAcceptableLanguage, c as PluginNotInstalledError, ct as AppError, d as PluginError, dt as AppEvent, et as setResponseHeaderContentType, f as isPluginError, ft as HeaderName, g as getRequestProtocol, h as PathMatcher, i as TrieRouter, it as appendResponseHeader, j as isWebHandler, k as isHandlerOptions, l as PluginInstallError, lt as ErrorSymbol, m as isPath, mt as LruCache, n as normalizeAppOptions, nt as setResponseHeaderInline, o as buildRoutePathMatcher, ot as createEventStream, p as PluginErrorCode, pt as MethodName, q as getRequestHeader, r as SmartRouter, rt as setResponseContentTypeByFileName, s as isPlugin, st as serializeEventStreamMessage, t as App, tt as setResponseHeaderAttachment, u as PluginAlreadyInstalledError, ut as setResponseCacheHeaders, v as getRequestHostName, w as getRequestAcceptableCharset, x as getRequestAcceptableLanguages, y as matchRequestContentType, z as HandlerType } from "./src-
|
|
1
|
+
import { $ as isError, A as fromWebHandler, B as DispatcherEvent, C as getRequestAcceptableEncodings, D as matchHandlerMethod, E as isRequestCacheable, F as defineErrorHandler, G as getRequestAcceptableContentTypes, H as sendRedirect, I as defineCoreHandler, J as sendFile, K as useRequestNegotiator, L as Handler, M as isWebHandlerProvider, N as fromNodeHandler, O as isHandler, P as fromNodeMiddleware, Q as createError, R as HandlerSymbol, S as getRequestAcceptableEncoding, T as getRequestAcceptableCharsets, U as sendFormat, V as sendStream, W as getRequestAcceptableContentType, X as sendAccepted, Y as sendCreated, Z as toResponse, _ as getRequestIP, a as LinearRouter, at as appendResponseHeaderDirective, b as getRequestAcceptableLanguage, c as PluginNotInstalledError, ct as AppError, d as PluginError, dt as AppEvent, et as setResponseHeaderContentType, f as isPluginError, ft as HeaderName, g as getRequestProtocol, h as PathMatcher, i as TrieRouter, it as appendResponseHeader, j as isWebHandler, k as isHandlerOptions, l as PluginInstallError, lt as ErrorSymbol, m as isPath, mt as LruCache, n as normalizeAppOptions, nt as setResponseHeaderInline, o as buildRoutePathMatcher, ot as createEventStream, p as PluginErrorCode, pt as MethodName, q as getRequestHeader, r as SmartRouter, rt as setResponseContentTypeByFileName, s as isPlugin, st as serializeEventStreamMessage, t as App, tt as setResponseHeaderAttachment, u as PluginAlreadyInstalledError, ut as setResponseCacheHeaders, v as getRequestHostName, w as getRequestAcceptableCharset, x as getRequestAcceptableLanguages, y as matchRequestContentType, z as HandlerType } from "./src-BfsqxIfL.mjs";
|
|
2
2
|
import { serve as serve$1 } from "srvx/generic";
|
|
3
3
|
//#region src/_entries/generic.ts
|
|
4
4
|
function serve(app, options) {
|
|
@@ -769,14 +769,6 @@ interface ICache<V> {
|
|
|
769
769
|
* cached against an earlier route set.
|
|
770
770
|
*/
|
|
771
771
|
clear(): void;
|
|
772
|
-
/**
|
|
773
|
-
* Return a fresh, **empty** cache of the same shape — same class
|
|
774
|
-
* for leaf implementations. Used by `IRouter.clone()` so the
|
|
775
|
-
* clone preserves the configured cache family (size, eviction
|
|
776
|
-
* policy, …) without inheriting the parent's cached values.
|
|
777
|
-
* Mirrors `IRouter.clone()`.
|
|
778
|
-
*/
|
|
779
|
-
clone(): ICache<V>;
|
|
780
772
|
}
|
|
781
773
|
//#endregion
|
|
782
774
|
//#region src/cache/lru.d.ts
|
|
@@ -798,14 +790,12 @@ type LruCacheOptions = {
|
|
|
798
790
|
* `BaseRouterOptions.cache` slot.
|
|
799
791
|
*/
|
|
800
792
|
declare class LruCache<V> implements ICache<V> {
|
|
801
|
-
protected options: LruCacheOptions;
|
|
802
793
|
protected inner: QuickLRU<string, V>;
|
|
803
794
|
constructor(options?: LruCacheOptions);
|
|
804
795
|
get(key: string): V | undefined;
|
|
805
796
|
set(key: string, value: V): void;
|
|
806
797
|
delete(key: string): void;
|
|
807
798
|
clear(): void;
|
|
808
|
-
clone(): ICache<V>;
|
|
809
799
|
}
|
|
810
800
|
//#endregion
|
|
811
801
|
//#region src/types.d.ts
|
|
@@ -863,8 +853,7 @@ type RouteMatch<T extends ObjectLiteral = ObjectLiteral> = {
|
|
|
863
853
|
route: Route<T>;
|
|
864
854
|
/**
|
|
865
855
|
* Registration index in the router. Used by the dispatch loop's
|
|
866
|
-
* `setNext` continuation ("resume from index + 1")
|
|
867
|
-
* `App.clone()` to re-register routes in their original order.
|
|
856
|
+
* `setNext` continuation ("resume from index + 1").
|
|
868
857
|
*/
|
|
869
858
|
index: number;
|
|
870
859
|
/**
|
|
@@ -949,15 +938,6 @@ interface IRouter<T extends ObjectLiteral = ObjectLiteral> {
|
|
|
949
938
|
* implementation.
|
|
950
939
|
*/
|
|
951
940
|
lookup(path: string, method?: MethodNameLike): readonly RouteMatch<T>[];
|
|
952
|
-
/**
|
|
953
|
-
* Return a fresh, **empty** router of the same shape — same class
|
|
954
|
-
* for leaf implementations; composable wrappers should recursively
|
|
955
|
-
* clone their inner router. Used by `App.install()` and
|
|
956
|
-
* `App.clone()` so plugin sub-apps and cloned apps preserve the
|
|
957
|
-
* active router family instead of silently downgrading to
|
|
958
|
-
* `LinearRouter`.
|
|
959
|
-
*/
|
|
960
|
-
clone(): IRouter<T>;
|
|
961
941
|
}
|
|
962
942
|
//#endregion
|
|
963
943
|
//#region src/app/types.d.ts
|
|
@@ -1044,11 +1024,11 @@ type AppOptionsInput = Omit<AppOptions, 'etag' | 'trustProxy'> & {
|
|
|
1044
1024
|
*
|
|
1045
1025
|
* Splits true runtime options (which propagate to mounted children
|
|
1046
1026
|
* via mount-time inheritance) from App-local identity (`name`,
|
|
1047
|
-
* `path`) and
|
|
1048
|
-
*
|
|
1049
|
-
*
|
|
1050
|
-
*
|
|
1051
|
-
*
|
|
1027
|
+
* `path`) and the `router` injectable. Keeping these separate
|
|
1028
|
+
* prevents identity from leaking across the mount boundary — e.g. a
|
|
1029
|
+
* parent's `path: '/api'` would otherwise propagate into a child
|
|
1030
|
+
* whose own `path` is unset and silently double-prefix on
|
|
1031
|
+
* registration.
|
|
1052
1032
|
*/
|
|
1053
1033
|
type AppContext = {
|
|
1054
1034
|
/**
|
|
@@ -1076,12 +1056,6 @@ type AppContext = {
|
|
|
1076
1056
|
* mount-time inheritance.
|
|
1077
1057
|
*/
|
|
1078
1058
|
options?: AppOptionsInput;
|
|
1079
|
-
/**
|
|
1080
|
-
* Map of installed plugin name → version. Defaults to an empty
|
|
1081
|
-
* map. Used by `clone()` to carry the installed-plugin registry
|
|
1082
|
-
* over so duplicate installs are still rejected on the copy.
|
|
1083
|
-
*/
|
|
1084
|
-
plugins?: Map<string, string | undefined>;
|
|
1085
1059
|
/**
|
|
1086
1060
|
* Pluggable router (route table). Defaults to `LinearRouter` —
|
|
1087
1061
|
* walks registered entries linearly per request. Swap in an
|
|
@@ -1089,48 +1063,6 @@ type AppContext = {
|
|
|
1089
1063
|
*/
|
|
1090
1064
|
router?: IRouter<Handler>;
|
|
1091
1065
|
};
|
|
1092
|
-
/**
|
|
1093
|
-
* Per-dispatch state threaded through the match loop. Used internally
|
|
1094
|
-
* by `App.dispatch` and the `setNext` continuation; not part of the
|
|
1095
|
-
* public surface.
|
|
1096
|
-
*/
|
|
1097
|
-
type AppPipelineContext = {
|
|
1098
|
-
/**
|
|
1099
|
-
* The dispatcher event being processed. Carries request, path,
|
|
1100
|
-
* params, and the response accumulator across pipeline steps.
|
|
1101
|
-
*/
|
|
1102
|
-
event: IDispatcherEvent;
|
|
1103
|
-
/**
|
|
1104
|
-
* `true` when this dispatch is the outermost App on the call
|
|
1105
|
-
* stack (the root). Used to gate root-only behaviour like
|
|
1106
|
-
* OPTIONS auto-Allow.
|
|
1107
|
-
*/
|
|
1108
|
-
isRoot: boolean;
|
|
1109
|
-
/**
|
|
1110
|
-
* Resolved matches for the current `event.path`, populated on
|
|
1111
|
-
* first lookup and threaded through `setNext` recursion so we
|
|
1112
|
-
* don't re-run `IRouter.lookup` per cycle. Refreshed when
|
|
1113
|
-
* `event.path` changes mid-walk.
|
|
1114
|
-
*/
|
|
1115
|
-
matches: readonly RouteMatch<Handler>[];
|
|
1116
|
-
/**
|
|
1117
|
-
* The `event.path` that was used to compute `matches`. Stored so
|
|
1118
|
-
* we can detect a mid-walk path mutation and refresh the cache.
|
|
1119
|
-
*/
|
|
1120
|
-
matchesPath: string;
|
|
1121
|
-
/**
|
|
1122
|
-
* Position within `matches` for the *next* handler the walk
|
|
1123
|
-
* should consider. The current handler's `setNext` continuation
|
|
1124
|
-
* captures this and resumes the walk on `event.next()`.
|
|
1125
|
-
*/
|
|
1126
|
-
matchIndex: number;
|
|
1127
|
-
/**
|
|
1128
|
-
* The Response produced by the pipeline. Set by handlers (via
|
|
1129
|
-
* `toResponse`) or by the OPTIONS auto-Allow path; returned from
|
|
1130
|
-
* `App.dispatch`.
|
|
1131
|
-
*/
|
|
1132
|
-
response?: Response;
|
|
1133
|
-
};
|
|
1134
1066
|
interface IApp extends IDispatcher {
|
|
1135
1067
|
/**
|
|
1136
1068
|
* Optional label for the router instance.
|
|
@@ -1141,16 +1073,6 @@ interface IApp extends IDispatcher {
|
|
|
1141
1073
|
* and returns a Response (with 404/500 fallbacks).
|
|
1142
1074
|
*/
|
|
1143
1075
|
fetch(request: AppRequest): Promise<Response>;
|
|
1144
|
-
/**
|
|
1145
|
-
* Return a new App that mirrors this one but owns independent
|
|
1146
|
-
* mountable state — fresh `IRouter` of the same family seeded
|
|
1147
|
-
* with this App's routes, shallow copy of options, and a fresh
|
|
1148
|
-
* plugins map carrying the same entries.
|
|
1149
|
-
*
|
|
1150
|
-
* Intended for mounting the same logical App under multiple
|
|
1151
|
-
* paths without sharing mutable state across mount points.
|
|
1152
|
-
*/
|
|
1153
|
-
clone(): IApp;
|
|
1154
1076
|
/**
|
|
1155
1077
|
* Swap the active `IRouter`. Every previously-registered route
|
|
1156
1078
|
* is replayed onto the new router so lookups stay correct. Any
|
|
@@ -1425,7 +1347,6 @@ declare class LinearRouter<T extends ObjectLiteral = ObjectLiteral> implements I
|
|
|
1425
1347
|
constructor(options?: BaseRouterOptions<T>);
|
|
1426
1348
|
add(route: Route<T>): void;
|
|
1427
1349
|
lookup(path: string, _method?: MethodNameLike): readonly RouteMatch<T>[];
|
|
1428
|
-
clone(): IRouter<T>;
|
|
1429
1350
|
}
|
|
1430
1351
|
//#endregion
|
|
1431
1352
|
//#region src/router/smart/module.d.ts
|
|
@@ -1442,7 +1363,7 @@ type SmartRouterOptions<T extends ObjectLiteral = ObjectLiteral> = BaseRouterOpt
|
|
|
1442
1363
|
* buffer; on the first `lookup()` call, picks `LinearRouter` or
|
|
1443
1364
|
* `TrieRouter` based on the registered route count and replays the
|
|
1444
1365
|
* pending list onto the chosen inner router. Every subsequent call
|
|
1445
|
-
* — `add`, `lookup
|
|
1366
|
+
* — `add`, `lookup` — forwards to the inner.
|
|
1446
1367
|
*
|
|
1447
1368
|
* Use this when you don't want to commit to a router family up-front
|
|
1448
1369
|
* (e.g. a library that registers a variable number of routes
|
|
@@ -1466,7 +1387,6 @@ declare class SmartRouter<T extends ObjectLiteral = ObjectLiteral> implements IR
|
|
|
1466
1387
|
constructor(options?: SmartRouterOptions<T>);
|
|
1467
1388
|
add(route: Route<T>): void;
|
|
1468
1389
|
lookup(path: string, method?: string): readonly RouteMatch<T>[];
|
|
1469
|
-
clone(): IRouter<T>;
|
|
1470
1390
|
/**
|
|
1471
1391
|
* Pick the inner router based on the registered route count.
|
|
1472
1392
|
* `LinearRouter` for tiny tables, `TrieRouter` past the
|
|
@@ -1648,7 +1568,6 @@ declare class TrieRouter<T extends ObjectLiteral = ObjectLiteral> implements IRo
|
|
|
1648
1568
|
constructor(options?: BaseRouterOptions<T>);
|
|
1649
1569
|
add(route: Route<T>): void;
|
|
1650
1570
|
lookup(path: string, method?: MethodNameLike): readonly RouteMatch<T>[];
|
|
1651
|
-
clone(): IRouter<T>;
|
|
1652
1571
|
/**
|
|
1653
1572
|
* T1: returns the pre-computed candidate list when the request's
|
|
1654
1573
|
* static spine has no param sibling, no prefix routes, and no
|
|
@@ -1736,9 +1655,8 @@ declare class App implements IApp {
|
|
|
1736
1655
|
/**
|
|
1737
1656
|
* Every route registered on this App, in registration order.
|
|
1738
1657
|
*
|
|
1739
|
-
* Read by `use(otherApp)` to snapshot routes at flatten time
|
|
1740
|
-
*
|
|
1741
|
-
* after a flatten do not propagate.
|
|
1658
|
+
* Read by `use(otherApp)` to snapshot routes at flatten time.
|
|
1659
|
+
* Late mutations to `_routes` after a flatten do not propagate.
|
|
1742
1660
|
*/
|
|
1743
1661
|
protected _routes: Route<Handler>[];
|
|
1744
1662
|
constructor(input?: AppContext);
|
|
@@ -1757,8 +1675,8 @@ declare class App implements IApp {
|
|
|
1757
1675
|
get plugins(): ReadonlyMap<string, string | undefined>;
|
|
1758
1676
|
/**
|
|
1759
1677
|
* Register a route with the active router and record it on the
|
|
1760
|
-
* App so `
|
|
1761
|
-
*
|
|
1678
|
+
* App so `setRouter` / `use(child)` can read the canonical list
|
|
1679
|
+
* back.
|
|
1762
1680
|
*
|
|
1763
1681
|
* @protected
|
|
1764
1682
|
*/
|
|
@@ -1828,17 +1746,10 @@ declare class App implements IApp {
|
|
|
1828
1746
|
*/
|
|
1829
1747
|
getPluginVersion(name: string): string | undefined;
|
|
1830
1748
|
protected install(plugin: Plugin, context?: PluginInstallContext): this;
|
|
1831
|
-
/**
|
|
1832
|
-
* Return a new `App` that mirrors this one but owns independent
|
|
1833
|
-
* mountable state — fresh router of the same family seeded with
|
|
1834
|
-
* the current routes, shallow copy of options, and a fresh
|
|
1835
|
-
* plugins map carrying the same entries.
|
|
1836
|
-
*/
|
|
1837
|
-
clone(): IApp;
|
|
1838
1749
|
}
|
|
1839
1750
|
//#endregion
|
|
1840
1751
|
//#region src/app/options.d.ts
|
|
1841
1752
|
declare function normalizeAppOptions(input: AppOptionsInput): AppOptions;
|
|
1842
1753
|
//#endregion
|
|
1843
|
-
export { AppOptions as $,
|
|
1844
|
-
//# sourceMappingURL=index-
|
|
1754
|
+
export { AppOptions as $, HandlerType as $t, sendFormat as A, NodeHandler as At, setResponseHeaderAttachment as B, HandlerAfterListener as Bt, getRequestAcceptableContentTypes as C, isWebHandler as Ct, setResponseContentTypeByFileName as D, WebHandlerProvider as Dt, toResponse as E, WebHandler as Et, SendFileStats as F, Handler as Ft, EventStreamHandle as G, PathMatcher as Gt, appendResponseHeader as H, HandlerBeforeListener as Ht, sendFile as I, HandlerOptions as It, EventStreamListener as J, PathMatcherExecResult as Jt, EventStreamOptions as K, IPathMatcher as Kt, sendCreated as L, defineErrorHandler as Lt, SendFileContentOptions as M, defineCoreHandler as Mt, SendFileDisposition as N, CoreHandler as Nt, sendStream as O, fromNodeHandler as Ot, SendFileOptions as P, CoreHandlerOptions as Pt, AppContext as Q, HandlerSymbol as Qt, sendAccepted as R, ErrorHandler as Rt, getRequestAcceptableContentType as S, isHandlerOptions as St, isRequestCacheable as T, fromWebHandler as Tt, appendResponseHeaderDirective as U, HandlerErrorListener as Ut, setResponseHeaderInline as V, HandlerBaseOptions as Vt, serializeEventStreamMessage as W, isPath as Wt, ResponseCacheHeadersOptions as X, isError as Xt, EventStreamMessage as Y, PathMatcherOptions as Yt, setResponseCacheHeaders as Z, createError as Zt, getRequestAcceptableLanguages as _, isPluginError as _t, SmartRouter as a, AppRequest as an, Route as at, getRequestAcceptableCharset as b, matchHandlerMethod as bt, RequestProtocolOptions as c, NextFn as cn, LruCacheOptions as ct, RequestIpOptions as d, MethodNameLike as dn, Plugin as dt, DispatcherEvent as en, AppOptionsInput as et, getRequestIP as f, AppError as fn, PluginInstallContext as ft, getRequestAcceptableLanguage as g, PluginAlreadyInstalledError as gt, matchRequestContentType as h, PluginInstallError as ht, TrieRouter as i, AppEventCreateContext as in, ObjectLiteral as it, SendFileContent as j, NodeMiddleware as jt, sendRedirect as k, fromNodeMiddleware as kt, getRequestProtocol as l, HeaderName as ln, ICache as lt, getRequestHostName as m, HTTPErrorInput$1 as mn, PluginNotInstalledError as mt, App as n, IDispatcherEvent as nn, BaseRouterOptions as nt, SmartRouterOptions as o, AppResponse as on, RouteMatch as ot, RequestHostNameOptions as p, ErrorSymbol as pn, PluginInstallFn as pt, createEventStream as q, Path as qt, buildRoutePathMatcher as r, AppEvent as rn, IRouter as rt, LinearRouter as s, IAppEvent as sn, LruCache as st, normalizeAppOptions as t, IDispatcher as tn, IApp as tt, useRequestNegotiator as u, MethodName as un, isPlugin as ut, getRequestAcceptableEncoding as v, PluginError as vt, getRequestHeader as w, isWebHandlerProvider as wt, getRequestAcceptableCharsets as x, isHandler as xt, getRequestAcceptableEncodings as y, PluginErrorCode as yt, setResponseHeaderContentType as z, ErrorHandlerOptions as zt };
|
|
1755
|
+
//# sourceMappingURL=index-6qjxyFZh.d.mts.map
|
package/dist/node.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as AppOptions, $t as
|
|
1
|
+
import { $ as AppOptions, $t as HandlerType, A as sendFormat, At as NodeHandler, B as setResponseHeaderAttachment, Bt as HandlerAfterListener, C as getRequestAcceptableContentTypes, Ct as isWebHandler, D as setResponseContentTypeByFileName, Dt as WebHandlerProvider, E as toResponse, Et as WebHandler, F as SendFileStats, Ft as Handler, G as EventStreamHandle, Gt as PathMatcher, H as appendResponseHeader, Ht as HandlerBeforeListener, I as sendFile, It as HandlerOptions, J as EventStreamListener, Jt as PathMatcherExecResult, K as EventStreamOptions, Kt as IPathMatcher, L as sendCreated, Lt as defineErrorHandler, M as SendFileContentOptions, Mt as defineCoreHandler, N as SendFileDisposition, Nt as CoreHandler, O as sendStream, Ot as fromNodeHandler, P as SendFileOptions, Pt as CoreHandlerOptions, Q as AppContext, Qt as HandlerSymbol, R as sendAccepted, Rt as ErrorHandler, S as getRequestAcceptableContentType, St as isHandlerOptions, T as isRequestCacheable, Tt as fromWebHandler, U as appendResponseHeaderDirective, Ut as HandlerErrorListener, V as setResponseHeaderInline, Vt as HandlerBaseOptions, W as serializeEventStreamMessage, Wt as isPath, X as ResponseCacheHeadersOptions, Xt as isError, Y as EventStreamMessage, Yt as PathMatcherOptions, Z as setResponseCacheHeaders, Zt as createError, _ as getRequestAcceptableLanguages, _t as isPluginError, a as SmartRouter, an as AppRequest, at as Route, b as getRequestAcceptableCharset, bt as matchHandlerMethod, c as RequestProtocolOptions, cn as NextFn, ct as LruCacheOptions, d as RequestIpOptions, dn as MethodNameLike, dt as Plugin, en as DispatcherEvent, et as AppOptionsInput, f as getRequestIP, fn as AppError, ft as PluginInstallContext, g as getRequestAcceptableLanguage, gt as PluginAlreadyInstalledError, h as matchRequestContentType, ht as PluginInstallError, i as TrieRouter, in as AppEventCreateContext, it as ObjectLiteral, j as SendFileContent, jt as NodeMiddleware, k as sendRedirect, kt as fromNodeMiddleware, l as getRequestProtocol, ln as HeaderName, lt as ICache, m as getRequestHostName, mn as HTTPErrorInput, mt as PluginNotInstalledError, n as App, nn as IDispatcherEvent, nt as BaseRouterOptions, o as SmartRouterOptions, on as AppResponse, ot as RouteMatch, p as RequestHostNameOptions, pn as ErrorSymbol, pt as PluginInstallFn, q as createEventStream, qt as Path, r as buildRoutePathMatcher, rn as AppEvent, rt as IRouter, s as LinearRouter, sn as IAppEvent, st as LruCache, t as normalizeAppOptions, tn as IDispatcher, tt as IApp, u as useRequestNegotiator, un as MethodName, ut as isPlugin, v as getRequestAcceptableEncoding, vt as PluginError, w as getRequestHeader, wt as isWebHandlerProvider, x as getRequestAcceptableCharsets, xt as isHandler, y as getRequestAcceptableEncodings, yt as PluginErrorCode, z as setResponseHeaderContentType, zt as ErrorHandlerOptions } from "./index-6qjxyFZh.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,
|
|
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, PluginAlreadyInstalledError, 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, sendAccepted, sendCreated, 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 isError, A as fromWebHandler, B as DispatcherEvent, C as getRequestAcceptableEncodings, D as matchHandlerMethod, E as isRequestCacheable, F as defineErrorHandler, G as getRequestAcceptableContentTypes, H as sendRedirect, I as defineCoreHandler, J as sendFile, K as useRequestNegotiator, L as Handler, M as isWebHandlerProvider, N as fromNodeHandler, O as isHandler, P as fromNodeMiddleware, Q as createError, R as HandlerSymbol, S as getRequestAcceptableEncoding, T as getRequestAcceptableCharsets, U as sendFormat, V as sendStream, W as getRequestAcceptableContentType, X as sendAccepted, Y as sendCreated, Z as toResponse, _ as getRequestIP, a as LinearRouter, at as appendResponseHeaderDirective, b as getRequestAcceptableLanguage, c as PluginNotInstalledError, ct as AppError, d as PluginError, dt as AppEvent, et as setResponseHeaderContentType, f as isPluginError, ft as HeaderName, g as getRequestProtocol, h as PathMatcher, i as TrieRouter, it as appendResponseHeader, j as isWebHandler, k as isHandlerOptions, l as PluginInstallError, lt as ErrorSymbol, m as isPath, mt as LruCache, n as normalizeAppOptions, nt as setResponseHeaderInline, o as buildRoutePathMatcher, ot as createEventStream, p as PluginErrorCode, pt as MethodName, q as getRequestHeader, r as SmartRouter, rt as setResponseContentTypeByFileName, s as isPlugin, st as serializeEventStreamMessage, t as App, tt as setResponseHeaderAttachment, u as PluginAlreadyInstalledError, ut as setResponseCacheHeaders, v as getRequestHostName, w as getRequestAcceptableCharset, x as getRequestAcceptableLanguages, y as matchRequestContentType, z as HandlerType } from "./src-
|
|
1
|
+
import { $ as isError, A as fromWebHandler, B as DispatcherEvent, C as getRequestAcceptableEncodings, D as matchHandlerMethod, E as isRequestCacheable, F as defineErrorHandler, G as getRequestAcceptableContentTypes, H as sendRedirect, I as defineCoreHandler, J as sendFile, K as useRequestNegotiator, L as Handler, M as isWebHandlerProvider, N as fromNodeHandler, O as isHandler, P as fromNodeMiddleware, Q as createError, R as HandlerSymbol, S as getRequestAcceptableEncoding, T as getRequestAcceptableCharsets, U as sendFormat, V as sendStream, W as getRequestAcceptableContentType, X as sendAccepted, Y as sendCreated, Z as toResponse, _ as getRequestIP, a as LinearRouter, at as appendResponseHeaderDirective, b as getRequestAcceptableLanguage, c as PluginNotInstalledError, ct as AppError, d as PluginError, dt as AppEvent, et as setResponseHeaderContentType, f as isPluginError, ft as HeaderName, g as getRequestProtocol, h as PathMatcher, i as TrieRouter, it as appendResponseHeader, j as isWebHandler, k as isHandlerOptions, l as PluginInstallError, lt as ErrorSymbol, m as isPath, mt as LruCache, n as normalizeAppOptions, nt as setResponseHeaderInline, o as buildRoutePathMatcher, ot as createEventStream, p as PluginErrorCode, pt as MethodName, q as getRequestHeader, r as SmartRouter, rt as setResponseContentTypeByFileName, s as isPlugin, st as serializeEventStreamMessage, t as App, tt as setResponseHeaderAttachment, u as PluginAlreadyInstalledError, ut as setResponseCacheHeaders, v as getRequestHostName, w as getRequestAcceptableCharset, x as getRequestAcceptableLanguages, y as matchRequestContentType, z as HandlerType } from "./src-BfsqxIfL.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) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as AppOptions, $t as
|
|
1
|
+
import { $ as AppOptions, $t as HandlerType, A as sendFormat, At as NodeHandler, B as setResponseHeaderAttachment, Bt as HandlerAfterListener, C as getRequestAcceptableContentTypes, Ct as isWebHandler, D as setResponseContentTypeByFileName, Dt as WebHandlerProvider, E as toResponse, Et as WebHandler, F as SendFileStats, Ft as Handler, G as EventStreamHandle, Gt as PathMatcher, H as appendResponseHeader, Ht as HandlerBeforeListener, I as sendFile, It as HandlerOptions, J as EventStreamListener, Jt as PathMatcherExecResult, K as EventStreamOptions, Kt as IPathMatcher, L as sendCreated, Lt as defineErrorHandler, M as SendFileContentOptions, Mt as defineCoreHandler, N as SendFileDisposition, Nt as CoreHandler, O as sendStream, Ot as fromNodeHandler, P as SendFileOptions, Pt as CoreHandlerOptions, Q as AppContext, Qt as HandlerSymbol, R as sendAccepted, Rt as ErrorHandler, S as getRequestAcceptableContentType, St as isHandlerOptions, T as isRequestCacheable, Tt as fromWebHandler, U as appendResponseHeaderDirective, Ut as HandlerErrorListener, V as setResponseHeaderInline, Vt as HandlerBaseOptions, W as serializeEventStreamMessage, Wt as isPath, X as ResponseCacheHeadersOptions, Xt as isError, Y as EventStreamMessage, Yt as PathMatcherOptions, Z as setResponseCacheHeaders, Zt as createError, _ as getRequestAcceptableLanguages, _t as isPluginError, a as SmartRouter, an as AppRequest, at as Route, b as getRequestAcceptableCharset, bt as matchHandlerMethod, c as RequestProtocolOptions, cn as NextFn, ct as LruCacheOptions, d as RequestIpOptions, dn as MethodNameLike, dt as Plugin, en as DispatcherEvent, et as AppOptionsInput, f as getRequestIP, fn as AppError, ft as PluginInstallContext, g as getRequestAcceptableLanguage, gt as PluginAlreadyInstalledError, h as matchRequestContentType, ht as PluginInstallError, i as TrieRouter, in as AppEventCreateContext, it as ObjectLiteral, j as SendFileContent, jt as NodeMiddleware, k as sendRedirect, kt as fromNodeMiddleware, l as getRequestProtocol, ln as HeaderName, lt as ICache, m as getRequestHostName, mn as HTTPErrorInput, mt as PluginNotInstalledError, n as App, nn as IDispatcherEvent, nt as BaseRouterOptions, o as SmartRouterOptions, on as AppResponse, ot as RouteMatch, p as RequestHostNameOptions, pn as ErrorSymbol, pt as PluginInstallFn, q as createEventStream, qt as Path, r as buildRoutePathMatcher, rn as AppEvent, rt as IRouter, s as LinearRouter, sn as IAppEvent, st as LruCache, t as normalizeAppOptions, tn as IDispatcher, tt as IApp, u as useRequestNegotiator, un as MethodName, ut as isPlugin, v as getRequestAcceptableEncoding, vt as PluginError, w as getRequestHeader, wt as isWebHandlerProvider, x as getRequestAcceptableCharsets, xt as isHandler, y as getRequestAcceptableEncodings, yt as PluginErrorCode, z as setResponseHeaderContentType, zt as ErrorHandlerOptions } from "./index-6qjxyFZh.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,
|
|
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, PluginAlreadyInstalledError, 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, sendAccepted, sendCreated, 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 isError, A as fromWebHandler, B as DispatcherEvent, C as getRequestAcceptableEncodings, D as matchHandlerMethod, E as isRequestCacheable, F as defineErrorHandler, G as getRequestAcceptableContentTypes, H as sendRedirect, I as defineCoreHandler, J as sendFile, K as useRequestNegotiator, L as Handler, M as isWebHandlerProvider, N as fromNodeHandler, O as isHandler, P as fromNodeMiddleware, Q as createError, R as HandlerSymbol, S as getRequestAcceptableEncoding, T as getRequestAcceptableCharsets, U as sendFormat, V as sendStream, W as getRequestAcceptableContentType, X as sendAccepted, Y as sendCreated, Z as toResponse, _ as getRequestIP, a as LinearRouter, at as appendResponseHeaderDirective, b as getRequestAcceptableLanguage, c as PluginNotInstalledError, ct as AppError, d as PluginError, dt as AppEvent, et as setResponseHeaderContentType, f as isPluginError, ft as HeaderName, g as getRequestProtocol, h as PathMatcher, i as TrieRouter, it as appendResponseHeader, j as isWebHandler, k as isHandlerOptions, l as PluginInstallError, lt as ErrorSymbol, m as isPath, mt as LruCache, n as normalizeAppOptions, nt as setResponseHeaderInline, o as buildRoutePathMatcher, ot as createEventStream, p as PluginErrorCode, pt as MethodName, q as getRequestHeader, r as SmartRouter, rt as setResponseContentTypeByFileName, s as isPlugin, st as serializeEventStreamMessage, t as App, tt as setResponseHeaderAttachment, u as PluginAlreadyInstalledError, ut as setResponseCacheHeaders, v as getRequestHostName, w as getRequestAcceptableCharset, x as getRequestAcceptableLanguages, y as matchRequestContentType, z as HandlerType } from "./src-
|
|
1
|
+
import { $ as isError, A as fromWebHandler, B as DispatcherEvent, C as getRequestAcceptableEncodings, D as matchHandlerMethod, E as isRequestCacheable, F as defineErrorHandler, G as getRequestAcceptableContentTypes, H as sendRedirect, I as defineCoreHandler, J as sendFile, K as useRequestNegotiator, L as Handler, M as isWebHandlerProvider, N as fromNodeHandler, O as isHandler, P as fromNodeMiddleware, Q as createError, R as HandlerSymbol, S as getRequestAcceptableEncoding, T as getRequestAcceptableCharsets, U as sendFormat, V as sendStream, W as getRequestAcceptableContentType, X as sendAccepted, Y as sendCreated, Z as toResponse, _ as getRequestIP, a as LinearRouter, at as appendResponseHeaderDirective, b as getRequestAcceptableLanguage, c as PluginNotInstalledError, ct as AppError, d as PluginError, dt as AppEvent, et as setResponseHeaderContentType, f as isPluginError, ft as HeaderName, g as getRequestProtocol, h as PathMatcher, i as TrieRouter, it as appendResponseHeader, j as isWebHandler, k as isHandlerOptions, l as PluginInstallError, lt as ErrorSymbol, m as isPath, mt as LruCache, n as normalizeAppOptions, nt as setResponseHeaderInline, o as buildRoutePathMatcher, ot as createEventStream, p as PluginErrorCode, pt as MethodName, q as getRequestHeader, r as SmartRouter, rt as setResponseContentTypeByFileName, s as isPlugin, st as serializeEventStreamMessage, t as App, tt as setResponseHeaderAttachment, u as PluginAlreadyInstalledError, ut as setResponseCacheHeaders, v as getRequestHostName, w as getRequestAcceptableCharset, x as getRequestAcceptableLanguages, y as matchRequestContentType, z as HandlerType } from "./src-BfsqxIfL.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) {
|