@fedify/fedify 1.8.1-pr.339.1222 → 1.8.1-pr.339.1267
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/README.md +14 -11
- package/dist/{actor-B4TBtqRP.d.ts → actor-C2nhWp6O.d.ts} +3 -3
- package/dist/{actor-Bt5xDUZo.js → actor-CmkL94HP.js} +2 -2
- package/dist/{actor-DVPWhxHG.js → actor-aW87k6YP.js} +189 -189
- package/dist/{assert-DwEa6glZ.js → assert-MZs1qjMx.js} +2 -2
- package/dist/{assert_equals-C5gKCm6A.js → assert_equals-DSbWqCm3.js} +9 -9
- package/dist/{assert_instance_of-C9QtN-X9.js → assert_instance_of-DHz7EHNU.js} +2 -2
- package/dist/{assert_is_error-CeVBLPsZ.js → assert_is_error-BPGph1Jx.js} +2 -2
- package/dist/{assert_not_equals-D2R2nl5h.js → assert_not_equals-f3m3epl3.js} +2 -2
- package/dist/{assert_rejects-AjlKk-Vo.js → assert_rejects-DiIiJbZn.js} +4 -4
- package/dist/{assert_throws-CqMKbTh_.js → assert_throws-BOO88avQ.js} +3 -3
- package/dist/{authdocloader-DgY04ZH-.js → authdocloader-CSdMJ3OD.js} +4 -4
- package/dist/{authdocloader-C-AUsWQ2.js → authdocloader-CfZzF6aW.js} +4 -4
- package/dist/{builder-C9T8U_Uf.js → builder-KOoy-ITr.js} +6 -6
- package/dist/{client-BQ4AQGKo.d.ts → client-D2tgjFk3.d.ts} +4 -4
- package/dist/{client-DWpUfRbw.js → client-DfttEsJO.js} +3 -3
- package/dist/{collection-D5V3UzU3.js → collection-CSzG2j1P.js} +1 -1
- package/dist/compat/mod.d.ts +12 -12
- package/dist/compat/mod.js +1 -1
- package/dist/compat/transformers.test.js +25 -25
- package/dist/{context-Csbv_Ssv.d.ts → context-BBD2ZH_P.d.ts} +95 -95
- package/dist/{denokv-DK9P5Jq7.js → denokv-2x6-IpXO.js} +1 -1
- package/dist/{docloader-vzD7dFee.js → docloader-BCgyiRag.js} +34 -34
- package/dist/{docloader-BeCtcTOJ.d.ts → docloader-Bz56sKV5.d.ts} +2 -2
- package/dist/{esm-CvgSbZB6.js → esm-BwBAFDMZ.js} +15 -15
- package/dist/federation/builder.test.js +16 -16
- package/dist/federation/collection.test.js +13 -13
- package/dist/federation/handler.test.js +31 -31
- package/dist/federation/inbox.test.js +8 -8
- package/dist/federation/keycache.test.js +9 -9
- package/dist/federation/kv.test.js +13 -13
- package/dist/federation/middleware.test.js +34 -34
- package/dist/federation/mod.d.ts +11 -11
- package/dist/federation/mod.js +12 -12
- package/dist/federation/mq.test.js +15 -15
- package/dist/federation/retry.test.js +7 -7
- package/dist/federation/router.test.js +12 -12
- package/dist/federation/send.test.js +19 -19
- package/dist/{federation-C44ekWNP.js → federation-CMX7WzeL.js} +2 -2
- package/dist/{http-CJ_WXWxy.js → http-B1ff1viM.js} +4 -4
- package/dist/{http-sujZOSn0.js → http-BUhvpgNR.js} +3 -3
- package/dist/{http-BL6S1G0j.d.ts → http-l4uEvaAw.d.ts} +5 -5
- package/dist/{inbox-ziHZFl9m.js → inbox-CJoj4ew9.js} +2 -2
- package/dist/{key-CqPfdz_a.js → key-B9HDRSYF.js} +4 -4
- package/dist/{key-C8O0PF-4.js → key-Bycq40gh.js} +4 -4
- package/dist/{key-B8eVu_yr.js → key-D-lyguVw.js} +3 -3
- package/dist/{key-CSJmowMR.js → key-Dytvox0s.js} +4 -4
- package/dist/{keycache-8pBZ0_On.js → keycache-DRL-euZL.js} +2 -2
- package/dist/{keys-BNpjYTyO.js → keys-3qmW6xNM.js} +2 -2
- package/dist/{kv-DDdb1hMa.d.ts → kv-C7sopW2E.d.ts} +2 -2
- package/dist/{kv-D7Yt6pnB.js → kv-CRZrzyXm.js} +1 -1
- package/dist/{ld-BL1xjQSp.js → ld-DCy3fb6F.js} +3 -3
- package/dist/{lookup-COgtfqH1.js → lookup-B0kqr1YK.js} +4 -4
- package/dist/{lookup-J_m4YZg0.d.ts → lookup-BJelGpWr.d.ts} +3 -3
- package/dist/{lookup-DofYsQEG.js → lookup-gra7DAIV.js} +2 -2
- package/dist/middleware-B8IJYZA9.js +17 -0
- package/dist/{middleware-CKluVPhT.js → middleware-CAzmuaK9.js} +53 -53
- package/dist/{middleware-DLufxElo.js → middleware-CWKaURv5.js} +51 -51
- package/dist/middleware-D8Av026r.js +26 -0
- package/dist/{mod-BFwgZ7_K.d.ts → mod-D79SaXL-.d.ts} +6 -6
- package/dist/{mod-Dc_fDCtK.d.ts → mod-DDwnlIlm.d.ts} +6 -6
- package/dist/{mod-D8-liXFY.d.ts → mod-DM7ZpXF4.d.ts} +4 -4
- package/dist/{mod-j0OCtlRW.d.ts → mod-DwquBB1g.d.ts} +6 -6
- package/dist/mod.d.ts +14 -14
- package/dist/mod.js +12 -12
- package/dist/{mq-DYKDDJmp.d.ts → mq-CRGm1e_F.d.ts} +1 -1
- package/dist/nodeinfo/client.test.js +15 -15
- package/dist/nodeinfo/handler.test.js +30 -30
- package/dist/nodeinfo/mod.d.ts +3 -3
- package/dist/nodeinfo/mod.js +2 -2
- package/dist/nodeinfo/semver.test.js +13 -13
- package/dist/nodeinfo/types.test.js +14 -14
- package/dist/{owner-X6sRUlBy.js → owner-DExszVkD.js} +3 -3
- package/dist/{owner-CEv_PfyK.d.ts → owner-fFqUg4lq.d.ts} +4 -4
- package/dist/{proof-DeKaTDaf.js → proof-Cnxcwp1a.js} +4 -4
- package/dist/{proof-5_7xBmeg.js → proof-DY_ZcCZq.js} +7 -7
- package/dist/{retry-BnpVRGFC.js → retry-D4GJ670a.js} +1 -1
- package/dist/runtime/authdocloader.test.js +18 -18
- package/dist/runtime/docloader.test.js +14 -14
- package/dist/runtime/key.test.js +14 -14
- package/dist/runtime/langstr.test.js +12 -12
- package/dist/runtime/mod.d.ts +5 -5
- package/dist/runtime/mod.js +6 -6
- package/dist/runtime/multibase/multibase.test.js +12 -12
- package/dist/runtime/url.test.js +8 -8
- package/dist/{semver-DCqorrj5.js → semver-dArNLkR9.js} +1 -1
- package/dist/{send-CgfThRII.js → send-ovNk9TQg.js} +3 -3
- package/dist/sig/http.test.js +17 -17
- package/dist/sig/key.test.js +15 -15
- package/dist/sig/ld.test.js +13 -13
- package/dist/sig/mod.d.ts +7 -7
- package/dist/sig/mod.js +6 -6
- package/dist/sig/owner.test.js +16 -16
- package/dist/sig/proof.test.js +16 -16
- package/dist/{std__assert-BQdmxyzF.js → std__assert-X-_kMxKM.js} +6 -6
- package/dist/testing/docloader.test.js +12 -12
- package/dist/testing/mod.d.ts +90 -90
- package/dist/testing/mod.js +3 -3
- package/dist/{testing-BoRC_4LY.js → testing-Ddk8H2Ez.js} +5 -5
- package/dist/{transformers-ghwJuzGY.js → transformers-Dna8Fg7k.js} +4 -4
- package/dist/{type-ezvzDgRG.js → type-C4M92j6x.js} +221 -221
- package/dist/{types-n7HI7VFr.js → types-BIgY6c-l.js} +2 -2
- package/dist/{types-CyMsyyYb.js → types-C0RmUAha.js} +4 -4
- package/dist/vocab/actor.test.js +143 -143
- package/dist/vocab/lookup.test.js +13 -13
- package/dist/vocab/mod.d.ts +5 -5
- package/dist/vocab/mod.js +4 -4
- package/dist/vocab/type.test.js +5 -5
- package/dist/vocab/vocab.test.js +54 -54
- package/dist/{vocab-By6mpzr-.d.ts → vocab-CA7YwVEz.d.ts} +3 -3
- package/dist/{vocab-DSvb-EJO.js → vocab-DyLqaidG.js} +6 -6
- package/dist/webfinger/handler.test.js +30 -30
- package/dist/webfinger/lookup.test.js +13 -13
- package/dist/webfinger/mod.d.ts +3 -3
- package/dist/webfinger/mod.js +2 -2
- package/dist/x/cfworkers.d.ts +3 -3
- package/dist/x/cfworkers.js +1 -1
- package/dist/x/cfworkers.test.js +13 -13
- package/dist/x/hono.d.ts +16 -16
- package/dist/x/hono.js +3 -3
- package/dist/x/sveltekit.d.ts +13 -13
- package/dist/x/sveltekit.js +2 -2
- package/package.json +3 -3
- package/dist/middleware-BJaUQkU6.js +0 -26
- package/dist/middleware-DsFygqcs.js +0 -17
- /package/dist/{vocab → src/vocab}/accept.yaml +0 -0
- /package/dist/{vocab → src/vocab}/activity.yaml +0 -0
- /package/dist/{vocab → src/vocab}/add.yaml +0 -0
- /package/dist/{vocab → src/vocab}/announce.yaml +0 -0
- /package/dist/{vocab → src/vocab}/application.yaml +0 -0
- /package/dist/{vocab → src/vocab}/arrive.yaml +0 -0
- /package/dist/{vocab → src/vocab}/article.yaml +0 -0
- /package/dist/{vocab → src/vocab}/audio.yaml +0 -0
- /package/dist/{vocab → src/vocab}/block.yaml +0 -0
- /package/dist/{vocab → src/vocab}/chatmessage.yaml +0 -0
- /package/dist/{vocab → src/vocab}/collection.yaml +0 -0
- /package/dist/{vocab → src/vocab}/collectionpage.yaml +0 -0
- /package/dist/{vocab → src/vocab}/create.yaml +0 -0
- /package/dist/{vocab → src/vocab}/dataintegrityproof.yaml +0 -0
- /package/dist/{vocab → src/vocab}/delete.yaml +0 -0
- /package/dist/{vocab → src/vocab}/didservice.yaml +0 -0
- /package/dist/{vocab → src/vocab}/dislike.yaml +0 -0
- /package/dist/{vocab → src/vocab}/document.yaml +0 -0
- /package/dist/{vocab → src/vocab}/emoji.yaml +0 -0
- /package/dist/{vocab → src/vocab}/emojireact.yaml +0 -0
- /package/dist/{vocab → src/vocab}/endpoints.yaml +0 -0
- /package/dist/{vocab → src/vocab}/event.yaml +0 -0
- /package/dist/{vocab → src/vocab}/export.yaml +0 -0
- /package/dist/{vocab → src/vocab}/flag.yaml +0 -0
- /package/dist/{vocab → src/vocab}/follow.yaml +0 -0
- /package/dist/{vocab → src/vocab}/group.yaml +0 -0
- /package/dist/{vocab → src/vocab}/hashtag.yaml +0 -0
- /package/dist/{vocab → src/vocab}/ignore.yaml +0 -0
- /package/dist/{vocab → src/vocab}/image.yaml +0 -0
- /package/dist/{vocab → src/vocab}/intransitiveactivity.yaml +0 -0
- /package/dist/{vocab → src/vocab}/invite.yaml +0 -0
- /package/dist/{vocab → src/vocab}/join.yaml +0 -0
- /package/dist/{vocab → src/vocab}/key.yaml +0 -0
- /package/dist/{vocab → src/vocab}/leave.yaml +0 -0
- /package/dist/{vocab → src/vocab}/like.yaml +0 -0
- /package/dist/{vocab → src/vocab}/link.yaml +0 -0
- /package/dist/{vocab → src/vocab}/listen.yaml +0 -0
- /package/dist/{vocab → src/vocab}/mention.yaml +0 -0
- /package/dist/{vocab → src/vocab}/move.yaml +0 -0
- /package/dist/{vocab → src/vocab}/multikey.yaml +0 -0
- /package/dist/{vocab → src/vocab}/note.yaml +0 -0
- /package/dist/{vocab → src/vocab}/object.yaml +0 -0
- /package/dist/{vocab → src/vocab}/offer.yaml +0 -0
- /package/dist/{vocab → src/vocab}/orderedcollection.yaml +0 -0
- /package/dist/{vocab → src/vocab}/orderedcollectionpage.yaml +0 -0
- /package/dist/{vocab → src/vocab}/organization.yaml +0 -0
- /package/dist/{vocab → src/vocab}/page.yaml +0 -0
- /package/dist/{vocab → src/vocab}/person.yaml +0 -0
- /package/dist/{vocab → src/vocab}/place.yaml +0 -0
- /package/dist/{vocab → src/vocab}/profile.yaml +0 -0
- /package/dist/{vocab → src/vocab}/propertyvalue.yaml +0 -0
- /package/dist/{vocab → src/vocab}/question.yaml +0 -0
- /package/dist/{vocab → src/vocab}/read.yaml +0 -0
- /package/dist/{vocab → src/vocab}/reject.yaml +0 -0
- /package/dist/{vocab → src/vocab}/relationship.yaml +0 -0
- /package/dist/{vocab → src/vocab}/remove.yaml +0 -0
- /package/dist/{vocab → src/vocab}/service.yaml +0 -0
- /package/dist/{vocab → src/vocab}/source.yaml +0 -0
- /package/dist/{vocab → src/vocab}/tentativeaccept.yaml +0 -0
- /package/dist/{vocab → src/vocab}/tentativereject.yaml +0 -0
- /package/dist/{vocab → src/vocab}/tombstone.yaml +0 -0
- /package/dist/{vocab → src/vocab}/travel.yaml +0 -0
- /package/dist/{vocab → src/vocab}/undo.yaml +0 -0
- /package/dist/{vocab → src/vocab}/update.yaml +0 -0
- /package/dist/{vocab → src/vocab}/video.yaml +0 -0
- /package/dist/{vocab → src/vocab}/view.yaml +0 -0
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { AssertionError } from "./assert_equals-
|
|
6
|
+
import { AssertionError } from "./assert_equals-DSbWqCm3.js";
|
|
7
7
|
|
|
8
|
-
//#region
|
|
8
|
+
//#region ../../node_modules/.pnpm/@jsr+std__assert@0.226.0/node_modules/@jsr/std__assert/assert.js
|
|
9
9
|
/**
|
|
10
10
|
* Make an assertion, error will be thrown if `expr` does not have truthy value.
|
|
11
11
|
*
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
//#region
|
|
6
|
+
//#region ../../node_modules/.pnpm/@jsr+std__assert@0.226.0/node_modules/@jsr/std__assert/assertion_error.js
|
|
7
7
|
/**
|
|
8
8
|
* Error thrown when an assertion fails.
|
|
9
9
|
*
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
};
|
|
32
32
|
|
|
33
33
|
//#endregion
|
|
34
|
-
//#region
|
|
34
|
+
//#region ../../node_modules/.pnpm/@jsr+std__assert@0.226.0/node_modules/@jsr/std__assert/equal.js
|
|
35
35
|
function isKeyedCollection(x) {
|
|
36
36
|
return [Symbol.iterator, "size"].every((k) => k in x);
|
|
37
37
|
}
|
|
@@ -105,7 +105,7 @@ function constructorsEqual(a, b) {
|
|
|
105
105
|
}
|
|
106
106
|
|
|
107
107
|
//#endregion
|
|
108
|
-
//#region
|
|
108
|
+
//#region ../../node_modules/.pnpm/@jsr+std__internal@1.0.8/node_modules/@jsr/std__internal/assertion_state.js
|
|
109
109
|
/**
|
|
110
110
|
* Check the test suite internal state
|
|
111
111
|
*
|
|
@@ -284,7 +284,7 @@ function constructorsEqual(a, b) {
|
|
|
284
284
|
const assertionState = new AssertionState();
|
|
285
285
|
|
|
286
286
|
//#endregion
|
|
287
|
-
//#region
|
|
287
|
+
//#region ../../node_modules/.pnpm/@jsr+std__internal@1.0.8/node_modules/@jsr/std__internal/styles.js
|
|
288
288
|
const { Deno } = globalThis;
|
|
289
289
|
const noColor = typeof Deno?.noColor === "boolean" ? Deno.noColor : false;
|
|
290
290
|
const enabled = !noColor;
|
|
@@ -451,7 +451,7 @@ const ANSI_PATTERN = new RegExp(["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-z
|
|
|
451
451
|
}
|
|
452
452
|
|
|
453
453
|
//#endregion
|
|
454
|
-
//#region
|
|
454
|
+
//#region ../../node_modules/.pnpm/@jsr+std__internal@1.0.8/node_modules/@jsr/std__internal/build_message.js
|
|
455
455
|
/**
|
|
456
456
|
* Colors the output of assertion diffs.
|
|
457
457
|
*
|
|
@@ -545,7 +545,7 @@ const ANSI_PATTERN = new RegExp(["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-z
|
|
|
545
545
|
}
|
|
546
546
|
|
|
547
547
|
//#endregion
|
|
548
|
-
//#region
|
|
548
|
+
//#region ../../node_modules/.pnpm/@jsr+std__internal@1.0.8/node_modules/@jsr/std__internal/diff.js
|
|
549
549
|
const REMOVED = 1;
|
|
550
550
|
const COMMON = 2;
|
|
551
551
|
const ADDED = 3;
|
|
@@ -814,7 +814,7 @@ const ADDED = 3;
|
|
|
814
814
|
}
|
|
815
815
|
|
|
816
816
|
//#endregion
|
|
817
|
-
//#region
|
|
817
|
+
//#region ../../node_modules/.pnpm/@jsr+std__internal@1.0.8/node_modules/@jsr/std__internal/diff_str.js
|
|
818
818
|
/**
|
|
819
819
|
* Unescape invisible characters.
|
|
820
820
|
*
|
|
@@ -955,7 +955,7 @@ const NON_WHITESPACE_REGEXP = /\S/;
|
|
|
955
955
|
}
|
|
956
956
|
|
|
957
957
|
//#endregion
|
|
958
|
-
//#region
|
|
958
|
+
//#region ../../node_modules/.pnpm/@jsr+std__internal@1.0.8/node_modules/@jsr/std__internal/format.js
|
|
959
959
|
/**
|
|
960
960
|
* Converts the input into a string. Objects, Sets and Maps are sorted so as to
|
|
961
961
|
* make tests less flaky.
|
|
@@ -987,7 +987,7 @@ const NON_WHITESPACE_REGEXP = /\S/;
|
|
|
987
987
|
}
|
|
988
988
|
|
|
989
989
|
//#endregion
|
|
990
|
-
//#region
|
|
990
|
+
//#region ../../node_modules/.pnpm/@jsr+std__assert@0.226.0/node_modules/@jsr/std__assert/assert_equals.js
|
|
991
991
|
/**
|
|
992
992
|
* Make an assertion that `actual` and `expected` are equal, deeply. If not
|
|
993
993
|
* deeply equal, then throw.
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { AssertionError } from "./assert_equals-
|
|
6
|
+
import { AssertionError } from "./assert_equals-DSbWqCm3.js";
|
|
7
7
|
|
|
8
|
-
//#region
|
|
8
|
+
//#region ../../node_modules/.pnpm/@jsr+std__assert@0.226.0/node_modules/@jsr/std__assert/assert_instance_of.js
|
|
9
9
|
/**
|
|
10
10
|
* Make an assertion that `obj` is an instance of `type`.
|
|
11
11
|
* If not then throw.
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { AssertionError, stripAnsiCode } from "./assert_equals-
|
|
6
|
+
import { AssertionError, stripAnsiCode } from "./assert_equals-DSbWqCm3.js";
|
|
7
7
|
|
|
8
|
-
//#region
|
|
8
|
+
//#region ../../node_modules/.pnpm/@jsr+std__assert@0.226.0/node_modules/@jsr/std__assert/assert_is_error.js
|
|
9
9
|
/**
|
|
10
10
|
* Make an assertion that `error` is an `Error`.
|
|
11
11
|
* If not then an error will be thrown.
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { AssertionError, equal } from "./assert_equals-
|
|
6
|
+
import { AssertionError, equal } from "./assert_equals-DSbWqCm3.js";
|
|
7
7
|
|
|
8
|
-
//#region
|
|
8
|
+
//#region ../../node_modules/.pnpm/@jsr+std__assert@0.226.0/node_modules/@jsr/std__assert/assert_not_equals.js
|
|
9
9
|
/**
|
|
10
10
|
* Make an assertion that `actual` and `expected` are not equal, deeply.
|
|
11
11
|
* If not then throw.
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { AssertionError } from "./assert_equals-
|
|
7
|
-
import { assertIsError } from "./assert_is_error-
|
|
6
|
+
import { AssertionError } from "./assert_equals-DSbWqCm3.js";
|
|
7
|
+
import { assertIsError } from "./assert_is_error-BPGph1Jx.js";
|
|
8
8
|
|
|
9
|
-
//#region
|
|
9
|
+
//#region ../../node_modules/.pnpm/@jsr+std__assert@0.226.0/node_modules/@jsr/std__assert/assert_false.js
|
|
10
10
|
/**
|
|
11
11
|
* Make an assertion, error will be thrown if `expr` have truthy value.
|
|
12
12
|
*
|
|
@@ -25,7 +25,7 @@ import { assertIsError } from "./assert_is_error-CeVBLPsZ.js";
|
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
//#endregion
|
|
28
|
-
//#region
|
|
28
|
+
//#region ../../node_modules/.pnpm/@jsr+std__assert@0.226.0/node_modules/@jsr/std__assert/assert_rejects.js
|
|
29
29
|
async function assertRejects(fn, errorClassOrMsg, msgIncludesOrMsg, msg) {
|
|
30
30
|
let ErrorClass = void 0;
|
|
31
31
|
let msgIncludes = void 0;
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { AssertionError } from "./assert_equals-
|
|
7
|
-
import { assertIsError } from "./assert_is_error-
|
|
6
|
+
import { AssertionError } from "./assert_equals-DSbWqCm3.js";
|
|
7
|
+
import { assertIsError } from "./assert_is_error-BPGph1Jx.js";
|
|
8
8
|
|
|
9
|
-
//#region
|
|
9
|
+
//#region ../../node_modules/.pnpm/@jsr+std__assert@0.226.0/node_modules/@jsr/std__assert/assert_throws.js
|
|
10
10
|
function assertThrows(fn, errorClassOrMsg, msgIncludesOrMsg, msg) {
|
|
11
11
|
let ErrorClass = void 0;
|
|
12
12
|
let msgIncludes = void 0;
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
import { Temporal } from "@js-temporal/polyfill";
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
|
|
5
|
-
import { UrlError, createRequest, getRemoteDocument, logRequest, validatePublicUrl } from "./docloader-
|
|
6
|
-
import { validateCryptoKey } from "./key-
|
|
7
|
-
import { doubleKnock } from "./http-
|
|
5
|
+
import { UrlError, createRequest, getRemoteDocument, logRequest, validatePublicUrl } from "./docloader-BCgyiRag.js";
|
|
6
|
+
import { validateCryptoKey } from "./key-B9HDRSYF.js";
|
|
7
|
+
import { doubleKnock } from "./http-B1ff1viM.js";
|
|
8
8
|
import { getLogger } from "@logtape/logtape";
|
|
9
9
|
|
|
10
|
-
//#region runtime/authdocloader.ts
|
|
10
|
+
//#region src/runtime/authdocloader.ts
|
|
11
11
|
const logger = getLogger([
|
|
12
12
|
"fedify",
|
|
13
13
|
"runtime",
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { UrlError, createRequest, getRemoteDocument, logRequest, validatePublicUrl } from "./type-
|
|
7
|
-
import { validateCryptoKey } from "./key-
|
|
8
|
-
import { doubleKnock } from "./http-
|
|
6
|
+
import { UrlError, createRequest, getRemoteDocument, logRequest, validatePublicUrl } from "./type-C4M92j6x.js";
|
|
7
|
+
import { validateCryptoKey } from "./key-Dytvox0s.js";
|
|
8
|
+
import { doubleKnock } from "./http-BUhvpgNR.js";
|
|
9
9
|
import { getLogger } from "@logtape/logtape";
|
|
10
10
|
|
|
11
|
-
//#region runtime/authdocloader.ts
|
|
11
|
+
//#region src/runtime/authdocloader.ts
|
|
12
12
|
const logger = getLogger([
|
|
13
13
|
"fedify",
|
|
14
14
|
"runtime",
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { deno_default, getTypeId } from "./type-
|
|
7
|
-
import { Router, RouterError } from "./lookup-
|
|
8
|
-
import { InboxListenerSet } from "./inbox-
|
|
6
|
+
import { deno_default, getTypeId } from "./type-C4M92j6x.js";
|
|
7
|
+
import { Router, RouterError } from "./lookup-B0kqr1YK.js";
|
|
8
|
+
import { InboxListenerSet } from "./inbox-CJoj4ew9.js";
|
|
9
9
|
import { getLogger } from "@logtape/logtape";
|
|
10
10
|
import { SpanKind, SpanStatusCode, trace } from "@opentelemetry/api";
|
|
11
11
|
|
|
12
|
-
//#region federation/builder.ts
|
|
12
|
+
//#region src/federation/builder.ts
|
|
13
13
|
var FederationBuilderImpl = class {
|
|
14
14
|
router;
|
|
15
15
|
actorCallbacks;
|
|
@@ -41,7 +41,7 @@ var FederationBuilderImpl = class {
|
|
|
41
41
|
this.collectionTypeIds = {};
|
|
42
42
|
}
|
|
43
43
|
async build(options) {
|
|
44
|
-
const { FederationImpl } = await import("./middleware-
|
|
44
|
+
const { FederationImpl } = await import("./middleware-D8Av026r.js");
|
|
45
45
|
const f = new FederationImpl(options);
|
|
46
46
|
const trailingSlashInsensitiveValue = f.router.trailingSlashInsensitive;
|
|
47
47
|
f.router = this.router.clone();
|
|
@@ -524,7 +524,7 @@ var FederationBuilderImpl = class {
|
|
|
524
524
|
/**
|
|
525
525
|
* Get the URL path for a custom collection.
|
|
526
526
|
* If the collection is not registered, returns null.
|
|
527
|
-
* @
|
|
527
|
+
* @template TParam The parameter names of the requested URL.
|
|
528
528
|
* @param {string | symbol} name The name of the custom collection.
|
|
529
529
|
* @param {TParam} values The values to fill in the URL parameters.
|
|
530
530
|
* @returns {string | null} The URL path for the custom collection, or null if not registered.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Temporal } from "@js-temporal/polyfill";
|
|
2
2
|
import { URLPattern } from "urlpattern-polyfill";
|
|
3
|
-
import { GetUserAgentOptions } from "./docloader-
|
|
3
|
+
import { GetUserAgentOptions } from "./docloader-Bz56sKV5.js";
|
|
4
4
|
|
|
5
|
-
//#region nodeinfo/semver.d.ts
|
|
5
|
+
//#region src/nodeinfo/semver.d.ts
|
|
6
6
|
/**
|
|
7
7
|
* A SemVer object parsed into its constituent parts.
|
|
8
8
|
* @since 1.2.0
|
|
@@ -73,7 +73,7 @@ declare function parseSemVer(value: string): SemVer;
|
|
|
73
73
|
*/
|
|
74
74
|
declare function formatSemVer(version: SemVer): string;
|
|
75
75
|
//#endregion
|
|
76
|
-
//#region nodeinfo/types.d.ts
|
|
76
|
+
//#region src/nodeinfo/types.d.ts
|
|
77
77
|
/**
|
|
78
78
|
* The type of the result of parsing JSON.
|
|
79
79
|
*/
|
|
@@ -206,7 +206,7 @@ interface Usage {
|
|
|
206
206
|
*/
|
|
207
207
|
declare function nodeInfoToJson(nodeInfo: NodeInfo): JsonValue;
|
|
208
208
|
//#endregion
|
|
209
|
-
//#region nodeinfo/client.d.ts
|
|
209
|
+
//#region src/nodeinfo/client.d.ts
|
|
210
210
|
/**
|
|
211
211
|
* Options for {@link getNodeInfo} function.
|
|
212
212
|
* @since 1.2.0
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { getUserAgent } from "./type-
|
|
7
|
-
import { parseSemVer } from "./semver-
|
|
6
|
+
import { getUserAgent } from "./type-C4M92j6x.js";
|
|
7
|
+
import { parseSemVer } from "./semver-dArNLkR9.js";
|
|
8
8
|
import { getLogger } from "@logtape/logtape";
|
|
9
9
|
|
|
10
|
-
//#region nodeinfo/client.ts
|
|
10
|
+
//#region src/nodeinfo/client.ts
|
|
11
11
|
const logger = getLogger([
|
|
12
12
|
"fedify",
|
|
13
13
|
"nodeinfo",
|
package/dist/compat/mod.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { Temporal } from "@js-temporal/polyfill";
|
|
2
2
|
import { URLPattern } from "urlpattern-polyfill";
|
|
3
|
-
import "../kv-
|
|
4
|
-
import "../docloader-
|
|
5
|
-
import "../client-
|
|
6
|
-
import "../vocab-
|
|
7
|
-
import "../actor-
|
|
8
|
-
import "../http-
|
|
9
|
-
import "../owner-
|
|
10
|
-
import "../mod-
|
|
11
|
-
import "../lookup-
|
|
12
|
-
import { ActivityTransformer } from "../context-
|
|
13
|
-
import "../mq-
|
|
14
|
-
import { actorDehydrator, autoIdAssigner, getDefaultActivityTransformers } from "../mod-
|
|
3
|
+
import "../kv-C7sopW2E.js";
|
|
4
|
+
import "../docloader-Bz56sKV5.js";
|
|
5
|
+
import "../client-D2tgjFk3.js";
|
|
6
|
+
import "../vocab-CA7YwVEz.js";
|
|
7
|
+
import "../actor-C2nhWp6O.js";
|
|
8
|
+
import "../http-l4uEvaAw.js";
|
|
9
|
+
import "../owner-fFqUg4lq.js";
|
|
10
|
+
import "../mod-D79SaXL-.js";
|
|
11
|
+
import "../lookup-BJelGpWr.js";
|
|
12
|
+
import { ActivityTransformer } from "../context-BBD2ZH_P.js";
|
|
13
|
+
import "../mq-CRGm1e_F.js";
|
|
14
|
+
import { actorDehydrator, autoIdAssigner, getDefaultActivityTransformers } from "../mod-DDwnlIlm.js";
|
|
15
15
|
export { ActivityTransformer, actorDehydrator, autoIdAssigner, getDefaultActivityTransformers };
|
package/dist/compat/mod.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { Temporal } from "@js-temporal/polyfill";
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
|
|
5
|
-
import { actorDehydrator, autoIdAssigner, getDefaultActivityTransformers } from "../transformers-
|
|
5
|
+
import { actorDehydrator, autoIdAssigner, getDefaultActivityTransformers } from "../transformers-Dna8Fg7k.js";
|
|
6
6
|
import "../compat-Bb5myD13.js";
|
|
7
7
|
|
|
8
8
|
export { actorDehydrator, autoIdAssigner, getDefaultActivityTransformers };
|
|
@@ -3,32 +3,32 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { Follow, Person } from "../type-
|
|
7
|
-
import { assertEquals } from "../assert_equals-
|
|
8
|
-
import { assert } from "../assert-
|
|
9
|
-
import { assertInstanceOf } from "../assert_instance_of-
|
|
10
|
-
import { MemoryKvStore } from "../kv-
|
|
11
|
-
import { FederationImpl, actorDehydrator, autoIdAssigner } from "../middleware-
|
|
12
|
-
import "../semver-
|
|
13
|
-
import "../client-
|
|
14
|
-
import "../lookup-
|
|
15
|
-
import "../types-
|
|
16
|
-
import "../actor-
|
|
17
|
-
import "../key-
|
|
18
|
-
import "../http-
|
|
19
|
-
import "../authdocloader-
|
|
20
|
-
import "../ld-
|
|
21
|
-
import "../owner-
|
|
22
|
-
import "../proof-
|
|
23
|
-
import "../inbox-
|
|
24
|
-
import "../builder-
|
|
25
|
-
import "../collection-
|
|
26
|
-
import "../keycache-
|
|
27
|
-
import "../retry-
|
|
28
|
-
import "../send-
|
|
29
|
-
import { test } from "../testing-
|
|
6
|
+
import { Follow, Person } from "../type-C4M92j6x.js";
|
|
7
|
+
import { assertEquals } from "../assert_equals-DSbWqCm3.js";
|
|
8
|
+
import { assert } from "../assert-MZs1qjMx.js";
|
|
9
|
+
import { assertInstanceOf } from "../assert_instance_of-DHz7EHNU.js";
|
|
10
|
+
import { MemoryKvStore } from "../kv-CRZrzyXm.js";
|
|
11
|
+
import { FederationImpl, actorDehydrator, autoIdAssigner } from "../middleware-CAzmuaK9.js";
|
|
12
|
+
import "../semver-dArNLkR9.js";
|
|
13
|
+
import "../client-DfttEsJO.js";
|
|
14
|
+
import "../lookup-B0kqr1YK.js";
|
|
15
|
+
import "../types-BIgY6c-l.js";
|
|
16
|
+
import "../actor-CmkL94HP.js";
|
|
17
|
+
import "../key-Dytvox0s.js";
|
|
18
|
+
import "../http-BUhvpgNR.js";
|
|
19
|
+
import "../authdocloader-CfZzF6aW.js";
|
|
20
|
+
import "../ld-DCy3fb6F.js";
|
|
21
|
+
import "../owner-DExszVkD.js";
|
|
22
|
+
import "../proof-Cnxcwp1a.js";
|
|
23
|
+
import "../inbox-CJoj4ew9.js";
|
|
24
|
+
import "../builder-KOoy-ITr.js";
|
|
25
|
+
import "../collection-CSzG2j1P.js";
|
|
26
|
+
import "../keycache-DRL-euZL.js";
|
|
27
|
+
import "../retry-D4GJ670a.js";
|
|
28
|
+
import "../send-ovNk9TQg.js";
|
|
29
|
+
import { test } from "../testing-Ddk8H2Ez.js";
|
|
30
30
|
|
|
31
|
-
//#region compat/transformers.test.ts
|
|
31
|
+
//#region src/compat/transformers.test.ts
|
|
32
32
|
const federation = new FederationImpl({ kv: new MemoryKvStore() });
|
|
33
33
|
const context = federation.createContext(new URL("http://example.com/"));
|
|
34
34
|
test("autoIdAssigner", async () => {
|