@fedify/fedify 1.10.8 → 1.10.9
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-BtdqoffI.js → actor-CMBXPdjk.js} +187 -187
- package/dist/{actor-CHbT9hXW.cjs → actor-DSmY7of0.cjs} +187 -187
- package/dist/{actor-stZ3L5bm.mjs → actor-z4bjwAPy.mjs} +1 -1
- package/dist/{authdocloader-BjFtWv8Q.js → authdocloader-B4QKchy5.js} +3 -3
- package/dist/{authdocloader-DiNlCuEL.mjs → authdocloader-C7iVUcxr.mjs} +3 -3
- package/dist/{authdocloader-qSZCRtME.cjs → authdocloader-YXazGK4I.cjs} +3 -3
- package/dist/{builder-C06p3NRV.mjs → builder-C3PFAtTV.mjs} +4 -4
- package/dist/{client-aAP3RFq_.mjs → client-C-xdpu6M.mjs} +1 -1
- package/dist/compat/mod.cjs +1 -1
- package/dist/compat/transformers.test.mjs +3 -3
- package/dist/{docloader--HMTXXhM.cjs → docloader-9cG6ESUw.cjs} +12 -3
- package/dist/{docloader-Cms83CjK.js → docloader-DXUkyjIx.js} +12 -3
- package/dist/{esm-CfjSLJ-h.mjs → esm-Bfj-SwEx.mjs} +1 -1
- package/dist/federation/builder.test.mjs +3 -3
- package/dist/federation/collection.test.mjs +1 -1
- package/dist/federation/handler.test.mjs +6 -6
- package/dist/federation/idempotency.test.mjs +5 -5
- package/dist/federation/inbox.test.mjs +3 -3
- package/dist/federation/keycache.test.mjs +3 -3
- package/dist/federation/kv.test.mjs +1 -1
- package/dist/federation/middleware.test.mjs +11 -11
- package/dist/federation/mod.cjs +2 -2
- package/dist/federation/mod.js +1 -1
- package/dist/federation/mq.test.mjs +1 -1
- package/dist/federation/retry.test.mjs +1 -1
- package/dist/federation/router.test.mjs +2 -2
- package/dist/federation/send.test.mjs +7 -7
- package/dist/{http-CDZB3DBW.js → http-CuloN7xQ.js} +3 -3
- package/dist/{http-BPQ_zPRB.mjs → http-D5CDiVKf.mjs} +2 -2
- package/dist/{http-Bg-OkZtX.cjs → http-LjaXmp2m.cjs} +3 -3
- package/dist/{inbox-Cnih7u27.mjs → inbox-D0Mzd940.mjs} +1 -1
- package/dist/{key-Bbf-ITpM.cjs → key-B22mXs2u.cjs} +2 -2
- package/dist/{key-B0qYOng3.mjs → key-B5QN42gR.mjs} +1 -1
- package/dist/{key-DGuUMBsU.cjs → key-CXkrXfz6.cjs} +1 -1
- package/dist/{key-ASS7oK8n.js → key-D1PkkNK-.js} +2 -2
- package/dist/{key-C16D-kud.mjs → key-Dnc1ekhA.mjs} +2 -2
- package/dist/{keycache-CBPbgb7d.mjs → keycache-DwDRFAp7.mjs} +1 -1
- package/dist/{keys-Br4iedk3.mjs → keys-C4Ms2Cy-.mjs} +1 -1
- package/dist/{ld-7nQ68-rS.mjs → ld-BJ8BZLC8.mjs} +2 -2
- package/dist/{lookup-CpMB-hV5.js → lookup-B8rOR_1a.js} +1 -1
- package/dist/{lookup-CCcDhxO2.mjs → lookup-Br7I7sqm.mjs} +1 -1
- package/dist/{lookup-CA5RreoS.cjs → lookup-D0d32cZH.cjs} +1 -1
- package/dist/{middleware-C90kKt44.cjs → middleware-0yq2uipZ.cjs} +10 -10
- package/dist/{middleware-BPTDstS-.cjs → middleware-BRXIidLb.cjs} +1 -1
- package/dist/{middleware-Crs1EVL7.mjs → middleware-BbgpZrsX.mjs} +14 -14
- package/dist/{middleware-Bi5LcEMF.mjs → middleware-BlsPkr2X.mjs} +1 -1
- package/dist/{middleware-BDTuu7QY.js → middleware-CYNQWJ-D.js} +8 -8
- package/dist/mod.cjs +10 -10
- package/dist/mod.js +9 -9
- package/dist/nodeinfo/client.test.mjs +3 -3
- package/dist/nodeinfo/handler.test.mjs +2 -2
- package/dist/nodeinfo/mod.cjs +1 -1
- package/dist/nodeinfo/mod.js +1 -1
- package/dist/nodeinfo/semver.test.mjs +1 -1
- package/dist/nodeinfo/types.test.mjs +1 -1
- package/dist/otel/exporter.test.mjs +1 -1
- package/dist/otel/mod.cjs +1 -1
- package/dist/{owner-ncOJW9jU.mjs → owner-D32qC-wF.mjs} +3 -3
- package/dist/{proof-Bd732W1s.mjs → proof-B67QOiuS.mjs} +2 -2
- package/dist/{proof-BYdxNk_7.cjs → proof-DE2Z0_uv.cjs} +3 -3
- package/dist/{proof-JCn_Nftz.js → proof-u5ivh_eA.js} +3 -3
- package/dist/runtime/authdocloader.test.mjs +6 -6
- package/dist/runtime/docloader.test.mjs +3 -3
- package/dist/runtime/key.test.mjs +3 -3
- package/dist/runtime/langstr.test.mjs +2 -2
- package/dist/runtime/link.test.mjs +2 -2
- package/dist/runtime/mod.cjs +3 -3
- package/dist/runtime/mod.js +3 -3
- package/dist/runtime/multibase/multibase.test.mjs +2 -2
- package/dist/runtime/url.test.mjs +5 -2
- package/dist/{send-BUUNtAjI.mjs → send-7RGxOhrY.mjs} +2 -2
- package/dist/sig/http.test.mjs +6 -6
- package/dist/sig/key.test.mjs +4 -4
- package/dist/sig/ld.test.mjs +5 -5
- package/dist/sig/mod.cjs +3 -3
- package/dist/sig/mod.js +3 -3
- package/dist/sig/owner.test.mjs +5 -5
- package/dist/sig/proof.test.mjs +4 -4
- package/dist/testing/docloader.test.mjs +1 -1
- package/dist/testing/mod.mjs +1 -1
- package/dist/{testing-CvmsaHLW.mjs → testing-zWgaXBJW.mjs} +2 -2
- package/dist/{transformers-Cd6Tdn3M.cjs → transformers-BdbEtUZU.cjs} +1 -1
- package/dist/{types-Dy8sMtkH.js → types-6_pWuZfK.js} +1 -1
- package/dist/{types-BVCtDIwE.cjs → types-ec4G8nGs.cjs} +1 -1
- package/dist/vocab/actor.test.mjs +4 -4
- package/dist/vocab/cjs.test.mjs +1 -1
- package/dist/vocab/lookup.test.mjs +4 -4
- package/dist/vocab/mod.cjs +3 -3
- package/dist/vocab/mod.js +3 -3
- package/dist/vocab/type.test.mjs +2 -2
- package/dist/vocab/vocab.test.mjs +3 -3
- package/dist/{vocab-DcYXFzyR.mjs → vocab-C60RNInZ.mjs} +197 -188
- package/dist/webfinger/handler.test.mjs +3 -3
- package/dist/webfinger/lookup.test.mjs +3 -3
- package/dist/webfinger/mod.cjs +1 -1
- package/dist/webfinger/mod.js +1 -1
- package/dist/x/cfworkers.cjs +1 -1
- package/dist/x/cfworkers.test.mjs +1 -1
- package/dist/x/hono.cjs +1 -1
- package/dist/x/sveltekit.cjs +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "@js-temporal/polyfill";
|
|
2
2
|
import "urlpattern-polyfill";
|
|
3
3
|
globalThis.addEventListener = () => {};
|
|
4
|
-
import { C as Person, E as Service, S as Organization, U as getTypeId, W as lookupWebFinger, d as Group, ot as name, r as Application, st as version } from "./vocab-
|
|
4
|
+
import { C as Person, E as Service, S as Organization, U as getTypeId, W as lookupWebFinger, d as Group, ot as name, r as Application, st as version } from "./vocab-C60RNInZ.mjs";
|
|
5
5
|
import { SpanStatusCode, trace } from "@opentelemetry/api";
|
|
6
6
|
import { domainToASCII, domainToUnicode } from "node:url";
|
|
7
7
|
//#region src/vocab/actor.ts
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "@js-temporal/polyfill";
|
|
2
2
|
import "urlpattern-polyfill";
|
|
3
|
-
import { a as getRemoteDocument, c as logRequest, l as UrlError, n as createRequest, u as validatePublicUrl } from "./docloader-
|
|
4
|
-
import { o as validateCryptoKey } from "./key-
|
|
5
|
-
import { t as doubleKnock } from "./http-
|
|
3
|
+
import { a as getRemoteDocument, c as logRequest, l as UrlError, n as createRequest, u as validatePublicUrl } from "./docloader-DXUkyjIx.js";
|
|
4
|
+
import { o as validateCryptoKey } from "./key-D1PkkNK-.js";
|
|
5
|
+
import { t as doubleKnock } from "./http-CuloN7xQ.js";
|
|
6
6
|
import { getLogger } from "@logtape/logtape";
|
|
7
7
|
//#region src/runtime/authdocloader.ts
|
|
8
8
|
const logger = getLogger([
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "@js-temporal/polyfill";
|
|
2
2
|
import "urlpattern-polyfill";
|
|
3
3
|
globalThis.addEventListener = () => {};
|
|
4
|
-
import { $ as UrlError, K as createRequest, Q as logRequest, Y as getRemoteDocument, rt as validatePublicUrl } from "./vocab-
|
|
5
|
-
import { a as validateCryptoKey } from "./key-
|
|
6
|
-
import { n as doubleKnock } from "./http-
|
|
4
|
+
import { $ as UrlError, K as createRequest, Q as logRequest, Y as getRemoteDocument, rt as validatePublicUrl } from "./vocab-C60RNInZ.mjs";
|
|
5
|
+
import { a as validateCryptoKey } from "./key-Dnc1ekhA.mjs";
|
|
6
|
+
import { n as doubleKnock } from "./http-D5CDiVKf.mjs";
|
|
7
7
|
import { getLogger } from "@logtape/logtape";
|
|
8
8
|
//#region src/runtime/authdocloader.ts
|
|
9
9
|
const logger = getLogger([
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
const { Temporal } = require("@js-temporal/polyfill");
|
|
2
2
|
const { URLPattern } = require("urlpattern-polyfill");
|
|
3
|
-
const require_docloader = require("./docloader
|
|
4
|
-
const require_key = require("./key-
|
|
5
|
-
const require_http = require("./http-
|
|
3
|
+
const require_docloader = require("./docloader-9cG6ESUw.cjs");
|
|
4
|
+
const require_key = require("./key-B22mXs2u.cjs");
|
|
5
|
+
const require_http = require("./http-LjaXmp2m.cjs");
|
|
6
6
|
//#region src/runtime/authdocloader.ts
|
|
7
7
|
const logger = (0, require("@logtape/logtape").getLogger)([
|
|
8
8
|
"fedify",
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "@js-temporal/polyfill";
|
|
2
2
|
import "urlpattern-polyfill";
|
|
3
3
|
globalThis.addEventListener = () => {};
|
|
4
|
-
import { U as getTypeId, ot as name, st as version } from "./vocab-
|
|
5
|
-
import { i as RouterError, r as Router } from "./lookup-
|
|
6
|
-
import { t as InboxListenerSet } from "./inbox-
|
|
4
|
+
import { U as getTypeId, ot as name, st as version } from "./vocab-C60RNInZ.mjs";
|
|
5
|
+
import { i as RouterError, r as Router } from "./lookup-Br7I7sqm.mjs";
|
|
6
|
+
import { t as InboxListenerSet } from "./inbox-D0Mzd940.mjs";
|
|
7
7
|
import { getLogger } from "@logtape/logtape";
|
|
8
8
|
import { SpanKind, SpanStatusCode, trace } from "@opentelemetry/api";
|
|
9
9
|
//#region src/federation/builder.ts
|
|
@@ -40,7 +40,7 @@ var FederationBuilderImpl = class {
|
|
|
40
40
|
this.collectionTypeIds = {};
|
|
41
41
|
}
|
|
42
42
|
async build(options) {
|
|
43
|
-
const { FederationImpl } = await import("./middleware-
|
|
43
|
+
const { FederationImpl } = await import("./middleware-BlsPkr2X.mjs");
|
|
44
44
|
const f = new FederationImpl(options);
|
|
45
45
|
const trailingSlashInsensitiveValue = f.router.trailingSlashInsensitive;
|
|
46
46
|
f.router = this.router.clone();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "@js-temporal/polyfill";
|
|
2
2
|
import "urlpattern-polyfill";
|
|
3
3
|
globalThis.addEventListener = () => {};
|
|
4
|
-
import { X as getUserAgent } from "./vocab-
|
|
4
|
+
import { X as getUserAgent } from "./vocab-C60RNInZ.mjs";
|
|
5
5
|
import { n as parseSemVer } from "./semver-CgD82xxg.mjs";
|
|
6
6
|
import { getLogger } from "@logtape/logtape";
|
|
7
7
|
//#region src/nodeinfo/client.ts
|
package/dist/compat/mod.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const { Temporal } = require("@js-temporal/polyfill");
|
|
2
2
|
const { URLPattern } = require("urlpattern-polyfill");
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
4
|
-
const require_transformers = require("../transformers-
|
|
4
|
+
const require_transformers = require("../transformers-BdbEtUZU.cjs");
|
|
5
5
|
exports.actorDehydrator = require_transformers.actorDehydrator;
|
|
6
6
|
exports.autoIdAssigner = require_transformers.autoIdAssigner;
|
|
7
7
|
exports.getDefaultActivityTransformers = require_transformers.getDefaultActivityTransformers;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import "@js-temporal/polyfill";
|
|
2
2
|
import "urlpattern-polyfill";
|
|
3
3
|
globalThis.addEventListener = () => {};
|
|
4
|
-
import { C as Person, u as Follow } from "../vocab-
|
|
5
|
-
import { t as test } from "../testing-
|
|
4
|
+
import { C as Person, u as Follow } from "../vocab-C60RNInZ.mjs";
|
|
5
|
+
import { t as test } from "../testing-zWgaXBJW.mjs";
|
|
6
6
|
import { t as assertEquals } from "../assert_equals-Ew3jOFa3.mjs";
|
|
7
7
|
import { t as assertInstanceOf } from "../assert_instance_of-C4Ri6VuN.mjs";
|
|
8
8
|
import { t as assert } from "../assert-DikXweDx.mjs";
|
|
9
9
|
import { t as MemoryKvStore } from "../kv-OuT2IU64.mjs";
|
|
10
|
-
import { _ as actorDehydrator, n as FederationImpl, v as autoIdAssigner } from "../middleware-
|
|
10
|
+
import { _ as actorDehydrator, n as FederationImpl, v as autoIdAssigner } from "../middleware-BbgpZrsX.mjs";
|
|
11
11
|
//#region src/compat/transformers.test.ts
|
|
12
12
|
const context = new FederationImpl({ kv: new MemoryKvStore() }).createContext(new URL("http://example.com/"));
|
|
13
13
|
test("autoIdAssigner", async () => {
|
|
@@ -30,7 +30,7 @@ let node_dns_promises = require("node:dns/promises");
|
|
|
30
30
|
let node_net = require("node:net");
|
|
31
31
|
//#region deno.json
|
|
32
32
|
var name = "@fedify/fedify";
|
|
33
|
-
var version = "1.10.
|
|
33
|
+
var version = "1.10.9";
|
|
34
34
|
//#endregion
|
|
35
35
|
//#region src/runtime/contexts.ts
|
|
36
36
|
const preloadedContexts = {
|
|
@@ -4449,8 +4449,13 @@ async function validatePublicUrl(url) {
|
|
|
4449
4449
|
const parsed = new URL(url);
|
|
4450
4450
|
if (parsed.protocol !== "http:" && parsed.protocol !== "https:") throw new UrlError(`Unsupported protocol: ${parsed.protocol}`);
|
|
4451
4451
|
let hostname = parsed.hostname;
|
|
4452
|
-
if (hostname.startsWith("[") && hostname.endsWith("]")) hostname = hostname.
|
|
4452
|
+
if (hostname.startsWith("[") && hostname.endsWith("]")) hostname = hostname.slice(1, -1);
|
|
4453
4453
|
if (hostname === "localhost") throw new UrlError("Localhost is not allowed");
|
|
4454
|
+
const hostnameFamily = (0, node_net.isIP)(hostname);
|
|
4455
|
+
if (hostnameFamily !== 0) {
|
|
4456
|
+
validatePublicIpAddress(hostname, hostnameFamily);
|
|
4457
|
+
return;
|
|
4458
|
+
}
|
|
4454
4459
|
if ("Deno" in globalThis && !(0, node_net.isIP)(hostname)) {
|
|
4455
4460
|
if ((await Deno.permissions.query({ name: "net" })).state !== "granted") return;
|
|
4456
4461
|
}
|
|
@@ -4464,7 +4469,11 @@ async function validatePublicUrl(url) {
|
|
|
4464
4469
|
} catch {
|
|
4465
4470
|
addresses = [];
|
|
4466
4471
|
}
|
|
4467
|
-
for (const { address, family } of addresses)
|
|
4472
|
+
for (const { address, family } of addresses) validatePublicIpAddress(address, family);
|
|
4473
|
+
}
|
|
4474
|
+
function validatePublicIpAddress(address, family) {
|
|
4475
|
+
if (family === 4 && isValidPublicIPv4Address(address) || family === 6 && isValidPublicIPv6Address(address)) return;
|
|
4476
|
+
throw new UrlError(`Invalid or private address: ${address}`);
|
|
4468
4477
|
}
|
|
4469
4478
|
function isValidPublicIPv4Address(address) {
|
|
4470
4479
|
const parts = address.split(".");
|
|
@@ -7,7 +7,7 @@ import { lookup } from "node:dns/promises";
|
|
|
7
7
|
import { isIP } from "node:net";
|
|
8
8
|
//#region deno.json
|
|
9
9
|
var name = "@fedify/fedify";
|
|
10
|
-
var version = "1.10.
|
|
10
|
+
var version = "1.10.9";
|
|
11
11
|
//#endregion
|
|
12
12
|
//#region src/runtime/contexts.ts
|
|
13
13
|
const preloadedContexts = {
|
|
@@ -4426,8 +4426,13 @@ async function validatePublicUrl(url) {
|
|
|
4426
4426
|
const parsed = new URL(url);
|
|
4427
4427
|
if (parsed.protocol !== "http:" && parsed.protocol !== "https:") throw new UrlError(`Unsupported protocol: ${parsed.protocol}`);
|
|
4428
4428
|
let hostname = parsed.hostname;
|
|
4429
|
-
if (hostname.startsWith("[") && hostname.endsWith("]")) hostname = hostname.
|
|
4429
|
+
if (hostname.startsWith("[") && hostname.endsWith("]")) hostname = hostname.slice(1, -1);
|
|
4430
4430
|
if (hostname === "localhost") throw new UrlError("Localhost is not allowed");
|
|
4431
|
+
const hostnameFamily = isIP(hostname);
|
|
4432
|
+
if (hostnameFamily !== 0) {
|
|
4433
|
+
validatePublicIpAddress(hostname, hostnameFamily);
|
|
4434
|
+
return;
|
|
4435
|
+
}
|
|
4431
4436
|
if ("Deno" in globalThis && !isIP(hostname)) {
|
|
4432
4437
|
if ((await Deno.permissions.query({ name: "net" })).state !== "granted") return;
|
|
4433
4438
|
}
|
|
@@ -4441,7 +4446,11 @@ async function validatePublicUrl(url) {
|
|
|
4441
4446
|
} catch {
|
|
4442
4447
|
addresses = [];
|
|
4443
4448
|
}
|
|
4444
|
-
for (const { address, family } of addresses)
|
|
4449
|
+
for (const { address, family } of addresses) validatePublicIpAddress(address, family);
|
|
4450
|
+
}
|
|
4451
|
+
function validatePublicIpAddress(address, family) {
|
|
4452
|
+
if (family === 4 && isValidPublicIPv4Address(address) || family === 6 && isValidPublicIPv6Address(address)) return;
|
|
4453
|
+
throw new UrlError(`Invalid or private address: ${address}`);
|
|
4445
4454
|
}
|
|
4446
4455
|
function isValidPublicIPv4Address(address) {
|
|
4447
4456
|
const parts = address.split(".");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "@js-temporal/polyfill";
|
|
2
2
|
import "urlpattern-polyfill";
|
|
3
3
|
globalThis.addEventListener = () => {};
|
|
4
|
-
import { ct as __commonJSMin, dt as __toESM } from "./vocab-
|
|
4
|
+
import { ct as __commonJSMin, dt as __toESM } from "./vocab-C60RNInZ.mjs";
|
|
5
5
|
//#region ../../node_modules/.pnpm/glob-to-regexp@0.4.1/node_modules/glob-to-regexp/index.js
|
|
6
6
|
var require_glob_to_regexp = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
7
7
|
module.exports = function(glob, opts) {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import "@js-temporal/polyfill";
|
|
2
2
|
import "urlpattern-polyfill";
|
|
3
3
|
globalThis.addEventListener = () => {};
|
|
4
|
-
import { C as Person, _ as Note, t as Activity } from "../vocab-
|
|
5
|
-
import { t as test } from "../testing-
|
|
4
|
+
import { C as Person, _ as Note, t as Activity } from "../vocab-C60RNInZ.mjs";
|
|
5
|
+
import { t as test } from "../testing-zWgaXBJW.mjs";
|
|
6
6
|
import { t as assertEquals } from "../assert_equals-Ew3jOFa3.mjs";
|
|
7
7
|
import { a as assertExists } from "../std__assert-2v7gYiZp.mjs";
|
|
8
8
|
import { t as assertThrows } from "../assert_throws-BIL7gChy.mjs";
|
|
9
9
|
import { t as MemoryKvStore } from "../kv-OuT2IU64.mjs";
|
|
10
10
|
import { n as parseSemVer } from "../semver-CgD82xxg.mjs";
|
|
11
|
-
import { n as createFederationBuilder } from "../builder-
|
|
11
|
+
import { n as createFederationBuilder } from "../builder-C3PFAtTV.mjs";
|
|
12
12
|
//#region src/federation/builder.test.ts
|
|
13
13
|
test("FederationBuilder", async (t) => {
|
|
14
14
|
await t.step("should build a Federation object with registered components", async () => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "@js-temporal/polyfill";
|
|
2
2
|
import "urlpattern-polyfill";
|
|
3
3
|
globalThis.addEventListener = () => {};
|
|
4
|
-
import { t as test } from "../testing-
|
|
4
|
+
import { t as test } from "../testing-zWgaXBJW.mjs";
|
|
5
5
|
import { t as assertEquals } from "../assert_equals-Ew3jOFa3.mjs";
|
|
6
6
|
import "../std__assert-2v7gYiZp.mjs";
|
|
7
7
|
import { n as digest, t as buildCollectionSynchronizationHeader } from "../collection-BD6-SZ6O.mjs";
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import "@js-temporal/polyfill";
|
|
2
2
|
import "urlpattern-polyfill";
|
|
3
3
|
globalThis.addEventListener = () => {};
|
|
4
|
-
import { C as Person, _ as Note, o as Create } from "../vocab-
|
|
5
|
-
import { a as mockDocumentLoader, i as createRequestContext, r as createInboxContext, t as test } from "../testing-
|
|
4
|
+
import { C as Person, _ as Note, o as Create } from "../vocab-C60RNInZ.mjs";
|
|
5
|
+
import { a as mockDocumentLoader, i as createRequestContext, r as createInboxContext, t as test } from "../testing-zWgaXBJW.mjs";
|
|
6
6
|
import { t as assertEquals } from "../assert_equals-Ew3jOFa3.mjs";
|
|
7
7
|
import "../std__assert-2v7gYiZp.mjs";
|
|
8
8
|
import { n as assertFalse } from "../assert_rejects-CJC9ThS-.mjs";
|
|
9
9
|
import { t as assert } from "../assert-DikXweDx.mjs";
|
|
10
10
|
import { t as MemoryKvStore } from "../kv-OuT2IU64.mjs";
|
|
11
|
-
import { a as createFederation, c as handleCollection, d as handleObject, f as respondWithObject, l as handleCustomCollection, o as acceptsJsonLd, p as respondWithObjectIfAcceptable, s as handleActor, u as handleInbox } from "../middleware-
|
|
12
|
-
import { s as signRequest } from "../http-
|
|
13
|
-
import { t as InboxListenerSet } from "../inbox-
|
|
11
|
+
import { a as createFederation, c as handleCollection, d as handleObject, f as respondWithObject, l as handleCustomCollection, o as acceptsJsonLd, p as respondWithObjectIfAcceptable, s as handleActor, u as handleInbox } from "../middleware-BbgpZrsX.mjs";
|
|
12
|
+
import { s as signRequest } from "../http-D5CDiVKf.mjs";
|
|
13
|
+
import { t as InboxListenerSet } from "../inbox-D0Mzd940.mjs";
|
|
14
14
|
import { t as createTestTracerProvider } from "../otel-0v4Zy01l.mjs";
|
|
15
|
-
import { a as rsaPrivateKey3, c as rsaPublicKey3, s as rsaPublicKey2 } from "../keys-
|
|
15
|
+
import { a as rsaPrivateKey3, c as rsaPublicKey3, s as rsaPublicKey2 } from "../keys-C4Ms2Cy-.mjs";
|
|
16
16
|
//#region src/federation/handler.test.ts
|
|
17
17
|
test("acceptsJsonLd()", () => {
|
|
18
18
|
assert(acceptsJsonLd(new Request("https://example.com/", { headers: { Accept: "application/activity+json" } })));
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import "@js-temporal/polyfill";
|
|
2
2
|
import "urlpattern-polyfill";
|
|
3
3
|
globalThis.addEventListener = () => {};
|
|
4
|
-
import { C as Person, o as Create, u as Follow } from "../vocab-
|
|
5
|
-
import { a as mockDocumentLoader, t as test } from "../testing-
|
|
4
|
+
import { C as Person, o as Create, u as Follow } from "../vocab-C60RNInZ.mjs";
|
|
5
|
+
import { a as mockDocumentLoader, t as test } from "../testing-zWgaXBJW.mjs";
|
|
6
6
|
import { t as assertEquals } from "../assert_equals-Ew3jOFa3.mjs";
|
|
7
7
|
import "../std__assert-2v7gYiZp.mjs";
|
|
8
8
|
import { t as MemoryKvStore } from "../kv-OuT2IU64.mjs";
|
|
9
|
-
import { a as createFederation } from "../middleware-
|
|
10
|
-
import { n as signObject } from "../proof-
|
|
11
|
-
import { n as ed25519PrivateKey, r as ed25519PublicKey, t as ed25519Multikey } from "../keys-
|
|
9
|
+
import { a as createFederation } from "../middleware-BbgpZrsX.mjs";
|
|
10
|
+
import { n as signObject } from "../proof-B67QOiuS.mjs";
|
|
11
|
+
import { n as ed25519PrivateKey, r as ed25519PublicKey, t as ed25519Multikey } from "../keys-C4Ms2Cy-.mjs";
|
|
12
12
|
//#region src/federation/idempotency.test.ts
|
|
13
13
|
const kv = new MemoryKvStore();
|
|
14
14
|
const federationOptions = {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import "@js-temporal/polyfill";
|
|
2
2
|
import "urlpattern-polyfill";
|
|
3
3
|
globalThis.addEventListener = () => {};
|
|
4
|
-
import { O as Update, m as Invite, o as Create, t as Activity, y as Offer } from "../vocab-
|
|
5
|
-
import { t as test } from "../testing-
|
|
4
|
+
import { O as Update, m as Invite, o as Create, t as Activity, y as Offer } from "../vocab-C60RNInZ.mjs";
|
|
5
|
+
import { t as test } from "../testing-zWgaXBJW.mjs";
|
|
6
6
|
import { t as assertEquals } from "../assert_equals-Ew3jOFa3.mjs";
|
|
7
7
|
import { t as assertThrows } from "../assert_throws-BIL7gChy.mjs";
|
|
8
|
-
import { t as InboxListenerSet } from "../inbox-
|
|
8
|
+
import { t as InboxListenerSet } from "../inbox-D0Mzd940.mjs";
|
|
9
9
|
//#region src/federation/inbox.test.ts
|
|
10
10
|
test("InboxListenerSet", () => {
|
|
11
11
|
const listeners = new InboxListenerSet();
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import "@js-temporal/polyfill";
|
|
2
2
|
import "urlpattern-polyfill";
|
|
3
3
|
globalThis.addEventListener = () => {};
|
|
4
|
-
import { g as Multikey, s as CryptographicKey } from "../vocab-
|
|
5
|
-
import { t as test } from "../testing-
|
|
4
|
+
import { g as Multikey, s as CryptographicKey } from "../vocab-C60RNInZ.mjs";
|
|
5
|
+
import { t as test } from "../testing-zWgaXBJW.mjs";
|
|
6
6
|
import { t as assertEquals } from "../assert_equals-Ew3jOFa3.mjs";
|
|
7
7
|
import { t as assertInstanceOf } from "../assert_instance_of-C4Ri6VuN.mjs";
|
|
8
8
|
import { t as assert } from "../assert-DikXweDx.mjs";
|
|
9
9
|
import { t as MemoryKvStore } from "../kv-OuT2IU64.mjs";
|
|
10
|
-
import { t as KvKeyCache } from "../keycache-
|
|
10
|
+
import { t as KvKeyCache } from "../keycache-DwDRFAp7.mjs";
|
|
11
11
|
//#region src/federation/keycache.test.ts
|
|
12
12
|
test("KvKeyCache.set()", async () => {
|
|
13
13
|
const kv = new MemoryKvStore();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Temporal } from "@js-temporal/polyfill";
|
|
2
2
|
import "urlpattern-polyfill";
|
|
3
3
|
globalThis.addEventListener = () => {};
|
|
4
|
-
import { t as test } from "../testing-
|
|
4
|
+
import { t as test } from "../testing-zWgaXBJW.mjs";
|
|
5
5
|
import { t as assertEquals } from "../assert_equals-Ew3jOFa3.mjs";
|
|
6
6
|
import "../std__assert-2v7gYiZp.mjs";
|
|
7
7
|
import { t as MemoryKvStore } from "../kv-OuT2IU64.mjs";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Temporal } from "@js-temporal/polyfill";
|
|
2
2
|
import "urlpattern-polyfill";
|
|
3
3
|
globalThis.addEventListener = () => {};
|
|
4
|
-
import { C as Person, G as FetchError, U as getTypeId, _ as Note, g as Multikey, m as Invite, n as Announce, o as Create, q as fetchDocumentLoader, t as Activity, v as Object$1, y as Offer } from "../vocab-
|
|
5
|
-
import { i as RouterError, t as lookupObject } from "../lookup-
|
|
6
|
-
import { a as mockDocumentLoader, t as test } from "../testing-
|
|
4
|
+
import { C as Person, G as FetchError, U as getTypeId, _ as Note, g as Multikey, m as Invite, n as Announce, o as Create, q as fetchDocumentLoader, t as Activity, v as Object$1, y as Offer } from "../vocab-C60RNInZ.mjs";
|
|
5
|
+
import { i as RouterError, t as lookupObject } from "../lookup-Br7I7sqm.mjs";
|
|
6
|
+
import { a as mockDocumentLoader, t as test } from "../testing-zWgaXBJW.mjs";
|
|
7
7
|
import { t as assertEquals } from "../assert_equals-Ew3jOFa3.mjs";
|
|
8
8
|
import { n as assertStrictEquals } from "../std__assert-2v7gYiZp.mjs";
|
|
9
9
|
import { n as assertFalse, t as assertRejects } from "../assert_rejects-CJC9ThS-.mjs";
|
|
@@ -12,14 +12,14 @@ import { t as assertNotEquals } from "../assert_not_equals--wG9hV7u.mjs";
|
|
|
12
12
|
import { t as assertThrows } from "../assert_throws-BIL7gChy.mjs";
|
|
13
13
|
import { t as assert } from "../assert-DikXweDx.mjs";
|
|
14
14
|
import { t as MemoryKvStore } from "../kv-OuT2IU64.mjs";
|
|
15
|
-
import { a as createFederation, i as KvSpecDeterminer, n as FederationImpl, r as InboxContextImpl, t as ContextImpl } from "../middleware-
|
|
16
|
-
import { l as verifyRequest, s as signRequest } from "../http-
|
|
17
|
-
import { t as getAuthenticatedDocumentLoader } from "../authdocloader-
|
|
18
|
-
import { a as signJsonLd, o as verifyJsonLd, r as detachSignature } from "../ld-
|
|
19
|
-
import { t as doesActorOwnKey } from "../owner-
|
|
20
|
-
import { n as signObject, r as verifyObject } from "../proof-
|
|
21
|
-
import { t as esm_default } from "../esm-
|
|
22
|
-
import { a as rsaPrivateKey3, c as rsaPublicKey3, i as rsaPrivateKey2, n as ed25519PrivateKey, r as ed25519PublicKey, s as rsaPublicKey2, t as ed25519Multikey } from "../keys-
|
|
15
|
+
import { a as createFederation, i as KvSpecDeterminer, n as FederationImpl, r as InboxContextImpl, t as ContextImpl } from "../middleware-BbgpZrsX.mjs";
|
|
16
|
+
import { l as verifyRequest, s as signRequest } from "../http-D5CDiVKf.mjs";
|
|
17
|
+
import { t as getAuthenticatedDocumentLoader } from "../authdocloader-C7iVUcxr.mjs";
|
|
18
|
+
import { a as signJsonLd, o as verifyJsonLd, r as detachSignature } from "../ld-BJ8BZLC8.mjs";
|
|
19
|
+
import { t as doesActorOwnKey } from "../owner-D32qC-wF.mjs";
|
|
20
|
+
import { n as signObject, r as verifyObject } from "../proof-B67QOiuS.mjs";
|
|
21
|
+
import { t as esm_default } from "../esm-Bfj-SwEx.mjs";
|
|
22
|
+
import { a as rsaPrivateKey3, c as rsaPublicKey3, i as rsaPrivateKey2, n as ed25519PrivateKey, r as ed25519PublicKey, s as rsaPublicKey2, t as ed25519Multikey } from "../keys-C4Ms2Cy-.mjs";
|
|
23
23
|
//#region src/testing/fixtures/example.com/person.json
|
|
24
24
|
var person_default = {
|
|
25
25
|
"@context": ["https://www.w3.org/ns/activitystreams", "https://w3id.org/security/v1"],
|
package/dist/federation/mod.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
const { Temporal } = require("@js-temporal/polyfill");
|
|
2
2
|
const { URLPattern } = require("urlpattern-polyfill");
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
4
|
-
require("../docloader
|
|
5
|
-
const require_middleware = require("../middleware-
|
|
4
|
+
require("../docloader-9cG6ESUw.cjs");
|
|
5
|
+
const require_middleware = require("../middleware-0yq2uipZ.cjs");
|
|
6
6
|
let es_toolkit = require("es-toolkit");
|
|
7
7
|
//#region src/federation/kv.ts
|
|
8
8
|
/**
|
package/dist/federation/mod.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Temporal } from "@js-temporal/polyfill";
|
|
2
2
|
import "urlpattern-polyfill";
|
|
3
|
-
import { a as respondWithObjectIfAcceptable, c as createFederationBuilder, i as respondWithObject, l as Router, o as buildCollectionSynchronizationHeader, r as createExponentialBackoffPolicy, s as digest, t as createFederation, u as RouterError } from "../middleware-
|
|
3
|
+
import { a as respondWithObjectIfAcceptable, c as createFederationBuilder, i as respondWithObject, l as Router, o as buildCollectionSynchronizationHeader, r as createExponentialBackoffPolicy, s as digest, t as createFederation, u as RouterError } from "../middleware-CYNQWJ-D.js";
|
|
4
4
|
import { isEqual } from "es-toolkit";
|
|
5
5
|
//#region src/federation/kv.ts
|
|
6
6
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Temporal } from "@js-temporal/polyfill";
|
|
2
2
|
import "urlpattern-polyfill";
|
|
3
3
|
globalThis.addEventListener = () => {};
|
|
4
|
-
import { t as test } from "../testing-
|
|
4
|
+
import { t as test } from "../testing-zWgaXBJW.mjs";
|
|
5
5
|
import { t as assertEquals } from "../assert_equals-Ew3jOFa3.mjs";
|
|
6
6
|
import { i as assertGreaterOrEqual, r as assertGreater } from "../std__assert-2v7gYiZp.mjs";
|
|
7
7
|
import { n as assertFalse } from "../assert_rejects-CJC9ThS-.mjs";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Temporal } from "@js-temporal/polyfill";
|
|
2
2
|
import "urlpattern-polyfill";
|
|
3
3
|
globalThis.addEventListener = () => {};
|
|
4
|
-
import { t as test } from "../testing-
|
|
4
|
+
import { t as test } from "../testing-zWgaXBJW.mjs";
|
|
5
5
|
import { l as AssertionError, t as assertEquals } from "../assert_equals-Ew3jOFa3.mjs";
|
|
6
6
|
import { t as assertNotEquals } from "../assert_not_equals--wG9hV7u.mjs";
|
|
7
7
|
import { t as createExponentialBackoffPolicy } from "../retry-Ddbq3AcK.mjs";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "@js-temporal/polyfill";
|
|
2
2
|
import "urlpattern-polyfill";
|
|
3
3
|
globalThis.addEventListener = () => {};
|
|
4
|
-
import { i as RouterError, r as Router } from "../lookup-
|
|
5
|
-
import { t as test } from "../testing-
|
|
4
|
+
import { i as RouterError, r as Router } from "../lookup-Br7I7sqm.mjs";
|
|
5
|
+
import { t as test } from "../testing-zWgaXBJW.mjs";
|
|
6
6
|
import { t as assertEquals } from "../assert_equals-Ew3jOFa3.mjs";
|
|
7
7
|
import "../std__assert-2v7gYiZp.mjs";
|
|
8
8
|
import { n as assertFalse } from "../assert_rejects-CJC9ThS-.mjs";
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import "@js-temporal/polyfill";
|
|
2
2
|
import "urlpattern-polyfill";
|
|
3
3
|
globalThis.addEventListener = () => {};
|
|
4
|
-
import { C as Person, E as Service, d as Group, l as Endpoints, r as Application, t as Activity } from "../vocab-
|
|
5
|
-
import { a as mockDocumentLoader, t as test } from "../testing-
|
|
4
|
+
import { C as Person, E as Service, d as Group, l as Endpoints, r as Application, t as Activity } from "../vocab-C60RNInZ.mjs";
|
|
5
|
+
import { a as mockDocumentLoader, t as test } from "../testing-zWgaXBJW.mjs";
|
|
6
6
|
import { t as assertEquals } from "../assert_equals-Ew3jOFa3.mjs";
|
|
7
7
|
import "../std__assert-2v7gYiZp.mjs";
|
|
8
8
|
import { n as assertFalse, t as assertRejects } from "../assert_rejects-CJC9ThS-.mjs";
|
|
9
9
|
import { t as assertNotEquals } from "../assert_not_equals--wG9hV7u.mjs";
|
|
10
10
|
import { t as assert } from "../assert-DikXweDx.mjs";
|
|
11
|
-
import { l as verifyRequest } from "../http-
|
|
12
|
-
import { t as doesActorOwnKey } from "../owner-
|
|
13
|
-
import { n as sendActivity, t as extractInboxes } from "../send-
|
|
14
|
-
import { t as esm_default } from "../esm-
|
|
11
|
+
import { l as verifyRequest } from "../http-D5CDiVKf.mjs";
|
|
12
|
+
import { t as doesActorOwnKey } from "../owner-D32qC-wF.mjs";
|
|
13
|
+
import { n as sendActivity, t as extractInboxes } from "../send-7RGxOhrY.mjs";
|
|
14
|
+
import { t as esm_default } from "../esm-Bfj-SwEx.mjs";
|
|
15
15
|
import { t as createTestTracerProvider } from "../otel-0v4Zy01l.mjs";
|
|
16
|
-
import { i as rsaPrivateKey2, n as ed25519PrivateKey, s as rsaPublicKey2, t as ed25519Multikey } from "../keys-
|
|
16
|
+
import { i as rsaPrivateKey2, n as ed25519PrivateKey, s as rsaPublicKey2, t as ed25519Multikey } from "../keys-C4Ms2Cy-.mjs";
|
|
17
17
|
//#region src/federation/send.test.ts
|
|
18
18
|
test("extractInboxes()", () => {
|
|
19
19
|
const recipients = [
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Temporal } from "@js-temporal/polyfill";
|
|
2
2
|
import "urlpattern-polyfill";
|
|
3
|
-
import { d as name, f as version, t as FetchError } from "./docloader-
|
|
4
|
-
import { y as CryptographicKey } from "./actor-
|
|
5
|
-
import { n as fetchKey, o as validateCryptoKey } from "./key-
|
|
3
|
+
import { d as name, f as version, t as FetchError } from "./docloader-DXUkyjIx.js";
|
|
4
|
+
import { y as CryptographicKey } from "./actor-CMBXPdjk.js";
|
|
5
|
+
import { n as fetchKey, o as validateCryptoKey } from "./key-D1PkkNK-.js";
|
|
6
6
|
import { getLogger } from "@logtape/logtape";
|
|
7
7
|
import { SpanStatusCode, trace } from "@opentelemetry/api";
|
|
8
8
|
import { decodeBase64, encodeBase64 } from "byte-encodings/base64";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Temporal } from "@js-temporal/polyfill";
|
|
2
2
|
import "urlpattern-polyfill";
|
|
3
3
|
globalThis.addEventListener = () => {};
|
|
4
|
-
import { G as FetchError, ot as name, s as CryptographicKey, st as version } from "./vocab-
|
|
5
|
-
import { a as validateCryptoKey, n as fetchKey } from "./key-
|
|
4
|
+
import { G as FetchError, ot as name, s as CryptographicKey, st as version } from "./vocab-C60RNInZ.mjs";
|
|
5
|
+
import { a as validateCryptoKey, n as fetchKey } from "./key-Dnc1ekhA.mjs";
|
|
6
6
|
import { getLogger } from "@logtape/logtape";
|
|
7
7
|
import { SpanStatusCode, trace } from "@opentelemetry/api";
|
|
8
8
|
import { decodeBase64, encodeBase64 } from "byte-encodings/base64";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
const { Temporal } = require("@js-temporal/polyfill");
|
|
2
2
|
const { URLPattern } = require("urlpattern-polyfill");
|
|
3
|
-
const require_docloader = require("./docloader
|
|
4
|
-
const require_actor = require("./actor-
|
|
5
|
-
const require_key = require("./key-
|
|
3
|
+
const require_docloader = require("./docloader-9cG6ESUw.cjs");
|
|
4
|
+
const require_actor = require("./actor-DSmY7of0.cjs");
|
|
5
|
+
const require_key = require("./key-B22mXs2u.cjs");
|
|
6
6
|
let _logtape_logtape = require("@logtape/logtape");
|
|
7
7
|
let _opentelemetry_api = require("@opentelemetry/api");
|
|
8
8
|
let byte_encodings_base64 = require("byte-encodings/base64");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Temporal } from "@js-temporal/polyfill";
|
|
2
2
|
import "urlpattern-polyfill";
|
|
3
3
|
globalThis.addEventListener = () => {};
|
|
4
|
-
import { U as getTypeId, ot as name, st as version, t as Activity } from "./vocab-
|
|
4
|
+
import { U as getTypeId, ot as name, st as version, t as Activity } from "./vocab-C60RNInZ.mjs";
|
|
5
5
|
import { getLogger } from "@logtape/logtape";
|
|
6
6
|
import { SpanKind, SpanStatusCode, context, propagation, trace } from "@opentelemetry/api";
|
|
7
7
|
//#region src/federation/inbox.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const { Temporal } = require("@js-temporal/polyfill");
|
|
2
2
|
const { URLPattern } = require("urlpattern-polyfill");
|
|
3
|
-
const require_docloader = require("./docloader
|
|
4
|
-
const require_actor = require("./actor-
|
|
3
|
+
const require_docloader = require("./docloader-9cG6ESUw.cjs");
|
|
4
|
+
const require_actor = require("./actor-DSmY7of0.cjs");
|
|
5
5
|
let _logtape_logtape = require("@logtape/logtape");
|
|
6
6
|
let _opentelemetry_api = require("@opentelemetry/api");
|
|
7
7
|
//#region src/sig/key.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
const { Temporal } = require("@js-temporal/polyfill");
|
|
2
2
|
const { URLPattern } = require("urlpattern-polyfill");
|
|
3
|
-
const require_key = require("./key-
|
|
3
|
+
const require_key = require("./key-B22mXs2u.cjs");
|
|
4
4
|
exports.validateCryptoKey = require_key.validateCryptoKey;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "@js-temporal/polyfill";
|
|
2
2
|
import "urlpattern-polyfill";
|
|
3
3
|
import { t as __exportAll } from "./rolldown-runtime-C7fyD9f2.js";
|
|
4
|
-
import { d as name, f as version, i as getDocumentLoader } from "./docloader-
|
|
5
|
-
import { i as isActor, q as Object$1, y as CryptographicKey } from "./actor-
|
|
4
|
+
import { d as name, f as version, i as getDocumentLoader } from "./docloader-DXUkyjIx.js";
|
|
5
|
+
import { i as isActor, q as Object$1, y as CryptographicKey } from "./actor-CMBXPdjk.js";
|
|
6
6
|
import { getLogger } from "@logtape/logtape";
|
|
7
7
|
import { SpanKind, SpanStatusCode, trace } from "@opentelemetry/api";
|
|
8
8
|
//#region src/sig/key.ts
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "@js-temporal/polyfill";
|
|
2
2
|
import "urlpattern-polyfill";
|
|
3
3
|
globalThis.addEventListener = () => {};
|
|
4
|
-
import { J as getDocumentLoader, ot as name, s as CryptographicKey, st as version, v as Object$1 } from "./vocab-
|
|
5
|
-
import { i as isActor } from "./actor-
|
|
4
|
+
import { J as getDocumentLoader, ot as name, s as CryptographicKey, st as version, v as Object$1 } from "./vocab-C60RNInZ.mjs";
|
|
5
|
+
import { i as isActor } from "./actor-z4bjwAPy.mjs";
|
|
6
6
|
import { getLogger } from "@logtape/logtape";
|
|
7
7
|
import { SpanKind, SpanStatusCode, trace } from "@opentelemetry/api";
|
|
8
8
|
//#region src/sig/key.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Temporal } from "@js-temporal/polyfill";
|
|
2
2
|
import "urlpattern-polyfill";
|
|
3
3
|
globalThis.addEventListener = () => {};
|
|
4
|
-
import { g as Multikey, s as CryptographicKey } from "./vocab-
|
|
4
|
+
import { g as Multikey, s as CryptographicKey } from "./vocab-C60RNInZ.mjs";
|
|
5
5
|
//#region src/federation/keycache.ts
|
|
6
6
|
const NULL_KEY_CACHE_VALUE = { _fedify: "key-unavailable" };
|
|
7
7
|
const NULL_KEY_CACHE_TTL = Temporal.Duration.from({ minutes: 5 });
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "@js-temporal/polyfill";
|
|
2
2
|
import "urlpattern-polyfill";
|
|
3
3
|
globalThis.addEventListener = () => {};
|
|
4
|
-
import { I as importSpki, g as Multikey, s as CryptographicKey } from "./vocab-
|
|
4
|
+
import { I as importSpki, g as Multikey, s as CryptographicKey } from "./vocab-C60RNInZ.mjs";
|
|
5
5
|
//#region src/testing/keys.ts
|
|
6
6
|
const rsaPublicKey1 = new CryptographicKey({
|
|
7
7
|
id: new URL("https://example.com/key"),
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "@js-temporal/polyfill";
|
|
2
2
|
import "urlpattern-polyfill";
|
|
3
3
|
globalThis.addEventListener = () => {};
|
|
4
|
-
import { J as getDocumentLoader, U as getTypeId, ot as name, s as CryptographicKey, st as version, t as Activity, v as Object$1 } from "./vocab-
|
|
5
|
-
import { a as validateCryptoKey, n as fetchKey } from "./key-
|
|
4
|
+
import { J as getDocumentLoader, U as getTypeId, ot as name, s as CryptographicKey, st as version, t as Activity, v as Object$1 } from "./vocab-C60RNInZ.mjs";
|
|
5
|
+
import { a as validateCryptoKey, n as fetchKey } from "./key-Dnc1ekhA.mjs";
|
|
6
6
|
import { getLogger } from "@logtape/logtape";
|
|
7
7
|
import { SpanStatusCode, trace } from "@opentelemetry/api";
|
|
8
8
|
import jsonld from "jsonld";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "@js-temporal/polyfill";
|
|
2
2
|
import "urlpattern-polyfill";
|
|
3
|
-
import { d as name, f as version, l as UrlError, o as getUserAgent, u as validatePublicUrl } from "./docloader-
|
|
3
|
+
import { d as name, f as version, l as UrlError, o as getUserAgent, u as validatePublicUrl } from "./docloader-DXUkyjIx.js";
|
|
4
4
|
import { getLogger } from "@logtape/logtape";
|
|
5
5
|
import { SpanKind, SpanStatusCode, trace } from "@opentelemetry/api";
|
|
6
6
|
//#region src/webfinger/lookup.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Temporal } from "@js-temporal/polyfill";
|
|
2
2
|
import "urlpattern-polyfill";
|
|
3
3
|
globalThis.addEventListener = () => {};
|
|
4
|
-
import { J as getDocumentLoader, U as getTypeId, W as lookupWebFinger, ot as name, st as version, v as Object$1 } from "./vocab-
|
|
4
|
+
import { J as getDocumentLoader, U as getTypeId, W as lookupWebFinger, ot as name, st as version, v as Object$1 } from "./vocab-C60RNInZ.mjs";
|
|
5
5
|
import { getLogger } from "@logtape/logtape";
|
|
6
6
|
import { SpanStatusCode, trace } from "@opentelemetry/api";
|
|
7
7
|
import { cloneDeep, delay } from "es-toolkit";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const { Temporal } = require("@js-temporal/polyfill");
|
|
2
2
|
const { URLPattern } = require("urlpattern-polyfill");
|
|
3
|
-
const require_docloader = require("./docloader
|
|
3
|
+
const require_docloader = require("./docloader-9cG6ESUw.cjs");
|
|
4
4
|
let _logtape_logtape = require("@logtape/logtape");
|
|
5
5
|
let _opentelemetry_api = require("@opentelemetry/api");
|
|
6
6
|
//#region src/webfinger/lookup.ts
|