@fedify/fedify 1.6.1-dev.880 → 1.6.1-dev.883
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-DvmEmDn9.js → actor-CwAL6Q82.js} +180 -180
- package/dist/{actor-DIk6hH_U.js → actor-DezwbbQX.js} +3 -3
- package/dist/{actor-f67C7yQD.d.ts → actor-tT_B0pDn.d.ts} +5 -8
- package/dist/{assert-Dv75vaGI.js → assert-YJk-1DlZ.js} +1 -1
- package/dist/{assert_equals-ClvzlhZu.js → assert_equals-Dnj7ejjL.js} +16 -9
- package/dist/{assert_instance_of--9UCVKsi.js → assert_instance_of-DBIoG5k7.js} +1 -1
- package/dist/{assert_is_error-D162gXcM.js → assert_is_error-jyzqjHud.js} +1 -1
- package/dist/{assert_not_equals-Cyf5m9Ke.js → assert_not_equals-wx-SRs4i.js} +1 -1
- package/dist/{assert_rejects-FOHCtlD2.js → assert_rejects-BZjUwo62.js} +2 -2
- package/dist/{assert_throws-CRfQJvVx.js → assert_throws-gBPv3v2V.js} +2 -2
- package/dist/{authdocloader-B3ME-k-0.js → authdocloader-C-_Lr-KH.js} +3 -3
- package/dist/{authdocloader-Bt52x-cz.js → authdocloader-Df1y1MKv.js} +4 -4
- package/dist/{builder-DT_CjHJM.js → builder-C8tsk_Xe.js} +3 -3
- package/dist/{client-Dw1pCSIt.d.ts → client-Cd552pKL.d.ts} +6 -9
- package/dist/{client-CSQzJhcr.js → client-CwjvB-Dh.js} +1 -1
- package/dist/{collection-QaGK9TVn.js → collection-Dfb0TPno.js} +1 -1
- package/dist/compat/mod.d.ts +12 -12
- package/dist/compat/mod.js +1 -1
- package/dist/compat/transformers.test.js +21 -21
- package/dist/{context-DBM4y1xF.d.ts → context-DRhhOsMk.d.ts} +12 -28
- package/dist/{context-DaUJ8XgG.js → context-DfToVZY6.js} +2 -2
- package/dist/{docloader-BesQV-nU.js → docloader-BFRgyDAa.js} +1 -2
- package/dist/{docloader-DdQSFoDK.js → docloader-BXc5egq6.js} +1 -2
- package/dist/{docloader-DTRsVZPo.d.ts → docloader-DlUDOVSe.d.ts} +4 -7
- package/dist/{esm-BxIKwi-M.js → esm-Btx3E8og.js} +1 -1
- package/dist/federation/builder.test.js +12 -12
- package/dist/federation/collection.test.js +9 -9
- package/dist/federation/handler.test.js +28 -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 +28 -28
- package/dist/federation/mod.d.ts +11 -11
- package/dist/federation/mod.js +12 -12
- package/dist/federation/mq.test.js +10 -10
- package/dist/federation/retry.test.js +2 -2
- package/dist/federation/router.test.js +9 -9
- package/dist/federation/send.test.js +18 -18
- package/dist/{federation-Bmj7soSg.js → federation-3B6BDKCK.js} +1 -1
- package/dist/{http-nvlEiwC4.js → http-3CJyDlPz.js} +4 -4
- package/dist/{http-CZyKN-rt.d.ts → http-BkUCISGt.d.ts} +6 -14
- package/dist/{http-DKFoMKYk.js → http-DC3mY9EG.js} +4 -4
- package/dist/{inbox-DUxOSixz.js → inbox-CCbuuUqY.js} +4 -4
- package/dist/{key-C_i44VCP.js → key-CD8i4ZB_.js} +2 -2
- package/dist/{key-B6j6aQIf.js → key-Ce8aGBE5.js} +5 -5
- package/dist/{key-DnZNsfoE.js → key-D0WW7EHK.js} +3 -3
- package/dist/{key-BiM3rCVA.js → key-Y8a6dgOq.js} +4 -4
- package/dist/{keycache-NtvEqcq9.js → keycache-BtADunPo.js} +2 -2
- package/dist/{keys-R9p0S8_o.js → keys-BIY57kjo.js} +1 -1
- package/dist/{kv-BmsWxOQ2.d.ts → kv-p8sC8PTT.d.ts} +3 -7
- package/dist/{ld-BLZnxCWX.js → ld-D4G5WL1G.js} +4 -4
- package/dist/{lookup-B38eCiCI.js → lookup-C8V37GPa.js} +1 -1
- package/dist/{lookup-DXgwlvAK.js → lookup-CQnVHXIh.js} +3 -3
- package/dist/{lookup-CNK83LQK.js → lookup-Ds1_3qy2.js} +1 -1
- package/dist/{lookup-nlxO7x0u.d.ts → lookup-vJccIKCS.d.ts} +4 -8
- package/dist/middleware-DPuaf71I.js +17 -0
- package/dist/{middleware-Bjqgfc8l.js → middleware-DRpRVwO7.js} +18 -18
- package/dist/{middleware-FhQhkH0G.js → middleware-Jvf6WsMN.js} +18 -18
- package/dist/middleware-XHndzOUD.js +33 -0
- package/dist/{mod-iE_61Xjt.d.ts → mod-BTHfUeLo.d.ts} +2 -9
- package/dist/{mod-BUAWJ2pK.d.ts → mod-BUTm-sog.d.ts} +5 -9
- package/dist/{mod-CsYfI7YL.d.ts → mod-CgmTOt4z.d.ts} +3 -21
- package/dist/{mod-Bx6Du4Ct.d.ts → mod-DSPyncxx.d.ts} +5 -11
- package/dist/mod.d.ts +14 -14
- package/dist/mod.js +12 -12
- package/dist/{mq-Bue016Tz.d.ts → mq-nceTGCuc.d.ts} +3 -7
- package/dist/nodeinfo/client.test.js +23 -36
- package/dist/nodeinfo/handler.test.js +27 -27
- package/dist/nodeinfo/mod.d.ts +3 -3
- 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-C_Gw25Id.d.ts → owner-CbRc94FP.d.ts} +6 -9
- package/dist/{owner-DKsEWurW.js → owner-Dyk0zd-q.js} +3 -3
- package/dist/{proof-DtIUHGA0.js → proof-B8Hm2M5c.js} +3 -3
- package/dist/{proof-DKetjewp.js → proof-D-CWdNQx.js} +5 -5
- package/dist/runtime/authdocloader.test.js +17 -17
- package/dist/runtime/docloader.test.js +69 -66
- package/dist/runtime/key.test.js +13 -13
- package/dist/runtime/langstr.test.js +8 -8
- package/dist/runtime/mod.d.ts +5 -5
- 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-Z9IEW2ZG.js → send-CJXTH3ST.js} +3 -3
- package/dist/sig/http.test.js +52 -47
- package/dist/sig/key.test.js +14 -14
- package/dist/sig/ld.test.js +12 -12
- package/dist/sig/mod.d.ts +7 -7
- package/dist/sig/mod.js +6 -6
- package/dist/sig/owner.test.js +16 -16
- package/dist/sig/proof.test.js +15 -15
- package/dist/{std__assert-CaBUULmX.js → std__assert-CHXwj7zk.js} +1 -1
- package/dist/testing/docloader.test.js +8 -8
- package/dist/testing/mod.d.ts +0 -1
- package/dist/{transformers-jxj-4o2K.js → transformers-ghwJuzGY.js} +1 -1
- package/dist/{types-C9A_t_ZN.js → types-D3XNqpGz.js} +1 -1
- package/dist/vocab/actor.test.js +60 -49
- package/dist/vocab/lookup.test.js +13 -13
- package/dist/vocab/mod.d.ts +5 -5
- package/dist/vocab/mod.js +4 -4
- package/dist/vocab/type.test.js +3 -3
- package/dist/vocab/vocab.test.js +129 -132
- package/dist/{vocab-CHuz96Ha.js → vocab-CPrCb9BR.js} +3 -3
- package/dist/{vocab-7mZSoHR0.js → vocab-CaZSjoCB.js} +178 -178
- package/dist/{vocab-C4bpdeio.d.ts → vocab-DSFLLLe6.d.ts} +2 -7
- package/dist/webfinger/handler.test.js +27 -27
- package/dist/webfinger/lookup.test.js +41 -46
- package/dist/webfinger/mod.d.ts +3 -3
- package/dist/webfinger/mod.js +2 -2
- package/dist/x/cfworkers.d.ts +2 -9
- package/dist/x/cfworkers.test.js +8 -8
- package/dist/x/hono.d.ts +11 -12
- package/dist/x/sveltekit.d.ts +11 -12
- package/package.json +2 -3
- package/dist/hongminhee__deno-mock-fetch-DJKLj_H-.js +0 -188
- package/dist/middleware-B8XTnZdu.js +0 -33
- package/dist/middleware-D-_NS4x8.js +0 -17
- /package/dist/{denokv-iB_ggPGm.js → denokv-B_GFWjrl.js} +0 -0
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-Dnj7ejjL.js";
|
7
|
+
import "../assert-YJk-1DlZ.js";
|
8
|
+
import "../assert_instance_of-DBIoG5k7.js";
|
9
|
+
import "../docloader-BXc5egq6.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-CaZSjoCB.js";
|
13
13
|
import "../langstr-DbWheeIS.js";
|
14
|
-
import "../lookup-
|
14
|
+
import "../lookup-Ds1_3qy2.js";
|
15
15
|
import "../type-D2s5lmbZ.js";
|
16
|
-
import "../actor-
|
17
|
-
import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk, validateCryptoKey } from "../key-
|
16
|
+
import "../actor-DezwbbQX.js";
|
17
|
+
import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk, validateCryptoKey } from "../key-D0WW7EHK.js";
|
18
18
|
import { test } from "../testing-jcGLO9Lp.js";
|
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-
|
19
|
+
import "../std__assert-CHXwj7zk.js";
|
20
|
+
import { assertRejects } from "../assert_rejects-BZjUwo62.js";
|
21
|
+
import "../assert_is_error-jyzqjHud.js";
|
22
|
+
import "../assert_not_equals-wx-SRs4i.js";
|
23
|
+
import { assertThrows } from "../assert_throws-gBPv3v2V.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-BIY57kjo.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-Dnj7ejjL.js";
|
7
|
+
import { assert } from "../assert-YJk-1DlZ.js";
|
8
|
+
import "../docloader-BXc5egq6.js";
|
9
9
|
import "../url-kTAI6_KP.js";
|
10
10
|
import "../multibase-DeCHcK8L.js";
|
11
|
-
import { CryptographicKey } from "../vocab-
|
11
|
+
import { CryptographicKey } from "../vocab-CaZSjoCB.js";
|
12
12
|
import "../langstr-DbWheeIS.js";
|
13
|
-
import "../lookup-
|
13
|
+
import "../lookup-Ds1_3qy2.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-
|
15
|
+
import "../actor-DezwbbQX.js";
|
16
|
+
import { generateCryptoKeyPair } from "../key-D0WW7EHK.js";
|
17
|
+
import { attachSignature, createSignature, detachSignature, signJsonLd, verifyJsonLd, verifySignature } from "../ld-D4G5WL1G.js";
|
18
18
|
import { test } from "../testing-jcGLO9Lp.js";
|
19
|
-
import { assertFalse, assertRejects } from "../assert_rejects-
|
20
|
-
import "../assert_is_error-
|
21
|
-
import { assertThrows } from "../assert_throws-
|
19
|
+
import { assertFalse, assertRejects } from "../assert_rejects-BZjUwo62.js";
|
20
|
+
import "../assert_is_error-jyzqjHud.js";
|
21
|
+
import { assertThrows } from "../assert_throws-gBPv3v2V.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-BIY57kjo.js";
|
24
24
|
import { encodeBase64 } from "byte-encodings/base64";
|
25
25
|
|
26
26
|
//#region sig/ld.test.ts
|
package/dist/sig/mod.d.ts
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
import { Temporal } from "@js-temporal/polyfill";
|
2
2
|
import { URLPattern } from "urlpattern-polyfill";
|
3
|
-
import "../kv-
|
4
|
-
import "../docloader-
|
5
|
-
import "../vocab-
|
6
|
-
import "../actor-
|
7
|
-
import { FetchKeyOptions, FetchKeyResult, HttpMessageSignaturesSpec, HttpMessageSignaturesSpecDeterminer, KeyCache, SignRequestOptions, VerifyRequestOptions, exportJwk
|
8
|
-
import { DoesActorOwnKeyOptions, GetKeyOwnerOptions, doesActorOwnKey
|
9
|
-
import { CreateProofOptions, CreateSignatureOptions, SignJsonLdOptions, SignObjectOptions, VerifyJsonLdOptions, VerifyObjectOptions, VerifyProofOptions, VerifySignatureOptions, attachSignature, createProof, createSignature, detachSignature, signJsonLd, signObject, verifyJsonLd, verifyObject, verifyProof, verifySignature } from "../mod-
|
3
|
+
import "../kv-p8sC8PTT.js";
|
4
|
+
import "../docloader-DlUDOVSe.js";
|
5
|
+
import "../vocab-DSFLLLe6.js";
|
6
|
+
import "../actor-tT_B0pDn.js";
|
7
|
+
import { FetchKeyOptions, FetchKeyResult, HttpMessageSignaturesSpec, HttpMessageSignaturesSpecDeterminer, KeyCache, SignRequestOptions, VerifyRequestOptions, exportJwk, fetchKey, generateCryptoKeyPair, importJwk, signRequest, verifyRequest } from "../http-BkUCISGt.js";
|
8
|
+
import { DoesActorOwnKeyOptions, GetKeyOwnerOptions, doesActorOwnKey, getKeyOwner } from "../owner-CbRc94FP.js";
|
9
|
+
import { CreateProofOptions, CreateSignatureOptions, SignJsonLdOptions, SignObjectOptions, VerifyJsonLdOptions, VerifyObjectOptions, VerifyProofOptions, VerifySignatureOptions, attachSignature, createProof, createSignature, detachSignature, signJsonLd, signObject, verifyJsonLd, verifyObject, verifyProof, verifySignature } from "../mod-BUTm-sog.js";
|
10
10
|
export { CreateProofOptions, CreateSignatureOptions, DoesActorOwnKeyOptions, FetchKeyOptions, FetchKeyResult, GetKeyOwnerOptions, HttpMessageSignaturesSpec, HttpMessageSignaturesSpecDeterminer, KeyCache, SignJsonLdOptions, SignObjectOptions, SignRequestOptions, VerifyJsonLdOptions, VerifyObjectOptions, VerifyProofOptions, VerifyRequestOptions, VerifySignatureOptions, attachSignature, createProof, createSignature, detachSignature, doesActorOwnKey, exportJwk, fetchKey, generateCryptoKeyPair, getKeyOwner, importJwk, signJsonLd, signObject, signRequest, verifyJsonLd, verifyObject, verifyProof, verifyRequest, verifySignature };
|
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
|
5
|
+
import "../docloader-BFRgyDAa.js";
|
6
|
+
import "../actor-CwAL6Q82.js";
|
7
|
+
import "../lookup-C8V37GPa.js";
|
8
|
+
import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk } from "../key-CD8i4ZB_.js";
|
9
|
+
import { signRequest, verifyRequest } from "../http-DC3mY9EG.js";
|
10
|
+
import { attachSignature, createProof, createSignature, detachSignature, doesActorOwnKey, getKeyOwner, signJsonLd, signObject, verifyJsonLd, verifyObject, verifyProof, verifySignature } from "../proof-D-CWdNQx.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-Dnj7ejjL.js";
|
7
|
+
import { assert } from "../assert-YJk-1DlZ.js";
|
8
|
+
import "../assert_instance_of-DBIoG5k7.js";
|
9
|
+
import "../docloader-BXc5egq6.js";
|
10
10
|
import "../url-kTAI6_KP.js";
|
11
11
|
import "../multibase-DeCHcK8L.js";
|
12
|
-
import { Create } from "../vocab-
|
12
|
+
import { Create } from "../vocab-CaZSjoCB.js";
|
13
13
|
import "../langstr-DbWheeIS.js";
|
14
|
-
import "../lookup-
|
14
|
+
import "../lookup-Ds1_3qy2.js";
|
15
15
|
import "../type-D2s5lmbZ.js";
|
16
|
-
import "../actor-
|
17
|
-
import "../key-
|
18
|
-
import { doesActorOwnKey, getKeyOwner } from "../owner-
|
19
|
-
import { lookupObject } from "../lookup-
|
16
|
+
import "../actor-DezwbbQX.js";
|
17
|
+
import "../key-D0WW7EHK.js";
|
18
|
+
import { doesActorOwnKey, getKeyOwner } from "../owner-Dyk0zd-q.js";
|
19
|
+
import { lookupObject } from "../lookup-CQnVHXIh.js";
|
20
20
|
import { test } from "../testing-jcGLO9Lp.js";
|
21
|
-
import "../std__assert-
|
22
|
-
import { assertFalse } from "../assert_rejects-
|
23
|
-
import "../assert_is_error-
|
24
|
-
import "../assert_not_equals-
|
25
|
-
import "../assert_throws-
|
21
|
+
import "../std__assert-CHXwj7zk.js";
|
22
|
+
import { assertFalse } from "../assert_rejects-BZjUwo62.js";
|
23
|
+
import "../assert_is_error-jyzqjHud.js";
|
24
|
+
import "../assert_not_equals-wx-SRs4i.js";
|
25
|
+
import "../assert_throws-gBPv3v2V.js";
|
26
26
|
import { mockDocumentLoader } from "../docloader-09nVWLAZ.js";
|
27
|
-
import { rsaPublicKey1, rsaPublicKey2 } from "../keys-
|
27
|
+
import { rsaPublicKey1, rsaPublicKey2 } from "../keys-BIY57kjo.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-Dnj7ejjL.js";
|
7
|
+
import "../assert-YJk-1DlZ.js";
|
8
|
+
import { assertInstanceOf } from "../assert_instance_of-DBIoG5k7.js";
|
9
|
+
import "../docloader-BXc5egq6.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-CaZSjoCB.js";
|
13
13
|
import "../langstr-DbWheeIS.js";
|
14
|
-
import "../lookup-
|
14
|
+
import "../lookup-Ds1_3qy2.js";
|
15
15
|
import "../type-D2s5lmbZ.js";
|
16
|
-
import "../actor-
|
17
|
-
import "../key-
|
18
|
-
import { createProof, signObject, verifyObject, verifyProof } from "../proof-
|
16
|
+
import "../actor-DezwbbQX.js";
|
17
|
+
import "../key-D0WW7EHK.js";
|
18
|
+
import { createProof, signObject, verifyObject, verifyProof } from "../proof-B8Hm2M5c.js";
|
19
19
|
import { test } from "../testing-jcGLO9Lp.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-CHXwj7zk.js";
|
21
|
+
import { assertRejects } from "../assert_rejects-BZjUwo62.js";
|
22
|
+
import "../assert_is_error-jyzqjHud.js";
|
23
|
+
import "../assert_not_equals-wx-SRs4i.js";
|
24
|
+
import "../assert_throws-gBPv3v2V.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-BIY57kjo.js";
|
27
27
|
import { decodeHex, encodeHex } from "byte-encodings/hex";
|
28
28
|
|
29
29
|
//#region sig/proof.test.ts
|
@@ -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-Dnj7ejjL.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-Dnj7ejjL.js";
|
7
|
+
import "../assert-YJk-1DlZ.js";
|
8
|
+
import "../assert_instance_of-DBIoG5k7.js";
|
9
9
|
import { test } from "../testing-jcGLO9Lp.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-CHXwj7zk.js";
|
11
|
+
import "../assert_rejects-BZjUwo62.js";
|
12
|
+
import "../assert_is_error-jyzqjHud.js";
|
13
|
+
import "../assert_not_equals-wx-SRs4i.js";
|
14
|
+
import "../assert_throws-gBPv3v2V.js";
|
15
15
|
import { mockDocumentLoader } from "../docloader-09nVWLAZ.js";
|
16
16
|
|
17
17
|
//#region testing/docloader.test.ts
|
package/dist/testing/mod.d.ts
CHANGED
@@ -7,6 +7,5 @@ declare const testDefinitions: Deno.TestDefinition[];
|
|
7
7
|
declare function test(options: Deno.TestDefinition): void;
|
8
8
|
declare function test(name: string, fn: (t: Deno.TestContext) => void | Promise<void>): void;
|
9
9
|
declare function test(name: string, options: Omit<Deno.TestDefinition, "fn" | "name">, fn: (t: Deno.TestContext) => void | Promise<void>): void;
|
10
|
-
|
11
10
|
//#endregion
|
12
11
|
export { test, testDefinitions };
|
@@ -95,4 +95,4 @@ function getDefaultActivityTransformers() {
|
|
95
95
|
}
|
96
96
|
|
97
97
|
//#endregion
|
98
|
-
export { actorDehydrator
|
98
|
+
export { actorDehydrator, autoIdAssigner, getDefaultActivityTransformers };
|
@@ -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-BFRgyDAa.js";
|
6
6
|
import { getLogger } from "@logtape/logtape";
|
7
7
|
|
8
8
|
//#region nodeinfo/semver.ts
|
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-Dnj7ejjL.js";
|
8
|
+
import { assert } from "../assert-YJk-1DlZ.js";
|
9
|
+
import "../assert_instance_of-DBIoG5k7.js";
|
10
|
+
import "../docloader-BXc5egq6.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-CaZSjoCB.js";
|
14
14
|
import "../langstr-DbWheeIS.js";
|
15
|
-
import "../lookup-
|
15
|
+
import "../lookup-Ds1_3qy2.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-DezwbbQX.js";
|
18
18
|
import { test } from "../testing-jcGLO9Lp.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-
|
24
|
-
import {
|
19
|
+
import { assertStrictEquals } from "../std__assert-CHXwj7zk.js";
|
20
|
+
import { assertFalse, assertRejects } from "../assert_rejects-BZjUwo62.js";
|
21
|
+
import "../assert_is_error-jyzqjHud.js";
|
22
|
+
import "../assert_not_equals-wx-SRs4i.js";
|
23
|
+
import { assertThrows } from "../assert_throws-gBPv3v2V.js";
|
24
|
+
import { esm_default } from "../esm-Btx3E8og.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 {
|
@@ -393,7 +393,7 @@ function safeApply(f, instance, args) {
|
|
393
393
|
//#endregion
|
394
394
|
//#region node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/utils/globals.js
|
395
395
|
const SArray = typeof Array !== "undefined" ? Array : void 0;
|
396
|
-
const SBigInt
|
396
|
+
const SBigInt = typeof BigInt !== "undefined" ? BigInt : void 0;
|
397
397
|
const SBoolean = typeof Boolean !== "undefined" ? Boolean : void 0;
|
398
398
|
const SDate = typeof Date !== "undefined" ? Date : void 0;
|
399
399
|
const SError = typeof Error !== "undefined" ? Error : void 0;
|
@@ -1422,11 +1422,11 @@ function uniformArrayIntDistribution(from, to, rng) {
|
|
1422
1422
|
|
1423
1423
|
//#endregion
|
1424
1424
|
//#region node_modules/.pnpm/pure-rand@6.1.0/node_modules/pure-rand/lib/esm/distribution/UnsafeUniformBigIntDistribution.js
|
1425
|
-
var SBigInt = typeof BigInt !== "undefined" ? BigInt : void 0;
|
1425
|
+
var SBigInt$1 = typeof BigInt !== "undefined" ? BigInt : void 0;
|
1426
1426
|
function unsafeUniformBigIntDistribution(from, to, rng) {
|
1427
|
-
var diff = to - from + SBigInt(1);
|
1428
|
-
var MinRng = SBigInt(-2147483648);
|
1429
|
-
var NumValues = SBigInt(4294967296);
|
1427
|
+
var diff = to - from + SBigInt$1(1);
|
1428
|
+
var MinRng = SBigInt$1(-2147483648);
|
1429
|
+
var NumValues = SBigInt$1(4294967296);
|
1430
1430
|
var FinalNumValues = NumValues;
|
1431
1431
|
var NumIterations = 1;
|
1432
1432
|
while (FinalNumValues < diff) {
|
@@ -1435,10 +1435,10 @@ function unsafeUniformBigIntDistribution(from, to, rng) {
|
|
1435
1435
|
}
|
1436
1436
|
var MaxAcceptedRandom = FinalNumValues - FinalNumValues % diff;
|
1437
1437
|
while (true) {
|
1438
|
-
var value = SBigInt(0);
|
1438
|
+
var value = SBigInt$1(0);
|
1439
1439
|
for (var num = 0; num !== NumIterations; ++num) {
|
1440
1440
|
var out = rng.unsafeNext();
|
1441
|
-
value = NumValues * value + (SBigInt(out) - MinRng);
|
1441
|
+
value = NumValues * value + (SBigInt$1(out) - MinRng);
|
1442
1442
|
}
|
1443
1443
|
if (value < MaxAcceptedRandom) {
|
1444
1444
|
var inDiff = value % diff;
|
@@ -2007,7 +2007,7 @@ var IgnoreEqualValuesProperty = class {
|
|
2007
2007
|
constructor(property$1, skipRuns) {
|
2008
2008
|
this.property = property$1;
|
2009
2009
|
this.skipRuns = skipRuns;
|
2010
|
-
this.coveredCases = new Map();
|
2010
|
+
this.coveredCases = /* @__PURE__ */ new Map();
|
2011
2011
|
if (this.property.runBeforeEach !== void 0 && this.property.runAfterEach !== void 0) {
|
2012
2012
|
this.runBeforeEach = () => this.property.runBeforeEach();
|
2013
2013
|
this.runAfterEach = () => this.property.runAfterEach();
|
@@ -2496,8 +2496,8 @@ function integerLogLike(v) {
|
|
2496
2496
|
return safeMathFloor$4(safeMathLog$1(v) / safeMathLog$1(2));
|
2497
2497
|
}
|
2498
2498
|
function bigIntLogLike(v) {
|
2499
|
-
if (v === SBigInt
|
2500
|
-
return SBigInt
|
2499
|
+
if (v === SBigInt(0)) return SBigInt(0);
|
2500
|
+
return SBigInt(SString(v).length);
|
2501
2501
|
}
|
2502
2502
|
function biasNumericRange(min, max, logLike) {
|
2503
2503
|
if (min === max) return [{
|
@@ -2641,7 +2641,7 @@ function integer(constraints = {}) {
|
|
2641
2641
|
|
2642
2642
|
//#endregion
|
2643
2643
|
//#region node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/helpers/DepthContext.js
|
2644
|
-
const depthContextCache = new Map();
|
2644
|
+
const depthContextCache = /* @__PURE__ */ new Map();
|
2645
2645
|
function getDepthContextFor(contextMeta) {
|
2646
2646
|
if (contextMeta === void 0) return { depth: 0 };
|
2647
2647
|
if (typeof contextMeta !== "string") return contextMeta;
|
@@ -2993,7 +2993,7 @@ function array(arb, constraints = {}) {
|
|
2993
2993
|
//#endregion
|
2994
2994
|
//#region node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/helpers/ShrinkBigInt.js
|
2995
2995
|
function halveBigInt(n) {
|
2996
|
-
return n / SBigInt
|
2996
|
+
return n / SBigInt(2);
|
2997
2997
|
}
|
2998
2998
|
function shrinkBigInt(current, target, tryTargetAsap) {
|
2999
2999
|
const realGap = current - target;
|
@@ -3052,19 +3052,19 @@ var BigIntArbitrary = class BigIntArbitrary extends Arbitrary {
|
|
3052
3052
|
return shrinkBigInt(current, context, false);
|
3053
3053
|
}
|
3054
3054
|
defaultTarget() {
|
3055
|
-
if (this.min <= 0 && this.max >= 0) return SBigInt
|
3055
|
+
if (this.min <= 0 && this.max >= 0) return SBigInt(0);
|
3056
3056
|
return this.min < 0 ? this.max : this.min;
|
3057
3057
|
}
|
3058
3058
|
isLastChanceTry(current, context) {
|
3059
|
-
if (current > 0) return current === context + SBigInt
|
3060
|
-
if (current < 0) return current === context - SBigInt
|
3059
|
+
if (current > 0) return current === context + SBigInt(1) && current > this.min;
|
3060
|
+
if (current < 0) return current === context - SBigInt(1) && current < this.max;
|
3061
3061
|
return false;
|
3062
3062
|
}
|
3063
3063
|
static isValidContext(current, context) {
|
3064
3064
|
if (context === void 0) return false;
|
3065
3065
|
if (typeof context !== "bigint") throw new Error(`Invalid context type passed to BigIntArbitrary (#1)`);
|
3066
3066
|
const differentSigns = current > 0 && context < 0 || current < 0 && context > 0;
|
3067
|
-
if (context !== SBigInt
|
3067
|
+
if (context !== SBigInt(0) && differentSigns) throw new Error(`Invalid context value passed to BigIntArbitrary (#2)`);
|
3068
3068
|
return true;
|
3069
3069
|
}
|
3070
3070
|
};
|
@@ -3073,13 +3073,13 @@ var BigIntArbitrary = class BigIntArbitrary extends Arbitrary {
|
|
3073
3073
|
//#region node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/bigInt.js
|
3074
3074
|
function buildCompleteBigIntConstraints(constraints) {
|
3075
3075
|
const DefaultPow = 256;
|
3076
|
-
const DefaultMin = SBigInt
|
3077
|
-
const DefaultMax = (SBigInt
|
3076
|
+
const DefaultMin = SBigInt(-1) << SBigInt(DefaultPow - 1);
|
3077
|
+
const DefaultMax = (SBigInt(1) << SBigInt(DefaultPow - 1)) - SBigInt(1);
|
3078
3078
|
const min = constraints.min;
|
3079
3079
|
const max = constraints.max;
|
3080
3080
|
return {
|
3081
|
-
min: min !== void 0 ? min : DefaultMin - (max !== void 0 && max < SBigInt
|
3082
|
-
max: max !== void 0 ? max : DefaultMax + (min !== void 0 && min > SBigInt
|
3081
|
+
min: min !== void 0 ? min : DefaultMin - (max !== void 0 && max < SBigInt(0) ? max * max : SBigInt(0)),
|
3082
|
+
max: max !== void 0 ? max : DefaultMax + (min !== void 0 && min > SBigInt(0) ? min * min : SBigInt(0))
|
3083
3083
|
};
|
3084
3084
|
}
|
3085
3085
|
function extractBigIntConstraints(args) {
|
@@ -3234,7 +3234,7 @@ function constant(value) {
|
|
3234
3234
|
|
3235
3235
|
//#endregion
|
3236
3236
|
//#region node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/mappers/TimeToDate.js
|
3237
|
-
const safeNaN$2 =
|
3237
|
+
const safeNaN$2 = NaN;
|
3238
3238
|
const safeNumberIsNaN$4 = Number.isNaN;
|
3239
3239
|
function timeToDateMapper(time) {
|
3240
3240
|
return new SDate(time);
|
@@ -3815,7 +3815,7 @@ function createSlicesForStringLegacy(charArbitrary, stringSplitter) {
|
|
3815
3815
|
}
|
3816
3816
|
return slicesForString;
|
3817
3817
|
}
|
3818
|
-
const slicesPerArbitrary = new WeakMap();
|
3818
|
+
const slicesPerArbitrary = /* @__PURE__ */ new WeakMap();
|
3819
3819
|
function createSlicesForStringNoConstraints(charArbitrary) {
|
3820
3820
|
const slicesForString = [];
|
3821
3821
|
for (const dangerous of dangerousStrings) {
|
@@ -5268,7 +5268,7 @@ const safeNumberIsNaN$1 = Number.isNaN;
|
|
5268
5268
|
const safeNegativeInfinity$3 = Number.NEGATIVE_INFINITY;
|
5269
5269
|
const safePositiveInfinity$3 = Number.POSITIVE_INFINITY;
|
5270
5270
|
const safeMaxValue$1 = Number.MAX_VALUE;
|
5271
|
-
const safeNaN$1 =
|
5271
|
+
const safeNaN$1 = NaN;
|
5272
5272
|
function safeDoubleToIndex(d, constraintsLabel) {
|
5273
5273
|
if (safeNumberIsNaN$1(d)) throw new Error("fc.double constraints." + constraintsLabel + " must be a 64-bit float");
|
5274
5274
|
return doubleToIndex(d);
|
@@ -5382,7 +5382,7 @@ const safeNumberIsNaN = Number.isNaN;
|
|
5382
5382
|
const safeMathFround = Math.fround;
|
5383
5383
|
const safeNegativeInfinity = Number.NEGATIVE_INFINITY;
|
5384
5384
|
const safePositiveInfinity = Number.POSITIVE_INFINITY;
|
5385
|
-
const safeNaN =
|
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
5388
|
const errorMessage = "fc.float constraints." + constraintsLabel + " must be a 32-bit float - " + conversionTrick;
|
@@ -5887,8 +5887,11 @@ test("getActorClassByTypeName()", () => {
|
|
5887
5887
|
assert$1(property(actorClassAndInstance(), ([cls, instance]) => assertStrictEquals(getActorClassByTypeName(getActorTypeName(instance)), cls)));
|
5888
5888
|
});
|
5889
5889
|
test("getActorHandle()", async (t) => {
|
5890
|
-
|
5891
|
-
|
5890
|
+
esm_default.spyGlobal();
|
5891
|
+
esm_default.get("begin:https://foo.example.com/.well-known/webfinger?", {
|
5892
|
+
body: { subject: "acct:johndoe@foo.example.com" },
|
5893
|
+
headers: { "Content-Type": "application/jrd+json" }
|
5894
|
+
});
|
5892
5895
|
const actorId = new URL("https://foo.example.com/@john");
|
5893
5896
|
const actor$1 = new Person({
|
5894
5897
|
id: actorId,
|
@@ -5900,29 +5903,37 @@ test("getActorHandle()", async (t) => {
|
|
5900
5903
|
assertEquals(await getActorHandle(actorId), "@johndoe@foo.example.com");
|
5901
5904
|
assertEquals(await getActorHandle(actorId, { trimLeadingAt: true }), "johndoe@foo.example.com");
|
5902
5905
|
});
|
5903
|
-
|
5904
|
-
|
5905
|
-
|
5906
|
-
|
5906
|
+
esm_default.removeRoutes();
|
5907
|
+
esm_default.get("begin:https://foo.example.com/.well-known/webfinger?", {
|
5908
|
+
body: {
|
5909
|
+
subject: "https://foo.example.com/@john",
|
5910
|
+
aliases: ["acct:john@bar.example.com", "acct:johndoe@foo.example.com"]
|
5911
|
+
},
|
5912
|
+
headers: { "Content-Type": "application/jrd+json" }
|
5913
|
+
});
|
5907
5914
|
await t.step("WebFinger aliases", async () => {
|
5908
5915
|
assertEquals(await getActorHandle(actor$1), "@johndoe@foo.example.com");
|
5909
5916
|
assertEquals(await getActorHandle(actor$1, { trimLeadingAt: true }), "johndoe@foo.example.com");
|
5910
5917
|
assertEquals(await getActorHandle(actorId), "@johndoe@foo.example.com");
|
5911
5918
|
assertEquals(await getActorHandle(actorId, { trimLeadingAt: true }), "johndoe@foo.example.com");
|
5912
5919
|
});
|
5913
|
-
|
5914
|
-
|
5915
|
-
|
5916
|
-
|
5920
|
+
esm_default.get("begin:https://bar.example.com/.well-known/webfinger?", {
|
5921
|
+
body: {
|
5922
|
+
subject: "acct:john@bar.example.com",
|
5923
|
+
aliases: ["https://foo.example.com/@john"]
|
5924
|
+
},
|
5925
|
+
headers: { "Content-Type": "application/jrd+json" }
|
5926
|
+
});
|
5917
5927
|
await t.step("cross-origin WebFinger resources", async () => {
|
5918
5928
|
assertEquals(await getActorHandle(actor$1), "@john@bar.example.com");
|
5919
5929
|
});
|
5920
|
-
|
5930
|
+
esm_default.removeRoutes();
|
5931
|
+
esm_default.get("begin:https://foo.example.com/.well-known/webfinger?", { status: 404 });
|
5921
5932
|
await t.step("no WebFinger", async () => {
|
5922
5933
|
assertEquals(await getActorHandle(actor$1), "@john@foo.example.com");
|
5923
5934
|
assertRejects(() => getActorHandle(actorId), TypeError);
|
5924
5935
|
});
|
5925
|
-
|
5936
|
+
esm_default.hardReset();
|
5926
5937
|
});
|
5927
5938
|
test("normalizeActorHandle()", () => {
|
5928
5939
|
assertEquals(normalizeActorHandle("@foo@BAR.COM"), "@foo@bar.com");
|
@@ -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-Dnj7ejjL.js";
|
7
|
+
import "../assert-YJk-1DlZ.js";
|
8
|
+
import { assertInstanceOf } from "../assert_instance_of-DBIoG5k7.js";
|
9
|
+
import "../docloader-BXc5egq6.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-CaZSjoCB.js";
|
13
13
|
import "../langstr-DbWheeIS.js";
|
14
|
-
import "../lookup-
|
14
|
+
import "../lookup-Ds1_3qy2.js";
|
15
15
|
import "../type-D2s5lmbZ.js";
|
16
|
-
import { lookupObject, traverseCollection } from "../lookup-
|
16
|
+
import { lookupObject, traverseCollection } from "../lookup-CQnVHXIh.js";
|
17
17
|
import { test } from "../testing-jcGLO9Lp.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-CHXwj7zk.js";
|
19
|
+
import "../assert_rejects-BZjUwo62.js";
|
20
|
+
import "../assert_is_error-jyzqjHud.js";
|
21
|
+
import "../assert_not_equals-wx-SRs4i.js";
|
22
|
+
import "../assert_throws-gBPv3v2V.js";
|
23
23
|
import { mockDocumentLoader } from "../docloader-09nVWLAZ.js";
|
24
|
-
import { esm_default } from "../esm-
|
24
|
+
import { esm_default } from "../esm-Btx3E8og.js";
|
25
25
|
|
26
26
|
//#region vocab/lookup.test.ts
|
27
27
|
test("lookupObject()", async (t) => {
|
package/dist/vocab/mod.d.ts
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
import { Temporal } from "@js-temporal/polyfill";
|
2
2
|
import { URLPattern } from "urlpattern-polyfill";
|
3
|
-
import "../kv-
|
4
|
-
import "../docloader-
|
5
|
-
import { Accept
|
6
|
-
import { Actor, ActorTypeName, GetActorHandleOptions, NormalizeActorHandleOptions, Recipient, getActorClassByTypeName
|
7
|
-
import { LookupObjectOptions, PUBLIC_COLLECTION
|
3
|
+
import "../kv-p8sC8PTT.js";
|
4
|
+
import "../docloader-DlUDOVSe.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-DSFLLLe6.js";
|
6
|
+
import { Actor, ActorTypeName, GetActorHandleOptions, NormalizeActorHandleOptions, Recipient, getActorClassByTypeName, getActorHandle, getActorTypeName, isActor, normalizeActorHandle } from "../actor-tT_B0pDn.js";
|
7
|
+
import { LookupObjectOptions, PUBLIC_COLLECTION, TraverseCollectionOptions, getTypeId, lookupObject, traverseCollection } from "../mod-DSPyncxx.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, 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, lookupObject, normalizeActorHandle, 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
|
7
|
-
import "../lookup-
|
8
|
-
import { PUBLIC_COLLECTION, lookupObject, traverseCollection } from "../vocab-
|
5
|
+
import "../docloader-BFRgyDAa.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-CwAL6Q82.js";
|
7
|
+
import "../lookup-C8V37GPa.js";
|
8
|
+
import { PUBLIC_COLLECTION, lookupObject, traverseCollection } from "../vocab-CPrCb9BR.js";
|
9
9
|
|
10
10
|
export { Accept, Activity, Add, Announce, Application, Arrive, Article, Audio, Block, ChatMessage, Collection, CollectionPage, Create, CryptographicKey, DataIntegrityProof, Delete, DidService, Dislike, Document, Emoji, EmojiReact, Endpoints, Event, Export, Flag, Follow, Group, Hashtag, Ignore, Image, IntransitiveActivity, Invite, Join, Leave, Like, Link, Listen, Mention, Move, Multikey, Note, Object$1 as Object, Offer, OrderedCollection, OrderedCollectionPage, Organization, PUBLIC_COLLECTION, Page, Person, Place, Profile, PropertyValue, Question, Read, Reject, Relationship, Remove, Service, Source, TentativeAccept, TentativeReject, Tombstone, Travel, Undo, Update, Video, View, getActorClassByTypeName, getActorHandle, getActorTypeName, getTypeId, isActor, lookupObject, normalizeActorHandle, traverseCollection };
|
package/dist/vocab/type.test.js
CHANGED
@@ -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-Dnj7ejjL.js";
|
7
|
+
import "../docloader-BXc5egq6.js";
|
8
8
|
import "../url-kTAI6_KP.js";
|
9
9
|
import "../multibase-DeCHcK8L.js";
|
10
|
-
import { Person } from "../vocab-
|
10
|
+
import { Person } from "../vocab-CaZSjoCB.js";
|
11
11
|
import "../langstr-DbWheeIS.js";
|
12
12
|
import { getTypeId } from "../type-D2s5lmbZ.js";
|
13
13
|
import { test } from "../testing-jcGLO9Lp.js";
|