@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.
Files changed (38) hide show
  1. package/dist/cli.cjs +4 -4
  2. package/dist/cli.mjs +4 -4
  3. package/dist/{core-C9mPi4iw.mjs → core-B1JzRitF.mjs} +2 -2
  4. package/dist/{core-C9mPi4iw.mjs.map → core-B1JzRitF.mjs.map} +1 -1
  5. package/dist/{core-CF8U0hgi.cjs → core-DuHD0Rdg.cjs} +2 -2
  6. package/dist/{core-CF8U0hgi.cjs.map → core-DuHD0Rdg.cjs.map} +1 -1
  7. package/dist/core.cjs +1 -1
  8. package/dist/core.mjs +1 -1
  9. package/dist/{create-fetch-handler-BILaZ2Z7.cjs → create-fetch-handler-BNsNcspj.cjs} +3 -3
  10. package/dist/{create-fetch-handler-BILaZ2Z7.cjs.map → create-fetch-handler-BNsNcspj.cjs.map} +1 -1
  11. package/dist/{create-fetch-handler-D0F3cjoq.mjs → create-fetch-handler-C6BqzdsN.mjs} +3 -3
  12. package/dist/{create-fetch-handler-D0F3cjoq.mjs.map → create-fetch-handler-C6BqzdsN.mjs.map} +1 -1
  13. package/dist/{dispatcher-DuBrQL46.mjs → dispatcher-CFfWo-fN.mjs} +3 -3
  14. package/dist/{dispatcher-DuBrQL46.mjs.map → dispatcher-CFfWo-fN.mjs.map} +1 -1
  15. package/dist/{dispatcher-DOOCJJxM.cjs → dispatcher-COdWV6hM.cjs} +3 -3
  16. package/dist/{dispatcher-DOOCJJxM.cjs.map → dispatcher-COdWV6hM.cjs.map} +1 -1
  17. package/dist/entry-bun.cjs +1 -1
  18. package/dist/entry-bun.mjs +1 -1
  19. package/dist/entry-elysia.cjs +1 -1
  20. package/dist/entry-elysia.mjs +1 -1
  21. package/dist/entry-express.cjs +1 -1
  22. package/dist/entry-express.mjs +1 -1
  23. package/dist/entry-hono.cjs +1 -1
  24. package/dist/entry-hono.mjs +1 -1
  25. package/dist/index.cjs +3 -3
  26. package/dist/index.d.cts +1 -1
  27. package/dist/index.d.mts +1 -1
  28. package/dist/index.mjs +3 -3
  29. package/dist/react.css +1 -1
  30. package/dist/react.js +2522 -2506
  31. package/dist/testing.cjs +2 -2
  32. package/dist/testing.mjs +2 -2
  33. package/dist/types-react/ui/lib/portal-container.d.ts +24 -0
  34. package/dist/ui/assets/{index-S5t_CLOe.js → index-BgyX_njf.js} +44 -44
  35. package/dist/ui/assets/index-mJCJq_EB.css +1 -0
  36. package/dist/ui/index.html +2 -2
  37. package/package.json +4 -2
  38. 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-CF8U0hgi.cjs");
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-CF8U0hgi.cjs")).then((n) => n.id_exports);
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-DOOCJJxM.cjs")).then((n) => n.dispatcher_exports);
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-BILaZ2Z7.cjs")).then((n) => n.create_fetch_handler_exports);
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-C9mPi4iw.mjs";
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-C9mPi4iw.mjs").then((n) => n.S);
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-DuBrQL46.mjs").then((n) => n.r);
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-D0F3cjoq.mjs").then((n) => n.n);
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.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-C9mPi4iw.mjs.map
1622
+ //# sourceMappingURL=core-B1JzRitF.mjs.map