@fedify/fedify 2.0.0-pr.474.1879 → 2.0.0-pr.479.1902
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-CjcnBLTk.cjs → actor-BvuZYMtt.cjs} +185 -185
- package/dist/{actor-BYv3E3MI.js → actor-D7vNXisy.js} +185 -185
- package/dist/{actor-DM_mczcz.js → actor-p73nuxlU.js} +1 -1
- package/dist/{builder-CpW45hts.js → builder-CDEXzTRh.js} +3 -3
- package/dist/compat/mod.d.cts +2 -2
- package/dist/compat/mod.d.ts +2 -2
- package/dist/compat/transformers.test.js +14 -14
- package/dist/{context-Nt2rAqjj.d.cts → context-PxGADCsD.d.cts} +0 -6
- package/dist/{context-DXV-2IZN.d.ts → context-V-XS2_6O.d.ts} +0 -6
- package/dist/{docloader-DPQnUMPZ.js → docloader-COKV-U5P.js} +2 -2
- package/dist/{esm-CHBTY23R.js → esm--1xk68ei.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 +1 -1
- package/dist/federation/mod.d.ts +1 -1
- package/dist/federation/mod.js +7 -7
- package/dist/federation/mq.test.js +2 -2
- package/dist/federation/negotiation.test.js +2 -2
- package/dist/federation/retry.test.js +2 -2
- package/dist/federation/router.test.js +2 -2
- package/dist/federation/send.test.js +9 -9
- package/dist/{http-CNbh6Bgj.js → http-BPKzz5Hi.js} +2 -2
- package/dist/{http-Di-WAayg.js → http-CZ4SD4Af.js} +2 -2
- package/dist/{http-B1cyhAOR.cjs → http-xk0L--Gf.cjs} +2 -2
- package/dist/{inbox-CKpjNIIw.js → inbox-VrTHPAPf.js} +1 -1
- package/dist/{key-Bm6xoWJ9.js → key-pypr10rC.js} +2 -2
- package/dist/{keycache-BoIUmk-X.js → keycache-BkFPqFZE.js} +1 -1
- package/dist/{keys-BJSEmAMh.js → keys-s5ZjwXXz.js} +1 -1
- package/dist/{kv-cache-BCfbzWvV.js → kv-cache-C0oKHesW.js} +1 -1
- package/dist/{kv-cache-ugHk-g8V.cjs → kv-cache-YkFrxQUj.cjs} +1 -1
- package/dist/{ld-CFrblqOy.js → ld-C3PKWevM.js} +2 -2
- package/dist/{lookup-BKHMnItE.cjs → lookup-BNf9yM2j.cjs} +1 -1
- package/dist/{lookup-CovW5HO7.js → lookup-Bvb9nUtG.js} +1 -1
- package/dist/{lookup-CjRKAy5i.js → lookup-C12ew5vf.js} +185 -185
- package/dist/middleware-Bv4NMpBN.cjs +15 -0
- package/dist/middleware-CSAKeYOU.js +15 -0
- package/dist/{middleware-fxZRXc2R.cjs → middleware-Cp_oBe-3.cjs} +11 -13
- package/dist/{middleware-DFP98BrZ.js → middleware-D7WIk3j1.js} +11 -13
- package/dist/{middleware-BCCuNXoU.js → middleware-cTWp-YZE.js} +15 -17
- package/dist/middleware-j6RGw4Ty.js +26 -0
- package/dist/{mod-CKRSFzK_.d.cts → mod-BoRKfJPE.d.cts} +1 -1
- package/dist/{mod-C_6Uxusd.d.ts → mod-Cdo6SYlJ.d.ts} +1 -1
- package/dist/mod.cjs +7 -7
- package/dist/mod.d.cts +2 -2
- package/dist/mod.d.ts +2 -2
- 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/types.test.js +2 -2
- package/dist/{owner-8cgMngcR.js → owner-qC5hdwYi.js} +2 -2
- package/dist/{proof-BbhNICOW.js → proof-BGzuaHuA.js} +2 -2
- package/dist/{proof-C3woq5fl.cjs → proof-DZibd3iK.cjs} +3 -3
- package/dist/{proof-OnfETSbB.js → proof-cyJxXrhq.js} +3 -3
- package/dist/{send-zlaQ6fqY.js → send-CMwYnOHX.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.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.d.ts +0 -6
- package/dist/testing/mod.js +2 -2
- package/dist/{testing-DHsP4t6k.js → testing-ARZT5d4P.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.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-DMGCHMXF.js → vocab-BIrUfAKZ.js} +2 -2
- package/dist/{vocab-YXPM77QO.cjs → vocab-DymiFIGz.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 +3 -5
- package/dist/federation/handler_requirehttpsig.test.d.ts +0 -3
- package/dist/federation/handler_requirehttpsig.test.js +0 -138
- package/dist/middleware-CaQFohcx.js +0 -26
- package/dist/middleware-CqJTYvui.cjs +0 -15
- package/dist/middleware-cA6uI21b.js +0 -15
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
|
|
2
|
+
const { Temporal } = require("@js-temporal/polyfill");
|
|
3
|
+
const { URLPattern } = require("urlpattern-polyfill");
|
|
4
|
+
|
|
5
|
+
require('./transformers-CoBS-oFG.cjs');
|
|
6
|
+
require('./lookup-BNf9yM2j.cjs');
|
|
7
|
+
require('./actor-BvuZYMtt.cjs');
|
|
8
|
+
const require_middleware = require('./middleware-Cp_oBe-3.cjs');
|
|
9
|
+
require('./http-xk0L--Gf.cjs');
|
|
10
|
+
require('./proof-DZibd3iK.cjs');
|
|
11
|
+
require('./types-CWgzGaqk.cjs');
|
|
12
|
+
require('./kv-cache-YkFrxQUj.cjs');
|
|
13
|
+
require('./vocab-DymiFIGz.cjs');
|
|
14
|
+
|
|
15
|
+
exports.FederationImpl = require_middleware.FederationImpl;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
|
|
2
|
+
import { Temporal } from "@js-temporal/polyfill";
|
|
3
|
+
import { URLPattern } from "urlpattern-polyfill";
|
|
4
|
+
|
|
5
|
+
import "./transformers-BFT6d7J5.js";
|
|
6
|
+
import "./lookup-Bvb9nUtG.js";
|
|
7
|
+
import "./actor-D7vNXisy.js";
|
|
8
|
+
import { ContextImpl, FederationImpl, InboxContextImpl, KvSpecDeterminer, createFederation } from "./middleware-D7WIk3j1.js";
|
|
9
|
+
import "./http-CZ4SD4Af.js";
|
|
10
|
+
import "./proof-cyJxXrhq.js";
|
|
11
|
+
import "./types-BtUjyi5y.js";
|
|
12
|
+
import "./kv-cache-C0oKHesW.js";
|
|
13
|
+
import "./vocab-BIrUfAKZ.js";
|
|
14
|
+
|
|
15
|
+
export { FederationImpl };
|
|
@@ -4,13 +4,13 @@
|
|
|
4
4
|
|
|
5
5
|
const require_chunk = require('./chunk-DqRYRqnO.cjs');
|
|
6
6
|
const require_transformers = require('./transformers-CoBS-oFG.cjs');
|
|
7
|
-
const require_lookup = require('./lookup-
|
|
8
|
-
const require_actor = require('./actor-
|
|
9
|
-
const require_http = require('./http-
|
|
10
|
-
const require_proof = require('./proof-
|
|
7
|
+
const require_lookup = require('./lookup-BNf9yM2j.cjs');
|
|
8
|
+
const require_actor = require('./actor-BvuZYMtt.cjs');
|
|
9
|
+
const require_http = require('./http-xk0L--Gf.cjs');
|
|
10
|
+
const require_proof = require('./proof-DZibd3iK.cjs');
|
|
11
11
|
const require_types = require('./types-CWgzGaqk.cjs');
|
|
12
|
-
const require_kv_cache = require('./kv-cache-
|
|
13
|
-
const require_vocab = require('./vocab-
|
|
12
|
+
const require_kv_cache = require('./kv-cache-YkFrxQUj.cjs');
|
|
13
|
+
const require_vocab = require('./vocab-DymiFIGz.cjs');
|
|
14
14
|
const __logtape_logtape = require_chunk.__toESM(require("@logtape/logtape"));
|
|
15
15
|
const __opentelemetry_api = require_chunk.__toESM(require("@opentelemetry/api"));
|
|
16
16
|
const __fedify_vocab_runtime = require_chunk.__toESM(require("@fedify/vocab-runtime"));
|
|
@@ -339,7 +339,7 @@ var FederationBuilderImpl = class {
|
|
|
339
339
|
this.collectionTypeIds = {};
|
|
340
340
|
}
|
|
341
341
|
async build(options) {
|
|
342
|
-
const { FederationImpl: FederationImpl$1 } = await Promise.resolve().then(() => require("./middleware-
|
|
342
|
+
const { FederationImpl: FederationImpl$1 } = await Promise.resolve().then(() => require("./middleware-Bv4NMpBN.cjs"));
|
|
343
343
|
const f = new FederationImpl$1(options);
|
|
344
344
|
const trailingSlashInsensitiveValue = f.router.trailingSlashInsensitive;
|
|
345
345
|
f.router = this.router.clone();
|
|
@@ -1317,7 +1317,7 @@ async function handleInbox(request, options) {
|
|
|
1317
1317
|
* @returns A promise that resolves to an HTTP response.
|
|
1318
1318
|
*/
|
|
1319
1319
|
async function handleInboxInternal(request, parameters, span) {
|
|
1320
|
-
const { recipient, context: ctx, inboxContextFactory, kv, kvPrefixes, queue, actorDispatcher, inboxListeners, inboxErrorHandler, onNotFound, signatureTimeWindow, skipSignatureVerification,
|
|
1320
|
+
const { recipient, context: ctx, inboxContextFactory, kv, kvPrefixes, queue, actorDispatcher, inboxListeners, inboxErrorHandler, onNotFound, signatureTimeWindow, skipSignatureVerification, tracerProvider } = parameters;
|
|
1321
1321
|
const logger$1 = (0, __logtape_logtape.getLogger)([
|
|
1322
1322
|
"fedify",
|
|
1323
1323
|
"federation",
|
|
@@ -1464,8 +1464,7 @@ async function handleInboxInternal(request, parameters, span) {
|
|
|
1464
1464
|
});
|
|
1465
1465
|
}
|
|
1466
1466
|
let httpSigKey = null;
|
|
1467
|
-
|
|
1468
|
-
if (needsHttpSigVerification) {
|
|
1467
|
+
if (activity == null) {
|
|
1469
1468
|
if (!skipSignatureVerification) {
|
|
1470
1469
|
const key = await require_http.verifyRequest(request, {
|
|
1471
1470
|
contextLoader: ctx.contextLoader,
|
|
@@ -1488,8 +1487,8 @@ async function handleInboxInternal(request, parameters, span) {
|
|
|
1488
1487
|
} else logger$1.debug("HTTP Signatures are verified.", { recipient });
|
|
1489
1488
|
httpSigKey = key;
|
|
1490
1489
|
}
|
|
1490
|
+
activity = await require_actor.Activity.fromJsonLd(jsonWithoutSig, ctx);
|
|
1491
1491
|
}
|
|
1492
|
-
if (activity == null) activity = await require_actor.Activity.fromJsonLd(jsonWithoutSig, ctx);
|
|
1493
1492
|
if (activity.id != null) span.setAttribute("activitypub.activity.id", activity.id.href);
|
|
1494
1493
|
span.setAttribute("activitypub.activity.type", require_actor.getTypeId(activity).href);
|
|
1495
1494
|
if (httpSigKey != null && !await require_proof.doesActorOwnKey(activity, httpSigKey, ctx)) {
|
|
@@ -2990,7 +2989,7 @@ var FederationImpl = class extends FederationBuilderImpl {
|
|
|
2990
2989
|
});
|
|
2991
2990
|
});
|
|
2992
2991
|
}
|
|
2993
|
-
async #fetch(request, { onNotFound, onNotAcceptable, onUnauthorized, contextData,
|
|
2992
|
+
async #fetch(request, { onNotFound, onNotAcceptable, onUnauthorized, contextData, span, tracer }) {
|
|
2994
2993
|
onNotFound ??= notFound;
|
|
2995
2994
|
onNotAcceptable ??= notAcceptable;
|
|
2996
2995
|
onUnauthorized ??= unauthorized;
|
|
@@ -3087,7 +3086,6 @@ var FederationImpl = class extends FederationBuilderImpl {
|
|
|
3087
3086
|
onNotFound,
|
|
3088
3087
|
signatureTimeWindow: this.signatureTimeWindow,
|
|
3089
3088
|
skipSignatureVerification: this.skipSignatureVerification,
|
|
3090
|
-
requireHttpSignature,
|
|
3091
3089
|
tracerProvider: this.tracerProvider,
|
|
3092
3090
|
idempotencyStrategy: this.idempotencyStrategy
|
|
3093
3091
|
});
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
|
|
5
5
|
import { getDefaultActivityTransformers } from "./transformers-BFT6d7J5.js";
|
|
6
|
-
import { deno_default, lookupWebFinger } from "./lookup-
|
|
7
|
-
import { Activity, Collection, CollectionPage, CryptographicKey, Link, Multikey, Object as Object$1, OrderedCollection, OrderedCollectionPage, getTypeId } from "./actor-
|
|
8
|
-
import { doubleKnock, exportJwk, importJwk, validateCryptoKey, verifyRequest } from "./http-
|
|
9
|
-
import { detachSignature, doesActorOwnKey, getKeyOwner, hasSignature, signJsonLd, signObject, verifyJsonLd, verifyObject } from "./proof-
|
|
6
|
+
import { deno_default, lookupWebFinger } from "./lookup-Bvb9nUtG.js";
|
|
7
|
+
import { Activity, Collection, CollectionPage, CryptographicKey, Link, Multikey, Object as Object$1, OrderedCollection, OrderedCollectionPage, getTypeId } from "./actor-D7vNXisy.js";
|
|
8
|
+
import { doubleKnock, exportJwk, importJwk, validateCryptoKey, verifyRequest } from "./http-CZ4SD4Af.js";
|
|
9
|
+
import { detachSignature, doesActorOwnKey, getKeyOwner, hasSignature, signJsonLd, signObject, verifyJsonLd, verifyObject } from "./proof-cyJxXrhq.js";
|
|
10
10
|
import { getNodeInfo, nodeInfoToJson } from "./types-BtUjyi5y.js";
|
|
11
|
-
import { getAuthenticatedDocumentLoader, kvCache } from "./kv-cache-
|
|
12
|
-
import { lookupObject, traverseCollection } from "./vocab-
|
|
11
|
+
import { getAuthenticatedDocumentLoader, kvCache } from "./kv-cache-C0oKHesW.js";
|
|
12
|
+
import { lookupObject, traverseCollection } from "./vocab-BIrUfAKZ.js";
|
|
13
13
|
import { getLogger, withContext } from "@logtape/logtape";
|
|
14
14
|
import { SpanKind, SpanStatusCode, context, propagation, trace } from "@opentelemetry/api";
|
|
15
15
|
import { getDocumentLoader } from "@fedify/vocab-runtime";
|
|
@@ -338,7 +338,7 @@ var FederationBuilderImpl = class {
|
|
|
338
338
|
this.collectionTypeIds = {};
|
|
339
339
|
}
|
|
340
340
|
async build(options) {
|
|
341
|
-
const { FederationImpl: FederationImpl$1 } = await import("./middleware-
|
|
341
|
+
const { FederationImpl: FederationImpl$1 } = await import("./middleware-CSAKeYOU.js");
|
|
342
342
|
const f = new FederationImpl$1(options);
|
|
343
343
|
const trailingSlashInsensitiveValue = f.router.trailingSlashInsensitive;
|
|
344
344
|
f.router = this.router.clone();
|
|
@@ -1316,7 +1316,7 @@ async function handleInbox(request, options) {
|
|
|
1316
1316
|
* @returns A promise that resolves to an HTTP response.
|
|
1317
1317
|
*/
|
|
1318
1318
|
async function handleInboxInternal(request, parameters, span) {
|
|
1319
|
-
const { recipient, context: ctx, inboxContextFactory, kv, kvPrefixes, queue, actorDispatcher, inboxListeners, inboxErrorHandler, onNotFound, signatureTimeWindow, skipSignatureVerification,
|
|
1319
|
+
const { recipient, context: ctx, inboxContextFactory, kv, kvPrefixes, queue, actorDispatcher, inboxListeners, inboxErrorHandler, onNotFound, signatureTimeWindow, skipSignatureVerification, tracerProvider } = parameters;
|
|
1320
1320
|
const logger$1 = getLogger([
|
|
1321
1321
|
"fedify",
|
|
1322
1322
|
"federation",
|
|
@@ -1463,8 +1463,7 @@ async function handleInboxInternal(request, parameters, span) {
|
|
|
1463
1463
|
});
|
|
1464
1464
|
}
|
|
1465
1465
|
let httpSigKey = null;
|
|
1466
|
-
|
|
1467
|
-
if (needsHttpSigVerification) {
|
|
1466
|
+
if (activity == null) {
|
|
1468
1467
|
if (!skipSignatureVerification) {
|
|
1469
1468
|
const key = await verifyRequest(request, {
|
|
1470
1469
|
contextLoader: ctx.contextLoader,
|
|
@@ -1487,8 +1486,8 @@ async function handleInboxInternal(request, parameters, span) {
|
|
|
1487
1486
|
} else logger$1.debug("HTTP Signatures are verified.", { recipient });
|
|
1488
1487
|
httpSigKey = key;
|
|
1489
1488
|
}
|
|
1489
|
+
activity = await Activity.fromJsonLd(jsonWithoutSig, ctx);
|
|
1490
1490
|
}
|
|
1491
|
-
if (activity == null) activity = await Activity.fromJsonLd(jsonWithoutSig, ctx);
|
|
1492
1491
|
if (activity.id != null) span.setAttribute("activitypub.activity.id", activity.id.href);
|
|
1493
1492
|
span.setAttribute("activitypub.activity.type", getTypeId(activity).href);
|
|
1494
1493
|
if (httpSigKey != null && !await doesActorOwnKey(activity, httpSigKey, ctx)) {
|
|
@@ -2989,7 +2988,7 @@ var FederationImpl = class extends FederationBuilderImpl {
|
|
|
2989
2988
|
});
|
|
2990
2989
|
});
|
|
2991
2990
|
}
|
|
2992
|
-
async #fetch(request, { onNotFound, onNotAcceptable, onUnauthorized, contextData,
|
|
2991
|
+
async #fetch(request, { onNotFound, onNotAcceptable, onUnauthorized, contextData, span, tracer }) {
|
|
2993
2992
|
onNotFound ??= notFound;
|
|
2994
2993
|
onNotAcceptable ??= notAcceptable;
|
|
2995
2994
|
onUnauthorized ??= unauthorized;
|
|
@@ -3086,7 +3085,6 @@ var FederationImpl = class extends FederationBuilderImpl {
|
|
|
3086
3085
|
onNotFound,
|
|
3087
3086
|
signatureTimeWindow: this.signatureTimeWindow,
|
|
3088
3087
|
skipSignatureVerification: this.skipSignatureVerification,
|
|
3089
|
-
requireHttpSignature,
|
|
3090
3088
|
tracerProvider: this.tracerProvider,
|
|
3091
3089
|
idempotencyStrategy: this.idempotencyStrategy
|
|
3092
3090
|
});
|
|
@@ -3,23 +3,23 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { Activity, Collection, CollectionPage, CryptographicKey, Link, Multikey, Object as Object$1, OrderedCollection, OrderedCollectionPage, RouterError, deno_default, getTypeId, lookupObject, lookupWebFinger, traverseCollection } from "./lookup-
|
|
6
|
+
import { Activity, Collection, CollectionPage, CryptographicKey, Link, Multikey, Object as Object$1, OrderedCollection, OrderedCollectionPage, RouterError, deno_default, getTypeId, lookupObject, lookupWebFinger, traverseCollection } from "./lookup-C12ew5vf.js";
|
|
7
7
|
import { getNodeInfo } from "./client-pY7-3icS.js";
|
|
8
8
|
import { nodeInfoToJson } from "./types-C2XVl6gj.js";
|
|
9
|
-
import { exportJwk, importJwk, validateCryptoKey } from "./key-
|
|
10
|
-
import { verifyRequest } from "./http-
|
|
11
|
-
import { detachSignature, hasSignature, signJsonLd, verifyJsonLd } from "./ld-
|
|
12
|
-
import { doesActorOwnKey, getKeyOwner } from "./owner-
|
|
13
|
-
import { signObject, verifyObject } from "./proof-
|
|
14
|
-
import { getAuthenticatedDocumentLoader } from "./docloader-
|
|
9
|
+
import { exportJwk, importJwk, validateCryptoKey } from "./key-pypr10rC.js";
|
|
10
|
+
import { verifyRequest } from "./http-BPKzz5Hi.js";
|
|
11
|
+
import { detachSignature, hasSignature, signJsonLd, verifyJsonLd } from "./ld-C3PKWevM.js";
|
|
12
|
+
import { doesActorOwnKey, getKeyOwner } from "./owner-qC5hdwYi.js";
|
|
13
|
+
import { signObject, verifyObject } from "./proof-BGzuaHuA.js";
|
|
14
|
+
import { getAuthenticatedDocumentLoader } from "./docloader-COKV-U5P.js";
|
|
15
15
|
import { kvCache } from "./kv-cache-DN9pfMBe.js";
|
|
16
|
-
import { routeActivity } from "./inbox-
|
|
17
|
-
import { FederationBuilderImpl } from "./builder-
|
|
16
|
+
import { routeActivity } from "./inbox-VrTHPAPf.js";
|
|
17
|
+
import { FederationBuilderImpl } from "./builder-CDEXzTRh.js";
|
|
18
18
|
import { buildCollectionSynchronizationHeader } from "./collection-BzWsN9pB.js";
|
|
19
|
-
import { KvKeyCache } from "./keycache-
|
|
19
|
+
import { KvKeyCache } from "./keycache-BkFPqFZE.js";
|
|
20
20
|
import { acceptsJsonLd } from "./negotiation-C4nFufNk.js";
|
|
21
21
|
import { createExponentialBackoffPolicy } from "./retry-CfF8Gn4d.js";
|
|
22
|
-
import { extractInboxes, sendActivity } from "./send-
|
|
22
|
+
import { extractInboxes, sendActivity } from "./send-CMwYnOHX.js";
|
|
23
23
|
import { getDocumentLoader } from "@fedify/vocab-runtime";
|
|
24
24
|
import { getLogger, withContext } from "@logtape/logtape";
|
|
25
25
|
import { SpanKind, SpanStatusCode, context, propagation, trace } from "@opentelemetry/api";
|
|
@@ -606,7 +606,7 @@ async function handleInbox(request, options) {
|
|
|
606
606
|
* @returns A promise that resolves to an HTTP response.
|
|
607
607
|
*/
|
|
608
608
|
async function handleInboxInternal(request, parameters, span) {
|
|
609
|
-
const { recipient, context: ctx, inboxContextFactory, kv, kvPrefixes, queue, actorDispatcher, inboxListeners, inboxErrorHandler, onNotFound, signatureTimeWindow, skipSignatureVerification,
|
|
609
|
+
const { recipient, context: ctx, inboxContextFactory, kv, kvPrefixes, queue, actorDispatcher, inboxListeners, inboxErrorHandler, onNotFound, signatureTimeWindow, skipSignatureVerification, tracerProvider } = parameters;
|
|
610
610
|
const logger$2 = getLogger([
|
|
611
611
|
"fedify",
|
|
612
612
|
"federation",
|
|
@@ -753,8 +753,7 @@ async function handleInboxInternal(request, parameters, span) {
|
|
|
753
753
|
});
|
|
754
754
|
}
|
|
755
755
|
let httpSigKey = null;
|
|
756
|
-
|
|
757
|
-
if (needsHttpSigVerification) {
|
|
756
|
+
if (activity == null) {
|
|
758
757
|
if (!skipSignatureVerification) {
|
|
759
758
|
const key = await verifyRequest(request, {
|
|
760
759
|
contextLoader: ctx.contextLoader,
|
|
@@ -777,8 +776,8 @@ async function handleInboxInternal(request, parameters, span) {
|
|
|
777
776
|
} else logger$2.debug("HTTP Signatures are verified.", { recipient });
|
|
778
777
|
httpSigKey = key;
|
|
779
778
|
}
|
|
779
|
+
activity = await Activity.fromJsonLd(jsonWithoutSig, ctx);
|
|
780
780
|
}
|
|
781
|
-
if (activity == null) activity = await Activity.fromJsonLd(jsonWithoutSig, ctx);
|
|
782
781
|
if (activity.id != null) span.setAttribute("activitypub.activity.id", activity.id.href);
|
|
783
782
|
span.setAttribute("activitypub.activity.type", getTypeId(activity).href);
|
|
784
783
|
if (httpSigKey != null && !await doesActorOwnKey(activity, httpSigKey, ctx)) {
|
|
@@ -1960,7 +1959,7 @@ var FederationImpl = class extends FederationBuilderImpl {
|
|
|
1960
1959
|
});
|
|
1961
1960
|
});
|
|
1962
1961
|
}
|
|
1963
|
-
async #fetch(request, { onNotFound, onNotAcceptable, onUnauthorized, contextData,
|
|
1962
|
+
async #fetch(request, { onNotFound, onNotAcceptable, onUnauthorized, contextData, span, tracer }) {
|
|
1964
1963
|
onNotFound ??= notFound;
|
|
1965
1964
|
onNotAcceptable ??= notAcceptable;
|
|
1966
1965
|
onUnauthorized ??= unauthorized;
|
|
@@ -2057,7 +2056,6 @@ var FederationImpl = class extends FederationBuilderImpl {
|
|
|
2057
2056
|
onNotFound,
|
|
2058
2057
|
signatureTimeWindow: this.signatureTimeWindow,
|
|
2059
2058
|
skipSignatureVerification: this.skipSignatureVerification,
|
|
2060
|
-
requireHttpSignature,
|
|
2061
2059
|
tracerProvider: this.tracerProvider,
|
|
2062
2060
|
idempotencyStrategy: this.idempotencyStrategy
|
|
2063
2061
|
});
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
|
|
2
|
+
import { Temporal } from "@js-temporal/polyfill";
|
|
3
|
+
import { URLPattern } from "urlpattern-polyfill";
|
|
4
|
+
globalThis.addEventListener = () => {};
|
|
5
|
+
|
|
6
|
+
import "./lookup-C12ew5vf.js";
|
|
7
|
+
import { ContextImpl, FederationImpl, InboxContextImpl, KvSpecDeterminer, createFederation } from "./middleware-cTWp-YZE.js";
|
|
8
|
+
import "./client-pY7-3icS.js";
|
|
9
|
+
import "./types-C2XVl6gj.js";
|
|
10
|
+
import "./actor-p73nuxlU.js";
|
|
11
|
+
import "./key-pypr10rC.js";
|
|
12
|
+
import "./http-BPKzz5Hi.js";
|
|
13
|
+
import "./ld-C3PKWevM.js";
|
|
14
|
+
import "./owner-qC5hdwYi.js";
|
|
15
|
+
import "./proof-BGzuaHuA.js";
|
|
16
|
+
import "./docloader-COKV-U5P.js";
|
|
17
|
+
import "./kv-cache-DN9pfMBe.js";
|
|
18
|
+
import "./inbox-VrTHPAPf.js";
|
|
19
|
+
import "./builder-CDEXzTRh.js";
|
|
20
|
+
import "./collection-BzWsN9pB.js";
|
|
21
|
+
import "./keycache-BkFPqFZE.js";
|
|
22
|
+
import "./negotiation-C4nFufNk.js";
|
|
23
|
+
import "./retry-CfF8Gn4d.js";
|
|
24
|
+
import "./send-CMwYnOHX.js";
|
|
25
|
+
|
|
26
|
+
export { FederationImpl };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Temporal } from "@js-temporal/polyfill";
|
|
2
2
|
import { URLPattern } from "urlpattern-polyfill";
|
|
3
3
|
import { Activity } from "./vocab-BCWe1Ih5.js";
|
|
4
|
-
import { ActivityTransformer, Context } from "./context-
|
|
4
|
+
import { ActivityTransformer, Context } from "./context-V-XS2_6O.js";
|
|
5
5
|
|
|
6
6
|
//#region src/compat/transformers.d.ts
|
|
7
7
|
|
package/dist/mod.cjs
CHANGED
|
@@ -4,15 +4,15 @@
|
|
|
4
4
|
|
|
5
5
|
const require_transformers = require('./transformers-CoBS-oFG.cjs');
|
|
6
6
|
require('./compat-DmDDELst.cjs');
|
|
7
|
-
const require_lookup = require('./lookup-
|
|
8
|
-
const require_actor = require('./actor-
|
|
9
|
-
const require_middleware = require('./middleware-
|
|
10
|
-
const require_http = require('./http-
|
|
11
|
-
const require_proof = require('./proof-
|
|
7
|
+
const require_lookup = require('./lookup-BNf9yM2j.cjs');
|
|
8
|
+
const require_actor = require('./actor-BvuZYMtt.cjs');
|
|
9
|
+
const require_middleware = require('./middleware-Cp_oBe-3.cjs');
|
|
10
|
+
const require_http = require('./http-xk0L--Gf.cjs');
|
|
11
|
+
const require_proof = require('./proof-DZibd3iK.cjs');
|
|
12
12
|
const require_federation = require('./federation-CRpdnOMS.cjs');
|
|
13
13
|
const require_types = require('./types-CWgzGaqk.cjs');
|
|
14
|
-
const require_kv_cache = require('./kv-cache-
|
|
15
|
-
const require_vocab = require('./vocab-
|
|
14
|
+
const require_kv_cache = require('./kv-cache-YkFrxQUj.cjs');
|
|
15
|
+
const require_vocab = require('./vocab-DymiFIGz.cjs');
|
|
16
16
|
require('./nodeinfo-CdN0rEnZ.cjs');
|
|
17
17
|
require('./sig-YYj5tCnr.cjs');
|
|
18
18
|
require('./utils-DyRU1gdZ.cjs');
|
package/dist/mod.d.cts
CHANGED
|
@@ -5,9 +5,9 @@ import { FetchKeyOptions, FetchKeyResult, HttpMessageSignaturesSpec, HttpMessage
|
|
|
5
5
|
import { DoesActorOwnKeyOptions, GetKeyOwnerOptions, doesActorOwnKey, getKeyOwner } from "./owner-B4HbyP8s.cjs";
|
|
6
6
|
import { FediverseHandle, LookupObjectOptions, PUBLIC_COLLECTION, TraverseCollectionOptions, getTypeId, isFediverseHandle, lookupObject, parseFediverseHandle, toAcctUrl, traverseCollection } from "./mod-BxRCHTz-.cjs";
|
|
7
7
|
import { ResourceDescriptor, lookupWebFinger } from "./mod-C58MZ7Wx.cjs";
|
|
8
|
-
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-
|
|
8
|
+
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-PxGADCsD.cjs";
|
|
9
9
|
import { KvKey, KvStore, KvStoreSetOptions, MemoryKvStore } from "./kv-Bxr0Q87_.cjs";
|
|
10
|
-
import { actorDehydrator, autoIdAssigner, getDefaultActivityTransformers } from "./mod-
|
|
10
|
+
import { actorDehydrator, autoIdAssigner, getDefaultActivityTransformers } from "./mod-BoRKfJPE.cjs";
|
|
11
11
|
import "./mod-CcDPcLJW.cjs";
|
|
12
12
|
import "./mod-B-hUPT2N.cjs";
|
|
13
13
|
import { CreateProofOptions, CreateSignatureOptions, SignJsonLdOptions, SignObjectOptions, VerifyJsonLdOptions, VerifyObjectOptions, VerifyProofOptions, VerifySignatureOptions, attachSignature, createProof, createSignature, detachSignature, signJsonLd, signObject, verifyJsonLd, verifyObject, verifyProof, verifySignature } from "./mod-DgxG-byT.cjs";
|
package/dist/mod.d.ts
CHANGED
|
@@ -7,9 +7,9 @@ import { FetchKeyOptions, FetchKeyResult, HttpMessageSignaturesSpec, HttpMessage
|
|
|
7
7
|
import { DoesActorOwnKeyOptions, GetKeyOwnerOptions, doesActorOwnKey, getKeyOwner } from "./owner-kQRGVXG1.js";
|
|
8
8
|
import { FediverseHandle, LookupObjectOptions, PUBLIC_COLLECTION, TraverseCollectionOptions, getTypeId, isFediverseHandle, lookupObject, parseFediverseHandle, toAcctUrl, traverseCollection } from "./mod-BlVovdcy.js";
|
|
9
9
|
import { ResourceDescriptor, lookupWebFinger } from "./mod-Ds0mpFZU.js";
|
|
10
|
-
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-
|
|
10
|
+
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-V-XS2_6O.js";
|
|
11
11
|
import { KvKey, KvStore, KvStoreSetOptions, MemoryKvStore } from "./kv-BKNZ-Tb-.js";
|
|
12
|
-
import { actorDehydrator, autoIdAssigner, getDefaultActivityTransformers } from "./mod-
|
|
12
|
+
import { actorDehydrator, autoIdAssigner, getDefaultActivityTransformers } from "./mod-Cdo6SYlJ.js";
|
|
13
13
|
import "./mod-bjzj5QIb.js";
|
|
14
14
|
import "./mod-CVgZgliM.js";
|
|
15
15
|
import { CreateProofOptions, CreateSignatureOptions, SignJsonLdOptions, SignObjectOptions, VerifyJsonLdOptions, VerifyObjectOptions, VerifyProofOptions, VerifySignatureOptions, attachSignature, createProof, createSignature, detachSignature, signJsonLd, signObject, verifyJsonLd, verifyObject, verifyProof, verifySignature } from "./mod-D5Z2tISD.js";
|
package/dist/mod.js
CHANGED
|
@@ -4,15 +4,15 @@
|
|
|
4
4
|
|
|
5
5
|
import { actorDehydrator, autoIdAssigner, getDefaultActivityTransformers } from "./transformers-BFT6d7J5.js";
|
|
6
6
|
import "./compat-nxUqe4Z-.js";
|
|
7
|
-
import { lookupWebFinger } from "./lookup-
|
|
8
|
-
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-
|
|
9
|
-
import { Router, RouterError, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable } from "./middleware-
|
|
10
|
-
import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk, signRequest, verifyRequest } from "./http-
|
|
11
|
-
import { attachSignature, createProof, createSignature, detachSignature, doesActorOwnKey, getKeyOwner, signJsonLd, signObject, verifyJsonLd, verifyObject, verifyProof, verifySignature } from "./proof-
|
|
7
|
+
import { lookupWebFinger } from "./lookup-Bvb9nUtG.js";
|
|
8
|
+
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-D7vNXisy.js";
|
|
9
|
+
import { Router, RouterError, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable } from "./middleware-D7WIk3j1.js";
|
|
10
|
+
import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk, signRequest, verifyRequest } from "./http-CZ4SD4Af.js";
|
|
11
|
+
import { attachSignature, createProof, createSignature, detachSignature, doesActorOwnKey, getKeyOwner, signJsonLd, signObject, verifyJsonLd, verifyObject, verifyProof, verifySignature } from "./proof-cyJxXrhq.js";
|
|
12
12
|
import { InProcessMessageQueue, MemoryKvStore, ParallelMessageQueue } from "./federation-jcR8-ZxP.js";
|
|
13
13
|
import { getNodeInfo, nodeInfoToJson, parseNodeInfo } from "./types-BtUjyi5y.js";
|
|
14
|
-
import { getAuthenticatedDocumentLoader, kvCache } from "./kv-cache-
|
|
15
|
-
import { PUBLIC_COLLECTION, isFediverseHandle, lookupObject, parseFediverseHandle, toAcctUrl, traverseCollection } from "./vocab-
|
|
14
|
+
import { getAuthenticatedDocumentLoader, kvCache } from "./kv-cache-C0oKHesW.js";
|
|
15
|
+
import { PUBLIC_COLLECTION, isFediverseHandle, lookupObject, parseFediverseHandle, toAcctUrl, traverseCollection } from "./vocab-BIrUfAKZ.js";
|
|
16
16
|
import "./nodeinfo-BnthBobC.js";
|
|
17
17
|
import "./sig-C34-oHBl.js";
|
|
18
18
|
import "./utils-D-Va7aXC.js";
|
|
@@ -3,17 +3,17 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import "../lookup-
|
|
6
|
+
import "../lookup-C12ew5vf.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 { getNodeInfo, parseInboundService, parseNodeInfo, parseOutboundService, parseProtocol, parseServices, parseSoftware, parseUsage } from "../client-pY7-3icS.js";
|
|
11
|
-
import { test } from "../testing-
|
|
11
|
+
import { test } from "../testing-ARZT5d4P.js";
|
|
12
12
|
import "../std__assert-DWivtrGR.js";
|
|
13
13
|
import "../assert_rejects-Ce45JcFg.js";
|
|
14
14
|
import "../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--1xk68ei.js";
|
|
17
17
|
|
|
18
18
|
//#region src/nodeinfo/client.test.ts
|
|
19
19
|
test("getNodeInfo()", async (t) => {
|
|
@@ -3,30 +3,30 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import "../lookup-
|
|
6
|
+
import "../lookup-C12ew5vf.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, handleNodeInfo, handleNodeInfoJrd } from "../middleware-
|
|
11
|
+
import { createFederation, handleNodeInfo, handleNodeInfoJrd } from "../middleware-cTWp-YZE.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-p73nuxlU.js";
|
|
15
|
+
import "../key-pypr10rC.js";
|
|
16
|
+
import "../http-BPKzz5Hi.js";
|
|
17
|
+
import "../ld-C3PKWevM.js";
|
|
18
|
+
import "../owner-qC5hdwYi.js";
|
|
19
|
+
import "../proof-BGzuaHuA.js";
|
|
20
|
+
import "../docloader-COKV-U5P.js";
|
|
21
21
|
import "../kv-cache-DN9pfMBe.js";
|
|
22
|
-
import "../inbox-
|
|
23
|
-
import "../builder-
|
|
22
|
+
import "../inbox-VrTHPAPf.js";
|
|
23
|
+
import "../builder-CDEXzTRh.js";
|
|
24
24
|
import "../collection-BzWsN9pB.js";
|
|
25
|
-
import "../keycache-
|
|
25
|
+
import "../keycache-BkFPqFZE.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-CMwYnOHX.js";
|
|
29
|
+
import { createRequestContext, test } from "../testing-ARZT5d4P.js";
|
|
30
30
|
import "../std__assert-DWivtrGR.js";
|
|
31
31
|
import "../assert_rejects-Ce45JcFg.js";
|
|
32
32
|
import "../assert_throws-BNXdRGWP.js";
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import "../lookup-
|
|
6
|
+
import "../lookup-C12ew5vf.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 { nodeInfoToJson } from "../types-C2XVl6gj.js";
|
|
11
|
-
import { test } from "../testing-
|
|
11
|
+
import { test } from "../testing-ARZT5d4P.js";
|
|
12
12
|
import "../std__assert-DWivtrGR.js";
|
|
13
13
|
import "../assert_rejects-Ce45JcFg.js";
|
|
14
14
|
import { assertThrows } from "../assert_throws-BNXdRGWP.js";
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { CryptographicKey, Object as Object$1 } from "./lookup-
|
|
7
|
-
import { isActor } from "./actor-
|
|
6
|
+
import { CryptographicKey, Object as Object$1 } from "./lookup-C12ew5vf.js";
|
|
7
|
+
import { isActor } from "./actor-p73nuxlU.js";
|
|
8
8
|
import { getDocumentLoader } from "@fedify/vocab-runtime";
|
|
9
9
|
import { trace } from "@opentelemetry/api";
|
|
10
10
|
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { Activity, DataIntegrityProof, Multikey, deno_default, getTypeId } from "./lookup-
|
|
7
|
-
import { fetchKey, validateCryptoKey } from "./key-
|
|
6
|
+
import { Activity, DataIntegrityProof, Multikey, deno_default, getTypeId } from "./lookup-C12ew5vf.js";
|
|
7
|
+
import { fetchKey, validateCryptoKey } from "./key-pypr10rC.js";
|
|
8
8
|
import { getLogger } from "@logtape/logtape";
|
|
9
9
|
import { SpanStatusCode, trace } from "@opentelemetry/api";
|
|
10
10
|
import { encodeHex } from "byte-encodings/hex";
|
|
@@ -3,9 +3,9 @@
|
|
|
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-
|
|
8
|
-
const require_http = require('./http-
|
|
6
|
+
const require_lookup = require('./lookup-BNf9yM2j.cjs');
|
|
7
|
+
const require_actor = require('./actor-BvuZYMtt.cjs');
|
|
8
|
+
const require_http = require('./http-xk0L--Gf.cjs');
|
|
9
9
|
const __logtape_logtape = require_chunk.__toESM(require("@logtape/logtape"));
|
|
10
10
|
const __opentelemetry_api = require_chunk.__toESM(require("@opentelemetry/api"));
|
|
11
11
|
const jsonld = require_chunk.__toESM(require("jsonld"));
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import { Temporal } from "@js-temporal/polyfill";
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
|
|
5
|
-
import { deno_default } from "./lookup-
|
|
6
|
-
import { Activity, CryptographicKey, DataIntegrityProof, Multikey, Object as Object$1, getTypeId, isActor } from "./actor-
|
|
7
|
-
import { fetchKey, validateCryptoKey } from "./http-
|
|
5
|
+
import { deno_default } from "./lookup-Bvb9nUtG.js";
|
|
6
|
+
import { Activity, CryptographicKey, DataIntegrityProof, Multikey, Object as Object$1, getTypeId, isActor } from "./actor-D7vNXisy.js";
|
|
7
|
+
import { fetchKey, validateCryptoKey } from "./http-CZ4SD4Af.js";
|
|
8
8
|
import { getLogger } from "@logtape/logtape";
|
|
9
9
|
import { SpanStatusCode, trace } from "@opentelemetry/api";
|
|
10
10
|
import jsonld from "jsonld";
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { deno_default } from "./lookup-
|
|
7
|
-
import { doubleKnock } from "./http-
|
|
6
|
+
import { deno_default } from "./lookup-C12ew5vf.js";
|
|
7
|
+
import { doubleKnock } from "./http-BPKzz5Hi.js";
|
|
8
8
|
import { getLogger } from "@logtape/logtape";
|
|
9
9
|
import { SpanKind, SpanStatusCode, trace } from "@opentelemetry/api";
|
|
10
10
|
|
package/dist/sig/http.test.js
CHANGED
|
@@ -3,20 +3,20 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import "../lookup-
|
|
6
|
+
import "../lookup-C12ew5vf.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 { exportJwk } from "../key-
|
|
12
|
-
import { createRfc9421SignatureBase, doubleKnock, formatRfc9421Signature, formatRfc9421SignatureParameters, parseRfc9421Signature, parseRfc9421SignatureInput, signRequest, timingSafeEqual, verifyRequest } from "../http-
|
|
13
|
-
import { mockDocumentLoader, test } from "../testing-
|
|
10
|
+
import "../actor-p73nuxlU.js";
|
|
11
|
+
import { exportJwk } from "../key-pypr10rC.js";
|
|
12
|
+
import { createRfc9421SignatureBase, doubleKnock, formatRfc9421Signature, formatRfc9421SignatureParameters, parseRfc9421Signature, parseRfc9421SignatureInput, signRequest, timingSafeEqual, verifyRequest } from "../http-BPKzz5Hi.js";
|
|
13
|
+
import { mockDocumentLoader, test } from "../testing-ARZT5d4P.js";
|
|
14
14
|
import { assertExists, assertStringIncludes } from "../std__assert-DWivtrGR.js";
|
|
15
15
|
import { assertFalse, assertRejects } from "../assert_rejects-Ce45JcFg.js";
|
|
16
16
|
import { assertThrows } from "../assert_throws-BNXdRGWP.js";
|
|
17
17
|
import "../assert_not_equals-C80BG-_5.js";
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
18
|
+
import { esm_default } from "../esm--1xk68ei.js";
|
|
19
|
+
import { rsaPrivateKey2, rsaPublicKey1, rsaPublicKey2, rsaPublicKey5 } from "../keys-s5ZjwXXz.js";
|
|
20
20
|
import { exportSpki } from "@fedify/vocab-runtime";
|
|
21
21
|
import { encodeBase64 } from "byte-encodings/base64";
|
|
22
22
|
|
package/dist/sig/key.test.js
CHANGED
|
@@ -3,18 +3,18 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { CryptographicKey, Multikey } from "../lookup-
|
|
6
|
+
import { CryptographicKey, Multikey } from "../lookup-C12ew5vf.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 { exportJwk, fetchKey, generateCryptoKeyPair, importJwk, validateCryptoKey } from "../key-
|
|
12
|
-
import { mockDocumentLoader, test } from "../testing-
|
|
10
|
+
import "../actor-p73nuxlU.js";
|
|
11
|
+
import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk, validateCryptoKey } from "../key-pypr10rC.js";
|
|
12
|
+
import { mockDocumentLoader, test } from "../testing-ARZT5d4P.js";
|
|
13
13
|
import "../std__assert-DWivtrGR.js";
|
|
14
14
|
import { assertRejects } from "../assert_rejects-Ce45JcFg.js";
|
|
15
15
|
import { assertThrows } from "../assert_throws-BNXdRGWP.js";
|
|
16
16
|
import "../assert_not_equals-C80BG-_5.js";
|
|
17
|
-
import { ed25519Multikey, rsaPrivateKey2, rsaPublicKey1, rsaPublicKey2, rsaPublicKey3 } from "../keys-
|
|
17
|
+
import { ed25519Multikey, rsaPrivateKey2, rsaPublicKey1, rsaPublicKey2, rsaPublicKey3 } from "../keys-s5ZjwXXz.js";
|
|
18
18
|
|
|
19
19
|
//#region src/sig/key.test.ts
|
|
20
20
|
test("validateCryptoKey()", async () => {
|