@fedify/fedify 2.5.0-dev.2327 → 2.5.0-dev.2339
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-D1OTD3--.mjs → builder-4z5McYcY.mjs} +2 -2
- package/dist/compat/transformers.test.mjs +1 -1
- package/dist/{compound-proof-DML23ZA8.mjs → compound-proof-B6xZTnTr.mjs} +2 -2
- package/dist/{deno-CzjcjZ80.mjs → deno-BnX-hlO-.mjs} +1 -1
- package/dist/{docloader-tMR7o09T.mjs → docloader-_tslGlJv.mjs} +2 -2
- package/dist/exporter-DThFfe7P.mjs +257 -0
- package/dist/federation/builder.test.mjs +1 -1
- package/dist/federation/compound-fanout.test.mjs +3 -3
- package/dist/federation/handler-compound-proof.test.mjs +3 -3
- package/dist/federation/handler.test.mjs +224 -5
- package/dist/federation/hashlink-media.test.mjs +2 -2
- package/dist/federation/idempotency.test.mjs +2 -2
- package/dist/federation/inbox-report.test.mjs +5 -5
- package/dist/federation/metrics.test.mjs +1 -1
- package/dist/federation/middleware.test.mjs +101 -8
- package/dist/federation/mod.cjs +1 -1
- package/dist/federation/mod.js +1 -1
- package/dist/federation/outgoing-proof.test.mjs +5 -5
- package/dist/federation/portable-actor.test.mjs +3 -3
- package/dist/federation/portable-chain.test.mjs +3 -3
- package/dist/federation/portable-collection.test.mjs +4 -4
- package/dist/federation/portable-delivery.test.mjs +2 -2
- package/dist/federation/portable-gateway-keys.test.mjs +4 -4
- package/dist/federation/portable-inbox.test.mjs +4 -4
- package/dist/federation/portable-parse-uri.test.mjs +1 -1
- package/dist/federation/portable-route-activity.test.mjs +2 -2
- package/dist/federation/portable.test.mjs +3 -3
- package/dist/federation/send.test.mjs +199 -3
- package/dist/federation/tasks/enqueue.test.mjs +1 -1
- package/dist/federation/tasks/tasks.test.mjs +2 -2
- package/dist/federation/temporal.test.mjs +1 -1
- package/dist/federation/webfinger.test.mjs +1 -1
- package/dist/{federation-BHOSHFCr.cjs → federation-CV-CkIIZ.cjs} +22 -14
- package/dist/{http-CUhaXRsy.cjs → http-BJrxYYP3.cjs} +1 -1
- package/dist/{http-DzBwbsDL.mjs → http-BSmcgoaq.mjs} +4 -4
- package/dist/{http-gbfMWXuK.js → http-CVT3OEmZ.js} +1 -1
- package/dist/{key-CfJ7MJmp.mjs → key-DRLFC1um.mjs} +2 -2
- package/dist/{kv-cache-B3HjvmZE.mjs → kv-cache-DTY50c-3.mjs} +1 -1
- package/dist/{kv-cache-Y18nY4gZ.cjs → kv-cache-DnCGPsXH.cjs} +1 -1
- package/dist/{kv-cache-CyCsAOR6.js → kv-cache-Dv3joZCp.js} +1 -1
- package/dist/{ld-BzvgaYZi.mjs → ld-BiFf-T9F.mjs} +3 -3
- package/dist/{metrics-Dwkct8jJ.mjs → metrics-BuC9-u1Z.mjs} +1 -1
- package/dist/{middleware-BURmMr0W.mjs → middleware-A02EGx8T.mjs} +1 -1
- package/dist/{middleware-BFr_zLaE.mjs → middleware-BBSxgV0Y.mjs} +27 -23
- package/dist/{middleware-vJzuhHEr.js → middleware-CKEoEiBw.js} +22 -14
- package/dist/mod.cjs +4 -4
- package/dist/mod.js +4 -4
- package/dist/nodeinfo/handler.test.mjs +1 -1
- package/dist/otel/exporter.test.mjs +1 -253
- package/dist/{owner-CGXm_YAa.mjs → owner-BsgoTcNb.mjs} +3 -3
- package/dist/{portable-collection-DBAMRYNa.mjs → portable-collection-BiBpObws.mjs} +2 -2
- package/dist/{portable-collection-Cnl40K17.js → portable-collection-BzUoU2gg.js} +1 -1
- package/dist/{portable-collection-to2aHmLK.cjs → portable-collection-D3c6LAHN.cjs} +1 -1
- package/dist/{portable-key-DqFNrfnc.mjs → portable-key-CF6z6v-f.mjs} +1 -1
- package/dist/{proof-CImybMS5.mjs → proof-vlRUtAdS.mjs} +4 -4
- package/dist/{send-oReIfAwd.mjs → send-D5aMlvJH.mjs} +10 -6
- package/dist/sig/compound-proof-discovery.test.mjs +1 -1
- package/dist/sig/compound-proof-producer.test.mjs +1 -1
- package/dist/sig/compound-proof-verification.test.mjs +2 -2
- package/dist/sig/compound-proof.test.mjs +2 -2
- package/dist/sig/http.test.mjs +2 -2
- package/dist/sig/key.test.mjs +1 -1
- package/dist/sig/ld.test.mjs +2 -2
- package/dist/sig/mitra-receive-interop.test.mjs +4 -4
- package/dist/sig/mitra-send-interop.test.mjs +3 -3
- package/dist/sig/mod.cjs +2 -2
- package/dist/sig/mod.js +2 -2
- package/dist/sig/owner.test.mjs +1 -1
- package/dist/sig/portable-collection.test.mjs +1 -1
- package/dist/sig/portable-interop.test.mjs +3 -3
- package/dist/sig/portable-key.test.mjs +6 -6
- package/dist/sig/proof.test.mjs +3 -3
- package/dist/sig/tootik-request-interop.test.mjs +4 -4
- package/dist/sig/tootik-send-interop.test.mjs +3 -3
- package/dist/sig/verification.test.mjs +3 -3
- package/dist/{temporal-DLaPDeOv.mjs → temporal-BE3xoktR.mjs} +1 -1
- package/dist/testing/kv.test.mjs +1 -1
- package/dist/utils/docloader.test.mjs +2 -2
- package/dist/utils/kv-cache.test.mjs +1 -1
- package/dist/utils/mod.cjs +1 -1
- package/dist/utils/mod.js +1 -1
- package/package.json +6 -6
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
const { URLPattern } = require("urlpattern-polyfill");
|
|
2
2
|
const require_rolldown_runtime = require("./rolldown-runtime-Dmm3t92W.cjs");
|
|
3
3
|
const require_transformers = require("./transformers-BalCrSsr.cjs");
|
|
4
|
-
const require_http = require("./http-
|
|
4
|
+
const require_http = require("./http-BJrxYYP3.cjs");
|
|
5
5
|
const require_types = require("./types-poIao40f.cjs");
|
|
6
|
-
const require_portable_collection = require("./portable-collection-
|
|
7
|
-
const require_kv_cache = require("./kv-cache-
|
|
6
|
+
const require_portable_collection = require("./portable-collection-D3c6LAHN.cjs");
|
|
7
|
+
const require_kv_cache = require("./kv-cache-DnCGPsXH.cjs");
|
|
8
8
|
let _logtape_logtape = require("@logtape/logtape");
|
|
9
9
|
let _fedify_uri_template = require("@fedify/uri-template");
|
|
10
10
|
let _fedify_vocab = require("@fedify/vocab");
|
|
@@ -3610,11 +3610,15 @@ function sendActivity(options) {
|
|
|
3610
3610
|
}, async (span) => {
|
|
3611
3611
|
if (options.activityId != null) span.setAttribute("activitypub.activity.id", options.activityId);
|
|
3612
3612
|
if (options.activityType != null) span.setAttribute("activitypub.activity.type", options.activityType);
|
|
3613
|
+
const spanContext = span.spanContext();
|
|
3613
3614
|
try {
|
|
3614
|
-
await
|
|
3615
|
+
await (0, _logtape_logtape.withContext)({
|
|
3616
|
+
traceId: spanContext.traceId,
|
|
3617
|
+
spanId: spanContext.spanId
|
|
3618
|
+
}, () => sendActivityInternal({
|
|
3615
3619
|
...options,
|
|
3616
3620
|
tracerProvider
|
|
3617
|
-
}, span);
|
|
3621
|
+
}, span));
|
|
3618
3622
|
} catch (e) {
|
|
3619
3623
|
span.setStatus({
|
|
3620
3624
|
code: _opentelemetry_api.SpanStatusCode.ERROR,
|
|
@@ -4746,13 +4750,13 @@ function recordCollectionMetrics(meterProvider, base, result, options = {}) {
|
|
|
4746
4750
|
* @param parameters The parameters for handling the collection.
|
|
4747
4751
|
* @returns A promise that resolves to an HTTP response.
|
|
4748
4752
|
*/
|
|
4749
|
-
async function handleCollection(request, { name: name$
|
|
4750
|
-
const spanName = name$
|
|
4753
|
+
async function handleCollection(request, { name: name$1, identifier, uriGetter, filter, filterPredicate, context, collectionCallbacks, portable, tracerProvider, meterProvider, onUnauthorized, onNotFound }) {
|
|
4754
|
+
const spanName = name$1.trim().replace(/\s+/g, "_");
|
|
4751
4755
|
tracerProvider = tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
4752
4756
|
const tracer = tracerProvider.getTracer(require_http.name, require_http.version);
|
|
4753
4757
|
const cursor = new URL(request.url).searchParams.get("cursor");
|
|
4754
4758
|
const metricBase = {
|
|
4755
|
-
kind: getCollectionMetricKind(name$
|
|
4759
|
+
kind: getCollectionMetricKind(name$1),
|
|
4756
4760
|
page: cursor != null,
|
|
4757
4761
|
dispatcher: "built_in"
|
|
4758
4762
|
};
|
|
@@ -4798,7 +4802,7 @@ async function handleCollection(request, { name: name$2, identifier, uriGetter,
|
|
|
4798
4802
|
span.setStatus({ code: _opentelemetry_api.SpanStatusCode.ERROR });
|
|
4799
4803
|
return await onNotFound(request);
|
|
4800
4804
|
}
|
|
4801
|
-
const items = filterCollectionItems(page.items, name$
|
|
4805
|
+
const items = filterCollectionItems(page.items, name$1, filterPredicate);
|
|
4802
4806
|
itemCount = items.length;
|
|
4803
4807
|
span.setAttribute("fedify.collection.items", itemCount);
|
|
4804
4808
|
return items;
|
|
@@ -4840,7 +4844,7 @@ async function handleCollection(request, { name: name$2, identifier, uriGetter,
|
|
|
4840
4844
|
} else {
|
|
4841
4845
|
const uri = new URL(portable == null ? baseUri : pageBase);
|
|
4842
4846
|
uri.searchParams.set("cursor", cursor);
|
|
4843
|
-
const pageOrResponse = await tracer.startActiveSpan(`activitypub.dispatch_collection_page ${name$
|
|
4847
|
+
const pageOrResponse = await tracer.startActiveSpan(`activitypub.dispatch_collection_page ${name$1}`, {
|
|
4844
4848
|
kind: _opentelemetry_api.SpanKind.SERVER,
|
|
4845
4849
|
attributes: {
|
|
4846
4850
|
"activitypub.collection.id": uri.href,
|
|
@@ -4856,7 +4860,7 @@ async function handleCollection(request, { name: name$2, identifier, uriGetter,
|
|
|
4856
4860
|
span.setStatus({ code: _opentelemetry_api.SpanStatusCode.ERROR });
|
|
4857
4861
|
return await onNotFound(request);
|
|
4858
4862
|
}
|
|
4859
|
-
const items = filterCollectionItems(page.items, name$
|
|
4863
|
+
const items = filterCollectionItems(page.items, name$1, filterPredicate);
|
|
4860
4864
|
itemCount = items.length;
|
|
4861
4865
|
span.setAttribute("fedify.collection.items", itemCount);
|
|
4862
4866
|
return {
|
|
@@ -5352,8 +5356,12 @@ async function handleInbox(request, options) {
|
|
|
5352
5356
|
attributes: { "activitypub.shared_inbox": options.recipient == null }
|
|
5353
5357
|
}, async (span) => {
|
|
5354
5358
|
if (options.recipient != null) span.setAttribute("fedify.inbox.recipient", options.recipient);
|
|
5359
|
+
const spanContext = span.spanContext();
|
|
5355
5360
|
try {
|
|
5356
|
-
return await
|
|
5361
|
+
return await (0, _logtape_logtape.withContext)({
|
|
5362
|
+
traceId: spanContext.traceId,
|
|
5363
|
+
spanId: spanContext.spanId
|
|
5364
|
+
}, () => handleInboxInternal(request, options, span));
|
|
5357
5365
|
} catch (e) {
|
|
5358
5366
|
options.observation.hasException = true;
|
|
5359
5367
|
span.setStatus({
|
|
@@ -6230,8 +6238,8 @@ var CustomCollectionHandler = class {
|
|
|
6230
6238
|
* @param CollectionPage The CollectionPage constructor.
|
|
6231
6239
|
* @param filterPredicate Optional filter predicate for items.
|
|
6232
6240
|
*/
|
|
6233
|
-
constructor(name$
|
|
6234
|
-
this.name = name$
|
|
6241
|
+
constructor(name$2, values, context, callbacks, tracerProvider = _opentelemetry_api.trace.getTracerProvider(), meterProvider, Collection, CollectionPage, filterPredicate, portable) {
|
|
6242
|
+
this.name = name$2;
|
|
6235
6243
|
this.values = values;
|
|
6236
6244
|
this.context = context;
|
|
6237
6245
|
this.callbacks = callbacks;
|
|
@@ -17,7 +17,7 @@ json_canon = require_rolldown_runtime.__toESM(json_canon, 1);
|
|
|
17
17
|
let _opentelemetry_semantic_conventions = require("@opentelemetry/semantic-conventions");
|
|
18
18
|
//#region deno.json
|
|
19
19
|
var name = "@fedify/fedify";
|
|
20
|
-
var version = "2.5.0-dev.
|
|
20
|
+
var version = "2.5.0-dev.2339+5e786861";
|
|
21
21
|
//#endregion
|
|
22
22
|
//#region src/sig/portable-key-id.ts
|
|
23
23
|
const COMPATIBLE_KEY_ID_PATH_PATTERN = /^\/\.well-known\/apgateway\/did(?::|%3A)/i;
|
|
@@ -3,12 +3,12 @@ import "urlpattern-polyfill";
|
|
|
3
3
|
globalThis.addEventListener = () => {};
|
|
4
4
|
import { m as parseKeyIdString } from "./portable-key-id-Ca30-hOa.mjs";
|
|
5
5
|
import { a as verificationObservation, i as triedKey, n as observeCheck, t as observeAttempt } from "./verification-Dpfcw8ml.mjs";
|
|
6
|
-
import { n as version, t as name } from "./deno-
|
|
7
|
-
import { n as getDurationMs, r as getFederationMetrics, s as measureSignatureKeyFetch } from "./metrics-
|
|
6
|
+
import { n as version, t as name } from "./deno-BnX-hlO-.mjs";
|
|
7
|
+
import { n as getDurationMs, r as getFederationMetrics, s as measureSignatureKeyFetch } from "./metrics-BuC9-u1Z.mjs";
|
|
8
8
|
import { i as validateAcceptSignature, n as fulfillAcceptSignature, r as parseAcceptSignature } from "./accept-CPVqki78.mjs";
|
|
9
9
|
import { a as promoteKeyOwnerEvidence } from "./key-owner-evidence-APB6NpSk.mjs";
|
|
10
|
-
import { a as fetchKeyDetailed, c as validateCryptoKey, t as bypassKeyCacheReads } from "./key-
|
|
11
|
-
import { n as resolvePortableActorKey, r as verifyPortableGatewayKeyDocument } from "./portable-key-
|
|
10
|
+
import { a as fetchKeyDetailed, c as validateCryptoKey, t as bypassKeyCacheReads } from "./key-DRLFC1um.mjs";
|
|
11
|
+
import { n as resolvePortableActorKey, r as verifyPortableGatewayKeyDocument } from "./portable-key-CF6z6v-f.mjs";
|
|
12
12
|
import { getLogger } from "@logtape/logtape";
|
|
13
13
|
import { CryptographicKey } from "@fedify/vocab";
|
|
14
14
|
import { SpanStatusCode, trace } from "@opentelemetry/api";
|
|
@@ -15,7 +15,7 @@ import serialize from "json-canon";
|
|
|
15
15
|
import { ATTR_HTTP_REQUEST_HEADER, ATTR_HTTP_REQUEST_METHOD, ATTR_URL_FULL } from "@opentelemetry/semantic-conventions";
|
|
16
16
|
//#region deno.json
|
|
17
17
|
var name = "@fedify/fedify";
|
|
18
|
-
var version = "2.5.0-dev.
|
|
18
|
+
var version = "2.5.0-dev.2339+5e786861";
|
|
19
19
|
//#endregion
|
|
20
20
|
//#region src/sig/portable-key-id.ts
|
|
21
21
|
const COMPATIBLE_KEY_ID_PATH_PATTERN = /^\/\.well-known\/apgateway\/did(?::|%3A)/i;
|
|
@@ -3,8 +3,8 @@ import "urlpattern-polyfill";
|
|
|
3
3
|
globalThis.addEventListener = () => {};
|
|
4
4
|
import { c as isPortableActorDocument, d as isPortableUri, l as isPortableId, m as parseKeyIdString, s as isCompatibleKeyId } from "./portable-key-id-Ca30-hOa.mjs";
|
|
5
5
|
import { a as verificationObservation } from "./verification-Dpfcw8ml.mjs";
|
|
6
|
-
import { n as version, t as name } from "./deno-
|
|
7
|
-
import { _ as recordKeyLookup, n as getDurationMs, t as classifyFetchError } from "./metrics-
|
|
6
|
+
import { n as version, t as name } from "./deno-BnX-hlO-.mjs";
|
|
7
|
+
import { _ as recordKeyLookup, n as getDurationMs, t as classifyFetchError } from "./metrics-BuC9-u1Z.mjs";
|
|
8
8
|
import { n as attachKeyOwnerEvidence, t as MAX_PORTABLE_KEY_TTL } from "./key-owner-evidence-APB6NpSk.mjs";
|
|
9
9
|
import { getLogger } from "@logtape/logtape";
|
|
10
10
|
import { CryptographicKey, Multikey, Object as Object$1, isActor } from "@fedify/vocab";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Temporal } from "temporal-polyfill";
|
|
2
2
|
import { URLPattern } from "urlpattern-polyfill";
|
|
3
3
|
globalThis.addEventListener = () => {};
|
|
4
|
-
import { p as recordDocumentCache } from "./metrics-
|
|
4
|
+
import { p as recordDocumentCache } from "./metrics-BuC9-u1Z.mjs";
|
|
5
5
|
import { getLogger } from "@logtape/logtape";
|
|
6
6
|
import { preloadedContexts } from "@fedify/vocab-runtime";
|
|
7
7
|
//#region src/utils/kv-cache.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const { URLPattern } = require("urlpattern-polyfill");
|
|
2
|
-
const require_http = require("./http-
|
|
2
|
+
const require_http = require("./http-BJrxYYP3.cjs");
|
|
3
3
|
let _logtape_logtape = require("@logtape/logtape");
|
|
4
4
|
let _fedify_vocab_runtime = require("@fedify/vocab-runtime");
|
|
5
5
|
let es_toolkit = require("es-toolkit");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Temporal } from "temporal-polyfill";
|
|
2
2
|
import { URLPattern } from "urlpattern-polyfill";
|
|
3
|
-
import { G as validateCryptoKey, ot as recordDocumentCache, t as doubleKnock } from "./http-
|
|
3
|
+
import { G as validateCryptoKey, ot as recordDocumentCache, t as doubleKnock } from "./http-CVT3OEmZ.js";
|
|
4
4
|
import { getLogger } from "@logtape/logtape";
|
|
5
5
|
import { FetchError, UrlError, createActivityPubRequest, getRemoteDocument, logRequest, preloadedContexts, resolveDocumentLoaderTimeout, validatePublicUrl, withDocumentLoaderTimeout } from "@fedify/vocab-runtime";
|
|
6
6
|
import { curry } from "es-toolkit";
|
|
@@ -2,9 +2,9 @@ import "temporal-polyfill";
|
|
|
2
2
|
import "urlpattern-polyfill";
|
|
3
3
|
globalThis.addEventListener = () => {};
|
|
4
4
|
import { a as verificationObservation, i as triedKey, n as observeCheck, t as observeAttempt } from "./verification-Dpfcw8ml.mjs";
|
|
5
|
-
import { n as version, t as name } from "./deno-
|
|
6
|
-
import { n as getDurationMs, r as getFederationMetrics, s as measureSignatureKeyFetch } from "./metrics-
|
|
7
|
-
import { c as validateCryptoKey, i as fetchKey, t as bypassKeyCacheReads } from "./key-
|
|
5
|
+
import { n as version, t as name } from "./deno-BnX-hlO-.mjs";
|
|
6
|
+
import { n as getDurationMs, r as getFederationMetrics, s as measureSignatureKeyFetch } from "./metrics-BuC9-u1Z.mjs";
|
|
7
|
+
import { c as validateCryptoKey, i as fetchKey, t as bypassKeyCacheReads } from "./key-DRLFC1um.mjs";
|
|
8
8
|
import { getLogger } from "@logtape/logtape";
|
|
9
9
|
import { Activity, CryptographicKey, Object as Object$1, getTypeId } from "@fedify/vocab";
|
|
10
10
|
import { SpanStatusCode, trace } from "@opentelemetry/api";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "temporal-polyfill";
|
|
2
2
|
import "urlpattern-polyfill";
|
|
3
3
|
globalThis.addEventListener = () => {};
|
|
4
|
-
import { n as version, t as name } from "./deno-
|
|
4
|
+
import { n as version, t as name } from "./deno-BnX-hlO-.mjs";
|
|
5
5
|
import { metrics } from "@opentelemetry/api";
|
|
6
6
|
import { FetchError } from "@fedify/vocab-runtime";
|
|
7
7
|
//#region src/federation/metrics.ts
|
|
@@ -4,28 +4,28 @@ globalThis.addEventListener = () => {};
|
|
|
4
4
|
import { d as isPortableUri, f as isSameObjectId, i as getPortableDid, l as isPortableId, n as getCanonicalPortableId, o as hasPortableActor, r as getGatewayKeyBase, s as isCompatibleKeyId, t as getAuthenticationOrigin, u as isPortableKeyId } from "./portable-key-id-Ca30-hOa.mjs";
|
|
5
5
|
import { n as isPubliclyAddressedNode, t as isInAudience } from "./audience-CHQ-FlLD.mjs";
|
|
6
6
|
import { a as verificationObservation, r as snapshotKey, t as observeAttempt } from "./verification-Dpfcw8ml.mjs";
|
|
7
|
-
import { n as version, t as name } from "./deno-
|
|
8
|
-
import { a as instrumentDocumentLoader, b as recordWebFingerHandle, c as recordCircuitBreakerStateChange, d as recordCollectionRequest, f as recordCollectionTotalItems, g as recordInboxActivity, h as recordFanoutRecipients, i as getRemoteHost, l as recordCollectionDispatchDuration, n as getDurationMs, o as isAbortError, r as getFederationMetrics, u as recordCollectionPageItems, v as recordOutboxActivity, x as registerQueueDepthGauge, y as recordOutboxEnqueue } from "./metrics-
|
|
7
|
+
import { n as version, t as name } from "./deno-BnX-hlO-.mjs";
|
|
8
|
+
import { a as instrumentDocumentLoader, b as recordWebFingerHandle, c as recordCircuitBreakerStateChange, d as recordCollectionRequest, f as recordCollectionTotalItems, g as recordInboxActivity, h as recordFanoutRecipients, i as getRemoteHost, l as recordCollectionDispatchDuration, n as getDurationMs, o as isAbortError, r as getFederationMetrics, u as recordCollectionPageItems, v as recordOutboxActivity, x as registerQueueDepthGauge, y as recordOutboxEnqueue } from "./metrics-BuC9-u1Z.mjs";
|
|
9
9
|
import { t as formatAcceptSignature } from "./accept-CPVqki78.mjs";
|
|
10
|
-
import { c as validateCryptoKey, n as exportJwk, s as importJwk } from "./key-
|
|
10
|
+
import { c as validateCryptoKey, n as exportJwk, s as importJwk } from "./key-DRLFC1um.mjs";
|
|
11
11
|
import { r as normalizeOutgoingActivityJsonLd } from "./outgoing-jsonld-4IJqPYos.mjs";
|
|
12
|
-
import { _ as wrapContextLoaderForJsonLd, a as compactJsonLd, c as getNormalizationContextLoader, d as isClearlyMalformedContextReference, f as isInvalidUrlTypeError, l as hasSignature, m as verifyCompactJsonLd, p as signJsonLd, r as assertSafeJsonLd, s as detachSignature, t as InvalidContextReferenceError, u as hasSignatureLike } from "./ld-
|
|
13
|
-
import { a as signObject, c as verifyPortableObjectProof, i as hasProofLike, s as verifyObject, t as InvalidPortableObjectIdError, u as verifyPortableObjectProofWithRoot } from "./proof-
|
|
14
|
-
import { a as listRequestSignatures, c as selectRequestSignature, d as validateMaxSignatures, f as verifyRequest, p as verifyRequestDetailed, s as parseRfc9421SignatureInput } from "./http-
|
|
15
|
-
import { t as getAuthenticatedDocumentLoader } from "./docloader-
|
|
16
|
-
import { n as kvCache } from "./kv-cache-
|
|
12
|
+
import { _ as wrapContextLoaderForJsonLd, a as compactJsonLd, c as getNormalizationContextLoader, d as isClearlyMalformedContextReference, f as isInvalidUrlTypeError, l as hasSignature, m as verifyCompactJsonLd, p as signJsonLd, r as assertSafeJsonLd, s as detachSignature, t as InvalidContextReferenceError, u as hasSignatureLike } from "./ld-BiFf-T9F.mjs";
|
|
13
|
+
import { a as signObject, c as verifyPortableObjectProof, i as hasProofLike, s as verifyObject, t as InvalidPortableObjectIdError, u as verifyPortableObjectProofWithRoot } from "./proof-vlRUtAdS.mjs";
|
|
14
|
+
import { a as listRequestSignatures, c as selectRequestSignature, d as validateMaxSignatures, f as verifyRequest, p as verifyRequestDetailed, s as parseRfc9421SignatureInput } from "./http-BSmcgoaq.mjs";
|
|
15
|
+
import { t as getAuthenticatedDocumentLoader } from "./docloader-_tslGlJv.mjs";
|
|
16
|
+
import { n as kvCache } from "./kv-cache-DTY50c-3.mjs";
|
|
17
17
|
import { d as readBoundedText, l as BodyTooLargeError, t as getNodeInfo, u as MAX_BODY_SIZE } from "./client-CEnNz8O7.mjs";
|
|
18
18
|
import { t as nodeInfoToJson } from "./types-DE_LV1JB.mjs";
|
|
19
|
-
import { n as getKeyOwner, t as doesActorOwnKey } from "./owner-
|
|
20
|
-
import { t as verifyPortableObject } from "./portable-collection-
|
|
21
|
-
import { a as getOrderingDestination, i as sendActivityThroughGateways, n as extractInboxes, r as sendActivity, t as SendActivityError } from "./send-
|
|
22
|
-
import { n as FederationBuilderImpl, t as ACTOR_ALIAS_PREFIX } from "./builder-
|
|
19
|
+
import { n as getKeyOwner, t as doesActorOwnKey } from "./owner-BsgoTcNb.mjs";
|
|
20
|
+
import { t as verifyPortableObject } from "./portable-collection-BiBpObws.mjs";
|
|
21
|
+
import { a as getOrderingDestination, i as sendActivityThroughGateways, n as extractInboxes, r as sendActivity, t as SendActivityError } from "./send-D5aMlvJH.mjs";
|
|
22
|
+
import { n as FederationBuilderImpl, t as ACTOR_ALIAS_PREFIX } from "./builder-4z5McYcY.mjs";
|
|
23
23
|
import { t as CircuitBreaker } from "./circuit-breaker-XJ53md4S.mjs";
|
|
24
24
|
import { t as buildCollectionSynchronizationHeader } from "./collection-CnnP1UAv.mjs";
|
|
25
|
-
import { a as inspectCompoundPortableObjectApplicability, c as verifyServedPortableObjects, i as findUnsupportedCompoundProofShape, o as verifyCompoundPortableObjectProofs, r as findEmbeddedProofWithoutContext, t as containsCompoundPortableObject } from "./compound-proof-
|
|
25
|
+
import { a as inspectCompoundPortableObjectApplicability, c as verifyServedPortableObjects, i as findUnsupportedCompoundProofShape, o as verifyCompoundPortableObjectProofs, r as findEmbeddedProofWithoutContext, t as containsCompoundPortableObject } from "./compound-proof-B6xZTnTr.mjs";
|
|
26
26
|
import { t as KvKeyCache } from "./keycache-D-MNltOk.mjs";
|
|
27
27
|
import { t as acceptsJsonLd } from "./negotiation-CCocWT_N.mjs";
|
|
28
|
-
import { t as hasMalformedKnownTemporalLiteral } from "./temporal-
|
|
28
|
+
import { t as hasMalformedKnownTemporalLiteral } from "./temporal-BE3xoktR.mjs";
|
|
29
29
|
import { t as createExponentialBackoffPolicy } from "./retry-zX5xw5e0.mjs";
|
|
30
30
|
import { t as TaskCodec } from "./codec-C6rTrpIp.mjs";
|
|
31
31
|
import { getLogger, withContext } from "@logtape/logtape";
|
|
@@ -1726,13 +1726,13 @@ function recordCollectionMetrics(meterProvider, base, result, options = {}) {
|
|
|
1726
1726
|
* @param parameters The parameters for handling the collection.
|
|
1727
1727
|
* @returns A promise that resolves to an HTTP response.
|
|
1728
1728
|
*/
|
|
1729
|
-
async function handleCollection(request, { name: name$
|
|
1730
|
-
const spanName = name$
|
|
1729
|
+
async function handleCollection(request, { name: name$1, identifier, uriGetter, filter, filterPredicate, context, collectionCallbacks, portable, tracerProvider, meterProvider, onUnauthorized, onNotFound }) {
|
|
1730
|
+
const spanName = name$1.trim().replace(/\s+/g, "_");
|
|
1731
1731
|
tracerProvider = tracerProvider ?? trace.getTracerProvider();
|
|
1732
1732
|
const tracer = tracerProvider.getTracer(name, version);
|
|
1733
1733
|
const cursor = new URL(request.url).searchParams.get("cursor");
|
|
1734
1734
|
const metricBase = {
|
|
1735
|
-
kind: getCollectionMetricKind(name$
|
|
1735
|
+
kind: getCollectionMetricKind(name$1),
|
|
1736
1736
|
page: cursor != null,
|
|
1737
1737
|
dispatcher: "built_in"
|
|
1738
1738
|
};
|
|
@@ -1778,7 +1778,7 @@ async function handleCollection(request, { name: name$2, identifier, uriGetter,
|
|
|
1778
1778
|
span.setStatus({ code: SpanStatusCode.ERROR });
|
|
1779
1779
|
return await onNotFound(request);
|
|
1780
1780
|
}
|
|
1781
|
-
const items = filterCollectionItems(page.items, name$
|
|
1781
|
+
const items = filterCollectionItems(page.items, name$1, filterPredicate);
|
|
1782
1782
|
itemCount = items.length;
|
|
1783
1783
|
span.setAttribute("fedify.collection.items", itemCount);
|
|
1784
1784
|
return items;
|
|
@@ -1820,7 +1820,7 @@ async function handleCollection(request, { name: name$2, identifier, uriGetter,
|
|
|
1820
1820
|
} else {
|
|
1821
1821
|
const uri = new URL(portable == null ? baseUri : pageBase);
|
|
1822
1822
|
uri.searchParams.set("cursor", cursor);
|
|
1823
|
-
const pageOrResponse = await tracer.startActiveSpan(`activitypub.dispatch_collection_page ${name$
|
|
1823
|
+
const pageOrResponse = await tracer.startActiveSpan(`activitypub.dispatch_collection_page ${name$1}`, {
|
|
1824
1824
|
kind: SpanKind.SERVER,
|
|
1825
1825
|
attributes: {
|
|
1826
1826
|
"activitypub.collection.id": uri.href,
|
|
@@ -1836,7 +1836,7 @@ async function handleCollection(request, { name: name$2, identifier, uriGetter,
|
|
|
1836
1836
|
span.setStatus({ code: SpanStatusCode.ERROR });
|
|
1837
1837
|
return await onNotFound(request);
|
|
1838
1838
|
}
|
|
1839
|
-
const items = filterCollectionItems(page.items, name$
|
|
1839
|
+
const items = filterCollectionItems(page.items, name$1, filterPredicate);
|
|
1840
1840
|
itemCount = items.length;
|
|
1841
1841
|
span.setAttribute("fedify.collection.items", itemCount);
|
|
1842
1842
|
return {
|
|
@@ -2332,8 +2332,12 @@ async function handleInbox(request, options) {
|
|
|
2332
2332
|
attributes: { "activitypub.shared_inbox": options.recipient == null }
|
|
2333
2333
|
}, async (span) => {
|
|
2334
2334
|
if (options.recipient != null) span.setAttribute("fedify.inbox.recipient", options.recipient);
|
|
2335
|
+
const spanContext = span.spanContext();
|
|
2335
2336
|
try {
|
|
2336
|
-
return await
|
|
2337
|
+
return await withContext({
|
|
2338
|
+
traceId: spanContext.traceId,
|
|
2339
|
+
spanId: spanContext.spanId
|
|
2340
|
+
}, () => handleInboxInternal(request, options, span));
|
|
2337
2341
|
} catch (e) {
|
|
2338
2342
|
options.observation.hasException = true;
|
|
2339
2343
|
span.setStatus({
|
|
@@ -3210,8 +3214,8 @@ var CustomCollectionHandler = class {
|
|
|
3210
3214
|
* @param CollectionPage The CollectionPage constructor.
|
|
3211
3215
|
* @param filterPredicate Optional filter predicate for items.
|
|
3212
3216
|
*/
|
|
3213
|
-
constructor(name$
|
|
3214
|
-
this.name = name$
|
|
3217
|
+
constructor(name$2, values, context, callbacks, tracerProvider = trace.getTracerProvider(), meterProvider, Collection, CollectionPage, filterPredicate, portable) {
|
|
3218
|
+
this.name = name$2;
|
|
3215
3219
|
this.values = values;
|
|
3216
3220
|
this.context = context;
|
|
3217
3221
|
this.callbacks = callbacks;
|
|
@@ -2,10 +2,10 @@ import { Temporal } from "temporal-polyfill";
|
|
|
2
2
|
import { URLPattern } from "urlpattern-polyfill";
|
|
3
3
|
import { t as __exportAll } from "./rolldown-runtime-BC-Eo5Mj.js";
|
|
4
4
|
import { r as getDefaultActivityTransformers } from "./transformers-DAtXl_Kc.js";
|
|
5
|
-
import { $ as instrumentDocumentLoader, A as hasSignature, At as isPortableUri, C as InvalidContextReferenceError, Ct as getGatewayKeyBase, Dt as isCompatibleKeyId, E as compactJsonLd, Et as hasPortableActor, F as verifyCompactJsonLd, G as validateCryptoKey, M as isClearlyMalformedContextReference, N as isInvalidUrlTypeError, Nt as name, O as detachSignature, Ot as isPortableId, P as signJsonLd, Pt as version, Q as getRemoteHost, R as wrapContextLoaderForJsonLd, S as normalizeOutgoingActivityJsonLd, St as getCanonicalPortableId, Tt as getRawCanonicalPortableId, W as importJwk, X as getDurationMs, Z as getFederationMetrics, _ as verifyObject, at as recordCollectionTotalItems, b as verifyPortableObjectProofWithRoot, bt as verificationObservation, c as verifyRequestDetailed, ct as recordInboxActivity, d as InvalidPortableObjectIdError, dt as recordWebFingerHandle, et as isAbortError, f as classifyFep2277CoreType, ft as registerQueueDepthGauge, g as verifyMapLocalProof, h as signObject, i as selectRequestSignature, it as recordCollectionRequest, j as hasSignatureLike, jt as isSameObjectId, k as getNormalizationContextLoader, kt as isPortableKeyId, lt as recordOutboxActivity, m as hasProofLike, mt as formatAcceptSignature, n as listRequestSignatures, nt as recordCollectionDispatchDuration, o as validateMaxSignatures, pt as preloadedOnlyDocumentLoader, q as MAX_PORTABLE_KEY_TTL, r as parseRfc9421SignatureInput, rt as recordCollectionPageItems, s as verifyRequest, st as recordFanoutRecipients, t as doubleKnock, tt as recordCircuitBreakerStateChange, ut as recordOutboxEnqueue, v as verifyPortableObjectProof, vt as observeAttempt, w as assertSafeJsonLd, wt as getPortableDid, xt as getAuthenticationOrigin, y as verifyPortableObjectProofPolicy, yt as snapshotKey, z as exportJwk } from "./http-
|
|
5
|
+
import { $ as instrumentDocumentLoader, A as hasSignature, At as isPortableUri, C as InvalidContextReferenceError, Ct as getGatewayKeyBase, Dt as isCompatibleKeyId, E as compactJsonLd, Et as hasPortableActor, F as verifyCompactJsonLd, G as validateCryptoKey, M as isClearlyMalformedContextReference, N as isInvalidUrlTypeError, Nt as name, O as detachSignature, Ot as isPortableId, P as signJsonLd, Pt as version, Q as getRemoteHost, R as wrapContextLoaderForJsonLd, S as normalizeOutgoingActivityJsonLd, St as getCanonicalPortableId, Tt as getRawCanonicalPortableId, W as importJwk, X as getDurationMs, Z as getFederationMetrics, _ as verifyObject, at as recordCollectionTotalItems, b as verifyPortableObjectProofWithRoot, bt as verificationObservation, c as verifyRequestDetailed, ct as recordInboxActivity, d as InvalidPortableObjectIdError, dt as recordWebFingerHandle, et as isAbortError, f as classifyFep2277CoreType, ft as registerQueueDepthGauge, g as verifyMapLocalProof, h as signObject, i as selectRequestSignature, it as recordCollectionRequest, j as hasSignatureLike, jt as isSameObjectId, k as getNormalizationContextLoader, kt as isPortableKeyId, lt as recordOutboxActivity, m as hasProofLike, mt as formatAcceptSignature, n as listRequestSignatures, nt as recordCollectionDispatchDuration, o as validateMaxSignatures, pt as preloadedOnlyDocumentLoader, q as MAX_PORTABLE_KEY_TTL, r as parseRfc9421SignatureInput, rt as recordCollectionPageItems, s as verifyRequest, st as recordFanoutRecipients, t as doubleKnock, tt as recordCircuitBreakerStateChange, ut as recordOutboxEnqueue, v as verifyPortableObjectProof, vt as observeAttempt, w as assertSafeJsonLd, wt as getPortableDid, xt as getAuthenticationOrigin, y as verifyPortableObjectProofPolicy, yt as snapshotKey, z as exportJwk } from "./http-CVT3OEmZ.js";
|
|
6
6
|
import { a as MAX_BODY_SIZE, i as BodyTooLargeError, n as getNodeInfo, o as readBoundedText, t as nodeInfoToJson } from "./types-_S2_MeLF.js";
|
|
7
|
-
import { n as doesActorOwnKey, r as getKeyOwner, t as verifyPortableObject } from "./portable-collection-
|
|
8
|
-
import { n as getAuthenticatedDocumentLoader, t as kvCache } from "./kv-cache-
|
|
7
|
+
import { n as doesActorOwnKey, r as getKeyOwner, t as verifyPortableObject } from "./portable-collection-BzUoU2gg.js";
|
|
8
|
+
import { n as getAuthenticatedDocumentLoader, t as kvCache } from "./kv-cache-Dv3joZCp.js";
|
|
9
9
|
import { getLogger, withContext } from "@logtape/logtape";
|
|
10
10
|
import { Router, RouterError, assertPath } from "@fedify/uri-template";
|
|
11
11
|
import { Activity, Collection, CollectionPage, CryptographicKey, Link, Multikey, Object as Object$1, OrderedCollection, OrderedCollectionPage, PUBLIC_COLLECTION, Tombstone, getTypeId, isActor, lookupObject, traverseCollection } from "@fedify/vocab";
|
|
@@ -3607,11 +3607,15 @@ function sendActivity(options) {
|
|
|
3607
3607
|
}, async (span) => {
|
|
3608
3608
|
if (options.activityId != null) span.setAttribute("activitypub.activity.id", options.activityId);
|
|
3609
3609
|
if (options.activityType != null) span.setAttribute("activitypub.activity.type", options.activityType);
|
|
3610
|
+
const spanContext = span.spanContext();
|
|
3610
3611
|
try {
|
|
3611
|
-
await
|
|
3612
|
+
await withContext({
|
|
3613
|
+
traceId: spanContext.traceId,
|
|
3614
|
+
spanId: spanContext.spanId
|
|
3615
|
+
}, () => sendActivityInternal({
|
|
3612
3616
|
...options,
|
|
3613
3617
|
tracerProvider
|
|
3614
|
-
}, span);
|
|
3618
|
+
}, span));
|
|
3615
3619
|
} catch (e) {
|
|
3616
3620
|
span.setStatus({
|
|
3617
3621
|
code: SpanStatusCode.ERROR,
|
|
@@ -4740,13 +4744,13 @@ function recordCollectionMetrics(meterProvider, base, result, options = {}) {
|
|
|
4740
4744
|
* @param parameters The parameters for handling the collection.
|
|
4741
4745
|
* @returns A promise that resolves to an HTTP response.
|
|
4742
4746
|
*/
|
|
4743
|
-
async function handleCollection(request, { name: name$
|
|
4744
|
-
const spanName = name$
|
|
4747
|
+
async function handleCollection(request, { name: name$1, identifier, uriGetter, filter, filterPredicate, context, collectionCallbacks, portable, tracerProvider, meterProvider, onUnauthorized, onNotFound }) {
|
|
4748
|
+
const spanName = name$1.trim().replace(/\s+/g, "_");
|
|
4745
4749
|
tracerProvider = tracerProvider ?? trace.getTracerProvider();
|
|
4746
4750
|
const tracer = tracerProvider.getTracer(name, version);
|
|
4747
4751
|
const cursor = new URL(request.url).searchParams.get("cursor");
|
|
4748
4752
|
const metricBase = {
|
|
4749
|
-
kind: getCollectionMetricKind(name$
|
|
4753
|
+
kind: getCollectionMetricKind(name$1),
|
|
4750
4754
|
page: cursor != null,
|
|
4751
4755
|
dispatcher: "built_in"
|
|
4752
4756
|
};
|
|
@@ -4792,7 +4796,7 @@ async function handleCollection(request, { name: name$2, identifier, uriGetter,
|
|
|
4792
4796
|
span.setStatus({ code: SpanStatusCode.ERROR });
|
|
4793
4797
|
return await onNotFound(request);
|
|
4794
4798
|
}
|
|
4795
|
-
const items = filterCollectionItems(page.items, name$
|
|
4799
|
+
const items = filterCollectionItems(page.items, name$1, filterPredicate);
|
|
4796
4800
|
itemCount = items.length;
|
|
4797
4801
|
span.setAttribute("fedify.collection.items", itemCount);
|
|
4798
4802
|
return items;
|
|
@@ -4834,7 +4838,7 @@ async function handleCollection(request, { name: name$2, identifier, uriGetter,
|
|
|
4834
4838
|
} else {
|
|
4835
4839
|
const uri = new URL(portable == null ? baseUri : pageBase);
|
|
4836
4840
|
uri.searchParams.set("cursor", cursor);
|
|
4837
|
-
const pageOrResponse = await tracer.startActiveSpan(`activitypub.dispatch_collection_page ${name$
|
|
4841
|
+
const pageOrResponse = await tracer.startActiveSpan(`activitypub.dispatch_collection_page ${name$1}`, {
|
|
4838
4842
|
kind: SpanKind.SERVER,
|
|
4839
4843
|
attributes: {
|
|
4840
4844
|
"activitypub.collection.id": uri.href,
|
|
@@ -4850,7 +4854,7 @@ async function handleCollection(request, { name: name$2, identifier, uriGetter,
|
|
|
4850
4854
|
span.setStatus({ code: SpanStatusCode.ERROR });
|
|
4851
4855
|
return await onNotFound(request);
|
|
4852
4856
|
}
|
|
4853
|
-
const items = filterCollectionItems(page.items, name$
|
|
4857
|
+
const items = filterCollectionItems(page.items, name$1, filterPredicate);
|
|
4854
4858
|
itemCount = items.length;
|
|
4855
4859
|
span.setAttribute("fedify.collection.items", itemCount);
|
|
4856
4860
|
return {
|
|
@@ -5346,8 +5350,12 @@ async function handleInbox(request, options) {
|
|
|
5346
5350
|
attributes: { "activitypub.shared_inbox": options.recipient == null }
|
|
5347
5351
|
}, async (span) => {
|
|
5348
5352
|
if (options.recipient != null) span.setAttribute("fedify.inbox.recipient", options.recipient);
|
|
5353
|
+
const spanContext = span.spanContext();
|
|
5349
5354
|
try {
|
|
5350
|
-
return await
|
|
5355
|
+
return await withContext({
|
|
5356
|
+
traceId: spanContext.traceId,
|
|
5357
|
+
spanId: spanContext.spanId
|
|
5358
|
+
}, () => handleInboxInternal(request, options, span));
|
|
5351
5359
|
} catch (e) {
|
|
5352
5360
|
options.observation.hasException = true;
|
|
5353
5361
|
span.setStatus({
|
|
@@ -6224,8 +6232,8 @@ var CustomCollectionHandler = class {
|
|
|
6224
6232
|
* @param CollectionPage The CollectionPage constructor.
|
|
6225
6233
|
* @param filterPredicate Optional filter predicate for items.
|
|
6226
6234
|
*/
|
|
6227
|
-
constructor(name$
|
|
6228
|
-
this.name = name$
|
|
6235
|
+
constructor(name$2, values, context, callbacks, tracerProvider = trace.getTracerProvider(), meterProvider, Collection, CollectionPage, filterPredicate, portable) {
|
|
6236
|
+
this.name = name$2;
|
|
6229
6237
|
this.values = values;
|
|
6230
6238
|
this.context = context;
|
|
6231
6239
|
this.callbacks = callbacks;
|
package/dist/mod.cjs
CHANGED
|
@@ -3,11 +3,11 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
3
3
|
require("./rolldown-runtime-Dmm3t92W.cjs");
|
|
4
4
|
const require_transformers = require("./transformers-BalCrSsr.cjs");
|
|
5
5
|
require("./compat/mod.cjs");
|
|
6
|
-
const require_http = require("./http-
|
|
7
|
-
const require_federation = require("./federation-
|
|
6
|
+
const require_http = require("./http-BJrxYYP3.cjs");
|
|
7
|
+
const require_federation = require("./federation-CV-CkIIZ.cjs");
|
|
8
8
|
const require_types = require("./types-poIao40f.cjs");
|
|
9
|
-
const require_portable_collection = require("./portable-collection-
|
|
10
|
-
const require_kv_cache = require("./kv-cache-
|
|
9
|
+
const require_portable_collection = require("./portable-collection-D3c6LAHN.cjs");
|
|
10
|
+
const require_kv_cache = require("./kv-cache-DnCGPsXH.cjs");
|
|
11
11
|
require("./nodeinfo/mod.cjs");
|
|
12
12
|
require("./runtime/mod.cjs");
|
|
13
13
|
require("./sig/mod.cjs");
|
package/dist/mod.js
CHANGED
|
@@ -3,11 +3,11 @@ import { URLPattern } from "urlpattern-polyfill";
|
|
|
3
3
|
import "./rolldown-runtime-BC-Eo5Mj.js";
|
|
4
4
|
import { n as autoIdAssigner, r as getDefaultActivityTransformers, t as actorDehydrator } from "./transformers-DAtXl_Kc.js";
|
|
5
5
|
import "./compat/mod.js";
|
|
6
|
-
import { D as createSignature, H as fetchKeyDetailed, I as verifyJsonLd, L as verifySignature, O as detachSignature, P as signJsonLd, T as attachSignature, U as generateCryptoKeyPair, V as fetchKey, W as importJwk, _ as verifyObject, _t as validateAcceptSignature, a as signRequest, c as verifyRequestDetailed, gt as parseAcceptSignature, h as signObject, ht as fulfillAcceptSignature, j as hasSignatureLike, m as hasProofLike, mt as formatAcceptSignature, p as createProof, s as verifyRequest, v as verifyPortableObjectProof, x as verifyProof, z as exportJwk } from "./http-
|
|
7
|
-
import { a as respondWithObjectIfAcceptable, c as digest, d as parseCircuitBreakerKvState, f as createFederationBuilder, i as respondWithObject, l as CircuitBreaker, n as handleWebFinger, o as SendActivityError, r as createExponentialBackoffPolicy, s as buildCollectionSynchronizationHeader, t as createFederation, u as normalizeCircuitBreakerOptions } from "./middleware-
|
|
6
|
+
import { D as createSignature, H as fetchKeyDetailed, I as verifyJsonLd, L as verifySignature, O as detachSignature, P as signJsonLd, T as attachSignature, U as generateCryptoKeyPair, V as fetchKey, W as importJwk, _ as verifyObject, _t as validateAcceptSignature, a as signRequest, c as verifyRequestDetailed, gt as parseAcceptSignature, h as signObject, ht as fulfillAcceptSignature, j as hasSignatureLike, m as hasProofLike, mt as formatAcceptSignature, p as createProof, s as verifyRequest, v as verifyPortableObjectProof, x as verifyProof, z as exportJwk } from "./http-CVT3OEmZ.js";
|
|
7
|
+
import { a as respondWithObjectIfAcceptable, c as digest, d as parseCircuitBreakerKvState, f as createFederationBuilder, i as respondWithObject, l as CircuitBreaker, n as handleWebFinger, o as SendActivityError, r as createExponentialBackoffPolicy, s as buildCollectionSynchronizationHeader, t as createFederation, u as normalizeCircuitBreakerOptions } from "./middleware-CKEoEiBw.js";
|
|
8
8
|
import { n as getNodeInfo, r as parseNodeInfo, t as nodeInfoToJson } from "./types-_S2_MeLF.js";
|
|
9
|
-
import { n as doesActorOwnKey, r as getKeyOwner, t as verifyPortableObject } from "./portable-collection-
|
|
10
|
-
import { n as getAuthenticatedDocumentLoader, t as kvCache } from "./kv-cache-
|
|
9
|
+
import { n as doesActorOwnKey, r as getKeyOwner, t as verifyPortableObject } from "./portable-collection-BzUoU2gg.js";
|
|
10
|
+
import { n as getAuthenticatedDocumentLoader, t as kvCache } from "./kv-cache-Dv3joZCp.js";
|
|
11
11
|
import { InProcessMessageQueue, MemoryKvStore, ParallelMessageQueue, Router, RouterError } from "./federation/mod.js";
|
|
12
12
|
import "./nodeinfo/mod.js";
|
|
13
13
|
import "./runtime/mod.js";
|
|
@@ -5,7 +5,7 @@ import { r as createRequestContext } from "../context-8Tu9kea0.mjs";
|
|
|
5
5
|
import { t as MemoryKvStore } from "../kv-DCHkaJ9-.mjs";
|
|
6
6
|
import { t as assertEquals } from "../assert_equals-Z6IcEbWU.mjs";
|
|
7
7
|
import "../std__assert-DvMDRPes.mjs";
|
|
8
|
-
import { D as handleNodeInfoJrd, E as handleNodeInfo, o as createFederation } from "../middleware-
|
|
8
|
+
import { D as handleNodeInfoJrd, E as handleNodeInfo, o as createFederation } from "../middleware-BBSxgV0Y.mjs";
|
|
9
9
|
import { test } from "@fedify/fixture";
|
|
10
10
|
//#region src/nodeinfo/handler.test.ts
|
|
11
11
|
test("handleNodeInfo()", async () => {
|