@fedify/fedify 1.7.5 → 1.7.6
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/{actor-D-zfQLAH.js → actor-BPcHD1DQ.js} +3 -3
- package/dist/{actor-CKXuhyRT.js → actor-BnQGQxqE.js} +179 -179
- package/dist/{assert-0DSnLFa8.js → assert-DmFG7ppO.js} +1 -1
- package/dist/{assert_equals-XhPMqqO2.js → assert_equals-CTYbeopb.js} +29 -11
- package/dist/{assert_instance_of-v5adm_-K.js → assert_instance_of-CF09JHYM.js} +1 -1
- package/dist/{assert_is_error-Drwb_yQp.js → assert_is_error-nrwA1GeT.js} +1 -1
- package/dist/{assert_not_equals-BRPdeJ9D.js → assert_not_equals-Dc7y-V5Q.js} +1 -1
- package/dist/{assert_rejects-D_nYI1gs.js → assert_rejects-C-sxEMM5.js} +2 -2
- package/dist/{assert_throws-DNuPhPNp.js → assert_throws-Cn9C6Jur.js} +2 -2
- package/dist/{authdocloader-81r40Meg.js → authdocloader-Brpi6E4M.js} +3 -3
- package/dist/{authdocloader-CFk80WJv.js → authdocloader-hZbuGYGe.js} +3 -3
- package/dist/{builder-Cmn0cpiZ.js → builder-CkEsZWb3.js} +3 -3
- package/dist/{client-CuYHcL1K.js → client-DP--tJbJ.js} +1 -1
- package/dist/compat/transformers.test.js +20 -20
- package/dist/{context-CFiKyaR_.js → context-DdckLL3d.js} +2 -2
- package/dist/{docloader-BLY7GyoJ.js → docloader-Bf7FNkEt.js} +1 -1
- package/dist/{docloader-Ck2GBnC3.js → docloader-WGNocIQl.js} +1 -1
- package/dist/federation/builder.test.js +12 -12
- package/dist/federation/collection.test.js +8 -8
- package/dist/federation/handler.test.js +27 -27
- package/dist/federation/inbox.test.js +6 -6
- package/dist/federation/keycache.test.js +6 -6
- package/dist/federation/kv.test.js +8 -8
- package/dist/federation/middleware.test.js +26 -26
- package/dist/federation/mod.js +10 -10
- package/dist/federation/mq.test.js +8 -8
- package/dist/federation/retry.test.js +2 -2
- package/dist/federation/router.test.js +8 -8
- package/dist/federation/send.test.js +17 -17
- package/dist/{http-B6yJ2mAf.js → http-DrNOicWD.js} +5 -4
- package/dist/{http-Cmpdwx_X.js → http-kaBBOddv.js} +5 -4
- package/dist/{inbox-CcAueP-r.js → inbox-DaVmbpgM.js} +2 -2
- package/dist/{key-Cj0F3jFv.js → key-B9cBiT7f.js} +4 -4
- package/dist/{key-D1uKqeD5.js → key-BacJ7S4E.js} +2 -2
- package/dist/{key-BAckFVRH.js → key-DMk4CUyA.js} +3 -3
- package/dist/{key-rZ_Yr0Yr.js → key-DNbbkLEt.js} +5 -5
- package/dist/{keycache-Ce9ou6p4.js → keycache-1nfnh4MW.js} +1 -1
- package/dist/{keys-DcrALCdq.js → keys-DqZTy_b8.js} +1 -1
- package/dist/{ld-S8bkC8Cg.js → ld-DhRNxRXj.js} +3 -3
- package/dist/{lookup-CQ5H1v6m.js → lookup-DE4JI30z.js} +1 -1
- package/dist/{lookup-DNZf9_oN.js → lookup-Dom-VSN0.js} +1 -1
- package/dist/{lookup-DW0leLqq.js → lookup-DpBb3ixM.js} +3 -3
- package/dist/middleware-8reA9X9-.js +17 -0
- package/dist/{middleware-Ba2-qvzk.js → middleware-D6e8hqRt.js} +11 -11
- package/dist/middleware-DZnPb6Ha.js +33 -0
- package/dist/{middleware-CrCDov2d.js → middleware-DjGHOITR.js} +16 -16
- package/dist/{mod-sEI6_uZ2.d.ts → mod-DS-8N1r1.d.ts} +1 -1
- package/dist/mod.d.ts +2 -2
- package/dist/mod.js +10 -10
- package/dist/nodeinfo/client.test.js +10 -10
- package/dist/nodeinfo/handler.test.js +26 -26
- package/dist/nodeinfo/mod.js +2 -2
- package/dist/nodeinfo/semver.test.js +8 -8
- package/dist/nodeinfo/types.test.js +8 -8
- package/dist/{owner-B5IFvDCy.js → owner-Cj-uzr16.js} +3 -3
- package/dist/{proof-C6nF-oYD.js → proof-BydqlnsK.js} +3 -3
- package/dist/{proof-CnQWIl9G.js → proof-DfxuC-RR.js} +3 -3
- package/dist/runtime/authdocloader.test.js +16 -16
- package/dist/runtime/docloader.test.js +9 -9
- package/dist/runtime/key.test.js +13 -13
- package/dist/runtime/langstr.test.js +8 -8
- package/dist/runtime/mod.js +6 -6
- package/dist/runtime/multibase/multibase.test.js +8 -8
- package/dist/runtime/url.test.js +4 -4
- package/dist/{send-IlYZ_CVt.js → send-DHT4Dq2y.js} +2 -2
- package/dist/sig/http.test.js +38 -15
- package/dist/sig/key.test.js +14 -14
- package/dist/sig/ld.test.js +12 -12
- package/dist/sig/mod.d.ts +1 -1
- package/dist/sig/mod.js +6 -6
- package/dist/sig/owner.test.js +16 -16
- package/dist/sig/proof.test.js +15 -15
- package/dist/{std__assert-CmyZxqPw.js → std__assert-vp0TKMS1.js} +1 -1
- package/dist/testing/docloader.test.js +8 -8
- package/dist/{types-BAIE7lzA.js → types-DmNfU0QY.js} +1 -1
- package/dist/vocab/actor.test.js +12 -12
- package/dist/vocab/lookup.test.js +12 -12
- package/dist/vocab/mod.js +4 -4
- package/dist/vocab/type.test.js +3 -3
- package/dist/vocab/vocab.test.js +48 -46
- package/dist/{vocab-Cs1Xg69m.js → vocab-DTUqat8X.js} +178 -178
- package/dist/{vocab-BdvvrpJb.js → vocab-DfjcfPXi.js} +3 -3
- package/dist/webfinger/handler.test.js +26 -26
- package/dist/webfinger/lookup.test.js +10 -10
- package/dist/webfinger/mod.js +2 -2
- package/dist/x/cfworkers.test.js +8 -8
- package/package.json +1 -1
- package/dist/middleware-BBLmcWi8.js +0 -33
- package/dist/middleware-OQqgTYLn.js +0 -17
package/dist/federation/mod.js
CHANGED
@@ -3,16 +3,16 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
|
5
5
|
import "../transformers-ghwJuzGY.js";
|
6
|
-
import "../docloader-
|
7
|
-
import "../actor-
|
8
|
-
import { Router, RouterError, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable } from "../middleware-
|
9
|
-
import "../lookup-
|
10
|
-
import "../key-
|
11
|
-
import "../http-
|
12
|
-
import "../proof-
|
6
|
+
import "../docloader-WGNocIQl.js";
|
7
|
+
import "../actor-BnQGQxqE.js";
|
8
|
+
import { Router, RouterError, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable } from "../middleware-D6e8hqRt.js";
|
9
|
+
import "../lookup-DE4JI30z.js";
|
10
|
+
import "../key-BacJ7S4E.js";
|
11
|
+
import "../http-DrNOicWD.js";
|
12
|
+
import "../proof-BydqlnsK.js";
|
13
13
|
import { InProcessMessageQueue, MemoryKvStore, ParallelMessageQueue } from "../federation-BRIQn-GV.js";
|
14
|
-
import "../types-
|
15
|
-
import "../authdocloader-
|
16
|
-
import "../vocab-
|
14
|
+
import "../types-DmNfU0QY.js";
|
15
|
+
import "../authdocloader-hZbuGYGe.js";
|
16
|
+
import "../vocab-DfjcfPXi.js";
|
17
17
|
|
18
18
|
export { InProcessMessageQueue, MemoryKvStore, ParallelMessageQueue, Router, RouterError, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable };
|
@@ -3,15 +3,15 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import { assertEquals } from "../assert_equals-
|
7
|
-
import { assert } from "../assert-
|
8
|
-
import "../assert_instance_of-
|
6
|
+
import { assertEquals } from "../assert_equals-CTYbeopb.js";
|
7
|
+
import { assert } from "../assert-DmFG7ppO.js";
|
8
|
+
import "../assert_instance_of-CF09JHYM.js";
|
9
9
|
import { test } from "../testing-BZ0dJ4qn.js";
|
10
|
-
import { assertGreater, assertGreaterOrEqual } from "../std__assert-
|
11
|
-
import { assertFalse } from "../assert_rejects-
|
12
|
-
import "../assert_is_error-
|
13
|
-
import "../assert_not_equals-
|
14
|
-
import "../assert_throws-
|
10
|
+
import { assertGreater, assertGreaterOrEqual } from "../std__assert-vp0TKMS1.js";
|
11
|
+
import { assertFalse } from "../assert_rejects-C-sxEMM5.js";
|
12
|
+
import "../assert_is_error-nrwA1GeT.js";
|
13
|
+
import "../assert_not_equals-Dc7y-V5Q.js";
|
14
|
+
import "../assert_throws-Cn9C6Jur.js";
|
15
15
|
import { delay } from "@es-toolkit/es-toolkit";
|
16
16
|
|
17
17
|
//#region federation/mq.ts
|
@@ -3,10 +3,10 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import { AssertionError, assertEquals } from "../assert_equals-
|
6
|
+
import { AssertionError, assertEquals } from "../assert_equals-CTYbeopb.js";
|
7
7
|
import { createExponentialBackoffPolicy } from "../retry-BiIhZWgD.js";
|
8
8
|
import { test } from "../testing-BZ0dJ4qn.js";
|
9
|
-
import { assertNotEquals } from "../assert_not_equals-
|
9
|
+
import { assertNotEquals } from "../assert_not_equals-Dc7y-V5Q.js";
|
10
10
|
|
11
11
|
//#region federation/retry.test.ts
|
12
12
|
test("createExponentialBackoffPolicy()", () => {
|
@@ -3,16 +3,16 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import { assertEquals } from "../assert_equals-
|
7
|
-
import { assert } from "../assert-
|
8
|
-
import "../assert_instance_of-
|
6
|
+
import { assertEquals } from "../assert_equals-CTYbeopb.js";
|
7
|
+
import { assert } from "../assert-DmFG7ppO.js";
|
8
|
+
import "../assert_instance_of-CF09JHYM.js";
|
9
9
|
import { Router, RouterError } from "../router-D_aVZZUc.js";
|
10
10
|
import { test } from "../testing-BZ0dJ4qn.js";
|
11
|
-
import "../std__assert-
|
12
|
-
import { assertFalse } from "../assert_rejects-
|
13
|
-
import "../assert_is_error-
|
14
|
-
import "../assert_not_equals-
|
15
|
-
import { assertThrows } from "../assert_throws-
|
11
|
+
import "../std__assert-vp0TKMS1.js";
|
12
|
+
import { assertFalse } from "../assert_rejects-C-sxEMM5.js";
|
13
|
+
import "../assert_is_error-nrwA1GeT.js";
|
14
|
+
import "../assert_not_equals-Dc7y-V5Q.js";
|
15
|
+
import { assertThrows } from "../assert_throws-Cn9C6Jur.js";
|
16
16
|
|
17
17
|
//#region federation/router.test.ts
|
18
18
|
function setUp(options = {}) {
|
@@ -3,29 +3,29 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import { assertEquals } from "../assert_equals-
|
7
|
-
import { assert } from "../assert-
|
8
|
-
import "../assert_instance_of-
|
9
|
-
import "../docloader-
|
6
|
+
import { assertEquals } from "../assert_equals-CTYbeopb.js";
|
7
|
+
import { assert } from "../assert-DmFG7ppO.js";
|
8
|
+
import "../assert_instance_of-CF09JHYM.js";
|
9
|
+
import "../docloader-Bf7FNkEt.js";
|
10
10
|
import "../url-kTAI6_KP.js";
|
11
11
|
import "../multibase-DeCHcK8L.js";
|
12
|
-
import { Activity, Application, Endpoints, Group, Person, Service } from "../vocab-
|
12
|
+
import { Activity, Application, Endpoints, Group, Person, Service } from "../vocab-DTUqat8X.js";
|
13
13
|
import "../langstr-DbWheeIS.js";
|
14
|
-
import "../lookup-
|
14
|
+
import "../lookup-Dom-VSN0.js";
|
15
15
|
import "../type-D2s5lmbZ.js";
|
16
|
-
import "../actor-
|
17
|
-
import "../key-
|
18
|
-
import { verifyRequest } from "../http-
|
19
|
-
import { doesActorOwnKey } from "../owner-
|
20
|
-
import { extractInboxes, sendActivity } from "../send-
|
16
|
+
import "../actor-BPcHD1DQ.js";
|
17
|
+
import "../key-DMk4CUyA.js";
|
18
|
+
import { verifyRequest } from "../http-kaBBOddv.js";
|
19
|
+
import { doesActorOwnKey } from "../owner-Cj-uzr16.js";
|
20
|
+
import { extractInboxes, sendActivity } from "../send-DHT4Dq2y.js";
|
21
21
|
import { test } from "../testing-BZ0dJ4qn.js";
|
22
|
-
import "../std__assert-
|
23
|
-
import { assertFalse, assertRejects } from "../assert_rejects-
|
24
|
-
import "../assert_is_error-
|
25
|
-
import { assertNotEquals } from "../assert_not_equals-
|
26
|
-
import "../assert_throws-
|
22
|
+
import "../std__assert-vp0TKMS1.js";
|
23
|
+
import { assertFalse, assertRejects } from "../assert_rejects-C-sxEMM5.js";
|
24
|
+
import "../assert_is_error-nrwA1GeT.js";
|
25
|
+
import { assertNotEquals } from "../assert_not_equals-Dc7y-V5Q.js";
|
26
|
+
import "../assert_throws-Cn9C6Jur.js";
|
27
27
|
import { mockDocumentLoader } from "../docloader-09nVWLAZ.js";
|
28
|
-
import { ed25519Multikey, ed25519PrivateKey, rsaPrivateKey2, rsaPublicKey2 } from "../keys-
|
28
|
+
import { ed25519Multikey, ed25519PrivateKey, rsaPrivateKey2, rsaPublicKey2 } from "../keys-DqZTy_b8.js";
|
29
29
|
import { esm_default } from "../esm-CASHO3OR.js";
|
30
30
|
|
31
31
|
//#region federation/send.test.ts
|
@@ -2,9 +2,9 @@
|
|
2
2
|
import { Temporal } from "@js-temporal/polyfill";
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
|
5
|
-
import { deno_default } from "./docloader-
|
6
|
-
import { CryptographicKey } from "./actor-
|
7
|
-
import { fetchKey, validateCryptoKey } from "./key-
|
5
|
+
import { deno_default } from "./docloader-WGNocIQl.js";
|
6
|
+
import { CryptographicKey } from "./actor-BnQGQxqE.js";
|
7
|
+
import { fetchKey, validateCryptoKey } from "./key-BacJ7S4E.js";
|
8
8
|
import { getLogger } from "@logtape/logtape";
|
9
9
|
import { SpanStatusCode, trace } from "@opentelemetry/api";
|
10
10
|
import { decodeBase64, encodeBase64 } from "byte-encodings/base64";
|
@@ -651,7 +651,8 @@ async function verifyRequestRfc9421(request, span, { documentLoader, contextLoad
|
|
651
651
|
* @returns A new Request object for the redirect.
|
652
652
|
*/
|
653
653
|
function createRedirectRequest(request, location, body) {
|
654
|
-
|
654
|
+
const url = new URL(location, request.url);
|
655
|
+
return new Request(url, {
|
655
656
|
method: request.method,
|
656
657
|
headers: request.headers,
|
657
658
|
body,
|
@@ -3,9 +3,9 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import { deno_default } from "./docloader-
|
7
|
-
import { CryptographicKey } from "./vocab-
|
8
|
-
import { fetchKey, validateCryptoKey } from "./key-
|
6
|
+
import { deno_default } from "./docloader-Bf7FNkEt.js";
|
7
|
+
import { CryptographicKey } from "./vocab-DTUqat8X.js";
|
8
|
+
import { fetchKey, validateCryptoKey } from "./key-DMk4CUyA.js";
|
9
9
|
import { getLogger } from "@logtape/logtape";
|
10
10
|
import { SpanStatusCode, trace } from "@opentelemetry/api";
|
11
11
|
import { ATTR_HTTP_REQUEST_HEADER, ATTR_HTTP_REQUEST_METHOD, ATTR_URL_FULL } from "@opentelemetry/semantic-conventions";
|
@@ -652,7 +652,8 @@ async function verifyRequestRfc9421(request, span, { documentLoader, contextLoad
|
|
652
652
|
* @returns A new Request object for the redirect.
|
653
653
|
*/
|
654
654
|
function createRedirectRequest(request, location, body) {
|
655
|
-
|
655
|
+
const url = new URL(location, request.url);
|
656
|
+
return new Request(url, {
|
656
657
|
method: request.method,
|
657
658
|
headers: request.headers,
|
658
659
|
body,
|
@@ -3,8 +3,8 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import { deno_default } from "./docloader-
|
7
|
-
import { Activity } from "./vocab-
|
6
|
+
import { deno_default } from "./docloader-Bf7FNkEt.js";
|
7
|
+
import { Activity } from "./vocab-DTUqat8X.js";
|
8
8
|
import { getTypeId } from "./type-D2s5lmbZ.js";
|
9
9
|
import { getLogger } from "@logtape/logtape";
|
10
10
|
import { SpanKind, SpanStatusCode, context, propagation, trace } from "@opentelemetry/api";
|
@@ -2,9 +2,9 @@
|
|
2
2
|
import { Temporal } from "@js-temporal/polyfill";
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
|
5
|
-
import "./docloader-
|
6
|
-
import "./actor-
|
7
|
-
import "./lookup-
|
8
|
-
import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk, validateCryptoKey } from "./key-
|
5
|
+
import "./docloader-WGNocIQl.js";
|
6
|
+
import "./actor-BnQGQxqE.js";
|
7
|
+
import "./lookup-DE4JI30z.js";
|
8
|
+
import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk, validateCryptoKey } from "./key-BacJ7S4E.js";
|
9
9
|
|
10
10
|
export { validateCryptoKey };
|
@@ -2,8 +2,8 @@
|
|
2
2
|
import { Temporal } from "@js-temporal/polyfill";
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
|
5
|
-
import { deno_default, getDocumentLoader } from "./docloader-
|
6
|
-
import { CryptographicKey, Object as Object$1, isActor } from "./actor-
|
5
|
+
import { deno_default, getDocumentLoader } from "./docloader-WGNocIQl.js";
|
6
|
+
import { CryptographicKey, Object as Object$1, isActor } from "./actor-BnQGQxqE.js";
|
7
7
|
import { getLogger } from "@logtape/logtape";
|
8
8
|
import { SpanKind, SpanStatusCode, trace } from "@opentelemetry/api";
|
9
9
|
|
@@ -3,9 +3,9 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import { deno_default, getDocumentLoader } from "./docloader-
|
7
|
-
import { CryptographicKey, Object as Object$1 } from "./vocab-
|
8
|
-
import { isActor } from "./actor-
|
6
|
+
import { deno_default, getDocumentLoader } from "./docloader-Bf7FNkEt.js";
|
7
|
+
import { CryptographicKey, Object as Object$1 } from "./vocab-DTUqat8X.js";
|
8
|
+
import { isActor } from "./actor-BPcHD1DQ.js";
|
9
9
|
import { getLogger } from "@logtape/logtape";
|
10
10
|
import { SpanKind, SpanStatusCode, trace } from "@opentelemetry/api";
|
11
11
|
|
@@ -3,14 +3,14 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import "./docloader-
|
6
|
+
import "./docloader-Bf7FNkEt.js";
|
7
7
|
import "./url-kTAI6_KP.js";
|
8
8
|
import "./multibase-DeCHcK8L.js";
|
9
|
-
import "./vocab-
|
9
|
+
import "./vocab-DTUqat8X.js";
|
10
10
|
import "./langstr-DbWheeIS.js";
|
11
|
-
import "./lookup-
|
11
|
+
import "./lookup-Dom-VSN0.js";
|
12
12
|
import "./type-D2s5lmbZ.js";
|
13
|
-
import "./actor-
|
14
|
-
import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk, validateCryptoKey } from "./key-
|
13
|
+
import "./actor-BPcHD1DQ.js";
|
14
|
+
import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk, validateCryptoKey } from "./key-DMk4CUyA.js";
|
15
15
|
|
16
16
|
export { validateCryptoKey };
|
@@ -3,7 +3,7 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import { CryptographicKey, Multikey } from "./vocab-
|
6
|
+
import { CryptographicKey, Multikey } from "./vocab-DTUqat8X.js";
|
7
7
|
|
8
8
|
//#region federation/keycache.ts
|
9
9
|
var KvKeyCache = class {
|
@@ -3,7 +3,7 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import { CryptographicKey, Multikey, importSpki } from "./vocab-
|
6
|
+
import { CryptographicKey, Multikey, importSpki } from "./vocab-DTUqat8X.js";
|
7
7
|
|
8
8
|
//#region testing/keys.ts
|
9
9
|
const rsaPublicKey1 = new CryptographicKey({
|
@@ -3,10 +3,10 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import { deno_default, getDocumentLoader } from "./docloader-
|
7
|
-
import { Activity, CryptographicKey, Object as Object$1 } from "./vocab-
|
6
|
+
import { deno_default, getDocumentLoader } from "./docloader-Bf7FNkEt.js";
|
7
|
+
import { Activity, CryptographicKey, Object as Object$1 } from "./vocab-DTUqat8X.js";
|
8
8
|
import { getTypeId } from "./type-D2s5lmbZ.js";
|
9
|
-
import { fetchKey, validateCryptoKey } from "./key-
|
9
|
+
import { fetchKey, validateCryptoKey } from "./key-DMk4CUyA.js";
|
10
10
|
import { getLogger } from "@logtape/logtape";
|
11
11
|
import { SpanStatusCode, trace } from "@opentelemetry/api";
|
12
12
|
import { decodeBase64, encodeBase64 } from "byte-encodings/base64";
|
@@ -2,7 +2,7 @@
|
|
2
2
|
import { Temporal } from "@js-temporal/polyfill";
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
|
5
|
-
import { UrlError, deno_default, getUserAgent, validatePublicUrl } from "./docloader-
|
5
|
+
import { UrlError, deno_default, getUserAgent, validatePublicUrl } from "./docloader-WGNocIQl.js";
|
6
6
|
import { getLogger } from "@logtape/logtape";
|
7
7
|
import { SpanKind, SpanStatusCode, trace } from "@opentelemetry/api";
|
8
8
|
|
@@ -3,7 +3,7 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import { deno_default, getUserAgent } from "./docloader-
|
6
|
+
import { deno_default, getUserAgent } from "./docloader-Bf7FNkEt.js";
|
7
7
|
import { UrlError, validatePublicUrl } from "./url-kTAI6_KP.js";
|
8
8
|
import { getLogger } from "@logtape/logtape";
|
9
9
|
import { SpanKind, SpanStatusCode, trace } from "@opentelemetry/api";
|
@@ -3,9 +3,9 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import { deno_default, getDocumentLoader } from "./docloader-
|
7
|
-
import { Object as Object$1 } from "./vocab-
|
8
|
-
import { lookupWebFinger } from "./lookup-
|
6
|
+
import { deno_default, getDocumentLoader } from "./docloader-Bf7FNkEt.js";
|
7
|
+
import { Object as Object$1 } from "./vocab-DTUqat8X.js";
|
8
|
+
import { lookupWebFinger } from "./lookup-Dom-VSN0.js";
|
9
9
|
import { getTypeId } from "./type-D2s5lmbZ.js";
|
10
10
|
import { getLogger } from "@logtape/logtape";
|
11
11
|
import { SpanStatusCode, trace } from "@opentelemetry/api";
|
@@ -0,0 +1,17 @@
|
|
1
|
+
|
2
|
+
import { Temporal } from "@js-temporal/polyfill";
|
3
|
+
import { URLPattern } from "urlpattern-polyfill";
|
4
|
+
|
5
|
+
import "./transformers-ghwJuzGY.js";
|
6
|
+
import "./docloader-WGNocIQl.js";
|
7
|
+
import "./actor-BnQGQxqE.js";
|
8
|
+
import { ContextImpl, FederationImpl, InboxContextImpl, KvSpecDeterminer, createFederation } from "./middleware-D6e8hqRt.js";
|
9
|
+
import "./lookup-DE4JI30z.js";
|
10
|
+
import "./key-BacJ7S4E.js";
|
11
|
+
import "./http-DrNOicWD.js";
|
12
|
+
import "./proof-BydqlnsK.js";
|
13
|
+
import "./types-DmNfU0QY.js";
|
14
|
+
import "./authdocloader-hZbuGYGe.js";
|
15
|
+
import "./vocab-DfjcfPXi.js";
|
16
|
+
|
17
|
+
export { FederationImpl };
|
@@ -3,15 +3,15 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
|
5
5
|
import { getDefaultActivityTransformers } from "./transformers-ghwJuzGY.js";
|
6
|
-
import { deno_default, getDocumentLoader, kvCache } from "./docloader-
|
7
|
-
import { Activity, CryptographicKey, Link, Multikey, Object as Object$1, OrderedCollection, OrderedCollectionPage, getTypeId } from "./actor-
|
8
|
-
import { lookupWebFinger } from "./lookup-
|
9
|
-
import { exportJwk, importJwk, validateCryptoKey } from "./key-
|
10
|
-
import { doubleKnock, verifyRequest } from "./http-
|
11
|
-
import { detachSignature, doesActorOwnKey, getKeyOwner, hasSignature, signJsonLd, signObject, verifyJsonLd, verifyObject } from "./proof-
|
12
|
-
import { getNodeInfo, nodeInfoToJson } from "./types-
|
13
|
-
import { getAuthenticatedDocumentLoader } from "./authdocloader-
|
14
|
-
import { lookupObject, traverseCollection } from "./vocab-
|
6
|
+
import { deno_default, getDocumentLoader, kvCache } from "./docloader-WGNocIQl.js";
|
7
|
+
import { Activity, CryptographicKey, Link, Multikey, Object as Object$1, OrderedCollection, OrderedCollectionPage, getTypeId } from "./actor-BnQGQxqE.js";
|
8
|
+
import { lookupWebFinger } from "./lookup-DE4JI30z.js";
|
9
|
+
import { exportJwk, importJwk, validateCryptoKey } from "./key-BacJ7S4E.js";
|
10
|
+
import { doubleKnock, verifyRequest } from "./http-DrNOicWD.js";
|
11
|
+
import { detachSignature, doesActorOwnKey, getKeyOwner, hasSignature, signJsonLd, signObject, verifyJsonLd, verifyObject } from "./proof-BydqlnsK.js";
|
12
|
+
import { getNodeInfo, nodeInfoToJson } from "./types-DmNfU0QY.js";
|
13
|
+
import { getAuthenticatedDocumentLoader } from "./authdocloader-hZbuGYGe.js";
|
14
|
+
import { lookupObject, traverseCollection } from "./vocab-DfjcfPXi.js";
|
15
15
|
import { getLogger, withContext } from "@logtape/logtape";
|
16
16
|
import { SpanKind, SpanStatusCode, context, propagation, trace } from "@opentelemetry/api";
|
17
17
|
import { encodeHex } from "byte-encodings/hex";
|
@@ -312,7 +312,7 @@ var FederationBuilderImpl = class {
|
|
312
312
|
this.objectTypeIds = {};
|
313
313
|
}
|
314
314
|
async build(options) {
|
315
|
-
const { FederationImpl: FederationImpl$1 } = await import("./middleware-
|
315
|
+
const { FederationImpl: FederationImpl$1 } = await import("./middleware-8reA9X9-.js");
|
316
316
|
const f = new FederationImpl$1(options);
|
317
317
|
const trailingSlashInsensitiveValue = f.router.trailingSlashInsensitive;
|
318
318
|
f.router = this.router.clone();
|
@@ -2558,7 +2558,7 @@ var FederationImpl = class extends FederationBuilderImpl {
|
|
2558
2558
|
},
|
2559
2559
|
context: context$1,
|
2560
2560
|
filter: baseUrl != null ? new URL(baseUrl) : void 0,
|
2561
|
-
filterPredicate: baseUrl != null ? (i) => (i instanceof URL ? i.href : i.id?.href ?? "").startsWith(baseUrl) : void 0,
|
2561
|
+
filterPredicate: baseUrl != null ? ((i) => (i instanceof URL ? i.href : i.id?.href ?? "").startsWith(baseUrl)) : void 0,
|
2562
2562
|
collectionCallbacks: this.followersCallbacks,
|
2563
2563
|
tracerProvider: this.tracerProvider,
|
2564
2564
|
onUnauthorized,
|
@@ -0,0 +1,33 @@
|
|
1
|
+
|
2
|
+
import { Temporal } from "@js-temporal/polyfill";
|
3
|
+
import { URLPattern } from "urlpattern-polyfill";
|
4
|
+
globalThis.addEventListener = () => {};
|
5
|
+
|
6
|
+
import { ContextImpl, FederationImpl, InboxContextImpl, KvSpecDeterminer, createFederation } from "./middleware-DjGHOITR.js";
|
7
|
+
import "./docloader-Bf7FNkEt.js";
|
8
|
+
import "./url-kTAI6_KP.js";
|
9
|
+
import "./semver-DWClQt_5.js";
|
10
|
+
import "./client-DP--tJbJ.js";
|
11
|
+
import "./router-D_aVZZUc.js";
|
12
|
+
import "./types-C7C_l-jz.js";
|
13
|
+
import "./multibase-DeCHcK8L.js";
|
14
|
+
import "./vocab-DTUqat8X.js";
|
15
|
+
import "./langstr-DbWheeIS.js";
|
16
|
+
import "./lookup-Dom-VSN0.js";
|
17
|
+
import "./type-D2s5lmbZ.js";
|
18
|
+
import "./actor-BPcHD1DQ.js";
|
19
|
+
import "./key-DMk4CUyA.js";
|
20
|
+
import "./http-kaBBOddv.js";
|
21
|
+
import "./authdocloader-Brpi6E4M.js";
|
22
|
+
import "./ld-DhRNxRXj.js";
|
23
|
+
import "./owner-Cj-uzr16.js";
|
24
|
+
import "./proof-DfxuC-RR.js";
|
25
|
+
import "./lookup-DpBb3ixM.js";
|
26
|
+
import "./inbox-DaVmbpgM.js";
|
27
|
+
import "./builder-CkEsZWb3.js";
|
28
|
+
import "./collection-Dfb0TPno.js";
|
29
|
+
import "./keycache-1nfnh4MW.js";
|
30
|
+
import "./retry-BiIhZWgD.js";
|
31
|
+
import "./send-DHT4Dq2y.js";
|
32
|
+
|
33
|
+
export { FederationImpl };
|
@@ -3,26 +3,26 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import { deno_default, getDocumentLoader, kvCache } from "./docloader-
|
7
|
-
import { getNodeInfo } from "./client-
|
6
|
+
import { deno_default, getDocumentLoader, kvCache } from "./docloader-Bf7FNkEt.js";
|
7
|
+
import { getNodeInfo } from "./client-DP--tJbJ.js";
|
8
8
|
import { RouterError } from "./router-D_aVZZUc.js";
|
9
9
|
import { nodeInfoToJson } from "./types-C7C_l-jz.js";
|
10
|
-
import { Activity, CryptographicKey, Link, Multikey, Object as Object$1, OrderedCollection, OrderedCollectionPage } from "./vocab-
|
11
|
-
import { lookupWebFinger } from "./lookup-
|
10
|
+
import { Activity, CryptographicKey, Link, Multikey, Object as Object$1, OrderedCollection, OrderedCollectionPage } from "./vocab-DTUqat8X.js";
|
11
|
+
import { lookupWebFinger } from "./lookup-Dom-VSN0.js";
|
12
12
|
import { getTypeId } from "./type-D2s5lmbZ.js";
|
13
|
-
import { exportJwk, importJwk, validateCryptoKey } from "./key-
|
14
|
-
import { verifyRequest } from "./http-
|
15
|
-
import { getAuthenticatedDocumentLoader } from "./authdocloader-
|
16
|
-
import { detachSignature, hasSignature, signJsonLd, verifyJsonLd } from "./ld-
|
17
|
-
import { doesActorOwnKey, getKeyOwner } from "./owner-
|
18
|
-
import { signObject, verifyObject } from "./proof-
|
19
|
-
import { lookupObject, traverseCollection } from "./lookup-
|
20
|
-
import { routeActivity } from "./inbox-
|
21
|
-
import { FederationBuilderImpl } from "./builder-
|
13
|
+
import { exportJwk, importJwk, validateCryptoKey } from "./key-DMk4CUyA.js";
|
14
|
+
import { verifyRequest } from "./http-kaBBOddv.js";
|
15
|
+
import { getAuthenticatedDocumentLoader } from "./authdocloader-Brpi6E4M.js";
|
16
|
+
import { detachSignature, hasSignature, signJsonLd, verifyJsonLd } from "./ld-DhRNxRXj.js";
|
17
|
+
import { doesActorOwnKey, getKeyOwner } from "./owner-Cj-uzr16.js";
|
18
|
+
import { signObject, verifyObject } from "./proof-DfxuC-RR.js";
|
19
|
+
import { lookupObject, traverseCollection } from "./lookup-DpBb3ixM.js";
|
20
|
+
import { routeActivity } from "./inbox-DaVmbpgM.js";
|
21
|
+
import { FederationBuilderImpl } from "./builder-CkEsZWb3.js";
|
22
22
|
import { buildCollectionSynchronizationHeader } from "./collection-Dfb0TPno.js";
|
23
|
-
import { KvKeyCache } from "./keycache-
|
23
|
+
import { KvKeyCache } from "./keycache-1nfnh4MW.js";
|
24
24
|
import { createExponentialBackoffPolicy } from "./retry-BiIhZWgD.js";
|
25
|
-
import { extractInboxes, sendActivity } from "./send-
|
25
|
+
import { extractInboxes, sendActivity } from "./send-DHT4Dq2y.js";
|
26
26
|
import { getLogger, withContext } from "@logtape/logtape";
|
27
27
|
import { SpanKind, SpanStatusCode, context, propagation, trace } from "@opentelemetry/api";
|
28
28
|
import { ATTR_HTTP_REQUEST_HEADER, ATTR_HTTP_REQUEST_METHOD, ATTR_HTTP_RESPONSE_HEADER, ATTR_HTTP_RESPONSE_STATUS_CODE, ATTR_URL_FULL } from "@opentelemetry/semantic-conventions";
|
@@ -1693,7 +1693,7 @@ var FederationImpl = class extends FederationBuilderImpl {
|
|
1693
1693
|
},
|
1694
1694
|
context: context$1,
|
1695
1695
|
filter: baseUrl != null ? new URL(baseUrl) : void 0,
|
1696
|
-
filterPredicate: baseUrl != null ? (i) => (i instanceof URL ? i.href : i.id?.href ?? "").startsWith(baseUrl) : void 0,
|
1696
|
+
filterPredicate: baseUrl != null ? ((i) => (i instanceof URL ? i.href : i.id?.href ?? "").startsWith(baseUrl)) : void 0,
|
1697
1697
|
collectionCallbacks: this.followersCallbacks,
|
1698
1698
|
tracerProvider: this.tracerProvider,
|
1699
1699
|
onUnauthorized,
|
@@ -265,4 +265,4 @@ declare function verifyObject<T extends Object$1>(cls: (new (...args: any[]) =>
|
|
265
265
|
fromJsonLd(jsonLd: unknown, options: VerifyObjectOptions): Promise<T>;
|
266
266
|
}, jsonLd: unknown, options?: VerifyObjectOptions): Promise<T | null>;
|
267
267
|
//#endregion
|
268
|
-
export { CreateProofOptions, CreateSignatureOptions, SignJsonLdOptions, SignObjectOptions, VerifyJsonLdOptions, VerifyObjectOptions, VerifyProofOptions, VerifySignatureOptions, attachSignature, createProof, createSignature, detachSignature, signJsonLd, signObject, verifyJsonLd, verifyObject, verifyProof, verifySignature };
|
268
|
+
export { CreateProofOptions, type CreateSignatureOptions, type SignJsonLdOptions, SignObjectOptions, type VerifyJsonLdOptions, VerifyObjectOptions, VerifyProofOptions, type VerifySignatureOptions, attachSignature, createProof, createSignature, detachSignature, signJsonLd, signObject, verifyJsonLd, verifyObject, verifyProof, verifySignature };
|
package/dist/mod.d.ts
CHANGED
@@ -15,6 +15,6 @@ import { actorDehydrator, autoIdAssigner, getDefaultActivityTransformers } from
|
|
15
15
|
import "./mod-g0xFzAP9.js";
|
16
16
|
import "./mod-1pDWKvUL.js";
|
17
17
|
import { GetAuthenticatedDocumentLoaderOptions, exportMultibaseKey, exportSpki, getAuthenticatedDocumentLoader, importMultibaseKey, importPem, importPkcs1, importSpki } from "./mod-C2drFqH8.js";
|
18
|
-
import { CreateProofOptions, CreateSignatureOptions, SignJsonLdOptions, SignObjectOptions, VerifyJsonLdOptions, VerifyObjectOptions, VerifyProofOptions, VerifySignatureOptions, attachSignature, createProof, createSignature, detachSignature, signJsonLd, signObject, verifyJsonLd, verifyObject, verifyProof, verifySignature } from "./mod-
|
18
|
+
import { CreateProofOptions, CreateSignatureOptions, SignJsonLdOptions, SignObjectOptions, VerifyJsonLdOptions, VerifyObjectOptions, VerifyProofOptions, VerifySignatureOptions, attachSignature, createProof, createSignature, detachSignature, signJsonLd, signObject, verifyJsonLd, verifyObject, verifyProof, verifySignature } from "./mod-DS-8N1r1.js";
|
19
19
|
import "./mod-GIh5OYxW.js";
|
20
|
-
export { Accept, Activity, ActivityTransformer, Actor, ActorAliasMapper, ActorCallbackSetters, ActorDispatcher, ActorHandleMapper, ActorKeyPair, ActorKeyPairsDispatcher, ActorTypeName, Add, Announce, Application, Arrive, Article, Audio, AuthenticatedDocumentLoaderFactory, AuthorizePredicate, Block, ChatMessage, Collection, CollectionCallbackSetters, CollectionCounter, CollectionCursor, CollectionDispatcher, CollectionPage, Context, Create, CreateExponentialBackoffPolicyOptions, CreateFederationOptions, CreateProofOptions, CreateSignatureOptions, CryptographicKey, DataIntegrityProof, Delete, DidService, Dislike, Document, DocumentLoader, DocumentLoaderFactory, DocumentLoaderFactoryOptions, DoesActorOwnKeyOptions, Emoji, EmojiReact, Endpoints, Event, Export, Federatable, Federation, FederationBuilder, FederationFetchOptions, FederationKvPrefixes, FederationOptions, FederationOrigin, FederationQueueOptions, FederationStartQueueOptions, FetchError, FetchKeyOptions, FetchKeyResult, Flag, Follow, ForwardActivityOptions, GetActorHandleOptions, GetAuthenticatedDocumentLoaderOptions, GetDocumentLoaderOptions, GetKeyOwnerOptions, GetNodeInfoOptions, GetSignedKeyOptions, GetUserAgentOptions, Group, Hashtag, HttpMessageSignaturesSpec, HttpMessageSignaturesSpecDeterminer, Ignore, Image, InProcessMessageQueue, InProcessMessageQueueOptions, InboundService, InboxContext, InboxErrorHandler, InboxListener, InboxListenerSetters, IntransitiveActivity, Invite, Join, JsonValue, KeyCache, KvCacheParameters, KvKey, KvStore, KvStoreSetOptions, LanguageString, Leave, Like, Link, Listen, LookupObjectOptions, MemoryKvStore, Mention, Message, MessageQueue, MessageQueueEnqueueOptions, MessageQueueListenOptions, Move, Multikey, NodeInfo, NodeInfoDispatcher, NormalizeActorHandleOptions, Note, Object$1 as Object, ObjectAuthorizePredicate, ObjectCallbackSetters, ObjectDispatcher, Offer, OrderedCollection, OrderedCollectionPage, Organization, OutboundService, OutboxErrorHandler, PUBLIC_COLLECTION, Page, PageItems, ParallelMessageQueue, ParseNodeInfoOptions, ParseUriResult, Person, Place, Profile, PropertyValue, Protocol, Question, Read, Recipient, Reject, Relationship, RemoteDocument, Remove, RequestContext, ResourceDescriptor, RespondWithObjectOptions, RetryContext, RetryPolicy, RouteActivityOptions, Router, RouterError, RouterOptions, RouterRouteResult, SemVer, SendActivityOptions, SendActivityOptionsForCollection, SenderKeyPair, Service, Services, SharedInboxKeyDispatcher, SignJsonLdOptions, SignObjectOptions, SignRequestOptions, Software, Source, TentativeAccept, TentativeReject, Tombstone, Travel, TraverseCollectionOptions, Undo, Update, Usage, VerifyJsonLdOptions, VerifyObjectOptions, VerifyProofOptions, VerifyRequestOptions, VerifySignatureOptions, Video, View, actorDehydrator, attachSignature, autoIdAssigner, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, createProof, createSignature, detachSignature, digest, doesActorOwnKey, exportJwk, exportMultibaseKey, exportSpki, fetchDocumentLoader, fetchKey, formatSemVer, generateCryptoKeyPair, getActorClassByTypeName, getActorHandle, getActorTypeName, getAuthenticatedDocumentLoader, getDefaultActivityTransformers, getDocumentLoader, getKeyOwner, getNodeInfo, getTypeId, getUserAgent, importJwk, importMultibaseKey, importPem, importPkcs1, importSpki, isActor, kvCache, lookupObject, lookupWebFinger, nodeInfoToJson, normalizeActorHandle, parseNodeInfo, parseSemVer, respondWithObject, respondWithObjectIfAcceptable, signJsonLd, signObject, signRequest, traverseCollection, verifyJsonLd, verifyObject, verifyProof, verifyRequest, verifySignature };
|
20
|
+
export { Accept, Activity, ActivityTransformer, Actor, ActorAliasMapper, ActorCallbackSetters, ActorDispatcher, ActorHandleMapper, ActorKeyPair, ActorKeyPairsDispatcher, ActorTypeName, Add, Announce, Application, Arrive, Article, Audio, AuthenticatedDocumentLoaderFactory, AuthorizePredicate, Block, ChatMessage, Collection, CollectionCallbackSetters, CollectionCounter, CollectionCursor, CollectionDispatcher, CollectionPage, Context, Create, CreateExponentialBackoffPolicyOptions, CreateFederationOptions, CreateProofOptions, CreateSignatureOptions, CryptographicKey, DataIntegrityProof, Delete, DidService, Dislike, Document, DocumentLoader, DocumentLoaderFactory, DocumentLoaderFactoryOptions, DoesActorOwnKeyOptions, Emoji, EmojiReact, Endpoints, Event, Export, Federatable, Federation, FederationBuilder, FederationFetchOptions, FederationKvPrefixes, FederationOptions, FederationOrigin, FederationQueueOptions, FederationStartQueueOptions, FetchError, FetchKeyOptions, FetchKeyResult, Flag, Follow, ForwardActivityOptions, GetActorHandleOptions, GetAuthenticatedDocumentLoaderOptions, GetDocumentLoaderOptions, GetKeyOwnerOptions, GetNodeInfoOptions, GetSignedKeyOptions, GetUserAgentOptions, Group, Hashtag, HttpMessageSignaturesSpec, HttpMessageSignaturesSpecDeterminer, Ignore, Image, InProcessMessageQueue, InProcessMessageQueueOptions, InboundService, InboxContext, InboxErrorHandler, InboxListener, InboxListenerSetters, IntransitiveActivity, Invite, Join, JsonValue, KeyCache, KvCacheParameters, KvKey, KvStore, KvStoreSetOptions, LanguageString, Leave, Like, Link, Listen, LookupObjectOptions, MemoryKvStore, Mention, Message, MessageQueue, MessageQueueEnqueueOptions, MessageQueueListenOptions, Move, Multikey, NodeInfo, NodeInfoDispatcher, NormalizeActorHandleOptions, Note, Object$1 as Object, ObjectAuthorizePredicate, ObjectCallbackSetters, ObjectDispatcher, Offer, OrderedCollection, OrderedCollectionPage, Organization, OutboundService, OutboxErrorHandler, PUBLIC_COLLECTION, Page, PageItems, ParallelMessageQueue, ParseNodeInfoOptions, ParseUriResult, Person, Place, Profile, PropertyValue, Protocol, Question, Read, Recipient, Reject, Relationship, RemoteDocument, Remove, RequestContext, type ResourceDescriptor, RespondWithObjectOptions, RetryContext, RetryPolicy, RouteActivityOptions, Router, RouterError, RouterOptions, RouterRouteResult, SemVer, SendActivityOptions, SendActivityOptionsForCollection, SenderKeyPair, Service, Services, SharedInboxKeyDispatcher, SignJsonLdOptions, SignObjectOptions, SignRequestOptions, Software, Source, TentativeAccept, TentativeReject, Tombstone, Travel, TraverseCollectionOptions, Undo, Update, Usage, VerifyJsonLdOptions, VerifyObjectOptions, VerifyProofOptions, VerifyRequestOptions, VerifySignatureOptions, Video, View, actorDehydrator, attachSignature, autoIdAssigner, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, createProof, createSignature, detachSignature, digest, doesActorOwnKey, exportJwk, exportMultibaseKey, exportSpki, fetchDocumentLoader, fetchKey, formatSemVer, generateCryptoKeyPair, getActorClassByTypeName, getActorHandle, getActorTypeName, getAuthenticatedDocumentLoader, getDefaultActivityTransformers, getDocumentLoader, getKeyOwner, getNodeInfo, getTypeId, getUserAgent, importJwk, importMultibaseKey, importPem, importPkcs1, importSpki, isActor, kvCache, lookupObject, lookupWebFinger, nodeInfoToJson, normalizeActorHandle, parseNodeInfo, parseSemVer, respondWithObject, respondWithObjectIfAcceptable, signJsonLd, signObject, signRequest, traverseCollection, verifyJsonLd, verifyObject, verifyProof, verifyRequest, verifySignature };
|
package/dist/mod.js
CHANGED
@@ -4,17 +4,17 @@
|
|
4
4
|
|
5
5
|
import { actorDehydrator, autoIdAssigner, getDefaultActivityTransformers } from "./transformers-ghwJuzGY.js";
|
6
6
|
import "./compat-Bb5myD13.js";
|
7
|
-
import { FetchError, fetchDocumentLoader, getDocumentLoader, getUserAgent, kvCache } from "./docloader-
|
8
|
-
import { Accept, Activity, Add, Announce, Application, Arrive, Article, Audio, Block, ChatMessage, Collection, CollectionPage, Create, CryptographicKey, DataIntegrityProof, Delete, DidService, Dislike, Document, Emoji, EmojiReact, Endpoints, Event, Export, Flag, Follow, Group, Hashtag, Ignore, Image, IntransitiveActivity, Invite, Join, LanguageString, Leave, Like, Link, Listen, Mention, Move, Multikey, Note, Object as Object$1, Offer, OrderedCollection, OrderedCollectionPage, Organization, Page, Person, Place, Profile, PropertyValue, Question, Read, Reject, Relationship, Remove, Service, Source, TentativeAccept, TentativeReject, Tombstone, Travel, Undo, Update, Video, View, exportMultibaseKey, exportSpki, getActorClassByTypeName, getActorHandle, getActorTypeName, getTypeId, importMultibaseKey, importPem, importPkcs1, importSpki, isActor, normalizeActorHandle } from "./actor-
|
9
|
-
import { Router, RouterError, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable } from "./middleware-
|
10
|
-
import { lookupWebFinger } from "./lookup-
|
11
|
-
import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk } from "./key-
|
12
|
-
import { signRequest, verifyRequest } from "./http-
|
13
|
-
import { attachSignature, createProof, createSignature, detachSignature, doesActorOwnKey, getKeyOwner, signJsonLd, signObject, verifyJsonLd, verifyObject, verifyProof, verifySignature } from "./proof-
|
7
|
+
import { FetchError, fetchDocumentLoader, getDocumentLoader, getUserAgent, kvCache } from "./docloader-WGNocIQl.js";
|
8
|
+
import { Accept, Activity, Add, Announce, Application, Arrive, Article, Audio, Block, ChatMessage, Collection, CollectionPage, Create, CryptographicKey, DataIntegrityProof, Delete, DidService, Dislike, Document, Emoji, EmojiReact, Endpoints, Event, Export, Flag, Follow, Group, Hashtag, Ignore, Image, IntransitiveActivity, Invite, Join, LanguageString, Leave, Like, Link, Listen, Mention, Move, Multikey, Note, Object as Object$1, Offer, OrderedCollection, OrderedCollectionPage, Organization, Page, Person, Place, Profile, PropertyValue, Question, Read, Reject, Relationship, Remove, Service, Source, TentativeAccept, TentativeReject, Tombstone, Travel, Undo, Update, Video, View, exportMultibaseKey, exportSpki, getActorClassByTypeName, getActorHandle, getActorTypeName, getTypeId, importMultibaseKey, importPem, importPkcs1, importSpki, isActor, normalizeActorHandle } from "./actor-BnQGQxqE.js";
|
9
|
+
import { Router, RouterError, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable } from "./middleware-D6e8hqRt.js";
|
10
|
+
import { lookupWebFinger } from "./lookup-DE4JI30z.js";
|
11
|
+
import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk } from "./key-BacJ7S4E.js";
|
12
|
+
import { signRequest, verifyRequest } from "./http-DrNOicWD.js";
|
13
|
+
import { attachSignature, createProof, createSignature, detachSignature, doesActorOwnKey, getKeyOwner, signJsonLd, signObject, verifyJsonLd, verifyObject, verifyProof, verifySignature } from "./proof-BydqlnsK.js";
|
14
14
|
import { InProcessMessageQueue, MemoryKvStore, ParallelMessageQueue } from "./federation-BRIQn-GV.js";
|
15
|
-
import { formatSemVer, getNodeInfo, nodeInfoToJson, parseNodeInfo, parseSemVer } from "./types-
|
16
|
-
import { getAuthenticatedDocumentLoader } from "./authdocloader-
|
17
|
-
import { PUBLIC_COLLECTION, lookupObject, traverseCollection } from "./vocab-
|
15
|
+
import { formatSemVer, getNodeInfo, nodeInfoToJson, parseNodeInfo, parseSemVer } from "./types-DmNfU0QY.js";
|
16
|
+
import { getAuthenticatedDocumentLoader } from "./authdocloader-hZbuGYGe.js";
|
17
|
+
import { PUBLIC_COLLECTION, lookupObject, traverseCollection } from "./vocab-DfjcfPXi.js";
|
18
18
|
import "./nodeinfo-CyEbLjHs.js";
|
19
19
|
import "./runtime-BSkOVUWM.js";
|
20
20
|
import "./sig-BXJO--F9.js";
|
@@ -3,19 +3,19 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import { assertEquals } from "../assert_equals-
|
7
|
-
import "../assert-
|
8
|
-
import "../assert_instance_of-
|
9
|
-
import "../docloader-
|
6
|
+
import { assertEquals } from "../assert_equals-CTYbeopb.js";
|
7
|
+
import "../assert-DmFG7ppO.js";
|
8
|
+
import "../assert_instance_of-CF09JHYM.js";
|
9
|
+
import "../docloader-Bf7FNkEt.js";
|
10
10
|
import "../url-kTAI6_KP.js";
|
11
11
|
import "../semver-DWClQt_5.js";
|
12
|
-
import { getNodeInfo, parseInboundService, parseNodeInfo, parseOutboundService, parseProtocol, parseServices, parseSoftware, parseUsage } from "../client-
|
12
|
+
import { getNodeInfo, parseInboundService, parseNodeInfo, parseOutboundService, parseProtocol, parseServices, parseSoftware, parseUsage } from "../client-DP--tJbJ.js";
|
13
13
|
import { test } from "../testing-BZ0dJ4qn.js";
|
14
|
-
import "../std__assert-
|
15
|
-
import "../assert_rejects-
|
16
|
-
import "../assert_is_error-
|
17
|
-
import "../assert_not_equals-
|
18
|
-
import "../assert_throws-
|
14
|
+
import "../std__assert-vp0TKMS1.js";
|
15
|
+
import "../assert_rejects-C-sxEMM5.js";
|
16
|
+
import "../assert_is_error-nrwA1GeT.js";
|
17
|
+
import "../assert_not_equals-Dc7y-V5Q.js";
|
18
|
+
import "../assert_throws-Cn9C6Jur.js";
|
19
19
|
import { esm_default } from "../esm-CASHO3OR.js";
|
20
20
|
|
21
21
|
//#region nodeinfo/client.test.ts
|