@fedify/fedify 1.8.1-pr.350.1285 → 1.8.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/dist/{actor-D_mYtQ--.js → actor-BoGD7NTN.js} +1 -1
- package/dist/{actor-CaMRRcub.js → actor-ByRaiOPo.js} +179 -179
- package/dist/{actor-C2nhWp6O.d.ts → actor-Uh1YDuVl.d.ts} +2 -2
- package/dist/{authdocloader-K0Peq1hX.js → authdocloader-B1xJIUPX.js} +6 -5
- package/dist/{authdocloader-CQh4IJfT.js → authdocloader-Bc6qZuGP.js} +6 -5
- package/dist/{builder-fPWs-TI4.js → builder-BfgGj1eY.js} +4 -4
- package/dist/{client-9cPnAibf.js → client-CroFXpdD.js} +1 -1
- package/dist/{client-D2tgjFk3.d.ts → client-DF8anIB5.d.ts} +1 -1
- package/dist/compat/mod.d.ts +10 -10
- package/dist/compat/transformers.test.js +16 -16
- package/dist/{context-BBD2ZH_P.d.ts → context-CnveeHUR.d.ts} +8 -8
- package/dist/{docloader-BBtyRca1.js → docloader-BrWrLf03.js} +23 -27
- package/dist/{docloader-Bz56sKV5.d.ts → docloader-CxWcuWqQ.d.ts} +14 -1
- package/dist/{esm-QBbiQNo4.js → esm-C3x3cFms.js} +1 -1
- package/dist/federation/builder.test.js +5 -5
- package/dist/federation/collection.test.js +3 -3
- package/dist/federation/handler.test.js +17 -17
- package/dist/federation/inbox.test.js +4 -4
- package/dist/federation/keycache.test.js +4 -4
- package/dist/federation/kv.test.js +3 -3
- package/dist/federation/middleware.test.js +18 -18
- package/dist/federation/mod.d.ts +9 -9
- package/dist/federation/mod.js +10 -10
- package/dist/federation/mq.test.js +3 -3
- package/dist/federation/retry.test.js +3 -3
- package/dist/federation/router.test.js +3 -3
- package/dist/federation/send.test.js +10 -10
- package/dist/{http-DWJVfkyZ.js → http-C9jtl8Fq.js} +12 -6
- package/dist/{http-l4uEvaAw.d.ts → http-DtG44GdM.d.ts} +2 -2
- package/dist/{http-B0NkMLuT.js → http-HwvmocJz.js} +11 -5
- package/dist/{inbox-B1nIxc0q.js → inbox-DKVTIbmv.js} +1 -1
- package/dist/{key-Bpdjmig5.js → key-E7rSdqc6.js} +2 -2
- package/dist/{key-BRl4AtNh.js → key-UWXjce4t.js} +2 -2
- package/dist/{key-CKINuzqT.js → key-cBIF6vMv.js} +4 -4
- package/dist/{key-BDCSCae-.js → key-moR6gVPP.js} +3 -3
- package/dist/{keycache-CoDCGPU_.js → keycache-CwnMs7kD.js} +1 -1
- package/dist/{keys--rBfRBtT.js → keys-CuWK2Y03.js} +1 -1
- package/dist/{ld-C3oVh0YJ.js → ld-xAUJDa7n.js} +2 -2
- package/dist/{lookup-BJelGpWr.d.ts → lookup-3czM5mmU.d.ts} +7 -1
- package/dist/{lookup-BxBwlMQM.js → lookup-B4W3OzUX.js} +3 -2
- package/dist/{lookup-BLwnybnA.js → lookup-CVtBGpmR.js} +5 -4
- package/dist/middleware-B6ScuRgA.js +17 -0
- package/dist/middleware-CHHEn4gi.js +26 -0
- package/dist/{middleware-KK44603T.js → middleware-CXt-a6dH.js} +10 -10
- package/dist/{middleware-hQ-rKnGR.js → middleware-PabOxUwx.js} +13 -13
- package/dist/{mod-DDwnlIlm.d.ts → mod-DPpunL8j.d.ts} +2 -2
- package/dist/{mod-D79SaXL-.d.ts → mod-cz-tNIqP.d.ts} +7 -2
- package/dist/{mod-DM7ZpXF4.d.ts → mod-mSMqo9JU.d.ts} +2 -2
- package/dist/{mod-DwquBB1g.d.ts → mod-tQVUxQ_D.d.ts} +3 -3
- package/dist/mod.d.ts +12 -12
- package/dist/mod.js +10 -10
- package/dist/nodeinfo/client.test.js +5 -5
- package/dist/nodeinfo/handler.test.js +16 -16
- package/dist/nodeinfo/mod.d.ts +2 -2
- package/dist/nodeinfo/mod.js +2 -2
- package/dist/nodeinfo/semver.test.js +3 -3
- package/dist/nodeinfo/types.test.js +3 -3
- package/dist/{owner-fFqUg4lq.d.ts → owner-C12klfeG.d.ts} +3 -3
- package/dist/{owner-D42JugRm.js → owner-D5KsHyuV.js} +2 -2
- package/dist/{proof-CIm_fnDK.js → proof-Bblo4Nm-.js} +2 -2
- package/dist/{proof-wEvE3AbS.js → proof-YncewGYN.js} +3 -3
- package/dist/runtime/authdocloader.test.js +49 -9
- package/dist/runtime/docloader.test.js +60 -4
- package/dist/runtime/key.test.js +5 -5
- package/dist/runtime/langstr.test.js +3 -3
- package/dist/runtime/mod.d.ts +4 -4
- package/dist/runtime/mod.js +6 -6
- package/dist/runtime/multibase/multibase.test.js +3 -3
- package/dist/runtime/url.test.js +3 -3
- package/dist/{send-BRA7aMRV.js → send-BZTUiPC7.js} +2 -2
- package/dist/sig/http.test.js +51 -9
- package/dist/sig/key.test.js +6 -6
- package/dist/sig/ld.test.js +7 -7
- package/dist/sig/mod.d.ts +6 -6
- package/dist/sig/mod.js +6 -6
- package/dist/sig/owner.test.js +7 -7
- package/dist/sig/proof.test.js +7 -7
- package/dist/testing/docloader.test.js +3 -3
- package/dist/testing/mod.d.ts +24 -1
- package/dist/testing/mod.js +3 -3
- package/dist/{testing-C7zAnwt8.js → testing-DaL6N_nG.js} +3 -3
- package/dist/{type-gkozZs_Y.js → type-Bajikogy.js} +202 -205
- package/dist/{types-YGkwBxol.js → types-BuS81dTB.js} +1 -1
- package/dist/vocab/actor.test.js +5 -5
- package/dist/vocab/lookup.test.js +98 -6
- package/dist/vocab/mod.d.ts +4 -4
- package/dist/vocab/mod.js +4 -4
- package/dist/vocab/type.test.js +3 -3
- package/dist/vocab/vocab.test.js +4 -4
- package/dist/{vocab-CA7YwVEz.d.ts → vocab-Ukxjz3TM.d.ts} +1 -1
- package/dist/{vocab-DQ4SEIWh.js → vocab-kRG6ecFm.js} +7 -6
- package/dist/webfinger/handler.test.js +16 -16
- package/dist/webfinger/lookup.test.js +58 -4
- package/dist/webfinger/mod.d.ts +2 -2
- package/dist/webfinger/mod.js +2 -2
- package/dist/x/cfworkers.test.js +3 -3
- package/dist/x/hono.d.ts +9 -9
- package/dist/x/sveltekit.d.ts +9 -9
- package/package.json +1 -1
- package/dist/middleware-BEG0MAZG.js +0 -26
- package/dist/middleware-BtSPPgam.js +0 -17
package/dist/sig/ld.test.js
CHANGED
|
@@ -3,18 +3,18 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { CryptographicKey } from "../type-
|
|
6
|
+
import { CryptographicKey } from "../type-Bajikogy.js";
|
|
7
7
|
import { assertEquals } from "../assert_equals-DSbWqCm3.js";
|
|
8
8
|
import { assert } from "../assert-MZs1qjMx.js";
|
|
9
|
-
import "../lookup-
|
|
10
|
-
import "../actor-
|
|
11
|
-
import { generateCryptoKeyPair } from "../key-
|
|
12
|
-
import { attachSignature, createSignature, detachSignature, signJsonLd, verifyJsonLd, verifySignature } from "../ld-
|
|
13
|
-
import { mockDocumentLoader, test } from "../testing-
|
|
9
|
+
import "../lookup-CVtBGpmR.js";
|
|
10
|
+
import "../actor-BoGD7NTN.js";
|
|
11
|
+
import { generateCryptoKeyPair } from "../key-E7rSdqc6.js";
|
|
12
|
+
import { attachSignature, createSignature, detachSignature, signJsonLd, verifyJsonLd, verifySignature } from "../ld-xAUJDa7n.js";
|
|
13
|
+
import { mockDocumentLoader, test } from "../testing-DaL6N_nG.js";
|
|
14
14
|
import { assertFalse, assertRejects } from "../assert_rejects-DiIiJbZn.js";
|
|
15
15
|
import "../assert_is_error-BPGph1Jx.js";
|
|
16
16
|
import { assertThrows } from "../assert_throws-BOO88avQ.js";
|
|
17
|
-
import { ed25519Multikey, ed25519PrivateKey, rsaPrivateKey2, rsaPrivateKey3, rsaPublicKey2, rsaPublicKey3 } from "../keys
|
|
17
|
+
import { ed25519Multikey, ed25519PrivateKey, rsaPrivateKey2, rsaPrivateKey3, rsaPublicKey2, rsaPublicKey3 } from "../keys-CuWK2Y03.js";
|
|
18
18
|
import { encodeBase64 } from "byte-encodings/base64";
|
|
19
19
|
|
|
20
20
|
//#region src/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
3
|
import "../kv-C7sopW2E.js";
|
|
4
|
-
import "../docloader-
|
|
5
|
-
import "../vocab-
|
|
6
|
-
import "../actor-
|
|
7
|
-
import { FetchKeyOptions, FetchKeyResult, HttpMessageSignaturesSpec, HttpMessageSignaturesSpecDeterminer, KeyCache, SignRequestOptions, VerifyRequestOptions, exportJwk, fetchKey, generateCryptoKeyPair, importJwk, signRequest, verifyRequest } from "../http-
|
|
8
|
-
import { DoesActorOwnKeyOptions, GetKeyOwnerOptions, doesActorOwnKey, getKeyOwner } from "../owner-
|
|
9
|
-
import { CreateProofOptions, CreateSignatureOptions, SignJsonLdOptions, SignObjectOptions, VerifyJsonLdOptions, VerifyObjectOptions, VerifyProofOptions, VerifySignatureOptions, attachSignature, createProof, createSignature, detachSignature, signJsonLd, signObject, verifyJsonLd, verifyObject, verifyProof, verifySignature } from "../mod-
|
|
4
|
+
import "../docloader-CxWcuWqQ.js";
|
|
5
|
+
import "../vocab-Ukxjz3TM.js";
|
|
6
|
+
import "../actor-Uh1YDuVl.js";
|
|
7
|
+
import { FetchKeyOptions, FetchKeyResult, HttpMessageSignaturesSpec, HttpMessageSignaturesSpecDeterminer, KeyCache, SignRequestOptions, VerifyRequestOptions, exportJwk, fetchKey, generateCryptoKeyPair, importJwk, signRequest, verifyRequest } from "../http-DtG44GdM.js";
|
|
8
|
+
import { DoesActorOwnKeyOptions, GetKeyOwnerOptions, doesActorOwnKey, getKeyOwner } from "../owner-C12klfeG.js";
|
|
9
|
+
import { CreateProofOptions, CreateSignatureOptions, SignJsonLdOptions, SignObjectOptions, VerifyJsonLdOptions, VerifyObjectOptions, VerifyProofOptions, VerifySignatureOptions, attachSignature, createProof, createSignature, detachSignature, signJsonLd, signObject, verifyJsonLd, verifyObject, verifyProof, verifySignature } from "../mod-tQVUxQ_D.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, createProof, createSignature, detachSignature, doesActorOwnKey, getKeyOwner, signJsonLd, signObject, verifyJsonLd, verifyObject, verifyProof, verifySignature } from "../proof-
|
|
5
|
+
import "../docloader-BrWrLf03.js";
|
|
6
|
+
import "../actor-ByRaiOPo.js";
|
|
7
|
+
import "../lookup-B4W3OzUX.js";
|
|
8
|
+
import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk } from "../key-UWXjce4t.js";
|
|
9
|
+
import { signRequest, verifyRequest } from "../http-C9jtl8Fq.js";
|
|
10
|
+
import { attachSignature, createProof, createSignature, detachSignature, doesActorOwnKey, getKeyOwner, signJsonLd, signObject, verifyJsonLd, verifyObject, verifyProof, verifySignature } from "../proof-YncewGYN.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,21 +3,21 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { Create } from "../type-
|
|
6
|
+
import { Create } from "../type-Bajikogy.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 { lookupObject } from "../lookup-
|
|
11
|
-
import "../actor-
|
|
12
|
-
import "../key-
|
|
13
|
-
import { doesActorOwnKey, getKeyOwner } from "../owner-
|
|
14
|
-
import { mockDocumentLoader, test } from "../testing-
|
|
10
|
+
import { lookupObject } from "../lookup-CVtBGpmR.js";
|
|
11
|
+
import "../actor-BoGD7NTN.js";
|
|
12
|
+
import "../key-E7rSdqc6.js";
|
|
13
|
+
import { doesActorOwnKey, getKeyOwner } from "../owner-D5KsHyuV.js";
|
|
14
|
+
import { mockDocumentLoader, test } from "../testing-DaL6N_nG.js";
|
|
15
15
|
import "../std__assert-X-_kMxKM.js";
|
|
16
16
|
import { assertFalse } from "../assert_rejects-DiIiJbZn.js";
|
|
17
17
|
import "../assert_is_error-BPGph1Jx.js";
|
|
18
18
|
import "../assert_not_equals-f3m3epl3.js";
|
|
19
19
|
import "../assert_throws-BOO88avQ.js";
|
|
20
|
-
import { rsaPublicKey1, rsaPublicKey2 } from "../keys
|
|
20
|
+
import { rsaPublicKey1, rsaPublicKey2 } from "../keys-CuWK2Y03.js";
|
|
21
21
|
|
|
22
22
|
//#region src/sig/owner.test.ts
|
|
23
23
|
test("doesActorOwnKey()", async () => {
|
package/dist/sig/proof.test.js
CHANGED
|
@@ -3,21 +3,21 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { Create, DataIntegrityProof, Multikey, Note, Place, decode, importMultibaseKey } from "../type-
|
|
6
|
+
import { Create, DataIntegrityProof, Multikey, Note, Place, decode, importMultibaseKey } from "../type-Bajikogy.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 "../lookup-
|
|
11
|
-
import "../actor-
|
|
12
|
-
import "../key-
|
|
13
|
-
import { createProof, signObject, verifyObject, verifyProof } from "../proof-
|
|
14
|
-
import { mockDocumentLoader, test } from "../testing-
|
|
10
|
+
import "../lookup-CVtBGpmR.js";
|
|
11
|
+
import "../actor-BoGD7NTN.js";
|
|
12
|
+
import "../key-E7rSdqc6.js";
|
|
13
|
+
import { createProof, signObject, verifyObject, verifyProof } from "../proof-Bblo4Nm-.js";
|
|
14
|
+
import { mockDocumentLoader, test } from "../testing-DaL6N_nG.js";
|
|
15
15
|
import "../std__assert-X-_kMxKM.js";
|
|
16
16
|
import { assertRejects } from "../assert_rejects-DiIiJbZn.js";
|
|
17
17
|
import "../assert_is_error-BPGph1Jx.js";
|
|
18
18
|
import "../assert_not_equals-f3m3epl3.js";
|
|
19
19
|
import "../assert_throws-BOO88avQ.js";
|
|
20
|
-
import { ed25519Multikey, ed25519PrivateKey, ed25519PublicKey, rsaPrivateKey2, rsaPublicKey2 } from "../keys
|
|
20
|
+
import { ed25519Multikey, ed25519PrivateKey, ed25519PublicKey, rsaPrivateKey2, rsaPublicKey2 } from "../keys-CuWK2Y03.js";
|
|
21
21
|
import { decodeHex, encodeHex } from "byte-encodings/hex";
|
|
22
22
|
|
|
23
23
|
//#region src/sig/proof.test.ts
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import "../type-
|
|
6
|
+
import "../type-Bajikogy.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 "../lookup-
|
|
11
|
-
import { mockDocumentLoader, test } from "../testing-
|
|
10
|
+
import "../lookup-CVtBGpmR.js";
|
|
11
|
+
import { mockDocumentLoader, test } from "../testing-DaL6N_nG.js";
|
|
12
12
|
import "../std__assert-X-_kMxKM.js";
|
|
13
13
|
import "../assert_rejects-DiIiJbZn.js";
|
|
14
14
|
import "../assert_is_error-BPGph1Jx.js";
|
package/dist/testing/mod.d.ts
CHANGED
|
@@ -23,12 +23,24 @@ interface RemoteDocument {
|
|
|
23
23
|
*/
|
|
24
24
|
documentUrl: string;
|
|
25
25
|
}
|
|
26
|
+
/**
|
|
27
|
+
* Options for {@link DocumentLoader}.
|
|
28
|
+
* @since 1.8.0
|
|
29
|
+
*/
|
|
30
|
+
interface DocumentLoaderOptions {
|
|
31
|
+
/**
|
|
32
|
+
* An `AbortSignal` for cancellation.
|
|
33
|
+
* @since 1.8.0
|
|
34
|
+
*/
|
|
35
|
+
signal?: AbortSignal;
|
|
36
|
+
}
|
|
26
37
|
/**
|
|
27
38
|
* A JSON-LD document loader that fetches documents from the Web.
|
|
28
39
|
* @param url The URL of the document to load.
|
|
40
|
+
* @param options The options for the document loader.
|
|
29
41
|
* @returns The loaded remote document.
|
|
30
42
|
*/
|
|
31
|
-
type DocumentLoader = (url: string) => Promise<RemoteDocument>;
|
|
43
|
+
type DocumentLoader = (url: string, options?: DocumentLoaderOptions) => Promise<RemoteDocument>;
|
|
32
44
|
/**
|
|
33
45
|
* A factory function that creates a {@link DocumentLoader} with options.
|
|
34
46
|
* @param options The options for the document loader.
|
|
@@ -6655,6 +6667,11 @@ interface LookupObjectOptions {
|
|
|
6655
6667
|
* @since 1.3.0
|
|
6656
6668
|
*/
|
|
6657
6669
|
tracerProvider?: TracerProvider;
|
|
6670
|
+
/**
|
|
6671
|
+
* AbortSignal for cancelling the request.
|
|
6672
|
+
* @since 1.8.0
|
|
6673
|
+
*/
|
|
6674
|
+
signal?: AbortSignal;
|
|
6658
6675
|
}
|
|
6659
6676
|
/**
|
|
6660
6677
|
* Looks up an ActivityStreams object by its URI (including `acct:` URIs)
|
|
@@ -6822,6 +6839,12 @@ interface LookupWebFingerOptions {
|
|
|
6822
6839
|
* is used.
|
|
6823
6840
|
*/
|
|
6824
6841
|
tracerProvider?: TracerProvider;
|
|
6842
|
+
/**
|
|
6843
|
+
* AbortSignal for cancelling the request.
|
|
6844
|
+
* @since 1.8.0
|
|
6845
|
+
* @
|
|
6846
|
+
*/
|
|
6847
|
+
signal?: AbortSignal;
|
|
6825
6848
|
}
|
|
6826
6849
|
/**
|
|
6827
6850
|
* Looks up a WebFinger resource.
|
package/dist/testing/mod.js
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import "../type-
|
|
7
|
-
import "../lookup-
|
|
8
|
-
import { createInboxContext, createRequestContext, test, testDefinitions } from "../testing-
|
|
6
|
+
import "../type-Bajikogy.js";
|
|
7
|
+
import "../lookup-CVtBGpmR.js";
|
|
8
|
+
import { createInboxContext, createRequestContext, test, testDefinitions } from "../testing-DaL6N_nG.js";
|
|
9
9
|
|
|
10
10
|
export { createInboxContext, createRequestContext, test, testDefinitions };
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { __require, lookupWebFinger } from "./type-
|
|
7
|
-
import { RouterError, lookupObject, traverseCollection } from "./lookup-
|
|
6
|
+
import { __require, lookupWebFinger } from "./type-Bajikogy.js";
|
|
7
|
+
import { RouterError, lookupObject, traverseCollection } from "./lookup-CVtBGpmR.js";
|
|
8
8
|
import { configure, getConsoleSink, getLogger, reset } from "@logtape/logtape";
|
|
9
9
|
import { trace } from "@opentelemetry/api";
|
|
10
10
|
|
|
@@ -22,7 +22,7 @@ const logger = getLogger([
|
|
|
22
22
|
* the file `testing/fixtures/http/example.com/foo/bar` (no suffix) and return
|
|
23
23
|
* its content as the response.
|
|
24
24
|
*/
|
|
25
|
-
async function mockDocumentLoader(resource) {
|
|
25
|
+
async function mockDocumentLoader(resource, _options) {
|
|
26
26
|
const url = new URL(resource);
|
|
27
27
|
if ("navigator" in globalThis && navigator.userAgent === "Cloudflare-Workers") {
|
|
28
28
|
const testUrl = new URL(url);
|