@fedify/fedify 1.8.1-pr.315.1091 → 1.8.1-pr.315.1275
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 +16 -10
- package/dist/{actor-C_d9cZrz.js → actor-B9oI1pGu.js} +2 -5
- package/dist/{actor-1rvS-py8.d.ts → actor-CYyhXZHp.d.ts} +3 -3
- package/dist/{actor-DLZ25ttS.js → actor-Cg2FBINf.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-DQdKoRgb.js → assert_is_error-BPGph1Jx.js} +2 -2
- package/dist/{assert_not_equals-7pyUM3Ib.js → assert_not_equals-f3m3epl3.js} +2 -2
- package/dist/{assert_rejects-DceVjUlD.js → assert_rejects-DiIiJbZn.js} +4 -4
- package/dist/{assert_throws-DTDC_gwN.js → assert_throws-BOO88avQ.js} +3 -3
- package/dist/{authdocloader-CLixqGPW.js → authdocloader-0urt38S6.js} +4 -4
- package/dist/{authdocloader-DUnUXs5R.js → authdocloader-BkwhwBf_.js} +4 -5
- package/dist/{builder-Js_TKEl1.js → builder-B-wZuoFJ.js} +75 -6
- package/dist/{client-DK4qnXK0.d.ts → client-B_KFjN3D.d.ts} +4 -4
- package/dist/{client-Cu9HMcIJ.js → client-Cr3DvU-q.js} +3 -3
- package/dist/{collection-Dfb0TPno.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 -32
- package/dist/{context-BhO5LP_t.d.ts → context-BRl3Ndz3.d.ts} +286 -73
- package/dist/{denokv-QWKsIqML.js → denokv-2x6-IpXO.js} +1 -1
- package/dist/{docloader-BindvZ7y.js → docloader-BLgRerm3.js} +41 -40
- package/dist/{docloader-DtGccyuM.d.ts → docloader-DJT1UZH4.d.ts} +5 -2
- package/dist/{esm-d-9EVGaP.js → esm-CRotYXVH.js} +15 -15
- package/dist/federation/builder.test.js +35 -21
- package/dist/federation/collection.test.js +13 -11
- package/dist/federation/handler.test.js +341 -40
- package/dist/federation/inbox.test.js +8 -12
- package/dist/federation/keycache.test.js +9 -12
- package/dist/federation/kv.test.js +13 -11
- package/dist/federation/middleware.test.js +65 -42
- package/dist/federation/mod.d.ts +12 -12
- package/dist/federation/mod.js +12 -12
- package/dist/federation/mq.test.js +15 -13
- package/dist/federation/retry.test.js +7 -5
- package/dist/federation/router.test.js +12 -11
- package/dist/federation/send.test.js +19 -25
- package/dist/{federation-C44ekWNP.js → federation-CMX7WzeL.js} +2 -2
- package/dist/{http-BigTqmE7.js → http-BkzChfDi.js} +5 -5
- package/dist/{http-Cp-0z2Ja.d.ts → http-CMfQwn0N.d.ts} +6 -6
- package/dist/{http-DIyD7he1.js → http-g01-ecph.js} +6 -5
- package/dist/{inbox-BB6ajp8P.js → inbox-CpONbSbQ.js} +2 -4
- package/dist/{key-D9LuuzMv.js → key-B9Yg9Nqz.js} +4 -5
- package/dist/{key-BfI9Ju0m.js → key-C3aLobhY.js} +4 -4
- package/dist/{key-DlkWX5Fp.js → key-DdT7xoLD.js} +4 -4
- package/dist/key-RnJPgo1m.js +10 -0
- package/dist/{keycache-C4C7f09E.js → keycache-BvyhLLHV.js} +2 -2
- package/dist/{keys-BjET3ZIs.js → keys-BRSTnUlp.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-CYqXYuyr.js → ld-i6KANj32.js} +3 -5
- package/dist/{lookup-BYiP0j0F.js → lookup-BGA_VdZm.js} +115 -8
- package/dist/{lookup-_XgQq_BY.js → lookup-D5NvwwsS.js} +2 -2
- package/dist/{lookup-m3U6KA0u.d.ts → lookup-DXPWo3Hz.d.ts} +3 -3
- package/dist/{middleware-e74I4DJ9.js → middleware-BdFHk7bB.js} +629 -24
- package/dist/{middleware-VSdfWI3m.js → middleware-Chh21-S_.js} +563 -32
- package/dist/middleware-DEwSbDYQ.js +26 -0
- package/dist/middleware-DyY-_2Np.js +17 -0
- package/dist/{mod-c1I-Ydch.d.ts → mod-Cozftwmt.d.ts} +4 -4
- package/dist/{mod-yPzXIjJX.d.ts → mod-DHoWcUrW.d.ts} +6 -6
- package/dist/{mod-nlVEnYuj.d.ts → mod-DyY7EVjn.d.ts} +6 -6
- package/dist/{mod-BqCBztub.d.ts → mod-DyvbAsBu.d.ts} +6 -6
- package/dist/mod.d.ts +15 -15
- 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 -39
- package/dist/nodeinfo/mod.d.ts +3 -3
- package/dist/nodeinfo/mod.js +2 -2
- package/dist/nodeinfo/semver.test.js +13 -11
- package/dist/nodeinfo/types.test.js +14 -12
- package/dist/{owner-BK4eWKBp.d.ts → owner-CfnEgfAc.d.ts} +4 -4
- package/dist/{owner-D7RvVquY.js → owner-DSr0c3Yp.js} +3 -4
- package/dist/{proof-D4z1cLgw.js → proof-B83O-qBN.js} +4 -6
- package/dist/{proof-ChRSmA_D.js → proof-a4fXDkG3.js} +7 -7
- package/dist/{retry-BiIhZWgD.js → retry-D4GJ670a.js} +1 -1
- package/dist/runtime/authdocloader.test.js +18 -24
- package/dist/runtime/docloader.test.js +14 -15
- package/dist/runtime/key.test.js +14 -19
- package/dist/runtime/langstr.test.js +12 -11
- package/dist/runtime/mod.d.ts +5 -5
- package/dist/runtime/mod.js +6 -6
- package/dist/runtime/multibase/multibase.test.js +12 -11
- package/dist/runtime/url.test.js +8 -7
- package/dist/{semver-DWClQt_5.js → semver-dArNLkR9.js} +1 -1
- package/dist/{send-DmlRAY0X.js → send-QRloWueE.js} +3 -3
- package/dist/sig/http.test.js +40 -23
- package/dist/sig/key.test.js +15 -21
- package/dist/sig/ld.test.js +13 -19
- package/dist/sig/mod.d.ts +7 -7
- package/dist/sig/mod.js +6 -6
- package/dist/sig/owner.test.js +16 -23
- package/dist/sig/proof.test.js +16 -22
- package/dist/{std__assert-B3iAixc-.js → std__assert-X-_kMxKM.js} +6 -6
- package/dist/testing/docloader.test.js +12 -11
- package/dist/testing/mod.d.ts +8622 -2
- package/dist/testing/mod.js +4 -2
- package/dist/testing-A4u9tSVX.js +302 -0
- package/dist/{transformers-ghwJuzGY.js → transformers-Dna8Fg7k.js} +4 -4
- package/dist/{vocab-dw0HG0EQ.js → type-DHDlfpLg.js} +5246 -185
- package/dist/{types-C7C_l-jz.js → types-BIgY6c-l.js} +2 -2
- package/dist/{types-DuZ6KMHu.js → types-DbFIDnXK.js} +4 -4
- package/dist/vocab/actor.test.js +143 -149
- package/dist/vocab/lookup.test.js +13 -20
- package/dist/vocab/mod.d.ts +5 -5
- package/dist/vocab/mod.js +4 -4
- package/dist/vocab/type.test.js +5 -9
- package/dist/vocab/vocab.test.js +54 -58
- package/dist/{vocab-CI5oydJj.js → vocab-DN6Plgg2.js} +6 -6
- package/dist/{vocab-B52eQhpN.d.ts → vocab-KgaI50mH.d.ts} +3 -3
- package/dist/webfinger/handler.test.js +30 -39
- package/dist/webfinger/lookup.test.js +13 -14
- 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 -11
- 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/chunk-HsBuZ-b2.js +0 -41
- package/dist/context-CXi1nrZE.js +0 -108
- package/dist/docloader-Bh-sDknx.js +0 -68
- package/dist/docloader-CJ7eOrpZ.js +0 -4514
- package/dist/key-DG7lKWv0.js +0 -16
- package/dist/langstr-DbWheeIS.js +0 -33
- package/dist/lookup-CEbB0_t_.js +0 -133
- package/dist/middleware-Dd2mc8-e.js +0 -33
- package/dist/middleware-DjA978L0.js +0 -17
- package/dist/multibase-DeCHcK8L.js +0 -316
- package/dist/router-D3UybECj.js +0 -118
- package/dist/testing-BZ0dJ4qn.js +0 -143
- package/dist/type-D2s5lmbZ.js +0 -14
- package/dist/url-kTAI6_KP.js +0 -68
- /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,27 +3,20 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import {
|
|
7
|
-
import "../
|
|
8
|
-
import
|
|
9
|
-
import "../
|
|
10
|
-
import "../
|
|
11
|
-
import "../
|
|
12
|
-
import
|
|
13
|
-
import "../
|
|
14
|
-
import "../
|
|
15
|
-
import "../
|
|
16
|
-
import
|
|
17
|
-
import {
|
|
18
|
-
import "../std__assert-B3iAixc-.js";
|
|
19
|
-
import "../assert_rejects-DceVjUlD.js";
|
|
20
|
-
import "../assert_is_error-DQdKoRgb.js";
|
|
21
|
-
import "../assert_not_equals-7pyUM3Ib.js";
|
|
22
|
-
import "../assert_throws-DTDC_gwN.js";
|
|
23
|
-
import { mockDocumentLoader } from "../docloader-Bh-sDknx.js";
|
|
24
|
-
import { esm_default } from "../esm-d-9EVGaP.js";
|
|
6
|
+
import { Collection, Note, Object as Object$1, Person } from "../type-DHDlfpLg.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-BGA_VdZm.js";
|
|
11
|
+
import { mockDocumentLoader, test } from "../testing-A4u9tSVX.js";
|
|
12
|
+
import "../std__assert-X-_kMxKM.js";
|
|
13
|
+
import "../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-CRotYXVH.js";
|
|
25
18
|
|
|
26
|
-
//#region vocab/lookup.test.ts
|
|
19
|
+
//#region src/vocab/lookup.test.ts
|
|
27
20
|
test("lookupObject()", {
|
|
28
21
|
sanitizeResources: false,
|
|
29
22
|
sanitizeOps: false
|
package/dist/vocab/mod.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Temporal } from "@js-temporal/polyfill";
|
|
2
2
|
import { URLPattern } from "urlpattern-polyfill";
|
|
3
|
-
import "../kv-
|
|
4
|
-
import "../docloader-
|
|
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-
|
|
6
|
-
import { Actor, ActorTypeName, GetActorHandleOptions, NormalizeActorHandleOptions, Recipient, getActorClassByTypeName, getActorHandle, getActorTypeName, isActor, normalizeActorHandle } from "../actor-
|
|
7
|
-
import { FediverseHandle, LookupObjectOptions, PUBLIC_COLLECTION, TraverseCollectionOptions, getTypeId, isFediverseHandle, lookupObject, parseFediverseHandle, toAcctUrl, traverseCollection } from "../mod-
|
|
3
|
+
import "../kv-C7sopW2E.js";
|
|
4
|
+
import "../docloader-DJT1UZH4.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-KgaI50mH.js";
|
|
6
|
+
import { Actor, ActorTypeName, GetActorHandleOptions, NormalizeActorHandleOptions, Recipient, getActorClassByTypeName, getActorHandle, getActorTypeName, isActor, normalizeActorHandle } from "../actor-CYyhXZHp.js";
|
|
7
|
+
import { FediverseHandle, LookupObjectOptions, PUBLIC_COLLECTION, TraverseCollectionOptions, getTypeId, isFediverseHandle, lookupObject, parseFediverseHandle, toAcctUrl, traverseCollection } from "../mod-DyvbAsBu.js";
|
|
8
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
CHANGED
|
@@ -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 { 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-
|
|
7
|
-
import "../lookup-
|
|
8
|
-
import { PUBLIC_COLLECTION, isFediverseHandle, lookupObject, parseFediverseHandle, toAcctUrl, traverseCollection } from "../vocab-
|
|
5
|
+
import "../docloader-BLgRerm3.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-Cg2FBINf.js";
|
|
7
|
+
import "../lookup-D5NvwwsS.js";
|
|
8
|
+
import { PUBLIC_COLLECTION, isFediverseHandle, lookupObject, parseFediverseHandle, toAcctUrl, traverseCollection } from "../vocab-DN6Plgg2.js";
|
|
9
9
|
|
|
10
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 };
|
package/dist/vocab/type.test.js
CHANGED
|
@@ -3,16 +3,12 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import {
|
|
7
|
-
import "../
|
|
8
|
-
import "../
|
|
9
|
-
import "../
|
|
10
|
-
import { Person } from "../vocab-dw0HG0EQ.js";
|
|
11
|
-
import "../langstr-DbWheeIS.js";
|
|
12
|
-
import { getTypeId } from "../type-D2s5lmbZ.js";
|
|
13
|
-
import { test } from "../testing-BZ0dJ4qn.js";
|
|
6
|
+
import { Person, getTypeId } from "../type-DHDlfpLg.js";
|
|
7
|
+
import { assertEquals } from "../assert_equals-DSbWqCm3.js";
|
|
8
|
+
import "../lookup-BGA_VdZm.js";
|
|
9
|
+
import { test } from "../testing-A4u9tSVX.js";
|
|
14
10
|
|
|
15
|
-
//#region vocab/type.test.ts
|
|
11
|
+
//#region src/vocab/type.test.ts
|
|
16
12
|
test("getTypeId()", () => {
|
|
17
13
|
const obj = new Person({});
|
|
18
14
|
assertEquals(getTypeId(obj), new URL("https://www.w3.org/ns/activitystreams#Person"));
|
package/dist/vocab/vocab.test.js
CHANGED
|
@@ -3,39 +3,35 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import "../
|
|
10
|
-
import "../
|
|
11
|
-
import {
|
|
12
|
-
import
|
|
13
|
-
import {
|
|
14
|
-
import
|
|
15
|
-
import "../
|
|
16
|
-
import {
|
|
17
|
-
import "../
|
|
18
|
-
import { assertNotEquals } from "../assert_not_equals-7pyUM3Ib.js";
|
|
19
|
-
import { assertThrows } from "../assert_throws-DTDC_gwN.js";
|
|
20
|
-
import { mockDocumentLoader } from "../docloader-Bh-sDknx.js";
|
|
21
|
-
import { ed25519PublicKey, rsaPublicKey1 } from "../keys-BjET3ZIs.js";
|
|
6
|
+
import { Activity, Announce, Create, CryptographicKey, Follow, Hashtag, LanguageString, Note, Object as Object$1, OrderedCollectionPage, Person, Place, Question, Source, decode, vocab_exports } from "../type-DHDlfpLg.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 "../lookup-BGA_VdZm.js";
|
|
11
|
+
import { mockDocumentLoader, test } from "../testing-A4u9tSVX.js";
|
|
12
|
+
import "../std__assert-X-_kMxKM.js";
|
|
13
|
+
import { assertFalse, assertRejects } from "../assert_rejects-DiIiJbZn.js";
|
|
14
|
+
import "../assert_is_error-BPGph1Jx.js";
|
|
15
|
+
import { assertNotEquals } from "../assert_not_equals-f3m3epl3.js";
|
|
16
|
+
import { assertThrows } from "../assert_throws-BOO88avQ.js";
|
|
17
|
+
import { ed25519PublicKey, rsaPublicKey1 } from "../keys-BRSTnUlp.js";
|
|
22
18
|
import { pascalCase } from "es-toolkit";
|
|
23
19
|
import { parseLanguageTag } from "@phensley/language-tag";
|
|
24
20
|
import { Validator } from "@cfworker/json-schema";
|
|
25
21
|
import { readFile, readdir } from "node:fs/promises";
|
|
26
22
|
import { join } from "node:path";
|
|
27
23
|
|
|
28
|
-
//#region
|
|
24
|
+
//#region ../../node_modules/.pnpm/@jsr+std__path@1.1.0/node_modules/@jsr/std__path/_os.js
|
|
29
25
|
const isWindows = globalThis.Deno?.build.os === "windows" || globalThis.navigator?.platform?.startsWith("Win") || globalThis.process?.platform?.startsWith("win") || false;
|
|
30
26
|
|
|
31
27
|
//#endregion
|
|
32
|
-
//#region
|
|
28
|
+
//#region ../../node_modules/.pnpm/@jsr+std__path@1.1.0/node_modules/@jsr/std__path/_common/assert_path.js
|
|
33
29
|
function assertPath(path) {
|
|
34
30
|
if (typeof path !== "string") throw new TypeError(`Path must be a string, received "${JSON.stringify(path)}"`);
|
|
35
31
|
}
|
|
36
32
|
|
|
37
33
|
//#endregion
|
|
38
|
-
//#region
|
|
34
|
+
//#region ../../node_modules/.pnpm/@jsr+std__path@1.1.0/node_modules/@jsr/std__path/_common/from_file_url.js
|
|
39
35
|
function assertArg$2(url) {
|
|
40
36
|
url = url instanceof URL ? url : new URL(url);
|
|
41
37
|
if (url.protocol !== "file:") throw new TypeError(`URL must be a file URL: received "${url.protocol}"`);
|
|
@@ -43,7 +39,7 @@ function assertArg$2(url) {
|
|
|
43
39
|
}
|
|
44
40
|
|
|
45
41
|
//#endregion
|
|
46
|
-
//#region
|
|
42
|
+
//#region ../../node_modules/.pnpm/@jsr+std__path@1.1.0/node_modules/@jsr/std__path/posix/from_file_url.js
|
|
47
43
|
/**
|
|
48
44
|
* Converts a file URL to a path string.
|
|
49
45
|
*
|
|
@@ -63,7 +59,7 @@ function assertArg$2(url) {
|
|
|
63
59
|
}
|
|
64
60
|
|
|
65
61
|
//#endregion
|
|
66
|
-
//#region
|
|
62
|
+
//#region ../../node_modules/.pnpm/@jsr+std__path@1.1.0/node_modules/@jsr/std__path/_common/strip_trailing_separators.js
|
|
67
63
|
function stripTrailingSeparators(segment, isSep) {
|
|
68
64
|
if (segment.length <= 1) return segment;
|
|
69
65
|
let end = segment.length;
|
|
@@ -73,18 +69,18 @@ function stripTrailingSeparators(segment, isSep) {
|
|
|
73
69
|
}
|
|
74
70
|
|
|
75
71
|
//#endregion
|
|
76
|
-
//#region
|
|
72
|
+
//#region ../../node_modules/.pnpm/@jsr+std__path@1.1.0/node_modules/@jsr/std__path/_common/constants.js
|
|
77
73
|
const CHAR_DOT = 46;
|
|
78
74
|
const CHAR_FORWARD_SLASH = 47;
|
|
79
75
|
|
|
80
76
|
//#endregion
|
|
81
|
-
//#region
|
|
77
|
+
//#region ../../node_modules/.pnpm/@jsr+std__path@1.1.0/node_modules/@jsr/std__path/posix/_util.js
|
|
82
78
|
function isPosixPathSeparator(code) {
|
|
83
79
|
return code === CHAR_FORWARD_SLASH;
|
|
84
80
|
}
|
|
85
81
|
|
|
86
82
|
//#endregion
|
|
87
|
-
//#region
|
|
83
|
+
//#region ../../node_modules/.pnpm/@jsr+std__path@1.1.0/node_modules/@jsr/std__path/windows/from_file_url.js
|
|
88
84
|
/**
|
|
89
85
|
* Converts a file URL to a path string.
|
|
90
86
|
*
|
|
@@ -108,14 +104,14 @@ function isPosixPathSeparator(code) {
|
|
|
108
104
|
}
|
|
109
105
|
|
|
110
106
|
//#endregion
|
|
111
|
-
//#region
|
|
107
|
+
//#region ../../node_modules/.pnpm/@jsr+std__path@1.1.0/node_modules/@jsr/std__path/_common/dirname.js
|
|
112
108
|
function assertArg$1(path) {
|
|
113
109
|
assertPath(path);
|
|
114
110
|
if (path.length === 0) return ".";
|
|
115
111
|
}
|
|
116
112
|
|
|
117
113
|
//#endregion
|
|
118
|
-
//#region
|
|
114
|
+
//#region ../../node_modules/.pnpm/@jsr+std__path@1.1.0/node_modules/@jsr/std__path/posix/dirname.js
|
|
119
115
|
/**
|
|
120
116
|
* Return the directory path of a `path`.
|
|
121
117
|
*
|
|
@@ -159,7 +155,7 @@ function assertArg$1(path) {
|
|
|
159
155
|
}
|
|
160
156
|
|
|
161
157
|
//#endregion
|
|
162
|
-
//#region
|
|
158
|
+
//#region ../../node_modules/.pnpm/@jsr+std__path@1.1.0/node_modules/@jsr/std__path/from_file_url.js
|
|
163
159
|
/**
|
|
164
160
|
* Converts a file URL to a path string.
|
|
165
161
|
*
|
|
@@ -184,14 +180,14 @@ function assertArg$1(path) {
|
|
|
184
180
|
}
|
|
185
181
|
|
|
186
182
|
//#endregion
|
|
187
|
-
//#region
|
|
183
|
+
//#region ../../node_modules/.pnpm/@jsr+std__path@1.1.0/node_modules/@jsr/std__path/_common/normalize.js
|
|
188
184
|
function assertArg(path) {
|
|
189
185
|
assertPath(path);
|
|
190
186
|
if (path.length === 0) return ".";
|
|
191
187
|
}
|
|
192
188
|
|
|
193
189
|
//#endregion
|
|
194
|
-
//#region
|
|
190
|
+
//#region ../../node_modules/.pnpm/@jsr+std__path@1.1.0/node_modules/@jsr/std__path/_common/normalize_string.js
|
|
195
191
|
function normalizeString(path, allowAboveRoot, separator, isPathSeparator) {
|
|
196
192
|
let res = "";
|
|
197
193
|
let lastSegmentLength = 0;
|
|
@@ -244,7 +240,7 @@ function normalizeString(path, allowAboveRoot, separator, isPathSeparator) {
|
|
|
244
240
|
}
|
|
245
241
|
|
|
246
242
|
//#endregion
|
|
247
|
-
//#region
|
|
243
|
+
//#region ../../node_modules/.pnpm/@jsr+std__path@1.1.0/node_modules/@jsr/std__path/posix/normalize.js
|
|
248
244
|
/**
|
|
249
245
|
* Normalize the `path`, resolving `'..'` and `'.'` segments.
|
|
250
246
|
* Note that resolving these segments does not necessarily mean that all will be eliminated.
|
|
@@ -292,7 +288,7 @@ function normalizeString(path, allowAboveRoot, separator, isPathSeparator) {
|
|
|
292
288
|
}
|
|
293
289
|
|
|
294
290
|
//#endregion
|
|
295
|
-
//#region
|
|
291
|
+
//#region ../../node_modules/.pnpm/@jsr+std__path@1.1.0/node_modules/@jsr/std__path/posix/join.js
|
|
296
292
|
/**
|
|
297
293
|
* Join all given a sequence of `paths`,then normalizes the resulting path.
|
|
298
294
|
*
|
|
@@ -331,7 +327,7 @@ function normalizeString(path, allowAboveRoot, separator, isPathSeparator) {
|
|
|
331
327
|
}
|
|
332
328
|
|
|
333
329
|
//#endregion
|
|
334
|
-
//#region
|
|
330
|
+
//#region ../../node_modules/.pnpm/@jsr+std__url@1.0.0-rc.3/node_modules/@jsr/std__url/_strip.js
|
|
335
331
|
/**
|
|
336
332
|
* Strips any hash (eg. `#header`) or search parameters (eg. `?foo=bar`) from the provided URL.
|
|
337
333
|
*
|
|
@@ -343,7 +339,7 @@ function normalizeString(path, allowAboveRoot, separator, isPathSeparator) {
|
|
|
343
339
|
}
|
|
344
340
|
|
|
345
341
|
//#endregion
|
|
346
|
-
//#region
|
|
342
|
+
//#region ../../node_modules/.pnpm/@jsr+std__url@1.0.0-rc.3/node_modules/@jsr/std__url/dirname.js
|
|
347
343
|
/**
|
|
348
344
|
* Returns the directory path URL of a URL or URL string.
|
|
349
345
|
*
|
|
@@ -373,7 +369,7 @@ function normalizeString(path, allowAboveRoot, separator, isPathSeparator) {
|
|
|
373
369
|
}
|
|
374
370
|
|
|
375
371
|
//#endregion
|
|
376
|
-
//#region
|
|
372
|
+
//#region ../../node_modules/.pnpm/@jsr+std__url@1.0.0-rc.3/node_modules/@jsr/std__url/join.js
|
|
377
373
|
/**
|
|
378
374
|
* Joins a base URL or URL string, and a sequence of path segments together,
|
|
379
375
|
* then normalizes the resulting URL.
|
|
@@ -402,7 +398,7 @@ function normalizeString(path, allowAboveRoot, separator, isPathSeparator) {
|
|
|
402
398
|
}
|
|
403
399
|
|
|
404
400
|
//#endregion
|
|
405
|
-
//#region
|
|
401
|
+
//#region ../../node_modules/.pnpm/@jsr+std__yaml@1.0.8/node_modules/@jsr/std__yaml/_chars.js
|
|
406
402
|
const TAB = 9;
|
|
407
403
|
const LINE_FEED = 10;
|
|
408
404
|
const CARRIAGE_RETURN = 13;
|
|
@@ -444,7 +440,7 @@ function isFlowIndicator(c) {
|
|
|
444
440
|
}
|
|
445
441
|
|
|
446
442
|
//#endregion
|
|
447
|
-
//#region
|
|
443
|
+
//#region ../../node_modules/.pnpm/@jsr+std__yaml@1.0.8/node_modules/@jsr/std__yaml/_type/binary.js
|
|
448
444
|
const BASE64_MAP = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";
|
|
449
445
|
function resolveYamlBinary(data) {
|
|
450
446
|
if (data === null) return false;
|
|
@@ -531,7 +527,7 @@ const binary = {
|
|
|
531
527
|
};
|
|
532
528
|
|
|
533
529
|
//#endregion
|
|
534
|
-
//#region
|
|
530
|
+
//#region ../../node_modules/.pnpm/@jsr+std__yaml@1.0.8/node_modules/@jsr/std__yaml/_type/bool.js
|
|
535
531
|
const YAML_TRUE_BOOLEANS = [
|
|
536
532
|
"true",
|
|
537
533
|
"True",
|
|
@@ -567,7 +563,7 @@ const bool = {
|
|
|
567
563
|
};
|
|
568
564
|
|
|
569
565
|
//#endregion
|
|
570
|
-
//#region
|
|
566
|
+
//#region ../../node_modules/.pnpm/@jsr+std__yaml@1.0.8/node_modules/@jsr/std__yaml/_utils.js
|
|
571
567
|
function isObject(value) {
|
|
572
568
|
return value !== null && typeof value === "object";
|
|
573
569
|
}
|
|
@@ -579,7 +575,7 @@ function isPlainObject(object) {
|
|
|
579
575
|
}
|
|
580
576
|
|
|
581
577
|
//#endregion
|
|
582
|
-
//#region
|
|
578
|
+
//#region ../../node_modules/.pnpm/@jsr+std__yaml@1.0.8/node_modules/@jsr/std__yaml/_type/float.js
|
|
583
579
|
const YAML_FLOAT_PATTERN = /* @__PURE__ */ new RegExp("^(?:[-+]?(?:0|[1-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
|
|
584
580
|
function resolveYamlFloat(data) {
|
|
585
581
|
if (!YAML_FLOAT_PATTERN.test(data) || data[data.length - 1] === "_") return false;
|
|
@@ -630,7 +626,7 @@ const float = {
|
|
|
630
626
|
};
|
|
631
627
|
|
|
632
628
|
//#endregion
|
|
633
|
-
//#region
|
|
629
|
+
//#region ../../node_modules/.pnpm/@jsr+std__yaml@1.0.8/node_modules/@jsr/std__yaml/_type/int.js
|
|
634
630
|
function isCharCodeInRange(c, lower, upper) {
|
|
635
631
|
return lower <= c && c <= upper;
|
|
636
632
|
}
|
|
@@ -741,7 +737,7 @@ const int = {
|
|
|
741
737
|
};
|
|
742
738
|
|
|
743
739
|
//#endregion
|
|
744
|
-
//#region
|
|
740
|
+
//#region ../../node_modules/.pnpm/@jsr+std__yaml@1.0.8/node_modules/@jsr/std__yaml/_type/map.js
|
|
745
741
|
const map = {
|
|
746
742
|
tag: "tag:yaml.org,2002:map",
|
|
747
743
|
resolve() {
|
|
@@ -754,7 +750,7 @@ const map = {
|
|
|
754
750
|
};
|
|
755
751
|
|
|
756
752
|
//#endregion
|
|
757
|
-
//#region
|
|
753
|
+
//#region ../../node_modules/.pnpm/@jsr+std__yaml@1.0.8/node_modules/@jsr/std__yaml/_type/merge.js
|
|
758
754
|
const merge = {
|
|
759
755
|
tag: "tag:yaml.org,2002:merge",
|
|
760
756
|
kind: "scalar",
|
|
@@ -763,7 +759,7 @@ const merge = {
|
|
|
763
759
|
};
|
|
764
760
|
|
|
765
761
|
//#endregion
|
|
766
|
-
//#region
|
|
762
|
+
//#region ../../node_modules/.pnpm/@jsr+std__yaml@1.0.8/node_modules/@jsr/std__yaml/_type/nil.js
|
|
767
763
|
const nil = {
|
|
768
764
|
tag: "tag:yaml.org,2002:null",
|
|
769
765
|
kind: "scalar",
|
|
@@ -781,7 +777,7 @@ const nil = {
|
|
|
781
777
|
};
|
|
782
778
|
|
|
783
779
|
//#endregion
|
|
784
|
-
//#region
|
|
780
|
+
//#region ../../node_modules/.pnpm/@jsr+std__yaml@1.0.8/node_modules/@jsr/std__yaml/_type/omap.js
|
|
785
781
|
function resolveYamlOmap(data) {
|
|
786
782
|
const objectKeys = /* @__PURE__ */ new Set();
|
|
787
783
|
for (const object of data) {
|
|
@@ -805,7 +801,7 @@ const omap = {
|
|
|
805
801
|
};
|
|
806
802
|
|
|
807
803
|
//#endregion
|
|
808
|
-
//#region
|
|
804
|
+
//#region ../../node_modules/.pnpm/@jsr+std__yaml@1.0.8/node_modules/@jsr/std__yaml/_type/pairs.js
|
|
809
805
|
function resolveYamlPairs(data) {
|
|
810
806
|
if (data === null) return true;
|
|
811
807
|
return data.every((it) => isPlainObject(it) && Object.keys(it).length === 1);
|
|
@@ -820,7 +816,7 @@ const pairs = {
|
|
|
820
816
|
};
|
|
821
817
|
|
|
822
818
|
//#endregion
|
|
823
|
-
//#region
|
|
819
|
+
//#region ../../node_modules/.pnpm/@jsr+std__yaml@1.0.8/node_modules/@jsr/std__yaml/_type/regexp.js
|
|
824
820
|
const REGEXP = /^\/(?<regexp>[\s\S]+)\/(?<modifiers>[gismuy]*)$/;
|
|
825
821
|
const regexp = {
|
|
826
822
|
tag: "tag:yaml.org,2002:js/regexp",
|
|
@@ -844,7 +840,7 @@ const regexp = {
|
|
|
844
840
|
};
|
|
845
841
|
|
|
846
842
|
//#endregion
|
|
847
|
-
//#region
|
|
843
|
+
//#region ../../node_modules/.pnpm/@jsr+std__yaml@1.0.8/node_modules/@jsr/std__yaml/_type/seq.js
|
|
848
844
|
const seq = {
|
|
849
845
|
tag: "tag:yaml.org,2002:seq",
|
|
850
846
|
kind: "sequence",
|
|
@@ -853,7 +849,7 @@ const seq = {
|
|
|
853
849
|
};
|
|
854
850
|
|
|
855
851
|
//#endregion
|
|
856
|
-
//#region
|
|
852
|
+
//#region ../../node_modules/.pnpm/@jsr+std__yaml@1.0.8/node_modules/@jsr/std__yaml/_type/set.js
|
|
857
853
|
const set = {
|
|
858
854
|
tag: "tag:yaml.org,2002:set",
|
|
859
855
|
kind: "mapping",
|
|
@@ -865,7 +861,7 @@ const set = {
|
|
|
865
861
|
};
|
|
866
862
|
|
|
867
863
|
//#endregion
|
|
868
|
-
//#region
|
|
864
|
+
//#region ../../node_modules/.pnpm/@jsr+std__yaml@1.0.8/node_modules/@jsr/std__yaml/_type/str.js
|
|
869
865
|
const str = {
|
|
870
866
|
tag: "tag:yaml.org,2002:str",
|
|
871
867
|
kind: "scalar",
|
|
@@ -874,7 +870,7 @@ const str = {
|
|
|
874
870
|
};
|
|
875
871
|
|
|
876
872
|
//#endregion
|
|
877
|
-
//#region
|
|
873
|
+
//#region ../../node_modules/.pnpm/@jsr+std__yaml@1.0.8/node_modules/@jsr/std__yaml/_type/timestamp.js
|
|
878
874
|
const YAML_DATE_REGEXP = /* @__PURE__ */ new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$");
|
|
879
875
|
const YAML_TIMESTAMP_REGEXP = /* @__PURE__ */ new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");
|
|
880
876
|
function resolveYamlTimestamp(data) {
|
|
@@ -926,7 +922,7 @@ const timestamp = {
|
|
|
926
922
|
};
|
|
927
923
|
|
|
928
924
|
//#endregion
|
|
929
|
-
//#region
|
|
925
|
+
//#region ../../node_modules/.pnpm/@jsr+std__yaml@1.0.8/node_modules/@jsr/std__yaml/_type/undefined.js
|
|
930
926
|
const undefinedType = {
|
|
931
927
|
tag: "tag:yaml.org,2002:js/undefined",
|
|
932
928
|
kind: "scalar",
|
|
@@ -945,7 +941,7 @@ const undefinedType = {
|
|
|
945
941
|
};
|
|
946
942
|
|
|
947
943
|
//#endregion
|
|
948
|
-
//#region
|
|
944
|
+
//#region ../../node_modules/.pnpm/@jsr+std__yaml@1.0.8/node_modules/@jsr/std__yaml/_schema.js
|
|
949
945
|
function createTypeMap(implicitTypes, explicitTypes) {
|
|
950
946
|
const result = {
|
|
951
947
|
fallback: /* @__PURE__ */ new Map(),
|
|
@@ -1044,7 +1040,7 @@ const SCHEMA_MAP = new Map([
|
|
|
1044
1040
|
]);
|
|
1045
1041
|
|
|
1046
1042
|
//#endregion
|
|
1047
|
-
//#region
|
|
1043
|
+
//#region ../../node_modules/.pnpm/@jsr+std__yaml@1.0.8/node_modules/@jsr/std__yaml/_loader_state.js
|
|
1048
1044
|
const CONTEXT_FLOW_IN = 1;
|
|
1049
1045
|
const CONTEXT_FLOW_OUT = 2;
|
|
1050
1046
|
const CONTEXT_BLOCK_IN = 3;
|
|
@@ -1949,7 +1945,7 @@ var LoaderState = class {
|
|
|
1949
1945
|
};
|
|
1950
1946
|
|
|
1951
1947
|
//#endregion
|
|
1952
|
-
//#region
|
|
1948
|
+
//#region ../../node_modules/.pnpm/@jsr+std__yaml@1.0.8/node_modules/@jsr/std__yaml/parse.js
|
|
1953
1949
|
function sanitizeInput(input) {
|
|
1954
1950
|
input = String(input);
|
|
1955
1951
|
if (input.length > 0) {
|
|
@@ -1994,7 +1990,7 @@ function sanitizeInput(input) {
|
|
|
1994
1990
|
}
|
|
1995
1991
|
|
|
1996
1992
|
//#endregion
|
|
1997
|
-
//#region codegen/fs.ts
|
|
1993
|
+
//#region src/codegen/fs.ts
|
|
1998
1994
|
/**
|
|
1999
1995
|
* Recursively read a directory, yielding the paths of all files. File paths
|
|
2000
1996
|
* are relative to the directory, and directories are not yielded.
|
|
@@ -2009,7 +2005,7 @@ async function* readDirRecursive(dir) {
|
|
|
2009
2005
|
}
|
|
2010
2006
|
|
|
2011
2007
|
//#endregion
|
|
2012
|
-
//#region codegen/schema.ts
|
|
2008
|
+
//#region src/codegen/schema.ts
|
|
2013
2009
|
/**
|
|
2014
2010
|
* An error that occurred while loading a schema file.
|
|
2015
2011
|
*/
|
|
@@ -2084,7 +2080,7 @@ async function loadSchemaFiles(dir) {
|
|
|
2084
2080
|
}
|
|
2085
2081
|
|
|
2086
2082
|
//#endregion
|
|
2087
|
-
//#region codegen/type.ts
|
|
2083
|
+
//#region src/codegen/type.ts
|
|
2088
2084
|
const scalarTypes = {
|
|
2089
2085
|
"http://www.w3.org/2001/XMLSchema#boolean": {
|
|
2090
2086
|
name: "boolean",
|
|
@@ -2471,7 +2467,7 @@ function areAllScalarTypes(typeUris, types$1) {
|
|
|
2471
2467
|
}
|
|
2472
2468
|
|
|
2473
2469
|
//#endregion
|
|
2474
|
-
//#region vocab/vocab.test.ts
|
|
2470
|
+
//#region src/vocab/vocab.test.ts
|
|
2475
2471
|
test("new Object()", () => {
|
|
2476
2472
|
const obj = new Object$1({
|
|
2477
2473
|
name: "Test",
|
|
@@ -2,14 +2,14 @@
|
|
|
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 { Object as Object$1, getTypeId } from "./actor-
|
|
7
|
-
import { lookupWebFinger } from "./lookup-
|
|
5
|
+
import { deno_default, getDocumentLoader } from "./docloader-BLgRerm3.js";
|
|
6
|
+
import { Object as Object$1, getTypeId } from "./actor-Cg2FBINf.js";
|
|
7
|
+
import { lookupWebFinger } from "./lookup-D5NvwwsS.js";
|
|
8
8
|
import { getLogger } from "@logtape/logtape";
|
|
9
9
|
import { SpanStatusCode, trace } from "@opentelemetry/api";
|
|
10
10
|
import { delay } from "es-toolkit";
|
|
11
11
|
|
|
12
|
-
//#region vocab/handle.ts
|
|
12
|
+
//#region src/vocab/handle.ts
|
|
13
13
|
/**
|
|
14
14
|
* Regular expression to match a fediverse handle in the format `@user@server`
|
|
15
15
|
* or `user@server`. The `user` part can contain alphanumeric characters and
|
|
@@ -87,7 +87,7 @@ function toAcctUrl(handle) {
|
|
|
87
87
|
}
|
|
88
88
|
|
|
89
89
|
//#endregion
|
|
90
|
-
//#region vocab/lookup.ts
|
|
90
|
+
//#region src/vocab/lookup.ts
|
|
91
91
|
const logger = getLogger([
|
|
92
92
|
"fedify",
|
|
93
93
|
"vocab",
|
|
@@ -231,7 +231,7 @@ async function* traverseCollection(collection, options = {}) {
|
|
|
231
231
|
}
|
|
232
232
|
|
|
233
233
|
//#endregion
|
|
234
|
-
//#region vocab/constants.ts
|
|
234
|
+
//#region src/vocab/constants.ts
|
|
235
235
|
/**
|
|
236
236
|
* The special public collection for [public addressing]. *Do not mutate this
|
|
237
237
|
* object.*
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Temporal } from "@js-temporal/polyfill";
|
|
2
2
|
import { URLPattern } from "urlpattern-polyfill";
|
|
3
|
-
import { DocumentLoader } from "./docloader-
|
|
3
|
+
import { DocumentLoader } from "./docloader-DJT1UZH4.js";
|
|
4
4
|
import { Span, TracerProvider } from "@opentelemetry/api";
|
|
5
5
|
import { LanguageTag } from "@phensley/language-tag";
|
|
6
6
|
|
|
7
|
-
//#region runtime/langstr.d.ts
|
|
7
|
+
//#region src/runtime/langstr.d.ts
|
|
8
8
|
/**
|
|
9
9
|
* A language-tagged string which corresponds to the `rdf:langString` type.
|
|
10
10
|
*/
|
|
@@ -19,7 +19,7 @@ declare class LanguageString extends String {
|
|
|
19
19
|
constructor(value: string, language: LanguageTag | string);
|
|
20
20
|
}
|
|
21
21
|
//#endregion
|
|
22
|
-
//#region vocab/vocab.d.ts
|
|
22
|
+
//#region src/vocab/vocab.d.ts
|
|
23
23
|
/** Describes an object of any kind. The Object type serves as the base type for
|
|
24
24
|
* most of the other kinds of objects defined in the Activity Vocabulary,
|
|
25
25
|
* including other Core types such as {@link Activity},
|
|
@@ -3,46 +3,37 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import {
|
|
7
|
-
import "../
|
|
8
|
-
import "../
|
|
9
|
-
import
|
|
10
|
-
import {
|
|
11
|
-
import "../
|
|
12
|
-
import "../
|
|
13
|
-
import "../
|
|
14
|
-
import "../
|
|
15
|
-
import "../
|
|
16
|
-
import "../
|
|
17
|
-
import "../
|
|
18
|
-
import
|
|
19
|
-
import "../
|
|
20
|
-
import "../
|
|
21
|
-
import "../
|
|
22
|
-
import "../
|
|
23
|
-
import "../
|
|
24
|
-
import "../
|
|
25
|
-
import "../
|
|
26
|
-
import "../
|
|
27
|
-
import "../
|
|
28
|
-
import "../
|
|
29
|
-
import "../
|
|
30
|
-
import "../
|
|
31
|
-
import "../
|
|
32
|
-
import "../
|
|
33
|
-
import "../
|
|
34
|
-
import "../
|
|
35
|
-
import "../send-DmlRAY0X.js";
|
|
36
|
-
import { test } from "../testing-BZ0dJ4qn.js";
|
|
37
|
-
import "../std__assert-B3iAixc-.js";
|
|
38
|
-
import "../assert_rejects-DceVjUlD.js";
|
|
39
|
-
import "../assert_is_error-DQdKoRgb.js";
|
|
40
|
-
import "../assert_not_equals-7pyUM3Ib.js";
|
|
41
|
-
import "../assert_throws-DTDC_gwN.js";
|
|
42
|
-
import "../docloader-Bh-sDknx.js";
|
|
43
|
-
import { createRequestContext } from "../context-CXi1nrZE.js";
|
|
6
|
+
import { Image, Link, Person } from "../type-DHDlfpLg.js";
|
|
7
|
+
import { assertEquals } from "../assert_equals-DSbWqCm3.js";
|
|
8
|
+
import "../assert-MZs1qjMx.js";
|
|
9
|
+
import "../assert_instance_of-DHz7EHNU.js";
|
|
10
|
+
import { MemoryKvStore } from "../kv-CRZrzyXm.js";
|
|
11
|
+
import { createFederation, handleWebFinger } from "../middleware-Chh21-S_.js";
|
|
12
|
+
import "../semver-dArNLkR9.js";
|
|
13
|
+
import "../client-Cr3DvU-q.js";
|
|
14
|
+
import "../lookup-BGA_VdZm.js";
|
|
15
|
+
import "../types-BIgY6c-l.js";
|
|
16
|
+
import "../actor-B9oI1pGu.js";
|
|
17
|
+
import "../key-B9Yg9Nqz.js";
|
|
18
|
+
import "../http-BkzChfDi.js";
|
|
19
|
+
import "../authdocloader-BkwhwBf_.js";
|
|
20
|
+
import "../ld-i6KANj32.js";
|
|
21
|
+
import "../owner-DSr0c3Yp.js";
|
|
22
|
+
import "../proof-B83O-qBN.js";
|
|
23
|
+
import "../inbox-CpONbSbQ.js";
|
|
24
|
+
import "../builder-B-wZuoFJ.js";
|
|
25
|
+
import "../collection-CSzG2j1P.js";
|
|
26
|
+
import "../keycache-BvyhLLHV.js";
|
|
27
|
+
import "../retry-D4GJ670a.js";
|
|
28
|
+
import "../send-QRloWueE.js";
|
|
29
|
+
import { createRequestContext, test } from "../testing-A4u9tSVX.js";
|
|
30
|
+
import "../std__assert-X-_kMxKM.js";
|
|
31
|
+
import "../assert_rejects-DiIiJbZn.js";
|
|
32
|
+
import "../assert_is_error-BPGph1Jx.js";
|
|
33
|
+
import "../assert_not_equals-f3m3epl3.js";
|
|
34
|
+
import "../assert_throws-BOO88avQ.js";
|
|
44
35
|
|
|
45
|
-
//#region webfinger/handler.test.ts
|
|
36
|
+
//#region src/webfinger/handler.test.ts
|
|
46
37
|
test("handleWebFinger()", async (t) => {
|
|
47
38
|
const url = new URL("https://example.com/.well-known/webfinger");
|
|
48
39
|
function createContext(url$1) {
|