@fedify/fedify 2.2.0-pr.710.24 → 2.2.0-pr.710.26

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 (45) hide show
  1. package/dist/{builder-CKJTVRhn.mjs → builder-BG2fljmM.mjs} +2 -2
  2. package/dist/compat/public-audience.test.mjs +19 -3
  3. package/dist/compat/transformers.test.mjs +1 -1
  4. package/dist/{deno-cvysscWX.mjs → deno-Bg4eBr2D.mjs} +1 -1
  5. package/dist/{docloader-BuEazLeK.mjs → docloader-DNzzLpZS.mjs} +2 -2
  6. package/dist/federation/builder.test.mjs +1 -1
  7. package/dist/federation/handler.test.mjs +2 -2
  8. package/dist/federation/idempotency.test.mjs +2 -2
  9. package/dist/federation/middleware.test.mjs +6 -6
  10. package/dist/federation/mod.cjs +1 -1
  11. package/dist/federation/mod.js +1 -1
  12. package/dist/federation/send.test.mjs +3 -3
  13. package/dist/federation/webfinger.test.mjs +1 -1
  14. package/dist/{http-B0Tu7TW-.js → http-Cbg9qm41.js} +1 -1
  15. package/dist/{http-Dy22pK-t.mjs → http-DWkREdt7.mjs} +2 -2
  16. package/dist/{http-BJ7XtRRp.cjs → http-Dgit35mk.cjs} +1 -1
  17. package/dist/{key-DXBoO6CC.mjs → key-DkuUQiqs.mjs} +1 -1
  18. package/dist/{kv-cache-Bxbq9e39.js → kv-cache-Bl6yhpBL.js} +1 -1
  19. package/dist/{kv-cache-x4KOTSSC.cjs → kv-cache-e9fvIFDA.cjs} +1 -1
  20. package/dist/{ld-BW_1mHgq.mjs → ld-1klZemqw.mjs} +2 -2
  21. package/dist/{middleware-BdpMBegR.mjs → middleware-BDpu1OCd.mjs} +1 -1
  22. package/dist/{middleware-Bu0zxHoX.mjs → middleware-D1zxydrX.mjs} +10 -10
  23. package/dist/{middleware-COjNuA6A.js → middleware-DRNKgUtw.js} +3 -3
  24. package/dist/{middleware-CRFf7Wb6.cjs → middleware-DY-mzSrv.cjs} +1 -1
  25. package/dist/{middleware-QpqLtpW9.cjs → middleware-G6DmtY5H.cjs} +4 -4
  26. package/dist/mod.cjs +4 -4
  27. package/dist/mod.js +4 -4
  28. package/dist/nodeinfo/handler.test.mjs +1 -1
  29. package/dist/{owner-CBdNJRwZ.mjs → owner-ijaWLw_K.mjs} +2 -2
  30. package/dist/{proof-7MA0dp2c.mjs → proof-BbfBQytm.mjs} +3 -3
  31. package/dist/{proof-B__J6A1_.cjs → proof-CP0GRqWY.cjs} +3 -3
  32. package/dist/{proof-Bfx0NdYz.js → proof-CQJHVvjQ.js} +3 -3
  33. package/dist/{public-audience-5WWE-JTr.mjs → public-audience-eovWqzOF.mjs} +2 -2
  34. package/dist/{send-9BckNAN-.mjs → send-CJyp2e8W.mjs} +2 -2
  35. package/dist/sig/http.test.mjs +2 -2
  36. package/dist/sig/key.test.mjs +1 -1
  37. package/dist/sig/ld.test.mjs +2 -2
  38. package/dist/sig/mod.cjs +2 -2
  39. package/dist/sig/mod.js +2 -2
  40. package/dist/sig/owner.test.mjs +1 -1
  41. package/dist/sig/proof.test.mjs +2 -2
  42. package/dist/utils/docloader.test.mjs +2 -2
  43. package/dist/utils/mod.cjs +1 -1
  44. package/dist/utils/mod.js +1 -1
  45. package/package.json +6 -6
@@ -2,7 +2,7 @@ import "@js-temporal/polyfill";
2
2
  import "urlpattern-polyfill";
3
3
  globalThis.addEventListener = () => {};
4
4
  import { n as RouterError, t as Router } from "./router-CrMLXoOr.mjs";
5
- import { n as version, t as name } from "./deno-cvysscWX.mjs";
5
+ import { n as version, t as name } from "./deno-Bg4eBr2D.mjs";
6
6
  import { t as ActivityListenerSet } from "./activity-listener-CFzUqoCS.mjs";
7
7
  import { Tombstone, getTypeId } from "@fedify/vocab";
8
8
  import { SpanKind, SpanStatusCode, trace } from "@opentelemetry/api";
@@ -58,7 +58,7 @@ var FederationBuilderImpl = class {
58
58
  this.collectionTypeIds = {};
59
59
  }
60
60
  async build(options) {
61
- const { FederationImpl } = await import("./middleware-BdpMBegR.mjs");
61
+ const { FederationImpl } = await import("./middleware-BDpu1OCd.mjs");
62
62
  const f = new FederationImpl(options);
63
63
  const trailingSlashInsensitiveValue = f.router.trailingSlashInsensitive;
64
64
  f.router = this.router.clone();
@@ -3,23 +3,29 @@ import "urlpattern-polyfill";
3
3
  globalThis.addEventListener = () => {};
4
4
  import { t as assertEquals } from "../assert_equals-Ew3jOFa3.mjs";
5
5
  import { t as assertNotEquals } from "../assert_not_equals--wG9hV7u.mjs";
6
- import { t as normalizePublicAudience } from "../public-audience-5WWE-JTr.mjs";
6
+ import { t as normalizePublicAudience } from "../public-audience-eovWqzOF.mjs";
7
7
  import { test } from "@fedify/fixture";
8
8
  import { Create, Note, PUBLIC_COLLECTION } from "@fedify/vocab";
9
9
  import { getDocumentLoader, preloadedContexts } from "@fedify/vocab-runtime";
10
10
  //#region src/compat/public-audience.test.ts
11
11
  const PUBLIC_URI = PUBLIC_COLLECTION.href;
12
12
  const AS_CONTEXT = "https://www.w3.org/ns/activitystreams";
13
- test("normalizePublicAudience() rewrites as:Public in addressing fields", async () => {
13
+ test("normalizePublicAudience() rewrites every addressing field and both CURIE forms", async () => {
14
14
  const output = await normalizePublicAudience({
15
15
  "@context": AS_CONTEXT,
16
16
  type: "Note",
17
17
  id: "https://example.com/notes/1",
18
18
  to: "as:Public",
19
- cc: ["as:Public", "https://example.com/bob"]
19
+ cc: ["as:Public", "https://example.com/bob"],
20
+ bto: "Public",
21
+ bcc: ["Public"],
22
+ audience: ["as:Public", "Public"]
20
23
  });
21
24
  assertEquals(output.to, PUBLIC_URI);
22
25
  assertEquals(output.cc, [PUBLIC_URI, "https://example.com/bob"]);
26
+ assertEquals(output.bto, PUBLIC_URI);
27
+ assertEquals(output.bcc, [PUBLIC_URI]);
28
+ assertEquals(output.audience, [PUBLIC_URI, PUBLIC_URI]);
23
29
  });
24
30
  test("normalizePublicAudience() normalises activities serialized by @fedify/vocab", async () => {
25
31
  const compact = await new Create({
@@ -122,6 +128,16 @@ test("normalizePublicAudience() stops before blowing the stack on pathological n
122
128
  object: deep
123
129
  }), "object");
124
130
  });
131
+ test("normalizePublicAudience() does not poison the global prototype via a __proto__ key", async () => {
132
+ await normalizePublicAudience(JSON.parse(`{
133
+ "@context": "https://www.w3.org/ns/activitystreams",
134
+ "type": "Note",
135
+ "id": "https://example.com/notes/proto-pollution",
136
+ "to": "as:Public",
137
+ "__proto__": { "polluted": true }
138
+ }`));
139
+ assertEquals(Object.prototype.polluted, void 0);
140
+ });
125
141
  test("normalizePublicAudience() bails out on nested @context that redefines as:", async () => {
126
142
  const output = await normalizePublicAudience({
127
143
  "@context": AS_CONTEXT,
@@ -5,7 +5,7 @@ import { t as assertEquals } from "../assert_equals-Ew3jOFa3.mjs";
5
5
  import { t as assertInstanceOf } from "../assert_instance_of-C4Ri6VuN.mjs";
6
6
  import { t as assert } from "../assert-ddO5KLpe.mjs";
7
7
  import { t as MemoryKvStore } from "../kv-C-TG81Sv.mjs";
8
- import { n as FederationImpl, v as actorDehydrator, y as autoIdAssigner } from "../middleware-Bu0zxHoX.mjs";
8
+ import { n as FederationImpl, v as actorDehydrator, y as autoIdAssigner } from "../middleware-D1zxydrX.mjs";
9
9
  import { test } from "@fedify/fixture";
10
10
  import { Follow, Person } from "@fedify/vocab";
11
11
  //#region src/compat/transformers.test.ts
@@ -3,6 +3,6 @@ import "urlpattern-polyfill";
3
3
  globalThis.addEventListener = () => {};
4
4
  //#region deno.json
5
5
  var name = "@fedify/fedify";
6
- var version = "2.2.0-pr.710.24+7ce4f97e";
6
+ var version = "2.2.0-pr.710.26+a95be522";
7
7
  //#endregion
8
8
  export { version as n, name as t };
@@ -1,8 +1,8 @@
1
1
  import "@js-temporal/polyfill";
2
2
  import "urlpattern-polyfill";
3
3
  globalThis.addEventListener = () => {};
4
- import { o as validateCryptoKey } from "./key-DXBoO6CC.mjs";
5
- import { n as doubleKnock } from "./http-Dy22pK-t.mjs";
4
+ import { o as validateCryptoKey } from "./key-DkuUQiqs.mjs";
5
+ import { n as doubleKnock } from "./http-DWkREdt7.mjs";
6
6
  import { curry } from "es-toolkit";
7
7
  import { UrlError, createActivityPubRequest, getRemoteDocument, logRequest, validatePublicUrl } from "@fedify/vocab-runtime";
8
8
  import { getLogger } from "@logtape/logtape";
@@ -6,7 +6,7 @@ import { t as assertEquals } from "../assert_equals-Ew3jOFa3.mjs";
6
6
  import { a as assertExists } from "../std__assert-Duiq_YC9.mjs";
7
7
  import { t as assertThrows } from "../assert_throws-4NwKEy2q.mjs";
8
8
  import { t as MemoryKvStore } from "../kv-C-TG81Sv.mjs";
9
- import { n as createFederationBuilder } from "../builder-CKJTVRhn.mjs";
9
+ import { n as createFederationBuilder } from "../builder-BG2fljmM.mjs";
10
10
  import { test } from "@fedify/fixture";
11
11
  import { Activity, Note, Person } from "@fedify/vocab";
12
12
  //#region src/federation/builder.test.ts
@@ -7,10 +7,10 @@ import "../std__assert-Duiq_YC9.mjs";
7
7
  import { t as assertInstanceOf } from "../assert_instance_of-C4Ri6VuN.mjs";
8
8
  import { t as assert } from "../assert-ddO5KLpe.mjs";
9
9
  import { r as parseAcceptSignature } from "../accept-Dd__NiUL.mjs";
10
- import { s as signRequest } from "../http-Dy22pK-t.mjs";
10
+ import { s as signRequest } from "../http-DWkREdt7.mjs";
11
11
  import { a as rsaPrivateKey3, c as rsaPublicKey3, s as rsaPublicKey2 } from "../keys-BAK-tUlf.mjs";
12
12
  import { t as MemoryKvStore } from "../kv-C-TG81Sv.mjs";
13
- import { c as handleActor, d as handleInbox, f as handleObject, h as respondWithObjectIfAcceptable, l as handleCollection, m as respondWithObject, o as createFederation, p as handleOutbox, u as handleCustomCollection } from "../middleware-Bu0zxHoX.mjs";
13
+ import { c as handleActor, d as handleInbox, f as handleObject, h as respondWithObjectIfAcceptable, l as handleCollection, m as respondWithObject, o as createFederation, p as handleOutbox, u as handleCustomCollection } from "../middleware-D1zxydrX.mjs";
14
14
  import { t as ActivityListenerSet } from "../activity-listener-CFzUqoCS.mjs";
15
15
  import { createTestTracerProvider, mockDocumentLoader, test } from "@fedify/fixture";
16
16
  import { Activity, Create, Note, Person, Tombstone } from "@fedify/vocab";
@@ -4,9 +4,9 @@ globalThis.addEventListener = () => {};
4
4
  import { t as assertEquals } from "../assert_equals-Ew3jOFa3.mjs";
5
5
  import "../std__assert-Duiq_YC9.mjs";
6
6
  import { n as ed25519PrivateKey, r as ed25519PublicKey, t as ed25519Multikey } from "../keys-BAK-tUlf.mjs";
7
- import { r as signObject } from "../proof-7MA0dp2c.mjs";
7
+ import { r as signObject } from "../proof-BbfBQytm.mjs";
8
8
  import { t as MemoryKvStore } from "../kv-C-TG81Sv.mjs";
9
- import { o as createFederation } from "../middleware-Bu0zxHoX.mjs";
9
+ import { o as createFederation } from "../middleware-D1zxydrX.mjs";
10
10
  import { mockDocumentLoader, test } from "@fedify/fixture";
11
11
  import { Create, Follow, Person } from "@fedify/vocab";
12
12
  //#region src/federation/idempotency.test.ts
@@ -10,14 +10,14 @@ import { t as assertInstanceOf } from "../assert_instance_of-C4Ri6VuN.mjs";
10
10
  import { t as assertThrows } from "../assert_throws-4NwKEy2q.mjs";
11
11
  import { t as assertNotEquals } from "../assert_not_equals--wG9hV7u.mjs";
12
12
  import { t as assert } from "../assert-ddO5KLpe.mjs";
13
- import { l as verifyRequest, s as signRequest } from "../http-Dy22pK-t.mjs";
13
+ import { l as verifyRequest, s as signRequest } from "../http-DWkREdt7.mjs";
14
14
  import { a as rsaPrivateKey3, c as rsaPublicKey3, i as rsaPrivateKey2, n as ed25519PrivateKey, r as ed25519PublicKey, s as rsaPublicKey2, t as ed25519Multikey } from "../keys-BAK-tUlf.mjs";
15
- import { t as getAuthenticatedDocumentLoader } from "../docloader-BuEazLeK.mjs";
16
- import { a as signJsonLd, o as verifyJsonLd, r as detachSignature } from "../ld-BW_1mHgq.mjs";
17
- import { t as doesActorOwnKey } from "../owner-CBdNJRwZ.mjs";
18
- import { i as verifyObject, r as signObject } from "../proof-7MA0dp2c.mjs";
15
+ import { t as getAuthenticatedDocumentLoader } from "../docloader-DNzzLpZS.mjs";
16
+ import { a as signJsonLd, o as verifyJsonLd, r as detachSignature } from "../ld-1klZemqw.mjs";
17
+ import { t as doesActorOwnKey } from "../owner-ijaWLw_K.mjs";
18
+ import { i as verifyObject, r as signObject } from "../proof-BbfBQytm.mjs";
19
19
  import { t as MemoryKvStore } from "../kv-C-TG81Sv.mjs";
20
- import { i as KvSpecDeterminer, n as FederationImpl, o as createFederation, r as InboxContextImpl, t as ContextImpl } from "../middleware-Bu0zxHoX.mjs";
20
+ import { i as KvSpecDeterminer, n as FederationImpl, o as createFederation, r as InboxContextImpl, t as ContextImpl } from "../middleware-D1zxydrX.mjs";
21
21
  import { createTestTracerProvider, mockDocumentLoader, test } from "@fedify/fixture";
22
22
  import * as vocab from "@fedify/vocab";
23
23
  import { getTypeId, lookupObject } from "@fedify/vocab";
@@ -2,7 +2,7 @@ const { Temporal } = require("@js-temporal/polyfill");
2
2
  const { URLPattern } = require("urlpattern-polyfill");
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
4
4
  require("../chunk-DDcVe30Y.cjs");
5
- const require_middleware = require("../middleware-QpqLtpW9.cjs");
5
+ const require_middleware = require("../middleware-G6DmtY5H.cjs");
6
6
  let es_toolkit = require("es-toolkit");
7
7
  //#region src/federation/kv.ts
8
8
  /**
@@ -1,6 +1,6 @@
1
1
  import { Temporal } from "@js-temporal/polyfill";
2
2
  import "urlpattern-polyfill";
3
- import { a as createExponentialBackoffPolicy, c as buildCollectionSynchronizationHeader, d as Router, f as RouterError, i as SendActivityError, l as digest, o as respondWithObject, r as handleWebFinger, s as respondWithObjectIfAcceptable, t as createFederation, u as createFederationBuilder } from "../middleware-COjNuA6A.js";
3
+ import { a as createExponentialBackoffPolicy, c as buildCollectionSynchronizationHeader, d as Router, f as RouterError, i as SendActivityError, l as digest, o as respondWithObject, r as handleWebFinger, s as respondWithObjectIfAcceptable, t as createFederation, u as createFederationBuilder } from "../middleware-DRNKgUtw.js";
4
4
  import { isEqual } from "es-toolkit";
5
5
  //#region src/federation/kv.ts
6
6
  /**
@@ -8,10 +8,10 @@ import { n as assertFalse, t as assertRejects } from "../assert_rejects-B-qJtC9Z
8
8
  import { t as assertInstanceOf } from "../assert_instance_of-C4Ri6VuN.mjs";
9
9
  import { t as assertNotEquals } from "../assert_not_equals--wG9hV7u.mjs";
10
10
  import { t as assert } from "../assert-ddO5KLpe.mjs";
11
- import { l as verifyRequest } from "../http-Dy22pK-t.mjs";
11
+ import { l as verifyRequest } from "../http-DWkREdt7.mjs";
12
12
  import { i as rsaPrivateKey2, n as ed25519PrivateKey, s as rsaPublicKey2, t as ed25519Multikey } from "../keys-BAK-tUlf.mjs";
13
- import { t as doesActorOwnKey } from "../owner-CBdNJRwZ.mjs";
14
- import { n as extractInboxes, r as sendActivity, t as SendActivityError } from "../send-9BckNAN-.mjs";
13
+ import { t as doesActorOwnKey } from "../owner-ijaWLw_K.mjs";
14
+ import { n as extractInboxes, r as sendActivity, t as SendActivityError } from "../send-CJyp2e8W.mjs";
15
15
  import { createTestTracerProvider, mockDocumentLoader, test } from "@fedify/fixture";
16
16
  import { Activity, Application, Endpoints, Group, Person, Service } from "@fedify/vocab";
17
17
  //#region src/federation/send.test.ts
@@ -5,7 +5,7 @@ import { r as createRequestContext } from "../context-Dk_tacqz.mjs";
5
5
  import { t as assertEquals } from "../assert_equals-Ew3jOFa3.mjs";
6
6
  import "../std__assert-Duiq_YC9.mjs";
7
7
  import { t as MemoryKvStore } from "../kv-C-TG81Sv.mjs";
8
- import { o as createFederation, s as handleWebFinger } from "../middleware-Bu0zxHoX.mjs";
8
+ import { o as createFederation, s as handleWebFinger } from "../middleware-D1zxydrX.mjs";
9
9
  import { test } from "@fedify/fixture";
10
10
  import { Image, Link, Person, Tombstone } from "@fedify/vocab";
11
11
  //#region src/federation/webfinger.test.ts
@@ -10,7 +10,7 @@ import { ATTR_HTTP_REQUEST_HEADER, ATTR_HTTP_REQUEST_METHOD, ATTR_URL_FULL } fro
10
10
  import { decodeBase64, encodeBase64 } from "byte-encodings/base64";
11
11
  //#region deno.json
12
12
  var name = "@fedify/fedify";
13
- var version = "2.2.0-pr.710.24+7ce4f97e";
13
+ var version = "2.2.0-pr.710.26+a95be522";
14
14
  //#endregion
15
15
  //#region src/sig/accept.ts
16
16
  /**
@@ -1,9 +1,9 @@
1
1
  import { Temporal } from "@js-temporal/polyfill";
2
2
  import "urlpattern-polyfill";
3
3
  globalThis.addEventListener = () => {};
4
- import { n as version, t as name } from "./deno-cvysscWX.mjs";
4
+ import { n as version, t as name } from "./deno-Bg4eBr2D.mjs";
5
5
  import { i as validateAcceptSignature, n as fulfillAcceptSignature, r as parseAcceptSignature } from "./accept-Dd__NiUL.mjs";
6
- import { o as validateCryptoKey, r as fetchKeyDetailed } from "./key-DXBoO6CC.mjs";
6
+ import { o as validateCryptoKey, r as fetchKeyDetailed } from "./key-DkuUQiqs.mjs";
7
7
  import { CryptographicKey } from "@fedify/vocab";
8
8
  import { SpanStatusCode, trace } from "@opentelemetry/api";
9
9
  import { FetchError } from "@fedify/vocab-runtime";
@@ -11,7 +11,7 @@ let _opentelemetry_semantic_conventions = require("@opentelemetry/semantic-conve
11
11
  let byte_encodings_base64 = require("byte-encodings/base64");
12
12
  //#region deno.json
13
13
  var name = "@fedify/fedify";
14
- var version = "2.2.0-pr.710.24+7ce4f97e";
14
+ var version = "2.2.0-pr.710.26+a95be522";
15
15
  //#endregion
16
16
  //#region src/sig/accept.ts
17
17
  /**
@@ -1,7 +1,7 @@
1
1
  import "@js-temporal/polyfill";
2
2
  import "urlpattern-polyfill";
3
3
  globalThis.addEventListener = () => {};
4
- import { n as version, t as name } from "./deno-cvysscWX.mjs";
4
+ import { n as version, t as name } from "./deno-Bg4eBr2D.mjs";
5
5
  import { CryptographicKey, Object as Object$1, isActor } from "@fedify/vocab";
6
6
  import { SpanKind, SpanStatusCode, trace } from "@opentelemetry/api";
7
7
  import { FetchError, getDocumentLoader } from "@fedify/vocab-runtime";
@@ -1,6 +1,6 @@
1
1
  import { Temporal } from "@js-temporal/polyfill";
2
2
  import { URLPattern } from "urlpattern-polyfill";
3
- import { d as validateCryptoKey, t as doubleKnock } from "./http-B0Tu7TW-.js";
3
+ import { d as validateCryptoKey, t as doubleKnock } from "./http-Cbg9qm41.js";
4
4
  import { getLogger } from "@logtape/logtape";
5
5
  import { curry } from "es-toolkit";
6
6
  import { UrlError, createActivityPubRequest, getRemoteDocument, logRequest, preloadedContexts, validatePublicUrl } from "@fedify/vocab-runtime";
@@ -1,7 +1,7 @@
1
1
  const { Temporal } = require("@js-temporal/polyfill");
2
2
  const { URLPattern } = require("urlpattern-polyfill");
3
3
  require("./chunk-DDcVe30Y.cjs");
4
- const require_http = require("./http-BJ7XtRRp.cjs");
4
+ const require_http = require("./http-Dgit35mk.cjs");
5
5
  let _logtape_logtape = require("@logtape/logtape");
6
6
  let es_toolkit = require("es-toolkit");
7
7
  let _fedify_vocab_runtime = require("@fedify/vocab-runtime");
@@ -1,8 +1,8 @@
1
1
  import "@js-temporal/polyfill";
2
2
  import "urlpattern-polyfill";
3
3
  globalThis.addEventListener = () => {};
4
- import { n as version, t as name } from "./deno-cvysscWX.mjs";
5
- import { n as fetchKey, o as validateCryptoKey } from "./key-DXBoO6CC.mjs";
4
+ import { n as version, t as name } from "./deno-Bg4eBr2D.mjs";
5
+ import { n as fetchKey, o as validateCryptoKey } from "./key-DkuUQiqs.mjs";
6
6
  import { Activity, CryptographicKey, Object as Object$1, getTypeId } from "@fedify/vocab";
7
7
  import { SpanStatusCode, trace } from "@opentelemetry/api";
8
8
  import { getDocumentLoader } from "@fedify/vocab-runtime";
@@ -1,5 +1,5 @@
1
1
  import "@js-temporal/polyfill";
2
2
  import "urlpattern-polyfill";
3
3
  globalThis.addEventListener = () => {};
4
- import { n as FederationImpl } from "./middleware-Bu0zxHoX.mjs";
4
+ import { n as FederationImpl } from "./middleware-D1zxydrX.mjs";
5
5
  export { FederationImpl };
@@ -2,24 +2,24 @@ import { Temporal } from "@js-temporal/polyfill";
2
2
  import "urlpattern-polyfill";
3
3
  globalThis.addEventListener = () => {};
4
4
  import { n as RouterError } from "./router-CrMLXoOr.mjs";
5
- import { n as version, t as name } from "./deno-cvysscWX.mjs";
5
+ import { n as version, t as name } from "./deno-Bg4eBr2D.mjs";
6
6
  import { t as formatAcceptSignature } from "./accept-Dd__NiUL.mjs";
7
- import { a as importJwk, o as validateCryptoKey, t as exportJwk } from "./key-DXBoO6CC.mjs";
8
- import { l as verifyRequest, o as parseRfc9421SignatureInput, u as verifyRequestDetailed } from "./http-Dy22pK-t.mjs";
9
- import { t as getAuthenticatedDocumentLoader } from "./docloader-BuEazLeK.mjs";
7
+ import { a as importJwk, o as validateCryptoKey, t as exportJwk } from "./key-DkuUQiqs.mjs";
8
+ import { l as verifyRequest, o as parseRfc9421SignatureInput, u as verifyRequestDetailed } from "./http-DWkREdt7.mjs";
9
+ import { t as getAuthenticatedDocumentLoader } from "./docloader-DNzzLpZS.mjs";
10
10
  import { n as kvCache } from "./kv-cache-B01V7s3h.mjs";
11
- import { a as signJsonLd, i as hasSignatureLike, o as verifyJsonLd, r as detachSignature } from "./ld-BW_1mHgq.mjs";
12
- import { n as getKeyOwner, t as doesActorOwnKey } from "./owner-CBdNJRwZ.mjs";
13
- import { t as normalizePublicAudience } from "./public-audience-5WWE-JTr.mjs";
14
- import { i as verifyObject, n as hasProofLike, r as signObject } from "./proof-7MA0dp2c.mjs";
11
+ import { a as signJsonLd, i as hasSignatureLike, o as verifyJsonLd, r as detachSignature } from "./ld-1klZemqw.mjs";
12
+ import { n as getKeyOwner, t as doesActorOwnKey } from "./owner-ijaWLw_K.mjs";
13
+ import { t as normalizePublicAudience } from "./public-audience-eovWqzOF.mjs";
14
+ import { i as verifyObject, n as hasProofLike, r as signObject } from "./proof-BbfBQytm.mjs";
15
15
  import { t as getNodeInfo } from "./client-DVu6Fmom.mjs";
16
16
  import { t as nodeInfoToJson } from "./types-CGUnLkU3.mjs";
17
- import { t as FederationBuilderImpl } from "./builder-CKJTVRhn.mjs";
17
+ import { t as FederationBuilderImpl } from "./builder-BG2fljmM.mjs";
18
18
  import { t as buildCollectionSynchronizationHeader } from "./collection-BQRKGS7L.mjs";
19
19
  import { t as KvKeyCache } from "./keycache-C2t1kvP5.mjs";
20
20
  import { t as acceptsJsonLd } from "./negotiation-xb0QR3u_.mjs";
21
21
  import { t as createExponentialBackoffPolicy } from "./retry-CJL0poaU.mjs";
22
- import { n as extractInboxes, r as sendActivity, t as SendActivityError } from "./send-9BckNAN-.mjs";
22
+ import { n as extractInboxes, r as sendActivity, t as SendActivityError } from "./send-CJyp2e8W.mjs";
23
23
  import { Activity, Collection, CollectionPage, CryptographicKey, Link, Multikey, Object as Object$1, OrderedCollection, OrderedCollectionPage, Tombstone, getTypeId, lookupObject, traverseCollection } from "@fedify/vocab";
24
24
  import { lookupWebFinger } from "@fedify/webfinger";
25
25
  import { SpanKind, SpanStatusCode, context, propagation, trace } from "@opentelemetry/api";
@@ -2,10 +2,10 @@ import { Temporal } from "@js-temporal/polyfill";
2
2
  import "urlpattern-polyfill";
3
3
  import { t as __exportAll } from "./chunk-nlSIicah.js";
4
4
  import { r as getDefaultActivityTransformers } from "./transformers-ve6e2xcg.js";
5
- import { _ as version, a as verifyRequestDetailed, d as validateCryptoKey, f as formatAcceptSignature, g as name, i as verifyRequest, n as parseRfc9421SignatureInput, o as exportJwk, t as doubleKnock, u as importJwk } from "./http-B0Tu7TW-.js";
6
- import { c as getKeyOwner, d as detachSignature, f as hasSignatureLike, i as verifyObject, m as verifyJsonLd, n as hasProofLike, o as normalizePublicAudience, p as signJsonLd, r as signObject, s as doesActorOwnKey } from "./proof-Bfx0NdYz.js";
5
+ import { _ as version, a as verifyRequestDetailed, d as validateCryptoKey, f as formatAcceptSignature, g as name, i as verifyRequest, n as parseRfc9421SignatureInput, o as exportJwk, t as doubleKnock, u as importJwk } from "./http-Cbg9qm41.js";
6
+ import { c as getKeyOwner, d as detachSignature, f as hasSignatureLike, i as verifyObject, m as verifyJsonLd, n as hasProofLike, o as normalizePublicAudience, p as signJsonLd, r as signObject, s as doesActorOwnKey } from "./proof-CQJHVvjQ.js";
7
7
  import { n as getNodeInfo, t as nodeInfoToJson } from "./types-hvL8ElAs.js";
8
- import { n as getAuthenticatedDocumentLoader, t as kvCache } from "./kv-cache-Bxbq9e39.js";
8
+ import { n as getAuthenticatedDocumentLoader, t as kvCache } from "./kv-cache-Bl6yhpBL.js";
9
9
  import { getLogger, withContext } from "@logtape/logtape";
10
10
  import { Activity, Collection, CollectionPage, CryptographicKey, Link, Multikey, Object as Object$1, OrderedCollection, OrderedCollectionPage, Tombstone, getTypeId, lookupObject, traverseCollection } from "@fedify/vocab";
11
11
  import { SpanKind, SpanStatusCode, context, propagation, trace } from "@opentelemetry/api";
@@ -1,4 +1,4 @@
1
1
  const { Temporal } = require("@js-temporal/polyfill");
2
2
  const { URLPattern } = require("urlpattern-polyfill");
3
- const require_middleware = require("./middleware-QpqLtpW9.cjs");
3
+ const require_middleware = require("./middleware-G6DmtY5H.cjs");
4
4
  exports.FederationImpl = require_middleware.FederationImpl;
@@ -2,10 +2,10 @@ const { Temporal } = require("@js-temporal/polyfill");
2
2
  const { URLPattern } = require("urlpattern-polyfill");
3
3
  require("./chunk-DDcVe30Y.cjs");
4
4
  const require_transformers = require("./transformers-NeAONrAq.cjs");
5
- const require_http = require("./http-BJ7XtRRp.cjs");
6
- const require_proof = require("./proof-B__J6A1_.cjs");
5
+ const require_http = require("./http-Dgit35mk.cjs");
6
+ const require_proof = require("./proof-CP0GRqWY.cjs");
7
7
  const require_types = require("./types-KC4QAoxe.cjs");
8
- const require_kv_cache = require("./kv-cache-x4KOTSSC.cjs");
8
+ const require_kv_cache = require("./kv-cache-e9fvIFDA.cjs");
9
9
  let _logtape_logtape = require("@logtape/logtape");
10
10
  let _fedify_vocab = require("@fedify/vocab");
11
11
  let _opentelemetry_api = require("@opentelemetry/api");
@@ -210,7 +210,7 @@ var FederationBuilderImpl = class {
210
210
  this.collectionTypeIds = {};
211
211
  }
212
212
  async build(options) {
213
- const { FederationImpl } = await Promise.resolve().then(() => require("./middleware-CRFf7Wb6.cjs"));
213
+ const { FederationImpl } = await Promise.resolve().then(() => require("./middleware-DY-mzSrv.cjs"));
214
214
  const f = new FederationImpl(options);
215
215
  const trailingSlashInsensitiveValue = f.router.trailingSlashInsensitive;
216
216
  f.router = this.router.clone();
package/dist/mod.cjs CHANGED
@@ -4,11 +4,11 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
4
4
  require("./chunk-DDcVe30Y.cjs");
5
5
  const require_transformers = require("./transformers-NeAONrAq.cjs");
6
6
  require("./compat/mod.cjs");
7
- const require_http = require("./http-BJ7XtRRp.cjs");
8
- const require_middleware = require("./middleware-QpqLtpW9.cjs");
9
- const require_proof = require("./proof-B__J6A1_.cjs");
7
+ const require_http = require("./http-Dgit35mk.cjs");
8
+ const require_middleware = require("./middleware-G6DmtY5H.cjs");
9
+ const require_proof = require("./proof-CP0GRqWY.cjs");
10
10
  const require_types = require("./types-KC4QAoxe.cjs");
11
- const require_kv_cache = require("./kv-cache-x4KOTSSC.cjs");
11
+ const require_kv_cache = require("./kv-cache-e9fvIFDA.cjs");
12
12
  const require_federation_mod = require("./federation/mod.cjs");
13
13
  require("./nodeinfo/mod.cjs");
14
14
  require("./runtime/mod.cjs");
package/dist/mod.js CHANGED
@@ -3,11 +3,11 @@ import "urlpattern-polyfill";
3
3
  import "./chunk-nlSIicah.js";
4
4
  import { n as autoIdAssigner, r as getDefaultActivityTransformers, t as actorDehydrator } from "./transformers-ve6e2xcg.js";
5
5
  import "./compat/mod.js";
6
- import { a as verifyRequestDetailed, c as fetchKeyDetailed, f as formatAcceptSignature, h as validateAcceptSignature, i as verifyRequest, l as generateCryptoKeyPair, m as parseAcceptSignature, o as exportJwk, p as fulfillAcceptSignature, r as signRequest, s as fetchKey, u as importJwk } from "./http-B0Tu7TW-.js";
7
- import { a as createExponentialBackoffPolicy, c as buildCollectionSynchronizationHeader, d as Router, f as RouterError, i as SendActivityError, l as digest, o as respondWithObject, r as handleWebFinger, s as respondWithObjectIfAcceptable, t as createFederation, u as createFederationBuilder } from "./middleware-COjNuA6A.js";
8
- import { a as verifyProof, c as getKeyOwner, d as detachSignature, f as hasSignatureLike, h as verifySignature, i as verifyObject, l as attachSignature, m as verifyJsonLd, n as hasProofLike, p as signJsonLd, r as signObject, s as doesActorOwnKey, t as createProof, u as createSignature } from "./proof-Bfx0NdYz.js";
6
+ import { a as verifyRequestDetailed, c as fetchKeyDetailed, f as formatAcceptSignature, h as validateAcceptSignature, i as verifyRequest, l as generateCryptoKeyPair, m as parseAcceptSignature, o as exportJwk, p as fulfillAcceptSignature, r as signRequest, s as fetchKey, u as importJwk } from "./http-Cbg9qm41.js";
7
+ import { a as createExponentialBackoffPolicy, c as buildCollectionSynchronizationHeader, d as Router, f as RouterError, i as SendActivityError, l as digest, o as respondWithObject, r as handleWebFinger, s as respondWithObjectIfAcceptable, t as createFederation, u as createFederationBuilder } from "./middleware-DRNKgUtw.js";
8
+ import { a as verifyProof, c as getKeyOwner, d as detachSignature, f as hasSignatureLike, h as verifySignature, i as verifyObject, l as attachSignature, m as verifyJsonLd, n as hasProofLike, p as signJsonLd, r as signObject, s as doesActorOwnKey, t as createProof, u as createSignature } from "./proof-CQJHVvjQ.js";
9
9
  import { n as getNodeInfo, r as parseNodeInfo, t as nodeInfoToJson } from "./types-hvL8ElAs.js";
10
- import { n as getAuthenticatedDocumentLoader, t as kvCache } from "./kv-cache-Bxbq9e39.js";
10
+ import { n as getAuthenticatedDocumentLoader, t as kvCache } from "./kv-cache-Bl6yhpBL.js";
11
11
  import { InProcessMessageQueue, MemoryKvStore, ParallelMessageQueue } from "./federation/mod.js";
12
12
  import "./nodeinfo/mod.js";
13
13
  import "./runtime/mod.js";
@@ -5,7 +5,7 @@ import { r as createRequestContext } from "../context-Dk_tacqz.mjs";
5
5
  import { t as assertEquals } from "../assert_equals-Ew3jOFa3.mjs";
6
6
  import "../std__assert-Duiq_YC9.mjs";
7
7
  import { t as MemoryKvStore } from "../kv-C-TG81Sv.mjs";
8
- import { _ as handleNodeInfoJrd, g as handleNodeInfo, o as createFederation } from "../middleware-Bu0zxHoX.mjs";
8
+ import { _ as handleNodeInfoJrd, g as handleNodeInfo, o as createFederation } from "../middleware-D1zxydrX.mjs";
9
9
  import { test } from "@fedify/fixture";
10
10
  //#region src/nodeinfo/handler.test.ts
11
11
  test("handleNodeInfo()", async () => {
@@ -1,8 +1,8 @@
1
1
  import "@js-temporal/polyfill";
2
2
  import "urlpattern-polyfill";
3
3
  globalThis.addEventListener = () => {};
4
- import { n as version, t as name } from "./deno-cvysscWX.mjs";
5
- import "./key-DXBoO6CC.mjs";
4
+ import { n as version, t as name } from "./deno-Bg4eBr2D.mjs";
5
+ import "./key-DkuUQiqs.mjs";
6
6
  import { CryptographicKey, Object as Object$1, isActor } from "@fedify/vocab";
7
7
  import { SpanKind, SpanStatusCode, trace } from "@opentelemetry/api";
8
8
  import { getDocumentLoader } from "@fedify/vocab-runtime";
@@ -1,9 +1,9 @@
1
1
  import { Temporal } from "@js-temporal/polyfill";
2
2
  import "urlpattern-polyfill";
3
3
  globalThis.addEventListener = () => {};
4
- import { n as version, t as name } from "./deno-cvysscWX.mjs";
5
- import { n as fetchKey, o as validateCryptoKey } from "./key-DXBoO6CC.mjs";
6
- import { t as normalizePublicAudience } from "./public-audience-5WWE-JTr.mjs";
4
+ import { n as version, t as name } from "./deno-Bg4eBr2D.mjs";
5
+ import { n as fetchKey, o as validateCryptoKey } from "./key-DkuUQiqs.mjs";
6
+ import { t as normalizePublicAudience } from "./public-audience-eovWqzOF.mjs";
7
7
  import { Activity, DataIntegrityProof, Multikey, getTypeId } from "@fedify/vocab";
8
8
  import { SpanStatusCode, trace } from "@opentelemetry/api";
9
9
  import { getLogger } from "@logtape/logtape";
@@ -1,7 +1,7 @@
1
1
  const { Temporal } = require("@js-temporal/polyfill");
2
2
  const { URLPattern } = require("urlpattern-polyfill");
3
3
  const require_chunk = require("./chunk-DDcVe30Y.cjs");
4
- const require_http = require("./http-BJ7XtRRp.cjs");
4
+ const require_http = require("./http-Dgit35mk.cjs");
5
5
  let _logtape_logtape = require("@logtape/logtape");
6
6
  let _fedify_vocab = require("@fedify/vocab");
7
7
  let _opentelemetry_api = require("@opentelemetry/api");
@@ -403,7 +403,7 @@ const PUBLIC_ADDRESSING_FIELDS = new Set([
403
403
  "audience"
404
404
  ]);
405
405
  const preloadedOnlyDocumentLoader = (url) => {
406
- if (url in _fedify_vocab_runtime.preloadedContexts) return Promise.resolve({
406
+ if (Object.hasOwn(_fedify_vocab_runtime.preloadedContexts, url)) return Promise.resolve({
407
407
  contextUrl: null,
408
408
  documentUrl: url,
409
409
  document: _fedify_vocab_runtime.preloadedContexts[url]
@@ -440,7 +440,7 @@ function rewritePublicAudience(value, parentKey, depth = 0) {
440
440
  if (typeof value !== "object" || value == null) return value;
441
441
  const record = value;
442
442
  let changed = false;
443
- const normalized = {};
443
+ const normalized = Object.create(null);
444
444
  for (const key of Object.keys(record)) {
445
445
  const rewritten = key === "@context" ? record[key] : rewritePublicAudience(record[key], key, depth + 1);
446
446
  if (rewritten !== record[key]) changed = true;
@@ -1,6 +1,6 @@
1
1
  import { Temporal } from "@js-temporal/polyfill";
2
2
  import "urlpattern-polyfill";
3
- import { _ as version, d as validateCryptoKey, g as name, s as fetchKey } from "./http-B0Tu7TW-.js";
3
+ import { _ as version, d as validateCryptoKey, g as name, s as fetchKey } from "./http-Cbg9qm41.js";
4
4
  import { getLogger } from "@logtape/logtape";
5
5
  import { Activity, CryptographicKey, DataIntegrityProof, Multikey, Object as Object$1, PUBLIC_COLLECTION, getTypeId, isActor } from "@fedify/vocab";
6
6
  import { SpanKind, SpanStatusCode, trace } from "@opentelemetry/api";
@@ -400,7 +400,7 @@ const PUBLIC_ADDRESSING_FIELDS = new Set([
400
400
  "audience"
401
401
  ]);
402
402
  const preloadedOnlyDocumentLoader = (url) => {
403
- if (url in preloadedContexts) return Promise.resolve({
403
+ if (Object.hasOwn(preloadedContexts, url)) return Promise.resolve({
404
404
  contextUrl: null,
405
405
  documentUrl: url,
406
406
  document: preloadedContexts[url]
@@ -437,7 +437,7 @@ function rewritePublicAudience(value, parentKey, depth = 0) {
437
437
  if (typeof value !== "object" || value == null) return value;
438
438
  const record = value;
439
439
  let changed = false;
440
- const normalized = {};
440
+ const normalized = Object.create(null);
441
441
  for (const key of Object.keys(record)) {
442
442
  const rewritten = key === "@context" ? record[key] : rewritePublicAudience(record[key], key, depth + 1);
443
443
  if (rewritten !== record[key]) changed = true;
@@ -19,7 +19,7 @@ const PUBLIC_ADDRESSING_FIELDS = new Set([
19
19
  "audience"
20
20
  ]);
21
21
  const preloadedOnlyDocumentLoader = (url) => {
22
- if (url in preloadedContexts) return Promise.resolve({
22
+ if (Object.hasOwn(preloadedContexts, url)) return Promise.resolve({
23
23
  contextUrl: null,
24
24
  documentUrl: url,
25
25
  document: preloadedContexts[url]
@@ -56,7 +56,7 @@ function rewritePublicAudience(value, parentKey, depth = 0) {
56
56
  if (typeof value !== "object" || value == null) return value;
57
57
  const record = value;
58
58
  let changed = false;
59
- const normalized = {};
59
+ const normalized = Object.create(null);
60
60
  for (const key of Object.keys(record)) {
61
61
  const rewritten = key === "@context" ? record[key] : rewritePublicAudience(record[key], key, depth + 1);
62
62
  if (rewritten !== record[key]) changed = true;
@@ -1,8 +1,8 @@
1
1
  import "@js-temporal/polyfill";
2
2
  import "urlpattern-polyfill";
3
3
  globalThis.addEventListener = () => {};
4
- import { n as version, t as name } from "./deno-cvysscWX.mjs";
5
- import { n as doubleKnock } from "./http-Dy22pK-t.mjs";
4
+ import { n as version, t as name } from "./deno-Bg4eBr2D.mjs";
5
+ import { n as doubleKnock } from "./http-DWkREdt7.mjs";
6
6
  import { SpanKind, SpanStatusCode, trace } from "@opentelemetry/api";
7
7
  import { getLogger } from "@logtape/logtape";
8
8
  //#region src/federation/send.ts
@@ -7,8 +7,8 @@ import { a as assertExists, t as assertStringIncludes } from "../std__assert-Dui
7
7
  import { n as assertFalse, t as assertRejects } from "../assert_rejects-B-qJtC9Z.mjs";
8
8
  import { t as assertThrows } from "../assert_throws-4NwKEy2q.mjs";
9
9
  import { t as assert } from "../assert-ddO5KLpe.mjs";
10
- import { t as exportJwk } from "../key-DXBoO6CC.mjs";
11
- import { a as parseRfc9421Signature, c as timingSafeEqual, i as formatRfc9421SignatureParameters, l as verifyRequest, n as doubleKnock, o as parseRfc9421SignatureInput, r as formatRfc9421Signature, s as signRequest, t as createRfc9421SignatureBase, u as verifyRequestDetailed } from "../http-Dy22pK-t.mjs";
10
+ import { t as exportJwk } from "../key-DkuUQiqs.mjs";
11
+ import { a as parseRfc9421Signature, c as timingSafeEqual, i as formatRfc9421SignatureParameters, l as verifyRequest, n as doubleKnock, o as parseRfc9421SignatureInput, r as formatRfc9421Signature, s as signRequest, t as createRfc9421SignatureBase, u as verifyRequestDetailed } from "../http-DWkREdt7.mjs";
12
12
  import { i as rsaPrivateKey2, l as rsaPublicKey5, o as rsaPublicKey1, s as rsaPublicKey2 } from "../keys-BAK-tUlf.mjs";
13
13
  import { createTestTracerProvider, mockDocumentLoader, test } from "@fedify/fixture";
14
14
  import { FetchError, exportSpki } from "@fedify/vocab-runtime";
@@ -5,7 +5,7 @@ import { t as assertEquals } from "../assert_equals-Ew3jOFa3.mjs";
5
5
  import "../std__assert-Duiq_YC9.mjs";
6
6
  import { t as assertRejects } from "../assert_rejects-B-qJtC9Z.mjs";
7
7
  import { t as assertThrows } from "../assert_throws-4NwKEy2q.mjs";
8
- import { a as importJwk, i as generateCryptoKeyPair, n as fetchKey, o as validateCryptoKey, r as fetchKeyDetailed, t as exportJwk } from "../key-DXBoO6CC.mjs";
8
+ import { a as importJwk, i as generateCryptoKeyPair, n as fetchKey, o as validateCryptoKey, r as fetchKeyDetailed, t as exportJwk } from "../key-DkuUQiqs.mjs";
9
9
  import { c as rsaPublicKey3, i as rsaPrivateKey2, o as rsaPublicKey1, s as rsaPublicKey2, t as ed25519Multikey } from "../keys-BAK-tUlf.mjs";
10
10
  import { createTestTracerProvider, mockDocumentLoader, test } from "@fedify/fixture";
11
11
  import { CryptographicKey, Multikey } from "@fedify/vocab";
@@ -5,9 +5,9 @@ import { t as assertEquals } from "../assert_equals-Ew3jOFa3.mjs";
5
5
  import { n as assertFalse, t as assertRejects } from "../assert_rejects-B-qJtC9Z.mjs";
6
6
  import { t as assertThrows } from "../assert_throws-4NwKEy2q.mjs";
7
7
  import { t as assert } from "../assert-ddO5KLpe.mjs";
8
- import { i as generateCryptoKeyPair } from "../key-DXBoO6CC.mjs";
8
+ import { i as generateCryptoKeyPair } from "../key-DkuUQiqs.mjs";
9
9
  import { a as rsaPrivateKey3, c as rsaPublicKey3, i as rsaPrivateKey2, n as ed25519PrivateKey, s as rsaPublicKey2, t as ed25519Multikey } from "../keys-BAK-tUlf.mjs";
10
- import { a as signJsonLd, i as hasSignatureLike, n as createSignature, o as verifyJsonLd, r as detachSignature, s as verifySignature, t as attachSignature } from "../ld-BW_1mHgq.mjs";
10
+ import { a as signJsonLd, i as hasSignatureLike, n as createSignature, o as verifyJsonLd, r as detachSignature, s as verifySignature, t as attachSignature } from "../ld-1klZemqw.mjs";
11
11
  import { mockDocumentLoader, test } from "@fedify/fixture";
12
12
  import { CryptographicKey } from "@fedify/vocab";
13
13
  import { encodeBase64 } from "byte-encodings/base64";
package/dist/sig/mod.cjs CHANGED
@@ -1,8 +1,8 @@
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_http = require("../http-BJ7XtRRp.cjs");
5
- const require_proof = require("../proof-B__J6A1_.cjs");
4
+ const require_http = require("../http-Dgit35mk.cjs");
5
+ const require_proof = require("../proof-CP0GRqWY.cjs");
6
6
  exports.attachSignature = require_proof.attachSignature;
7
7
  exports.createProof = require_proof.createProof;
8
8
  exports.createSignature = require_proof.createSignature;
package/dist/sig/mod.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import "@js-temporal/polyfill";
2
2
  import "urlpattern-polyfill";
3
- import { a as verifyRequestDetailed, c as fetchKeyDetailed, f as formatAcceptSignature, h as validateAcceptSignature, i as verifyRequest, l as generateCryptoKeyPair, m as parseAcceptSignature, o as exportJwk, p as fulfillAcceptSignature, r as signRequest, s as fetchKey, u as importJwk } from "../http-B0Tu7TW-.js";
4
- import { a as verifyProof, c as getKeyOwner, d as detachSignature, f as hasSignatureLike, h as verifySignature, i as verifyObject, l as attachSignature, m as verifyJsonLd, n as hasProofLike, p as signJsonLd, r as signObject, s as doesActorOwnKey, t as createProof, u as createSignature } from "../proof-Bfx0NdYz.js";
3
+ import { a as verifyRequestDetailed, c as fetchKeyDetailed, f as formatAcceptSignature, h as validateAcceptSignature, i as verifyRequest, l as generateCryptoKeyPair, m as parseAcceptSignature, o as exportJwk, p as fulfillAcceptSignature, r as signRequest, s as fetchKey, u as importJwk } from "../http-Cbg9qm41.js";
4
+ import { a as verifyProof, c as getKeyOwner, d as detachSignature, f as hasSignatureLike, h as verifySignature, i as verifyObject, l as attachSignature, m as verifyJsonLd, n as hasProofLike, p as signJsonLd, r as signObject, s as doesActorOwnKey, t as createProof, u as createSignature } from "../proof-CQJHVvjQ.js";
5
5
  export { attachSignature, createProof, createSignature, detachSignature, doesActorOwnKey, exportJwk, fetchKey, fetchKeyDetailed, formatAcceptSignature, fulfillAcceptSignature, generateCryptoKeyPair, getKeyOwner, hasProofLike, hasSignatureLike, importJwk, parseAcceptSignature, signJsonLd, signObject, signRequest, validateAcceptSignature, verifyJsonLd, verifyObject, verifyProof, verifyRequest, verifyRequestDetailed, verifySignature };
@@ -6,7 +6,7 @@ import "../std__assert-Duiq_YC9.mjs";
6
6
  import { n as assertFalse } from "../assert_rejects-B-qJtC9Z.mjs";
7
7
  import { t as assert } from "../assert-ddO5KLpe.mjs";
8
8
  import { o as rsaPublicKey1, s as rsaPublicKey2 } from "../keys-BAK-tUlf.mjs";
9
- import { n as getKeyOwner, t as doesActorOwnKey } from "../owner-CBdNJRwZ.mjs";
9
+ import { n as getKeyOwner, t as doesActorOwnKey } from "../owner-ijaWLw_K.mjs";
10
10
  import { createTestTracerProvider, mockDocumentLoader, test } from "@fedify/fixture";
11
11
  import { Create, CryptographicKey, lookupObject } from "@fedify/vocab";
12
12
  //#region src/sig/owner.test.ts
@@ -7,8 +7,8 @@ import { n as assertFalse, t as assertRejects } from "../assert_rejects-B-qJtC9Z
7
7
  import { t as assertInstanceOf } from "../assert_instance_of-C4Ri6VuN.mjs";
8
8
  import { t as assert } from "../assert-ddO5KLpe.mjs";
9
9
  import { i as rsaPrivateKey2, n as ed25519PrivateKey, r as ed25519PublicKey, s as rsaPublicKey2, t as ed25519Multikey } from "../keys-BAK-tUlf.mjs";
10
- import { t as normalizePublicAudience } from "../public-audience-5WWE-JTr.mjs";
11
- import { a as verifyProof, i as verifyObject, n as hasProofLike, r as signObject, t as createProof } from "../proof-7MA0dp2c.mjs";
10
+ import { t as normalizePublicAudience } from "../public-audience-eovWqzOF.mjs";
11
+ import { a as verifyProof, i as verifyObject, n as hasProofLike, r as signObject, t as createProof } from "../proof-BbfBQytm.mjs";
12
12
  import { mockDocumentLoader, test } from "@fedify/fixture";
13
13
  import { Create, DataIntegrityProof, Multikey, Note, PUBLIC_COLLECTION, Place } from "@fedify/vocab";
14
14
  import { decodeMultibase, importMultibaseKey } from "@fedify/vocab-runtime";
@@ -5,9 +5,9 @@ import { t as esm_default } from "../esm-DVILvP5e.mjs";
5
5
  import { t as assertEquals } from "../assert_equals-Ew3jOFa3.mjs";
6
6
  import "../std__assert-Duiq_YC9.mjs";
7
7
  import { t as assertRejects } from "../assert_rejects-B-qJtC9Z.mjs";
8
- import { l as verifyRequest } from "../http-Dy22pK-t.mjs";
8
+ import { l as verifyRequest } from "../http-DWkREdt7.mjs";
9
9
  import { i as rsaPrivateKey2 } from "../keys-BAK-tUlf.mjs";
10
- import { t as getAuthenticatedDocumentLoader } from "../docloader-BuEazLeK.mjs";
10
+ import { t as getAuthenticatedDocumentLoader } from "../docloader-DNzzLpZS.mjs";
11
11
  import { mockDocumentLoader, test } from "@fedify/fixture";
12
12
  import { UrlError } from "@fedify/vocab-runtime";
13
13
  //#region src/utils/docloader.test.ts
@@ -1,6 +1,6 @@
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_kv_cache = require("../kv-cache-x4KOTSSC.cjs");
4
+ const require_kv_cache = require("../kv-cache-e9fvIFDA.cjs");
5
5
  exports.getAuthenticatedDocumentLoader = require_kv_cache.getAuthenticatedDocumentLoader;
6
6
  exports.kvCache = require_kv_cache.kvCache;
package/dist/utils/mod.js CHANGED
@@ -1,4 +1,4 @@
1
1
  import "@js-temporal/polyfill";
2
2
  import "urlpattern-polyfill";
3
- import { n as getAuthenticatedDocumentLoader, t as kvCache } from "../kv-cache-Bxbq9e39.js";
3
+ import { n as getAuthenticatedDocumentLoader, t as kvCache } from "../kv-cache-Bl6yhpBL.js";
4
4
  export { getAuthenticatedDocumentLoader, kvCache };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fedify/fedify",
3
- "version": "2.2.0-pr.710.24+7ce4f97e",
3
+ "version": "2.2.0-pr.710.26+a95be522",
4
4
  "description": "An ActivityPub server framework",
5
5
  "keywords": [
6
6
  "ActivityPub",
@@ -153,9 +153,9 @@
153
153
  "uri-template-router": "^1.0.0",
154
154
  "url-template": "^3.1.1",
155
155
  "urlpattern-polyfill": "^10.1.0",
156
- "@fedify/vocab": "2.2.0-pr.710.24+7ce4f97e",
157
- "@fedify/vocab-runtime": "2.2.0-pr.710.24+7ce4f97e",
158
- "@fedify/webfinger": "2.2.0-pr.710.24+7ce4f97e"
156
+ "@fedify/vocab-runtime": "2.2.0-pr.710.26+a95be522",
157
+ "@fedify/webfinger": "2.2.0-pr.710.26+a95be522",
158
+ "@fedify/vocab": "2.2.0-pr.710.26+a95be522"
159
159
  },
160
160
  "devDependencies": {
161
161
  "@std/assert": "npm:@jsr/std__assert@^0.226.0",
@@ -167,8 +167,8 @@
167
167
  "tsx": "^4.19.4",
168
168
  "typescript": "^5.9.2",
169
169
  "wrangler": "^4.17.0",
170
- "@fedify/fixture": "2.0.0",
171
- "@fedify/vocab-tools": "^2.2.0-pr.710.24+7ce4f97e"
170
+ "@fedify/vocab-tools": "^2.2.0-pr.710.26+a95be522",
171
+ "@fedify/fixture": "2.0.0"
172
172
  },
173
173
  "scripts": {
174
174
  "build:self": "tsdown",