@fedify/fedify 1.7.0 → 1.7.2
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-DTfguoCb.js → actor-C_sd2LSx.js} +199 -184
- package/dist/{actor-DeIuzQxq.js → actor-kNI1Kuu5.js} +3 -3
- package/dist/{assert-YJk-1DlZ.js → assert-0DSnLFa8.js} +1 -1
- package/dist/{assert_equals-Dnj7ejjL.js → assert_equals-XhPMqqO2.js} +19 -7
- package/dist/{assert_instance_of-DBIoG5k7.js → assert_instance_of-v5adm_-K.js} +1 -1
- package/dist/{assert_is_error-jyzqjHud.js → assert_is_error-Drwb_yQp.js} +1 -1
- package/dist/{assert_not_equals-wx-SRs4i.js → assert_not_equals-BRPdeJ9D.js} +1 -1
- package/dist/{assert_rejects-BZjUwo62.js → assert_rejects-D_nYI1gs.js} +2 -2
- package/dist/{assert_throws-gBPv3v2V.js → assert_throws-DNuPhPNp.js} +2 -2
- package/dist/{authdocloader-BEp8lEDb.js → authdocloader-B6BfM9cL.js} +3 -3
- package/dist/{authdocloader-D70SfymB.js → authdocloader-if5ggdqv.js} +3 -3
- package/dist/{builder-J9iFzZzN.js → builder-BfWHOJkZ.js} +3 -3
- package/dist/{client-Zr00-i3d.js → client-BiG9LrWB.js} +1 -1
- package/dist/compat/transformers.test.js +20 -20
- package/dist/{context-Bs34sOF6.js → context-lMHWYYW2.js} +2 -2
- package/dist/{docloader-Cg1VPpKf.js → docloader-Y76fz1QR.js} +1 -1
- package/dist/{docloader-CoPL1xCC.js → docloader-ps0DMWjv.js} +1 -1
- package/dist/federation/builder.test.js +12 -12
- package/dist/federation/collection.test.js +8 -8
- package/dist/federation/handler.test.js +31 -28
- package/dist/federation/inbox.test.js +6 -6
- package/dist/federation/keycache.test.js +6 -6
- package/dist/federation/kv.test.js +8 -8
- package/dist/federation/middleware.test.js +26 -26
- package/dist/federation/mod.js +10 -10
- package/dist/federation/mq.test.js +8 -8
- package/dist/federation/retry.test.js +2 -2
- package/dist/federation/router.test.js +8 -8
- package/dist/federation/send.test.js +17 -17
- package/dist/{http-D4ufSjCD.js → http-D2kxx0MM.js} +22 -8
- package/dist/{http-BTqtnecF.js → http-xny2jgU9.js} +22 -8
- package/dist/{inbox-BLGI5mWd.js → inbox-DYa89dK3.js} +2 -2
- package/dist/{key-CWTlZkYV.js → key-B--oybmj.js} +3 -3
- package/dist/{key-B0tlgo53.js → key-C4ZA8dqv.js} +2 -2
- package/dist/{key-CCfpdutM.js → key-CW6VucYV.js} +4 -4
- package/dist/{key-CJGEHNGN.js → key-CbN6XqfG.js} +5 -5
- package/dist/{keycache-D4rAVXOS.js → keycache-B3XsWKuN.js} +1 -1
- package/dist/{keys-cySMuiGu.js → keys-CSt26-hj.js} +1 -1
- package/dist/{ld-ecZJerZ8.js → ld-liCYh9NF.js} +3 -3
- package/dist/{lookup-BLCwJTxi.js → lookup-154aM5KD.js} +1 -1
- package/dist/{lookup-CX4qjAss.js → lookup-QgCHmE_h.js} +1 -1
- package/dist/{lookup-Cbwww1Nk.js → lookup-UHy_h_Ub.js} +3 -3
- package/dist/{middleware-CUrRKWpM.js → middleware-BeTfacPC.js} +10 -10
- package/dist/{middleware-rvM2CNtG.js → middleware-CfHPRgJ8.js} +15 -15
- package/dist/middleware-DLfV8p8d.js +17 -0
- package/dist/middleware-qG5pwbUh.js +33 -0
- package/dist/mod.js +10 -10
- package/dist/nodeinfo/client.test.js +10 -10
- package/dist/nodeinfo/handler.test.js +26 -26
- package/dist/nodeinfo/mod.js +2 -2
- package/dist/nodeinfo/semver.test.js +8 -8
- package/dist/nodeinfo/types.test.js +8 -8
- package/dist/{owner-BSmRd_IH.js → owner-CrtnBHX7.js} +3 -3
- package/dist/{proof-R84z_lDC.js → proof-DPvYSJvz.js} +3 -3
- package/dist/{proof-CkXiUJfu.js → proof-JaQW7dZG.js} +3 -3
- package/dist/runtime/authdocloader.test.js +16 -16
- package/dist/runtime/docloader.test.js +9 -9
- package/dist/runtime/key.test.js +13 -13
- package/dist/runtime/langstr.test.js +8 -8
- package/dist/runtime/mod.js +6 -6
- package/dist/runtime/multibase/multibase.test.js +8 -8
- package/dist/runtime/url.test.js +4 -4
- package/dist/{send-DrxpWl1q.js → send-BHD0sfF3.js} +2 -2
- package/dist/sig/http.test.js +43 -15
- package/dist/sig/key.test.js +14 -14
- package/dist/sig/ld.test.js +12 -12
- 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-CHXwj7zk.js → std__assert-CmyZxqPw.js} +1 -1
- package/dist/testing/docloader.test.js +8 -8
- package/dist/{types-DfKof1zg.js → types-kUNFKQc-.js} +1 -1
- package/dist/vocab/actor.test.js +13 -13
- 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 +12 -12
- package/dist/vocab/mod.js +4 -4
- package/dist/vocab/question.yaml +3 -1
- package/dist/vocab/type.test.js +3 -3
- package/dist/vocab/update.yaml +3 -1
- package/dist/vocab/vocab.test.js +32 -29
- package/dist/{vocab-CkD4jwmV.js → vocab-B-3Rb7jH.js} +199 -184
- package/dist/{vocab-BwnH7Mra.js → vocab-DZnMWLHx.js} +3 -3
- package/dist/webfinger/handler.test.js +26 -26
- package/dist/webfinger/lookup.test.js +10 -10
- package/dist/webfinger/mod.js +2 -2
- package/dist/x/cfworkers.test.js +8 -8
- package/package.json +1 -1
- package/dist/middleware-D6StExQX.js +0 -17
- package/dist/middleware-UQpFubxd.js +0 -33
package/dist/sig/proof.test.js
CHANGED
@@ -3,27 +3,27 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import { assertEquals } from "../assert_equals-
|
7
|
-
import "../assert-
|
8
|
-
import { assertInstanceOf } from "../assert_instance_of-
|
9
|
-
import "../docloader-
|
6
|
+
import { assertEquals } from "../assert_equals-XhPMqqO2.js";
|
7
|
+
import "../assert-0DSnLFa8.js";
|
8
|
+
import { assertInstanceOf } from "../assert_instance_of-v5adm_-K.js";
|
9
|
+
import "../docloader-Y76fz1QR.js";
|
10
10
|
import "../url-kTAI6_KP.js";
|
11
11
|
import { decode } from "../multibase-DeCHcK8L.js";
|
12
|
-
import { Create, DataIntegrityProof, Multikey, Note, Place, importMultibaseKey } from "../vocab-
|
12
|
+
import { Create, DataIntegrityProof, Multikey, Note, Place, importMultibaseKey } from "../vocab-B-3Rb7jH.js";
|
13
13
|
import "../langstr-DbWheeIS.js";
|
14
|
-
import "../lookup-
|
14
|
+
import "../lookup-QgCHmE_h.js";
|
15
15
|
import "../type-D2s5lmbZ.js";
|
16
|
-
import "../actor-
|
17
|
-
import "../key-
|
18
|
-
import { createProof, signObject, verifyObject, verifyProof } from "../proof-
|
16
|
+
import "../actor-kNI1Kuu5.js";
|
17
|
+
import "../key-B--oybmj.js";
|
18
|
+
import { createProof, signObject, verifyObject, verifyProof } from "../proof-JaQW7dZG.js";
|
19
19
|
import { test } from "../testing-BZ0dJ4qn.js";
|
20
|
-
import "../std__assert-
|
21
|
-
import { assertRejects } from "../assert_rejects-
|
22
|
-
import "../assert_is_error-
|
23
|
-
import "../assert_not_equals-
|
24
|
-
import "../assert_throws-
|
20
|
+
import "../std__assert-CmyZxqPw.js";
|
21
|
+
import { assertRejects } from "../assert_rejects-D_nYI1gs.js";
|
22
|
+
import "../assert_is_error-Drwb_yQp.js";
|
23
|
+
import "../assert_not_equals-BRPdeJ9D.js";
|
24
|
+
import "../assert_throws-DNuPhPNp.js";
|
25
25
|
import { mockDocumentLoader } from "../docloader-09nVWLAZ.js";
|
26
|
-
import { ed25519Multikey, ed25519PrivateKey, ed25519PublicKey, rsaPrivateKey2, rsaPublicKey2 } from "../keys-
|
26
|
+
import { ed25519Multikey, ed25519PrivateKey, ed25519PublicKey, rsaPrivateKey2, rsaPublicKey2 } from "../keys-CSt26-hj.js";
|
27
27
|
import { decodeHex, encodeHex } from "byte-encodings/hex";
|
28
28
|
|
29
29
|
//#region sig/proof.test.ts
|
@@ -63,7 +63,7 @@ test("createProof()", async () => {
|
|
63
63
|
assertEquals(proof.verificationMethodId, ed25519PublicKey.id);
|
64
64
|
assertEquals(proof.proofPurpose, "assertionMethod");
|
65
65
|
console.log(encodeHex(proof.proofValue));
|
66
|
-
assertEquals(proof.proofValue, decodeHex("
|
66
|
+
assertEquals(proof.proofValue, decodeHex("203e6afc5b7c6affe08d2d67ad100cc6cdcf1f5a438063d16766204956aa8fdd67cc04088ccf69de36225cab19377b5a032542fd2454b9b9dd001ffbdef5aa03"));
|
67
67
|
assertEquals(proof.created, created);
|
68
68
|
assertEquals(await verifyProof(await create.toJsonLd({
|
69
69
|
format: "compact",
|
@@ -3,7 +3,7 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import { AssertionError, buildMessage, diff, diffStr, format, red } from "./assert_equals-
|
6
|
+
import { AssertionError, buildMessage, diff, diffStr, format, red } from "./assert_equals-XhPMqqO2.js";
|
7
7
|
|
8
8
|
//#region node_modules/.pnpm/@jsr+std__assert@0.226.0/node_modules/@jsr/std__assert/assert_exists.js
|
9
9
|
/**
|
@@ -3,15 +3,15 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import { assertEquals } from "../assert_equals-
|
7
|
-
import "../assert-
|
8
|
-
import "../assert_instance_of-
|
6
|
+
import { assertEquals } from "../assert_equals-XhPMqqO2.js";
|
7
|
+
import "../assert-0DSnLFa8.js";
|
8
|
+
import "../assert_instance_of-v5adm_-K.js";
|
9
9
|
import { test } from "../testing-BZ0dJ4qn.js";
|
10
|
-
import "../std__assert-
|
11
|
-
import "../assert_rejects-
|
12
|
-
import "../assert_is_error-
|
13
|
-
import "../assert_not_equals-
|
14
|
-
import "../assert_throws-
|
10
|
+
import "../std__assert-CmyZxqPw.js";
|
11
|
+
import "../assert_rejects-D_nYI1gs.js";
|
12
|
+
import "../assert_is_error-Drwb_yQp.js";
|
13
|
+
import "../assert_not_equals-BRPdeJ9D.js";
|
14
|
+
import "../assert_throws-DNuPhPNp.js";
|
15
15
|
import { mockDocumentLoader } from "../docloader-09nVWLAZ.js";
|
16
16
|
|
17
17
|
//#region testing/docloader.test.ts
|
@@ -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-ps0DMWjv.js";
|
6
6
|
import { getLogger } from "@logtape/logtape";
|
7
7
|
|
8
8
|
//#region nodeinfo/semver.ts
|
package/dist/vocab/actor.test.js
CHANGED
@@ -4,23 +4,23 @@
|
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
6
|
import { __export } from "../chunk-HsBuZ-b2.js";
|
7
|
-
import { assertEquals } from "../assert_equals-
|
8
|
-
import { assert } from "../assert-
|
9
|
-
import "../assert_instance_of-
|
10
|
-
import "../docloader-
|
7
|
+
import { assertEquals } from "../assert_equals-XhPMqqO2.js";
|
8
|
+
import { assert } from "../assert-0DSnLFa8.js";
|
9
|
+
import "../assert_instance_of-v5adm_-K.js";
|
10
|
+
import "../docloader-Y76fz1QR.js";
|
11
11
|
import "../url-kTAI6_KP.js";
|
12
12
|
import "../multibase-DeCHcK8L.js";
|
13
|
-
import { Application, Group, Organization, Person, Service } from "../vocab-
|
13
|
+
import { Application, Group, Organization, Person, Service } from "../vocab-B-3Rb7jH.js";
|
14
14
|
import "../langstr-DbWheeIS.js";
|
15
|
-
import "../lookup-
|
15
|
+
import "../lookup-QgCHmE_h.js";
|
16
16
|
import "../type-D2s5lmbZ.js";
|
17
|
-
import { getActorClassByTypeName, getActorHandle, getActorTypeName, isActor, normalizeActorHandle } from "../actor-
|
17
|
+
import { getActorClassByTypeName, getActorHandle, getActorTypeName, isActor, normalizeActorHandle } from "../actor-kNI1Kuu5.js";
|
18
18
|
import { test } from "../testing-BZ0dJ4qn.js";
|
19
|
-
import { assertStrictEquals } from "../std__assert-
|
20
|
-
import { assertFalse, assertRejects } from "../assert_rejects-
|
21
|
-
import "../assert_is_error-
|
22
|
-
import "../assert_not_equals-
|
23
|
-
import { assertThrows } from "../assert_throws-
|
19
|
+
import { assertStrictEquals } from "../std__assert-CmyZxqPw.js";
|
20
|
+
import { assertFalse, assertRejects } from "../assert_rejects-D_nYI1gs.js";
|
21
|
+
import "../assert_is_error-Drwb_yQp.js";
|
22
|
+
import "../assert_not_equals-BRPdeJ9D.js";
|
23
|
+
import { assertThrows } from "../assert_throws-DNuPhPNp.js";
|
24
24
|
import { esm_default } from "../esm-CASHO3OR.js";
|
25
25
|
|
26
26
|
//#region node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/precondition/PreconditionFailure.js
|
@@ -5385,7 +5385,7 @@ const safePositiveInfinity = Number.POSITIVE_INFINITY;
|
|
5385
5385
|
const safeNaN = NaN;
|
5386
5386
|
function safeFloatToIndex(f, constraintsLabel) {
|
5387
5387
|
const conversionTrick = "you can convert any double to a 32-bit float by using `Math.fround(myDouble)`";
|
5388
|
-
const errorMessage = "fc.float constraints." + constraintsLabel + " must be a 32-bit float -
|
5388
|
+
const errorMessage = "fc.float constraints." + constraintsLabel + " must be a 32-bit float - you can convert any double to a 32-bit float by using `Math.fround(myDouble)`";
|
5389
5389
|
if (safeNumberIsNaN(f) || safeMathFround(f) !== f) throw new Error(errorMessage);
|
5390
5390
|
return floatToIndex(f);
|
5391
5391
|
}
|
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"
|
@@ -3,23 +3,23 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import { assertEquals } from "../assert_equals-
|
7
|
-
import "../assert-
|
8
|
-
import { assertInstanceOf } from "../assert_instance_of-
|
9
|
-
import "../docloader-
|
6
|
+
import { assertEquals } from "../assert_equals-XhPMqqO2.js";
|
7
|
+
import "../assert-0DSnLFa8.js";
|
8
|
+
import { assertInstanceOf } from "../assert_instance_of-v5adm_-K.js";
|
9
|
+
import "../docloader-Y76fz1QR.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-B-3Rb7jH.js";
|
13
13
|
import "../langstr-DbWheeIS.js";
|
14
|
-
import "../lookup-
|
14
|
+
import "../lookup-QgCHmE_h.js";
|
15
15
|
import "../type-D2s5lmbZ.js";
|
16
|
-
import { lookupObject, traverseCollection } from "../lookup-
|
16
|
+
import { lookupObject, traverseCollection } from "../lookup-UHy_h_Ub.js";
|
17
17
|
import { test } from "../testing-BZ0dJ4qn.js";
|
18
|
-
import "../std__assert-
|
19
|
-
import "../assert_rejects-
|
20
|
-
import "../assert_is_error-
|
21
|
-
import "../assert_not_equals-
|
22
|
-
import "../assert_throws-
|
18
|
+
import "../std__assert-CmyZxqPw.js";
|
19
|
+
import "../assert_rejects-D_nYI1gs.js";
|
20
|
+
import "../assert_is_error-Drwb_yQp.js";
|
21
|
+
import "../assert_not_equals-BRPdeJ9D.js";
|
22
|
+
import "../assert_throws-DNuPhPNp.js";
|
23
23
|
import { mockDocumentLoader } from "../docloader-09nVWLAZ.js";
|
24
24
|
import { esm_default } from "../esm-CASHO3OR.js";
|
25
25
|
|
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-ps0DMWjv.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-C_sd2LSx.js";
|
7
|
+
import "../lookup-154aM5KD.js";
|
8
|
+
import { PUBLIC_COLLECTION, lookupObject, traverseCollection } from "../vocab-DZnMWLHx.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
@@ -3,11 +3,11 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import { assertEquals } from "../assert_equals-
|
7
|
-
import "../docloader-
|
6
|
+
import { assertEquals } from "../assert_equals-XhPMqqO2.js";
|
7
|
+
import "../docloader-Y76fz1QR.js";
|
8
8
|
import "../url-kTAI6_KP.js";
|
9
9
|
import "../multibase-DeCHcK8L.js";
|
10
|
-
import { Person } from "../vocab-
|
10
|
+
import { Person } from "../vocab-B-3Rb7jH.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
@@ -3,39 +3,35 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import { assertEquals } from "../assert_equals-
|
7
|
-
import "../assert-
|
8
|
-
import { assertInstanceOf } from "../assert_instance_of-
|
9
|
-
import "../docloader-
|
6
|
+
import { assertEquals, isWindows } from "../assert_equals-XhPMqqO2.js";
|
7
|
+
import { assert } from "../assert-0DSnLFa8.js";
|
8
|
+
import { assertInstanceOf } from "../assert_instance_of-v5adm_-K.js";
|
9
|
+
import "../docloader-Y76fz1QR.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-B-3Rb7jH.js";
|
13
13
|
import { LanguageString } from "../langstr-DbWheeIS.js";
|
14
14
|
import { test } from "../testing-BZ0dJ4qn.js";
|
15
|
-
import "../std__assert-
|
16
|
-
import { assertFalse, assertRejects } from "../assert_rejects-
|
17
|
-
import "../assert_is_error-
|
18
|
-
import { assertNotEquals } from "../assert_not_equals-
|
19
|
-
import { assertThrows } from "../assert_throws-
|
15
|
+
import "../std__assert-CmyZxqPw.js";
|
16
|
+
import { assertFalse, assertRejects } from "../assert_rejects-D_nYI1gs.js";
|
17
|
+
import "../assert_is_error-Drwb_yQp.js";
|
18
|
+
import { assertNotEquals } from "../assert_not_equals-BRPdeJ9D.js";
|
19
|
+
import { assertThrows } from "../assert_throws-DNuPhPNp.js";
|
20
20
|
import { mockDocumentLoader } from "../docloader-09nVWLAZ.js";
|
21
|
-
import { ed25519PublicKey, rsaPublicKey1 } from "../keys-
|
21
|
+
import { ed25519PublicKey, rsaPublicKey1 } from "../keys-CSt26-hj.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";
|
25
25
|
import { readFile, readdir } from "node:fs/promises";
|
26
26
|
import { join } from "node:path";
|
27
27
|
|
28
|
-
//#region node_modules/.pnpm/@jsr+std__path@1.1.
|
29
|
-
const isWindows = globalThis.Deno?.build.os === "windows" || globalThis.navigator?.platform?.startsWith("Win") || globalThis.process?.platform?.startsWith("win") || false;
|
30
|
-
|
31
|
-
//#endregion
|
32
|
-
//#region node_modules/.pnpm/@jsr+std__path@1.1.0/node_modules/@jsr/std__path/_common/assert_path.js
|
28
|
+
//#region node_modules/.pnpm/@jsr+std__path@1.1.1/node_modules/@jsr/std__path/_common/assert_path.js
|
33
29
|
function assertPath(path) {
|
34
30
|
if (typeof path !== "string") throw new TypeError(`Path must be a string, received "${JSON.stringify(path)}"`);
|
35
31
|
}
|
36
32
|
|
37
33
|
//#endregion
|
38
|
-
//#region node_modules/.pnpm/@jsr+std__path@1.1.
|
34
|
+
//#region node_modules/.pnpm/@jsr+std__path@1.1.1/node_modules/@jsr/std__path/_common/from_file_url.js
|
39
35
|
function assertArg$2(url) {
|
40
36
|
url = url instanceof URL ? url : new URL(url);
|
41
37
|
if (url.protocol !== "file:") throw new TypeError(`URL must be a file URL: received "${url.protocol}"`);
|
@@ -43,7 +39,7 @@ function assertArg$2(url) {
|
|
43
39
|
}
|
44
40
|
|
45
41
|
//#endregion
|
46
|
-
//#region node_modules/.pnpm/@jsr+std__path@1.1.
|
42
|
+
//#region node_modules/.pnpm/@jsr+std__path@1.1.1/node_modules/@jsr/std__path/posix/from_file_url.js
|
47
43
|
/**
|
48
44
|
* Converts a file URL to a path string.
|
49
45
|
*
|
@@ -63,7 +59,7 @@ function assertArg$2(url) {
|
|
63
59
|
}
|
64
60
|
|
65
61
|
//#endregion
|
66
|
-
//#region node_modules/.pnpm/@jsr+std__path@1.1.
|
62
|
+
//#region node_modules/.pnpm/@jsr+std__path@1.1.1/node_modules/@jsr/std__path/_common/strip_trailing_separators.js
|
67
63
|
function stripTrailingSeparators(segment, isSep) {
|
68
64
|
if (segment.length <= 1) return segment;
|
69
65
|
let end = segment.length;
|
@@ -73,18 +69,18 @@ function stripTrailingSeparators(segment, isSep) {
|
|
73
69
|
}
|
74
70
|
|
75
71
|
//#endregion
|
76
|
-
//#region node_modules/.pnpm/@jsr+std__path@1.1.
|
72
|
+
//#region node_modules/.pnpm/@jsr+std__path@1.1.1/node_modules/@jsr/std__path/_common/constants.js
|
77
73
|
const CHAR_DOT = 46;
|
78
74
|
const CHAR_FORWARD_SLASH = 47;
|
79
75
|
|
80
76
|
//#endregion
|
81
|
-
//#region node_modules/.pnpm/@jsr+std__path@1.1.
|
77
|
+
//#region node_modules/.pnpm/@jsr+std__path@1.1.1/node_modules/@jsr/std__path/posix/_util.js
|
82
78
|
function isPosixPathSeparator(code) {
|
83
79
|
return code === CHAR_FORWARD_SLASH;
|
84
80
|
}
|
85
81
|
|
86
82
|
//#endregion
|
87
|
-
//#region node_modules/.pnpm/@jsr+std__path@1.1.
|
83
|
+
//#region node_modules/.pnpm/@jsr+std__path@1.1.1/node_modules/@jsr/std__path/windows/from_file_url.js
|
88
84
|
/**
|
89
85
|
* Converts a file URL to a path string.
|
90
86
|
*
|
@@ -108,14 +104,14 @@ function isPosixPathSeparator(code) {
|
|
108
104
|
}
|
109
105
|
|
110
106
|
//#endregion
|
111
|
-
//#region node_modules/.pnpm/@jsr+std__path@1.1.
|
107
|
+
//#region node_modules/.pnpm/@jsr+std__path@1.1.1/node_modules/@jsr/std__path/_common/dirname.js
|
112
108
|
function assertArg$1(path) {
|
113
109
|
assertPath(path);
|
114
110
|
if (path.length === 0) return ".";
|
115
111
|
}
|
116
112
|
|
117
113
|
//#endregion
|
118
|
-
//#region node_modules/.pnpm/@jsr+std__path@1.1.
|
114
|
+
//#region node_modules/.pnpm/@jsr+std__path@1.1.1/node_modules/@jsr/std__path/posix/dirname.js
|
119
115
|
/**
|
120
116
|
* Return the directory path of a `path`.
|
121
117
|
*
|
@@ -159,7 +155,7 @@ function assertArg$1(path) {
|
|
159
155
|
}
|
160
156
|
|
161
157
|
//#endregion
|
162
|
-
//#region node_modules/.pnpm/@jsr+std__path@1.1.
|
158
|
+
//#region node_modules/.pnpm/@jsr+std__path@1.1.1/node_modules/@jsr/std__path/from_file_url.js
|
163
159
|
/**
|
164
160
|
* Converts a file URL to a path string.
|
165
161
|
*
|
@@ -184,14 +180,14 @@ function assertArg$1(path) {
|
|
184
180
|
}
|
185
181
|
|
186
182
|
//#endregion
|
187
|
-
//#region node_modules/.pnpm/@jsr+std__path@1.1.
|
183
|
+
//#region node_modules/.pnpm/@jsr+std__path@1.1.1/node_modules/@jsr/std__path/_common/normalize.js
|
188
184
|
function assertArg(path) {
|
189
185
|
assertPath(path);
|
190
186
|
if (path.length === 0) return ".";
|
191
187
|
}
|
192
188
|
|
193
189
|
//#endregion
|
194
|
-
//#region node_modules/.pnpm/@jsr+std__path@1.1.
|
190
|
+
//#region node_modules/.pnpm/@jsr+std__path@1.1.1/node_modules/@jsr/std__path/_common/normalize_string.js
|
195
191
|
function normalizeString(path, allowAboveRoot, separator, isPathSeparator) {
|
196
192
|
let res = "";
|
197
193
|
let lastSegmentLength = 0;
|
@@ -244,7 +240,7 @@ function normalizeString(path, allowAboveRoot, separator, isPathSeparator) {
|
|
244
240
|
}
|
245
241
|
|
246
242
|
//#endregion
|
247
|
-
//#region node_modules/.pnpm/@jsr+std__path@1.1.
|
243
|
+
//#region node_modules/.pnpm/@jsr+std__path@1.1.1/node_modules/@jsr/std__path/posix/normalize.js
|
248
244
|
/**
|
249
245
|
* Normalize the `path`, resolving `'..'` and `'.'` segments.
|
250
246
|
* Note that resolving these segments does not necessarily mean that all will be eliminated.
|
@@ -292,7 +288,7 @@ function normalizeString(path, allowAboveRoot, separator, isPathSeparator) {
|
|
292
288
|
}
|
293
289
|
|
294
290
|
//#endregion
|
295
|
-
//#region node_modules/.pnpm/@jsr+std__path@1.1.
|
291
|
+
//#region node_modules/.pnpm/@jsr+std__path@1.1.1/node_modules/@jsr/std__path/posix/join.js
|
296
292
|
/**
|
297
293
|
* Join all given a sequence of `paths`,then normalizes the resulting path.
|
298
294
|
*
|
@@ -2783,6 +2779,13 @@ test("Activity.clone()", async () => {
|
|
2783
2779
|
summaries: ["plural"]
|
2784
2780
|
}), TypeError, "Cannot update both summary and summaries at the same time.");
|
2785
2781
|
});
|
2782
|
+
test("Question.voters", async () => {
|
2783
|
+
const question = new Question({ voters: 123 });
|
2784
|
+
const json = await question.toJsonLd({ format: "compact" });
|
2785
|
+
assert(typeof json === "object" && json != null);
|
2786
|
+
assert("votersCount" in json);
|
2787
|
+
assertEquals(json["votersCount"], 123);
|
2788
|
+
});
|
2786
2789
|
test({
|
2787
2790
|
name: "Deno.inspect(Object)",
|
2788
2791
|
ignore: !("Deno" in globalThis),
|