@fedify/fedify 2.0.0-pr.451.1730 → 2.0.0-pr.451.1735
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-Cg8ZhoVF.js → actor-BlCt_BFA.js} +1 -1
- package/dist/{actor-Cd2CREO0.d.ts → actor-DqFajh9s.d.ts} +2 -2
- package/dist/{actor-D020hlx3.cjs → actor-SSKGPs2C.cjs} +186 -187
- package/dist/{actor-DDhZuMGl.d.cts → actor-f2NtjyCg.d.cts} +2 -2
- package/dist/{actor-DPD6Gbdn.js → actor-qRieKMCS.js} +185 -186
- package/dist/{builder-Dn87hy75.js → builder-Daev8Oe3.js} +3 -3
- package/dist/{client-Cle5j1T1.d.cts → client-94iWEfQa.d.cts} +1 -1
- package/dist/{client-Bkaw0_PR.d.ts → client-BsGzbnV-.d.ts} +1 -1
- package/dist/{client-D6-5okV1.js → client-pY7-3icS.js} +1 -1
- package/dist/compat/mod.d.cts +11 -12
- package/dist/compat/mod.d.ts +11 -12
- package/dist/compat/transformers.test.js +16 -16
- package/dist/{context-BOYzcFSe.d.cts → context-BvYz3eOb.d.cts} +11 -11
- package/dist/{context-DqFifMwj.d.ts → context-myrGWbL_.d.ts} +11 -11
- package/dist/{docloader-B2BFBGqv.js → docloader-CuY-IQHN.js} +4 -5
- package/dist/{esm-CU0Dnk7T.js → esm-CO0P-prF.js} +1 -1
- package/dist/federation/builder.test.js +4 -4
- package/dist/federation/collection.test.js +2 -2
- package/dist/federation/handler.test.js +17 -17
- package/dist/federation/idempotency.test.js +17 -17
- package/dist/federation/inbox.test.js +3 -3
- package/dist/federation/keycache.test.js +3 -3
- package/dist/federation/kv.test.js +2 -2
- package/dist/federation/middleware.test.js +18 -18
- package/dist/federation/mod.cjs +9 -10
- package/dist/federation/mod.d.cts +11 -12
- package/dist/federation/mod.d.ts +11 -12
- package/dist/federation/mod.js +9 -10
- package/dist/federation/mq.test.js +2 -2
- package/dist/federation/negotiation.test.js +2 -2
- package/dist/federation/retry.test.js +2 -2
- package/dist/federation/router.test.js +2 -2
- package/dist/federation/send.test.js +9 -9
- package/dist/{http-DN0v2zoF.js → http--W_KqmV8.js} +2 -2
- package/dist/{http-BE7aFuqn.d.ts → http-BbO0ejuk.d.ts} +1 -1
- package/dist/{http-DMsjudj8.cjs → http-CZRSpr-0.cjs} +5 -5
- package/dist/{http-B6SKO6NJ.d.cts → http-M8k5mKc0.d.cts} +1 -1
- package/dist/{http-DcDb8r1W.js → http-cj5p1nm9.js} +2 -2
- package/dist/{inbox-CgGy7Hzc.js → inbox-DCOu4Fxg.js} +1 -1
- package/dist/{key-jSvnymAk.js → key-CLBIsQ2b.js} +2 -2
- package/dist/{keycache-IVLjlAK9.js → keycache-C_E92fAZ.js} +1 -1
- package/dist/{keys-BKM2Mqu2.js → keys-CESa8pOV.js} +1 -1
- package/dist/kv-cache-6gn8hq87.cjs +133 -0
- package/dist/kv-cache-D6OS46Qp.js +121 -0
- package/dist/kv-cache-z0lgwFi_.js +93 -0
- package/dist/{ld-CcsryBo0.js → ld-uohK5TcN.js} +2 -2
- package/dist/{lookup-BV3A9Zbc.js → lookup-B4NiLSoR.js} +129 -60
- package/dist/{lookup-BbEekiru.js → lookup-Bp3gBRGD.js} +188 -297
- package/dist/lookup-CfVdYD74.cjs +273 -0
- package/dist/{middleware-ekn2KaOw.cjs → middleware-B5t3REnT.cjs} +18 -19
- package/dist/middleware-B86mRO81.cjs +15 -0
- package/dist/{middleware-D-vPitR-.js → middleware-BEWbWO0t.js} +8 -9
- package/dist/middleware-BzGmhttT.js +26 -0
- package/dist/middleware-DxFOBA0V.js +15 -0
- package/dist/{middleware-Dm8sXYUr.js → middleware-yd4xq6Dt.js} +13 -13
- package/dist/{mod-DLIidI_j.d.ts → mod-B2iOw50L.d.ts} +2 -2
- package/dist/{mod-Cm97bAiT.d.ts → mod-BYynOiJG.d.ts} +2 -2
- package/dist/{mod-CRENK2dd.d.ts → mod-BlVovdcy.d.ts} +2 -3
- package/dist/{mod--K7l84wp.d.cts → mod-BxRCHTz-.d.cts} +2 -3
- package/dist/{mod-DuclhZjh.d.cts → mod-C58MZ7Wx.d.cts} +1 -1
- package/dist/{mod-D9XZsft2.d.cts → mod-DbFNTF7m.d.cts} +2 -2
- package/dist/{mod-COlOrmr9.d.cts → mod-DgdBYYa0.d.cts} +2 -2
- package/dist/{mod-CB80AlIA.d.ts → mod-Ds0mpFZU.d.ts} +1 -1
- package/dist/{mod-CLKu6Uo_.d.cts → mod-VastcQsk.d.cts} +2 -2
- package/dist/{mod-CaWbCg0N.d.ts → mod-k0Dk3fGk.d.ts} +2 -2
- package/dist/mod.cjs +13 -15
- package/dist/mod.d.cts +15 -16
- package/dist/mod.d.ts +16 -17
- package/dist/mod.js +14 -15
- package/dist/nodeinfo/client.test.js +4 -4
- package/dist/nodeinfo/handler.test.js +16 -16
- package/dist/nodeinfo/mod.cjs +2 -3
- package/dist/nodeinfo/mod.d.cts +2 -3
- package/dist/nodeinfo/mod.d.ts +2 -3
- package/dist/nodeinfo/mod.js +2 -3
- package/dist/nodeinfo/types.test.js +2 -2
- package/dist/{owner-dkg5OpSC.d.cts → owner-B4HbyP8s.d.cts} +2 -2
- package/dist/{owner-n5c_oZ_M.js → owner-DMwt6EnB.js} +2 -2
- package/dist/{owner-CktUdA0h.d.ts → owner-kQRGVXG1.d.ts} +2 -2
- package/dist/{proof-CLwByIT1.js → proof-BRMzWGtg.js} +3 -3
- package/dist/{proof-CZfrp13P.cjs → proof-DVvnQ6WP.cjs} +7 -7
- package/dist/{proof-CsFR7fiS.js → proof-X6v_1MA6.js} +2 -2
- package/dist/{send-eW9JIzQV.js → send-Cy3TUzxE.js} +2 -2
- package/dist/sig/http.test.js +7 -7
- package/dist/sig/key.test.js +5 -5
- package/dist/sig/ld.test.js +6 -6
- package/dist/sig/mod.cjs +5 -6
- package/dist/sig/mod.d.cts +5 -6
- package/dist/sig/mod.d.ts +5 -6
- package/dist/sig/mod.js +5 -6
- package/dist/sig/owner.test.js +6 -6
- package/dist/sig/proof.test.js +6 -6
- package/dist/testing/docloader.test.js +2 -2
- package/dist/testing/mod.d.ts +1 -27
- package/dist/testing/mod.js +2 -2
- package/dist/{testing-ClYSmXdi.js → testing-BJJvJvZe.js} +1 -1
- package/dist/{types-DaPoJTSc.js → types-BtUjyi5y.js} +1 -1
- package/dist/{types-BT0xc4-R.cjs → types-CWgzGaqk.cjs} +3 -3
- package/dist/utils/docloader.test.js +9 -8
- package/dist/utils/kv-cache.test.js +4 -3
- package/dist/utils/mod.cjs +5 -7
- package/dist/utils/mod.d.cts +5 -6
- package/dist/utils/mod.d.ts +5 -6
- package/dist/utils/mod.js +6 -7
- package/dist/vocab/actor.test.js +4 -4
- package/dist/vocab/lookup.test.js +3 -3
- package/dist/vocab/mod.cjs +3 -4
- package/dist/vocab/mod.d.cts +3 -4
- package/dist/vocab/mod.d.ts +3 -4
- package/dist/vocab/mod.js +3 -4
- package/dist/vocab/type.test.js +2 -2
- package/dist/vocab/vocab.test.js +3 -3
- package/dist/{vocab-CxTuoEVd.cjs → vocab-BPtsEU8k.cjs} +3 -4
- package/dist/{vocab-yFT-fQBj.js → vocab-DFaqbY9O.js} +2 -3
- package/dist/webfinger/handler.test.js +16 -16
- package/dist/webfinger/lookup.test.js +3 -3
- package/dist/webfinger/mod.cjs +2 -3
- package/dist/webfinger/mod.d.cts +1 -2
- package/dist/webfinger/mod.d.ts +1 -2
- package/dist/webfinger/mod.js +2 -3
- package/dist/x/cfworkers.d.cts +2 -2
- package/dist/x/cfworkers.d.ts +2 -2
- package/dist/x/cfworkers.test.js +2 -2
- package/dist/x/hono.d.cts +10 -11
- package/dist/x/hono.d.ts +10 -11
- package/dist/x/sveltekit.d.cts +10 -11
- package/dist/x/sveltekit.d.ts +10 -11
- package/package.json +2 -3
- package/dist/kv-cache-BHIupktM.cjs +0 -4279
- package/dist/kv-cache-DNvS-egZ.js +0 -4236
- package/dist/kv-cache-ydIs4Ul6.js +0 -4267
- package/dist/lookup-CMAGfQ1Q.cjs +0 -210
- package/dist/middleware-DzA970CF.js +0 -16
- package/dist/middleware-VpoC5jyA.js +0 -26
- package/dist/middleware-W_-inBoE.cjs +0 -16
- package/dist/request-BbHkedIU.d.cts +0 -35
- package/dist/request-DKGQaofB.js +0 -184
- package/dist/request-U1t6zZtk.d.ts +0 -39
- package/dist/request-XHWUW2bi.cjs +0 -208
- package/dist/utils/request.test.d.ts +0 -3
- package/dist/utils/request.test.js +0 -48
- package/dist/utils/url.test.d.ts +0 -3
- package/dist/utils/url.test.js +0 -41
- /package/dist/{federation-DOuZpcAw.cjs → federation-CRpdnOMS.cjs} +0 -0
- /package/dist/{federation-pZJsapBn.js → federation-jcR8-ZxP.js} +0 -0
- /package/dist/{kv-Dt06smFt.d.ts → kv-BKNZ-Tb-.d.ts} +0 -0
- /package/dist/{kv-BMKIFXNW.d.cts → kv-Bxr0Q87_.d.cts} +0 -0
- /package/dist/{mod-FZd39qVq.d.cts → mod-B-hUPT2N.d.cts} +0 -0
- /package/dist/{mod-B-ZQqbGe.d.ts → mod-CVgZgliM.d.ts} +0 -0
- /package/dist/{mod-CjsiSl7_.d.ts → mod-xIj-IT58.d.ts} +0 -0
- /package/dist/{mq-CPRJk4mZ.d.ts → mq-CUKlBw08.d.ts} +0 -0
- /package/dist/{mq-B7R1Q-M5.d.cts → mq-DcJPkXD5.d.cts} +0 -0
- /package/dist/{nodeinfo-B0UefMXO.js → nodeinfo-BnthBobC.js} +0 -0
- /package/dist/{nodeinfo-ByTd7HpT.cjs → nodeinfo-CdN0rEnZ.cjs} +0 -0
- /package/dist/{sig-Dx59zAgn.js → sig-C34-oHBl.js} +0 -0
- /package/dist/{sig-DE_NC_VQ.cjs → sig-YYj5tCnr.cjs} +0 -0
- /package/dist/{utils-BXMGcmqK.js → utils-D-Va7aXC.js} +0 -0
- /package/dist/{utils-B6yXfxAQ.cjs → utils-DyRU1gdZ.cjs} +0 -0
- /package/dist/{vocab-ivDKb439.d.ts → vocab-BCWe1Ih5.d.ts} +0 -0
- /package/dist/{vocab-DCBw44JZ.d.cts → vocab-CeDBzu-f.d.cts} +0 -0
- /package/dist/{webfinger-qG8R5jc3.js → webfinger-C72Y8lrh.js} +0 -0
- /package/dist/{webfinger-C949bxcD.cjs → webfinger-vAtLmxOF.cjs} +0 -0
package/dist/sig/mod.d.ts
CHANGED
@@ -1,9 +1,8 @@
|
|
1
1
|
import { Temporal } from "@js-temporal/polyfill";
|
2
2
|
import { URLPattern } from "urlpattern-polyfill";
|
3
|
-
import "../
|
4
|
-
import "../
|
5
|
-
import "../
|
6
|
-
import {
|
7
|
-
import {
|
8
|
-
import { CreateProofOptions, CreateSignatureOptions, SignJsonLdOptions, SignObjectOptions, VerifyJsonLdOptions, VerifyObjectOptions, VerifyProofOptions, VerifySignatureOptions, attachSignature, createProof, createSignature, detachSignature, signJsonLd, signObject, verifyJsonLd, verifyObject, verifyProof, verifySignature } from "../mod-DLIidI_j.js";
|
3
|
+
import "../vocab-BCWe1Ih5.js";
|
4
|
+
import "../actor-DqFajh9s.js";
|
5
|
+
import { FetchKeyOptions, FetchKeyResult, HttpMessageSignaturesSpec, HttpMessageSignaturesSpecDeterminer, KeyCache, SignRequestOptions, VerifyRequestOptions, exportJwk, fetchKey, generateCryptoKeyPair, importJwk, signRequest, verifyRequest } from "../http-BbO0ejuk.js";
|
6
|
+
import { DoesActorOwnKeyOptions, GetKeyOwnerOptions, doesActorOwnKey, getKeyOwner } from "../owner-kQRGVXG1.js";
|
7
|
+
import { CreateProofOptions, CreateSignatureOptions, SignJsonLdOptions, SignObjectOptions, VerifyJsonLdOptions, VerifyObjectOptions, VerifyProofOptions, VerifySignatureOptions, attachSignature, createProof, createSignature, detachSignature, signJsonLd, signObject, verifyJsonLd, verifyObject, verifyProof, verifySignature } from "../mod-B2iOw50L.js";
|
9
8
|
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,11 +2,10 @@
|
|
2
2
|
import { Temporal } from "@js-temporal/polyfill";
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
|
5
|
-
import "../
|
6
|
-
import "../actor-
|
7
|
-
import "../
|
8
|
-
import {
|
9
|
-
import
|
10
|
-
import "../sig-Dx59zAgn.js";
|
5
|
+
import "../lookup-B4NiLSoR.js";
|
6
|
+
import "../actor-qRieKMCS.js";
|
7
|
+
import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk, signRequest, verifyRequest } from "../http-cj5p1nm9.js";
|
8
|
+
import { attachSignature, createProof, createSignature, detachSignature, doesActorOwnKey, getKeyOwner, signJsonLd, signObject, verifyJsonLd, verifyObject, verifyProof, verifySignature } from "../proof-BRMzWGtg.js";
|
9
|
+
import "../sig-C34-oHBl.js";
|
11
10
|
|
12
11
|
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,19 +3,19 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import { Create, lookupObject } from "../lookup-
|
6
|
+
import { Create, lookupObject } from "../lookup-Bp3gBRGD.js";
|
7
7
|
import { assertEquals } from "../assert_equals-DSbWqCm3.js";
|
8
8
|
import { assert } from "../assert-MZs1qjMx.js";
|
9
9
|
import "../assert_instance_of-DHz7EHNU.js";
|
10
|
-
import "../actor-
|
11
|
-
import "../key-
|
12
|
-
import { doesActorOwnKey, getKeyOwner } from "../owner-
|
13
|
-
import { mockDocumentLoader, test } from "../testing-
|
10
|
+
import "../actor-BlCt_BFA.js";
|
11
|
+
import "../key-CLBIsQ2b.js";
|
12
|
+
import { doesActorOwnKey, getKeyOwner } from "../owner-DMwt6EnB.js";
|
13
|
+
import { mockDocumentLoader, test } from "../testing-BJJvJvZe.js";
|
14
14
|
import "../std__assert-DWivtrGR.js";
|
15
15
|
import { assertFalse } from "../assert_rejects-Ce45JcFg.js";
|
16
16
|
import "../assert_throws-BNXdRGWP.js";
|
17
17
|
import "../assert_not_equals-C80BG-_5.js";
|
18
|
-
import { rsaPublicKey1, rsaPublicKey2 } from "../keys-
|
18
|
+
import { rsaPublicKey1, rsaPublicKey2 } from "../keys-CESa8pOV.js";
|
19
19
|
|
20
20
|
//#region src/sig/owner.test.ts
|
21
21
|
test("doesActorOwnKey()", async () => {
|
package/dist/sig/proof.test.js
CHANGED
@@ -3,19 +3,19 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import { Create, DataIntegrityProof, Multikey, Note, Place } from "../lookup-
|
6
|
+
import { Create, DataIntegrityProof, Multikey, Note, Place } from "../lookup-Bp3gBRGD.js";
|
7
7
|
import { assertEquals } from "../assert_equals-DSbWqCm3.js";
|
8
8
|
import "../assert-MZs1qjMx.js";
|
9
9
|
import { assertInstanceOf } from "../assert_instance_of-DHz7EHNU.js";
|
10
|
-
import "../actor-
|
11
|
-
import "../key-
|
12
|
-
import { createProof, signObject, verifyObject, verifyProof } from "../proof-
|
13
|
-
import { mockDocumentLoader, test } from "../testing-
|
10
|
+
import "../actor-BlCt_BFA.js";
|
11
|
+
import "../key-CLBIsQ2b.js";
|
12
|
+
import { createProof, signObject, verifyObject, verifyProof } from "../proof-X6v_1MA6.js";
|
13
|
+
import { mockDocumentLoader, test } from "../testing-BJJvJvZe.js";
|
14
14
|
import "../std__assert-DWivtrGR.js";
|
15
15
|
import { assertRejects } from "../assert_rejects-Ce45JcFg.js";
|
16
16
|
import "../assert_throws-BNXdRGWP.js";
|
17
17
|
import "../assert_not_equals-C80BG-_5.js";
|
18
|
-
import { ed25519Multikey, ed25519PrivateKey, ed25519PublicKey, rsaPrivateKey2, rsaPublicKey2 } from "../keys-
|
18
|
+
import { ed25519Multikey, ed25519PrivateKey, ed25519PublicKey, rsaPrivateKey2, rsaPublicKey2 } from "../keys-CESa8pOV.js";
|
19
19
|
import { decodeMultibase, importMultibaseKey } from "@fedify/vocab-runtime";
|
20
20
|
import { decodeHex, encodeHex } from "byte-encodings/hex";
|
21
21
|
|
@@ -3,11 +3,11 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import "../lookup-
|
6
|
+
import "../lookup-Bp3gBRGD.js";
|
7
7
|
import { assertEquals } from "../assert_equals-DSbWqCm3.js";
|
8
8
|
import "../assert-MZs1qjMx.js";
|
9
9
|
import "../assert_instance_of-DHz7EHNU.js";
|
10
|
-
import { mockDocumentLoader, test } from "../testing-
|
10
|
+
import { mockDocumentLoader, test } from "../testing-BJJvJvZe.js";
|
11
11
|
import "../std__assert-DWivtrGR.js";
|
12
12
|
import "../assert_rejects-Ce45JcFg.js";
|
13
13
|
import "../assert_throws-BNXdRGWP.js";
|
package/dist/testing/mod.d.ts
CHANGED
@@ -1,35 +1,9 @@
|
|
1
1
|
import { Temporal } from "@js-temporal/polyfill";
|
2
2
|
import { URLPattern } from "urlpattern-polyfill";
|
3
3
|
globalThis.addEventListener = () => {};
|
4
|
-
import { DocumentLoader, LanguageString } from "@fedify/vocab-runtime";
|
5
|
-
import "@logtape/logtape";
|
4
|
+
import { DocumentLoader, GetUserAgentOptions, LanguageString } from "@fedify/vocab-runtime";
|
6
5
|
import { Span, TracerProvider } from "@opentelemetry/api";
|
7
6
|
|
8
|
-
//#region src/utils/request.d.ts
|
9
|
-
|
10
|
-
/**
|
11
|
-
* Options for making `User-Agent` string.
|
12
|
-
* @see {@link getUserAgent}
|
13
|
-
* @since 1.3.0
|
14
|
-
*/
|
15
|
-
interface GetUserAgentOptions {
|
16
|
-
/**
|
17
|
-
* An optional software name and version, e.g., `"Hollo/1.0.0"`.
|
18
|
-
*/
|
19
|
-
software?: string | null;
|
20
|
-
/**
|
21
|
-
* An optional URL to append to the user agent string.
|
22
|
-
* Usually the URL of the ActivityPub instance.
|
23
|
-
*/
|
24
|
-
url?: string | URL | null;
|
25
|
-
}
|
26
|
-
/**
|
27
|
-
* Gets the user agent string for the given application and URL.
|
28
|
-
* @param options The options for making the user agent string.
|
29
|
-
* @returns The user agent string.
|
30
|
-
* @since 1.3.0
|
31
|
-
*/
|
32
|
-
//#endregion
|
33
7
|
//#region src/nodeinfo/types.d.ts
|
34
8
|
/**
|
35
9
|
* The type of the result of parsing JSON.
|
package/dist/testing/mod.js
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import "../lookup-
|
7
|
-
import { createInboxContext, createRequestContext, test, testDefinitions } from "../testing-
|
6
|
+
import "../lookup-Bp3gBRGD.js";
|
7
|
+
import { createInboxContext, createRequestContext, test, testDefinitions } from "../testing-BJJvJvZe.js";
|
8
8
|
|
9
9
|
export { createInboxContext, createRequestContext, test, testDefinitions };
|
@@ -3,7 +3,7 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import { RouterError, __require, lookupObject, lookupWebFinger, traverseCollection } from "./lookup-
|
6
|
+
import { RouterError, __require, lookupObject, lookupWebFinger, traverseCollection } from "./lookup-Bp3gBRGD.js";
|
7
7
|
import { configure, getConsoleSink, getLogger, reset } from "@logtape/logtape";
|
8
8
|
import { trace } from "@opentelemetry/api";
|
9
9
|
|
@@ -2,8 +2,8 @@
|
|
2
2
|
import { Temporal } from "@js-temporal/polyfill";
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
|
5
|
-
import { getUserAgent } from "./request-DKGQaofB.js";
|
6
5
|
import { getLogger } from "@logtape/logtape";
|
6
|
+
import { getUserAgent } from "@fedify/vocab-runtime";
|
7
7
|
|
8
8
|
//#region src/nodeinfo/client.ts
|
9
9
|
const logger = getLogger([
|
@@ -3,8 +3,8 @@
|
|
3
3
|
const { URLPattern } = require("urlpattern-polyfill");
|
4
4
|
|
5
5
|
const require_chunk = require('./chunk-DqRYRqnO.cjs');
|
6
|
-
const require_request = require('./request-XHWUW2bi.cjs');
|
7
6
|
const __logtape_logtape = require_chunk.__toESM(require("@logtape/logtape"));
|
7
|
+
const __fedify_vocab_runtime = require_chunk.__toESM(require("@fedify/vocab-runtime"));
|
8
8
|
|
9
9
|
//#region src/nodeinfo/client.ts
|
10
10
|
const logger = (0, __logtape_logtape.getLogger)([
|
@@ -19,7 +19,7 @@ async function getNodeInfo(url, options = {}) {
|
|
19
19
|
const wellKnownUrl = new URL("/.well-known/nodeinfo", url);
|
20
20
|
const wellKnownResponse = await fetch(wellKnownUrl, { headers: {
|
21
21
|
Accept: "application/json",
|
22
|
-
"User-Agent": typeof options.userAgent === "string" ? options.userAgent :
|
22
|
+
"User-Agent": typeof options.userAgent === "string" ? options.userAgent : (0, __fedify_vocab_runtime.getUserAgent)(options.userAgent)
|
23
23
|
} });
|
24
24
|
if (!wellKnownResponse.ok) {
|
25
25
|
logger.error("Failed to fetch {url}: {status} {statusText}", {
|
@@ -42,7 +42,7 @@ async function getNodeInfo(url, options = {}) {
|
|
42
42
|
}
|
43
43
|
const response = await fetch(nodeInfoUrl, { headers: {
|
44
44
|
Accept: "application/json",
|
45
|
-
"User-Agent": typeof options.userAgent === "string" ? options.userAgent :
|
45
|
+
"User-Agent": typeof options.userAgent === "string" ? options.userAgent : (0, __fedify_vocab_runtime.getUserAgent)(options.userAgent)
|
46
46
|
} });
|
47
47
|
if (!response.ok) {
|
48
48
|
logger.error("Failed to fetch NodeInfo document from {url}: {status} {statusText}", {
|
@@ -3,21 +3,22 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import
|
6
|
+
import "../lookup-Bp3gBRGD.js";
|
7
7
|
import { assertEquals } from "../assert_equals-DSbWqCm3.js";
|
8
8
|
import "../assert-MZs1qjMx.js";
|
9
9
|
import "../assert_instance_of-DHz7EHNU.js";
|
10
|
-
import "../actor-
|
11
|
-
import "../key-
|
12
|
-
import { verifyRequest } from "../http
|
13
|
-
import { getAuthenticatedDocumentLoader } from "../docloader-
|
14
|
-
import { mockDocumentLoader, test } from "../testing-
|
10
|
+
import "../actor-BlCt_BFA.js";
|
11
|
+
import "../key-CLBIsQ2b.js";
|
12
|
+
import { verifyRequest } from "../http--W_KqmV8.js";
|
13
|
+
import { getAuthenticatedDocumentLoader } from "../docloader-CuY-IQHN.js";
|
14
|
+
import { mockDocumentLoader, test } from "../testing-BJJvJvZe.js";
|
15
15
|
import "../std__assert-DWivtrGR.js";
|
16
16
|
import { assertRejects } from "../assert_rejects-Ce45JcFg.js";
|
17
17
|
import "../assert_throws-BNXdRGWP.js";
|
18
18
|
import "../assert_not_equals-C80BG-_5.js";
|
19
|
-
import { rsaPrivateKey2 } from "../keys-
|
20
|
-
import { esm_default } from "../esm-
|
19
|
+
import { rsaPrivateKey2 } from "../keys-CESa8pOV.js";
|
20
|
+
import { esm_default } from "../esm-CO0P-prF.js";
|
21
|
+
import { UrlError } from "@fedify/vocab-runtime";
|
21
22
|
|
22
23
|
//#region src/utils/docloader.test.ts
|
23
24
|
test("getAuthenticatedDocumentLoader()", async (t) => {
|
@@ -3,9 +3,10 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import "../lookup-
|
7
|
-
import { MockKvStore, kvCache
|
8
|
-
import { mockDocumentLoader, test } from "../testing-
|
6
|
+
import "../lookup-Bp3gBRGD.js";
|
7
|
+
import { MockKvStore, kvCache } from "../kv-cache-z0lgwFi_.js";
|
8
|
+
import { mockDocumentLoader, test } from "../testing-BJJvJvZe.js";
|
9
|
+
import { preloadedContexts } from "@fedify/vocab-runtime";
|
9
10
|
import { deepStrictEqual, throws } from "node:assert";
|
10
11
|
|
11
12
|
//#region src/utils/kv-cache.test.ts
|
package/dist/utils/mod.cjs
CHANGED
@@ -2,13 +2,11 @@
|
|
2
2
|
const { Temporal } = require("@js-temporal/polyfill");
|
3
3
|
const { URLPattern } = require("urlpattern-polyfill");
|
4
4
|
|
5
|
-
|
6
|
-
require('../actor-
|
7
|
-
require('../
|
8
|
-
require('../
|
9
|
-
|
10
|
-
require('../utils-B6yXfxAQ.cjs');
|
5
|
+
require('../lookup-CfVdYD74.cjs');
|
6
|
+
require('../actor-SSKGPs2C.cjs');
|
7
|
+
require('../http-CZRSpr-0.cjs');
|
8
|
+
const require_kv_cache = require('../kv-cache-6gn8hq87.cjs');
|
9
|
+
require('../utils-DyRU1gdZ.cjs');
|
11
10
|
|
12
11
|
exports.getAuthenticatedDocumentLoader = require_kv_cache.getAuthenticatedDocumentLoader;
|
13
|
-
exports.getUserAgent = require_request.getUserAgent;
|
14
12
|
exports.kvCache = require_kv_cache.kvCache;
|
package/dist/utils/mod.d.cts
CHANGED
@@ -1,6 +1,5 @@
|
|
1
|
-
import
|
2
|
-
import "../
|
3
|
-
import "../
|
4
|
-
import "../
|
5
|
-
|
6
|
-
export { getAuthenticatedDocumentLoader, getUserAgent, kvCache };
|
1
|
+
import "../vocab-CeDBzu-f.cjs";
|
2
|
+
import "../http-M8k5mKc0.cjs";
|
3
|
+
import "../kv-Bxr0Q87_.cjs";
|
4
|
+
import { getAuthenticatedDocumentLoader, kvCache } from "../mod-VastcQsk.cjs";
|
5
|
+
export { getAuthenticatedDocumentLoader, kvCache };
|
package/dist/utils/mod.d.ts
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
import { Temporal } from "@js-temporal/polyfill";
|
2
2
|
import { URLPattern } from "urlpattern-polyfill";
|
3
|
-
import
|
4
|
-
import "../
|
5
|
-
import "../
|
6
|
-
import "../
|
7
|
-
|
8
|
-
export { getAuthenticatedDocumentLoader, getUserAgent, kvCache };
|
3
|
+
import "../vocab-BCWe1Ih5.js";
|
4
|
+
import "../http-BbO0ejuk.js";
|
5
|
+
import "../kv-BKNZ-Tb-.js";
|
6
|
+
import { getAuthenticatedDocumentLoader, kvCache } from "../mod-BYynOiJG.js";
|
7
|
+
export { getAuthenticatedDocumentLoader, kvCache };
|
package/dist/utils/mod.js
CHANGED
@@ -2,11 +2,10 @@
|
|
2
2
|
import { Temporal } from "@js-temporal/polyfill";
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
|
5
|
-
import
|
6
|
-
import "../actor-
|
7
|
-
import "../
|
8
|
-
import "../
|
9
|
-
import
|
10
|
-
import "../utils-BXMGcmqK.js";
|
5
|
+
import "../lookup-B4NiLSoR.js";
|
6
|
+
import "../actor-qRieKMCS.js";
|
7
|
+
import "../http-cj5p1nm9.js";
|
8
|
+
import { getAuthenticatedDocumentLoader, kvCache } from "../kv-cache-D6OS46Qp.js";
|
9
|
+
import "../utils-D-Va7aXC.js";
|
11
10
|
|
12
|
-
export { getAuthenticatedDocumentLoader,
|
11
|
+
export { getAuthenticatedDocumentLoader, kvCache };
|
package/dist/vocab/actor.test.js
CHANGED
@@ -3,17 +3,17 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import { Application, Group, Organization, Person, Service, __export } from "../lookup-
|
6
|
+
import { Application, Group, Organization, Person, Service, __export } from "../lookup-Bp3gBRGD.js";
|
7
7
|
import { assertEquals } from "../assert_equals-DSbWqCm3.js";
|
8
8
|
import { assert } from "../assert-MZs1qjMx.js";
|
9
9
|
import "../assert_instance_of-DHz7EHNU.js";
|
10
|
-
import { getActorClassByTypeName, getActorHandle, getActorTypeName, isActor, normalizeActorHandle } from "../actor-
|
11
|
-
import { test } from "../testing-
|
10
|
+
import { getActorClassByTypeName, getActorHandle, getActorTypeName, isActor, normalizeActorHandle } from "../actor-BlCt_BFA.js";
|
11
|
+
import { test } from "../testing-BJJvJvZe.js";
|
12
12
|
import { assertStrictEquals } from "../std__assert-DWivtrGR.js";
|
13
13
|
import { assertFalse, assertRejects } from "../assert_rejects-Ce45JcFg.js";
|
14
14
|
import { assertThrows } from "../assert_throws-BNXdRGWP.js";
|
15
15
|
import "../assert_not_equals-C80BG-_5.js";
|
16
|
-
import { esm_default } from "../esm-
|
16
|
+
import { esm_default } from "../esm-CO0P-prF.js";
|
17
17
|
|
18
18
|
//#region ../../node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/precondition/PreconditionFailure.js
|
19
19
|
var PreconditionFailure = class PreconditionFailure extends Error {
|
@@ -3,16 +3,16 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import { Collection, Note, Object as Object$1, Person, lookupObject, traverseCollection } from "../lookup-
|
6
|
+
import { Collection, Note, Object as Object$1, Person, lookupObject, traverseCollection } from "../lookup-Bp3gBRGD.js";
|
7
7
|
import { assertEquals } from "../assert_equals-DSbWqCm3.js";
|
8
8
|
import "../assert-MZs1qjMx.js";
|
9
9
|
import { assertInstanceOf } from "../assert_instance_of-DHz7EHNU.js";
|
10
|
-
import { mockDocumentLoader, test } from "../testing-
|
10
|
+
import { mockDocumentLoader, test } from "../testing-BJJvJvZe.js";
|
11
11
|
import "../std__assert-DWivtrGR.js";
|
12
12
|
import { assertRejects } from "../assert_rejects-Ce45JcFg.js";
|
13
13
|
import "../assert_throws-BNXdRGWP.js";
|
14
14
|
import "../assert_not_equals-C80BG-_5.js";
|
15
|
-
import { esm_default } from "../esm-
|
15
|
+
import { esm_default } from "../esm-CO0P-prF.js";
|
16
16
|
|
17
17
|
//#region src/vocab/lookup.test.ts
|
18
18
|
test("lookupObject()", {
|
package/dist/vocab/mod.cjs
CHANGED
@@ -2,10 +2,9 @@
|
|
2
2
|
const { Temporal } = require("@js-temporal/polyfill");
|
3
3
|
const { URLPattern } = require("urlpattern-polyfill");
|
4
4
|
|
5
|
-
require('../
|
6
|
-
const require_actor = require('../actor-
|
7
|
-
require('../
|
8
|
-
const require_vocab = require('../vocab-CxTuoEVd.cjs');
|
5
|
+
require('../lookup-CfVdYD74.cjs');
|
6
|
+
const require_actor = require('../actor-SSKGPs2C.cjs');
|
7
|
+
const require_vocab = require('../vocab-BPtsEU8k.cjs');
|
9
8
|
|
10
9
|
exports.Accept = require_actor.Accept;
|
11
10
|
exports.Activity = require_actor.Activity;
|
package/dist/vocab/mod.d.cts
CHANGED
@@ -1,5 +1,4 @@
|
|
1
|
-
import "../
|
2
|
-
import {
|
3
|
-
import {
|
4
|
-
import { FediverseHandle, LookupObjectOptions, PUBLIC_COLLECTION, TraverseCollectionOptions, getTypeId, isFediverseHandle, lookupObject, parseFediverseHandle, toAcctUrl, traverseCollection } from "../mod--K7l84wp.cjs";
|
1
|
+
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-CeDBzu-f.cjs";
|
2
|
+
import { Actor, ActorTypeName, GetActorHandleOptions, NormalizeActorHandleOptions, Recipient, getActorClassByTypeName, getActorHandle, getActorTypeName, isActor, normalizeActorHandle } from "../actor-f2NtjyCg.cjs";
|
3
|
+
import { FediverseHandle, LookupObjectOptions, PUBLIC_COLLECTION, TraverseCollectionOptions, getTypeId, isFediverseHandle, lookupObject, parseFediverseHandle, toAcctUrl, traverseCollection } from "../mod-BxRCHTz-.cjs";
|
5
4
|
export { Accept, Activity, Actor, ActorTypeName, Add, Announce, Application, Arrive, Article, Audio, Block, ChatMessage, Collection, CollectionPage, Create, CryptographicKey, DataIntegrityProof, Delete, DidService, Dislike, Document, Emoji, EmojiReact, Endpoints, Event, Export, FediverseHandle, Flag, Follow, GetActorHandleOptions, Group, Hashtag, Ignore, Image, IntransitiveActivity, Invite, Join, Leave, Like, Link, Listen, LookupObjectOptions, Mention, Move, Multikey, NormalizeActorHandleOptions, Note, Object$1 as Object, Offer, OrderedCollection, OrderedCollectionPage, Organization, PUBLIC_COLLECTION, Page, Person, Place, Profile, PropertyValue, Question, Read, Recipient, Reject, Relationship, Remove, Service, Source, TentativeAccept, TentativeReject, Tombstone, Travel, TraverseCollectionOptions, Undo, Update, Video, View, getActorClassByTypeName, getActorHandle, getActorTypeName, getTypeId, isActor, isFediverseHandle, lookupObject, normalizeActorHandle, parseFediverseHandle, toAcctUrl, traverseCollection };
|
package/dist/vocab/mod.d.ts
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
import { Temporal } from "@js-temporal/polyfill";
|
2
2
|
import { URLPattern } from "urlpattern-polyfill";
|
3
|
-
import "../
|
4
|
-
import {
|
5
|
-
import {
|
6
|
-
import { FediverseHandle, LookupObjectOptions, PUBLIC_COLLECTION, TraverseCollectionOptions, getTypeId, isFediverseHandle, lookupObject, parseFediverseHandle, toAcctUrl, traverseCollection } from "../mod-CRENK2dd.js";
|
3
|
+
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-BCWe1Ih5.js";
|
4
|
+
import { Actor, ActorTypeName, GetActorHandleOptions, NormalizeActorHandleOptions, Recipient, getActorClassByTypeName, getActorHandle, getActorTypeName, isActor, normalizeActorHandle } from "../actor-DqFajh9s.js";
|
5
|
+
import { FediverseHandle, LookupObjectOptions, PUBLIC_COLLECTION, TraverseCollectionOptions, getTypeId, isFediverseHandle, lookupObject, parseFediverseHandle, toAcctUrl, traverseCollection } from "../mod-BlVovdcy.js";
|
7
6
|
export { Accept, Activity, Actor, ActorTypeName, Add, Announce, Application, Arrive, Article, Audio, Block, ChatMessage, Collection, CollectionPage, Create, CryptographicKey, DataIntegrityProof, Delete, DidService, Dislike, Document, Emoji, EmojiReact, Endpoints, Event, Export, FediverseHandle, Flag, Follow, GetActorHandleOptions, Group, Hashtag, Ignore, Image, IntransitiveActivity, Invite, Join, Leave, Like, Link, Listen, LookupObjectOptions, Mention, Move, Multikey, NormalizeActorHandleOptions, Note, Object$1 as Object, Offer, OrderedCollection, OrderedCollectionPage, Organization, PUBLIC_COLLECTION, Page, Person, Place, Profile, PropertyValue, Question, Read, Recipient, Reject, Relationship, Remove, Service, Source, TentativeAccept, TentativeReject, Tombstone, Travel, TraverseCollectionOptions, Undo, Update, Video, View, getActorClassByTypeName, getActorHandle, getActorTypeName, getTypeId, isActor, isFediverseHandle, lookupObject, normalizeActorHandle, parseFediverseHandle, toAcctUrl, traverseCollection };
|
package/dist/vocab/mod.js
CHANGED
@@ -2,9 +2,8 @@
|
|
2
2
|
import { Temporal } from "@js-temporal/polyfill";
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
|
5
|
-
import "../
|
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 "../
|
8
|
-
import { PUBLIC_COLLECTION, isFediverseHandle, lookupObject, parseFediverseHandle, toAcctUrl, traverseCollection } from "../vocab-yFT-fQBj.js";
|
5
|
+
import "../lookup-B4NiLSoR.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-qRieKMCS.js";
|
7
|
+
import { PUBLIC_COLLECTION, isFediverseHandle, lookupObject, parseFediverseHandle, toAcctUrl, traverseCollection } from "../vocab-DFaqbY9O.js";
|
9
8
|
|
10
9
|
export { Accept, Activity, Add, Announce, Application, Arrive, Article, Audio, Block, ChatMessage, Collection, CollectionPage, Create, CryptographicKey, DataIntegrityProof, Delete, DidService, Dislike, Document, Emoji, EmojiReact, Endpoints, Event, Export, Flag, Follow, Group, Hashtag, Ignore, Image, IntransitiveActivity, Invite, Join, Leave, Like, Link, Listen, Mention, Move, Multikey, Note, Object$1 as Object, Offer, OrderedCollection, OrderedCollectionPage, Organization, PUBLIC_COLLECTION, Page, Person, Place, Profile, PropertyValue, Question, Read, Reject, Relationship, Remove, Service, Source, TentativeAccept, TentativeReject, Tombstone, Travel, Undo, Update, Video, View, getActorClassByTypeName, getActorHandle, getActorTypeName, getTypeId, isActor, isFediverseHandle, lookupObject, normalizeActorHandle, parseFediverseHandle, toAcctUrl, traverseCollection };
|
package/dist/vocab/type.test.js
CHANGED
@@ -3,9 +3,9 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import { Person, getTypeId } from "../lookup-
|
6
|
+
import { Person, getTypeId } from "../lookup-Bp3gBRGD.js";
|
7
7
|
import { assertEquals } from "../assert_equals-DSbWqCm3.js";
|
8
|
-
import { test } from "../testing-
|
8
|
+
import { test } from "../testing-BJJvJvZe.js";
|
9
9
|
|
10
10
|
//#region src/vocab/type.test.ts
|
11
11
|
test("getTypeId()", () => {
|
package/dist/vocab/vocab.test.js
CHANGED
@@ -3,16 +3,16 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import { Activity, Announce, Collection, Create, CryptographicKey, Follow, Hashtag, Link, Note, Object as Object$1, OrderedCollectionPage, Person, Place, Question, Source, vocab_exports } from "../lookup-
|
6
|
+
import { Activity, Announce, Collection, Create, CryptographicKey, Follow, Hashtag, Link, Note, Object as Object$1, OrderedCollectionPage, Person, Place, Question, Source, vocab_exports } from "../lookup-Bp3gBRGD.js";
|
7
7
|
import { assertEquals } from "../assert_equals-DSbWqCm3.js";
|
8
8
|
import { assert } from "../assert-MZs1qjMx.js";
|
9
9
|
import { assertInstanceOf } from "../assert_instance_of-DHz7EHNU.js";
|
10
|
-
import { mockDocumentLoader, test } from "../testing-
|
10
|
+
import { mockDocumentLoader, test } from "../testing-BJJvJvZe.js";
|
11
11
|
import "../std__assert-DWivtrGR.js";
|
12
12
|
import { assertFalse, assertRejects } from "../assert_rejects-Ce45JcFg.js";
|
13
13
|
import { assertThrows } from "../assert_throws-BNXdRGWP.js";
|
14
14
|
import { assertNotEquals } from "../assert_not_equals-C80BG-_5.js";
|
15
|
-
import { ed25519PublicKey, rsaPublicKey1 } from "../keys-
|
15
|
+
import { ed25519PublicKey, rsaPublicKey1 } from "../keys-CESa8pOV.js";
|
16
16
|
import { pascalCase } from "es-toolkit";
|
17
17
|
import { LanguageString, decodeMultibase } from "@fedify/vocab-runtime";
|
18
18
|
import { Validator } from "@cfworker/json-schema";
|
@@ -3,9 +3,8 @@
|
|
3
3
|
const { URLPattern } = require("urlpattern-polyfill");
|
4
4
|
|
5
5
|
const require_chunk = require('./chunk-DqRYRqnO.cjs');
|
6
|
-
const
|
7
|
-
const require_actor = require('./actor-
|
8
|
-
const require_lookup = require('./lookup-CMAGfQ1Q.cjs');
|
6
|
+
const require_lookup = require('./lookup-CfVdYD74.cjs');
|
7
|
+
const require_actor = require('./actor-SSKGPs2C.cjs');
|
9
8
|
const __logtape_logtape = require_chunk.__toESM(require("@logtape/logtape"));
|
10
9
|
const __opentelemetry_api = require_chunk.__toESM(require("@opentelemetry/api"));
|
11
10
|
const __fedify_vocab_runtime = require_chunk.__toESM(require("@fedify/vocab-runtime"));
|
@@ -129,7 +128,7 @@ const logger = (0, __logtape_logtape.getLogger)([
|
|
129
128
|
*/
|
130
129
|
async function lookupObject(identifier, options = {}) {
|
131
130
|
const tracerProvider = options.tracerProvider ?? __opentelemetry_api.trace.getTracerProvider();
|
132
|
-
const tracer = tracerProvider.getTracer(
|
131
|
+
const tracer = tracerProvider.getTracer(require_lookup.deno_default.name, require_lookup.deno_default.version);
|
133
132
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
134
133
|
try {
|
135
134
|
const result = await lookupObjectInternal(identifier, options);
|
@@ -2,9 +2,8 @@
|
|
2
2
|
import { Temporal } from "@js-temporal/polyfill";
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
|
5
|
-
import { deno_default } from "./
|
6
|
-
import { Object as Object$1, getTypeId } from "./actor-
|
7
|
-
import { lookupWebFinger } from "./lookup-BV3A9Zbc.js";
|
5
|
+
import { deno_default, lookupWebFinger } from "./lookup-B4NiLSoR.js";
|
6
|
+
import { Object as Object$1, getTypeId } from "./actor-qRieKMCS.js";
|
8
7
|
import { getLogger } from "@logtape/logtape";
|
9
8
|
import { SpanStatusCode, trace } from "@opentelemetry/api";
|
10
9
|
import { getDocumentLoader } from "@fedify/vocab-runtime";
|
@@ -3,30 +3,30 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import { Image, Link, Person } from "../lookup-
|
6
|
+
import { Image, Link, Person } from "../lookup-Bp3gBRGD.js";
|
7
7
|
import { assertEquals } from "../assert_equals-DSbWqCm3.js";
|
8
8
|
import "../assert-MZs1qjMx.js";
|
9
9
|
import "../assert_instance_of-DHz7EHNU.js";
|
10
10
|
import { MemoryKvStore } from "../kv-CRZrzyXm.js";
|
11
|
-
import { createFederation, handleWebFinger } from "../middleware-
|
12
|
-
import "../client-
|
11
|
+
import { createFederation, handleWebFinger } from "../middleware-yd4xq6Dt.js";
|
12
|
+
import "../client-pY7-3icS.js";
|
13
13
|
import "../types-C2XVl6gj.js";
|
14
|
-
import "../actor-
|
15
|
-
import "../key-
|
16
|
-
import "../http
|
17
|
-
import "../ld-
|
18
|
-
import "../owner-
|
19
|
-
import "../proof-
|
20
|
-
import "../docloader-
|
21
|
-
import "../kv-cache-
|
22
|
-
import "../inbox-
|
23
|
-
import "../builder-
|
14
|
+
import "../actor-BlCt_BFA.js";
|
15
|
+
import "../key-CLBIsQ2b.js";
|
16
|
+
import "../http--W_KqmV8.js";
|
17
|
+
import "../ld-uohK5TcN.js";
|
18
|
+
import "../owner-DMwt6EnB.js";
|
19
|
+
import "../proof-X6v_1MA6.js";
|
20
|
+
import "../docloader-CuY-IQHN.js";
|
21
|
+
import "../kv-cache-z0lgwFi_.js";
|
22
|
+
import "../inbox-DCOu4Fxg.js";
|
23
|
+
import "../builder-Daev8Oe3.js";
|
24
24
|
import "../collection-BzWsN9pB.js";
|
25
|
-
import "../keycache-
|
25
|
+
import "../keycache-C_E92fAZ.js";
|
26
26
|
import "../negotiation-C4nFufNk.js";
|
27
27
|
import "../retry-CfF8Gn4d.js";
|
28
|
-
import "../send-
|
29
|
-
import { createRequestContext, test } from "../testing-
|
28
|
+
import "../send-Cy3TUzxE.js";
|
29
|
+
import { createRequestContext, test } from "../testing-BJJvJvZe.js";
|
30
30
|
import "../std__assert-DWivtrGR.js";
|
31
31
|
import "../assert_rejects-Ce45JcFg.js";
|
32
32
|
import "../assert_throws-BNXdRGWP.js";
|
@@ -3,16 +3,16 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import { lookupWebFinger } from "../lookup-
|
6
|
+
import { lookupWebFinger } from "../lookup-Bp3gBRGD.js";
|
7
7
|
import { assertEquals } from "../assert_equals-DSbWqCm3.js";
|
8
8
|
import "../assert-MZs1qjMx.js";
|
9
9
|
import "../assert_instance_of-DHz7EHNU.js";
|
10
|
-
import { test } from "../testing-
|
10
|
+
import { test } from "../testing-BJJvJvZe.js";
|
11
11
|
import "../std__assert-DWivtrGR.js";
|
12
12
|
import "../assert_rejects-Ce45JcFg.js";
|
13
13
|
import "../assert_throws-BNXdRGWP.js";
|
14
14
|
import "../assert_not_equals-C80BG-_5.js";
|
15
|
-
import { esm_default } from "../esm-
|
15
|
+
import { esm_default } from "../esm-CO0P-prF.js";
|
16
16
|
import { withTimeout } from "es-toolkit";
|
17
17
|
|
18
18
|
//#region src/webfinger/lookup.test.ts
|
package/dist/webfinger/mod.cjs
CHANGED
@@ -2,8 +2,7 @@
|
|
2
2
|
const { Temporal } = require("@js-temporal/polyfill");
|
3
3
|
const { URLPattern } = require("urlpattern-polyfill");
|
4
4
|
|
5
|
-
require('../
|
6
|
-
|
7
|
-
require('../webfinger-C949bxcD.cjs');
|
5
|
+
const require_lookup = require('../lookup-CfVdYD74.cjs');
|
6
|
+
require('../webfinger-vAtLmxOF.cjs');
|
8
7
|
|
9
8
|
exports.lookupWebFinger = require_lookup.lookupWebFinger;
|
package/dist/webfinger/mod.d.cts
CHANGED
@@ -1,3 +1,2 @@
|
|
1
|
-
import "../
|
2
|
-
import { Link, LookupWebFingerOptions, ResourceDescriptor, lookupWebFinger } from "../mod-DuclhZjh.cjs";
|
1
|
+
import { Link, LookupWebFingerOptions, ResourceDescriptor, lookupWebFinger } from "../mod-C58MZ7Wx.cjs";
|
3
2
|
export { Link, LookupWebFingerOptions, ResourceDescriptor, lookupWebFinger };
|
package/dist/webfinger/mod.d.ts
CHANGED
@@ -1,5 +1,4 @@
|
|
1
1
|
import { Temporal } from "@js-temporal/polyfill";
|
2
2
|
import { URLPattern } from "urlpattern-polyfill";
|
3
|
-
import "../
|
4
|
-
import { Link, LookupWebFingerOptions, ResourceDescriptor, lookupWebFinger } from "../mod-CB80AlIA.js";
|
3
|
+
import { Link, LookupWebFingerOptions, ResourceDescriptor, lookupWebFinger } from "../mod-Ds0mpFZU.js";
|
5
4
|
export { Link, LookupWebFingerOptions, ResourceDescriptor, lookupWebFinger };
|
package/dist/webfinger/mod.js
CHANGED
@@ -2,8 +2,7 @@
|
|
2
2
|
import { Temporal } from "@js-temporal/polyfill";
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
|
5
|
-
import "../
|
6
|
-
import
|
7
|
-
import "../webfinger-qG8R5jc3.js";
|
5
|
+
import { lookupWebFinger } from "../lookup-B4NiLSoR.js";
|
6
|
+
import "../webfinger-C72Y8lrh.js";
|
8
7
|
|
9
8
|
export { lookupWebFinger };
|