@fedify/fedify 2.0.0-pr.458.1796 → 2.0.0-pr.467.1877
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-DPWo8e6F.cjs → actor-BrMdE_1G.cjs} +185 -185
- package/dist/{actor-D5sOur2R.js → actor-DMbX2bPf.js} +185 -185
- package/dist/{actor-DVMBUtCV.js → actor-DslgGxD8.js} +1 -1
- package/dist/{builder-CExUnivT.js → builder-DvuChHyB.js} +3 -3
- package/dist/compat/mod.d.cts +2 -3
- package/dist/compat/mod.d.ts +2 -3
- package/dist/compat/transformers.test.js +14 -14
- package/dist/{context-DJ8aSy2Q.d.cts → context-PxGADCsD.d.cts} +140 -3
- package/dist/{context-DG0huGW-.d.ts → context-V-XS2_6O.d.ts} +140 -3
- package/dist/{docloader-D0GvHC51.js → docloader-CQCA5QKZ.js} +2 -2
- package/dist/{esm-Dx1ANaUf.js → esm-DVill8zU.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 +15 -15
- package/dist/federation/idempotency.test.js +15 -15
- 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 +16 -16
- package/dist/federation/mod.cjs +7 -7
- package/dist/federation/mod.d.cts +2 -3
- package/dist/federation/mod.d.ts +2 -3
- package/dist/federation/mod.js +7 -7
- package/dist/federation/mq.test.js +6 -4
- 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-DGcqtcol.cjs → http-GjJOLe0t.cjs} +2 -2
- package/dist/{http-Cei_vVzc.js → http-W1mkXyFw.js} +2 -2
- package/dist/{http-BSN6RQOC.js → http-pBJCYh50.js} +2 -2
- package/dist/{inbox-9IhtKqHT.js → inbox-Bk4PjO2V.js} +1 -1
- package/dist/{key-m63kqSGm.js → key-BlPc80ei.js} +2 -2
- package/dist/{keycache-BZvso79n.js → keycache-qku87Evf.js} +1 -1
- package/dist/{keys-C3Onp7Fd.js → keys-CXQWhBgw.js} +1 -1
- package/dist/{kv-cache--RKYzX3Q.js → kv-cache-BGGmyOF-.js} +1 -1
- package/dist/{kv-cache-tUGFCM0H.cjs → kv-cache-BGfFfQma.cjs} +1 -1
- package/dist/{ld-BkW6zBWj.js → ld-CQj76XXM.js} +2 -2
- package/dist/{lookup-DkCTtfbf.cjs → lookup-BahLrzT6.cjs} +3 -8
- package/dist/{lookup-DgpTsAyI.js → lookup-CUj1Ayf2.js} +187 -192
- package/dist/{lookup-Bl3pwcyk.js → lookup-ZLHmgBj5.js} +3 -8
- package/dist/{middleware-By89ws1y.js → middleware-4BJL-9x8.js} +11 -11
- package/dist/middleware-BLZsPbCt.js +15 -0
- package/dist/{middleware-Cs-UBi-8.cjs → middleware-CCBsGJcn.cjs} +7 -7
- package/dist/middleware-D8qnhAFG.cjs +15 -0
- package/dist/{middleware-BKkWaVlz.js → middleware-DXsuKk_U.js} +7 -7
- package/dist/middleware-Dw-pChHQ.js +26 -0
- package/dist/{mod-DJcZDvjA.d.cts → mod-BoRKfJPE.d.cts} +1 -1
- package/dist/{mod-BoHnwOCs.d.ts → mod-Cdo6SYlJ.d.ts} +1 -1
- package/dist/mod.cjs +7 -7
- package/dist/mod.d.cts +5 -6
- package/dist/mod.d.ts +5 -6
- package/dist/mod.js +7 -7
- package/dist/nodeinfo/client.test.js +3 -3
- package/dist/nodeinfo/handler.test.js +14 -14
- package/dist/nodeinfo/mod.d.cts +1 -1
- package/dist/nodeinfo/mod.d.ts +1 -1
- package/dist/nodeinfo/types.test.js +2 -2
- package/dist/{owner-BVcVlOj2.js → owner-Buqg_Myf.js} +2 -2
- package/dist/{proof-pdiYnkHt.js → proof-AxiARBr_.js} +2 -2
- package/dist/{proof-DHvk0L4Q.js → proof-DJjdTnEN.js} +3 -3
- package/dist/{proof-BO4lGs3o.cjs → proof-DizHNX8y.cjs} +3 -3
- package/dist/{send-BJrafhoh.js → send-B9ByF5wN.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 +4 -4
- package/dist/sig/mod.d.cts +1 -1
- package/dist/sig/mod.d.ts +1 -1
- package/dist/sig/mod.js +4 -4
- 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.js +2 -2
- package/dist/{testing-DQu183XY.js → testing-vN3EpiIw.js} +1 -1
- package/dist/utils/docloader.test.js +8 -8
- package/dist/utils/kv-cache.test.js +2 -2
- package/dist/utils/mod.cjs +4 -4
- package/dist/utils/mod.d.cts +1 -1
- package/dist/utils/mod.d.ts +1 -1
- package/dist/utils/mod.js +4 -4
- package/dist/vocab/actor.test.js +4 -4
- package/dist/vocab/lookup.test.js +3 -3
- package/dist/vocab/mod.cjs +3 -3
- package/dist/vocab/mod.js +3 -3
- package/dist/vocab/type.test.js +2 -2
- package/dist/vocab/vocab.test.js +3 -3
- package/dist/{vocab-D7w9PSpd.js → vocab-CdguqeJf.js} +2 -2
- package/dist/{vocab-DPJyg4oW.cjs → vocab-DEaLWwSP.cjs} +2 -2
- package/dist/webfinger/handler.test.js +14 -14
- package/dist/webfinger/lookup.test.js +3 -3
- package/dist/webfinger/mod.cjs +1 -1
- package/dist/webfinger/mod.js +1 -1
- package/package.json +5 -36
- package/dist/denokv-CCssOzMJ.js +0 -57
- package/dist/middleware-C4qOO14D.js +0 -26
- package/dist/middleware-CGfrkoHW.js +0 -15
- package/dist/middleware-CsQiHdGR.cjs +0 -15
- package/dist/mq-CUKlBw08.d.ts +0 -143
- package/dist/mq-DcJPkXD5.d.cts +0 -140
- package/dist/vocab/schema.yaml +0 -247
- package/dist/x/cfworkers.cjs +0 -100
- package/dist/x/cfworkers.d.cts +0 -59
- package/dist/x/cfworkers.d.ts +0 -61
- package/dist/x/cfworkers.js +0 -98
- package/dist/x/cfworkers.test.d.ts +0 -3
- package/dist/x/cfworkers.test.js +0 -177
- package/dist/x/hono.cjs +0 -61
- package/dist/x/hono.d.cts +0 -53
- package/dist/x/hono.d.ts +0 -55
- package/dist/x/hono.js +0 -60
- package/dist/x/sveltekit.cjs +0 -69
- package/dist/x/sveltekit.d.cts +0 -45
- package/dist/x/sveltekit.d.ts +0 -47
- package/dist/x/sveltekit.js +0 -68
- /package/dist/{mod-C2tOeRkN.d.cts → mod-CcDPcLJW.d.cts} +0 -0
- /package/dist/{mod-B2iOw50L.d.ts → mod-D5Z2tISD.d.ts} +0 -0
- /package/dist/{mod-0noXw66R.d.cts → mod-DMpuiKXi.d.cts} +0 -0
- /package/dist/{mod-DgdBYYa0.d.cts → mod-DgxG-byT.d.cts} +0 -0
- /package/dist/{mod-B9M-8jm2.d.ts → mod-aAE2wOWV.d.ts} +0 -0
- /package/dist/{mod-xIj-IT58.d.ts → mod-bjzj5QIb.d.ts} +0 -0
package/dist/sig/mod.d.ts
CHANGED
|
@@ -4,5 +4,5 @@ import "../vocab-BCWe1Ih5.js";
|
|
|
4
4
|
import "../actor-DqFajh9s.js";
|
|
5
5
|
import { FetchKeyOptions, FetchKeyResult, HttpMessageSignaturesSpec, HttpMessageSignaturesSpecDeterminer, KeyCache, SignRequestOptions, VerifyRequestOptions, exportJwk, fetchKey, generateCryptoKeyPair, importJwk, signRequest, verifyRequest } from "../http-BbO0ejuk.js";
|
|
6
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-
|
|
7
|
+
import { CreateProofOptions, CreateSignatureOptions, SignJsonLdOptions, SignObjectOptions, VerifyJsonLdOptions, VerifyObjectOptions, VerifyProofOptions, VerifySignatureOptions, attachSignature, createProof, createSignature, detachSignature, signJsonLd, signObject, verifyJsonLd, verifyObject, verifyProof, verifySignature } from "../mod-D5Z2tISD.js";
|
|
8
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,10 +2,10 @@
|
|
|
2
2
|
import { Temporal } from "@js-temporal/polyfill";
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
|
|
5
|
-
import "../lookup-
|
|
6
|
-
import "../actor-
|
|
7
|
-
import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk, signRequest, verifyRequest } from "../http-
|
|
8
|
-
import { attachSignature, createProof, createSignature, detachSignature, doesActorOwnKey, getKeyOwner, signJsonLd, signObject, verifyJsonLd, verifyObject, verifyProof, verifySignature } from "../proof-
|
|
5
|
+
import "../lookup-ZLHmgBj5.js";
|
|
6
|
+
import "../actor-DMbX2bPf.js";
|
|
7
|
+
import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk, signRequest, verifyRequest } from "../http-W1mkXyFw.js";
|
|
8
|
+
import { attachSignature, createProof, createSignature, detachSignature, doesActorOwnKey, getKeyOwner, signJsonLd, signObject, verifyJsonLd, verifyObject, verifyProof, verifySignature } from "../proof-DJjdTnEN.js";
|
|
9
9
|
import "../sig-C34-oHBl.js";
|
|
10
10
|
|
|
11
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-CUj1Ayf2.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-DslgGxD8.js";
|
|
11
|
+
import "../key-BlPc80ei.js";
|
|
12
|
+
import { doesActorOwnKey, getKeyOwner } from "../owner-Buqg_Myf.js";
|
|
13
|
+
import { mockDocumentLoader, test } from "../testing-vN3EpiIw.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-CXQWhBgw.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-CUj1Ayf2.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-DslgGxD8.js";
|
|
11
|
+
import "../key-BlPc80ei.js";
|
|
12
|
+
import { createProof, signObject, verifyObject, verifyProof } from "../proof-AxiARBr_.js";
|
|
13
|
+
import { mockDocumentLoader, test } from "../testing-vN3EpiIw.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-CXQWhBgw.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-CUj1Ayf2.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-vN3EpiIw.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.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-CUj1Ayf2.js";
|
|
7
|
+
import { createInboxContext, createRequestContext, test, testDefinitions } from "../testing-vN3EpiIw.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-CUj1Ayf2.js";
|
|
7
7
|
import { configure, getConsoleSink, getLogger, reset } from "@logtape/logtape";
|
|
8
8
|
import { trace } from "@opentelemetry/api";
|
|
9
9
|
|
|
@@ -3,21 +3,21 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import "../lookup-
|
|
6
|
+
import "../lookup-CUj1Ayf2.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-DslgGxD8.js";
|
|
11
|
+
import "../key-BlPc80ei.js";
|
|
12
|
+
import { verifyRequest } from "../http-pBJCYh50.js";
|
|
13
|
+
import { getAuthenticatedDocumentLoader } from "../docloader-CQCA5QKZ.js";
|
|
14
|
+
import { mockDocumentLoader, test } from "../testing-vN3EpiIw.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-CXQWhBgw.js";
|
|
20
|
+
import { esm_default } from "../esm-DVill8zU.js";
|
|
21
21
|
import { UrlError } from "@fedify/vocab-runtime";
|
|
22
22
|
|
|
23
23
|
//#region src/utils/docloader.test.ts
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import "../lookup-
|
|
6
|
+
import "../lookup-CUj1Ayf2.js";
|
|
7
7
|
import { MockKvStore, kvCache } from "../kv-cache-DN9pfMBe.js";
|
|
8
|
-
import { mockDocumentLoader, test } from "../testing-
|
|
8
|
+
import { mockDocumentLoader, test } from "../testing-vN3EpiIw.js";
|
|
9
9
|
import { preloadedContexts } from "@fedify/vocab-runtime";
|
|
10
10
|
import { deepStrictEqual, throws } from "node:assert";
|
|
11
11
|
|
package/dist/utils/mod.cjs
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
const { Temporal } = require("@js-temporal/polyfill");
|
|
3
3
|
const { URLPattern } = require("urlpattern-polyfill");
|
|
4
4
|
|
|
5
|
-
require('../lookup-
|
|
6
|
-
require('../actor-
|
|
7
|
-
require('../http-
|
|
8
|
-
const require_kv_cache = require('../kv-cache-
|
|
5
|
+
require('../lookup-BahLrzT6.cjs');
|
|
6
|
+
require('../actor-BrMdE_1G.cjs');
|
|
7
|
+
require('../http-GjJOLe0t.cjs');
|
|
8
|
+
const require_kv_cache = require('../kv-cache-BGfFfQma.cjs');
|
|
9
9
|
require('../utils-DyRU1gdZ.cjs');
|
|
10
10
|
|
|
11
11
|
exports.getAuthenticatedDocumentLoader = require_kv_cache.getAuthenticatedDocumentLoader;
|
package/dist/utils/mod.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "../vocab-CeDBzu-f.cjs";
|
|
2
2
|
import "../http-M8k5mKc0.cjs";
|
|
3
3
|
import "../kv-Bxr0Q87_.cjs";
|
|
4
|
-
import { getAuthenticatedDocumentLoader, kvCache } from "../mod-
|
|
4
|
+
import { getAuthenticatedDocumentLoader, kvCache } from "../mod-DMpuiKXi.cjs";
|
|
5
5
|
export { getAuthenticatedDocumentLoader, kvCache };
|
package/dist/utils/mod.d.ts
CHANGED
|
@@ -3,5 +3,5 @@ import { URLPattern } from "urlpattern-polyfill";
|
|
|
3
3
|
import "../vocab-BCWe1Ih5.js";
|
|
4
4
|
import "../http-BbO0ejuk.js";
|
|
5
5
|
import "../kv-BKNZ-Tb-.js";
|
|
6
|
-
import { getAuthenticatedDocumentLoader, kvCache } from "../mod-
|
|
6
|
+
import { getAuthenticatedDocumentLoader, kvCache } from "../mod-aAE2wOWV.js";
|
|
7
7
|
export { getAuthenticatedDocumentLoader, kvCache };
|
package/dist/utils/mod.js
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import { Temporal } from "@js-temporal/polyfill";
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
|
|
5
|
-
import "../lookup-
|
|
6
|
-
import "../actor-
|
|
7
|
-
import "../http-
|
|
8
|
-
import { getAuthenticatedDocumentLoader, kvCache } from "../kv-cache
|
|
5
|
+
import "../lookup-ZLHmgBj5.js";
|
|
6
|
+
import "../actor-DMbX2bPf.js";
|
|
7
|
+
import "../http-W1mkXyFw.js";
|
|
8
|
+
import { getAuthenticatedDocumentLoader, kvCache } from "../kv-cache-BGGmyOF-.js";
|
|
9
9
|
import "../utils-D-Va7aXC.js";
|
|
10
10
|
|
|
11
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-CUj1Ayf2.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-DslgGxD8.js";
|
|
11
|
+
import { test } from "../testing-vN3EpiIw.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-DVill8zU.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-CUj1Ayf2.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-vN3EpiIw.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-DVill8zU.js";
|
|
16
16
|
|
|
17
17
|
//#region src/vocab/lookup.test.ts
|
|
18
18
|
test("lookupObject()", {
|
package/dist/vocab/mod.cjs
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
const { Temporal } = require("@js-temporal/polyfill");
|
|
3
3
|
const { URLPattern } = require("urlpattern-polyfill");
|
|
4
4
|
|
|
5
|
-
require('../lookup-
|
|
6
|
-
const require_actor = require('../actor-
|
|
7
|
-
const require_vocab = require('../vocab-
|
|
5
|
+
require('../lookup-BahLrzT6.cjs');
|
|
6
|
+
const require_actor = require('../actor-BrMdE_1G.cjs');
|
|
7
|
+
const require_vocab = require('../vocab-DEaLWwSP.cjs');
|
|
8
8
|
|
|
9
9
|
exports.Accept = require_actor.Accept;
|
|
10
10
|
exports.Activity = require_actor.Activity;
|
package/dist/vocab/mod.js
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import { Temporal } from "@js-temporal/polyfill";
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
|
|
5
|
-
import "../lookup-
|
|
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 { PUBLIC_COLLECTION, isFediverseHandle, lookupObject, parseFediverseHandle, toAcctUrl, traverseCollection } from "../vocab-
|
|
5
|
+
import "../lookup-ZLHmgBj5.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-DMbX2bPf.js";
|
|
7
|
+
import { PUBLIC_COLLECTION, isFediverseHandle, lookupObject, parseFediverseHandle, toAcctUrl, traverseCollection } from "../vocab-CdguqeJf.js";
|
|
8
8
|
|
|
9
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-CUj1Ayf2.js";
|
|
7
7
|
import { assertEquals } from "../assert_equals-DSbWqCm3.js";
|
|
8
|
-
import { test } from "../testing-
|
|
8
|
+
import { test } from "../testing-vN3EpiIw.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, __commonJS, __require, __toESM, vocab_exports } from "../lookup-
|
|
6
|
+
import { Activity, Announce, Collection, Create, CryptographicKey, Follow, Hashtag, Link, Note, Object as Object$1, OrderedCollectionPage, Person, Place, Question, Source, __commonJS, __require, __toESM, vocab_exports } from "../lookup-CUj1Ayf2.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-vN3EpiIw.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-CXQWhBgw.js";
|
|
16
16
|
import { pascalCase } from "es-toolkit";
|
|
17
17
|
import { LanguageString, decodeMultibase } from "@fedify/vocab-runtime";
|
|
18
18
|
import { fileURLToPath } from "node:url";
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import { Temporal } from "@js-temporal/polyfill";
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
|
|
5
|
-
import { deno_default, lookupWebFinger } from "./lookup-
|
|
6
|
-
import { Object as Object$1, getTypeId } from "./actor-
|
|
5
|
+
import { deno_default, lookupWebFinger } from "./lookup-ZLHmgBj5.js";
|
|
6
|
+
import { Object as Object$1, getTypeId } from "./actor-DMbX2bPf.js";
|
|
7
7
|
import { getLogger } from "@logtape/logtape";
|
|
8
8
|
import { SpanStatusCode, trace } from "@opentelemetry/api";
|
|
9
9
|
import { getDocumentLoader } from "@fedify/vocab-runtime";
|
|
@@ -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_lookup = require('./lookup-
|
|
7
|
-
const require_actor = require('./actor-
|
|
6
|
+
const require_lookup = require('./lookup-BahLrzT6.cjs');
|
|
7
|
+
const require_actor = require('./actor-BrMdE_1G.cjs');
|
|
8
8
|
const __logtape_logtape = require_chunk.__toESM(require("@logtape/logtape"));
|
|
9
9
|
const __opentelemetry_api = require_chunk.__toESM(require("@opentelemetry/api"));
|
|
10
10
|
const __fedify_vocab_runtime = require_chunk.__toESM(require("@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-CUj1Ayf2.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-
|
|
11
|
+
import { createFederation, handleWebFinger } from "../middleware-4BJL-9x8.js";
|
|
12
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-
|
|
14
|
+
import "../actor-DslgGxD8.js";
|
|
15
|
+
import "../key-BlPc80ei.js";
|
|
16
|
+
import "../http-pBJCYh50.js";
|
|
17
|
+
import "../ld-CQj76XXM.js";
|
|
18
|
+
import "../owner-Buqg_Myf.js";
|
|
19
|
+
import "../proof-AxiARBr_.js";
|
|
20
|
+
import "../docloader-CQCA5QKZ.js";
|
|
21
21
|
import "../kv-cache-DN9pfMBe.js";
|
|
22
|
-
import "../inbox-
|
|
23
|
-
import "../builder-
|
|
22
|
+
import "../inbox-Bk4PjO2V.js";
|
|
23
|
+
import "../builder-DvuChHyB.js";
|
|
24
24
|
import "../collection-BzWsN9pB.js";
|
|
25
|
-
import "../keycache-
|
|
25
|
+
import "../keycache-qku87Evf.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-B9ByF5wN.js";
|
|
29
|
+
import { createRequestContext, test } from "../testing-vN3EpiIw.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-CUj1Ayf2.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-vN3EpiIw.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-DVill8zU.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,7 +2,7 @@
|
|
|
2
2
|
const { Temporal } = require("@js-temporal/polyfill");
|
|
3
3
|
const { URLPattern } = require("urlpattern-polyfill");
|
|
4
4
|
|
|
5
|
-
const require_lookup = require('../lookup-
|
|
5
|
+
const require_lookup = require('../lookup-BahLrzT6.cjs');
|
|
6
6
|
require('../webfinger-vAtLmxOF.cjs');
|
|
7
7
|
|
|
8
8
|
exports.lookupWebFinger = require_lookup.lookupWebFinger;
|
package/dist/webfinger/mod.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { Temporal } from "@js-temporal/polyfill";
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
|
|
5
|
-
import { lookupWebFinger } from "../lookup-
|
|
5
|
+
import { lookupWebFinger } from "../lookup-ZLHmgBj5.js";
|
|
6
6
|
import "../webfinger-C72Y8lrh.js";
|
|
7
7
|
|
|
8
8
|
export { lookupWebFinger };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fedify/fedify",
|
|
3
|
-
"version": "2.0.0-pr.
|
|
3
|
+
"version": "2.0.0-pr.467.1877+dc12636d",
|
|
4
4
|
"description": "An ActivityPub server framework",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ActivityPub",
|
|
@@ -117,36 +117,6 @@
|
|
|
117
117
|
"import": "./dist/webfinger/mod.js",
|
|
118
118
|
"require": "./dist/webfinger/mod.cjs",
|
|
119
119
|
"default": "./dist/webfinger/mod.js"
|
|
120
|
-
},
|
|
121
|
-
"./x/cfworkers": {
|
|
122
|
-
"types": {
|
|
123
|
-
"import": "./dist/x/cfworkers.d.ts",
|
|
124
|
-
"require": "./dist/x/cfworkers.d.cts",
|
|
125
|
-
"default": "./dist/x/cfworkers.d.ts"
|
|
126
|
-
},
|
|
127
|
-
"import": "./dist/x/cfworkers.js",
|
|
128
|
-
"require": "./dist/x/cfworkers.cjs",
|
|
129
|
-
"default": "./dist/x/cfworkers.js"
|
|
130
|
-
},
|
|
131
|
-
"./x/hono": {
|
|
132
|
-
"types": {
|
|
133
|
-
"import": "./dist/x/hono.d.ts",
|
|
134
|
-
"require": "./dist/x/hono.d.cts",
|
|
135
|
-
"default": "./dist/x/hono.d.ts"
|
|
136
|
-
},
|
|
137
|
-
"import": "./dist/x/hono.js",
|
|
138
|
-
"require": "./dist/x/hono.cjs",
|
|
139
|
-
"default": "./dist/x/hono.js"
|
|
140
|
-
},
|
|
141
|
-
"./x/sveltekit": {
|
|
142
|
-
"types": {
|
|
143
|
-
"import": "./dist/x/sveltekit.d.ts",
|
|
144
|
-
"require": "./dist/x/sveltekit.d.cts",
|
|
145
|
-
"default": "./dist/x/sveltekit.d.ts"
|
|
146
|
-
},
|
|
147
|
-
"import": "./dist/x/sveltekit.js",
|
|
148
|
-
"require": "./dist/x/sveltekit.cjs",
|
|
149
|
-
"default": "./dist/x/sveltekit.js"
|
|
150
120
|
}
|
|
151
121
|
},
|
|
152
122
|
"dependencies": {
|
|
@@ -163,13 +133,12 @@
|
|
|
163
133
|
"multicodec": "^3.2.1",
|
|
164
134
|
"pkijs": "^3.2.4",
|
|
165
135
|
"structured-field-values": "^2.0.4",
|
|
166
|
-
"uri-template-router": "^0.0
|
|
136
|
+
"uri-template-router": "^1.0.0",
|
|
167
137
|
"url-template": "^3.1.1",
|
|
168
138
|
"urlpattern-polyfill": "^10.1.0",
|
|
169
|
-
"@fedify/vocab-runtime": "2.0.0-pr.
|
|
139
|
+
"@fedify/vocab-runtime": "2.0.0-pr.467.1877+dc12636d"
|
|
170
140
|
},
|
|
171
141
|
"devDependencies": {
|
|
172
|
-
"@cloudflare/workers-types": "^4.20250529.0",
|
|
173
142
|
"@std/assert": "npm:@jsr/std__assert@^0.226.0",
|
|
174
143
|
"@std/path": "npm:@jsr/std__path@^1.0.6",
|
|
175
144
|
"@std/url": "npm:@jsr/std__url@1.0.0-rc.3",
|
|
@@ -180,9 +149,9 @@
|
|
|
180
149
|
"miniflare": "^4.20250523.0",
|
|
181
150
|
"tsdown": "^0.12.9",
|
|
182
151
|
"tsx": "^4.19.4",
|
|
183
|
-
"typescript": "^5.9.
|
|
152
|
+
"typescript": "^5.9.3",
|
|
184
153
|
"wrangler": "^4.17.0",
|
|
185
|
-
"@fedify/vocab-tools": "^2.0.0-pr.
|
|
154
|
+
"@fedify/vocab-tools": "^2.0.0-pr.467.1877+dc12636d"
|
|
186
155
|
},
|
|
187
156
|
"scripts": {
|
|
188
157
|
"build": "deno task codegen && pnpm run --filter vocab-runtime build && pnpm run --filter vocab-tools build && tsdown",
|
package/dist/denokv-CCssOzMJ.js
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import { Temporal } from "@js-temporal/polyfill";
|
|
3
|
-
import { URLPattern } from "urlpattern-polyfill";
|
|
4
|
-
globalThis.addEventListener = () => {};
|
|
5
|
-
|
|
6
|
-
import { isEqual } from "es-toolkit";
|
|
7
|
-
import { getLogger } from "@logtape/logtape";
|
|
8
|
-
|
|
9
|
-
//#region src/x/denokv.ts
|
|
10
|
-
/**
|
|
11
|
-
* Represents a message queue adapter that uses Deno KV store.
|
|
12
|
-
*
|
|
13
|
-
* @deprecated This class has been moved to `@fedify/denokv` package.
|
|
14
|
-
* Import `DenoKvMessageQueue` from `@fedify/denokv` instead.
|
|
15
|
-
* This class will be removed in Fedify v2.0.
|
|
16
|
-
*/
|
|
17
|
-
var DenoKvMessageQueue = class {
|
|
18
|
-
#kv;
|
|
19
|
-
/**
|
|
20
|
-
* Deno KV queues provide automatic retry with exponential backoff.
|
|
21
|
-
* @since 1.7.0
|
|
22
|
-
*/
|
|
23
|
-
nativeRetrial = true;
|
|
24
|
-
/**
|
|
25
|
-
* Constructs a new {@link DenoKvMessageQueue} adapter with the given Deno KV
|
|
26
|
-
* store.
|
|
27
|
-
* @param kv The Deno KV store to use.
|
|
28
|
-
*/
|
|
29
|
-
constructor(kv) {
|
|
30
|
-
const logger = getLogger(["fedify", "denokv"]);
|
|
31
|
-
logger.warn("The `@fedify/fedify/x/denokv` module is deprecated; use `DenoKvMessageQueue` from `@fedify/denokv` package instead.");
|
|
32
|
-
this.#kv = kv;
|
|
33
|
-
}
|
|
34
|
-
async enqueue(message, options) {
|
|
35
|
-
await this.#kv.enqueue(message, options?.delay == null ? void 0 : { delay: Math.max(options.delay.total("millisecond"), 0) });
|
|
36
|
-
}
|
|
37
|
-
listen(handler, options = {}) {
|
|
38
|
-
options.signal?.addEventListener("abort", () => {
|
|
39
|
-
try {
|
|
40
|
-
this.#kv.close();
|
|
41
|
-
} catch (e) {
|
|
42
|
-
if (!(e instanceof Deno.errors.BadResource)) throw e;
|
|
43
|
-
}
|
|
44
|
-
}, { once: true });
|
|
45
|
-
return this.#kv.listenQueue(handler);
|
|
46
|
-
}
|
|
47
|
-
[Symbol.dispose]() {
|
|
48
|
-
try {
|
|
49
|
-
this.#kv.close();
|
|
50
|
-
} catch (e) {
|
|
51
|
-
if (!(e instanceof Deno.errors.BadResource)) throw e;
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
};
|
|
55
|
-
|
|
56
|
-
//#endregion
|
|
57
|
-
export { DenoKvMessageQueue };
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import { Temporal } from "@js-temporal/polyfill";
|
|
3
|
-
import { URLPattern } from "urlpattern-polyfill";
|
|
4
|
-
globalThis.addEventListener = () => {};
|
|
5
|
-
|
|
6
|
-
import "./lookup-DgpTsAyI.js";
|
|
7
|
-
import { ContextImpl, FederationImpl, InboxContextImpl, KvSpecDeterminer, createFederation } from "./middleware-By89ws1y.js";
|
|
8
|
-
import "./client-pY7-3icS.js";
|
|
9
|
-
import "./types-C2XVl6gj.js";
|
|
10
|
-
import "./actor-DVMBUtCV.js";
|
|
11
|
-
import "./key-m63kqSGm.js";
|
|
12
|
-
import "./http-BSN6RQOC.js";
|
|
13
|
-
import "./ld-BkW6zBWj.js";
|
|
14
|
-
import "./owner-BVcVlOj2.js";
|
|
15
|
-
import "./proof-pdiYnkHt.js";
|
|
16
|
-
import "./docloader-D0GvHC51.js";
|
|
17
|
-
import "./kv-cache-DN9pfMBe.js";
|
|
18
|
-
import "./inbox-9IhtKqHT.js";
|
|
19
|
-
import "./builder-CExUnivT.js";
|
|
20
|
-
import "./collection-BzWsN9pB.js";
|
|
21
|
-
import "./keycache-BZvso79n.js";
|
|
22
|
-
import "./negotiation-C4nFufNk.js";
|
|
23
|
-
import "./retry-CfF8Gn4d.js";
|
|
24
|
-
import "./send-BJrafhoh.js";
|
|
25
|
-
|
|
26
|
-
export { FederationImpl };
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import { Temporal } from "@js-temporal/polyfill";
|
|
3
|
-
import { URLPattern } from "urlpattern-polyfill";
|
|
4
|
-
|
|
5
|
-
import "./transformers-BFT6d7J5.js";
|
|
6
|
-
import "./lookup-Bl3pwcyk.js";
|
|
7
|
-
import "./actor-D5sOur2R.js";
|
|
8
|
-
import { ContextImpl, FederationImpl, InboxContextImpl, KvSpecDeterminer, createFederation } from "./middleware-BKkWaVlz.js";
|
|
9
|
-
import "./http-Cei_vVzc.js";
|
|
10
|
-
import "./proof-DHvk0L4Q.js";
|
|
11
|
-
import "./types-BtUjyi5y.js";
|
|
12
|
-
import "./kv-cache--RKYzX3Q.js";
|
|
13
|
-
import "./vocab-D7w9PSpd.js";
|
|
14
|
-
|
|
15
|
-
export { FederationImpl };
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
const { Temporal } = require("@js-temporal/polyfill");
|
|
3
|
-
const { URLPattern } = require("urlpattern-polyfill");
|
|
4
|
-
|
|
5
|
-
require('./transformers-CoBS-oFG.cjs');
|
|
6
|
-
require('./lookup-DkCTtfbf.cjs');
|
|
7
|
-
require('./actor-DPWo8e6F.cjs');
|
|
8
|
-
const require_middleware = require('./middleware-Cs-UBi-8.cjs');
|
|
9
|
-
require('./http-DGcqtcol.cjs');
|
|
10
|
-
require('./proof-BO4lGs3o.cjs');
|
|
11
|
-
require('./types-CWgzGaqk.cjs');
|
|
12
|
-
require('./kv-cache-tUGFCM0H.cjs');
|
|
13
|
-
require('./vocab-DPJyg4oW.cjs');
|
|
14
|
-
|
|
15
|
-
exports.FederationImpl = require_middleware.FederationImpl;
|