@fedify/fedify 1.6.2 → 1.6.4
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-BMhjtSSP.js → actor-BfzxE2QN.js} +199 -184
- package/dist/{actor-sID3ZxDC.js → actor-CHPy3MD6.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-Cx832_tB.js → authdocloader-8yB-xGBR.js} +3 -3
- package/dist/{authdocloader-C0NAukol.js → authdocloader-qBxZEEi9.js} +3 -3
- package/dist/{builder-D3RO7FNo.js → builder-NApTRrpC.js} +3 -3
- package/dist/{client-C41u40q8.js → client-DFAp6PBu.js} +2 -2
- package/dist/compat/transformers.test.js +23 -23
- package/dist/{context-BJas1P69.js → context-DPm_2m4V.js} +2 -2
- package/dist/{docloader-sQOhKEBJ.js → docloader-BGQB_PFT.js} +1 -1
- package/dist/{docloader-BvrnWgo_.js → docloader-Chzwgszm.js} +1 -1
- package/dist/{esm-e_d5TL5c.js → esm-CASHO3OR.js} +2 -2
- package/dist/federation/builder.test.js +14 -14
- package/dist/federation/collection.test.js +9 -9
- package/dist/federation/handler.test.js +34 -31
- package/dist/federation/inbox.test.js +7 -7
- package/dist/federation/keycache.test.js +7 -7
- package/dist/federation/kv.test.js +9 -9
- package/dist/federation/middleware.test.js +31 -31
- package/dist/federation/mod.js +10 -10
- package/dist/federation/mq.test.js +9 -9
- package/dist/federation/retry.test.js +3 -3
- package/dist/federation/router.test.js +9 -9
- package/dist/federation/send.test.js +19 -19
- package/dist/{http-Bg69S5M3.js → http-CoPwpYGd.js} +22 -8
- package/dist/{http-CRixLRRg.js → http-DJcO8N65.js} +22 -8
- package/dist/{inbox-DOqV2pzD.js → inbox-CL7Y2POM.js} +2 -2
- package/dist/{key-C165LPcE.js → key-5iwxfdk7.js} +3 -3
- package/dist/{key-MStTavXZ.js → key-BQEmzABV.js} +4 -4
- package/dist/{key-B8GvtVuo.js → key-dki_alWE.js} +5 -5
- package/dist/{key-CjznLZb-.js → key-vNs-KWCR.js} +2 -2
- package/dist/{keycache-B1a4V1bo.js → keycache-oIWQCIss.js} +1 -1
- package/dist/{keys-ClfspZmG.js → keys-BF9Wnizj.js} +1 -1
- package/dist/{ld-Bgne7jyu.js → ld-Bro1OUaC.js} +3 -3
- package/dist/{lookup-bR-W7dO1.js → lookup-BE2D88-F.js} +1 -1
- package/dist/{lookup-Cj7hv3cS.js → lookup-BNZr2r1q.js} +3 -3
- package/dist/{lookup-BfzH97Bi.js → lookup-DVLRiy-x.js} +1 -1
- package/dist/middleware-30sYf6H-.js +17 -0
- package/dist/{middleware-Cc1LwuPX.js → middleware-BoJeFg8A.js} +16 -16
- package/dist/{middleware-Cth2CRY9.js → middleware-DIMI9i2M.js} +10 -10
- package/dist/middleware-DvIti4UE.js +33 -0
- package/dist/mod.js +10 -10
- package/dist/nodeinfo/client.test.js +13 -13
- package/dist/nodeinfo/handler.test.js +29 -29
- package/dist/nodeinfo/mod.js +2 -2
- package/dist/nodeinfo/semver.test.js +10 -10
- package/dist/nodeinfo/types.test.js +11 -11
- package/dist/{owner-BwbNQA42.js → owner-B5psHPX0.js} +3 -3
- package/dist/{proof-VM7AiB-j.js → proof-Bxho-Eev.js} +3 -3
- package/dist/{proof-D8juaMAC.js → proof-Ck9qUTzW.js} +3 -3
- package/dist/runtime/authdocloader.test.js +18 -18
- package/dist/runtime/docloader.test.js +11 -11
- package/dist/runtime/key.test.js +14 -14
- package/dist/runtime/langstr.test.js +9 -9
- package/dist/runtime/mod.js +6 -6
- package/dist/runtime/multibase/multibase.test.js +9 -9
- package/dist/runtime/url.test.js +5 -5
- package/dist/{semver-CbbIgUsa.js → semver-DWClQt_5.js} +2 -2
- package/dist/{send-E1bEkesZ.js → send-D4-hN_vq.js} +2 -2
- package/dist/sig/http.test.js +51 -23
- package/dist/sig/key.test.js +15 -15
- package/dist/sig/ld.test.js +13 -13
- package/dist/sig/mod.js +6 -6
- package/dist/sig/owner.test.js +17 -17
- package/dist/sig/proof.test.js +17 -17
- package/dist/{std__assert-CHXwj7zk.js → std__assert-CmyZxqPw.js} +1 -1
- package/dist/testing/docloader.test.js +9 -9
- package/dist/testing/mod.js +1 -1
- package/dist/{testing-jcGLO9Lp.js → testing-BZ0dJ4qn.js} +1 -1
- package/dist/{types-CIrnA1uA.js → types-BaxpHQDE.js} +3 -3
- package/dist/{types-CqoqWDkp.js → types-C7C_l-jz.js} +1 -1
- package/dist/vocab/actor.test.js +15 -15
- 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 +14 -14
- package/dist/vocab/mod.js +4 -4
- package/dist/vocab/question.yaml +3 -1
- package/dist/vocab/type.test.js +4 -4
- package/dist/vocab/update.yaml +3 -1
- package/dist/vocab/vocab.test.js +37 -34
- package/dist/{vocab-DMwazFlI.js → vocab-Bcgf3ubZ.js} +3 -3
- package/dist/{vocab-BOhnfQ4Q.js → vocab-DrV5TQKL.js} +199 -184
- package/dist/webfinger/handler.test.js +29 -29
- package/dist/webfinger/lookup.test.js +12 -12
- package/dist/webfinger/mod.js +2 -2
- package/dist/x/cfworkers.test.js +9 -9
- package/package.json +1 -1
- package/dist/middleware-9potsc1r.js +0 -33
- package/dist/middleware-BfaA_Kfc.js +0 -17
package/dist/sig/http.test.js
CHANGED
@@ -3,28 +3,28 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import { assertEquals } from "../assert_equals-
|
7
|
-
import { assert } from "../assert-
|
8
|
-
import "../assert_instance_of-
|
9
|
-
import "../docloader-
|
6
|
+
import { assertEquals } from "../assert_equals-XhPMqqO2.js";
|
7
|
+
import { assert } from "../assert-0DSnLFa8.js";
|
8
|
+
import "../assert_instance_of-v5adm_-K.js";
|
9
|
+
import "../docloader-Chzwgszm.js";
|
10
10
|
import "../url-kTAI6_KP.js";
|
11
11
|
import "../multibase-DeCHcK8L.js";
|
12
|
-
import { exportSpki } from "../vocab-
|
12
|
+
import { exportSpki } from "../vocab-DrV5TQKL.js";
|
13
13
|
import "../langstr-DbWheeIS.js";
|
14
|
-
import "../lookup-
|
14
|
+
import "../lookup-BE2D88-F.js";
|
15
15
|
import "../type-D2s5lmbZ.js";
|
16
|
-
import "../actor-
|
17
|
-
import { exportJwk } from "../key-
|
18
|
-
import { createRfc9421SignatureBase, doubleKnock, formatRfc9421Signature, formatRfc9421SignatureParameters, parseRfc9421Signature, parseRfc9421SignatureInput, signRequest, timingSafeEqual, verifyRequest } from "../http-
|
19
|
-
import { test } from "../testing-
|
20
|
-
import { assertExists, assertStringIncludes } from "../std__assert-
|
21
|
-
import { assertFalse } from "../assert_rejects-
|
22
|
-
import "../assert_is_error-
|
23
|
-
import "../assert_not_equals-
|
24
|
-
import "../assert_throws-
|
16
|
+
import "../actor-CHPy3MD6.js";
|
17
|
+
import { exportJwk } from "../key-5iwxfdk7.js";
|
18
|
+
import { createRfc9421SignatureBase, doubleKnock, formatRfc9421Signature, formatRfc9421SignatureParameters, parseRfc9421Signature, parseRfc9421SignatureInput, signRequest, timingSafeEqual, verifyRequest } from "../http-DJcO8N65.js";
|
19
|
+
import { test } from "../testing-BZ0dJ4qn.js";
|
20
|
+
import { assertExists, assertStringIncludes } from "../std__assert-CmyZxqPw.js";
|
21
|
+
import { assertFalse } from "../assert_rejects-D_nYI1gs.js";
|
22
|
+
import "../assert_is_error-Drwb_yQp.js";
|
23
|
+
import "../assert_not_equals-BRPdeJ9D.js";
|
24
|
+
import { assertThrows } from "../assert_throws-DNuPhPNp.js";
|
25
25
|
import { mockDocumentLoader } from "../docloader-09nVWLAZ.js";
|
26
|
-
import { rsaPrivateKey2, rsaPublicKey1, rsaPublicKey2, rsaPublicKey5 } from "../keys-
|
27
|
-
import { esm_default } from "../esm-
|
26
|
+
import { rsaPrivateKey2, rsaPublicKey1, rsaPublicKey2, rsaPublicKey5 } from "../keys-BF9Wnizj.js";
|
27
|
+
import { esm_default } from "../esm-CASHO3OR.js";
|
28
28
|
import { encodeBase64 } from "byte-encodings/base64";
|
29
29
|
|
30
30
|
//#region sig/http.test.ts
|
@@ -325,7 +325,7 @@ test("verifyRequest() [rfc9421] successful GET verification", async () => {
|
|
325
325
|
contextLoader: mockDocumentLoader,
|
326
326
|
documentLoader: mockDocumentLoader,
|
327
327
|
spec: "rfc9421",
|
328
|
-
currentTime: Temporal.Instant.from(`${new Date(currentTimestamp * 1e3).toISOString()}`)
|
328
|
+
currentTime: Temporal.Instant.from(`${(/* @__PURE__ */ new Date(currentTimestamp * 1e3)).toISOString()}`)
|
329
329
|
});
|
330
330
|
assertEquals(verifiedKey, rsaPublicKey2, "Valid signature should verify to the correct public key");
|
331
331
|
});
|
@@ -449,7 +449,7 @@ test("verifyRequest() [rfc9421] error cases and edge cases", async () => {
|
|
449
449
|
contextLoader: mockDocumentLoader,
|
450
450
|
documentLoader: mockDocumentLoader,
|
451
451
|
spec: "rfc9421",
|
452
|
-
currentTime: Temporal.Instant.from(`${new Date((currentTimestamp + 2592e3) * 1e3).toISOString()}`),
|
452
|
+
currentTime: Temporal.Instant.from(`${(/* @__PURE__ */ new Date((currentTimestamp + 2592e3) * 1e3)).toISOString()}`),
|
453
453
|
timeWindow: { hours: 1 }
|
454
454
|
});
|
455
455
|
assertEquals(expiredResult, null, "Should fail verification when signature timestamp is too old");
|
@@ -467,7 +467,7 @@ test("verifyRequest() [rfc9421] error cases and edge cases", async () => {
|
|
467
467
|
contextLoader: mockDocumentLoader,
|
468
468
|
documentLoader: mockDocumentLoader,
|
469
469
|
spec: "rfc9421",
|
470
|
-
currentTime: Temporal.Instant.from(`${new Date((currentTimestamp - 2592e3) * 1e3).toISOString()}`),
|
470
|
+
currentTime: Temporal.Instant.from(`${(/* @__PURE__ */ new Date((currentTimestamp - 2592e3) * 1e3)).toISOString()}`),
|
471
471
|
timeWindow: { hours: 1 }
|
472
472
|
});
|
473
473
|
assertEquals(futureResult, null, "Should fail verification when signature timestamp is in the future");
|
@@ -485,7 +485,7 @@ test("verifyRequest() [rfc9421] error cases and edge cases", async () => {
|
|
485
485
|
contextLoader: mockDocumentLoader,
|
486
486
|
documentLoader: mockDocumentLoader,
|
487
487
|
spec: "rfc9421",
|
488
|
-
currentTime: Temporal.Instant.from(`${new Date((currentTimestamp + 31536e3) * 1e3).toISOString()}`),
|
488
|
+
currentTime: Temporal.Instant.from(`${(/* @__PURE__ */ new Date((currentTimestamp + 31536e3) * 1e3)).toISOString()}`),
|
489
489
|
timeWindow: false
|
490
490
|
});
|
491
491
|
assertEquals(timeDisabledResult, rsaPublicKey2, "Should verify signature when time checking is disabled");
|
@@ -522,7 +522,7 @@ test("verifyRequest() [rfc9421] error cases and edge cases", async () => {
|
|
522
522
|
contextLoader: mockDocumentLoader,
|
523
523
|
documentLoader: mockDocumentLoader,
|
524
524
|
spec: "rfc9421",
|
525
|
-
currentTime: Temporal.Instant.from(`${new Date(currentTimestamp * 1e3).toISOString()}`)
|
525
|
+
currentTime: Temporal.Instant.from(`${(/* @__PURE__ */ new Date(currentTimestamp * 1e3)).toISOString()}`)
|
526
526
|
});
|
527
527
|
assertEquals(tamperDigestResult, null, "Should fail verification with invalid Content-Digest");
|
528
528
|
const testRequest = new Request("https://example.com/", { headers: new Headers({
|
@@ -590,7 +590,7 @@ test("verifyRequest() [rfc9421] error cases and edge cases", async () => {
|
|
590
590
|
contextLoader: mockDocumentLoader,
|
591
591
|
documentLoader: mockDocumentLoader,
|
592
592
|
spec: "rfc9421",
|
593
|
-
currentTime: Temporal.Instant.from(`${new Date(currentTimestamp * 1e3).toISOString()}`)
|
593
|
+
currentTime: Temporal.Instant.from(`${(/* @__PURE__ */ new Date(currentTimestamp * 1e3)).toISOString()}`)
|
594
594
|
});
|
595
595
|
assertEquals(mixedResult, rsaPublicKey2, "Should verify when at least one signature is valid");
|
596
596
|
});
|
@@ -1106,5 +1106,33 @@ test("timingSafeEqual()", async (t) => {
|
|
1106
1106
|
});
|
1107
1107
|
});
|
1108
1108
|
});
|
1109
|
+
test("signRequest() [rfc9421] error handling for invalid signature base creation", async () => {
|
1110
|
+
const request = new Request("https://example.com/test", {
|
1111
|
+
method: "POST",
|
1112
|
+
body: "test body"
|
1113
|
+
});
|
1114
|
+
await assertThrows(() => {
|
1115
|
+
createRfc9421SignatureBase(request, ["@unsupported"], "alg=\"rsa-pss-sha256\";keyid=\"https://example.com/key2\";created=1234567890");
|
1116
|
+
}, Error, "Unsupported derived component: @unsupported");
|
1117
|
+
const signedRequest = await signRequest(request, rsaPrivateKey2, new URL("https://example.com/key2"), { spec: "rfc9421" });
|
1118
|
+
assertExists(signedRequest.headers.get("Signature-Input"));
|
1119
|
+
assertExists(signedRequest.headers.get("Signature"));
|
1120
|
+
});
|
1121
|
+
test("verifyRequest() [rfc9421] error handling for invalid signature base creation", async () => {
|
1122
|
+
const request = new Request("https://example.com/test", {
|
1123
|
+
method: "GET",
|
1124
|
+
headers: {
|
1125
|
+
"Accept": "application/json",
|
1126
|
+
"Signature-Input": "sig1=(\"@unsupported\");alg=\"rsa-pss-sha256\";keyid=\"https://example.com/key2\";created=1234567890",
|
1127
|
+
"Signature": "sig1=:invalid_signature_data:"
|
1128
|
+
}
|
1129
|
+
});
|
1130
|
+
const result = await verifyRequest(request, {
|
1131
|
+
spec: "rfc9421",
|
1132
|
+
documentLoader: mockDocumentLoader,
|
1133
|
+
contextLoader: mockDocumentLoader
|
1134
|
+
});
|
1135
|
+
assertEquals(result, null, "Verification should fail gracefully for malformed signature inputs");
|
1136
|
+
});
|
1109
1137
|
|
1110
1138
|
//#endregion
|
package/dist/sig/key.test.js
CHANGED
@@ -3,26 +3,26 @@
|
|
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-
|
9
|
-
import "../docloader-
|
6
|
+
import { assertEquals } from "../assert_equals-XhPMqqO2.js";
|
7
|
+
import "../assert-0DSnLFa8.js";
|
8
|
+
import "../assert_instance_of-v5adm_-K.js";
|
9
|
+
import "../docloader-Chzwgszm.js";
|
10
10
|
import "../url-kTAI6_KP.js";
|
11
11
|
import "../multibase-DeCHcK8L.js";
|
12
|
-
import { CryptographicKey, Multikey } from "../vocab-
|
12
|
+
import { CryptographicKey, Multikey } from "../vocab-DrV5TQKL.js";
|
13
13
|
import "../langstr-DbWheeIS.js";
|
14
|
-
import "../lookup-
|
14
|
+
import "../lookup-BE2D88-F.js";
|
15
15
|
import "../type-D2s5lmbZ.js";
|
16
|
-
import "../actor-
|
17
|
-
import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk, validateCryptoKey } from "../key-
|
18
|
-
import { test } from "../testing-
|
19
|
-
import "../std__assert-
|
20
|
-
import { assertRejects } from "../assert_rejects-
|
21
|
-
import "../assert_is_error-
|
22
|
-
import "../assert_not_equals-
|
23
|
-
import { assertThrows } from "../assert_throws-
|
16
|
+
import "../actor-CHPy3MD6.js";
|
17
|
+
import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk, validateCryptoKey } from "../key-5iwxfdk7.js";
|
18
|
+
import { test } from "../testing-BZ0dJ4qn.js";
|
19
|
+
import "../std__assert-CmyZxqPw.js";
|
20
|
+
import { 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 { mockDocumentLoader } from "../docloader-09nVWLAZ.js";
|
25
|
-
import { ed25519Multikey, rsaPrivateKey2, rsaPublicKey1, rsaPublicKey2, rsaPublicKey3 } from "../keys-
|
25
|
+
import { ed25519Multikey, rsaPrivateKey2, rsaPublicKey1, rsaPublicKey2, rsaPublicKey3 } from "../keys-BF9Wnizj.js";
|
26
26
|
|
27
27
|
//#region sig/key.test.ts
|
28
28
|
test("validateCryptoKey()", async () => {
|
package/dist/sig/ld.test.js
CHANGED
@@ -3,24 +3,24 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import { assertEquals } from "../assert_equals-
|
7
|
-
import { assert } from "../assert-
|
8
|
-
import "../docloader-
|
6
|
+
import { assertEquals } from "../assert_equals-XhPMqqO2.js";
|
7
|
+
import { assert } from "../assert-0DSnLFa8.js";
|
8
|
+
import "../docloader-Chzwgszm.js";
|
9
9
|
import "../url-kTAI6_KP.js";
|
10
10
|
import "../multibase-DeCHcK8L.js";
|
11
|
-
import { CryptographicKey } from "../vocab-
|
11
|
+
import { CryptographicKey } from "../vocab-DrV5TQKL.js";
|
12
12
|
import "../langstr-DbWheeIS.js";
|
13
|
-
import "../lookup-
|
13
|
+
import "../lookup-BE2D88-F.js";
|
14
14
|
import "../type-D2s5lmbZ.js";
|
15
|
-
import "../actor-
|
16
|
-
import { generateCryptoKeyPair } from "../key-
|
17
|
-
import { attachSignature, createSignature, detachSignature, signJsonLd, verifyJsonLd, verifySignature } from "../ld-
|
18
|
-
import { test } from "../testing-
|
19
|
-
import { assertFalse, assertRejects } from "../assert_rejects-
|
20
|
-
import "../assert_is_error-
|
21
|
-
import { assertThrows } from "../assert_throws-
|
15
|
+
import "../actor-CHPy3MD6.js";
|
16
|
+
import { generateCryptoKeyPair } from "../key-5iwxfdk7.js";
|
17
|
+
import { attachSignature, createSignature, detachSignature, signJsonLd, verifyJsonLd, verifySignature } from "../ld-Bro1OUaC.js";
|
18
|
+
import { test } from "../testing-BZ0dJ4qn.js";
|
19
|
+
import { assertFalse, assertRejects } from "../assert_rejects-D_nYI1gs.js";
|
20
|
+
import "../assert_is_error-Drwb_yQp.js";
|
21
|
+
import { assertThrows } from "../assert_throws-DNuPhPNp.js";
|
22
22
|
import { mockDocumentLoader } from "../docloader-09nVWLAZ.js";
|
23
|
-
import { ed25519Multikey, ed25519PrivateKey, rsaPrivateKey2, rsaPrivateKey3, rsaPublicKey2, rsaPublicKey3 } from "../keys-
|
23
|
+
import { ed25519Multikey, ed25519PrivateKey, rsaPrivateKey2, rsaPrivateKey3, rsaPublicKey2, rsaPublicKey3 } from "../keys-BF9Wnizj.js";
|
24
24
|
import { encodeBase64 } from "byte-encodings/base64";
|
25
25
|
|
26
26
|
//#region sig/ld.test.ts
|
package/dist/sig/mod.js
CHANGED
@@ -2,12 +2,12 @@
|
|
2
2
|
import { Temporal } from "@js-temporal/polyfill";
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
|
5
|
-
import "../docloader-
|
6
|
-
import "../actor-
|
7
|
-
import "../lookup-
|
8
|
-
import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk } from "../key-
|
9
|
-
import { signRequest, verifyRequest } from "../http-
|
10
|
-
import { attachSignature, createProof, createSignature, detachSignature, doesActorOwnKey, getKeyOwner, signJsonLd, signObject, verifyJsonLd, verifyObject, verifyProof, verifySignature } from "../proof-
|
5
|
+
import "../docloader-BGQB_PFT.js";
|
6
|
+
import "../actor-BfzxE2QN.js";
|
7
|
+
import "../lookup-DVLRiy-x.js";
|
8
|
+
import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk } from "../key-vNs-KWCR.js";
|
9
|
+
import { signRequest, verifyRequest } from "../http-CoPwpYGd.js";
|
10
|
+
import { attachSignature, createProof, createSignature, detachSignature, doesActorOwnKey, getKeyOwner, signJsonLd, signObject, verifyJsonLd, verifyObject, verifyProof, verifySignature } from "../proof-Bxho-Eev.js";
|
11
11
|
import "../sig-BXJO--F9.js";
|
12
12
|
|
13
13
|
export { attachSignature, createProof, createSignature, detachSignature, doesActorOwnKey, exportJwk, fetchKey, generateCryptoKeyPair, getKeyOwner, importJwk, signJsonLd, signObject, signRequest, verifyJsonLd, verifyObject, verifyProof, verifyRequest, verifySignature };
|
package/dist/sig/owner.test.js
CHANGED
@@ -3,28 +3,28 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import { assertEquals } from "../assert_equals-
|
7
|
-
import { assert } from "../assert-
|
8
|
-
import "../assert_instance_of-
|
9
|
-
import "../docloader-
|
6
|
+
import { assertEquals } from "../assert_equals-XhPMqqO2.js";
|
7
|
+
import { assert } from "../assert-0DSnLFa8.js";
|
8
|
+
import "../assert_instance_of-v5adm_-K.js";
|
9
|
+
import "../docloader-Chzwgszm.js";
|
10
10
|
import "../url-kTAI6_KP.js";
|
11
11
|
import "../multibase-DeCHcK8L.js";
|
12
|
-
import { Create } from "../vocab-
|
12
|
+
import { Create } from "../vocab-DrV5TQKL.js";
|
13
13
|
import "../langstr-DbWheeIS.js";
|
14
|
-
import "../lookup-
|
14
|
+
import "../lookup-BE2D88-F.js";
|
15
15
|
import "../type-D2s5lmbZ.js";
|
16
|
-
import "../actor-
|
17
|
-
import "../key-
|
18
|
-
import { doesActorOwnKey, getKeyOwner } from "../owner-
|
19
|
-
import { lookupObject } from "../lookup-
|
20
|
-
import { test } from "../testing-
|
21
|
-
import "../std__assert-
|
22
|
-
import { assertFalse } from "../assert_rejects-
|
23
|
-
import "../assert_is_error-
|
24
|
-
import "../assert_not_equals-
|
25
|
-
import "../assert_throws-
|
16
|
+
import "../actor-CHPy3MD6.js";
|
17
|
+
import "../key-5iwxfdk7.js";
|
18
|
+
import { doesActorOwnKey, getKeyOwner } from "../owner-B5psHPX0.js";
|
19
|
+
import { lookupObject } from "../lookup-BNZr2r1q.js";
|
20
|
+
import { test } from "../testing-BZ0dJ4qn.js";
|
21
|
+
import "../std__assert-CmyZxqPw.js";
|
22
|
+
import { assertFalse } from "../assert_rejects-D_nYI1gs.js";
|
23
|
+
import "../assert_is_error-Drwb_yQp.js";
|
24
|
+
import "../assert_not_equals-BRPdeJ9D.js";
|
25
|
+
import "../assert_throws-DNuPhPNp.js";
|
26
26
|
import { mockDocumentLoader } from "../docloader-09nVWLAZ.js";
|
27
|
-
import { rsaPublicKey1, rsaPublicKey2 } from "../keys-
|
27
|
+
import { rsaPublicKey1, rsaPublicKey2 } from "../keys-BF9Wnizj.js";
|
28
28
|
|
29
29
|
//#region sig/owner.test.ts
|
30
30
|
test("doesActorOwnKey()", async () => {
|
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-Chzwgszm.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-DrV5TQKL.js";
|
13
13
|
import "../langstr-DbWheeIS.js";
|
14
|
-
import "../lookup-
|
14
|
+
import "../lookup-BE2D88-F.js";
|
15
15
|
import "../type-D2s5lmbZ.js";
|
16
|
-
import "../actor-
|
17
|
-
import "../key-
|
18
|
-
import { createProof, signObject, verifyObject, verifyProof } from "../proof-
|
19
|
-
import { test } from "../testing-
|
20
|
-
import "../std__assert-
|
21
|
-
import { assertRejects } from "../assert_rejects-
|
22
|
-
import "../assert_is_error-
|
23
|
-
import "../assert_not_equals-
|
24
|
-
import "../assert_throws-
|
16
|
+
import "../actor-CHPy3MD6.js";
|
17
|
+
import "../key-5iwxfdk7.js";
|
18
|
+
import { createProof, signObject, verifyObject, verifyProof } from "../proof-Ck9qUTzW.js";
|
19
|
+
import { test } from "../testing-BZ0dJ4qn.js";
|
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-BF9Wnizj.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-
|
9
|
-
import { test } from "../testing-
|
10
|
-
import "../std__assert-
|
11
|
-
import "../assert_rejects-
|
12
|
-
import "../assert_is_error-
|
13
|
-
import "../assert_not_equals-
|
14
|
-
import "../assert_throws-
|
6
|
+
import { assertEquals } from "../assert_equals-XhPMqqO2.js";
|
7
|
+
import "../assert-0DSnLFa8.js";
|
8
|
+
import "../assert_instance_of-v5adm_-K.js";
|
9
|
+
import { test } from "../testing-BZ0dJ4qn.js";
|
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
|
package/dist/testing/mod.js
CHANGED
@@ -133,7 +133,7 @@ function caller() {
|
|
133
133
|
const Trace = Error;
|
134
134
|
const _ = Trace.prepareStackTrace;
|
135
135
|
Trace.prepareStackTrace = (_$1, stack$1) => stack$1;
|
136
|
-
const { stack } = new Error();
|
136
|
+
const { stack } = /* @__PURE__ */ new Error();
|
137
137
|
Trace.prepareStackTrace = _;
|
138
138
|
const caller$1 = stack[2];
|
139
139
|
return caller$1.getFileName().replaceAll("\\", "/");
|
@@ -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-BGQB_PFT.js";
|
6
6
|
import { getLogger } from "@logtape/logtape";
|
7
7
|
|
8
8
|
//#region nodeinfo/semver.ts
|
@@ -41,7 +41,7 @@ const BUILD = `(?:\\+(?<buildmetadata>${BUILD_IDENTIFIER}(?:\\.${BUILD_IDENTIFIE
|
|
41
41
|
* A version, followed optionally by a pre-release version and build metadata.
|
42
42
|
*/
|
43
43
|
const FULL_VERSION = `v?${VERSION_CORE}${PRERELEASE}?${BUILD}?`;
|
44
|
-
const FULL_REGEXP = new RegExp(`^${FULL_VERSION}$`);
|
44
|
+
const FULL_REGEXP = /* @__PURE__ */ new RegExp(`^${FULL_VERSION}$`);
|
45
45
|
/**
|
46
46
|
* Attempt to parse a string as a semantic version, returning a SemVer object.
|
47
47
|
*
|
@@ -95,7 +95,7 @@ function parseSemVer(value) {
|
|
95
95
|
function isValidNumber(value) {
|
96
96
|
return typeof value === "number" && !Number.isNaN(value) && (!Number.isFinite(value) || 0 <= value && value <= Number.MAX_SAFE_INTEGER);
|
97
97
|
}
|
98
|
-
const NUMERIC_IDENTIFIER_REGEXP = new RegExp(`^${NUMERIC_IDENTIFIER}$`);
|
98
|
+
const NUMERIC_IDENTIFIER_REGEXP = /* @__PURE__ */ new RegExp(`^${NUMERIC_IDENTIFIER}$`);
|
99
99
|
function parsePrerelease(prerelease) {
|
100
100
|
return prerelease.split(".").filter(Boolean).map((id) => {
|
101
101
|
if (NUMERIC_IDENTIFIER_REGEXP.test(id)) {
|
package/dist/vocab/actor.test.js
CHANGED
@@ -4,24 +4,24 @@
|
|
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-Chzwgszm.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-DrV5TQKL.js";
|
14
14
|
import "../langstr-DbWheeIS.js";
|
15
|
-
import "../lookup-
|
15
|
+
import "../lookup-BE2D88-F.js";
|
16
16
|
import "../type-D2s5lmbZ.js";
|
17
|
-
import { getActorClassByTypeName, getActorHandle, getActorTypeName, isActor, normalizeActorHandle } from "../actor-
|
18
|
-
import { test } from "../testing-
|
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-
|
24
|
-
import { esm_default } from "../esm-
|
17
|
+
import { getActorClassByTypeName, getActorHandle, getActorTypeName, isActor, normalizeActorHandle } from "../actor-CHPy3MD6.js";
|
18
|
+
import { test } from "../testing-BZ0dJ4qn.js";
|
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
|
+
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
|
27
27
|
var PreconditionFailure = class PreconditionFailure extends Error {
|
@@ -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,25 +3,25 @@
|
|
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-Chzwgszm.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-DrV5TQKL.js";
|
13
13
|
import "../langstr-DbWheeIS.js";
|
14
|
-
import "../lookup-
|
14
|
+
import "../lookup-BE2D88-F.js";
|
15
15
|
import "../type-D2s5lmbZ.js";
|
16
|
-
import { lookupObject, traverseCollection } from "../lookup-
|
17
|
-
import { test } from "../testing-
|
18
|
-
import "../std__assert-
|
19
|
-
import "../assert_rejects-
|
20
|
-
import "../assert_is_error-
|
21
|
-
import "../assert_not_equals-
|
22
|
-
import "../assert_throws-
|
16
|
+
import { lookupObject, traverseCollection } from "../lookup-BNZr2r1q.js";
|
17
|
+
import { test } from "../testing-BZ0dJ4qn.js";
|
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
|
-
import { esm_default } from "../esm-
|
24
|
+
import { esm_default } from "../esm-CASHO3OR.js";
|
25
25
|
|
26
26
|
//#region vocab/lookup.test.ts
|
27
27
|
test("lookupObject()", async (t) => {
|
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-BGQB_PFT.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-BfzxE2QN.js";
|
7
|
+
import "../lookup-DVLRiy-x.js";
|
8
|
+
import { PUBLIC_COLLECTION, lookupObject, traverseCollection } from "../vocab-Bcgf3ubZ.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,14 +3,14 @@
|
|
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-Chzwgszm.js";
|
8
8
|
import "../url-kTAI6_KP.js";
|
9
9
|
import "../multibase-DeCHcK8L.js";
|
10
|
-
import { Person } from "../vocab-
|
10
|
+
import { Person } from "../vocab-DrV5TQKL.js";
|
11
11
|
import "../langstr-DbWheeIS.js";
|
12
12
|
import { getTypeId } from "../type-D2s5lmbZ.js";
|
13
|
-
import { test } from "../testing-
|
13
|
+
import { test } from "../testing-BZ0dJ4qn.js";
|
14
14
|
|
15
15
|
//#region vocab/type.test.ts
|
16
16
|
test("getTypeId()", () => {
|
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#"
|