@fedify/fedify 2.0.0-dev.161 → 2.0.0-dev.166
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/{builder-CulJ6Oa9.js → builder-Khy2m25E.js} +3 -3
- package/dist/{client-BivSNrEg.d.ts → client-CUTUGgvJ.d.ts} +18 -18
- package/dist/{client-CgMTXmAD.js → client-Dg7OfUDA.js} +27 -22
- package/dist/{client-94iWEfQa.d.cts → client-by-PEGAJ.d.cts} +18 -18
- package/dist/compat/mod.d.cts +4 -4
- package/dist/compat/mod.d.ts +4 -4
- package/dist/compat/transformers.test.js +13 -13
- package/dist/{context-CYZ2i00R.d.ts → context-C7vzWilY.d.ts} +58 -58
- package/dist/{context-D2MrtLch.d.cts → context-CrB9RFy5.d.cts} +58 -58
- package/dist/{deno-DIwNGswC.js → deno-Cif1-iL_.js} +1 -1
- package/dist/{docloader-D2992pGD.js → docloader-CVaWaEcp.js} +2 -2
- package/dist/federation/builder.test.js +3 -3
- package/dist/federation/handler.test.js +13 -13
- package/dist/federation/idempotency.test.js +13 -13
- package/dist/federation/inbox.test.js +2 -2
- package/dist/federation/middleware.test.js +13 -13
- package/dist/federation/mod.cjs +5 -5
- package/dist/federation/mod.d.cts +4 -4
- package/dist/federation/mod.d.ts +4 -4
- package/dist/federation/mod.js +5 -5
- package/dist/federation/send.test.js +5 -5
- package/dist/federation/webfinger.test.js +13 -13
- package/dist/{http-BV9SKFK0.js → http-B99rtXjf.js} +2 -2
- package/dist/{http-3fEbsHa0.js → http-CY-Bbe9s.js} +1 -1
- package/dist/{http-C06iL_Qv.cjs → http-DfyrqzT4.cjs} +1 -1
- package/dist/{inbox-DCV2fS3F.js → inbox-BC3B2xqc.js} +1 -1
- package/dist/{key-Bdc11xlQ.js → key-Bw4eVboO.js} +1 -1
- package/dist/{kv-D8q9fLkA.d.cts → kv-B4vFhIYL.d.cts} +2 -2
- package/dist/{kv-CtOmTRNc.d.ts → kv-CYySNrsn.d.ts} +2 -2
- package/dist/{kv-cache-B4-ASVht.js → kv-cache-BCsLgQXU.js} +1 -1
- package/dist/{kv-cache-CQjPwWHu.cjs → kv-cache-Cerg94jw.cjs} +1 -1
- package/dist/{ld-C7be04RF.js → ld-1OEVoX2N.js} +2 -2
- package/dist/{middleware-C4_a2DNI.js → middleware-7qNi2Qwp.js} +9 -10
- package/dist/{middleware-9RlUwILK.js → middleware-B7mdNwwo.js} +5 -5
- package/dist/{middleware-C3xnTI2Z.js → middleware-CQv0UNYy.js} +16 -17
- package/dist/{middleware-B_mOdzoC.cjs → middleware-CvNusBTn.cjs} +9 -10
- package/dist/middleware-Dem4kH_q.js +26 -0
- package/dist/middleware-TgcMW8QT.cjs +12 -0
- package/dist/{mod-DcPRcifg.d.cts → mod-0p9zUdzg.d.cts} +5 -5
- package/dist/{mod-CS-MS7gZ.d.cts → mod-0qnPv4EC.d.cts} +1 -1
- package/dist/{mod-DqFSzJA0.d.ts → mod-C3SOvTD1.d.ts} +1 -1
- package/dist/{mod-CNNTHyBC.d.cts → mod-D6pS5_xJ.d.cts} +1 -1
- package/dist/{mod-D_cmv2il.d.ts → mod-waqu-BL_.d.ts} +1 -1
- package/dist/{mod-CJgbdSqb.d.ts → mod-xc20HhMD.d.ts} +5 -5
- package/dist/mod.cjs +5 -5
- package/dist/mod.d.cts +6 -6
- package/dist/mod.d.ts +6 -6
- package/dist/mod.js +5 -5
- package/dist/nodeinfo/client.test.js +1 -1
- package/dist/nodeinfo/handler.test.js +13 -13
- package/dist/nodeinfo/mod.cjs +1 -1
- package/dist/nodeinfo/mod.d.cts +1 -1
- package/dist/nodeinfo/mod.d.ts +1 -1
- package/dist/nodeinfo/mod.js +1 -1
- package/dist/nodeinfo/types.test.js +1 -1
- package/dist/otel/exporter.test.js +7 -13
- package/dist/otel/mod.cjs +7 -13
- package/dist/otel/mod.d.cts +22 -22
- package/dist/otel/mod.d.ts +22 -22
- package/dist/otel/mod.js +7 -13
- package/dist/{owner-Bs5Y5twE.js → owner-w_YNARRI.js} +1 -1
- package/dist/{proof-CFwktc0B.js → proof-C8vStykH.js} +2 -2
- package/dist/{proof-CaA7ysDp.cjs → proof-CJZ5gNjq.cjs} +1 -1
- package/dist/{proof-C-751PeN.js → proof-aPT2G2bY.js} +1 -1
- package/dist/{send-C288Vw8b.js → send-C77cZsvd.js} +2 -2
- package/dist/sig/http.test.js +3 -3
- package/dist/sig/key.test.js +2 -2
- package/dist/sig/ld.test.js +3 -3
- package/dist/sig/mod.cjs +2 -2
- package/dist/sig/mod.js +2 -2
- package/dist/sig/owner.test.js +3 -3
- package/dist/sig/proof.test.js +3 -3
- package/dist/testing/mod.d.ts +64 -64
- package/dist/{types-hKTi53FO.js → types-8l28uC8o.js} +30 -25
- package/dist/{types-Q-qkJXBV.cjs → types-B6z6CqIz.cjs} +30 -25
- package/dist/{types-BEdCLHqP.js → types-CPz01LGH.js} +3 -3
- package/dist/utils/docloader.test.js +4 -4
- package/dist/utils/mod.cjs +2 -2
- package/dist/utils/mod.d.cts +2 -2
- package/dist/utils/mod.d.ts +2 -2
- package/dist/utils/mod.js +2 -2
- package/package.json +6 -6
- package/dist/middleware-C9iGBAP1.cjs +0 -12
- package/dist/middleware-CYlahvpt.js +0 -26
|
@@ -28,11 +28,11 @@ interface KvStoreListEntry {
|
|
|
28
28
|
/**
|
|
29
29
|
* The key of the entry.
|
|
30
30
|
*/
|
|
31
|
-
key: KvKey;
|
|
31
|
+
readonly key: KvKey;
|
|
32
32
|
/**
|
|
33
33
|
* The value of the entry.
|
|
34
34
|
*/
|
|
35
|
-
value: unknown;
|
|
35
|
+
readonly value: unknown;
|
|
36
36
|
}
|
|
37
37
|
/**
|
|
38
38
|
* An abstract interface for a key–value store.
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { Temporal } from "@js-temporal/polyfill";
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
|
|
5
|
-
import { doubleKnock, validateCryptoKey } from "./http-
|
|
5
|
+
import { doubleKnock, validateCryptoKey } from "./http-CY-Bbe9s.js";
|
|
6
6
|
import { getLogger } from "@logtape/logtape";
|
|
7
7
|
import { curry } from "es-toolkit";
|
|
8
8
|
import { UrlError, createActivityPubRequest, getDocumentLoader, getRemoteDocument, logRequest, preloadedContexts, validatePublicUrl } from "@fedify/vocab-runtime";
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
const { URLPattern } = require("urlpattern-polyfill");
|
|
4
4
|
|
|
5
5
|
const require_chunk = require('./chunk-DqRYRqnO.cjs');
|
|
6
|
-
const require_http = require('./http-
|
|
6
|
+
const require_http = require('./http-DfyrqzT4.cjs');
|
|
7
7
|
const __logtape_logtape = require_chunk.__toESM(require("@logtape/logtape"));
|
|
8
8
|
const es_toolkit = require_chunk.__toESM(require("es-toolkit"));
|
|
9
9
|
const __fedify_vocab_runtime = require_chunk.__toESM(require("@fedify/vocab-runtime"));
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { deno_default } from "./deno-
|
|
7
|
-
import { fetchKey, validateCryptoKey } from "./key-
|
|
6
|
+
import { deno_default } from "./deno-Cif1-iL_.js";
|
|
7
|
+
import { fetchKey, validateCryptoKey } from "./key-Bw4eVboO.js";
|
|
8
8
|
import { getLogger } from "@logtape/logtape";
|
|
9
9
|
import { Activity, CryptographicKey, Object as Object$1, getTypeId } from "@fedify/vocab";
|
|
10
10
|
import { getDocumentLoader } from "@fedify/vocab-runtime";
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
|
|
5
5
|
import { getDefaultActivityTransformers } from "./transformers-N_ip_y4P.js";
|
|
6
|
-
import { deno_default, doubleKnock, exportJwk, importJwk, validateCryptoKey, verifyRequest } from "./http-
|
|
7
|
-
import { detachSignature, doesActorOwnKey, getKeyOwner, hasSignature, signJsonLd, signObject, verifyJsonLd, verifyObject } from "./proof-
|
|
8
|
-
import { getNodeInfo, nodeInfoToJson } from "./types-
|
|
9
|
-
import { getAuthenticatedDocumentLoader, kvCache } from "./kv-cache-
|
|
6
|
+
import { deno_default, doubleKnock, exportJwk, importJwk, validateCryptoKey, verifyRequest } from "./http-CY-Bbe9s.js";
|
|
7
|
+
import { detachSignature, doesActorOwnKey, getKeyOwner, hasSignature, signJsonLd, signObject, verifyJsonLd, verifyObject } from "./proof-aPT2G2bY.js";
|
|
8
|
+
import { getNodeInfo, nodeInfoToJson } from "./types-8l28uC8o.js";
|
|
9
|
+
import { getAuthenticatedDocumentLoader, kvCache } from "./kv-cache-BCsLgQXU.js";
|
|
10
10
|
import { getLogger, withContext } from "@logtape/logtape";
|
|
11
11
|
import { Activity, Collection, CollectionPage, CryptographicKey, Link, Multikey, Object as Object$1, OrderedCollection, OrderedCollectionPage, getTypeId, lookupObject, traverseCollection } from "@fedify/vocab";
|
|
12
12
|
import { SpanKind, SpanStatusCode, context, propagation, trace } from "@opentelemetry/api";
|
|
@@ -337,7 +337,7 @@ var FederationBuilderImpl = class {
|
|
|
337
337
|
this.collectionTypeIds = {};
|
|
338
338
|
}
|
|
339
339
|
async build(options) {
|
|
340
|
-
const { FederationImpl: FederationImpl$1 } = await import("./middleware-
|
|
340
|
+
const { FederationImpl: FederationImpl$1 } = await import("./middleware-B7mdNwwo.js");
|
|
341
341
|
const f = new FederationImpl$1(options);
|
|
342
342
|
const trailingSlashInsensitiveValue = f.router.trailingSlashInsensitive;
|
|
343
343
|
f.router = this.router.clone();
|
|
@@ -2290,12 +2290,11 @@ async function handleWebFingerInternal(request, { context: context$1, host, acto
|
|
|
2290
2290
|
});
|
|
2291
2291
|
for await (const image of actor.getIcons()) {
|
|
2292
2292
|
if (image.url?.href == null) continue;
|
|
2293
|
-
|
|
2293
|
+
links.push({
|
|
2294
2294
|
rel: "http://webfinger.net/rel/avatar",
|
|
2295
|
-
href: image.url.href.toString()
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
links.push(link);
|
|
2295
|
+
href: image.url.href.toString(),
|
|
2296
|
+
...image.mediaType != null && { type: image.mediaType }
|
|
2297
|
+
});
|
|
2299
2298
|
}
|
|
2300
2299
|
if (webFingerLinksDispatcher != null) {
|
|
2301
2300
|
const customLinks = await webFingerLinksDispatcher(context$1, resourceUrl);
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
|
|
5
5
|
import "./transformers-N_ip_y4P.js";
|
|
6
|
-
import "./http-
|
|
7
|
-
import { ContextImpl, FederationImpl, InboxContextImpl, KvSpecDeterminer, createFederation } from "./middleware-
|
|
8
|
-
import "./proof-
|
|
9
|
-
import "./types-
|
|
10
|
-
import "./kv-cache-
|
|
6
|
+
import "./http-CY-Bbe9s.js";
|
|
7
|
+
import { ContextImpl, FederationImpl, InboxContextImpl, KvSpecDeterminer, createFederation } from "./middleware-7qNi2Qwp.js";
|
|
8
|
+
import "./proof-aPT2G2bY.js";
|
|
9
|
+
import "./types-8l28uC8o.js";
|
|
10
|
+
import "./kv-cache-BCsLgQXU.js";
|
|
11
11
|
|
|
12
12
|
export { FederationImpl };
|
|
@@ -3,24 +3,24 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { deno_default } from "./deno-
|
|
7
|
-
import { getNodeInfo } from "./client-
|
|
6
|
+
import { deno_default } from "./deno-Cif1-iL_.js";
|
|
7
|
+
import { getNodeInfo } from "./client-Dg7OfUDA.js";
|
|
8
8
|
import { RouterError } from "./router-D9eI0s4b.js";
|
|
9
|
-
import { nodeInfoToJson } from "./types-
|
|
10
|
-
import { exportJwk, importJwk, validateCryptoKey } from "./key-
|
|
11
|
-
import { verifyRequest } from "./http-
|
|
12
|
-
import { detachSignature, hasSignature, signJsonLd, verifyJsonLd } from "./ld-
|
|
13
|
-
import { doesActorOwnKey, getKeyOwner } from "./owner-
|
|
14
|
-
import { signObject, verifyObject } from "./proof-
|
|
15
|
-
import { getAuthenticatedDocumentLoader } from "./docloader-
|
|
9
|
+
import { nodeInfoToJson } from "./types-CPz01LGH.js";
|
|
10
|
+
import { exportJwk, importJwk, validateCryptoKey } from "./key-Bw4eVboO.js";
|
|
11
|
+
import { verifyRequest } from "./http-B99rtXjf.js";
|
|
12
|
+
import { detachSignature, hasSignature, signJsonLd, verifyJsonLd } from "./ld-1OEVoX2N.js";
|
|
13
|
+
import { doesActorOwnKey, getKeyOwner } from "./owner-w_YNARRI.js";
|
|
14
|
+
import { signObject, verifyObject } from "./proof-C8vStykH.js";
|
|
15
|
+
import { getAuthenticatedDocumentLoader } from "./docloader-CVaWaEcp.js";
|
|
16
16
|
import { kvCache } from "./kv-cache-BEeqyGER.js";
|
|
17
|
-
import { routeActivity } from "./inbox-
|
|
18
|
-
import { FederationBuilderImpl } from "./builder-
|
|
17
|
+
import { routeActivity } from "./inbox-BC3B2xqc.js";
|
|
18
|
+
import { FederationBuilderImpl } from "./builder-Khy2m25E.js";
|
|
19
19
|
import { buildCollectionSynchronizationHeader } from "./collection-CcnIw1qY.js";
|
|
20
20
|
import { KvKeyCache } from "./keycache-DRxpZ5r9.js";
|
|
21
21
|
import { acceptsJsonLd } from "./negotiation-5NPJL6zp.js";
|
|
22
22
|
import { createExponentialBackoffPolicy } from "./retry-D4GJ670a.js";
|
|
23
|
-
import { extractInboxes, sendActivity } from "./send-
|
|
23
|
+
import { extractInboxes, sendActivity } from "./send-C77cZsvd.js";
|
|
24
24
|
import { getLogger, withContext } from "@logtape/logtape";
|
|
25
25
|
import { Activity, Collection, CollectionPage, CryptographicKey, Link, Multikey, Object as Object$1, OrderedCollection, OrderedCollectionPage, getTypeId, lookupObject, traverseCollection } from "@fedify/vocab";
|
|
26
26
|
import { getDocumentLoader } from "@fedify/vocab-runtime";
|
|
@@ -1248,12 +1248,11 @@ async function handleWebFingerInternal(request, { context: context$1, host, acto
|
|
|
1248
1248
|
});
|
|
1249
1249
|
for await (const image of actor.getIcons()) {
|
|
1250
1250
|
if (image.url?.href == null) continue;
|
|
1251
|
-
|
|
1251
|
+
links.push({
|
|
1252
1252
|
rel: "http://webfinger.net/rel/avatar",
|
|
1253
|
-
href: image.url.href.toString()
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
links.push(link);
|
|
1253
|
+
href: image.url.href.toString(),
|
|
1254
|
+
...image.mediaType != null && { type: image.mediaType }
|
|
1255
|
+
});
|
|
1257
1256
|
}
|
|
1258
1257
|
if (webFingerLinksDispatcher != null) {
|
|
1259
1258
|
const customLinks = await webFingerLinksDispatcher(context$1, resourceUrl);
|
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
|
|
5
5
|
const require_chunk = require('./chunk-DqRYRqnO.cjs');
|
|
6
6
|
const require_transformers = require('./transformers-BjBg6Lag.cjs');
|
|
7
|
-
const require_http = require('./http-
|
|
8
|
-
const require_proof = require('./proof-
|
|
9
|
-
const require_types = require('./types-
|
|
10
|
-
const require_kv_cache = require('./kv-cache-
|
|
7
|
+
const require_http = require('./http-DfyrqzT4.cjs');
|
|
8
|
+
const require_proof = require('./proof-CJZ5gNjq.cjs');
|
|
9
|
+
const require_types = require('./types-B6z6CqIz.cjs');
|
|
10
|
+
const require_kv_cache = require('./kv-cache-Cerg94jw.cjs');
|
|
11
11
|
const __logtape_logtape = require_chunk.__toESM(require("@logtape/logtape"));
|
|
12
12
|
const __fedify_vocab = require_chunk.__toESM(require("@fedify/vocab"));
|
|
13
13
|
const __opentelemetry_api = require_chunk.__toESM(require("@opentelemetry/api"));
|
|
@@ -338,7 +338,7 @@ var FederationBuilderImpl = class {
|
|
|
338
338
|
this.collectionTypeIds = {};
|
|
339
339
|
}
|
|
340
340
|
async build(options) {
|
|
341
|
-
const { FederationImpl: FederationImpl$1 } = await Promise.resolve().then(() => require("./middleware-
|
|
341
|
+
const { FederationImpl: FederationImpl$1 } = await Promise.resolve().then(() => require("./middleware-TgcMW8QT.cjs"));
|
|
342
342
|
const f = new FederationImpl$1(options);
|
|
343
343
|
const trailingSlashInsensitiveValue = f.router.trailingSlashInsensitive;
|
|
344
344
|
f.router = this.router.clone();
|
|
@@ -2291,12 +2291,11 @@ async function handleWebFingerInternal(request, { context: context$2, host, acto
|
|
|
2291
2291
|
});
|
|
2292
2292
|
for await (const image of actor.getIcons()) {
|
|
2293
2293
|
if (image.url?.href == null) continue;
|
|
2294
|
-
|
|
2294
|
+
links.push({
|
|
2295
2295
|
rel: "http://webfinger.net/rel/avatar",
|
|
2296
|
-
href: image.url.href.toString()
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
links.push(link);
|
|
2296
|
+
href: image.url.href.toString(),
|
|
2297
|
+
...image.mediaType != null && { type: image.mediaType }
|
|
2298
|
+
});
|
|
2300
2299
|
}
|
|
2301
2300
|
if (webFingerLinksDispatcher != null) {
|
|
2302
2301
|
const customLinks = await webFingerLinksDispatcher(context$2, resourceUrl);
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
|
|
2
|
+
import { Temporal } from "@js-temporal/polyfill";
|
|
3
|
+
import { URLPattern } from "urlpattern-polyfill";
|
|
4
|
+
globalThis.addEventListener = () => {};
|
|
5
|
+
|
|
6
|
+
import "./deno-Cif1-iL_.js";
|
|
7
|
+
import { ContextImpl, FederationImpl, InboxContextImpl, KvSpecDeterminer, createFederation } from "./middleware-CQv0UNYy.js";
|
|
8
|
+
import "./client-Dg7OfUDA.js";
|
|
9
|
+
import "./router-D9eI0s4b.js";
|
|
10
|
+
import "./types-CPz01LGH.js";
|
|
11
|
+
import "./key-Bw4eVboO.js";
|
|
12
|
+
import "./http-B99rtXjf.js";
|
|
13
|
+
import "./ld-1OEVoX2N.js";
|
|
14
|
+
import "./owner-w_YNARRI.js";
|
|
15
|
+
import "./proof-C8vStykH.js";
|
|
16
|
+
import "./docloader-CVaWaEcp.js";
|
|
17
|
+
import "./kv-cache-BEeqyGER.js";
|
|
18
|
+
import "./inbox-BC3B2xqc.js";
|
|
19
|
+
import "./builder-Khy2m25E.js";
|
|
20
|
+
import "./collection-CcnIw1qY.js";
|
|
21
|
+
import "./keycache-DRxpZ5r9.js";
|
|
22
|
+
import "./negotiation-5NPJL6zp.js";
|
|
23
|
+
import "./retry-D4GJ670a.js";
|
|
24
|
+
import "./send-C77cZsvd.js";
|
|
25
|
+
|
|
26
|
+
export { FederationImpl };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
|
|
2
|
+
const { Temporal } = require("@js-temporal/polyfill");
|
|
3
|
+
const { URLPattern } = require("urlpattern-polyfill");
|
|
4
|
+
|
|
5
|
+
require('./transformers-BjBg6Lag.cjs');
|
|
6
|
+
require('./http-DfyrqzT4.cjs');
|
|
7
|
+
const require_middleware = require('./middleware-CvNusBTn.cjs');
|
|
8
|
+
require('./proof-CJZ5gNjq.cjs');
|
|
9
|
+
require('./types-B6z6CqIz.cjs');
|
|
10
|
+
require('./kv-cache-Cerg94jw.cjs');
|
|
11
|
+
|
|
12
|
+
exports.FederationImpl = require_middleware.FederationImpl;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HttpMessageSignaturesSpecDeterminer } from "./http-ClB3pLcL.cjs";
|
|
2
|
-
import { KvKey, KvStore } from "./kv-
|
|
2
|
+
import { KvKey, KvStore } from "./kv-B4vFhIYL.cjs";
|
|
3
3
|
import { DocumentLoader, DocumentLoaderFactoryOptions } from "@fedify/vocab-runtime";
|
|
4
4
|
import { TracerProvider } from "@opentelemetry/api";
|
|
5
5
|
|
|
@@ -72,16 +72,16 @@ interface KvCacheParameters {
|
|
|
72
72
|
/**
|
|
73
73
|
* The document loader to decorate with a cache.
|
|
74
74
|
*/
|
|
75
|
-
loader: DocumentLoader;
|
|
75
|
+
readonly loader: DocumentLoader;
|
|
76
76
|
/**
|
|
77
77
|
* The key–value store to use for backing the cache.
|
|
78
78
|
*/
|
|
79
|
-
kv: KvStore;
|
|
79
|
+
readonly kv: KvStore;
|
|
80
80
|
/**
|
|
81
81
|
* The key prefix to use for namespacing the cache.
|
|
82
82
|
* `["_fedify", "remoteDocument"]` by default.
|
|
83
83
|
*/
|
|
84
|
-
prefix?: KvKey;
|
|
84
|
+
readonly prefix?: KvKey;
|
|
85
85
|
/**
|
|
86
86
|
* The per-URL cache rules in the array of `[urlPattern, duration]` pairs
|
|
87
87
|
* where `urlPattern` is either a string, a {@link URL}, or
|
|
@@ -90,7 +90,7 @@ interface KvCacheParameters {
|
|
|
90
90
|
*
|
|
91
91
|
* By default, 5 minutes for all URLs.
|
|
92
92
|
*/
|
|
93
|
-
rules?: [string | URL | URLPattern, Temporal.Duration | Temporal.DurationLike][];
|
|
93
|
+
readonly rules?: readonly [string | URL | URLPattern, Temporal.Duration | Temporal.DurationLike][];
|
|
94
94
|
}
|
|
95
95
|
/**
|
|
96
96
|
* Decorates a {@link DocumentLoader} with a cache backed by a {@link Deno.Kv}.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ActorAliasMapper, ActorDispatcher, ActorHandleMapper, RequestContext, WebFingerLinksDispatcher } from "./context-
|
|
1
|
+
import { ActorAliasMapper, ActorDispatcher, ActorHandleMapper, RequestContext, WebFingerLinksDispatcher } from "./context-CrB9RFy5.cjs";
|
|
2
2
|
import { Span, Tracer } from "@opentelemetry/api";
|
|
3
3
|
|
|
4
4
|
//#region src/federation/webfinger.d.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Temporal } from "@js-temporal/polyfill";
|
|
2
2
|
import { URLPattern } from "urlpattern-polyfill";
|
|
3
|
-
import { ActorAliasMapper, ActorDispatcher, ActorHandleMapper, RequestContext, WebFingerLinksDispatcher } from "./context-
|
|
3
|
+
import { ActorAliasMapper, ActorDispatcher, ActorHandleMapper, RequestContext, WebFingerLinksDispatcher } from "./context-C7vzWilY.js";
|
|
4
4
|
import { Span, Tracer } from "@opentelemetry/api";
|
|
5
5
|
|
|
6
6
|
//#region src/federation/webfinger.d.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Temporal } from "@js-temporal/polyfill";
|
|
2
2
|
import { URLPattern } from "urlpattern-polyfill";
|
|
3
|
-
import { ActivityTransformer, Context } from "./context-
|
|
3
|
+
import { ActivityTransformer, Context } from "./context-C7vzWilY.js";
|
|
4
4
|
import { Activity } from "@fedify/vocab";
|
|
5
5
|
|
|
6
6
|
//#region src/compat/transformers.d.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Temporal } from "@js-temporal/polyfill";
|
|
2
2
|
import { URLPattern } from "urlpattern-polyfill";
|
|
3
3
|
import { HttpMessageSignaturesSpecDeterminer } from "./http-DLBDPal9.js";
|
|
4
|
-
import { KvKey, KvStore } from "./kv-
|
|
4
|
+
import { KvKey, KvStore } from "./kv-CYySNrsn.js";
|
|
5
5
|
import { TracerProvider } from "@opentelemetry/api";
|
|
6
6
|
import { DocumentLoader, DocumentLoaderFactoryOptions } from "@fedify/vocab-runtime";
|
|
7
7
|
|
|
@@ -74,16 +74,16 @@ interface KvCacheParameters {
|
|
|
74
74
|
/**
|
|
75
75
|
* The document loader to decorate with a cache.
|
|
76
76
|
*/
|
|
77
|
-
loader: DocumentLoader;
|
|
77
|
+
readonly loader: DocumentLoader;
|
|
78
78
|
/**
|
|
79
79
|
* The key–value store to use for backing the cache.
|
|
80
80
|
*/
|
|
81
|
-
kv: KvStore;
|
|
81
|
+
readonly kv: KvStore;
|
|
82
82
|
/**
|
|
83
83
|
* The key prefix to use for namespacing the cache.
|
|
84
84
|
* `["_fedify", "remoteDocument"]` by default.
|
|
85
85
|
*/
|
|
86
|
-
prefix?: KvKey;
|
|
86
|
+
readonly prefix?: KvKey;
|
|
87
87
|
/**
|
|
88
88
|
* The per-URL cache rules in the array of `[urlPattern, duration]` pairs
|
|
89
89
|
* where `urlPattern` is either a string, a {@link URL}, or
|
|
@@ -92,7 +92,7 @@ interface KvCacheParameters {
|
|
|
92
92
|
*
|
|
93
93
|
* By default, 5 minutes for all URLs.
|
|
94
94
|
*/
|
|
95
|
-
rules?: [string | URL | URLPattern, Temporal.Duration | Temporal.DurationLike][];
|
|
95
|
+
readonly rules?: readonly [string | URL | URLPattern, Temporal.Duration | Temporal.DurationLike][];
|
|
96
96
|
}
|
|
97
97
|
/**
|
|
98
98
|
* Decorates a {@link DocumentLoader} with a cache backed by a {@link Deno.Kv}.
|
package/dist/mod.cjs
CHANGED
|
@@ -4,12 +4,12 @@
|
|
|
4
4
|
|
|
5
5
|
const require_transformers = require('./transformers-BjBg6Lag.cjs');
|
|
6
6
|
require('./compat-DmDDELst.cjs');
|
|
7
|
-
const require_http = require('./http-
|
|
8
|
-
const require_middleware = require('./middleware-
|
|
9
|
-
const require_proof = require('./proof-
|
|
7
|
+
const require_http = require('./http-DfyrqzT4.cjs');
|
|
8
|
+
const require_middleware = require('./middleware-CvNusBTn.cjs');
|
|
9
|
+
const require_proof = require('./proof-CJZ5gNjq.cjs');
|
|
10
10
|
const require_federation = require('./federation-B431K2gm.cjs');
|
|
11
|
-
const require_types = require('./types-
|
|
12
|
-
const require_kv_cache = require('./kv-cache-
|
|
11
|
+
const require_types = require('./types-B6z6CqIz.cjs');
|
|
12
|
+
const require_kv_cache = require('./kv-cache-Cerg94jw.cjs');
|
|
13
13
|
require('./nodeinfo-DuMYTpbZ.cjs');
|
|
14
14
|
require('./sig-DeXX2xnj.cjs');
|
|
15
15
|
require('./utils-Db0ZmjcD.cjs');
|
package/dist/mod.d.cts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { GetNodeInfoOptions, InboundService, JsonValue, NodeInfo, OutboundService, ParseNodeInfoOptions, Protocol, Services, Software, Usage, getNodeInfo, nodeInfoToJson, parseNodeInfo } from "./client-
|
|
1
|
+
import { GetNodeInfoOptions, InboundService, JsonValue, NodeInfo, OutboundService, ParseNodeInfoOptions, Protocol, Services, Software, Usage, getNodeInfo, nodeInfoToJson, parseNodeInfo } from "./client-by-PEGAJ.cjs";
|
|
2
2
|
import { FetchKeyOptions, FetchKeyResult, HttpMessageSignaturesSpec, HttpMessageSignaturesSpecDeterminer, KeyCache, SignRequestOptions, VerifyRequestOptions, exportJwk, fetchKey, generateCryptoKeyPair, importJwk, signRequest, verifyRequest } from "./http-ClB3pLcL.cjs";
|
|
3
3
|
import { DoesActorOwnKeyOptions, GetKeyOwnerOptions, doesActorOwnKey, getKeyOwner } from "./owner-C-zfmVAD.cjs";
|
|
4
|
-
import { ActivityTransformer, ActorAliasMapper, ActorCallbackSetters, ActorDispatcher, ActorHandleMapper, ActorKeyPair, ActorKeyPairsDispatcher, AuthorizePredicate, CollectionCallbackSetters, CollectionCounter, CollectionCursor, CollectionDispatcher, ConstructorWithTypeId, Context, CreateExponentialBackoffPolicyOptions, CreateFederationOptions, CustomCollectionCallbackSetters, CustomCollectionCounter, CustomCollectionCursor, CustomCollectionDispatcher, Federatable, Federation, FederationBuilder, FederationFetchOptions, FederationKvPrefixes, FederationOptions, FederationOrigin, FederationQueueOptions, FederationStartQueueOptions, ForwardActivityOptions, GetSignedKeyOptions, IdempotencyKeyCallback, IdempotencyStrategy, InProcessMessageQueue, InProcessMessageQueueOptions, InboxContext, InboxErrorHandler, InboxListener, InboxListenerSetters, Message, MessageQueue, MessageQueueEnqueueOptions, MessageQueueListenOptions, NodeInfoDispatcher, ObjectAuthorizePredicate, ObjectCallbackSetters, ObjectDispatcher, OutboxErrorHandler, PageItems, ParallelMessageQueue, ParseUriResult, RequestContext, RespondWithObjectOptions, RetryContext, RetryPolicy, Rfc6570Expression, RouteActivityOptions, Router, RouterError, RouterOptions, RouterRouteResult, SendActivityOptions, SendActivityOptionsForCollection, SenderKeyPair, SharedInboxKeyDispatcher, WebFingerLinksDispatcher, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable } from "./context-
|
|
5
|
-
import { KvKey, KvStore, KvStoreListEntry, KvStoreSetOptions, MemoryKvStore } from "./kv-
|
|
6
|
-
import { actorDehydrator, autoIdAssigner, getDefaultActivityTransformers } from "./mod-
|
|
7
|
-
import { WebFingerHandlerParameters, handleWebFinger } from "./mod-
|
|
4
|
+
import { ActivityTransformer, ActorAliasMapper, ActorCallbackSetters, ActorDispatcher, ActorHandleMapper, ActorKeyPair, ActorKeyPairsDispatcher, AuthorizePredicate, CollectionCallbackSetters, CollectionCounter, CollectionCursor, CollectionDispatcher, ConstructorWithTypeId, Context, CreateExponentialBackoffPolicyOptions, CreateFederationOptions, CustomCollectionCallbackSetters, CustomCollectionCounter, CustomCollectionCursor, CustomCollectionDispatcher, Federatable, Federation, FederationBuilder, FederationFetchOptions, FederationKvPrefixes, FederationOptions, FederationOrigin, FederationQueueOptions, FederationStartQueueOptions, ForwardActivityOptions, GetSignedKeyOptions, IdempotencyKeyCallback, IdempotencyStrategy, InProcessMessageQueue, InProcessMessageQueueOptions, InboxContext, InboxErrorHandler, InboxListener, InboxListenerSetters, Message, MessageQueue, MessageQueueEnqueueOptions, MessageQueueListenOptions, NodeInfoDispatcher, ObjectAuthorizePredicate, ObjectCallbackSetters, ObjectDispatcher, OutboxErrorHandler, PageItems, ParallelMessageQueue, ParseUriResult, RequestContext, RespondWithObjectOptions, RetryContext, RetryPolicy, Rfc6570Expression, RouteActivityOptions, Router, RouterError, RouterOptions, RouterRouteResult, SendActivityOptions, SendActivityOptionsForCollection, SenderKeyPair, SharedInboxKeyDispatcher, WebFingerLinksDispatcher, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable } from "./context-CrB9RFy5.cjs";
|
|
5
|
+
import { KvKey, KvStore, KvStoreListEntry, KvStoreSetOptions, MemoryKvStore } from "./kv-B4vFhIYL.cjs";
|
|
6
|
+
import { actorDehydrator, autoIdAssigner, getDefaultActivityTransformers } from "./mod-D6pS5_xJ.cjs";
|
|
7
|
+
import { WebFingerHandlerParameters, handleWebFinger } from "./mod-0qnPv4EC.cjs";
|
|
8
8
|
import "./mod-C81L6_lQ.cjs";
|
|
9
9
|
import { CreateProofOptions, CreateSignatureOptions, SignJsonLdOptions, SignObjectOptions, VerifyJsonLdOptions, VerifyObjectOptions, VerifyProofOptions, VerifySignatureOptions, attachSignature, createProof, createSignature, detachSignature, signJsonLd, signObject, verifyJsonLd, verifyObject, verifyProof, verifySignature } from "./mod-BrS8tiad.cjs";
|
|
10
|
-
import { getAuthenticatedDocumentLoader, kvCache } from "./mod-
|
|
10
|
+
import { getAuthenticatedDocumentLoader, kvCache } from "./mod-0p9zUdzg.cjs";
|
|
11
11
|
export { ActivityTransformer, ActorAliasMapper, ActorCallbackSetters, ActorDispatcher, ActorHandleMapper, ActorKeyPair, ActorKeyPairsDispatcher, AuthorizePredicate, CollectionCallbackSetters, CollectionCounter, CollectionCursor, CollectionDispatcher, ConstructorWithTypeId, Context, CreateExponentialBackoffPolicyOptions, CreateFederationOptions, CreateProofOptions, CreateSignatureOptions, CustomCollectionCallbackSetters, CustomCollectionCounter, CustomCollectionCursor, CustomCollectionDispatcher, DoesActorOwnKeyOptions, Federatable, Federation, FederationBuilder, FederationFetchOptions, FederationKvPrefixes, FederationOptions, FederationOrigin, FederationQueueOptions, FederationStartQueueOptions, FetchKeyOptions, FetchKeyResult, ForwardActivityOptions, GetKeyOwnerOptions, GetNodeInfoOptions, GetSignedKeyOptions, HttpMessageSignaturesSpec, HttpMessageSignaturesSpecDeterminer, IdempotencyKeyCallback, IdempotencyStrategy, InProcessMessageQueue, InProcessMessageQueueOptions, InboundService, InboxContext, InboxErrorHandler, InboxListener, InboxListenerSetters, JsonValue, KeyCache, KvKey, KvStore, KvStoreListEntry, KvStoreSetOptions, MemoryKvStore, Message, MessageQueue, MessageQueueEnqueueOptions, MessageQueueListenOptions, NodeInfo, NodeInfoDispatcher, ObjectAuthorizePredicate, ObjectCallbackSetters, ObjectDispatcher, OutboundService, OutboxErrorHandler, PageItems, ParallelMessageQueue, ParseNodeInfoOptions, ParseUriResult, Protocol, RequestContext, RespondWithObjectOptions, RetryContext, RetryPolicy, Rfc6570Expression, RouteActivityOptions, Router, RouterError, RouterOptions, RouterRouteResult, SendActivityOptions, SendActivityOptionsForCollection, SenderKeyPair, Services, SharedInboxKeyDispatcher, SignJsonLdOptions, SignObjectOptions, SignRequestOptions, Software, Usage, VerifyJsonLdOptions, VerifyObjectOptions, VerifyProofOptions, VerifyRequestOptions, VerifySignatureOptions, WebFingerHandlerParameters, WebFingerLinksDispatcher, actorDehydrator, attachSignature, autoIdAssigner, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, createProof, createSignature, detachSignature, digest, doesActorOwnKey, exportJwk, fetchKey, generateCryptoKeyPair, getAuthenticatedDocumentLoader, getDefaultActivityTransformers, getKeyOwner, getNodeInfo, handleWebFinger, importJwk, kvCache, nodeInfoToJson, parseNodeInfo, respondWithObject, respondWithObjectIfAcceptable, signJsonLd, signObject, signRequest, verifyJsonLd, verifyObject, verifyProof, verifyRequest, verifySignature };
|
package/dist/mod.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { Temporal } from "@js-temporal/polyfill";
|
|
2
2
|
import { URLPattern } from "urlpattern-polyfill";
|
|
3
|
-
import { GetNodeInfoOptions, InboundService, JsonValue, NodeInfo, OutboundService, ParseNodeInfoOptions, Protocol, Services, Software, Usage, getNodeInfo, nodeInfoToJson, parseNodeInfo } from "./client-
|
|
3
|
+
import { GetNodeInfoOptions, InboundService, JsonValue, NodeInfo, OutboundService, ParseNodeInfoOptions, Protocol, Services, Software, Usage, getNodeInfo, nodeInfoToJson, parseNodeInfo } from "./client-CUTUGgvJ.js";
|
|
4
4
|
import { FetchKeyOptions, FetchKeyResult, HttpMessageSignaturesSpec, HttpMessageSignaturesSpecDeterminer, KeyCache, SignRequestOptions, VerifyRequestOptions, exportJwk, fetchKey, generateCryptoKeyPair, importJwk, signRequest, verifyRequest } from "./http-DLBDPal9.js";
|
|
5
5
|
import { DoesActorOwnKeyOptions, GetKeyOwnerOptions, doesActorOwnKey, getKeyOwner } from "./owner-BgI8C-VY.js";
|
|
6
|
-
import { ActivityTransformer, ActorAliasMapper, ActorCallbackSetters, ActorDispatcher, ActorHandleMapper, ActorKeyPair, ActorKeyPairsDispatcher, AuthorizePredicate, CollectionCallbackSetters, CollectionCounter, CollectionCursor, CollectionDispatcher, ConstructorWithTypeId, Context, CreateExponentialBackoffPolicyOptions, CreateFederationOptions, CustomCollectionCallbackSetters, CustomCollectionCounter, CustomCollectionCursor, CustomCollectionDispatcher, Federatable, Federation, FederationBuilder, FederationFetchOptions, FederationKvPrefixes, FederationOptions, FederationOrigin, FederationQueueOptions, FederationStartQueueOptions, ForwardActivityOptions, GetSignedKeyOptions, IdempotencyKeyCallback, IdempotencyStrategy, InProcessMessageQueue, InProcessMessageQueueOptions, InboxContext, InboxErrorHandler, InboxListener, InboxListenerSetters, Message, MessageQueue, MessageQueueEnqueueOptions, MessageQueueListenOptions, NodeInfoDispatcher, ObjectAuthorizePredicate, ObjectCallbackSetters, ObjectDispatcher, OutboxErrorHandler, PageItems, ParallelMessageQueue, ParseUriResult, RequestContext, RespondWithObjectOptions, RetryContext, RetryPolicy, Rfc6570Expression, RouteActivityOptions, Router, RouterError, RouterOptions, RouterRouteResult, SendActivityOptions, SendActivityOptionsForCollection, SenderKeyPair, SharedInboxKeyDispatcher, WebFingerLinksDispatcher, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable } from "./context-
|
|
7
|
-
import { KvKey, KvStore, KvStoreListEntry, KvStoreSetOptions, MemoryKvStore } from "./kv-
|
|
8
|
-
import { actorDehydrator, autoIdAssigner, getDefaultActivityTransformers } from "./mod-
|
|
9
|
-
import { WebFingerHandlerParameters, handleWebFinger } from "./mod-
|
|
6
|
+
import { ActivityTransformer, ActorAliasMapper, ActorCallbackSetters, ActorDispatcher, ActorHandleMapper, ActorKeyPair, ActorKeyPairsDispatcher, AuthorizePredicate, CollectionCallbackSetters, CollectionCounter, CollectionCursor, CollectionDispatcher, ConstructorWithTypeId, Context, CreateExponentialBackoffPolicyOptions, CreateFederationOptions, CustomCollectionCallbackSetters, CustomCollectionCounter, CustomCollectionCursor, CustomCollectionDispatcher, Federatable, Federation, FederationBuilder, FederationFetchOptions, FederationKvPrefixes, FederationOptions, FederationOrigin, FederationQueueOptions, FederationStartQueueOptions, ForwardActivityOptions, GetSignedKeyOptions, IdempotencyKeyCallback, IdempotencyStrategy, InProcessMessageQueue, InProcessMessageQueueOptions, InboxContext, InboxErrorHandler, InboxListener, InboxListenerSetters, Message, MessageQueue, MessageQueueEnqueueOptions, MessageQueueListenOptions, NodeInfoDispatcher, ObjectAuthorizePredicate, ObjectCallbackSetters, ObjectDispatcher, OutboxErrorHandler, PageItems, ParallelMessageQueue, ParseUriResult, RequestContext, RespondWithObjectOptions, RetryContext, RetryPolicy, Rfc6570Expression, RouteActivityOptions, Router, RouterError, RouterOptions, RouterRouteResult, SendActivityOptions, SendActivityOptionsForCollection, SenderKeyPair, SharedInboxKeyDispatcher, WebFingerLinksDispatcher, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable } from "./context-C7vzWilY.js";
|
|
7
|
+
import { KvKey, KvStore, KvStoreListEntry, KvStoreSetOptions, MemoryKvStore } from "./kv-CYySNrsn.js";
|
|
8
|
+
import { actorDehydrator, autoIdAssigner, getDefaultActivityTransformers } from "./mod-waqu-BL_.js";
|
|
9
|
+
import { WebFingerHandlerParameters, handleWebFinger } from "./mod-C3SOvTD1.js";
|
|
10
10
|
import "./mod-1E3W847c.js";
|
|
11
11
|
import { CreateProofOptions, CreateSignatureOptions, SignJsonLdOptions, SignObjectOptions, VerifyJsonLdOptions, VerifyObjectOptions, VerifyProofOptions, VerifySignatureOptions, attachSignature, createProof, createSignature, detachSignature, signJsonLd, signObject, verifyJsonLd, verifyObject, verifyProof, verifySignature } from "./mod-jOa7W503.js";
|
|
12
|
-
import { getAuthenticatedDocumentLoader, kvCache } from "./mod-
|
|
12
|
+
import { getAuthenticatedDocumentLoader, kvCache } from "./mod-xc20HhMD.js";
|
|
13
13
|
export { ActivityTransformer, ActorAliasMapper, ActorCallbackSetters, ActorDispatcher, ActorHandleMapper, ActorKeyPair, ActorKeyPairsDispatcher, AuthorizePredicate, CollectionCallbackSetters, CollectionCounter, CollectionCursor, CollectionDispatcher, ConstructorWithTypeId, Context, CreateExponentialBackoffPolicyOptions, CreateFederationOptions, CreateProofOptions, CreateSignatureOptions, CustomCollectionCallbackSetters, CustomCollectionCounter, CustomCollectionCursor, CustomCollectionDispatcher, DoesActorOwnKeyOptions, Federatable, Federation, FederationBuilder, FederationFetchOptions, FederationKvPrefixes, FederationOptions, FederationOrigin, FederationQueueOptions, FederationStartQueueOptions, FetchKeyOptions, FetchKeyResult, ForwardActivityOptions, GetKeyOwnerOptions, GetNodeInfoOptions, GetSignedKeyOptions, HttpMessageSignaturesSpec, HttpMessageSignaturesSpecDeterminer, IdempotencyKeyCallback, IdempotencyStrategy, InProcessMessageQueue, InProcessMessageQueueOptions, InboundService, InboxContext, InboxErrorHandler, InboxListener, InboxListenerSetters, JsonValue, KeyCache, KvKey, KvStore, KvStoreListEntry, KvStoreSetOptions, MemoryKvStore, Message, MessageQueue, MessageQueueEnqueueOptions, MessageQueueListenOptions, NodeInfo, NodeInfoDispatcher, ObjectAuthorizePredicate, ObjectCallbackSetters, ObjectDispatcher, OutboundService, OutboxErrorHandler, PageItems, ParallelMessageQueue, ParseNodeInfoOptions, ParseUriResult, Protocol, RequestContext, RespondWithObjectOptions, RetryContext, RetryPolicy, Rfc6570Expression, RouteActivityOptions, Router, RouterError, RouterOptions, RouterRouteResult, SendActivityOptions, SendActivityOptionsForCollection, SenderKeyPair, Services, SharedInboxKeyDispatcher, SignJsonLdOptions, SignObjectOptions, SignRequestOptions, Software, Usage, VerifyJsonLdOptions, VerifyObjectOptions, VerifyProofOptions, VerifyRequestOptions, VerifySignatureOptions, WebFingerHandlerParameters, WebFingerLinksDispatcher, actorDehydrator, attachSignature, autoIdAssigner, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, createProof, createSignature, detachSignature, digest, doesActorOwnKey, exportJwk, fetchKey, generateCryptoKeyPair, getAuthenticatedDocumentLoader, getDefaultActivityTransformers, getKeyOwner, getNodeInfo, handleWebFinger, importJwk, kvCache, nodeInfoToJson, parseNodeInfo, respondWithObject, respondWithObjectIfAcceptable, signJsonLd, signObject, signRequest, verifyJsonLd, verifyObject, verifyProof, verifyRequest, verifySignature };
|
package/dist/mod.js
CHANGED
|
@@ -4,12 +4,12 @@
|
|
|
4
4
|
|
|
5
5
|
import { actorDehydrator, autoIdAssigner, getDefaultActivityTransformers } from "./transformers-N_ip_y4P.js";
|
|
6
6
|
import "./compat-nxUqe4Z-.js";
|
|
7
|
-
import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk, signRequest, verifyRequest } from "./http-
|
|
8
|
-
import { Router, RouterError, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, handleWebFinger, respondWithObject, respondWithObjectIfAcceptable } from "./middleware-
|
|
9
|
-
import { attachSignature, createProof, createSignature, detachSignature, doesActorOwnKey, getKeyOwner, signJsonLd, signObject, verifyJsonLd, verifyObject, verifyProof, verifySignature } from "./proof-
|
|
7
|
+
import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk, signRequest, verifyRequest } from "./http-CY-Bbe9s.js";
|
|
8
|
+
import { Router, RouterError, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, handleWebFinger, respondWithObject, respondWithObjectIfAcceptable } from "./middleware-7qNi2Qwp.js";
|
|
9
|
+
import { attachSignature, createProof, createSignature, detachSignature, doesActorOwnKey, getKeyOwner, signJsonLd, signObject, verifyJsonLd, verifyObject, verifyProof, verifySignature } from "./proof-aPT2G2bY.js";
|
|
10
10
|
import { InProcessMessageQueue, MemoryKvStore, ParallelMessageQueue } from "./federation-BbZwNNWj.js";
|
|
11
|
-
import { getNodeInfo, nodeInfoToJson, parseNodeInfo } from "./types-
|
|
12
|
-
import { getAuthenticatedDocumentLoader, kvCache } from "./kv-cache-
|
|
11
|
+
import { getNodeInfo, nodeInfoToJson, parseNodeInfo } from "./types-8l28uC8o.js";
|
|
12
|
+
import { getAuthenticatedDocumentLoader, kvCache } from "./kv-cache-BCsLgQXU.js";
|
|
13
13
|
import "./nodeinfo-BlLsRSiT.js";
|
|
14
14
|
import "./sig-CwuONEzF.js";
|
|
15
15
|
import "./utils-Wranxuoe.js";
|
|
@@ -7,7 +7,7 @@ import { test } from "../dist-B5f6a8Tt.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 { getNodeInfo, parseInboundService, parseNodeInfo, parseOutboundService, parseProtocol, parseServices, parseSoftware, parseUsage } from "../client-
|
|
10
|
+
import { getNodeInfo, parseInboundService, parseNodeInfo, parseOutboundService, parseProtocol, parseServices, parseSoftware, parseUsage } from "../client-Dg7OfUDA.js";
|
|
11
11
|
import "../std__assert-DWivtrGR.js";
|
|
12
12
|
import "../assert_rejects-Ce45JcFg.js";
|
|
13
13
|
import "../assert_throws-BNXdRGWP.js";
|
|
@@ -8,25 +8,25 @@ 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-QzKcOQgP.js";
|
|
11
|
-
import "../deno-
|
|
12
|
-
import { createFederation, handleNodeInfo, handleNodeInfoJrd } from "../middleware-
|
|
13
|
-
import "../client-
|
|
11
|
+
import "../deno-Cif1-iL_.js";
|
|
12
|
+
import { createFederation, handleNodeInfo, handleNodeInfoJrd } from "../middleware-CQv0UNYy.js";
|
|
13
|
+
import "../client-Dg7OfUDA.js";
|
|
14
14
|
import "../router-D9eI0s4b.js";
|
|
15
|
-
import "../types-
|
|
16
|
-
import "../key-
|
|
17
|
-
import "../http-
|
|
18
|
-
import "../ld-
|
|
19
|
-
import "../owner-
|
|
20
|
-
import "../proof-
|
|
21
|
-
import "../docloader-
|
|
15
|
+
import "../types-CPz01LGH.js";
|
|
16
|
+
import "../key-Bw4eVboO.js";
|
|
17
|
+
import "../http-B99rtXjf.js";
|
|
18
|
+
import "../ld-1OEVoX2N.js";
|
|
19
|
+
import "../owner-w_YNARRI.js";
|
|
20
|
+
import "../proof-C8vStykH.js";
|
|
21
|
+
import "../docloader-CVaWaEcp.js";
|
|
22
22
|
import "../kv-cache-BEeqyGER.js";
|
|
23
|
-
import "../inbox-
|
|
24
|
-
import "../builder-
|
|
23
|
+
import "../inbox-BC3B2xqc.js";
|
|
24
|
+
import "../builder-Khy2m25E.js";
|
|
25
25
|
import "../collection-CcnIw1qY.js";
|
|
26
26
|
import "../keycache-DRxpZ5r9.js";
|
|
27
27
|
import "../negotiation-5NPJL6zp.js";
|
|
28
28
|
import "../retry-D4GJ670a.js";
|
|
29
|
-
import "../send-
|
|
29
|
+
import "../send-C77cZsvd.js";
|
|
30
30
|
import "../std__assert-DWivtrGR.js";
|
|
31
31
|
import "../assert_rejects-Ce45JcFg.js";
|
|
32
32
|
import "../assert_throws-BNXdRGWP.js";
|
package/dist/nodeinfo/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_types = require('../types-
|
|
5
|
+
const require_types = require('../types-B6z6CqIz.cjs');
|
|
6
6
|
require('../nodeinfo-DuMYTpbZ.cjs');
|
|
7
7
|
|
|
8
8
|
exports.getNodeInfo = require_types.getNodeInfo;
|
package/dist/nodeinfo/mod.d.cts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { GetNodeInfoOptions, InboundService, JsonValue, NodeInfo, OutboundService, ParseNodeInfoOptions, Protocol, Services, Software, Usage, getNodeInfo, nodeInfoToJson, parseNodeInfo } from "../client-
|
|
1
|
+
import { GetNodeInfoOptions, InboundService, JsonValue, NodeInfo, OutboundService, ParseNodeInfoOptions, Protocol, Services, Software, Usage, getNodeInfo, nodeInfoToJson, parseNodeInfo } from "../client-by-PEGAJ.cjs";
|
|
2
2
|
import "../mod-C81L6_lQ.cjs";
|
|
3
3
|
export { GetNodeInfoOptions, InboundService, JsonValue, NodeInfo, OutboundService, ParseNodeInfoOptions, Protocol, Services, Software, Usage, getNodeInfo, nodeInfoToJson, parseNodeInfo };
|
package/dist/nodeinfo/mod.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Temporal } from "@js-temporal/polyfill";
|
|
2
2
|
import { URLPattern } from "urlpattern-polyfill";
|
|
3
|
-
import { GetNodeInfoOptions, InboundService, JsonValue, NodeInfo, OutboundService, ParseNodeInfoOptions, Protocol, Services, Software, Usage, getNodeInfo, nodeInfoToJson, parseNodeInfo } from "../client-
|
|
3
|
+
import { GetNodeInfoOptions, InboundService, JsonValue, NodeInfo, OutboundService, ParseNodeInfoOptions, Protocol, Services, Software, Usage, getNodeInfo, nodeInfoToJson, parseNodeInfo } from "../client-CUTUGgvJ.js";
|
|
4
4
|
import "../mod-1E3W847c.js";
|
|
5
5
|
export { GetNodeInfoOptions, InboundService, JsonValue, NodeInfo, OutboundService, ParseNodeInfoOptions, Protocol, Services, Software, Usage, getNodeInfo, nodeInfoToJson, parseNodeInfo };
|
package/dist/nodeinfo/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 { getNodeInfo, nodeInfoToJson, parseNodeInfo } from "../types-
|
|
5
|
+
import { getNodeInfo, nodeInfoToJson, parseNodeInfo } from "../types-8l28uC8o.js";
|
|
6
6
|
import "../nodeinfo-BlLsRSiT.js";
|
|
7
7
|
|
|
8
8
|
export { getNodeInfo, nodeInfoToJson, parseNodeInfo };
|
|
@@ -7,7 +7,7 @@ import { test } from "../dist-B5f6a8Tt.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 { nodeInfoToJson } from "../types-
|
|
10
|
+
import { nodeInfoToJson } from "../types-CPz01LGH.js";
|
|
11
11
|
import "../std__assert-DWivtrGR.js";
|
|
12
12
|
import "../assert_rejects-Ce45JcFg.js";
|
|
13
13
|
import { assertThrows } from "../assert_throws-BNXdRGWP.js";
|
|
@@ -215,20 +215,14 @@ var FedifySpanExporter = class {
|
|
|
215
215
|
record.traceId
|
|
216
216
|
];
|
|
217
217
|
await this.#setWithCasRetry(summaryKey, (existing) => {
|
|
218
|
-
const
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
timestamp: record.timestamp,
|
|
226
|
-
activityCount: 0,
|
|
227
|
-
activityTypes: []
|
|
218
|
+
const activityCount = existing != null ? existing.activityCount + 1 : 1;
|
|
219
|
+
const activityTypes = existing != null ? existing.activityTypes.includes(record.activityType) ? existing.activityTypes : [...existing.activityTypes, record.activityType] : [record.activityType];
|
|
220
|
+
return {
|
|
221
|
+
traceId: existing?.traceId ?? record.traceId,
|
|
222
|
+
timestamp: existing?.timestamp ?? record.timestamp,
|
|
223
|
+
activityCount,
|
|
224
|
+
activityTypes
|
|
228
225
|
};
|
|
229
|
-
summary.activityCount += 1;
|
|
230
|
-
if (!summary.activityTypes.includes(record.activityType)) summary.activityTypes.push(record.activityType);
|
|
231
|
-
return summary;
|
|
232
226
|
}, options);
|
|
233
227
|
}
|
|
234
228
|
/**
|
package/dist/otel/mod.cjs
CHANGED
|
@@ -205,20 +205,14 @@ var FedifySpanExporter = class {
|
|
|
205
205
|
record.traceId
|
|
206
206
|
];
|
|
207
207
|
await this.#setWithCasRetry(summaryKey, (existing) => {
|
|
208
|
-
const
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
timestamp: record.timestamp,
|
|
216
|
-
activityCount: 0,
|
|
217
|
-
activityTypes: []
|
|
208
|
+
const activityCount = existing != null ? existing.activityCount + 1 : 1;
|
|
209
|
+
const activityTypes = existing != null ? existing.activityTypes.includes(record.activityType) ? existing.activityTypes : [...existing.activityTypes, record.activityType] : [record.activityType];
|
|
210
|
+
return {
|
|
211
|
+
traceId: existing?.traceId ?? record.traceId,
|
|
212
|
+
timestamp: existing?.timestamp ?? record.timestamp,
|
|
213
|
+
activityCount,
|
|
214
|
+
activityTypes
|
|
218
215
|
};
|
|
219
|
-
summary.activityCount += 1;
|
|
220
|
-
if (!summary.activityTypes.includes(record.activityType)) summary.activityTypes.push(record.activityType);
|
|
221
|
-
return summary;
|
|
222
216
|
}, options);
|
|
223
217
|
}
|
|
224
218
|
/**
|