@fedify/fedify 1.7.12 → 1.7.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{actor-TYqJGdVq.js → actor-BVilnhZ3.js} +3 -3
- package/dist/{actor-GZRoTRqg.js → actor-CsmPeeHG.js} +189 -189
- package/dist/{authdocloader-hiFSyM7V.js → authdocloader-9g6RkEcR.js} +3 -3
- package/dist/{authdocloader-BopfyipD.js → authdocloader-DqCINL6u.js} +3 -3
- package/dist/{builder-mi6RdzNE.js → builder-CKUAOfcL.js} +3 -3
- package/dist/{client-DuUKk4pk.js → client-C5xUY491.js} +1 -1
- package/dist/compat/transformers.test.js +17 -17
- package/dist/{context-RMU32mk4.js → context-aglzx1Ww.js} +2 -2
- package/dist/{docloader-DJxET2fN.js → docloader-CchlnLWb.js} +1 -1
- package/dist/{docloader-bgBm1Hd1.js → docloader-Qfs9nPiy.js} +1 -1
- package/dist/federation/builder.test.js +4 -4
- package/dist/federation/handler.test.js +19 -19
- package/dist/federation/inbox.test.js +3 -3
- package/dist/federation/keycache.test.js +3 -3
- package/dist/federation/middleware.test.js +18 -18
- package/dist/federation/mod.js +10 -10
- package/dist/federation/send.test.js +9 -9
- package/dist/{http-D2DkwsjA.js → http-CP3h1SLi.js} +3 -3
- package/dist/{http-vqMAvOVs.js → http-CjDwMreH.js} +3 -3
- package/dist/{inbox-DAAZZl2k.js → inbox-ApPO50Ma.js} +2 -2
- package/dist/{key-DmqJj57e.js → key--l6NVKdl.js} +2 -2
- package/dist/{key-5ssHQ67E.js → key-1Fv7reaM.js} +5 -5
- package/dist/{key-KVhaUM92.js → key-BPUM0v_S.js} +3 -3
- package/dist/{key-DSJGnD10.js → key-DD37RpoD.js} +4 -4
- package/dist/{keycache-C1pEuRyQ.js → keycache-B7Urghlu.js} +1 -1
- package/dist/{keys-C4XQHW5_.js → keys-DGJec4-R.js} +1 -1
- package/dist/{ld-DzlJ_IpT.js → ld-DJTavNY3.js} +3 -3
- package/dist/{lookup-CSngxuWm.js → lookup-CN-LpF5e.js} +1 -1
- package/dist/{lookup-DL62q3Xh.js → lookup-CkOdKyYR.js} +1 -1
- package/dist/{lookup-D0je8AqR.js → lookup-CnkkF4Rf.js} +3 -3
- package/dist/middleware-BQHe0X6Y.js +17 -0
- package/dist/{middleware-3wVT6S9E.js → middleware-BxHcZC4p.js} +15 -15
- package/dist/middleware-C3TZ3P-v.js +33 -0
- package/dist/{middleware-DlDXugwZ.js → middleware-CEpilAEY.js} +10 -10
- package/dist/mod.js +10 -10
- package/dist/nodeinfo/client.test.js +2 -2
- package/dist/nodeinfo/handler.test.js +18 -18
- package/dist/nodeinfo/mod.js +2 -2
- package/dist/{owner-81ey_76X.js → owner-qKULzrkx.js} +3 -3
- package/dist/{proof-DlI7QNdn.js → proof-BfeWBNrY.js} +3 -3
- package/dist/{proof-BlULDH4H.js → proof-d5P09-xk.js} +3 -3
- package/dist/runtime/authdocloader.test.js +8 -8
- package/dist/runtime/docloader.test.js +1 -1
- package/dist/runtime/key.test.js +5 -5
- package/dist/runtime/mod.js +6 -6
- package/dist/{send-DdxfTHo6.js → send-BnMY3Qxa.js} +2 -2
- package/dist/sig/http.test.js +7 -7
- package/dist/sig/key.test.js +6 -6
- package/dist/sig/ld.test.js +7 -7
- package/dist/sig/mod.js +6 -6
- package/dist/sig/owner.test.js +8 -8
- package/dist/sig/proof.test.js +7 -7
- package/dist/{types-CmVV9LT1.js → types-BZUzjGS0.js} +1 -1
- package/dist/vocab/actor.test.js +4 -4
- package/dist/vocab/lookup.test.js +4 -4
- package/dist/vocab/mod.js +4 -4
- package/dist/vocab/type.test.js +2 -2
- package/dist/vocab/vocab.test.js +28 -5
- package/dist/{vocab-BebR0kAy.js → vocab-C_pE4SvE.js} +3 -3
- package/dist/{vocab-DFlq4Wa6.js → vocab-S7fEn6XO.js} +188 -188
- package/dist/webfinger/handler.test.js +18 -18
- package/dist/webfinger/lookup.test.js +2 -2
- package/dist/webfinger/mod.js +2 -2
- package/package.json +1 -1
- package/dist/middleware-CxFoFBD8.js +0 -33
- package/dist/middleware-w7_U3fFi.js +0 -17
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, lookupObject, traverseCollection } from "../vocab-
|
|
5
|
+
import "../docloader-CchlnLWb.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-CsmPeeHG.js";
|
|
7
|
+
import "../lookup-CN-LpF5e.js";
|
|
8
|
+
import { PUBLIC_COLLECTION, lookupObject, traverseCollection } from "../vocab-C_pE4SvE.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, lookupObject, normalizeActorHandle, traverseCollection };
|
package/dist/vocab/type.test.js
CHANGED
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
6
|
import { assertEquals } from "../assert_equals-B44MxcIj.js";
|
|
7
|
-
import "../docloader-
|
|
7
|
+
import "../docloader-Qfs9nPiy.js";
|
|
8
8
|
import "../url-C2xuoQD1.js";
|
|
9
9
|
import "../multibase-CnLHszip.js";
|
|
10
|
-
import { Person } from "../vocab-
|
|
10
|
+
import { Person } from "../vocab-S7fEn6XO.js";
|
|
11
11
|
import "../langstr-DbWheeIS.js";
|
|
12
12
|
import { getTypeId } from "../type-CFuiGLz9.js";
|
|
13
13
|
import { test } from "../testing-DLyvtiiW.js";
|
package/dist/vocab/vocab.test.js
CHANGED
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
import { assertEquals, isWindows } from "../assert_equals-B44MxcIj.js";
|
|
7
7
|
import { assert } from "../assert-LOEeCUK5.js";
|
|
8
8
|
import { assertInstanceOf } from "../assert_instance_of-XtuFevV_.js";
|
|
9
|
-
import "../docloader-
|
|
9
|
+
import "../docloader-Qfs9nPiy.js";
|
|
10
10
|
import "../url-C2xuoQD1.js";
|
|
11
11
|
import { decode } from "../multibase-CnLHszip.js";
|
|
12
|
-
import { Activity, Announce, Create, CryptographicKey, Follow, Hashtag, Link, Note, Object as Object$1, OrderedCollectionPage, Person, Place, Question, Source, vocab_exports } from "../vocab-
|
|
12
|
+
import { Activity, Announce, Create, CryptographicKey, Follow, Hashtag, Link, Note, Object as Object$1, OrderedCollectionPage, Person, Place, Question, Source, vocab_exports } from "../vocab-S7fEn6XO.js";
|
|
13
13
|
import { LanguageString } from "../langstr-DbWheeIS.js";
|
|
14
14
|
import { test } from "../testing-DLyvtiiW.js";
|
|
15
15
|
import "../std__assert-o_r9vqm1.js";
|
|
@@ -18,7 +18,7 @@ import "../assert_is_error-BTlryvT0.js";
|
|
|
18
18
|
import { assertNotEquals } from "../assert_not_equals-C685gKx6.js";
|
|
19
19
|
import { assertThrows } from "../assert_throws-YetpVSc-.js";
|
|
20
20
|
import { mockDocumentLoader } from "../docloader-09nVWLAZ.js";
|
|
21
|
-
import { ed25519PublicKey, rsaPublicKey1 } from "../keys-
|
|
21
|
+
import { ed25519PublicKey, rsaPublicKey1 } from "../keys-DGJec4-R.js";
|
|
22
22
|
import { pascalCase } from "@es-toolkit/es-toolkit";
|
|
23
23
|
import { parseLanguageTag } from "@phensley/language-tag";
|
|
24
24
|
import { Validator } from "@cfworker/json-schema";
|
|
@@ -2196,8 +2196,19 @@ const scalarTypes = {
|
|
|
2196
2196
|
&& ${v}["@id"] !== "" && ${v}["@id"] !== "/"`;
|
|
2197
2197
|
},
|
|
2198
2198
|
decoder(v) {
|
|
2199
|
-
return `${v}["@id"].startsWith("at://
|
|
2200
|
-
? new URL("at://
|
|
2199
|
+
return `${v}["@id"].startsWith("at://")
|
|
2200
|
+
? new URL("at://" +
|
|
2201
|
+
encodeURIComponent(
|
|
2202
|
+
${v}["@id"].includes("/", 5)
|
|
2203
|
+
? ${v}["@id"].slice(5, ${v}["@id"].indexOf("/", 5))
|
|
2204
|
+
: ${v}["@id"].slice(5)
|
|
2205
|
+
) +
|
|
2206
|
+
(
|
|
2207
|
+
${v}["@id"].includes("/", 5)
|
|
2208
|
+
? ${v}["@id"].slice(${v}["@id"].indexOf("/", 5))
|
|
2209
|
+
: ""
|
|
2210
|
+
)
|
|
2211
|
+
)
|
|
2201
2212
|
: new URL(${v}["@id"])`;
|
|
2202
2213
|
}
|
|
2203
2214
|
},
|
|
@@ -2997,6 +3008,18 @@ test("Link.fromJsonLd()", async () => {
|
|
|
2997
3008
|
});
|
|
2998
3009
|
assertEquals(link.rel, "canonical");
|
|
2999
3010
|
assertEquals(link.href, new URL("at://did%3Aplc%3Aia76kvnndjutgedggx2ibrem/app.bsky.feed.post/3lyxjjs27jkqg"));
|
|
3011
|
+
const link2 = await Link.fromJsonLd({
|
|
3012
|
+
"@context": "https://www.w3.org/ns/activitystreams",
|
|
3013
|
+
"type": "Link",
|
|
3014
|
+
"href": "at://bnewbold.bsky.team/app.bsky.feed.post/3jwdwj2ctlk26"
|
|
3015
|
+
});
|
|
3016
|
+
assertEquals(link2.href, new URL("at://bnewbold.bsky.team/app.bsky.feed.post/3jwdwj2ctlk26"));
|
|
3017
|
+
const link3 = await Link.fromJsonLd({
|
|
3018
|
+
"@context": "https://www.w3.org/ns/activitystreams",
|
|
3019
|
+
"type": "Link",
|
|
3020
|
+
"href": "at://did:plc:ia76kvnndjutgedggx2ibrem"
|
|
3021
|
+
});
|
|
3022
|
+
assertEquals(link3.href, new URL("at://did%3Aplc%3Aia76kvnndjutgedggx2ibrem"));
|
|
3000
3023
|
});
|
|
3001
3024
|
function getAllProperties(type, types$1) {
|
|
3002
3025
|
const props = type.properties;
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import { Temporal } from "@js-temporal/polyfill";
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
|
|
5
|
-
import { deno_default, getDocumentLoader } from "./docloader-
|
|
6
|
-
import { Object as Object$1, getTypeId } from "./actor-
|
|
7
|
-
import { lookupWebFinger } from "./lookup-
|
|
5
|
+
import { deno_default, getDocumentLoader } from "./docloader-CchlnLWb.js";
|
|
6
|
+
import { Object as Object$1, getTypeId } from "./actor-CsmPeeHG.js";
|
|
7
|
+
import { lookupWebFinger } from "./lookup-CN-LpF5e.js";
|
|
8
8
|
import { getLogger } from "@logtape/logtape";
|
|
9
9
|
import { SpanStatusCode, trace } from "@opentelemetry/api";
|
|
10
10
|
import { delay } from "@es-toolkit/es-toolkit";
|