@fedify/fedify 2.0.0-dev.1690 → 2.0.0-dev.170
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/LICENSE +1 -1
- package/README.md +70 -34
- package/dist/{assert_rejects-DiIiJbZn.js → assert_rejects-Ce45JcFg.js} +1 -1
- package/dist/{assert_is_error-BPGph1Jx.js → assert_throws-BNXdRGWP.js} +31 -1
- package/dist/{builder-CYOcDUkj.js → builder-_MVsWtsS.js} +9 -8
- package/dist/{client-bgSdkFa2.d.ts → client-CUTUGgvJ.d.ts} +19 -19
- package/dist/{client-CnOdwLLN.js → client-Dg7OfUDA.js} +28 -23
- package/dist/{client-CegPX0Rn.d.cts → client-by-PEGAJ.d.cts} +19 -19
- package/dist/compat/mod.cjs +1 -1
- package/dist/compat/mod.d.cts +6 -12
- package/dist/compat/mod.d.ts +6 -12
- package/dist/compat/mod.js +1 -1
- package/dist/compat/transformers.test.js +19 -18
- package/dist/context-Bns6uTJq.js +109 -0
- package/dist/{context-ByZprN0S.d.ts → context-C7vzWilY.d.ts} +314 -182
- package/dist/{context-C5BsZkDr.d.cts → context-CrB9RFy5.d.cts} +314 -182
- package/dist/deno-DhWON59o.js +117 -0
- package/dist/{testing-BWNCAbL-.js → dist-B5f6a8Tt.js} +90 -111
- package/dist/{authdocloader-Brax1A32.js → docloader-Cni79dmb.js} +17 -8
- package/dist/{esm-DnIzfEj0.js → esm-DGl7uK1r.js} +32 -17
- package/dist/federation/builder.test.js +11 -11
- package/dist/federation/collection.test.js +5 -8
- package/dist/federation/handler.test.js +111 -24
- package/dist/federation/idempotency.test.js +24 -24
- package/dist/federation/inbox.test.js +5 -6
- package/dist/federation/keycache.test.js +4 -5
- package/dist/federation/kv.test.js +60 -9
- package/dist/federation/middleware.test.js +102 -101
- package/dist/federation/mod.cjs +8 -12
- package/dist/federation/mod.d.cts +7 -13
- package/dist/federation/mod.d.ts +7 -13
- package/dist/federation/mod.js +8 -13
- package/dist/federation/mq.test.js +9 -10
- package/dist/federation/negotiation.test.js +5 -8
- package/dist/federation/retry.test.js +2 -4
- package/dist/federation/router.test.js +6 -8
- package/dist/federation/send.test.js +55 -15
- package/dist/{webfinger/handler.test.js → federation/webfinger.test.js} +25 -24
- package/dist/{federation-H2_En3j5.cjs → federation-B431K2gm.cjs} +22 -0
- package/dist/{federation-D1U8YY9t.js → federation-BbZwNNWj.js} +28 -6
- package/dist/{http-C7vbQwbz.cjs → http-7RQPvAkX.cjs} +410 -14
- package/dist/{http-BxbM8sEy.js → http-CZXlv4xU.js} +371 -11
- package/dist/{http-D-e6AFwR.d.cts → http-ClB3pLcL.d.cts} +2 -2
- package/dist/{http-BNOYnVsU.js → http-CwsBL5_A.js} +3 -2
- package/dist/{http-D6Uj2x2y.d.ts → http-DLBDPal9.d.ts} +2 -2
- package/dist/{inbox-BRru9pX3.js → inbox-CukSCwad.js} +2 -1
- package/dist/{key-1KXru8Ug.js → key-DKkHKzvg.js} +3 -2
- package/dist/{keycache-CN61iGVj.js → keycache-DRxpZ5r9.js} +1 -1
- package/dist/{keys-BPdFKgiy.js → keys-ZbcByPg9.js} +2 -1
- package/dist/{kv-63Cil1MD.d.cts → kv-B4vFhIYL.d.cts} +30 -1
- package/dist/{kv-C7sopW2E.d.ts → kv-CYySNrsn.d.ts} +30 -1
- package/dist/{kv-CRZrzyXm.js → kv-QzKcOQgP.js} +22 -0
- package/dist/kv-cache-BEeqyGER.js +107 -0
- package/dist/kv-cache-BVA7CrnS.cjs +134 -0
- package/dist/kv-cache-HDuc4ZaJ.js +122 -0
- package/dist/{ld-Dv8DNNAT.js → ld-CM6OO5ar.js} +4 -2
- package/dist/middleware--i9t8nKh.js +26 -0
- package/dist/middleware-C567nJlD.cjs +12 -0
- package/dist/middleware-D9oWuacw.js +12 -0
- package/dist/{middleware-DY9B2lL8.js → middleware-DXRcwk_y.js} +185 -192
- package/dist/{middleware-BmoOlgc1.cjs → middleware-TufpQUzj.cjs} +251 -241
- package/dist/{middleware-Bz_A2jeJ.js → middleware-eDeNdyRA.js} +195 -191
- package/dist/mod-0p9zUdzg.d.cts +107 -0
- package/dist/mod-0qnPv4EC.d.cts +62 -0
- package/dist/{mod-Djzcw2ry.d.cts → mod-BrS8tiad.d.cts} +3 -3
- package/dist/mod-C3SOvTD1.d.ts +64 -0
- package/dist/{mod-8DMWKtQE.d.cts → mod-D6pS5_xJ.d.cts} +4 -4
- package/dist/{mod-BhUKmBJD.d.ts → mod-jOa7W503.d.ts} +3 -3
- package/dist/{mod-D6hQoxC5.d.ts → mod-waqu-BL_.d.ts} +4 -4
- package/dist/mod-xc20HhMD.d.ts +109 -0
- package/dist/mod.cjs +17 -112
- package/dist/mod.d.cts +11 -17
- package/dist/mod.d.ts +11 -17
- package/dist/mod.js +11 -17
- package/dist/nodeinfo/client.test.js +7 -10
- package/dist/nodeinfo/handler.test.js +23 -23
- package/dist/nodeinfo/mod.cjs +2 -3
- package/dist/nodeinfo/mod.d.cts +2 -4
- package/dist/nodeinfo/mod.d.ts +2 -4
- package/dist/nodeinfo/mod.js +2 -3
- package/dist/nodeinfo/types.test.js +6 -9
- package/dist/otel/exporter.test.js +893 -0
- package/dist/otel/mod.cjs +256 -0
- package/dist/otel/mod.d.cts +230 -0
- package/dist/otel/mod.d.ts +232 -0
- package/dist/otel/mod.js +255 -0
- package/dist/{owner-e3FYDhsk.js → owner-BOEfZQv2.js} +45 -8
- package/dist/{owner-hd9lvQcP.d.ts → owner-BgI8C-VY.d.ts} +2 -3
- package/dist/{owner-BN_tO3cY.d.cts → owner-C-zfmVAD.d.cts} +2 -3
- package/dist/{proof-B-eqv0Ug.cjs → proof-CaDQpGJD.cjs} +69 -33
- package/dist/{proof-DfgvA3al.js → proof-iYIDiv8I.js} +47 -11
- package/dist/{proof-6gFMwMNJ.js → proof-iw6KtIyj.js} +3 -2
- package/dist/router-D9eI0s4b.js +118 -0
- package/dist/{send-Tl9NOnmO.js → send-Bn8o0mjW.js} +9 -4
- package/dist/sig/http.test.js +11 -13
- package/dist/sig/key.test.js +9 -11
- package/dist/sig/ld.test.js +8 -10
- package/dist/sig/mod.cjs +7 -11
- package/dist/sig/mod.d.cts +3 -7
- package/dist/sig/mod.d.ts +3 -7
- package/dist/sig/mod.js +3 -7
- package/dist/sig/owner.test.js +33 -12
- package/dist/sig/proof.test.js +13 -14
- package/dist/testing/mod.d.ts +183 -7194
- package/dist/testing/mod.js +4 -4
- package/dist/{transformers-CoBS-oFG.cjs → transformers-BjBg6Lag.cjs} +2 -2
- package/dist/{transformers-BFT6d7J5.js → transformers-N_ip_y4P.js} +2 -2
- package/dist/{types-DqxyTxOf.js → types-8l28uC8o.js} +31 -26
- package/dist/{types-zqdWZh4O.cjs → types-B6z6CqIz.cjs} +33 -28
- package/dist/{types-BSuWJsOm.js → types-CPz01LGH.js} +3 -3
- package/dist/{runtime/authdocloader.test.js → utils/docloader.test.js} +13 -15
- package/dist/utils/kv-cache.test.js +211 -0
- package/dist/utils/mod.cjs +10 -0
- package/dist/utils/mod.d.cts +4 -0
- package/dist/utils/mod.d.ts +6 -0
- package/dist/utils/mod.js +9 -0
- package/package.json +34 -75
- package/dist/actor-Be0ThtXy.cjs +0 -42609
- package/dist/actor-ChbPLm6n.js +0 -42135
- package/dist/actor-D6K058Tb.d.cts +0 -128
- package/dist/actor-DuCeRiNh.js +0 -146
- package/dist/actor-T6RyhRgk.d.ts +0 -130
- package/dist/assert_throws-BOO88avQ.js +0 -39
- package/dist/authdocloader-CrxhFL8e.js +0 -52
- package/dist/authdocloader-OSn_teLV.cjs +0 -58
- package/dist/denokv-Bv33Xxea.js +0 -57
- package/dist/docloader-CCqXeagZ.cjs +0 -4861
- package/dist/docloader-CxWcuWqQ.d.ts +0 -221
- package/dist/docloader-D-MrRyHl.d.cts +0 -219
- package/dist/docloader-XK3y2jn5.js +0 -4795
- package/dist/fixtures/activitypub.academy/users/brauca_darradiul.json +0 -83
- package/dist/fixtures/example.com/announce.json +0 -6
- package/dist/fixtures/example.com/collection.json +0 -19
- package/dist/fixtures/example.com/create.json +0 -6
- package/dist/fixtures/example.com/cross-origin-actor.json +0 -6
- package/dist/fixtures/example.com/hong-gildong.json +0 -11
- package/dist/fixtures/example.com/invite.json +0 -7
- package/dist/fixtures/example.com/key.json +0 -7
- package/dist/fixtures/example.com/key2.json +0 -6
- package/dist/fixtures/example.com/object.json +0 -6
- package/dist/fixtures/example.com/orderedcollectionpage.json +0 -24
- package/dist/fixtures/example.com/paged/a.json +0 -13
- package/dist/fixtures/example.com/paged/b.json +0 -16
- package/dist/fixtures/example.com/paged-collection.json +0 -6
- package/dist/fixtures/example.com/person.json +0 -22
- package/dist/fixtures/example.com/person2.json +0 -40
- package/dist/fixtures/example.com/test.json +0 -5
- package/dist/fixtures/example.com/users/handle.json +0 -16
- package/dist/fixtures/example.com/wrong-type.json +0 -3
- package/dist/fixtures/media.example.com/avatars/test-avatar.jpg.json +0 -6
- package/dist/fixtures/oeee.cafe/ap/users/3609fd4e-d51d-4db8-9f04-4189815864dd.json +0 -24
- package/dist/fixtures/remote.domain/users/bob.json +0 -20
- package/dist/fixtures/server.example/users/alice.json +0 -20
- package/dist/fixtures/w3id.org/identity/v1.json +0 -152
- package/dist/fixtures/w3id.org/security/data-integrity/v1.json +0 -74
- package/dist/fixtures/w3id.org/security/multikey/v1.json +0 -35
- package/dist/fixtures/w3id.org/security/v1.json +0 -50
- package/dist/fixtures/wizard.casa/users/hongminhee.json +0 -69
- package/dist/fixtures/www.w3.org/ns/activitystreams.json +0 -379
- package/dist/fixtures/www.w3.org/ns/did/v1.json +0 -58
- package/dist/key-B3uag-rz.js +0 -10
- package/dist/key-BiBmb1Yy.cjs +0 -10
- package/dist/key-DK_nfU4I.js +0 -10
- package/dist/key-Z6ceKnZC.cjs +0 -290
- package/dist/key-jyNTxCvK.js +0 -260
- package/dist/lookup-BPviO8ij.js +0 -131
- package/dist/lookup-hnMAAU5r.cjs +0 -137
- package/dist/lookup-pV0JOsuV.js +0 -331
- package/dist/middleware-CI0-zw4U.js +0 -26
- package/dist/middleware-QNK-W-jE.cjs +0 -17
- package/dist/middleware-_vjt6FWU.js +0 -17
- package/dist/mod-CerN_Sza.d.ts +0 -104
- package/dist/mod-Cj1tHXBR.d.cts +0 -102
- package/dist/mod-CxkWO3Mg.d.cts +0 -307
- package/dist/mod-DBzN0aCM.d.ts +0 -115
- package/dist/mod-DlU8ISoa.d.ts +0 -309
- package/dist/mod-FZd39qVq.d.cts +0 -1
- package/dist/mod-g0xFzAP9.d.ts +0 -2
- package/dist/mod-jQ4OODsl.d.cts +0 -113
- package/dist/mq-B7R1Q-M5.d.cts +0 -140
- package/dist/mq-CRGm1e_F.d.ts +0 -143
- package/dist/runtime/docloader.test.js +0 -522
- package/dist/runtime/key.test.js +0 -103
- package/dist/runtime/langstr.test.d.ts +0 -3
- package/dist/runtime/langstr.test.js +0 -39
- package/dist/runtime/link.test.d.ts +0 -3
- package/dist/runtime/link.test.js +0 -61
- package/dist/runtime/mod.cjs +0 -25
- package/dist/runtime/mod.d.cts +0 -6
- package/dist/runtime/mod.d.ts +0 -8
- package/dist/runtime/mod.js +0 -13
- package/dist/runtime/multibase/multibase.test.d.ts +0 -3
- package/dist/runtime/multibase/multibase.test.js +0 -358
- package/dist/runtime/url.test.d.ts +0 -3
- package/dist/runtime/url.test.js +0 -45
- package/dist/src/vocab/accept.yaml +0 -15
- package/dist/src/vocab/activity.yaml +0 -98
- package/dist/src/vocab/add.yaml +0 -16
- package/dist/src/vocab/announce.yaml +0 -30
- package/dist/src/vocab/application.yaml +0 -324
- package/dist/src/vocab/arrive.yaml +0 -15
- package/dist/src/vocab/article.yaml +0 -46
- package/dist/src/vocab/audio.yaml +0 -11
- package/dist/src/vocab/block.yaml +0 -16
- package/dist/src/vocab/chatmessage.yaml +0 -50
- package/dist/src/vocab/collection.yaml +0 -154
- package/dist/src/vocab/collectionpage.yaml +0 -55
- package/dist/src/vocab/create.yaml +0 -28
- package/dist/src/vocab/dataintegrityproof.yaml +0 -56
- package/dist/src/vocab/delete.yaml +0 -27
- package/dist/src/vocab/didservice.yaml +0 -22
- package/dist/src/vocab/dislike.yaml +0 -14
- package/dist/src/vocab/document.yaml +0 -31
- package/dist/src/vocab/emoji.yaml +0 -12
- package/dist/src/vocab/emojireact.yaml +0 -17
- package/dist/src/vocab/endpoints.yaml +0 -85
- package/dist/src/vocab/event.yaml +0 -11
- package/dist/src/vocab/export.yaml +0 -9
- package/dist/src/vocab/flag.yaml +0 -15
- package/dist/src/vocab/follow.yaml +0 -19
- package/dist/src/vocab/group.yaml +0 -324
- package/dist/src/vocab/hashtag.yaml +0 -14
- package/dist/src/vocab/ignore.yaml +0 -14
- package/dist/src/vocab/image.yaml +0 -9
- package/dist/src/vocab/intransitiveactivity.yaml +0 -15
- package/dist/src/vocab/invite.yaml +0 -14
- package/dist/src/vocab/join.yaml +0 -14
- package/dist/src/vocab/key.yaml +0 -28
- package/dist/src/vocab/leave.yaml +0 -14
- package/dist/src/vocab/like.yaml +0 -16
- package/dist/src/vocab/link.yaml +0 -101
- package/dist/src/vocab/listen.yaml +0 -12
- package/dist/src/vocab/mention.yaml +0 -9
- package/dist/src/vocab/move.yaml +0 -15
- package/dist/src/vocab/multikey.yaml +0 -36
- package/dist/src/vocab/note.yaml +0 -48
- package/dist/src/vocab/object.yaml +0 -404
- package/dist/src/vocab/offer.yaml +0 -15
- package/dist/src/vocab/orderedcollection.yaml +0 -39
- package/dist/src/vocab/orderedcollectionpage.yaml +0 -50
- package/dist/src/vocab/organization.yaml +0 -324
- package/dist/src/vocab/page.yaml +0 -11
- package/dist/src/vocab/person.yaml +0 -324
- package/dist/src/vocab/place.yaml +0 -75
- package/dist/src/vocab/profile.yaml +0 -26
- package/dist/src/vocab/propertyvalue.yaml +0 -32
- package/dist/src/vocab/question.yaml +0 -103
- package/dist/src/vocab/read.yaml +0 -13
- package/dist/src/vocab/reject.yaml +0 -14
- package/dist/src/vocab/relationship.yaml +0 -52
- package/dist/src/vocab/remove.yaml +0 -14
- package/dist/src/vocab/service.yaml +0 -324
- package/dist/src/vocab/source.yaml +0 -26
- package/dist/src/vocab/tentativeaccept.yaml +0 -14
- package/dist/src/vocab/tentativereject.yaml +0 -14
- package/dist/src/vocab/tombstone.yaml +0 -24
- package/dist/src/vocab/travel.yaml +0 -16
- package/dist/src/vocab/undo.yaml +0 -26
- package/dist/src/vocab/update.yaml +0 -58
- package/dist/src/vocab/video.yaml +0 -11
- package/dist/src/vocab/view.yaml +0 -13
- package/dist/testing/docloader.test.js +0 -24
- package/dist/type-C69ZBu7f.js +0 -47010
- package/dist/vocab/actor.test.d.ts +0 -3
- package/dist/vocab/actor.test.js +0 -5965
- package/dist/vocab/lookup.test.d.ts +0 -3
- package/dist/vocab/lookup.test.js +0 -456
- package/dist/vocab/mod.cjs +0 -87
- package/dist/vocab/mod.d.cts +0 -6
- package/dist/vocab/mod.d.ts +0 -8
- package/dist/vocab/mod.js +0 -10
- package/dist/vocab/schema.yaml +0 -247
- package/dist/vocab/type.test.d.ts +0 -3
- package/dist/vocab/type.test.js +0 -25
- package/dist/vocab/vocab.test.d.ts +0 -3
- package/dist/vocab/vocab.test.js +0 -3787
- package/dist/vocab-B39-pFl9.cjs +0 -291
- package/dist/vocab-BI0Ak5lL.d.ts +0 -14924
- package/dist/vocab-BWoeZsME.js +0 -255
- package/dist/vocab-Dw1-yVGg.d.cts +0 -14922
- package/dist/webfinger/handler.test.d.ts +0 -3
- package/dist/webfinger/lookup.test.d.ts +0 -3
- package/dist/webfinger/lookup.test.js +0 -195
- package/dist/webfinger/mod.cjs +0 -9
- package/dist/webfinger/mod.d.cts +0 -4
- package/dist/webfinger/mod.d.ts +0 -6
- package/dist/webfinger/mod.js +0 -9
- package/dist/webfinger-BjOEdFPs.cjs +0 -4
- package/dist/webfinger-De_bU0iE.js +0 -4
- package/dist/x/cfworkers.cjs +0 -100
- package/dist/x/cfworkers.d.cts +0 -59
- package/dist/x/cfworkers.d.ts +0 -61
- package/dist/x/cfworkers.js +0 -98
- package/dist/x/cfworkers.test.d.ts +0 -3
- package/dist/x/cfworkers.test.js +0 -179
- package/dist/x/hono.cjs +0 -61
- package/dist/x/hono.d.cts +0 -54
- package/dist/x/hono.d.ts +0 -56
- package/dist/x/hono.js +0 -60
- package/dist/x/sveltekit.cjs +0 -69
- package/dist/x/sveltekit.d.cts +0 -46
- package/dist/x/sveltekit.d.ts +0 -48
- package/dist/x/sveltekit.js +0 -68
- /package/dist/{assert_not_equals-f3m3epl3.js → assert_not_equals-C80BG-_5.js} +0 -0
- /package/dist/{runtime/authdocloader.test.d.ts → federation/webfinger.test.d.ts} +0 -0
- /package/dist/{mod-1pDWKvUL.d.ts → mod-1E3W847c.d.ts} +0 -0
- /package/dist/{mod-C2tOeRkN.d.cts → mod-C81L6_lQ.d.cts} +0 -0
- /package/dist/{nodeinfo-DfycQ8Wf.js → nodeinfo-BlLsRSiT.js} +0 -0
- /package/dist/{nodeinfo-Co9lJrWl.cjs → nodeinfo-DuMYTpbZ.cjs} +0 -0
- /package/dist/{runtime/docloader.test.d.ts → otel/exporter.test.d.ts} +0 -0
- /package/dist/{runtime-DPYEDf-o.js → sig-CwuONEzF.js} +0 -0
- /package/dist/{runtime-C58AJWSv.cjs → sig-DeXX2xnj.cjs} +0 -0
- /package/dist/{std__assert-X-_kMxKM.js → std__assert-DWivtrGR.js} +0 -0
- /package/dist/{testing → utils}/docloader.test.d.ts +0 -0
- /package/dist/{runtime/key.test.d.ts → utils/kv-cache.test.d.ts} +0 -0
- /package/dist/{sig-ByHXzqUi.cjs → utils-Db0ZmjcD.cjs} +0 -0
- /package/dist/{sig-Cj3tk-ig.js → utils-Wranxuoe.js} +0 -0
|
@@ -1,456 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import { Temporal } from "@js-temporal/polyfill";
|
|
3
|
-
import { URLPattern } from "urlpattern-polyfill";
|
|
4
|
-
globalThis.addEventListener = () => {};
|
|
5
|
-
|
|
6
|
-
import { Collection, Note, Object as Object$1, Person } from "../type-C69ZBu7f.js";
|
|
7
|
-
import { assertEquals } from "../assert_equals-DSbWqCm3.js";
|
|
8
|
-
import "../assert-MZs1qjMx.js";
|
|
9
|
-
import { assertInstanceOf } from "../assert_instance_of-DHz7EHNU.js";
|
|
10
|
-
import { lookupObject, traverseCollection } from "../lookup-pV0JOsuV.js";
|
|
11
|
-
import { mockDocumentLoader, test } from "../testing-BWNCAbL-.js";
|
|
12
|
-
import "../std__assert-X-_kMxKM.js";
|
|
13
|
-
import { assertRejects } from "../assert_rejects-DiIiJbZn.js";
|
|
14
|
-
import "../assert_is_error-BPGph1Jx.js";
|
|
15
|
-
import "../assert_not_equals-f3m3epl3.js";
|
|
16
|
-
import "../assert_throws-BOO88avQ.js";
|
|
17
|
-
import { esm_default } from "../esm-DnIzfEj0.js";
|
|
18
|
-
|
|
19
|
-
//#region src/vocab/lookup.test.ts
|
|
20
|
-
test("lookupObject()", {
|
|
21
|
-
sanitizeResources: false,
|
|
22
|
-
sanitizeOps: false
|
|
23
|
-
}, async (t) => {
|
|
24
|
-
esm_default.spyGlobal();
|
|
25
|
-
esm_default.get("begin:https://example.com/.well-known/webfinger", {
|
|
26
|
-
subject: "acct:johndoe@example.com",
|
|
27
|
-
links: [
|
|
28
|
-
{
|
|
29
|
-
rel: "alternate",
|
|
30
|
-
href: "https://example.com/object",
|
|
31
|
-
type: "application/activity+json"
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
rel: "self",
|
|
35
|
-
href: "https://example.com/html/person",
|
|
36
|
-
type: "text/html"
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
rel: "self",
|
|
40
|
-
href: "https://example.com/person",
|
|
41
|
-
type: "application/activity+json"
|
|
42
|
-
}
|
|
43
|
-
]
|
|
44
|
-
});
|
|
45
|
-
const options = {
|
|
46
|
-
documentLoader: mockDocumentLoader,
|
|
47
|
-
contextLoader: mockDocumentLoader
|
|
48
|
-
};
|
|
49
|
-
await t.step("actor", async () => {
|
|
50
|
-
const person = await lookupObject("@johndoe@example.com", options);
|
|
51
|
-
assertInstanceOf(person, Person);
|
|
52
|
-
assertEquals(person.id, new URL("https://example.com/person"));
|
|
53
|
-
assertEquals(person.name, "John Doe");
|
|
54
|
-
const person2 = await lookupObject("johndoe@example.com", options);
|
|
55
|
-
assertEquals(person2, person);
|
|
56
|
-
const person3 = await lookupObject("acct:johndoe@example.com", options);
|
|
57
|
-
assertEquals(person3, person);
|
|
58
|
-
});
|
|
59
|
-
await t.step("object", async () => {
|
|
60
|
-
const object = await lookupObject("https://example.com/object", options);
|
|
61
|
-
assertInstanceOf(object, Object$1);
|
|
62
|
-
assertEquals(object, new Object$1({
|
|
63
|
-
id: new URL("https://example.com/object"),
|
|
64
|
-
name: "Fetched object"
|
|
65
|
-
}));
|
|
66
|
-
const person = await lookupObject("https://example.com/hong-gildong", options);
|
|
67
|
-
assertInstanceOf(person, Person);
|
|
68
|
-
assertEquals(person, new Person({
|
|
69
|
-
id: new URL("https://example.com/hong-gildong"),
|
|
70
|
-
name: "Hong Gildong"
|
|
71
|
-
}));
|
|
72
|
-
});
|
|
73
|
-
esm_default.removeRoutes();
|
|
74
|
-
esm_default.get("begin:https://example.com/.well-known/webfinger", {
|
|
75
|
-
subject: "acct:janedoe@example.com",
|
|
76
|
-
links: [{
|
|
77
|
-
rel: "self",
|
|
78
|
-
href: "https://example.com/404",
|
|
79
|
-
type: "application/activity+json"
|
|
80
|
-
}]
|
|
81
|
-
});
|
|
82
|
-
await t.step("not found", async () => {
|
|
83
|
-
assertEquals(await lookupObject("janedoe@example.com", options), null);
|
|
84
|
-
assertEquals(await lookupObject("https://example.com/404", options), null);
|
|
85
|
-
});
|
|
86
|
-
esm_default.removeRoutes();
|
|
87
|
-
esm_default.get("begin:https://example.com/.well-known/webfinger", () => new Promise((resolve) => {
|
|
88
|
-
setTimeout(() => {
|
|
89
|
-
resolve({
|
|
90
|
-
subject: "acct:johndoe@example.com",
|
|
91
|
-
links: [{
|
|
92
|
-
rel: "self",
|
|
93
|
-
href: "https://example.com/person",
|
|
94
|
-
type: "application/activity+json"
|
|
95
|
-
}]
|
|
96
|
-
});
|
|
97
|
-
}, 1e3);
|
|
98
|
-
}));
|
|
99
|
-
await t.step("request cancellation", async () => {
|
|
100
|
-
const controller = new AbortController();
|
|
101
|
-
const promise = lookupObject("johndoe@example.com", {
|
|
102
|
-
...options,
|
|
103
|
-
signal: controller.signal
|
|
104
|
-
});
|
|
105
|
-
controller.abort();
|
|
106
|
-
assertEquals(await promise, null);
|
|
107
|
-
});
|
|
108
|
-
esm_default.removeRoutes();
|
|
109
|
-
esm_default.get("begin:https://example.com/.well-known/webfinger", {
|
|
110
|
-
subject: "acct:johndoe@example.com",
|
|
111
|
-
links: [{
|
|
112
|
-
rel: "self",
|
|
113
|
-
href: "https://example.com/person",
|
|
114
|
-
type: "application/activity+json"
|
|
115
|
-
}]
|
|
116
|
-
});
|
|
117
|
-
await t.step("successful request with signal", async () => {
|
|
118
|
-
const controller = new AbortController();
|
|
119
|
-
const person = await lookupObject("johndoe@example.com", {
|
|
120
|
-
...options,
|
|
121
|
-
signal: controller.signal
|
|
122
|
-
});
|
|
123
|
-
assertInstanceOf(person, Person);
|
|
124
|
-
assertEquals(person.id, new URL("https://example.com/person"));
|
|
125
|
-
});
|
|
126
|
-
esm_default.removeRoutes();
|
|
127
|
-
esm_default.get("begin:https://example.com/.well-known/webfinger", () => new Promise((resolve) => {
|
|
128
|
-
setTimeout(() => {
|
|
129
|
-
resolve({
|
|
130
|
-
subject: "acct:johndoe@example.com",
|
|
131
|
-
links: [{
|
|
132
|
-
rel: "self",
|
|
133
|
-
href: "https://example.com/person",
|
|
134
|
-
type: "application/activity+json"
|
|
135
|
-
}]
|
|
136
|
-
});
|
|
137
|
-
}, 500);
|
|
138
|
-
}));
|
|
139
|
-
await t.step("cancellation with immediate abort", async () => {
|
|
140
|
-
const controller = new AbortController();
|
|
141
|
-
controller.abort();
|
|
142
|
-
const result = await lookupObject("johndoe@example.com", {
|
|
143
|
-
...options,
|
|
144
|
-
signal: controller.signal
|
|
145
|
-
});
|
|
146
|
-
assertEquals(result, null);
|
|
147
|
-
});
|
|
148
|
-
esm_default.removeRoutes();
|
|
149
|
-
esm_default.get("https://example.com/slow-object", () => new Promise((resolve) => {
|
|
150
|
-
setTimeout(() => {
|
|
151
|
-
resolve({
|
|
152
|
-
status: 200,
|
|
153
|
-
headers: { "Content-Type": "application/activity+json" },
|
|
154
|
-
body: {
|
|
155
|
-
"@context": "https://www.w3.org/ns/activitystreams",
|
|
156
|
-
type: "Note",
|
|
157
|
-
content: "Slow response"
|
|
158
|
-
}
|
|
159
|
-
});
|
|
160
|
-
}, 1e3);
|
|
161
|
-
}));
|
|
162
|
-
await t.step("direct object fetch cancellation", async () => {
|
|
163
|
-
const controller = new AbortController();
|
|
164
|
-
const promise = lookupObject("https://example.com/slow-object", {
|
|
165
|
-
contextLoader: mockDocumentLoader,
|
|
166
|
-
signal: controller.signal
|
|
167
|
-
});
|
|
168
|
-
controller.abort();
|
|
169
|
-
assertEquals(await promise, null);
|
|
170
|
-
});
|
|
171
|
-
esm_default.hardReset();
|
|
172
|
-
esm_default.removeRoutes();
|
|
173
|
-
});
|
|
174
|
-
test("traverseCollection()", {
|
|
175
|
-
sanitizeResources: false,
|
|
176
|
-
sanitizeOps: false
|
|
177
|
-
}, async () => {
|
|
178
|
-
const options = {
|
|
179
|
-
documentLoader: mockDocumentLoader,
|
|
180
|
-
contextLoader: mockDocumentLoader
|
|
181
|
-
};
|
|
182
|
-
const collection = await lookupObject("https://example.com/collection", options);
|
|
183
|
-
assertInstanceOf(collection, Collection);
|
|
184
|
-
assertEquals(await Array.fromAsync(traverseCollection(collection, options)), [
|
|
185
|
-
new Note({ content: "This is a simple note" }),
|
|
186
|
-
new Note({ content: "This is another simple note" }),
|
|
187
|
-
new Note({ content: "This is a third simple note" })
|
|
188
|
-
]);
|
|
189
|
-
const pagedCollection = await lookupObject("https://example.com/paged-collection", options);
|
|
190
|
-
assertInstanceOf(pagedCollection, Collection);
|
|
191
|
-
assertEquals(await Array.fromAsync(traverseCollection(pagedCollection, options)), [
|
|
192
|
-
new Note({ content: "This is a simple note" }),
|
|
193
|
-
new Note({ content: "This is another simple note" }),
|
|
194
|
-
new Note({ content: "This is a third simple note" })
|
|
195
|
-
]);
|
|
196
|
-
assertEquals(await Array.fromAsync(traverseCollection(pagedCollection, {
|
|
197
|
-
...options,
|
|
198
|
-
interval: { milliseconds: 250 }
|
|
199
|
-
})), [
|
|
200
|
-
new Note({ content: "This is a simple note" }),
|
|
201
|
-
new Note({ content: "This is another simple note" }),
|
|
202
|
-
new Note({ content: "This is a third simple note" })
|
|
203
|
-
]);
|
|
204
|
-
});
|
|
205
|
-
test("FEP-fe34: lookupObject() cross-origin security", {
|
|
206
|
-
sanitizeResources: false,
|
|
207
|
-
sanitizeOps: false
|
|
208
|
-
}, async (t) => {
|
|
209
|
-
await t.step("crossOrigin: ignore (default) - returns null for cross-origin objects", async () => {
|
|
210
|
-
const crossOriginDocumentLoader = async (url) => {
|
|
211
|
-
if (url === "https://example.com/note") return {
|
|
212
|
-
documentUrl: url,
|
|
213
|
-
contextUrl: null,
|
|
214
|
-
document: {
|
|
215
|
-
"@context": "https://www.w3.org/ns/activitystreams",
|
|
216
|
-
type: "Note",
|
|
217
|
-
id: "https://malicious.com/fake-note",
|
|
218
|
-
content: "This is a spoofed note from a different origin"
|
|
219
|
-
}
|
|
220
|
-
};
|
|
221
|
-
throw new Error(`Unexpected URL: ${url}`);
|
|
222
|
-
};
|
|
223
|
-
const result = await lookupObject("https://example.com/note", {
|
|
224
|
-
documentLoader: crossOriginDocumentLoader,
|
|
225
|
-
contextLoader: mockDocumentLoader
|
|
226
|
-
});
|
|
227
|
-
assertEquals(result, null);
|
|
228
|
-
});
|
|
229
|
-
await t.step("crossOrigin: throw - throws error for cross-origin objects", async () => {
|
|
230
|
-
const crossOriginDocumentLoader = async (url) => {
|
|
231
|
-
if (url === "https://example.com/note") return {
|
|
232
|
-
documentUrl: url,
|
|
233
|
-
contextUrl: null,
|
|
234
|
-
document: {
|
|
235
|
-
"@context": "https://www.w3.org/ns/activitystreams",
|
|
236
|
-
type: "Note",
|
|
237
|
-
id: "https://malicious.com/fake-note",
|
|
238
|
-
content: "This is a spoofed note from a different origin"
|
|
239
|
-
}
|
|
240
|
-
};
|
|
241
|
-
throw new Error(`Unexpected URL: ${url}`);
|
|
242
|
-
};
|
|
243
|
-
await assertRejects(() => lookupObject("https://example.com/note", {
|
|
244
|
-
documentLoader: crossOriginDocumentLoader,
|
|
245
|
-
contextLoader: mockDocumentLoader,
|
|
246
|
-
crossOrigin: "throw"
|
|
247
|
-
}), Error, "The object's @id (https://malicious.com/fake-note) has a different origin than the document URL (https://example.com/note)");
|
|
248
|
-
});
|
|
249
|
-
await t.step("crossOrigin: trust - allows cross-origin objects", async () => {
|
|
250
|
-
const crossOriginDocumentLoader = async (url) => {
|
|
251
|
-
if (url === "https://example.com/note") return {
|
|
252
|
-
documentUrl: url,
|
|
253
|
-
contextUrl: null,
|
|
254
|
-
document: {
|
|
255
|
-
"@context": "https://www.w3.org/ns/activitystreams",
|
|
256
|
-
type: "Note",
|
|
257
|
-
id: "https://malicious.com/fake-note",
|
|
258
|
-
content: "This is a spoofed note from a different origin"
|
|
259
|
-
}
|
|
260
|
-
};
|
|
261
|
-
throw new Error(`Unexpected URL: ${url}`);
|
|
262
|
-
};
|
|
263
|
-
const result = await lookupObject("https://example.com/note", {
|
|
264
|
-
documentLoader: crossOriginDocumentLoader,
|
|
265
|
-
contextLoader: mockDocumentLoader,
|
|
266
|
-
crossOrigin: "trust"
|
|
267
|
-
});
|
|
268
|
-
assertInstanceOf(result, Note);
|
|
269
|
-
assertEquals(result.id, new URL("https://malicious.com/fake-note"));
|
|
270
|
-
assertEquals(result.content, "This is a spoofed note from a different origin");
|
|
271
|
-
});
|
|
272
|
-
await t.step("same-origin objects are always trusted", async () => {
|
|
273
|
-
const sameOriginDocumentLoader = async (url) => {
|
|
274
|
-
if (url === "https://example.com/note") return {
|
|
275
|
-
documentUrl: url,
|
|
276
|
-
contextUrl: null,
|
|
277
|
-
document: {
|
|
278
|
-
"@context": "https://www.w3.org/ns/activitystreams",
|
|
279
|
-
type: "Note",
|
|
280
|
-
id: "https://example.com/note",
|
|
281
|
-
content: "This is a legitimate note from the same origin"
|
|
282
|
-
}
|
|
283
|
-
};
|
|
284
|
-
throw new Error(`Unexpected URL: ${url}`);
|
|
285
|
-
};
|
|
286
|
-
const result = await lookupObject("https://example.com/note", {
|
|
287
|
-
documentLoader: sameOriginDocumentLoader,
|
|
288
|
-
contextLoader: mockDocumentLoader
|
|
289
|
-
});
|
|
290
|
-
assertInstanceOf(result, Note);
|
|
291
|
-
assertEquals(result.id, new URL("https://example.com/note"));
|
|
292
|
-
assertEquals(result.content, "This is a legitimate note from the same origin");
|
|
293
|
-
});
|
|
294
|
-
await t.step("objects without @id are trusted", async () => {
|
|
295
|
-
const noIdDocumentLoader = async (url) => {
|
|
296
|
-
if (url === "https://example.com/note") return {
|
|
297
|
-
documentUrl: url,
|
|
298
|
-
contextUrl: null,
|
|
299
|
-
document: {
|
|
300
|
-
"@context": "https://www.w3.org/ns/activitystreams",
|
|
301
|
-
type: "Note",
|
|
302
|
-
content: "This is a note without an ID"
|
|
303
|
-
}
|
|
304
|
-
};
|
|
305
|
-
throw new Error(`Unexpected URL: ${url}`);
|
|
306
|
-
};
|
|
307
|
-
const result = await lookupObject("https://example.com/note", {
|
|
308
|
-
documentLoader: noIdDocumentLoader,
|
|
309
|
-
contextLoader: mockDocumentLoader
|
|
310
|
-
});
|
|
311
|
-
assertInstanceOf(result, Note);
|
|
312
|
-
assertEquals(result.id, null);
|
|
313
|
-
assertEquals(result.content, "This is a note without an ID");
|
|
314
|
-
});
|
|
315
|
-
await t.step("WebFinger lookup with cross-origin actor URL", async () => {
|
|
316
|
-
esm_default.spyGlobal();
|
|
317
|
-
esm_default.get("begin:https://example.com/.well-known/webfinger", {
|
|
318
|
-
subject: "acct:user@example.com",
|
|
319
|
-
links: [{
|
|
320
|
-
rel: "self",
|
|
321
|
-
href: "https://different-origin.com/actor",
|
|
322
|
-
type: "application/activity+json"
|
|
323
|
-
}]
|
|
324
|
-
});
|
|
325
|
-
const webfingerDocumentLoader = async (url) => {
|
|
326
|
-
if (url === "https://different-origin.com/actor") return {
|
|
327
|
-
documentUrl: url,
|
|
328
|
-
contextUrl: null,
|
|
329
|
-
document: {
|
|
330
|
-
"@context": "https://www.w3.org/ns/activitystreams",
|
|
331
|
-
type: "Person",
|
|
332
|
-
id: "https://malicious.com/fake-actor",
|
|
333
|
-
name: "Fake Actor"
|
|
334
|
-
}
|
|
335
|
-
};
|
|
336
|
-
throw new Error(`Unexpected URL: ${url}`);
|
|
337
|
-
};
|
|
338
|
-
const result1 = await lookupObject("@user@example.com", {
|
|
339
|
-
documentLoader: webfingerDocumentLoader,
|
|
340
|
-
contextLoader: mockDocumentLoader
|
|
341
|
-
});
|
|
342
|
-
assertEquals(result1, null);
|
|
343
|
-
await assertRejects(() => lookupObject("@user@example.com", {
|
|
344
|
-
documentLoader: webfingerDocumentLoader,
|
|
345
|
-
contextLoader: mockDocumentLoader,
|
|
346
|
-
crossOrigin: "throw"
|
|
347
|
-
}), Error, "The object's @id (https://malicious.com/fake-actor) has a different origin than the document URL (https://different-origin.com/actor)");
|
|
348
|
-
const result2 = await lookupObject("@user@example.com", {
|
|
349
|
-
documentLoader: webfingerDocumentLoader,
|
|
350
|
-
contextLoader: mockDocumentLoader,
|
|
351
|
-
crossOrigin: "trust"
|
|
352
|
-
});
|
|
353
|
-
assertInstanceOf(result2, Person);
|
|
354
|
-
assertEquals(result2.id, new URL("https://malicious.com/fake-actor"));
|
|
355
|
-
esm_default.removeRoutes();
|
|
356
|
-
esm_default.hardReset();
|
|
357
|
-
});
|
|
358
|
-
await t.step("subdomain same-origin check", async () => {
|
|
359
|
-
const subdomainDocumentLoader = async (url) => {
|
|
360
|
-
if (url === "https://api.example.com/note") return {
|
|
361
|
-
documentUrl: url,
|
|
362
|
-
contextUrl: null,
|
|
363
|
-
document: {
|
|
364
|
-
"@context": "https://www.w3.org/ns/activitystreams",
|
|
365
|
-
type: "Note",
|
|
366
|
-
id: "https://www.example.com/note",
|
|
367
|
-
content: "Cross-subdomain note"
|
|
368
|
-
}
|
|
369
|
-
};
|
|
370
|
-
throw new Error(`Unexpected URL: ${url}`);
|
|
371
|
-
};
|
|
372
|
-
const result = await lookupObject("https://api.example.com/note", {
|
|
373
|
-
documentLoader: subdomainDocumentLoader,
|
|
374
|
-
contextLoader: mockDocumentLoader
|
|
375
|
-
});
|
|
376
|
-
assertEquals(result, null);
|
|
377
|
-
});
|
|
378
|
-
await t.step("different port same-origin check", async () => {
|
|
379
|
-
const differentPortDocumentLoader = async (url) => {
|
|
380
|
-
if (url === "https://example.com:8080/note") return {
|
|
381
|
-
documentUrl: url,
|
|
382
|
-
contextUrl: null,
|
|
383
|
-
document: {
|
|
384
|
-
"@context": "https://www.w3.org/ns/activitystreams",
|
|
385
|
-
type: "Note",
|
|
386
|
-
id: "https://example.com:9090/note",
|
|
387
|
-
content: "Cross-port note"
|
|
388
|
-
}
|
|
389
|
-
};
|
|
390
|
-
throw new Error(`Unexpected URL: ${url}`);
|
|
391
|
-
};
|
|
392
|
-
const result = await lookupObject("https://example.com:8080/note", {
|
|
393
|
-
documentLoader: differentPortDocumentLoader,
|
|
394
|
-
contextLoader: mockDocumentLoader
|
|
395
|
-
});
|
|
396
|
-
assertEquals(result, null);
|
|
397
|
-
});
|
|
398
|
-
await t.step("protocol difference same-origin check", async () => {
|
|
399
|
-
const differentProtocolDocumentLoader = async (url) => {
|
|
400
|
-
if (url === "https://example.com/note") return {
|
|
401
|
-
documentUrl: url,
|
|
402
|
-
contextUrl: null,
|
|
403
|
-
document: {
|
|
404
|
-
"@context": "https://www.w3.org/ns/activitystreams",
|
|
405
|
-
type: "Note",
|
|
406
|
-
id: "http://example.com/note",
|
|
407
|
-
content: "Cross-protocol note"
|
|
408
|
-
}
|
|
409
|
-
};
|
|
410
|
-
throw new Error(`Unexpected URL: ${url}`);
|
|
411
|
-
};
|
|
412
|
-
const result = await lookupObject("https://example.com/note", {
|
|
413
|
-
documentLoader: differentProtocolDocumentLoader,
|
|
414
|
-
contextLoader: mockDocumentLoader
|
|
415
|
-
});
|
|
416
|
-
assertEquals(result, null);
|
|
417
|
-
});
|
|
418
|
-
await t.step("error handling with crossOrigin throw option", async () => {
|
|
419
|
-
const errorDocumentLoader = async (_url) => {
|
|
420
|
-
throw new Error("Network error");
|
|
421
|
-
};
|
|
422
|
-
const result = await lookupObject("https://example.com/note", {
|
|
423
|
-
documentLoader: errorDocumentLoader,
|
|
424
|
-
contextLoader: mockDocumentLoader,
|
|
425
|
-
crossOrigin: "throw"
|
|
426
|
-
});
|
|
427
|
-
assertEquals(result, null);
|
|
428
|
-
});
|
|
429
|
-
await t.step("malformed JSON handling with cross-origin policy", async () => {
|
|
430
|
-
const malformedJsonDocumentLoader = async (url) => {
|
|
431
|
-
if (url === "https://example.com/note") return {
|
|
432
|
-
documentUrl: url,
|
|
433
|
-
contextUrl: null,
|
|
434
|
-
document: "invalid json"
|
|
435
|
-
};
|
|
436
|
-
throw new Error(`Unexpected URL: ${url}`);
|
|
437
|
-
};
|
|
438
|
-
assertEquals(await lookupObject("https://example.com/note", {
|
|
439
|
-
documentLoader: malformedJsonDocumentLoader,
|
|
440
|
-
contextLoader: mockDocumentLoader,
|
|
441
|
-
crossOrigin: "ignore"
|
|
442
|
-
}), null);
|
|
443
|
-
assertEquals(await lookupObject("https://example.com/note", {
|
|
444
|
-
documentLoader: malformedJsonDocumentLoader,
|
|
445
|
-
contextLoader: mockDocumentLoader,
|
|
446
|
-
crossOrigin: "throw"
|
|
447
|
-
}), null);
|
|
448
|
-
assertEquals(await lookupObject("https://example.com/note", {
|
|
449
|
-
documentLoader: malformedJsonDocumentLoader,
|
|
450
|
-
contextLoader: mockDocumentLoader,
|
|
451
|
-
crossOrigin: "trust"
|
|
452
|
-
}), null);
|
|
453
|
-
});
|
|
454
|
-
});
|
|
455
|
-
|
|
456
|
-
//#endregion
|
package/dist/vocab/mod.cjs
DELETED
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
const { Temporal } = require("@js-temporal/polyfill");
|
|
3
|
-
const { URLPattern } = require("urlpattern-polyfill");
|
|
4
|
-
|
|
5
|
-
require('../docloader-CCqXeagZ.cjs');
|
|
6
|
-
const require_actor = require('../actor-Be0ThtXy.cjs');
|
|
7
|
-
require('../lookup-hnMAAU5r.cjs');
|
|
8
|
-
const require_vocab = require('../vocab-B39-pFl9.cjs');
|
|
9
|
-
|
|
10
|
-
exports.Accept = require_actor.Accept;
|
|
11
|
-
exports.Activity = require_actor.Activity;
|
|
12
|
-
exports.Add = require_actor.Add;
|
|
13
|
-
exports.Announce = require_actor.Announce;
|
|
14
|
-
exports.Application = require_actor.Application;
|
|
15
|
-
exports.Arrive = require_actor.Arrive;
|
|
16
|
-
exports.Article = require_actor.Article;
|
|
17
|
-
exports.Audio = require_actor.Audio;
|
|
18
|
-
exports.Block = require_actor.Block;
|
|
19
|
-
exports.ChatMessage = require_actor.ChatMessage;
|
|
20
|
-
exports.Collection = require_actor.Collection;
|
|
21
|
-
exports.CollectionPage = require_actor.CollectionPage;
|
|
22
|
-
exports.Create = require_actor.Create;
|
|
23
|
-
exports.CryptographicKey = require_actor.CryptographicKey;
|
|
24
|
-
exports.DataIntegrityProof = require_actor.DataIntegrityProof;
|
|
25
|
-
exports.Delete = require_actor.Delete;
|
|
26
|
-
exports.DidService = require_actor.DidService;
|
|
27
|
-
exports.Dislike = require_actor.Dislike;
|
|
28
|
-
exports.Document = require_actor.Document;
|
|
29
|
-
exports.Emoji = require_actor.Emoji;
|
|
30
|
-
exports.EmojiReact = require_actor.EmojiReact;
|
|
31
|
-
exports.Endpoints = require_actor.Endpoints;
|
|
32
|
-
exports.Event = require_actor.Event;
|
|
33
|
-
exports.Export = require_actor.Export;
|
|
34
|
-
exports.Flag = require_actor.Flag;
|
|
35
|
-
exports.Follow = require_actor.Follow;
|
|
36
|
-
exports.Group = require_actor.Group;
|
|
37
|
-
exports.Hashtag = require_actor.Hashtag;
|
|
38
|
-
exports.Ignore = require_actor.Ignore;
|
|
39
|
-
exports.Image = require_actor.Image;
|
|
40
|
-
exports.IntransitiveActivity = require_actor.IntransitiveActivity;
|
|
41
|
-
exports.Invite = require_actor.Invite;
|
|
42
|
-
exports.Join = require_actor.Join;
|
|
43
|
-
exports.Leave = require_actor.Leave;
|
|
44
|
-
exports.Like = require_actor.Like;
|
|
45
|
-
exports.Link = require_actor.Link;
|
|
46
|
-
exports.Listen = require_actor.Listen;
|
|
47
|
-
exports.Mention = require_actor.Mention;
|
|
48
|
-
exports.Move = require_actor.Move;
|
|
49
|
-
exports.Multikey = require_actor.Multikey;
|
|
50
|
-
exports.Note = require_actor.Note;
|
|
51
|
-
exports.Object = require_actor.Object$1;
|
|
52
|
-
exports.Offer = require_actor.Offer;
|
|
53
|
-
exports.OrderedCollection = require_actor.OrderedCollection;
|
|
54
|
-
exports.OrderedCollectionPage = require_actor.OrderedCollectionPage;
|
|
55
|
-
exports.Organization = require_actor.Organization;
|
|
56
|
-
exports.PUBLIC_COLLECTION = require_vocab.PUBLIC_COLLECTION;
|
|
57
|
-
exports.Page = require_actor.Page;
|
|
58
|
-
exports.Person = require_actor.Person;
|
|
59
|
-
exports.Place = require_actor.Place;
|
|
60
|
-
exports.Profile = require_actor.Profile;
|
|
61
|
-
exports.PropertyValue = require_actor.PropertyValue;
|
|
62
|
-
exports.Question = require_actor.Question;
|
|
63
|
-
exports.Read = require_actor.Read;
|
|
64
|
-
exports.Reject = require_actor.Reject;
|
|
65
|
-
exports.Relationship = require_actor.Relationship;
|
|
66
|
-
exports.Remove = require_actor.Remove;
|
|
67
|
-
exports.Service = require_actor.Service;
|
|
68
|
-
exports.Source = require_actor.Source;
|
|
69
|
-
exports.TentativeAccept = require_actor.TentativeAccept;
|
|
70
|
-
exports.TentativeReject = require_actor.TentativeReject;
|
|
71
|
-
exports.Tombstone = require_actor.Tombstone;
|
|
72
|
-
exports.Travel = require_actor.Travel;
|
|
73
|
-
exports.Undo = require_actor.Undo;
|
|
74
|
-
exports.Update = require_actor.Update;
|
|
75
|
-
exports.Video = require_actor.Video;
|
|
76
|
-
exports.View = require_actor.View;
|
|
77
|
-
exports.getActorClassByTypeName = require_actor.getActorClassByTypeName;
|
|
78
|
-
exports.getActorHandle = require_actor.getActorHandle;
|
|
79
|
-
exports.getActorTypeName = require_actor.getActorTypeName;
|
|
80
|
-
exports.getTypeId = require_actor.getTypeId;
|
|
81
|
-
exports.isActor = require_actor.isActor;
|
|
82
|
-
exports.isFediverseHandle = require_vocab.isFediverseHandle;
|
|
83
|
-
exports.lookupObject = require_vocab.lookupObject;
|
|
84
|
-
exports.normalizeActorHandle = require_actor.normalizeActorHandle;
|
|
85
|
-
exports.parseFediverseHandle = require_vocab.parseFediverseHandle;
|
|
86
|
-
exports.toAcctUrl = require_vocab.toAcctUrl;
|
|
87
|
-
exports.traverseCollection = require_vocab.traverseCollection;
|
package/dist/vocab/mod.d.cts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import "../kv-63Cil1MD.cjs";
|
|
2
|
-
import "../docloader-D-MrRyHl.cjs";
|
|
3
|
-
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, 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 } from "../vocab-Dw1-yVGg.cjs";
|
|
4
|
-
import { Actor, ActorTypeName, GetActorHandleOptions, NormalizeActorHandleOptions, Recipient, getActorClassByTypeName, getActorHandle, getActorTypeName, isActor, normalizeActorHandle } from "../actor-D6K058Tb.cjs";
|
|
5
|
-
import { FediverseHandle, LookupObjectOptions, PUBLIC_COLLECTION, TraverseCollectionOptions, getTypeId, isFediverseHandle, lookupObject, parseFediverseHandle, toAcctUrl, traverseCollection } from "../mod-CxkWO3Mg.cjs";
|
|
6
|
-
export { Accept, Activity, Actor, ActorTypeName, Add, Announce, Application, Arrive, Article, Audio, Block, ChatMessage, Collection, CollectionPage, Create, CryptographicKey, DataIntegrityProof, Delete, DidService, Dislike, Document, Emoji, EmojiReact, Endpoints, Event, Export, FediverseHandle, Flag, Follow, GetActorHandleOptions, Group, Hashtag, Ignore, Image, IntransitiveActivity, Invite, Join, Leave, Like, Link, Listen, LookupObjectOptions, Mention, Move, Multikey, NormalizeActorHandleOptions, Note, Object$1 as Object, Offer, OrderedCollection, OrderedCollectionPage, Organization, PUBLIC_COLLECTION, Page, Person, Place, Profile, PropertyValue, Question, Read, Recipient, Reject, Relationship, Remove, Service, Source, TentativeAccept, TentativeReject, Tombstone, Travel, TraverseCollectionOptions, Undo, Update, Video, View, getActorClassByTypeName, getActorHandle, getActorTypeName, getTypeId, isActor, isFediverseHandle, lookupObject, normalizeActorHandle, parseFediverseHandle, toAcctUrl, traverseCollection };
|
package/dist/vocab/mod.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { Temporal } from "@js-temporal/polyfill";
|
|
2
|
-
import { URLPattern } from "urlpattern-polyfill";
|
|
3
|
-
import "../kv-C7sopW2E.js";
|
|
4
|
-
import "../docloader-CxWcuWqQ.js";
|
|
5
|
-
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, 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 } from "../vocab-BI0Ak5lL.js";
|
|
6
|
-
import { Actor, ActorTypeName, GetActorHandleOptions, NormalizeActorHandleOptions, Recipient, getActorClassByTypeName, getActorHandle, getActorTypeName, isActor, normalizeActorHandle } from "../actor-T6RyhRgk.js";
|
|
7
|
-
import { FediverseHandle, LookupObjectOptions, PUBLIC_COLLECTION, TraverseCollectionOptions, getTypeId, isFediverseHandle, lookupObject, parseFediverseHandle, toAcctUrl, traverseCollection } from "../mod-DlU8ISoa.js";
|
|
8
|
-
export { Accept, Activity, Actor, ActorTypeName, Add, Announce, Application, Arrive, Article, Audio, Block, ChatMessage, Collection, CollectionPage, Create, CryptographicKey, DataIntegrityProof, Delete, DidService, Dislike, Document, Emoji, EmojiReact, Endpoints, Event, Export, FediverseHandle, Flag, Follow, GetActorHandleOptions, Group, Hashtag, Ignore, Image, IntransitiveActivity, Invite, Join, Leave, Like, Link, Listen, LookupObjectOptions, Mention, Move, Multikey, NormalizeActorHandleOptions, Note, Object$1 as Object, Offer, OrderedCollection, OrderedCollectionPage, Organization, PUBLIC_COLLECTION, Page, Person, Place, Profile, PropertyValue, Question, Read, Recipient, Reject, Relationship, Remove, Service, Source, TentativeAccept, TentativeReject, Tombstone, Travel, TraverseCollectionOptions, Undo, Update, Video, View, getActorClassByTypeName, getActorHandle, getActorTypeName, getTypeId, isActor, isFediverseHandle, lookupObject, normalizeActorHandle, parseFediverseHandle, toAcctUrl, traverseCollection };
|
package/dist/vocab/mod.js
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import { Temporal } from "@js-temporal/polyfill";
|
|
3
|
-
import { URLPattern } from "urlpattern-polyfill";
|
|
4
|
-
|
|
5
|
-
import "../docloader-XK3y2jn5.js";
|
|
6
|
-
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, 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, getActorClassByTypeName, getActorHandle, getActorTypeName, getTypeId, isActor, normalizeActorHandle } from "../actor-ChbPLm6n.js";
|
|
7
|
-
import "../lookup-BPviO8ij.js";
|
|
8
|
-
import { PUBLIC_COLLECTION, isFediverseHandle, lookupObject, parseFediverseHandle, toAcctUrl, traverseCollection } from "../vocab-BWoeZsME.js";
|
|
9
|
-
|
|
10
|
-
export { 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, Leave, Like, Link, Listen, Mention, Move, Multikey, Note, Object$1 as Object, Offer, OrderedCollection, OrderedCollectionPage, Organization, PUBLIC_COLLECTION, Page, Person, Place, Profile, PropertyValue, Question, Read, Reject, Relationship, Remove, Service, Source, TentativeAccept, TentativeReject, Tombstone, Travel, Undo, Update, Video, View, getActorClassByTypeName, getActorHandle, getActorTypeName, getTypeId, isActor, isFediverseHandle, lookupObject, normalizeActorHandle, parseFediverseHandle, toAcctUrl, traverseCollection };
|