@fedify/fedify 1.10.9 → 1.10.10

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 (121) hide show
  1. package/dist/{actor-z4bjwAPy.mjs → actor-DZtfiGD5.mjs} +1 -1
  2. package/dist/{actor-CMBXPdjk.js → actor-q2gTvEOg.js} +187 -187
  3. package/dist/{actor-DSmY7of0.cjs → actor-yCME0Muf.cjs} +187 -187
  4. package/dist/{authdocloader-YXazGK4I.cjs → authdocloader-C9ucnURr.cjs} +3 -3
  5. package/dist/{authdocloader-B4QKchy5.js → authdocloader-CjcVKv5l.js} +3 -3
  6. package/dist/{authdocloader-C7iVUcxr.mjs → authdocloader-Dxs4mL_P.mjs} +3 -3
  7. package/dist/{builder-C3PFAtTV.mjs → builder-DBBCeuJN.mjs} +4 -4
  8. package/dist/{client-C-xdpu6M.mjs → client-DfSKNItx.mjs} +1 -1
  9. package/dist/compat/mod.cjs +1 -1
  10. package/dist/compat/mod.d.cts +1 -1
  11. package/dist/compat/mod.d.ts +1 -1
  12. package/dist/compat/transformers.test.mjs +3 -3
  13. package/dist/{context-BzSr5FCW.d.cts → context-CC4UrGc5.d.cts} +48 -6
  14. package/dist/{context-CyacVopT.d.ts → context-xfiK4xM5.d.ts} +48 -6
  15. package/dist/{docloader-DXUkyjIx.js → docloader-D8qb26Gj.js} +1 -1
  16. package/dist/{docloader-9cG6ESUw.cjs → docloader-DR98w4wL.cjs} +1 -1
  17. package/dist/{esm-Bfj-SwEx.mjs → esm-onODA711.mjs} +1 -1
  18. package/dist/federation/builder.test.mjs +3 -3
  19. package/dist/federation/collection.test.mjs +1 -1
  20. package/dist/federation/handler.test.mjs +1362 -46
  21. package/dist/federation/idempotency.test.mjs +5 -5
  22. package/dist/federation/inbox.test.mjs +3 -3
  23. package/dist/federation/keycache.test.mjs +3 -3
  24. package/dist/federation/kv.test.mjs +1 -1
  25. package/dist/federation/middleware.test.mjs +1586 -82
  26. package/dist/federation/mod.cjs +2 -2
  27. package/dist/federation/mod.d.cts +1 -1
  28. package/dist/federation/mod.d.ts +1 -1
  29. package/dist/federation/mod.js +1 -1
  30. package/dist/federation/mq.test.mjs +3 -3
  31. package/dist/federation/retry.test.mjs +2 -2
  32. package/dist/federation/router.test.mjs +2 -2
  33. package/dist/federation/send.test.mjs +8 -8
  34. package/dist/federation/temporal.test.d.mts +2 -0
  35. package/dist/federation/temporal.test.mjs +71 -0
  36. package/dist/{http-CuloN7xQ.js → http-D6Qz3p20.js} +3 -3
  37. package/dist/{http-D5CDiVKf.mjs → http-DyCX-dN3.mjs} +2 -2
  38. package/dist/{http-LjaXmp2m.cjs → http-mdiWJYia.cjs} +3 -3
  39. package/dist/{inbox-D0Mzd940.mjs → inbox-BZN50kyQ.mjs} +7 -4
  40. package/dist/{key-Dnc1ekhA.mjs → key-CSH0Pfat.mjs} +2 -2
  41. package/dist/{key-CXkrXfz6.cjs → key-DPzMtgeE.cjs} +1 -1
  42. package/dist/{key-B22mXs2u.cjs → key-DRfL8gil.cjs} +2 -2
  43. package/dist/{key-B5QN42gR.mjs → key-DXUAJBZu.mjs} +1 -1
  44. package/dist/{key-D1PkkNK-.js → key-TRp8WTUL.js} +2 -2
  45. package/dist/{keycache-DwDRFAp7.mjs → keycache-DETDxpbh.mjs} +1 -1
  46. package/dist/{keys-C4Ms2Cy-.mjs → keys-8FIoKqmB.mjs} +1 -1
  47. package/dist/ld-BaJmhpEa.mjs +548 -0
  48. package/dist/{lookup-D0d32cZH.cjs → lookup-B7TLaXFf.cjs} +1 -1
  49. package/dist/{lookup-B8rOR_1a.js → lookup-C6wM-gq1.js} +1 -1
  50. package/dist/{lookup-Br7I7sqm.mjs → lookup-CX2yfN-X.mjs} +1 -1
  51. package/dist/{middleware-BlsPkr2X.mjs → middleware-BJ7otoEC.mjs} +1 -1
  52. package/dist/{middleware-BbgpZrsX.mjs → middleware-BQ6evC7E.mjs} +320 -87
  53. package/dist/{middleware-CYNQWJ-D.js → middleware-BXc5M6YG.js} +408 -83
  54. package/dist/{middleware-0yq2uipZ.cjs → middleware-DpVqFb2x.cjs} +411 -85
  55. package/dist/{middleware-BRXIidLb.cjs → middleware-cNynSnF6.cjs} +1 -1
  56. package/dist/mod.cjs +10 -10
  57. package/dist/mod.d.cts +1 -1
  58. package/dist/mod.d.ts +1 -1
  59. package/dist/mod.js +9 -9
  60. package/dist/nodeinfo/client.test.mjs +3 -3
  61. package/dist/nodeinfo/handler.test.mjs +2 -2
  62. package/dist/nodeinfo/mod.cjs +1 -1
  63. package/dist/nodeinfo/mod.js +1 -1
  64. package/dist/nodeinfo/semver.test.mjs +1 -1
  65. package/dist/nodeinfo/types.test.mjs +1 -1
  66. package/dist/otel/exporter.test.mjs +1 -1
  67. package/dist/otel/mod.cjs +1 -1
  68. package/dist/{owner-D32qC-wF.mjs → owner-CLGVwm9P.mjs} +3 -3
  69. package/dist/{proof-DE2Z0_uv.cjs → proof-BVB37JmB.cjs} +347 -5
  70. package/dist/{proof-B67QOiuS.mjs → proof-CAOvY-AP.mjs} +2 -2
  71. package/dist/{proof-u5ivh_eA.js → proof-DxQL08gJ.js} +300 -6
  72. package/dist/runtime/authdocloader.test.mjs +6 -6
  73. package/dist/runtime/docloader.test.mjs +4 -4
  74. package/dist/runtime/key.test.mjs +3 -3
  75. package/dist/runtime/langstr.test.mjs +2 -2
  76. package/dist/runtime/link.test.mjs +2 -2
  77. package/dist/runtime/mod.cjs +3 -3
  78. package/dist/runtime/mod.js +3 -3
  79. package/dist/runtime/multibase/multibase.test.mjs +2 -2
  80. package/dist/runtime/url.test.mjs +2 -2
  81. package/dist/{send-7RGxOhrY.mjs → send-BFClgq8T.mjs} +2 -2
  82. package/dist/sig/http.test.mjs +6 -6
  83. package/dist/sig/key.test.mjs +4 -4
  84. package/dist/sig/ld.test.mjs +561 -5
  85. package/dist/sig/mod.cjs +3 -3
  86. package/dist/sig/mod.js +3 -3
  87. package/dist/sig/owner.test.mjs +6 -6
  88. package/dist/sig/proof.test.mjs +4 -4
  89. package/dist/temporal-lmewfA7Y.mjs +95 -0
  90. package/dist/testing/docloader.test.mjs +1 -1
  91. package/dist/testing/mod.d.mts +48 -6
  92. package/dist/testing/mod.mjs +1 -1
  93. package/dist/{testing-zWgaXBJW.mjs → testing-B9FmxxlI.mjs} +2 -2
  94. package/dist/{transformers-BdbEtUZU.cjs → transformers-KRl8YJCO.cjs} +1 -1
  95. package/dist/{types-6_pWuZfK.js → types-B0aIcMDF.js} +1 -1
  96. package/dist/{types-ec4G8nGs.cjs → types-DPWiFqle.cjs} +1 -1
  97. package/dist/vocab/actor.test.mjs +4 -4
  98. package/dist/vocab/cjs.test.mjs +1 -1
  99. package/dist/vocab/lookup.test.mjs +5 -5
  100. package/dist/vocab/mod.cjs +3 -3
  101. package/dist/vocab/mod.js +3 -3
  102. package/dist/vocab/type.test.mjs +2 -2
  103. package/dist/vocab/vocab.test.mjs +3 -3
  104. package/dist/{vocab-C60RNInZ.mjs → vocab-DP9A9TjH.mjs} +186 -186
  105. package/dist/webfinger/handler.test.mjs +3 -3
  106. package/dist/webfinger/lookup.test.mjs +3 -3
  107. package/dist/webfinger/mod.cjs +1 -1
  108. package/dist/webfinger/mod.js +1 -1
  109. package/dist/x/cfworkers.cjs +1 -1
  110. package/dist/x/cfworkers.test.mjs +1 -1
  111. package/dist/x/hono.cjs +1 -1
  112. package/dist/x/hono.d.cts +1 -1
  113. package/dist/x/hono.d.ts +1 -1
  114. package/dist/x/sveltekit.cjs +1 -1
  115. package/dist/x/sveltekit.d.cts +1 -1
  116. package/dist/x/sveltekit.d.ts +1 -1
  117. package/package.json +1 -1
  118. package/dist/ld-BJ8BZLC8.mjs +0 -254
  119. /package/dist/{denokv-NJPMXyK0.mjs → denokv-B0ZRIDsH.mjs} +0 -0
  120. /package/dist/{otel-0v4Zy01l.mjs → otel-D00WjYJ1.mjs} +0 -0
  121. /package/dist/{retry-Ddbq3AcK.mjs → retry-B_E3V_Dx.mjs} +0 -0
@@ -0,0 +1,95 @@
1
+ import { Temporal } from "@js-temporal/polyfill";
2
+ import "urlpattern-polyfill";
3
+ globalThis.addEventListener = () => {};
4
+ import { c as getNormalizationContextLoader } from "./ld-BaJmhpEa.mjs";
5
+ import jsonld from "jsonld";
6
+ //#region src/federation/temporal.ts
7
+ function isPlainObject(value) {
8
+ return typeof value === "object" && value != null && !Array.isArray(value);
9
+ }
10
+ function normalizeDateTimeLiteral(value) {
11
+ return value.substring(19).match(/[Z+-]/) ? value : value + "Z";
12
+ }
13
+ function isMalformedDateTimeLiteral(value) {
14
+ if (typeof value !== "string") return false;
15
+ try {
16
+ Temporal.Instant.from(normalizeDateTimeLiteral(value));
17
+ return false;
18
+ } catch {
19
+ return true;
20
+ }
21
+ }
22
+ function isMalformedDurationLiteral(value) {
23
+ if (typeof value !== "string") return false;
24
+ try {
25
+ Temporal.Duration.from(value);
26
+ return false;
27
+ } catch {
28
+ return true;
29
+ }
30
+ }
31
+ const TEMPORAL_DATE_TIME_IRIS = new Set([
32
+ "https://www.w3.org/ns/activitystreams#deleted",
33
+ "https://www.w3.org/ns/activitystreams#endTime",
34
+ "https://www.w3.org/ns/activitystreams#published",
35
+ "https://www.w3.org/ns/activitystreams#startTime",
36
+ "https://www.w3.org/ns/activitystreams#updated",
37
+ "http://purl.org/dc/terms/created",
38
+ "https://w3id.org/security#created"
39
+ ]);
40
+ const TEMPORAL_DURATION_IRIS = new Set(["https://www.w3.org/ns/activitystreams#duration"]);
41
+ const QUESTION_CLOSED_IRI = "https://www.w3.org/ns/activitystreams#closed";
42
+ const XSD_DATE_TIME_IRI = "http://www.w3.org/2001/XMLSchema#dateTime";
43
+ function hasMalformedExpandedDateTimeLiteral(value) {
44
+ if (Array.isArray(value)) return value.some(hasMalformedExpandedDateTimeLiteral);
45
+ return isPlainObject(value) && "@value" in value && isMalformedDateTimeLiteral(value["@value"]);
46
+ }
47
+ function hasMalformedExpandedQuestionClosedLiteral(value) {
48
+ if (Array.isArray(value)) return value.some(hasMalformedExpandedQuestionClosedLiteral);
49
+ if (!isPlainObject(value) || !("@value" in value)) return false;
50
+ const literal = value["@value"];
51
+ if (typeof literal === "boolean") return false;
52
+ if (typeof literal !== "string") return false;
53
+ if (value["@type"] !== XSD_DATE_TIME_IRI) return false;
54
+ if (new Date(literal).toString() === "Invalid Date") return false;
55
+ return isMalformedDateTimeLiteral(literal);
56
+ }
57
+ function hasMalformedExpandedDurationLiteral(value) {
58
+ if (Array.isArray(value)) return value.some(hasMalformedExpandedDurationLiteral);
59
+ return isPlainObject(value) && "@value" in value && isMalformedDurationLiteral(value["@value"]);
60
+ }
61
+ function hasMalformedKnownTemporalLiteralInternal(value, visited) {
62
+ if (Array.isArray(value)) return value.some((item) => hasMalformedKnownTemporalLiteralInternal(item, visited));
63
+ if (!isPlainObject(value)) return false;
64
+ if (visited.has(value)) return false;
65
+ visited.add(value);
66
+ if ("@value" in value) return false;
67
+ for (const [key, child] of Object.entries(value)) {
68
+ if (TEMPORAL_DATE_TIME_IRIS.has(key)) {
69
+ if (hasMalformedExpandedDateTimeLiteral(child)) return true;
70
+ continue;
71
+ }
72
+ if (key === QUESTION_CLOSED_IRI) {
73
+ if (hasMalformedExpandedQuestionClosedLiteral(child)) return true;
74
+ continue;
75
+ }
76
+ if (TEMPORAL_DURATION_IRIS.has(key)) {
77
+ if (hasMalformedExpandedDurationLiteral(child)) return true;
78
+ continue;
79
+ }
80
+ if (hasMalformedKnownTemporalLiteralInternal(child, visited)) return true;
81
+ }
82
+ return false;
83
+ }
84
+ async function hasMalformedKnownTemporalLiteral(value, contextLoader) {
85
+ try {
86
+ return hasMalformedKnownTemporalLiteralInternal(await jsonld.expand(value, {
87
+ documentLoader: getNormalizationContextLoader(contextLoader),
88
+ keepFreeFloatingNodes: true
89
+ }), /* @__PURE__ */ new Set());
90
+ } catch {
91
+ return false;
92
+ }
93
+ }
94
+ //#endregion
95
+ export { hasMalformedKnownTemporalLiteral as t };
@@ -1,7 +1,7 @@
1
1
  import "@js-temporal/polyfill";
2
2
  import "urlpattern-polyfill";
3
3
  globalThis.addEventListener = () => {};
4
- import { a as mockDocumentLoader, t as test } from "../testing-zWgaXBJW.mjs";
4
+ import { a as mockDocumentLoader, t as test } from "../testing-B9FmxxlI.mjs";
5
5
  import { t as assertEquals } from "../assert_equals-Ew3jOFa3.mjs";
6
6
  import "../std__assert-2v7gYiZp.mjs";
7
7
  //#region src/testing/docloader.test.ts
@@ -7406,6 +7406,42 @@ interface InboxMessage {
7406
7406
  id: ReturnType<typeof crypto.randomUUID>;
7407
7407
  baseUrl: string;
7408
7408
  activity: unknown;
7409
+ /**
7410
+ * The normalized JSON-LD representation of a signed inbox activity that
7411
+ * Fedify already compacted successfully while accepting the request. Queue
7412
+ * workers can reuse this producer-side parse cache under stricter loader or
7413
+ * network constraints without changing the raw payload preserved for
7414
+ * forwarding.
7415
+ *
7416
+ * This may exist even when {@link ldSignatureVerified} is `false`, because
7417
+ * fallback-authenticated traffic and already-queued backlog items can still
7418
+ * depend on the cached normalized form to avoid re-fetching remote custom
7419
+ * contexts during worker processing.
7420
+ *
7421
+ * This is optional for backward compatibility with messages that were
7422
+ * queued by older Fedify versions or that were already in a queue before
7423
+ * upgrading.
7424
+ *
7425
+ * Fedify keeps this on the queued message itself instead of an external
7426
+ * sidecar because generic queue backends do not provide reliable lifecycle
7427
+ * guarantees for auxiliary storage across retries and redeliveries.
7428
+ *
7429
+ * @internal
7430
+ */
7431
+ normalizedActivity?: unknown;
7432
+ /**
7433
+ * Whether the producer actually verified the Linked Data Signature before
7434
+ * queueing this message. This lets workers distinguish verified LDS replay
7435
+ * from other authenticated inbox traffic that merely happened to include a
7436
+ * signature block. This provenance marker is separate from the optional
7437
+ * normalizedActivity parse cache.
7438
+ *
7439
+ * `undefined` preserves backward compatibility with older queued messages
7440
+ * that predate this marker.
7441
+ *
7442
+ * @internal
7443
+ */
7444
+ ldSignatureVerified?: boolean;
7409
7445
  started: string;
7410
7446
  attempt: number;
7411
7447
  identifier: string | null;
@@ -8630,9 +8666,12 @@ interface InboxContext<TContextData> extends Context<TContextData> {
8630
8666
  * Forwards a received activity to the recipients' inboxes. The forwarded
8631
8667
  * activity will be signed in HTTP Signatures by the forwarder, but its
8632
8668
  * payload will not be modified, i.e., Linked Data Signatures and Object
8633
- * Integrity Proofs will not be added. Therefore, if the activity is not
8634
- * signed (i.e., it has neither Linked Data Signatures nor Object Integrity
8635
- * Proofs), the recipient probably will not trust the activity.
8669
+ * Integrity Proofs will not be added. Even when Fedify internally
8670
+ * normalizes a Linked Data Signature activity for parsing, this method still
8671
+ * forwards the original received payload so the sender's signatures/proofs
8672
+ * are preserved as-is. Therefore, if the activity is not signed (i.e., it
8673
+ * has neither Linked Data Signatures nor Object Integrity Proofs), the
8674
+ * recipient probably will not trust the activity.
8636
8675
  * @param forwarder The forwarder's identifier or the forwarder's username
8637
8676
  * or the forwarder's key pair(s).
8638
8677
  * @param recipients The recipients of the activity.
@@ -8650,9 +8689,12 @@ interface InboxContext<TContextData> extends Context<TContextData> {
8650
8689
  * Forwards a received activity to the recipients' inboxes. The forwarded
8651
8690
  * activity will be signed in HTTP Signatures by the forwarder, but its
8652
8691
  * payload will not be modified, i.e., Linked Data Signatures and Object
8653
- * Integrity Proofs will not be added. Therefore, if the activity is not
8654
- * signed (i.e., it has neither Linked Data Signatures nor Object Integrity
8655
- * Proofs), the recipient probably will not trust the activity.
8692
+ * Integrity Proofs will not be added. Even when Fedify internally
8693
+ * normalizes a Linked Data Signature activity for parsing, this method still
8694
+ * forwards the original received payload so the sender's signatures/proofs
8695
+ * are preserved as-is. Therefore, if the activity is not signed (i.e., it
8696
+ * has neither Linked Data Signatures nor Object Integrity Proofs), the
8697
+ * recipient probably will not trust the activity.
8656
8698
  * @param forwarder The forwarder's identifier or the forwarder's username.
8657
8699
  * @param recipients In this case, it must be `"followers"`.
8658
8700
  * @param options Options for forwarding the activity.
@@ -1,5 +1,5 @@
1
1
  import "@js-temporal/polyfill";
2
2
  import "urlpattern-polyfill";
3
3
  globalThis.addEventListener = () => {};
4
- import { i as createRequestContext, n as testDefinitions, r as createInboxContext, t as test } from "../testing-zWgaXBJW.mjs";
4
+ import { i as createRequestContext, n as testDefinitions, r as createInboxContext, t as test } from "../testing-B9FmxxlI.mjs";
5
5
  export { createInboxContext, createRequestContext, test, testDefinitions };
@@ -1,8 +1,8 @@
1
1
  import "@js-temporal/polyfill";
2
2
  import "urlpattern-polyfill";
3
3
  globalThis.addEventListener = () => {};
4
- import { W as lookupWebFinger, ut as __require } from "./vocab-C60RNInZ.mjs";
5
- import { i as RouterError, n as traverseCollection, t as lookupObject } from "./lookup-Br7I7sqm.mjs";
4
+ import { W as lookupWebFinger, ut as __require } from "./vocab-DP9A9TjH.mjs";
5
+ import { i as RouterError, n as traverseCollection, t as lookupObject } from "./lookup-CX2yfN-X.mjs";
6
6
  import { configure, getConsoleSink, getLogger, reset } from "@logtape/logtape";
7
7
  import { trace } from "@opentelemetry/api";
8
8
  //#region src/testing/docloader.ts
@@ -1,6 +1,6 @@
1
1
  const { Temporal } = require("@js-temporal/polyfill");
2
2
  const { URLPattern } = require("urlpattern-polyfill");
3
- require("./docloader-9cG6ESUw.cjs");
3
+ require("./docloader-DR98w4wL.cjs");
4
4
  //#region src/compat/transformers.ts
5
5
  const logger = (0, require("@logtape/logtape").getLogger)([
6
6
  "fedify",
@@ -1,6 +1,6 @@
1
1
  import "@js-temporal/polyfill";
2
2
  import "urlpattern-polyfill";
3
- import { o as getUserAgent } from "./docloader-DXUkyjIx.js";
3
+ import { o as getUserAgent } from "./docloader-D8qb26Gj.js";
4
4
  import { getLogger } from "@logtape/logtape";
5
5
  //#region src/nodeinfo/semver.ts
6
6
  const MAX_LENGTH = 256;
@@ -1,6 +1,6 @@
1
1
  const { Temporal } = require("@js-temporal/polyfill");
2
2
  const { URLPattern } = require("urlpattern-polyfill");
3
- const require_docloader = require("./docloader-9cG6ESUw.cjs");
3
+ const require_docloader = require("./docloader-DR98w4wL.cjs");
4
4
  let _logtape_logtape = require("@logtape/logtape");
5
5
  //#region src/nodeinfo/semver.ts
6
6
  const MAX_LENGTH = 256;
@@ -1,15 +1,15 @@
1
1
  import "@js-temporal/polyfill";
2
2
  import "urlpattern-polyfill";
3
3
  globalThis.addEventListener = () => {};
4
- import { C as Person, E as Service, S as Organization, d as Group, lt as __exportAll, r as Application } from "../vocab-C60RNInZ.mjs";
5
- import { t as test } from "../testing-zWgaXBJW.mjs";
4
+ import { C as Person, E as Service, S as Organization, d as Group, lt as __exportAll, r as Application } from "../vocab-DP9A9TjH.mjs";
5
+ import { t as test } from "../testing-B9FmxxlI.mjs";
6
6
  import { t as assertEquals } from "../assert_equals-Ew3jOFa3.mjs";
7
7
  import { n as assertStrictEquals } from "../std__assert-2v7gYiZp.mjs";
8
8
  import { n as assertFalse, t as assertRejects } from "../assert_rejects-CJC9ThS-.mjs";
9
9
  import { t as assertThrows } from "../assert_throws-BIL7gChy.mjs";
10
10
  import { t as assert$1 } from "../assert-DikXweDx.mjs";
11
- import { a as normalizeActorHandle, i as isActor, n as getActorHandle, r as getActorTypeName, t as getActorClassByTypeName } from "../actor-z4bjwAPy.mjs";
12
- import { t as esm_default } from "../esm-Bfj-SwEx.mjs";
11
+ import { a as normalizeActorHandle, i as isActor, n as getActorHandle, r as getActorTypeName, t as getActorClassByTypeName } from "../actor-DZtfiGD5.mjs";
12
+ import { t as esm_default } from "../esm-onODA711.mjs";
13
13
  //#region ../../node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/precondition/PreconditionFailure.js
14
14
  var PreconditionFailure = class PreconditionFailure extends Error {
15
15
  constructor(interruptExecution = false) {
@@ -1,7 +1,7 @@
1
1
  import "@js-temporal/polyfill";
2
2
  import "urlpattern-polyfill";
3
3
  globalThis.addEventListener = () => {};
4
- import { t as test } from "../testing-zWgaXBJW.mjs";
4
+ import { t as test } from "../testing-B9FmxxlI.mjs";
5
5
  import { createRequire } from "node:module";
6
6
  import { strictEqual } from "node:assert";
7
7
  //#region src/vocab/cjs.test.ts
@@ -1,16 +1,16 @@
1
1
  import "@js-temporal/polyfill";
2
2
  import "urlpattern-polyfill";
3
3
  globalThis.addEventListener = () => {};
4
- import { C as Person, _ as Note, i as Collection, v as Object$1 } from "../vocab-C60RNInZ.mjs";
5
- import { n as traverseCollection, t as lookupObject } from "../lookup-Br7I7sqm.mjs";
6
- import { a as mockDocumentLoader, t as test } from "../testing-zWgaXBJW.mjs";
4
+ import { C as Person, _ as Note, i as Collection, v as Object$1 } from "../vocab-DP9A9TjH.mjs";
5
+ import { n as traverseCollection, t as lookupObject } from "../lookup-CX2yfN-X.mjs";
6
+ import { a as mockDocumentLoader, t as test } from "../testing-B9FmxxlI.mjs";
7
7
  import { t as assertEquals } from "../assert_equals-Ew3jOFa3.mjs";
8
8
  import "../std__assert-2v7gYiZp.mjs";
9
9
  import { t as assertRejects } from "../assert_rejects-CJC9ThS-.mjs";
10
10
  import { t as assertInstanceOf } from "../assert_instance_of-C4Ri6VuN.mjs";
11
11
  import { t as assert } from "../assert-DikXweDx.mjs";
12
- import { t as esm_default } from "../esm-Bfj-SwEx.mjs";
13
- import { t as createTestTracerProvider } from "../otel-0v4Zy01l.mjs";
12
+ import { t as esm_default } from "../esm-onODA711.mjs";
13
+ import { t as createTestTracerProvider } from "../otel-D00WjYJ1.mjs";
14
14
  import { deepStrictEqual } from "node:assert";
15
15
  //#region src/vocab/lookup.test.ts
16
16
  test("lookupObject()", {
@@ -1,9 +1,9 @@
1
1
  const { Temporal } = require("@js-temporal/polyfill");
2
2
  const { URLPattern } = require("urlpattern-polyfill");
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
4
- const require_docloader = require("../docloader-9cG6ESUw.cjs");
5
- const require_actor = require("../actor-DSmY7of0.cjs");
6
- const require_lookup = require("../lookup-D0d32cZH.cjs");
4
+ const require_docloader = require("../docloader-DR98w4wL.cjs");
5
+ const require_actor = require("../actor-yCME0Muf.cjs");
6
+ const require_lookup = require("../lookup-B7TLaXFf.cjs");
7
7
  let _logtape_logtape = require("@logtape/logtape");
8
8
  let _opentelemetry_api = require("@opentelemetry/api");
9
9
  let es_toolkit = require("es-toolkit");
package/dist/vocab/mod.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { Temporal } from "@js-temporal/polyfill";
2
2
  import "urlpattern-polyfill";
3
- import { d as name, f as version, i as getDocumentLoader } from "../docloader-DXUkyjIx.js";
4
- import { $ as Person, A as Flag, B as Like, C as Dislike, D as Endpoints, E as EmojiReact, F as Image, G as Multikey, H as Listen, I as IntransitiveActivity, J as Offer, K as Note, L as Invite, M as Group, N as Hashtag, O as Event, P as Ignore, Q as Page, R as Join, S as DidService, T as Emoji, Tt as getTypeId, U as Mention, V as Link, W as Move, X as OrderedCollectionPage, Y as OrderedCollection, Z as Organization, _ as CollectionPage, _t as View, a as normalizeActorHandle, at as Reject, b as DataIntegrityProof, c as Add, ct as Service, d as Arrive, dt as TentativeReject, et as Place, f as Article, ft as Tombstone, g as Collection, gt as Video, h as ChatMessage, ht as Update, i as isActor, it as Read, j as Follow, k as Export, l as Announce, lt as Source, m as Block, mt as Undo, n as getActorHandle, nt as PropertyValue, o as Accept, ot as Relationship, p as Audio, pt as Travel, q as Object$1, r as getActorTypeName, rt as Question, s as Activity, st as Remove, t as getActorClassByTypeName, tt as Profile, u as Application, ut as TentativeAccept, v as Create, w as Document, x as Delete, y as CryptographicKey, z as Leave } from "../actor-CMBXPdjk.js";
5
- import { t as lookupWebFinger } from "../lookup-B8rOR_1a.js";
3
+ import { d as name, f as version, i as getDocumentLoader } from "../docloader-D8qb26Gj.js";
4
+ import { $ as Person, A as Flag, B as Like, C as Dislike, D as Endpoints, E as EmojiReact, F as Image, G as Multikey, H as Listen, I as IntransitiveActivity, J as Offer, K as Note, L as Invite, M as Group, N as Hashtag, O as Event, P as Ignore, Q as Page, R as Join, S as DidService, T as Emoji, Tt as getTypeId, U as Mention, V as Link, W as Move, X as OrderedCollectionPage, Y as OrderedCollection, Z as Organization, _ as CollectionPage, _t as View, a as normalizeActorHandle, at as Reject, b as DataIntegrityProof, c as Add, ct as Service, d as Arrive, dt as TentativeReject, et as Place, f as Article, ft as Tombstone, g as Collection, gt as Video, h as ChatMessage, ht as Update, i as isActor, it as Read, j as Follow, k as Export, l as Announce, lt as Source, m as Block, mt as Undo, n as getActorHandle, nt as PropertyValue, o as Accept, ot as Relationship, p as Audio, pt as Travel, q as Object$1, r as getActorTypeName, rt as Question, s as Activity, st as Remove, t as getActorClassByTypeName, tt as Profile, u as Application, ut as TentativeAccept, v as Create, w as Document, x as Delete, y as CryptographicKey, z as Leave } from "../actor-q2gTvEOg.js";
5
+ import { t as lookupWebFinger } from "../lookup-C6wM-gq1.js";
6
6
  import { getLogger } from "@logtape/logtape";
7
7
  import { SpanStatusCode, trace } from "@opentelemetry/api";
8
8
  import { delay } from "es-toolkit";
@@ -1,8 +1,8 @@
1
1
  import "@js-temporal/polyfill";
2
2
  import "urlpattern-polyfill";
3
3
  globalThis.addEventListener = () => {};
4
- import { C as Person, U as getTypeId } from "../vocab-C60RNInZ.mjs";
5
- import { t as test } from "../testing-zWgaXBJW.mjs";
4
+ import { C as Person, U as getTypeId } from "../vocab-DP9A9TjH.mjs";
5
+ import { t as test } from "../testing-B9FmxxlI.mjs";
6
6
  import { t as assertEquals } from "../assert_equals-Ew3jOFa3.mjs";
7
7
  //#region src/vocab/type.test.ts
8
8
  test("getTypeId()", () => {
@@ -1,8 +1,8 @@
1
1
  import { Temporal } from "@js-temporal/polyfill";
2
2
  import "urlpattern-polyfill";
3
3
  globalThis.addEventListener = () => {};
4
- import { A as LanguageString, C as Person, D as Source, L as decode, T as Question, _ as Note, f as Hashtag, h as Link, i as Collection, k as vocab_exports, n as Announce, o as Create, s as CryptographicKey, t as Activity, u as Follow, v as Object$1, w as Place, x as OrderedCollectionPage } from "../vocab-C60RNInZ.mjs";
5
- import { a as mockDocumentLoader, t as test } from "../testing-zWgaXBJW.mjs";
4
+ import { A as LanguageString, C as Person, D as Source, L as decode, T as Question, _ as Note, f as Hashtag, h as Link, i as Collection, k as vocab_exports, n as Announce, o as Create, s as CryptographicKey, t as Activity, u as Follow, v as Object$1, w as Place, x as OrderedCollectionPage } from "../vocab-DP9A9TjH.mjs";
5
+ import { a as mockDocumentLoader, t as test } from "../testing-B9FmxxlI.mjs";
6
6
  import { t as assertEquals } from "../assert_equals-Ew3jOFa3.mjs";
7
7
  import "../std__assert-2v7gYiZp.mjs";
8
8
  import { n as assertFalse, t as assertRejects } from "../assert_rejects-CJC9ThS-.mjs";
@@ -10,7 +10,7 @@ import { t as assertInstanceOf } from "../assert_instance_of-C4Ri6VuN.mjs";
10
10
  import { t as assertNotEquals } from "../assert_not_equals--wG9hV7u.mjs";
11
11
  import { t as assertThrows } from "../assert_throws-BIL7gChy.mjs";
12
12
  import { t as assert } from "../assert-DikXweDx.mjs";
13
- import { o as rsaPublicKey1, r as ed25519PublicKey } from "../keys-C4Ms2Cy-.mjs";
13
+ import { o as rsaPublicKey1, r as ed25519PublicKey } from "../keys-8FIoKqmB.mjs";
14
14
  import { pascalCase } from "es-toolkit";
15
15
  import { parseLanguageTag } from "@phensley/language-tag";
16
16
  import { Validator } from "@cfworker/json-schema";