@fedify/fedify 1.9.0-pr.404.1510 → 2.0.0-dev.1514
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-DkIdAr9J.js → actor-B9P2qjOp.js} +228 -225
- package/dist/{actor-Ch5yFYFG.d.ts → actor-C22bXuuC.d.ts} +1 -1
- package/dist/{actor-CHqaUXl1.js → actor-_5FcZYCJ.js} +1 -1
- package/dist/{authdocloader-CjGMaQfP.js → authdocloader-B85dU2XF.js} +3 -3
- package/dist/{authdocloader-Bq3eEtNg.js → authdocloader-D1iSfbFg.js} +3 -3
- package/dist/{builder-DHDVBVOV.js → builder-CYzXSls9.js} +4 -4
- package/dist/{client-nKH0m0vE.js → client-CVlb4Ok0.js} +2 -2
- package/dist/compat/mod.d.ts +8 -8
- package/dist/compat/transformers.test.js +16 -16
- package/dist/{context-DNwURm52.d.ts → context-3ICnZJKt.d.ts} +6 -12
- package/dist/{docloader-Bs8tIfQl.js → docloader-Oh_3p-47.js} +1 -2
- package/dist/{esm-BHj56Vi7.js → esm-D3g5PyTT.js} +1 -1
- package/dist/federation/builder.test.js +5 -5
- package/dist/federation/collection.test.js +3 -3
- package/dist/federation/handler.test.js +17 -17
- package/dist/federation/inbox.test.js +4 -4
- package/dist/federation/keycache.test.js +4 -4
- package/dist/federation/kv.test.js +3 -3
- package/dist/federation/middleware.test.js +46 -47
- package/dist/federation/mod.d.ts +7 -7
- package/dist/federation/mod.js +10 -10
- package/dist/federation/mq.test.js +3 -3
- package/dist/federation/retry.test.js +3 -3
- package/dist/federation/router.test.js +3 -3
- package/dist/federation/send.test.js +10 -10
- package/dist/{http-DWzB6Eiv.js → http-BfYXy8KN.js} +3 -3
- package/dist/{http-zMANLZqM.js → http-CqQdyMrD.js} +2 -2
- package/dist/{http-D8Q4xH0d.d.ts → http-DqSNLFNY.d.ts} +1 -1
- package/dist/{inbox-Dp-eEtMJ.js → inbox-aK-1EWle.js} +1 -1
- package/dist/{key-8JDozsni.js → key-CIHj-ji7.js} +3 -3
- package/dist/{key-UNMrztet.js → key-DO4DsIoa.js} +4 -4
- package/dist/{key-BbWECGU6.js → key-DvNnIm-b.js} +2 -2
- package/dist/{key-nbNXifMr.js → key-dwUEz7hD.js} +2 -2
- package/dist/{keycache-DpBmIsYm.js → keycache-BVu6aNEj.js} +1 -1
- package/dist/{keys-jozgkzA_.js → keys-DzPS0ETq.js} +1 -1
- package/dist/{ld-Bc_JMHzZ.js → ld-Cnu549gk.js} +2 -2
- package/dist/{lookup-9rf-3A_i.d.ts → lookup-3czM5mmU.d.ts} +1 -7
- package/dist/{lookup-aiIxqPca.js → lookup-CHIhk5sJ.js} +2 -2
- package/dist/{lookup-DpxXFxgP.js → lookup-CUS6_-CL.js} +1 -1
- package/dist/middleware-26M2bCJx.js +26 -0
- package/dist/{middleware--YergbUA.js → middleware-Bx2AUSYt.js} +12 -17
- package/dist/middleware-CpfIowSV.js +17 -0
- package/dist/{middleware-8D078v9S.js → middleware-DZEp_3SF.js} +15 -20
- package/dist/{mod-QSm_u37X.d.ts → mod-CWxqOAci.d.ts} +2 -2
- package/dist/{mod-Cy6pkZSn.d.ts → mod-Cxt4Kpf6.d.ts} +1 -1
- package/dist/{mod-B7Pc0I7F.d.ts → mod-Drmz72EK.d.ts} +2 -2
- package/dist/{mod-BAuhKa9d.d.ts → mod-TFoH2Ql8.d.ts} +1 -1
- package/dist/mod.d.ts +10 -10
- package/dist/mod.js +10 -10
- package/dist/nodeinfo/client.test.js +5 -5
- package/dist/nodeinfo/handler.test.js +16 -16
- package/dist/nodeinfo/mod.js +2 -2
- package/dist/nodeinfo/semver.test.js +3 -3
- package/dist/nodeinfo/types.test.js +3 -3
- package/dist/{owner-D38zBIMc.d.ts → owner-CQPnQVtf.d.ts} +2 -2
- package/dist/{owner-D9G54cA0.js → owner-DLtMHO6X.js} +2 -2
- package/dist/{proof-D-__AaiA.js → proof-BJikaSMR.js} +2 -2
- package/dist/{proof-ByNeF5u0.js → proof-DV0L-54H.js} +3 -3
- package/dist/runtime/authdocloader.test.js +9 -9
- package/dist/runtime/docloader.test.js +4 -4
- package/dist/runtime/key.test.js +5 -5
- package/dist/runtime/langstr.test.js +5 -6
- package/dist/runtime/mod.d.ts +3 -3
- package/dist/runtime/mod.js +6 -6
- package/dist/runtime/multibase/multibase.test.js +3 -3
- package/dist/runtime/url.test.js +3 -3
- package/dist/{send-C7UN2arY.js → send-vv5TvgyD.js} +2 -2
- package/dist/sig/http.test.js +8 -8
- package/dist/sig/key.test.js +6 -6
- package/dist/sig/ld.test.js +7 -7
- package/dist/sig/mod.d.ts +5 -5
- package/dist/sig/mod.js +6 -6
- package/dist/sig/owner.test.js +7 -7
- package/dist/sig/proof.test.js +7 -7
- package/dist/testing/docloader.test.js +3 -3
- package/dist/testing/mod.d.ts +14 -17
- package/dist/testing/mod.js +3 -3
- package/dist/{testing-5ZjvWetO.js → testing-DM_97aHJ.js} +2 -2
- package/dist/{type-DYvF-0mj.js → type-BaPlY7h1.js} +227 -225
- package/dist/{types-BgaosfAy.js → types-0RrqyCDq.js} +2 -2
- package/dist/vocab/actor.test.js +5 -5
- package/dist/vocab/lookup.test.js +4 -4
- package/dist/vocab/mod.d.ts +3 -3
- package/dist/vocab/mod.js +4 -4
- package/dist/vocab/type.test.js +3 -3
- package/dist/vocab/vocab.test.js +11 -12
- package/dist/{vocab-Db27HLtB.js → vocab-FZ-IPYpZ.js} +4 -4
- package/dist/{vocab-BEEm2I6u.d.ts → vocab-SOE1ifCr.d.ts} +15 -12
- package/dist/webfinger/handler.test.js +16 -16
- package/dist/webfinger/lookup.test.js +4 -4
- package/dist/webfinger/mod.d.ts +1 -1
- package/dist/webfinger/mod.js +2 -2
- package/dist/x/cfworkers.test.js +3 -3
- package/dist/x/hono.d.ts +7 -7
- package/dist/x/sveltekit.d.ts +7 -7
- package/package.json +1 -2
- package/dist/middleware-CC7Dt7C9.js +0 -17
- package/dist/middleware-DeBTO9vF.js +0 -26
@@ -2,7 +2,7 @@
|
|
2
2
|
import { Temporal } from "@js-temporal/polyfill";
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
|
5
|
-
import { getUserAgent } from "./docloader-
|
5
|
+
import { getUserAgent } from "./docloader-Oh_3p-47.js";
|
6
6
|
import { getLogger } from "@logtape/logtape";
|
7
7
|
|
8
8
|
//#region src/nodeinfo/semver.ts
|
@@ -173,7 +173,7 @@ async function getNodeInfo(url, options = {}) {
|
|
173
173
|
}
|
174
174
|
const wellKnownRd = await wellKnownResponse.json();
|
175
175
|
const link = wellKnownRd?.links?.find((link$1) => link$1 != null && "rel" in link$1 && (link$1.rel === "http://nodeinfo.diaspora.software/ns/schema/2.0" || link$1.rel === "http://nodeinfo.diaspora.software/ns/schema/2.1") && "href" in link$1 && link$1.href != null);
|
176
|
-
if (link == null
|
176
|
+
if (link == null) {
|
177
177
|
logger.error("Failed to find a NodeInfo document link from {url}: {resourceDescriptor}", {
|
178
178
|
url: wellKnownUrl.href,
|
179
179
|
resourceDescriptor: wellKnownRd
|
package/dist/vocab/actor.test.js
CHANGED
@@ -3,19 +3,19 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import { Application, Group, Organization, Person, Service, __export } from "../type-
|
6
|
+
import { Application, Group, Organization, Person, Service, __export } from "../type-BaPlY7h1.js";
|
7
7
|
import { assertEquals } from "../assert_equals-DSbWqCm3.js";
|
8
8
|
import { assert } from "../assert-MZs1qjMx.js";
|
9
9
|
import "../assert_instance_of-DHz7EHNU.js";
|
10
|
-
import "../lookup-
|
11
|
-
import { getActorClassByTypeName, getActorHandle, getActorTypeName, isActor, normalizeActorHandle } from "../actor-
|
12
|
-
import { test } from "../testing-
|
10
|
+
import "../lookup-CHIhk5sJ.js";
|
11
|
+
import { getActorClassByTypeName, getActorHandle, getActorTypeName, isActor, normalizeActorHandle } from "../actor-_5FcZYCJ.js";
|
12
|
+
import { test } from "../testing-DM_97aHJ.js";
|
13
13
|
import { assertStrictEquals } from "../std__assert-X-_kMxKM.js";
|
14
14
|
import { assertFalse, assertRejects } from "../assert_rejects-DiIiJbZn.js";
|
15
15
|
import "../assert_is_error-BPGph1Jx.js";
|
16
16
|
import "../assert_not_equals-f3m3epl3.js";
|
17
17
|
import { assertThrows } from "../assert_throws-BOO88avQ.js";
|
18
|
-
import { esm_default } from "../esm-
|
18
|
+
import { esm_default } from "../esm-D3g5PyTT.js";
|
19
19
|
|
20
20
|
//#region ../../node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/precondition/PreconditionFailure.js
|
21
21
|
var PreconditionFailure = class PreconditionFailure extends Error {
|
@@ -3,18 +3,18 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import { Collection, Note, Object as Object$1, Person } from "../type-
|
6
|
+
import { Collection, Note, Object as Object$1, Person } from "../type-BaPlY7h1.js";
|
7
7
|
import { assertEquals } from "../assert_equals-DSbWqCm3.js";
|
8
8
|
import "../assert-MZs1qjMx.js";
|
9
9
|
import { assertInstanceOf } from "../assert_instance_of-DHz7EHNU.js";
|
10
|
-
import { lookupObject, traverseCollection } from "../lookup-
|
11
|
-
import { mockDocumentLoader, test } from "../testing-
|
10
|
+
import { lookupObject, traverseCollection } from "../lookup-CHIhk5sJ.js";
|
11
|
+
import { mockDocumentLoader, test } from "../testing-DM_97aHJ.js";
|
12
12
|
import "../std__assert-X-_kMxKM.js";
|
13
13
|
import "../assert_rejects-DiIiJbZn.js";
|
14
14
|
import "../assert_is_error-BPGph1Jx.js";
|
15
15
|
import "../assert_not_equals-f3m3epl3.js";
|
16
16
|
import "../assert_throws-BOO88avQ.js";
|
17
|
-
import { esm_default } from "../esm-
|
17
|
+
import { esm_default } from "../esm-D3g5PyTT.js";
|
18
18
|
|
19
19
|
//#region src/vocab/lookup.test.ts
|
20
20
|
test("lookupObject()", {
|
package/dist/vocab/mod.d.ts
CHANGED
@@ -2,7 +2,7 @@ import { Temporal } from "@js-temporal/polyfill";
|
|
2
2
|
import { URLPattern } from "urlpattern-polyfill";
|
3
3
|
import "../kv-C7sopW2E.js";
|
4
4
|
import "../docloader-CxWcuWqQ.js";
|
5
|
-
import { Accept, Activity, Add, Announce, Application, Arrive, Article, Audio, Block, ChatMessage, Collection, CollectionPage, Create, CryptographicKey, DataIntegrityProof, Delete, DidService, Dislike, Document, Emoji, EmojiReact, Endpoints, Event, Export, Flag, Follow, Group, Hashtag, Ignore, Image, IntransitiveActivity, Invite, Join, Leave, Like, Link, Listen, Mention, Move, Multikey, Note, Object as Object$1, Offer, OrderedCollection, OrderedCollectionPage, Organization, Page, Person, Place, Profile, PropertyValue, Question, Read, Reject, Relationship, Remove, Service, Source, TentativeAccept, TentativeReject, Tombstone, Travel, Undo, Update, Video, View } from "../vocab-
|
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-
|
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-SOE1ifCr.js";
|
6
|
+
import { Actor, ActorTypeName, GetActorHandleOptions, NormalizeActorHandleOptions, Recipient, getActorClassByTypeName, getActorHandle, getActorTypeName, isActor, normalizeActorHandle } from "../actor-C22bXuuC.js";
|
7
|
+
import { FediverseHandle, LookupObjectOptions, PUBLIC_COLLECTION, TraverseCollectionOptions, getTypeId, isFediverseHandle, lookupObject, parseFediverseHandle, toAcctUrl, traverseCollection } from "../mod-Cxt4Kpf6.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-Oh_3p-47.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-B9P2qjOp.js";
|
7
|
+
import "../lookup-CUS6_-CL.js";
|
8
|
+
import { PUBLIC_COLLECTION, isFediverseHandle, lookupObject, parseFediverseHandle, toAcctUrl, traverseCollection } from "../vocab-FZ-IPYpZ.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,10 +3,10 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import { Person, getTypeId } from "../type-
|
6
|
+
import { Person, getTypeId } from "../type-BaPlY7h1.js";
|
7
7
|
import { assertEquals } from "../assert_equals-DSbWqCm3.js";
|
8
|
-
import "../lookup-
|
9
|
-
import { test } from "../testing-
|
8
|
+
import "../lookup-CHIhk5sJ.js";
|
9
|
+
import { test } from "../testing-DM_97aHJ.js";
|
10
10
|
|
11
11
|
//#region src/vocab/type.test.ts
|
12
12
|
test("getTypeId()", () => {
|
package/dist/vocab/vocab.test.js
CHANGED
@@ -3,20 +3,19 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import { Activity, Announce, Collection, Create, CryptographicKey, Follow, Hashtag, LanguageString, Note, Object as Object$1, OrderedCollectionPage, Person, Place, Question, Source, decode, vocab_exports } from "../type-
|
6
|
+
import { Activity, Announce, Collection, Create, CryptographicKey, Follow, Hashtag, LanguageString, Note, Object as Object$1, OrderedCollectionPage, Person, Place, Question, Source, decode, vocab_exports } from "../type-BaPlY7h1.js";
|
7
7
|
import { assertEquals } from "../assert_equals-DSbWqCm3.js";
|
8
8
|
import { assert } from "../assert-MZs1qjMx.js";
|
9
9
|
import { assertInstanceOf } from "../assert_instance_of-DHz7EHNU.js";
|
10
|
-
import "../lookup-
|
11
|
-
import { mockDocumentLoader, test } from "../testing-
|
10
|
+
import "../lookup-CHIhk5sJ.js";
|
11
|
+
import { mockDocumentLoader, test } from "../testing-DM_97aHJ.js";
|
12
12
|
import "../std__assert-X-_kMxKM.js";
|
13
13
|
import { assertFalse, assertRejects } from "../assert_rejects-DiIiJbZn.js";
|
14
14
|
import "../assert_is_error-BPGph1Jx.js";
|
15
15
|
import { assertNotEquals } from "../assert_not_equals-f3m3epl3.js";
|
16
16
|
import { assertThrows } from "../assert_throws-BOO88avQ.js";
|
17
|
-
import { ed25519PublicKey, rsaPublicKey1 } from "../keys-
|
17
|
+
import { ed25519PublicKey, rsaPublicKey1 } from "../keys-DzPS0ETq.js";
|
18
18
|
import { pascalCase } from "es-toolkit";
|
19
|
-
import { parseLanguageTag } from "@phensley/language-tag";
|
20
19
|
import { Validator } from "@cfworker/json-schema";
|
21
20
|
import { readFile, readdir } from "node:fs/promises";
|
22
21
|
import { join } from "node:path";
|
@@ -2217,7 +2216,7 @@ const scalarTypes = {
|
|
2217
2216
|
encoder(v) {
|
2218
2217
|
return `{
|
2219
2218
|
"@value": ${v}.toString(),
|
2220
|
-
"@language": ${v}.
|
2219
|
+
"@language": ${v}.locale.baseName,
|
2221
2220
|
}`;
|
2222
2221
|
},
|
2223
2222
|
dataCheck(v) {
|
@@ -2324,22 +2323,22 @@ const scalarTypes = {
|
|
2324
2323
|
}
|
2325
2324
|
},
|
2326
2325
|
"fedify:langTag": {
|
2327
|
-
name: "
|
2326
|
+
name: "Intl.Locale",
|
2328
2327
|
typeGuard(v) {
|
2329
|
-
return `${v} instanceof
|
2328
|
+
return `${v} instanceof Intl.Locale`;
|
2330
2329
|
},
|
2331
2330
|
encoder(v) {
|
2332
|
-
return `{ "@value": ${v}.
|
2331
|
+
return `{ "@value": ${v}.baseName }`;
|
2333
2332
|
},
|
2334
2333
|
compactEncoder(v) {
|
2335
|
-
return `${v}.
|
2334
|
+
return `${v}.baseName`;
|
2336
2335
|
},
|
2337
2336
|
dataCheck(v) {
|
2338
2337
|
return `typeof ${v} === "object" && "@value" in ${v}
|
2339
2338
|
&& typeof ${v}["@value"] === "string" && !("@language" in ${v})`;
|
2340
2339
|
},
|
2341
2340
|
decoder(v) {
|
2342
|
-
return `
|
2341
|
+
return `new Intl.Locale(${v}["@value"])`;
|
2343
2342
|
}
|
2344
2343
|
},
|
2345
2344
|
"fedify:url": {
|
@@ -3106,7 +3105,7 @@ const sampleValues = {
|
|
3106
3105
|
243,
|
3107
3106
|
7
|
3108
3107
|
]),
|
3109
|
-
"fedify:langTag":
|
3108
|
+
"fedify:langTag": new Intl.Locale("en-Latn-US"),
|
3110
3109
|
"fedify:url": new URL("https://fedify.dev/"),
|
3111
3110
|
"fedify:publicKey": rsaPublicKey1.publicKey,
|
3112
3111
|
"fedify:multibaseKey": ed25519PublicKey.publicKey,
|
@@ -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-Oh_3p-47.js";
|
6
|
+
import { Object as Object$1, getTypeId } from "./actor-B9P2qjOp.js";
|
7
|
+
import { lookupWebFinger } from "./lookup-CUS6_-CL.js";
|
8
8
|
import { getLogger } from "@logtape/logtape";
|
9
9
|
import { SpanStatusCode, trace } from "@opentelemetry/api";
|
10
10
|
import { delay } from "es-toolkit";
|
@@ -168,7 +168,7 @@ async function lookupObjectInternal(identifier, options = {}) {
|
|
168
168
|
});
|
169
169
|
if (jrd?.links == null) return null;
|
170
170
|
for (const l of jrd.links) {
|
171
|
-
if (l.type !== "application/activity+json" && !l.type?.match(/application\/ld\+json;\s*profile="https:\/\/www.w3.org\/ns\/activitystreams"/) || l.rel !== "self"
|
171
|
+
if (l.type !== "application/activity+json" && !l.type?.match(/application\/ld\+json;\s*profile="https:\/\/www.w3.org\/ns\/activitystreams"/) || l.rel !== "self") continue;
|
172
172
|
try {
|
173
173
|
const remoteDoc = await documentLoader(l.href, { signal: options.signal });
|
174
174
|
document = remoteDoc.document;
|
@@ -2,21 +2,24 @@ import { Temporal } from "@js-temporal/polyfill";
|
|
2
2
|
import { URLPattern } from "urlpattern-polyfill";
|
3
3
|
import { DocumentLoader } from "./docloader-CxWcuWqQ.js";
|
4
4
|
import { Span, TracerProvider } from "@opentelemetry/api";
|
5
|
-
import { LanguageTag } from "@phensley/language-tag";
|
6
5
|
|
7
6
|
//#region src/runtime/langstr.d.ts
|
8
7
|
/**
|
9
8
|
* A language-tagged string which corresponds to the `rdf:langString` type.
|
10
9
|
*/
|
11
10
|
declare class LanguageString extends String {
|
12
|
-
|
11
|
+
/**
|
12
|
+
* The locale of the string.
|
13
|
+
* @since 2.0.0
|
14
|
+
*/
|
15
|
+
readonly locale: Intl.Locale;
|
13
16
|
/**
|
14
17
|
* Constructs a new `LanguageString`.
|
15
18
|
* @param value A string value written in the given language.
|
16
|
-
* @param
|
17
|
-
*
|
19
|
+
* @param locale The language of the string. If a string is given, it will
|
20
|
+
* be parsed as a `Intl.Locale` object.
|
18
21
|
*/
|
19
|
-
constructor(value: string, language:
|
22
|
+
constructor(value: string, language: Intl.Locale | string);
|
20
23
|
}
|
21
24
|
//#endregion
|
22
25
|
//#region src/vocab/vocab.d.ts
|
@@ -7240,7 +7243,7 @@ declare class Link {
|
|
7240
7243
|
mediaType?: string | null;
|
7241
7244
|
name?: string | LanguageString | null;
|
7242
7245
|
names?: ((string | LanguageString))[];
|
7243
|
-
language?:
|
7246
|
+
language?: Intl.Locale | null;
|
7244
7247
|
height?: number | null;
|
7245
7248
|
width?: number | null;
|
7246
7249
|
previews?: (Link | Object$1 | URL)[];
|
@@ -7263,7 +7266,7 @@ declare class Link {
|
|
7263
7266
|
mediaType?: string | null;
|
7264
7267
|
name?: string | LanguageString | null;
|
7265
7268
|
names?: ((string | LanguageString))[];
|
7266
|
-
language?:
|
7269
|
+
language?: Intl.Locale | null;
|
7267
7270
|
height?: number | null;
|
7268
7271
|
width?: number | null;
|
7269
7272
|
previews?: (Link | Object$1 | URL)[];
|
@@ -7307,7 +7310,7 @@ declare class Link {
|
|
7307
7310
|
/** Hints as to the language used by the target resource.
|
7308
7311
|
* Value MUST be a BCP 47 Language-Tag.
|
7309
7312
|
*/
|
7310
|
-
get language():
|
7313
|
+
get language(): Intl.Locale | null;
|
7311
7314
|
/** On a {@link Link}, specifies a hint as to the rendering height in
|
7312
7315
|
* device-independent pixels of the linked resource.
|
7313
7316
|
*/
|
@@ -7391,7 +7394,7 @@ declare class Hashtag extends Link {
|
|
7391
7394
|
mediaType?: string | null;
|
7392
7395
|
name?: string | LanguageString | null;
|
7393
7396
|
names?: ((string | LanguageString))[];
|
7394
|
-
language?:
|
7397
|
+
language?: Intl.Locale | null;
|
7395
7398
|
height?: number | null;
|
7396
7399
|
width?: number | null;
|
7397
7400
|
previews?: (Link | Object$1 | URL)[];
|
@@ -7414,7 +7417,7 @@ declare class Hashtag extends Link {
|
|
7414
7417
|
mediaType?: string | null;
|
7415
7418
|
name?: string | LanguageString | null;
|
7416
7419
|
names?: ((string | LanguageString))[];
|
7417
|
-
language?:
|
7420
|
+
language?: Intl.Locale | null;
|
7418
7421
|
height?: number | null;
|
7419
7422
|
width?: number | null;
|
7420
7423
|
previews?: (Link | Object$1 | URL)[];
|
@@ -8797,7 +8800,7 @@ declare class Mention extends Link {
|
|
8797
8800
|
mediaType?: string | null;
|
8798
8801
|
name?: string | LanguageString | null;
|
8799
8802
|
names?: ((string | LanguageString))[];
|
8800
|
-
language?:
|
8803
|
+
language?: Intl.Locale | null;
|
8801
8804
|
height?: number | null;
|
8802
8805
|
width?: number | null;
|
8803
8806
|
previews?: (Link | Object$1 | URL)[];
|
@@ -8820,7 +8823,7 @@ declare class Mention extends Link {
|
|
8820
8823
|
mediaType?: string | null;
|
8821
8824
|
name?: string | LanguageString | null;
|
8822
8825
|
names?: ((string | LanguageString))[];
|
8823
|
-
language?:
|
8826
|
+
language?: Intl.Locale | null;
|
8824
8827
|
height?: number | null;
|
8825
8828
|
width?: number | null;
|
8826
8829
|
previews?: (Link | Object$1 | URL)[];
|
@@ -3,30 +3,30 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import { Image, Link, Person } from "../type-
|
6
|
+
import { Image, Link, Person } from "../type-BaPlY7h1.js";
|
7
7
|
import { assertEquals } from "../assert_equals-DSbWqCm3.js";
|
8
8
|
import "../assert-MZs1qjMx.js";
|
9
9
|
import "../assert_instance_of-DHz7EHNU.js";
|
10
10
|
import { MemoryKvStore } from "../kv-CRZrzyXm.js";
|
11
|
-
import { createFederation, handleWebFinger } from "../middleware-
|
11
|
+
import { createFederation, handleWebFinger } from "../middleware-DZEp_3SF.js";
|
12
12
|
import "../semver-dArNLkR9.js";
|
13
|
-
import "../client-
|
14
|
-
import "../lookup-
|
13
|
+
import "../client-CVlb4Ok0.js";
|
14
|
+
import "../lookup-CHIhk5sJ.js";
|
15
15
|
import "../types-BIgY6c-l.js";
|
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-
|
16
|
+
import "../actor-_5FcZYCJ.js";
|
17
|
+
import "../key-dwUEz7hD.js";
|
18
|
+
import "../http-CqQdyMrD.js";
|
19
|
+
import "../authdocloader-B85dU2XF.js";
|
20
|
+
import "../ld-Cnu549gk.js";
|
21
|
+
import "../owner-DLtMHO6X.js";
|
22
|
+
import "../proof-BJikaSMR.js";
|
23
|
+
import "../inbox-aK-1EWle.js";
|
24
|
+
import "../builder-CYzXSls9.js";
|
25
25
|
import "../collection-CSzG2j1P.js";
|
26
|
-
import "../keycache-
|
26
|
+
import "../keycache-BVu6aNEj.js";
|
27
27
|
import "../retry-D4GJ670a.js";
|
28
|
-
import "../send-
|
29
|
-
import { createRequestContext, test } from "../testing-
|
28
|
+
import "../send-vv5TvgyD.js";
|
29
|
+
import { createRequestContext, test } from "../testing-DM_97aHJ.js";
|
30
30
|
import "../std__assert-X-_kMxKM.js";
|
31
31
|
import "../assert_rejects-DiIiJbZn.js";
|
32
32
|
import "../assert_is_error-BPGph1Jx.js";
|
@@ -3,18 +3,18 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import { lookupWebFinger } from "../type-
|
6
|
+
import { lookupWebFinger } from "../type-BaPlY7h1.js";
|
7
7
|
import { assertEquals } from "../assert_equals-DSbWqCm3.js";
|
8
8
|
import "../assert-MZs1qjMx.js";
|
9
9
|
import "../assert_instance_of-DHz7EHNU.js";
|
10
|
-
import "../lookup-
|
11
|
-
import { test } from "../testing-
|
10
|
+
import "../lookup-CHIhk5sJ.js";
|
11
|
+
import { test } from "../testing-DM_97aHJ.js";
|
12
12
|
import "../std__assert-X-_kMxKM.js";
|
13
13
|
import "../assert_rejects-DiIiJbZn.js";
|
14
14
|
import "../assert_is_error-BPGph1Jx.js";
|
15
15
|
import "../assert_not_equals-f3m3epl3.js";
|
16
16
|
import "../assert_throws-BOO88avQ.js";
|
17
|
-
import { esm_default } from "../esm-
|
17
|
+
import { esm_default } from "../esm-D3g5PyTT.js";
|
18
18
|
import { withTimeout } from "es-toolkit";
|
19
19
|
|
20
20
|
//#region src/webfinger/lookup.test.ts
|
package/dist/webfinger/mod.d.ts
CHANGED
@@ -2,6 +2,6 @@ import { Temporal } from "@js-temporal/polyfill";
|
|
2
2
|
import { URLPattern } from "urlpattern-polyfill";
|
3
3
|
import "../kv-C7sopW2E.js";
|
4
4
|
import "../docloader-CxWcuWqQ.js";
|
5
|
-
import { Link, LookupWebFingerOptions, ResourceDescriptor, lookupWebFinger } from "../lookup-
|
5
|
+
import { Link, LookupWebFingerOptions, ResourceDescriptor, lookupWebFinger } from "../lookup-3czM5mmU.js";
|
6
6
|
import "../mod-GIh5OYxW.js";
|
7
7
|
export { Link, LookupWebFingerOptions, ResourceDescriptor, lookupWebFinger };
|
package/dist/webfinger/mod.js
CHANGED
@@ -2,8 +2,8 @@
|
|
2
2
|
import { Temporal } from "@js-temporal/polyfill";
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
|
5
|
-
import "../docloader-
|
6
|
-
import { lookupWebFinger } from "../lookup-
|
5
|
+
import "../docloader-Oh_3p-47.js";
|
6
|
+
import { lookupWebFinger } from "../lookup-CUS6_-CL.js";
|
7
7
|
import "../webfinger-C3GIyXIg.js";
|
8
8
|
|
9
9
|
export { lookupWebFinger };
|
package/dist/x/cfworkers.test.js
CHANGED
@@ -3,12 +3,12 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import "../type-
|
6
|
+
import "../type-BaPlY7h1.js";
|
7
7
|
import { assertEquals } from "../assert_equals-DSbWqCm3.js";
|
8
8
|
import "../assert-MZs1qjMx.js";
|
9
9
|
import "../assert_instance_of-DHz7EHNU.js";
|
10
|
-
import "../lookup-
|
11
|
-
import { test } from "../testing-
|
10
|
+
import "../lookup-CHIhk5sJ.js";
|
11
|
+
import { test } from "../testing-DM_97aHJ.js";
|
12
12
|
import "../std__assert-X-_kMxKM.js";
|
13
13
|
import "../assert_rejects-DiIiJbZn.js";
|
14
14
|
import "../assert_is_error-BPGph1Jx.js";
|
package/dist/x/hono.d.ts
CHANGED
@@ -3,13 +3,13 @@ import { URLPattern } from "urlpattern-polyfill";
|
|
3
3
|
import "../kv-C7sopW2E.js";
|
4
4
|
import "../docloader-CxWcuWqQ.js";
|
5
5
|
import "../client-DF8anIB5.js";
|
6
|
-
import "../vocab-
|
7
|
-
import "../actor-
|
8
|
-
import "../http-
|
9
|
-
import "../owner-
|
10
|
-
import "../mod-
|
11
|
-
import "../lookup-
|
12
|
-
import { Federation } from "../context-
|
6
|
+
import "../vocab-SOE1ifCr.js";
|
7
|
+
import "../actor-C22bXuuC.js";
|
8
|
+
import "../http-DqSNLFNY.js";
|
9
|
+
import "../owner-CQPnQVtf.js";
|
10
|
+
import "../mod-Cxt4Kpf6.js";
|
11
|
+
import "../lookup-3czM5mmU.js";
|
12
|
+
import { Federation } from "../context-3ICnZJKt.js";
|
13
13
|
import "../mq-CRGm1e_F.js";
|
14
14
|
|
15
15
|
//#region src/x/hono.d.ts
|
package/dist/x/sveltekit.d.ts
CHANGED
@@ -3,13 +3,13 @@ import { URLPattern } from "urlpattern-polyfill";
|
|
3
3
|
import "../kv-C7sopW2E.js";
|
4
4
|
import "../docloader-CxWcuWqQ.js";
|
5
5
|
import "../client-DF8anIB5.js";
|
6
|
-
import "../vocab-
|
7
|
-
import "../actor-
|
8
|
-
import "../http-
|
9
|
-
import "../owner-
|
10
|
-
import "../mod-
|
11
|
-
import "../lookup-
|
12
|
-
import { Federation } from "../context-
|
6
|
+
import "../vocab-SOE1ifCr.js";
|
7
|
+
import "../actor-C22bXuuC.js";
|
8
|
+
import "../http-DqSNLFNY.js";
|
9
|
+
import "../owner-CQPnQVtf.js";
|
10
|
+
import "../mod-Cxt4Kpf6.js";
|
11
|
+
import "../lookup-3czM5mmU.js";
|
12
|
+
import { Federation } from "../context-3ICnZJKt.js";
|
13
13
|
import "../mq-CRGm1e_F.js";
|
14
14
|
|
15
15
|
//#region src/x/sveltekit.d.ts
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@fedify/fedify",
|
3
|
-
"version": "
|
3
|
+
"version": "2.0.0-dev.1514+0af04001",
|
4
4
|
"description": "An ActivityPub server framework",
|
5
5
|
"keywords": [
|
6
6
|
"ActivityPub",
|
@@ -101,7 +101,6 @@
|
|
101
101
|
"@multiformats/base-x": "^4.0.1",
|
102
102
|
"@opentelemetry/api": "^1.9.0",
|
103
103
|
"@opentelemetry/semantic-conventions": "^1.27.0",
|
104
|
-
"@phensley/language-tag": "^1.9.0",
|
105
104
|
"asn1js": "^3.0.5",
|
106
105
|
"byte-encodings": "^1.0.11",
|
107
106
|
"es-toolkit": "^1.39.5",
|
@@ -1,17 +0,0 @@
|
|
1
|
-
|
2
|
-
import { Temporal } from "@js-temporal/polyfill";
|
3
|
-
import { URLPattern } from "urlpattern-polyfill";
|
4
|
-
|
5
|
-
import "./transformers-Dna8Fg7k.js";
|
6
|
-
import "./docloader-Bs8tIfQl.js";
|
7
|
-
import "./actor-DkIdAr9J.js";
|
8
|
-
import { ContextImpl, FederationImpl, InboxContextImpl, KvSpecDeterminer, createFederation } from "./middleware--YergbUA.js";
|
9
|
-
import "./lookup-DpxXFxgP.js";
|
10
|
-
import "./key-BbWECGU6.js";
|
11
|
-
import "./http-DWzB6Eiv.js";
|
12
|
-
import "./proof-ByNeF5u0.js";
|
13
|
-
import "./types-BgaosfAy.js";
|
14
|
-
import "./authdocloader-Bq3eEtNg.js";
|
15
|
-
import "./vocab-Db27HLtB.js";
|
16
|
-
|
17
|
-
export { FederationImpl };
|
@@ -1,26 +0,0 @@
|
|
1
|
-
|
2
|
-
import { Temporal } from "@js-temporal/polyfill";
|
3
|
-
import { URLPattern } from "urlpattern-polyfill";
|
4
|
-
globalThis.addEventListener = () => {};
|
5
|
-
|
6
|
-
import "./type-DYvF-0mj.js";
|
7
|
-
import { ContextImpl, FederationImpl, InboxContextImpl, KvSpecDeterminer, createFederation } from "./middleware-8D078v9S.js";
|
8
|
-
import "./semver-dArNLkR9.js";
|
9
|
-
import "./client-nKH0m0vE.js";
|
10
|
-
import "./lookup-aiIxqPca.js";
|
11
|
-
import "./types-BIgY6c-l.js";
|
12
|
-
import "./actor-CHqaUXl1.js";
|
13
|
-
import "./key-nbNXifMr.js";
|
14
|
-
import "./http-zMANLZqM.js";
|
15
|
-
import "./authdocloader-CjGMaQfP.js";
|
16
|
-
import "./ld-Bc_JMHzZ.js";
|
17
|
-
import "./owner-D9G54cA0.js";
|
18
|
-
import "./proof-D-__AaiA.js";
|
19
|
-
import "./inbox-Dp-eEtMJ.js";
|
20
|
-
import "./builder-DHDVBVOV.js";
|
21
|
-
import "./collection-CSzG2j1P.js";
|
22
|
-
import "./keycache-DpBmIsYm.js";
|
23
|
-
import "./retry-D4GJ670a.js";
|
24
|
-
import "./send-C7UN2arY.js";
|
25
|
-
|
26
|
-
export { FederationImpl };
|