@fedify/fedify 1.8.1-pr.345.1245 → 1.8.1-pr.348.1271
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-CWNAGvnO.d.ts → actor-C2nhWp6O.d.ts} +3 -3
- package/dist/{actor-CTGO4wgc.js → actor-D-8TdNPr.js} +189 -189
- package/dist/{actor-mhmzZU1g.js → actor-DrRRDhb8.js} +2 -2
- 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-tiZ590SB.js → authdocloader-Bl-I2-Sq.js} +4 -4
- package/dist/{authdocloader-CYvVipt0.js → authdocloader-TjazCcIU.js} +4 -4
- package/dist/{builder-C3D92262.js → builder-B6FPbgkw.js} +5 -5
- package/dist/{client-B0IOer6B.d.ts → client-D2tgjFk3.d.ts} +4 -4
- package/dist/{client-DjYYs_OW.js → client-puE6hfUk.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-BNA3vzcr.d.ts → context-BBD2ZH_P.d.ts} +22 -22
- package/dist/{denokv-DK9P5Jq7.js → denokv-2x6-IpXO.js} +1 -1
- package/dist/{docloader-CLolPVL_.d.ts → docloader-Bz56sKV5.d.ts} +2 -2
- package/dist/{docloader-CxqWgqfO.js → docloader-C7WW0kMN.js} +34 -34
- package/dist/{esm-BjbJmcRn.js → esm-kKgnN0F0.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-pyA3O-iu.js → http-CsB7aLbk.js} +3 -3
- package/dist/{http-DKwEynG6.js → http-DVY5TWhV.js} +4 -4
- package/dist/{http-COez3YdK.d.ts → http-l4uEvaAw.d.ts} +4 -4
- package/dist/{inbox-v5wWCRpe.js → inbox-BLhA-QWO.js} +2 -2
- package/dist/{key-BLQ_GGUM.js → key-CZYy7mnV.js} +3 -3
- package/dist/{key-8Sh3XrAI.js → key-Ckkyz6B7.js} +3 -3
- package/dist/{key-BTtPNBpl.js → key-D7pylbp7.js} +3 -3
- package/dist/{key-C1UqarQf.js → key-ZLk0pywF.js} +4 -4
- package/dist/{keycache-DKmDz7t8.js → keycache-DIx0OpPd.js} +2 -2
- package/dist/{keys-bRHZ6z9w.js → keys-ED6v78Fx.js} +2 -2
- package/dist/{kv-BqOK6zss.d.ts → kv-C7sopW2E.d.ts} +1 -1
- package/dist/{kv-D7Yt6pnB.js → kv-CRZrzyXm.js} +1 -1
- package/dist/{ld-DuGmR_iA.js → ld-CkgvjhBi.js} +3 -3
- package/dist/{lookup-tSXYzgYs.d.ts → lookup-BJelGpWr.d.ts} +3 -3
- package/dist/{lookup-CYcncMTD.js → lookup-D8SjsWr2.js} +4 -4
- package/dist/{lookup-BDjhBU7v.js → lookup-DDoSF4Q1.js} +2 -2
- package/dist/{middleware-BUvuryMN.js → middleware-D3v8eOPA.js} +23 -23
- package/dist/{middleware-Dawm8fA5.js → middleware-DU3AZVLF.js} +23 -23
- package/dist/middleware-Dq3YUjC0.js +17 -0
- package/dist/middleware-U-bEePkd.js +26 -0
- package/dist/{mod-C2jQirfr.d.ts → mod-D79SaXL-.d.ts} +6 -6
- package/dist/{mod-CxD6XXBN.d.ts → mod-DDwnlIlm.d.ts} +3 -3
- package/dist/{mod-UTC30uNC.d.ts → mod-DM7ZpXF4.d.ts} +4 -4
- package/dist/{mod-Bf-mThHd.d.ts → mod-DwquBB1g.d.ts} +5 -5
- 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-C3AuVSZe.js → owner-DFOzrXnn.js} +3 -3
- package/dist/{owner-BlxMNrL4.d.ts → owner-fFqUg4lq.d.ts} +4 -4
- package/dist/{proof-CNOUPouK.js → proof-C9I8sGkH.js} +3 -3
- package/dist/{proof-CFVDEL_T.js → proof-QpYXzvLP.js} +6 -6
- 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-BSoyjraS.js → send-Cr09S8dD.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 +19 -19
- package/dist/testing/mod.js +3 -3
- package/dist/{testing-DpcMmWRw.js → testing-BYDK5oCn.js} +5 -5
- package/dist/{transformers-DJRB0yFF.js → transformers-Dna8Fg7k.js} +1 -1
- package/dist/{type-DtkIQZak.js → type-TZK8-ARl.js} +221 -221
- package/dist/{types-n7HI7VFr.js → types-BIgY6c-l.js} +2 -2
- package/dist/{types-DHz0awNo.js → types-BWv51qsq.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-t4O-VgwY.js → vocab-0oZsFDQ1.js} +6 -6
- package/dist/{vocab-Cyrb7_co.d.ts → vocab-CA7YwVEz.d.ts} +3 -3
- 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 +12 -12
- package/dist/x/hono.js +1 -1
- package/dist/x/sveltekit.d.ts +12 -12
- package/dist/x/sveltekit.js +1 -1
- package/package.json +3 -3
- package/dist/middleware-ChmcJI6-.js +0 -17
- package/dist/middleware-FDLn3UGn.js +0 -26
- /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,20 +3,20 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { Collection, Note, Object as Object$1, Person } from "../type-
|
|
7
|
-
import { assertEquals } from "../assert_equals-
|
|
8
|
-
import "../assert-
|
|
9
|
-
import { assertInstanceOf } from "../assert_instance_of-
|
|
10
|
-
import { lookupObject, traverseCollection } from "../lookup-
|
|
11
|
-
import { mockDocumentLoader, test } from "../testing-
|
|
12
|
-
import "../std__assert-
|
|
13
|
-
import "../assert_rejects-
|
|
14
|
-
import "../assert_is_error-
|
|
15
|
-
import "../assert_not_equals-
|
|
16
|
-
import "../assert_throws-
|
|
17
|
-
import { esm_default } from "../esm-
|
|
6
|
+
import { Collection, Note, Object as Object$1, Person } from "../type-TZK8-ARl.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-D8SjsWr2.js";
|
|
11
|
+
import { mockDocumentLoader, test } from "../testing-BYDK5oCn.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-kKgnN0F0.js";
|
|
18
18
|
|
|
19
|
-
//#region vocab/lookup.test.ts
|
|
19
|
+
//#region src/vocab/lookup.test.ts
|
|
20
20
|
test("lookupObject()", async (t) => {
|
|
21
21
|
esm_default.spyGlobal();
|
|
22
22
|
esm_default.get("begin:https://example.com/.well-known/webfinger", {
|
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-Bz56sKV5.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-CA7YwVEz.js";
|
|
6
|
+
import { Actor, ActorTypeName, GetActorHandleOptions, NormalizeActorHandleOptions, Recipient, getActorClassByTypeName, getActorHandle, getActorTypeName, isActor, normalizeActorHandle } from "../actor-C2nhWp6O.js";
|
|
7
|
+
import { FediverseHandle, LookupObjectOptions, PUBLIC_COLLECTION, TraverseCollectionOptions, getTypeId, isFediverseHandle, lookupObject, parseFediverseHandle, toAcctUrl, traverseCollection } from "../mod-D79SaXL-.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-C7WW0kMN.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-D-8TdNPr.js";
|
|
7
|
+
import "../lookup-DDoSF4Q1.js";
|
|
8
|
+
import { PUBLIC_COLLECTION, isFediverseHandle, lookupObject, parseFediverseHandle, toAcctUrl, traverseCollection } from "../vocab-0oZsFDQ1.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,12 +3,12 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { Person, getTypeId } from "../type-
|
|
7
|
-
import { assertEquals } from "../assert_equals-
|
|
8
|
-
import "../lookup-
|
|
9
|
-
import { test } from "../testing-
|
|
6
|
+
import { Person, getTypeId } from "../type-TZK8-ARl.js";
|
|
7
|
+
import { assertEquals } from "../assert_equals-DSbWqCm3.js";
|
|
8
|
+
import "../lookup-D8SjsWr2.js";
|
|
9
|
+
import { test } from "../testing-BYDK5oCn.js";
|
|
10
10
|
|
|
11
|
-
//#region vocab/type.test.ts
|
|
11
|
+
//#region src/vocab/type.test.ts
|
|
12
12
|
test("getTypeId()", () => {
|
|
13
13
|
const obj = new Person({});
|
|
14
14
|
assertEquals(getTypeId(obj), new URL("https://www.w3.org/ns/activitystreams#Person"));
|
package/dist/vocab/vocab.test.js
CHANGED
|
@@ -3,35 +3,35 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { Activity, Announce, Create, CryptographicKey, Follow, Hashtag, LanguageString, Note, Object as Object$1, OrderedCollectionPage, Person, Place, Question, Source, decode, vocab_exports } from "../type-
|
|
7
|
-
import { assertEquals } from "../assert_equals-
|
|
8
|
-
import { assert } from "../assert-
|
|
9
|
-
import { assertInstanceOf } from "../assert_instance_of-
|
|
10
|
-
import "../lookup-
|
|
11
|
-
import { mockDocumentLoader, test } from "../testing-
|
|
12
|
-
import "../std__assert-
|
|
13
|
-
import { assertFalse, assertRejects } from "../assert_rejects-
|
|
14
|
-
import "../assert_is_error-
|
|
15
|
-
import { assertNotEquals } from "../assert_not_equals-
|
|
16
|
-
import { assertThrows } from "../assert_throws-
|
|
17
|
-
import { ed25519PublicKey, rsaPublicKey1 } from "../keys-
|
|
6
|
+
import { Activity, Announce, Create, CryptographicKey, Follow, Hashtag, LanguageString, Note, Object as Object$1, OrderedCollectionPage, Person, Place, Question, Source, decode, vocab_exports } from "../type-TZK8-ARl.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-D8SjsWr2.js";
|
|
11
|
+
import { mockDocumentLoader, test } from "../testing-BYDK5oCn.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-ED6v78Fx.js";
|
|
18
18
|
import { pascalCase } from "es-toolkit";
|
|
19
19
|
import { parseLanguageTag } from "@phensley/language-tag";
|
|
20
20
|
import { Validator } from "@cfworker/json-schema";
|
|
21
21
|
import { readFile, readdir } from "node:fs/promises";
|
|
22
22
|
import { join } from "node:path";
|
|
23
23
|
|
|
24
|
-
//#region
|
|
24
|
+
//#region ../../node_modules/.pnpm/@jsr+std__path@1.1.0/node_modules/@jsr/std__path/_os.js
|
|
25
25
|
const isWindows = globalThis.Deno?.build.os === "windows" || globalThis.navigator?.platform?.startsWith("Win") || globalThis.process?.platform?.startsWith("win") || false;
|
|
26
26
|
|
|
27
27
|
//#endregion
|
|
28
|
-
//#region
|
|
28
|
+
//#region ../../node_modules/.pnpm/@jsr+std__path@1.1.0/node_modules/@jsr/std__path/_common/assert_path.js
|
|
29
29
|
function assertPath(path) {
|
|
30
30
|
if (typeof path !== "string") throw new TypeError(`Path must be a string, received "${JSON.stringify(path)}"`);
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
//#endregion
|
|
34
|
-
//#region
|
|
34
|
+
//#region ../../node_modules/.pnpm/@jsr+std__path@1.1.0/node_modules/@jsr/std__path/_common/from_file_url.js
|
|
35
35
|
function assertArg$2(url) {
|
|
36
36
|
url = url instanceof URL ? url : new URL(url);
|
|
37
37
|
if (url.protocol !== "file:") throw new TypeError(`URL must be a file URL: received "${url.protocol}"`);
|
|
@@ -39,7 +39,7 @@ function assertArg$2(url) {
|
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
//#endregion
|
|
42
|
-
//#region
|
|
42
|
+
//#region ../../node_modules/.pnpm/@jsr+std__path@1.1.0/node_modules/@jsr/std__path/posix/from_file_url.js
|
|
43
43
|
/**
|
|
44
44
|
* Converts a file URL to a path string.
|
|
45
45
|
*
|
|
@@ -59,7 +59,7 @@ function assertArg$2(url) {
|
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
//#endregion
|
|
62
|
-
//#region
|
|
62
|
+
//#region ../../node_modules/.pnpm/@jsr+std__path@1.1.0/node_modules/@jsr/std__path/_common/strip_trailing_separators.js
|
|
63
63
|
function stripTrailingSeparators(segment, isSep) {
|
|
64
64
|
if (segment.length <= 1) return segment;
|
|
65
65
|
let end = segment.length;
|
|
@@ -69,18 +69,18 @@ function stripTrailingSeparators(segment, isSep) {
|
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
//#endregion
|
|
72
|
-
//#region
|
|
72
|
+
//#region ../../node_modules/.pnpm/@jsr+std__path@1.1.0/node_modules/@jsr/std__path/_common/constants.js
|
|
73
73
|
const CHAR_DOT = 46;
|
|
74
74
|
const CHAR_FORWARD_SLASH = 47;
|
|
75
75
|
|
|
76
76
|
//#endregion
|
|
77
|
-
//#region
|
|
77
|
+
//#region ../../node_modules/.pnpm/@jsr+std__path@1.1.0/node_modules/@jsr/std__path/posix/_util.js
|
|
78
78
|
function isPosixPathSeparator(code) {
|
|
79
79
|
return code === CHAR_FORWARD_SLASH;
|
|
80
80
|
}
|
|
81
81
|
|
|
82
82
|
//#endregion
|
|
83
|
-
//#region
|
|
83
|
+
//#region ../../node_modules/.pnpm/@jsr+std__path@1.1.0/node_modules/@jsr/std__path/windows/from_file_url.js
|
|
84
84
|
/**
|
|
85
85
|
* Converts a file URL to a path string.
|
|
86
86
|
*
|
|
@@ -104,14 +104,14 @@ function isPosixPathSeparator(code) {
|
|
|
104
104
|
}
|
|
105
105
|
|
|
106
106
|
//#endregion
|
|
107
|
-
//#region
|
|
107
|
+
//#region ../../node_modules/.pnpm/@jsr+std__path@1.1.0/node_modules/@jsr/std__path/_common/dirname.js
|
|
108
108
|
function assertArg$1(path) {
|
|
109
109
|
assertPath(path);
|
|
110
110
|
if (path.length === 0) return ".";
|
|
111
111
|
}
|
|
112
112
|
|
|
113
113
|
//#endregion
|
|
114
|
-
//#region
|
|
114
|
+
//#region ../../node_modules/.pnpm/@jsr+std__path@1.1.0/node_modules/@jsr/std__path/posix/dirname.js
|
|
115
115
|
/**
|
|
116
116
|
* Return the directory path of a `path`.
|
|
117
117
|
*
|
|
@@ -155,7 +155,7 @@ function assertArg$1(path) {
|
|
|
155
155
|
}
|
|
156
156
|
|
|
157
157
|
//#endregion
|
|
158
|
-
//#region
|
|
158
|
+
//#region ../../node_modules/.pnpm/@jsr+std__path@1.1.0/node_modules/@jsr/std__path/from_file_url.js
|
|
159
159
|
/**
|
|
160
160
|
* Converts a file URL to a path string.
|
|
161
161
|
*
|
|
@@ -180,14 +180,14 @@ function assertArg$1(path) {
|
|
|
180
180
|
}
|
|
181
181
|
|
|
182
182
|
//#endregion
|
|
183
|
-
//#region
|
|
183
|
+
//#region ../../node_modules/.pnpm/@jsr+std__path@1.1.0/node_modules/@jsr/std__path/_common/normalize.js
|
|
184
184
|
function assertArg(path) {
|
|
185
185
|
assertPath(path);
|
|
186
186
|
if (path.length === 0) return ".";
|
|
187
187
|
}
|
|
188
188
|
|
|
189
189
|
//#endregion
|
|
190
|
-
//#region
|
|
190
|
+
//#region ../../node_modules/.pnpm/@jsr+std__path@1.1.0/node_modules/@jsr/std__path/_common/normalize_string.js
|
|
191
191
|
function normalizeString(path, allowAboveRoot, separator, isPathSeparator) {
|
|
192
192
|
let res = "";
|
|
193
193
|
let lastSegmentLength = 0;
|
|
@@ -240,7 +240,7 @@ function normalizeString(path, allowAboveRoot, separator, isPathSeparator) {
|
|
|
240
240
|
}
|
|
241
241
|
|
|
242
242
|
//#endregion
|
|
243
|
-
//#region
|
|
243
|
+
//#region ../../node_modules/.pnpm/@jsr+std__path@1.1.0/node_modules/@jsr/std__path/posix/normalize.js
|
|
244
244
|
/**
|
|
245
245
|
* Normalize the `path`, resolving `'..'` and `'.'` segments.
|
|
246
246
|
* Note that resolving these segments does not necessarily mean that all will be eliminated.
|
|
@@ -288,7 +288,7 @@ function normalizeString(path, allowAboveRoot, separator, isPathSeparator) {
|
|
|
288
288
|
}
|
|
289
289
|
|
|
290
290
|
//#endregion
|
|
291
|
-
//#region
|
|
291
|
+
//#region ../../node_modules/.pnpm/@jsr+std__path@1.1.0/node_modules/@jsr/std__path/posix/join.js
|
|
292
292
|
/**
|
|
293
293
|
* Join all given a sequence of `paths`,then normalizes the resulting path.
|
|
294
294
|
*
|
|
@@ -327,7 +327,7 @@ function normalizeString(path, allowAboveRoot, separator, isPathSeparator) {
|
|
|
327
327
|
}
|
|
328
328
|
|
|
329
329
|
//#endregion
|
|
330
|
-
//#region
|
|
330
|
+
//#region ../../node_modules/.pnpm/@jsr+std__url@1.0.0-rc.3/node_modules/@jsr/std__url/_strip.js
|
|
331
331
|
/**
|
|
332
332
|
* Strips any hash (eg. `#header`) or search parameters (eg. `?foo=bar`) from the provided URL.
|
|
333
333
|
*
|
|
@@ -339,7 +339,7 @@ function normalizeString(path, allowAboveRoot, separator, isPathSeparator) {
|
|
|
339
339
|
}
|
|
340
340
|
|
|
341
341
|
//#endregion
|
|
342
|
-
//#region
|
|
342
|
+
//#region ../../node_modules/.pnpm/@jsr+std__url@1.0.0-rc.3/node_modules/@jsr/std__url/dirname.js
|
|
343
343
|
/**
|
|
344
344
|
* Returns the directory path URL of a URL or URL string.
|
|
345
345
|
*
|
|
@@ -369,7 +369,7 @@ function normalizeString(path, allowAboveRoot, separator, isPathSeparator) {
|
|
|
369
369
|
}
|
|
370
370
|
|
|
371
371
|
//#endregion
|
|
372
|
-
//#region
|
|
372
|
+
//#region ../../node_modules/.pnpm/@jsr+std__url@1.0.0-rc.3/node_modules/@jsr/std__url/join.js
|
|
373
373
|
/**
|
|
374
374
|
* Joins a base URL or URL string, and a sequence of path segments together,
|
|
375
375
|
* then normalizes the resulting URL.
|
|
@@ -398,7 +398,7 @@ function normalizeString(path, allowAboveRoot, separator, isPathSeparator) {
|
|
|
398
398
|
}
|
|
399
399
|
|
|
400
400
|
//#endregion
|
|
401
|
-
//#region
|
|
401
|
+
//#region ../../node_modules/.pnpm/@jsr+std__yaml@1.0.8/node_modules/@jsr/std__yaml/_chars.js
|
|
402
402
|
const TAB = 9;
|
|
403
403
|
const LINE_FEED = 10;
|
|
404
404
|
const CARRIAGE_RETURN = 13;
|
|
@@ -440,7 +440,7 @@ function isFlowIndicator(c) {
|
|
|
440
440
|
}
|
|
441
441
|
|
|
442
442
|
//#endregion
|
|
443
|
-
//#region
|
|
443
|
+
//#region ../../node_modules/.pnpm/@jsr+std__yaml@1.0.8/node_modules/@jsr/std__yaml/_type/binary.js
|
|
444
444
|
const BASE64_MAP = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";
|
|
445
445
|
function resolveYamlBinary(data) {
|
|
446
446
|
if (data === null) return false;
|
|
@@ -527,7 +527,7 @@ const binary = {
|
|
|
527
527
|
};
|
|
528
528
|
|
|
529
529
|
//#endregion
|
|
530
|
-
//#region
|
|
530
|
+
//#region ../../node_modules/.pnpm/@jsr+std__yaml@1.0.8/node_modules/@jsr/std__yaml/_type/bool.js
|
|
531
531
|
const YAML_TRUE_BOOLEANS = [
|
|
532
532
|
"true",
|
|
533
533
|
"True",
|
|
@@ -563,7 +563,7 @@ const bool = {
|
|
|
563
563
|
};
|
|
564
564
|
|
|
565
565
|
//#endregion
|
|
566
|
-
//#region
|
|
566
|
+
//#region ../../node_modules/.pnpm/@jsr+std__yaml@1.0.8/node_modules/@jsr/std__yaml/_utils.js
|
|
567
567
|
function isObject(value) {
|
|
568
568
|
return value !== null && typeof value === "object";
|
|
569
569
|
}
|
|
@@ -575,7 +575,7 @@ function isPlainObject(object) {
|
|
|
575
575
|
}
|
|
576
576
|
|
|
577
577
|
//#endregion
|
|
578
|
-
//#region
|
|
578
|
+
//#region ../../node_modules/.pnpm/@jsr+std__yaml@1.0.8/node_modules/@jsr/std__yaml/_type/float.js
|
|
579
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))$");
|
|
580
580
|
function resolveYamlFloat(data) {
|
|
581
581
|
if (!YAML_FLOAT_PATTERN.test(data) || data[data.length - 1] === "_") return false;
|
|
@@ -626,7 +626,7 @@ const float = {
|
|
|
626
626
|
};
|
|
627
627
|
|
|
628
628
|
//#endregion
|
|
629
|
-
//#region
|
|
629
|
+
//#region ../../node_modules/.pnpm/@jsr+std__yaml@1.0.8/node_modules/@jsr/std__yaml/_type/int.js
|
|
630
630
|
function isCharCodeInRange(c, lower, upper) {
|
|
631
631
|
return lower <= c && c <= upper;
|
|
632
632
|
}
|
|
@@ -737,7 +737,7 @@ const int = {
|
|
|
737
737
|
};
|
|
738
738
|
|
|
739
739
|
//#endregion
|
|
740
|
-
//#region
|
|
740
|
+
//#region ../../node_modules/.pnpm/@jsr+std__yaml@1.0.8/node_modules/@jsr/std__yaml/_type/map.js
|
|
741
741
|
const map = {
|
|
742
742
|
tag: "tag:yaml.org,2002:map",
|
|
743
743
|
resolve() {
|
|
@@ -750,7 +750,7 @@ const map = {
|
|
|
750
750
|
};
|
|
751
751
|
|
|
752
752
|
//#endregion
|
|
753
|
-
//#region
|
|
753
|
+
//#region ../../node_modules/.pnpm/@jsr+std__yaml@1.0.8/node_modules/@jsr/std__yaml/_type/merge.js
|
|
754
754
|
const merge = {
|
|
755
755
|
tag: "tag:yaml.org,2002:merge",
|
|
756
756
|
kind: "scalar",
|
|
@@ -759,7 +759,7 @@ const merge = {
|
|
|
759
759
|
};
|
|
760
760
|
|
|
761
761
|
//#endregion
|
|
762
|
-
//#region
|
|
762
|
+
//#region ../../node_modules/.pnpm/@jsr+std__yaml@1.0.8/node_modules/@jsr/std__yaml/_type/nil.js
|
|
763
763
|
const nil = {
|
|
764
764
|
tag: "tag:yaml.org,2002:null",
|
|
765
765
|
kind: "scalar",
|
|
@@ -777,7 +777,7 @@ const nil = {
|
|
|
777
777
|
};
|
|
778
778
|
|
|
779
779
|
//#endregion
|
|
780
|
-
//#region
|
|
780
|
+
//#region ../../node_modules/.pnpm/@jsr+std__yaml@1.0.8/node_modules/@jsr/std__yaml/_type/omap.js
|
|
781
781
|
function resolveYamlOmap(data) {
|
|
782
782
|
const objectKeys = /* @__PURE__ */ new Set();
|
|
783
783
|
for (const object of data) {
|
|
@@ -801,7 +801,7 @@ const omap = {
|
|
|
801
801
|
};
|
|
802
802
|
|
|
803
803
|
//#endregion
|
|
804
|
-
//#region
|
|
804
|
+
//#region ../../node_modules/.pnpm/@jsr+std__yaml@1.0.8/node_modules/@jsr/std__yaml/_type/pairs.js
|
|
805
805
|
function resolveYamlPairs(data) {
|
|
806
806
|
if (data === null) return true;
|
|
807
807
|
return data.every((it) => isPlainObject(it) && Object.keys(it).length === 1);
|
|
@@ -816,7 +816,7 @@ const pairs = {
|
|
|
816
816
|
};
|
|
817
817
|
|
|
818
818
|
//#endregion
|
|
819
|
-
//#region
|
|
819
|
+
//#region ../../node_modules/.pnpm/@jsr+std__yaml@1.0.8/node_modules/@jsr/std__yaml/_type/regexp.js
|
|
820
820
|
const REGEXP = /^\/(?<regexp>[\s\S]+)\/(?<modifiers>[gismuy]*)$/;
|
|
821
821
|
const regexp = {
|
|
822
822
|
tag: "tag:yaml.org,2002:js/regexp",
|
|
@@ -840,7 +840,7 @@ const regexp = {
|
|
|
840
840
|
};
|
|
841
841
|
|
|
842
842
|
//#endregion
|
|
843
|
-
//#region
|
|
843
|
+
//#region ../../node_modules/.pnpm/@jsr+std__yaml@1.0.8/node_modules/@jsr/std__yaml/_type/seq.js
|
|
844
844
|
const seq = {
|
|
845
845
|
tag: "tag:yaml.org,2002:seq",
|
|
846
846
|
kind: "sequence",
|
|
@@ -849,7 +849,7 @@ const seq = {
|
|
|
849
849
|
};
|
|
850
850
|
|
|
851
851
|
//#endregion
|
|
852
|
-
//#region
|
|
852
|
+
//#region ../../node_modules/.pnpm/@jsr+std__yaml@1.0.8/node_modules/@jsr/std__yaml/_type/set.js
|
|
853
853
|
const set = {
|
|
854
854
|
tag: "tag:yaml.org,2002:set",
|
|
855
855
|
kind: "mapping",
|
|
@@ -861,7 +861,7 @@ const set = {
|
|
|
861
861
|
};
|
|
862
862
|
|
|
863
863
|
//#endregion
|
|
864
|
-
//#region
|
|
864
|
+
//#region ../../node_modules/.pnpm/@jsr+std__yaml@1.0.8/node_modules/@jsr/std__yaml/_type/str.js
|
|
865
865
|
const str = {
|
|
866
866
|
tag: "tag:yaml.org,2002:str",
|
|
867
867
|
kind: "scalar",
|
|
@@ -870,7 +870,7 @@ const str = {
|
|
|
870
870
|
};
|
|
871
871
|
|
|
872
872
|
//#endregion
|
|
873
|
-
//#region
|
|
873
|
+
//#region ../../node_modules/.pnpm/@jsr+std__yaml@1.0.8/node_modules/@jsr/std__yaml/_type/timestamp.js
|
|
874
874
|
const YAML_DATE_REGEXP = /* @__PURE__ */ new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$");
|
|
875
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]))?))?$");
|
|
876
876
|
function resolveYamlTimestamp(data) {
|
|
@@ -922,7 +922,7 @@ const timestamp = {
|
|
|
922
922
|
};
|
|
923
923
|
|
|
924
924
|
//#endregion
|
|
925
|
-
//#region
|
|
925
|
+
//#region ../../node_modules/.pnpm/@jsr+std__yaml@1.0.8/node_modules/@jsr/std__yaml/_type/undefined.js
|
|
926
926
|
const undefinedType = {
|
|
927
927
|
tag: "tag:yaml.org,2002:js/undefined",
|
|
928
928
|
kind: "scalar",
|
|
@@ -941,7 +941,7 @@ const undefinedType = {
|
|
|
941
941
|
};
|
|
942
942
|
|
|
943
943
|
//#endregion
|
|
944
|
-
//#region
|
|
944
|
+
//#region ../../node_modules/.pnpm/@jsr+std__yaml@1.0.8/node_modules/@jsr/std__yaml/_schema.js
|
|
945
945
|
function createTypeMap(implicitTypes, explicitTypes) {
|
|
946
946
|
const result = {
|
|
947
947
|
fallback: /* @__PURE__ */ new Map(),
|
|
@@ -1040,7 +1040,7 @@ const SCHEMA_MAP = new Map([
|
|
|
1040
1040
|
]);
|
|
1041
1041
|
|
|
1042
1042
|
//#endregion
|
|
1043
|
-
//#region
|
|
1043
|
+
//#region ../../node_modules/.pnpm/@jsr+std__yaml@1.0.8/node_modules/@jsr/std__yaml/_loader_state.js
|
|
1044
1044
|
const CONTEXT_FLOW_IN = 1;
|
|
1045
1045
|
const CONTEXT_FLOW_OUT = 2;
|
|
1046
1046
|
const CONTEXT_BLOCK_IN = 3;
|
|
@@ -1945,7 +1945,7 @@ var LoaderState = class {
|
|
|
1945
1945
|
};
|
|
1946
1946
|
|
|
1947
1947
|
//#endregion
|
|
1948
|
-
//#region
|
|
1948
|
+
//#region ../../node_modules/.pnpm/@jsr+std__yaml@1.0.8/node_modules/@jsr/std__yaml/parse.js
|
|
1949
1949
|
function sanitizeInput(input) {
|
|
1950
1950
|
input = String(input);
|
|
1951
1951
|
if (input.length > 0) {
|
|
@@ -1990,7 +1990,7 @@ function sanitizeInput(input) {
|
|
|
1990
1990
|
}
|
|
1991
1991
|
|
|
1992
1992
|
//#endregion
|
|
1993
|
-
//#region codegen/fs.ts
|
|
1993
|
+
//#region src/codegen/fs.ts
|
|
1994
1994
|
/**
|
|
1995
1995
|
* Recursively read a directory, yielding the paths of all files. File paths
|
|
1996
1996
|
* are relative to the directory, and directories are not yielded.
|
|
@@ -2005,7 +2005,7 @@ async function* readDirRecursive(dir) {
|
|
|
2005
2005
|
}
|
|
2006
2006
|
|
|
2007
2007
|
//#endregion
|
|
2008
|
-
//#region codegen/schema.ts
|
|
2008
|
+
//#region src/codegen/schema.ts
|
|
2009
2009
|
/**
|
|
2010
2010
|
* An error that occurred while loading a schema file.
|
|
2011
2011
|
*/
|
|
@@ -2080,7 +2080,7 @@ async function loadSchemaFiles(dir) {
|
|
|
2080
2080
|
}
|
|
2081
2081
|
|
|
2082
2082
|
//#endregion
|
|
2083
|
-
//#region codegen/type.ts
|
|
2083
|
+
//#region src/codegen/type.ts
|
|
2084
2084
|
const scalarTypes = {
|
|
2085
2085
|
"http://www.w3.org/2001/XMLSchema#boolean": {
|
|
2086
2086
|
name: "boolean",
|
|
@@ -2467,7 +2467,7 @@ function areAllScalarTypes(typeUris, types$1) {
|
|
|
2467
2467
|
}
|
|
2468
2468
|
|
|
2469
2469
|
//#endregion
|
|
2470
|
-
//#region vocab/vocab.test.ts
|
|
2470
|
+
//#region src/vocab/vocab.test.ts
|
|
2471
2471
|
test("new Object()", () => {
|
|
2472
2472
|
const obj = new Object$1({
|
|
2473
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-C7WW0kMN.js";
|
|
6
|
+
import { Object as Object$1, getTypeId } from "./actor-D-8TdNPr.js";
|
|
7
|
+
import { lookupWebFinger } from "./lookup-DDoSF4Q1.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",
|
|
@@ -230,7 +230,7 @@ async function* traverseCollection(collection, options = {}) {
|
|
|
230
230
|
}
|
|
231
231
|
|
|
232
232
|
//#endregion
|
|
233
|
-
//#region vocab/constants.ts
|
|
233
|
+
//#region src/vocab/constants.ts
|
|
234
234
|
/**
|
|
235
235
|
* The special public collection for [public addressing]. *Do not mutate this
|
|
236
236
|
* 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-Bz56sKV5.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,37 +3,37 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { Image, Link, Person } from "../type-
|
|
7
|
-
import { assertEquals } from "../assert_equals-
|
|
8
|
-
import "../assert-
|
|
9
|
-
import "../assert_instance_of-
|
|
10
|
-
import { MemoryKvStore } from "../kv-
|
|
11
|
-
import { createFederation, handleWebFinger } 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 { createRequestContext, test } from "../testing-
|
|
30
|
-
import "../std__assert-
|
|
31
|
-
import "../assert_rejects-
|
|
32
|
-
import "../assert_is_error-
|
|
33
|
-
import "../assert_not_equals-
|
|
34
|
-
import "../assert_throws-
|
|
6
|
+
import { Image, Link, Person } from "../type-TZK8-ARl.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-DU3AZVLF.js";
|
|
12
|
+
import "../semver-dArNLkR9.js";
|
|
13
|
+
import "../client-puE6hfUk.js";
|
|
14
|
+
import "../lookup-D8SjsWr2.js";
|
|
15
|
+
import "../types-BIgY6c-l.js";
|
|
16
|
+
import "../actor-DrRRDhb8.js";
|
|
17
|
+
import "../key-D7pylbp7.js";
|
|
18
|
+
import "../http-CsB7aLbk.js";
|
|
19
|
+
import "../authdocloader-TjazCcIU.js";
|
|
20
|
+
import "../ld-CkgvjhBi.js";
|
|
21
|
+
import "../owner-DFOzrXnn.js";
|
|
22
|
+
import "../proof-C9I8sGkH.js";
|
|
23
|
+
import "../inbox-BLhA-QWO.js";
|
|
24
|
+
import "../builder-B6FPbgkw.js";
|
|
25
|
+
import "../collection-CSzG2j1P.js";
|
|
26
|
+
import "../keycache-DIx0OpPd.js";
|
|
27
|
+
import "../retry-D4GJ670a.js";
|
|
28
|
+
import "../send-Cr09S8dD.js";
|
|
29
|
+
import { createRequestContext, test } from "../testing-BYDK5oCn.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";
|
|
35
35
|
|
|
36
|
-
//#region webfinger/handler.test.ts
|
|
36
|
+
//#region src/webfinger/handler.test.ts
|
|
37
37
|
test("handleWebFinger()", async (t) => {
|
|
38
38
|
const url = new URL("https://example.com/.well-known/webfinger");
|
|
39
39
|
function createContext(url$1) {
|
|
@@ -3,21 +3,21 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { lookupWebFinger } from "../type-
|
|
7
|
-
import { assertEquals } from "../assert_equals-
|
|
8
|
-
import "../assert-
|
|
9
|
-
import "../assert_instance_of-
|
|
10
|
-
import "../lookup-
|
|
11
|
-
import { test } from "../testing-
|
|
12
|
-
import "../std__assert-
|
|
13
|
-
import "../assert_rejects-
|
|
14
|
-
import "../assert_is_error-
|
|
15
|
-
import "../assert_not_equals-
|
|
16
|
-
import "../assert_throws-
|
|
17
|
-
import { esm_default } from "../esm-
|
|
6
|
+
import { lookupWebFinger } from "../type-TZK8-ARl.js";
|
|
7
|
+
import { assertEquals } from "../assert_equals-DSbWqCm3.js";
|
|
8
|
+
import "../assert-MZs1qjMx.js";
|
|
9
|
+
import "../assert_instance_of-DHz7EHNU.js";
|
|
10
|
+
import "../lookup-D8SjsWr2.js";
|
|
11
|
+
import { test } from "../testing-BYDK5oCn.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-kKgnN0F0.js";
|
|
18
18
|
import { withTimeout } from "es-toolkit";
|
|
19
19
|
|
|
20
|
-
//#region webfinger/lookup.test.ts
|
|
20
|
+
//#region src/webfinger/lookup.test.ts
|
|
21
21
|
test({
|
|
22
22
|
name: "lookupWebFinger()",
|
|
23
23
|
sanitizeOps: false,
|