@xtandard/webhooks 0.1.1 → 0.1.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/cli.cjs +4 -4
- package/dist/cli.mjs +4 -4
- package/dist/{core-C9mPi4iw.mjs → core-B1JzRitF.mjs} +2 -2
- package/dist/{core-C9mPi4iw.mjs.map → core-B1JzRitF.mjs.map} +1 -1
- package/dist/{core-CF8U0hgi.cjs → core-DuHD0Rdg.cjs} +2 -2
- package/dist/{core-CF8U0hgi.cjs.map → core-DuHD0Rdg.cjs.map} +1 -1
- package/dist/core.cjs +1 -1
- package/dist/core.mjs +1 -1
- package/dist/{create-fetch-handler-BILaZ2Z7.cjs → create-fetch-handler-BNsNcspj.cjs} +3 -3
- package/dist/{create-fetch-handler-BILaZ2Z7.cjs.map → create-fetch-handler-BNsNcspj.cjs.map} +1 -1
- package/dist/{create-fetch-handler-D0F3cjoq.mjs → create-fetch-handler-C6BqzdsN.mjs} +3 -3
- package/dist/{create-fetch-handler-D0F3cjoq.mjs.map → create-fetch-handler-C6BqzdsN.mjs.map} +1 -1
- package/dist/{dispatcher-DuBrQL46.mjs → dispatcher-CFfWo-fN.mjs} +3 -3
- package/dist/{dispatcher-DuBrQL46.mjs.map → dispatcher-CFfWo-fN.mjs.map} +1 -1
- package/dist/{dispatcher-DOOCJJxM.cjs → dispatcher-COdWV6hM.cjs} +3 -3
- package/dist/{dispatcher-DOOCJJxM.cjs.map → dispatcher-COdWV6hM.cjs.map} +1 -1
- package/dist/entry-bun.cjs +1 -1
- package/dist/entry-bun.mjs +1 -1
- package/dist/entry-elysia.cjs +1 -1
- package/dist/entry-elysia.mjs +1 -1
- package/dist/entry-express.cjs +1 -1
- package/dist/entry-express.mjs +1 -1
- package/dist/entry-hono.cjs +1 -1
- package/dist/entry-hono.mjs +1 -1
- package/dist/index.cjs +3 -3
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +3 -3
- package/dist/react.css +1 -1
- package/dist/react.js +2522 -2506
- package/dist/testing.cjs +2 -2
- package/dist/testing.mjs +2 -2
- package/dist/types-react/ui/lib/portal-container.d.ts +24 -0
- package/dist/ui/assets/{index-S5t_CLOe.js → index-BgyX_njf.js} +44 -44
- package/dist/ui/assets/index-mJCJq_EB.css +1 -0
- package/dist/ui/index.html +2 -2
- package/package.json +4 -2
- package/dist/ui/assets/index-B0eoQX2U.css +0 -1
package/dist/cli.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_core = require("./core-
|
|
2
|
+
const require_core = require("./core-DuHD0Rdg.cjs");
|
|
3
3
|
//#region src/cli.ts
|
|
4
4
|
const env = (key, fallback = "") => process.env[key] ?? fallback;
|
|
5
5
|
const isTruthy = (value) => value === "1" || value.toLowerCase() === "true";
|
|
@@ -504,7 +504,7 @@ async function run(argv) {
|
|
|
504
504
|
process.stderr.write("Invalid --data: expected a JSON string.\n");
|
|
505
505
|
return 1;
|
|
506
506
|
}
|
|
507
|
-
const { newId } = await Promise.resolve().then(() => require("./core-
|
|
507
|
+
const { newId } = await Promise.resolve().then(() => require("./core-DuHD0Rdg.cjs")).then((n) => n.id_exports);
|
|
508
508
|
const { sign } = await Promise.resolve().then(() => require("./signing.cjs"));
|
|
509
509
|
const id = typeof flags.id === "string" ? flags.id : newId("msg");
|
|
510
510
|
const timestamp = typeof flags.timestamp === "string" ? Number(flags.timestamp) : Math.floor(Date.now() / 1e3);
|
|
@@ -574,7 +574,7 @@ async function run(argv) {
|
|
|
574
574
|
}
|
|
575
575
|
case "dispatch": {
|
|
576
576
|
const core = await makeCore();
|
|
577
|
-
const { createDispatcher } = await Promise.resolve().then(() => require("./dispatcher-
|
|
577
|
+
const { createDispatcher } = await Promise.resolve().then(() => require("./dispatcher-COdWV6hM.cjs")).then((n) => n.dispatcher_exports);
|
|
578
578
|
createDispatcher(core).start();
|
|
579
579
|
const [storageDesc, queueDesc] = await Promise.all([describeStorage("STORAGE"), env("QUEUE_STORAGE_DRIVER") ? describeStorage("QUEUE") : Promise.resolve("(same store)")]);
|
|
580
580
|
process.stdout.write(`[xtandard/webhooks] storage: ${storageDesc}\n`);
|
|
@@ -604,7 +604,7 @@ async function run(argv) {
|
|
|
604
604
|
const readonly = isTruthy(env("READONLY"));
|
|
605
605
|
const authMode = env("AUTH_MODE", "none");
|
|
606
606
|
const portalSecret = env("PORTAL_SECRET");
|
|
607
|
-
const { createFetchHandler } = await Promise.resolve().then(() => require("./create-fetch-handler-
|
|
607
|
+
const { createFetchHandler } = await Promise.resolve().then(() => require("./create-fetch-handler-BNsNcspj.cjs")).then((n) => n.create_fetch_handler_exports);
|
|
608
608
|
const [storage, queueStorage] = await Promise.all([buildStorage("STORAGE"), buildQueueStorage()]);
|
|
609
609
|
const { auth, authorization } = await buildAuth();
|
|
610
610
|
if (authMode === "none") process.stderr.write("[xtandard/webhooks] AUTH_MODE=none — do NOT expose this publicly without authentication.\n");
|
package/dist/cli.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { T as parseDurationList, o as createWebhooksCore, w as durationToMs } from "./core-
|
|
1
|
+
import { T as parseDurationList, o as createWebhooksCore, w as durationToMs } from "./core-B1JzRitF.mjs";
|
|
2
2
|
//#region src/cli.ts
|
|
3
3
|
const env = (key, fallback = "") => process.env[key] ?? fallback;
|
|
4
4
|
const isTruthy = (value) => value === "1" || value.toLowerCase() === "true";
|
|
@@ -503,7 +503,7 @@ async function run(argv) {
|
|
|
503
503
|
process.stderr.write("Invalid --data: expected a JSON string.\n");
|
|
504
504
|
return 1;
|
|
505
505
|
}
|
|
506
|
-
const { newId } = await import("./core-
|
|
506
|
+
const { newId } = await import("./core-B1JzRitF.mjs").then((n) => n.S);
|
|
507
507
|
const { sign } = await import("./signing.mjs");
|
|
508
508
|
const id = typeof flags.id === "string" ? flags.id : newId("msg");
|
|
509
509
|
const timestamp = typeof flags.timestamp === "string" ? Number(flags.timestamp) : Math.floor(Date.now() / 1e3);
|
|
@@ -573,7 +573,7 @@ async function run(argv) {
|
|
|
573
573
|
}
|
|
574
574
|
case "dispatch": {
|
|
575
575
|
const core = await makeCore();
|
|
576
|
-
const { createDispatcher } = await import("./dispatcher-
|
|
576
|
+
const { createDispatcher } = await import("./dispatcher-CFfWo-fN.mjs").then((n) => n.r);
|
|
577
577
|
createDispatcher(core).start();
|
|
578
578
|
const [storageDesc, queueDesc] = await Promise.all([describeStorage("STORAGE"), env("QUEUE_STORAGE_DRIVER") ? describeStorage("QUEUE") : Promise.resolve("(same store)")]);
|
|
579
579
|
process.stdout.write(`[xtandard/webhooks] storage: ${storageDesc}\n`);
|
|
@@ -603,7 +603,7 @@ async function run(argv) {
|
|
|
603
603
|
const readonly = isTruthy(env("READONLY"));
|
|
604
604
|
const authMode = env("AUTH_MODE", "none");
|
|
605
605
|
const portalSecret = env("PORTAL_SECRET");
|
|
606
|
-
const { createFetchHandler } = await import("./create-fetch-handler-
|
|
606
|
+
const { createFetchHandler } = await import("./create-fetch-handler-C6BqzdsN.mjs").then((n) => n.n);
|
|
607
607
|
const [storage, queueStorage] = await Promise.all([buildStorage("STORAGE"), buildQueueStorage()]);
|
|
608
608
|
const { auth, authorization } = await buildAuth();
|
|
609
609
|
if (authMode === "none") process.stderr.write("[xtandard/webhooks] AUTH_MODE=none — do NOT expose this publicly without authentication.\n");
|
|
@@ -218,7 +218,7 @@ function idPattern(prefix) {
|
|
|
218
218
|
* @module
|
|
219
219
|
*/
|
|
220
220
|
/** The published package version. */
|
|
221
|
-
const VERSION = "0.1.
|
|
221
|
+
const VERSION = "0.1.2";
|
|
222
222
|
//#endregion
|
|
223
223
|
//#region src/hooks/contract.ts
|
|
224
224
|
/**
|
|
@@ -1619,4 +1619,4 @@ function createWebhooksCore(options) {
|
|
|
1619
1619
|
//#endregion
|
|
1620
1620
|
export { attemptDelivery as A, newId as C, DEFAULT_ATTEMPT_TIMEOUT_MS as D, emitDelivery as E, DEFAULT_RESPONSE_BODY_LIMIT as O, id_exports as S, parseDurationList as T, normalizeHooks as _, ReadonlyError as a, VERSION as b, RESERVED_HEADERS as c, validateApplication as d, validateEndpoint as f, defaultHookErrorReporter as g, HookDeniedError as h, PayloadTooLargeError as i, buildSignedRequest as j, activeSecrets as k, ValidationError as l, validateEventType as m, IdempotencyConflictError as n, createWebhooksCore as o, validateEndpointUrl as p, NotFoundError as r, KEY_REGEX as s, ConflictError as t, assertValid as u, runAfter as v, durationToMs as w, idPattern as x, runBefore as y };
|
|
1621
1621
|
|
|
1622
|
-
//# sourceMappingURL=core-
|
|
1622
|
+
//# sourceMappingURL=core-B1JzRitF.mjs.map
|