@lunora/runtime 1.0.0-alpha.17 → 1.0.0-alpha.18
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/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { toAirbyteMessages, toFivetranResponse } from './packem_shared/toAirbyteMessages-DrHdplb4.mjs';
|
|
2
|
-
export { composeWorker, createLunoraHandler, createWorker, defineRpcEnvelope, resolveLunoraOptions, withFrameworkWorker } from './packem_shared/composeWorker-
|
|
2
|
+
export { composeWorker, createLunoraHandler, createWorker, defineRpcEnvelope, resolveLunoraOptions, withFrameworkWorker } from './packem_shared/composeWorker-CR1Z2s7k.mjs';
|
|
3
3
|
export { createCrossShardRelationCapabilities } from './packem_shared/createCrossShardRelationCapabilities-CbcWjkAn.mjs';
|
|
4
4
|
export { DEFAULT_REGISTRY_CACHE_TTL_MS, SHARD_REGISTRY_DO_NAME, createDynamicShardRegistry } from './packem_shared/DEFAULT_REGISTRY_CACHE_TTL_MS-B3pA7aXp.mjs';
|
|
5
5
|
export { LunoraError, toErrorResponse } from './packem_shared/LunoraError-Bpb9EFJ3.mjs';
|
|
@@ -1728,6 +1728,7 @@ const SCHEDULER_DISPATCH_PATH = "/_lunora/scheduler/dispatch";
|
|
|
1728
1728
|
const CRON_JOBS_RUN_PATH = "/_lunora/admin/cron-jobs/run";
|
|
1729
1729
|
const ADMIN_PATH_PREFIX = "/_lunora/admin/";
|
|
1730
1730
|
const MIGRATE_PATH = "/_lunora/migrate";
|
|
1731
|
+
const STATUS_PATH = "/_lunora/status";
|
|
1731
1732
|
const isAdminPath = (pathname) => pathname.startsWith(ADMIN_PATH_PREFIX) || pathname === MIGRATE_PATH;
|
|
1732
1733
|
const DEFAULT_AUTH_BASE_PATH = "/api/auth";
|
|
1733
1734
|
const RECORD_AUTH_EVENT_OP = "__lunora_admin__:recordAuthEvent";
|
|
@@ -2768,6 +2769,12 @@ const createWorker = (options) => {
|
|
|
2768
2769
|
};
|
|
2769
2770
|
const customRoutes = options.routes !== void 0 && Object.keys(options.routes).length > 0 ? options.routes : void 0;
|
|
2770
2771
|
const internalRoutes = {
|
|
2772
|
+
[STATUS_PATH]: (request) => {
|
|
2773
|
+
if (request.method !== "GET" && request.method !== "HEAD") {
|
|
2774
|
+
return new Response(void 0, { headers: { allow: "GET, HEAD" }, status: 405 });
|
|
2775
|
+
}
|
|
2776
|
+
return Response.json({ ok: true }, { headers: { "cache-control": "no-store" } });
|
|
2777
|
+
},
|
|
2771
2778
|
[WS_PATH]: (request, env, url) => handleWebSocketUpgrade(request, env, url),
|
|
2772
2779
|
[RPC_PATH]: (request, env, _url, context) => handleRpc(request, env, context),
|
|
2773
2780
|
[RPC_BATCH_PATH]: (request, env, _url, context) => handleBatchRpc(request, env, context),
|