@fedify/fedify 1.7.0 → 1.7.1
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-DeIuzQxq.js → actor-DJ6mmedC.js} +3 -3
- package/dist/{actor-DTfguoCb.js → actor-FH-WAej8.js} +199 -184
- package/dist/{authdocloader-BEp8lEDb.js → authdocloader-B2T4fRiV.js} +3 -3
- package/dist/{authdocloader-D70SfymB.js → authdocloader-Cva-rcRS.js} +3 -3
- package/dist/{builder-J9iFzZzN.js → builder-Bxqu7L34.js} +3 -3
- package/dist/{client-Zr00-i3d.js → client-BBJ_ctrO.js} +1 -1
- package/dist/compat/transformers.test.js +17 -17
- package/dist/{context-Bs34sOF6.js → context-B739pNLj.js} +2 -2
- package/dist/{docloader-CoPL1xCC.js → docloader-BgWr0qQ3.js} +1 -1
- package/dist/{docloader-Cg1VPpKf.js → docloader-DxTy1bGA.js} +1 -1
- package/dist/federation/builder.test.js +4 -4
- package/dist/federation/handler.test.js +23 -20
- 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-D4ufSjCD.js → http-BPd76BIt.js} +3 -3
- package/dist/{http-BTqtnecF.js → http-Chg5U8Wx.js} +3 -3
- package/dist/{inbox-BLGI5mWd.js → inbox-D2RQ1NyQ.js} +2 -2
- package/dist/{key-B0tlgo53.js → key-B9mtw0-b.js} +2 -2
- package/dist/{key-CWTlZkYV.js → key-D-h4mrRd.js} +3 -3
- package/dist/{key-CCfpdutM.js → key-DNgCtcP7.js} +4 -4
- package/dist/{key-CJGEHNGN.js → key-Dv7epGVT.js} +5 -5
- package/dist/{keycache-D4rAVXOS.js → keycache-Cq2U1tmp.js} +1 -1
- package/dist/{keys-cySMuiGu.js → keys-CfOe8IKQ.js} +1 -1
- package/dist/{ld-ecZJerZ8.js → ld-Cs2oMjm8.js} +3 -3
- package/dist/{lookup-CX4qjAss.js → lookup-CMhbSsjq.js} +1 -1
- package/dist/{lookup-Cbwww1Nk.js → lookup-CRsouEvW.js} +3 -3
- package/dist/{lookup-BLCwJTxi.js → lookup-DzYh3ckU.js} +1 -1
- package/dist/middleware-B2N0auVt.js +17 -0
- package/dist/middleware-Bivw_mmU.js +33 -0
- package/dist/{middleware-CUrRKWpM.js → middleware-ClTqAmPH.js} +10 -10
- package/dist/{middleware-rvM2CNtG.js → middleware-JPXtuFkW.js} +15 -15
- 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-BSmRd_IH.js → owner-B2YEI2nJ.js} +3 -3
- package/dist/{proof-R84z_lDC.js → proof-CYQxh247.js} +3 -3
- package/dist/{proof-CkXiUJfu.js → proof-eAH6MFFz.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-DrxpWl1q.js → send-DM_9LVgC.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 +8 -8
- package/dist/{types-DfKof1zg.js → types-DhrpS_c_.js} +1 -1
- package/dist/vocab/actor.test.js +5 -5
- package/dist/vocab/announce.yaml +3 -1
- package/dist/vocab/create.yaml +3 -1
- package/dist/vocab/delete.yaml +3 -1
- package/dist/vocab/lookup.test.js +4 -4
- package/dist/vocab/mod.js +4 -4
- package/dist/vocab/question.yaml +3 -1
- package/dist/vocab/type.test.js +2 -2
- package/dist/vocab/update.yaml +3 -1
- package/dist/vocab/vocab.test.js +11 -4
- package/dist/{vocab-CkD4jwmV.js → vocab-BrWaMp7c.js} +199 -184
- package/dist/{vocab-BwnH7Mra.js → vocab-k4NwiO6p.js} +3 -3
- 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-D6StExQX.js +0 -17
- package/dist/middleware-UQpFubxd.js +0 -33
package/dist/vocab/announce.yaml
CHANGED
@@ -16,7 +16,9 @@ defaultContext:
|
|
16
16
|
misskey: "https://misskey-hub.net/ns#"
|
17
17
|
fedibird: "http://fedibird.com/ns#"
|
18
18
|
sensitive: "as:sensitive"
|
19
|
-
votersCount:
|
19
|
+
votersCount:
|
20
|
+
"@id": "toot:votersCount"
|
21
|
+
"@type": "http://www.w3.org/2001/XMLSchema#nonNegativeInteger"
|
20
22
|
Emoji: "toot:Emoji"
|
21
23
|
Hashtag: "as:Hashtag"
|
22
24
|
quoteUrl: "as:quoteUrl"
|
package/dist/vocab/create.yaml
CHANGED
@@ -13,7 +13,9 @@ defaultContext:
|
|
13
13
|
misskey: "https://misskey-hub.net/ns#"
|
14
14
|
fedibird: "http://fedibird.com/ns#"
|
15
15
|
sensitive: "as:sensitive"
|
16
|
-
votersCount:
|
16
|
+
votersCount:
|
17
|
+
"@id": "toot:votersCount"
|
18
|
+
"@type": "http://www.w3.org/2001/XMLSchema#nonNegativeInteger"
|
17
19
|
Emoji: "toot:Emoji"
|
18
20
|
Hashtag: "as:Hashtag"
|
19
21
|
ChatMessage: "http://litepub.social/ns#ChatMessage"
|
package/dist/vocab/delete.yaml
CHANGED
@@ -15,7 +15,9 @@ defaultContext:
|
|
15
15
|
misskey: "https://misskey-hub.net/ns#"
|
16
16
|
fedibird: "http://fedibird.com/ns#"
|
17
17
|
sensitive: "as:sensitive"
|
18
|
-
votersCount:
|
18
|
+
votersCount:
|
19
|
+
"@id": "toot:votersCount"
|
20
|
+
"@type": "http://www.w3.org/2001/XMLSchema#nonNegativeInteger"
|
19
21
|
Emoji: "toot:Emoji"
|
20
22
|
Hashtag: "as:Hashtag"
|
21
23
|
ChatMessage: "http://litepub.social/ns#ChatMessage"
|
@@ -6,14 +6,14 @@
|
|
6
6
|
import { assertEquals } from "../assert_equals-Dnj7ejjL.js";
|
7
7
|
import "../assert-YJk-1DlZ.js";
|
8
8
|
import { assertInstanceOf } from "../assert_instance_of-DBIoG5k7.js";
|
9
|
-
import "../docloader-
|
9
|
+
import "../docloader-DxTy1bGA.js";
|
10
10
|
import "../url-kTAI6_KP.js";
|
11
11
|
import "../multibase-DeCHcK8L.js";
|
12
|
-
import { Collection, Note, Object as Object$1, Person } from "../vocab-
|
12
|
+
import { Collection, Note, Object as Object$1, Person } from "../vocab-BrWaMp7c.js";
|
13
13
|
import "../langstr-DbWheeIS.js";
|
14
|
-
import "../lookup-
|
14
|
+
import "../lookup-CMhbSsjq.js";
|
15
15
|
import "../type-D2s5lmbZ.js";
|
16
|
-
import { lookupObject, traverseCollection } from "../lookup-
|
16
|
+
import { lookupObject, traverseCollection } from "../lookup-CRsouEvW.js";
|
17
17
|
import { test } from "../testing-BZ0dJ4qn.js";
|
18
18
|
import "../std__assert-CHXwj7zk.js";
|
19
19
|
import "../assert_rejects-BZjUwo62.js";
|
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-BgWr0qQ3.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-FH-WAej8.js";
|
7
|
+
import "../lookup-DzYh3ckU.js";
|
8
|
+
import { PUBLIC_COLLECTION, lookupObject, traverseCollection } from "../vocab-k4NwiO6p.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/question.yaml
CHANGED
@@ -21,7 +21,9 @@ defaultContext:
|
|
21
21
|
misskey: "https://misskey-hub.net/ns#"
|
22
22
|
fedibird: "http://fedibird.com/ns#"
|
23
23
|
sensitive: "as:sensitive"
|
24
|
-
votersCount:
|
24
|
+
votersCount:
|
25
|
+
"@id": "toot:votersCount"
|
26
|
+
"@type": "http://www.w3.org/2001/XMLSchema#nonNegativeInteger"
|
25
27
|
Emoji: "toot:Emoji"
|
26
28
|
Hashtag: "as:Hashtag"
|
27
29
|
quoteUrl: "as:quoteUrl"
|
package/dist/vocab/type.test.js
CHANGED
@@ -4,10 +4,10 @@
|
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
6
|
import { assertEquals } from "../assert_equals-Dnj7ejjL.js";
|
7
|
-
import "../docloader-
|
7
|
+
import "../docloader-DxTy1bGA.js";
|
8
8
|
import "../url-kTAI6_KP.js";
|
9
9
|
import "../multibase-DeCHcK8L.js";
|
10
|
-
import { Person } from "../vocab-
|
10
|
+
import { Person } from "../vocab-BrWaMp7c.js";
|
11
11
|
import "../langstr-DbWheeIS.js";
|
12
12
|
import { getTypeId } from "../type-D2s5lmbZ.js";
|
13
13
|
import { test } from "../testing-BZ0dJ4qn.js";
|
package/dist/vocab/update.yaml
CHANGED
@@ -37,7 +37,9 @@ defaultContext:
|
|
37
37
|
suspended: "toot:suspended"
|
38
38
|
memorial: "toot:memorial"
|
39
39
|
indexable: "toot:indexable"
|
40
|
-
votersCount:
|
40
|
+
votersCount:
|
41
|
+
"@id": "toot:votersCount"
|
42
|
+
"@type": "http://www.w3.org/2001/XMLSchema#nonNegativeInteger"
|
41
43
|
Emoji: "toot:Emoji"
|
42
44
|
Hashtag: "as:Hashtag"
|
43
45
|
schema: "http://schema.org#"
|
package/dist/vocab/vocab.test.js
CHANGED
@@ -4,12 +4,12 @@
|
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
6
|
import { assertEquals } from "../assert_equals-Dnj7ejjL.js";
|
7
|
-
import "../assert-YJk-1DlZ.js";
|
7
|
+
import { assert } from "../assert-YJk-1DlZ.js";
|
8
8
|
import { assertInstanceOf } from "../assert_instance_of-DBIoG5k7.js";
|
9
|
-
import "../docloader-
|
9
|
+
import "../docloader-DxTy1bGA.js";
|
10
10
|
import "../url-kTAI6_KP.js";
|
11
11
|
import { decode } from "../multibase-DeCHcK8L.js";
|
12
|
-
import { Activity, Announce, Create, CryptographicKey, Follow, Hashtag, Note, Object as Object$1, OrderedCollectionPage, Person, Place, Source, vocab_exports } from "../vocab-
|
12
|
+
import { Activity, Announce, Create, CryptographicKey, Follow, Hashtag, Note, Object as Object$1, OrderedCollectionPage, Person, Place, Question, Source, vocab_exports } from "../vocab-BrWaMp7c.js";
|
13
13
|
import { LanguageString } from "../langstr-DbWheeIS.js";
|
14
14
|
import { test } from "../testing-BZ0dJ4qn.js";
|
15
15
|
import "../std__assert-CHXwj7zk.js";
|
@@ -18,7 +18,7 @@ import "../assert_is_error-jyzqjHud.js";
|
|
18
18
|
import { assertNotEquals } from "../assert_not_equals-wx-SRs4i.js";
|
19
19
|
import { assertThrows } from "../assert_throws-gBPv3v2V.js";
|
20
20
|
import { mockDocumentLoader } from "../docloader-09nVWLAZ.js";
|
21
|
-
import { ed25519PublicKey, rsaPublicKey1 } from "../keys-
|
21
|
+
import { ed25519PublicKey, rsaPublicKey1 } from "../keys-CfOe8IKQ.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";
|
@@ -2783,6 +2783,13 @@ test("Activity.clone()", async () => {
|
|
2783
2783
|
summaries: ["plural"]
|
2784
2784
|
}), TypeError, "Cannot update both summary and summaries at the same time.");
|
2785
2785
|
});
|
2786
|
+
test("Question.voters", async () => {
|
2787
|
+
const question = new Question({ voters: 123 });
|
2788
|
+
const json = await question.toJsonLd({ format: "compact" });
|
2789
|
+
assert(typeof json === "object" && json != null);
|
2790
|
+
assert("votersCount" in json);
|
2791
|
+
assertEquals(json["votersCount"], 123);
|
2792
|
+
});
|
2786
2793
|
test({
|
2787
2794
|
name: "Deno.inspect(Object)",
|
2788
2795
|
ignore: !("Deno" in globalThis),
|