@fedify/fedify 2.1.12 → 2.1.14
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-D9hlyCx5.mjs → builder-BBifZZ5G.mjs} +3 -3
- package/dist/{chunk-nlSIicah.js → chunk-CRNNMoPX.js} +2 -2
- package/dist/{client-z-8dc-e1.d.cts → client-CAM_bQXx.d.cts} +1 -0
- package/dist/{client-AtlibPOU.d.ts → client-CSddvgWN.d.ts} +1 -2
- package/dist/compat/mod.d.cts +2 -1
- package/dist/compat/mod.d.ts +2 -3
- package/dist/compat/mod.js +3 -3
- package/dist/compat/transformers.test.mjs +1 -1
- package/dist/{context-C0fssarc.d.ts → context-_l9t359k.d.ts} +53 -12
- package/dist/{context-LmrZPwti.d.cts → context-o22vjzS2.d.cts} +53 -10
- package/dist/{deno-Ddb3P7G7.mjs → deno-bqnW1QlD.mjs} +1 -1
- package/dist/{docloader-CK8tewt1.mjs → docloader-D-Fu0kBF.mjs} +2 -2
- package/dist/federation/builder.test.mjs +1 -1
- package/dist/federation/handler.test.mjs +1361 -41
- package/dist/federation/idempotency.test.mjs +2 -2
- package/dist/federation/inbox.test.mjs +1 -1
- package/dist/federation/middleware.test.mjs +1588 -84
- package/dist/federation/mod.cjs +1 -1
- package/dist/federation/mod.d.cts +4 -3
- package/dist/federation/mod.d.ts +4 -5
- package/dist/federation/mod.js +2 -2
- package/dist/federation/retry.test.mjs +1 -1
- package/dist/federation/send.test.mjs +3 -3
- package/dist/federation/temporal.test.d.mts +2 -0
- package/dist/federation/temporal.test.mjs +71 -0
- package/dist/federation/webfinger.test.mjs +1 -1
- package/dist/{http-CrGuipxe.d.cts → http-BDZeS5om.d.ts} +2 -1
- package/dist/{http-aQzN9Ayi.d.ts → http-C87EWkO0.d.cts} +2 -3
- package/dist/{http-CmDErAnD.cjs → http-CEXtUHix.cjs} +57 -9
- package/dist/{http-qKyJKSnF.js → http-Cw1EorUA.js} +58 -10
- package/dist/{http-DRDpStn2.mjs → http-DvhFwy2E.mjs} +58 -10
- package/dist/{inbox-DTuPJEma.mjs → inbox-7b3VYnec.mjs} +7 -4
- package/dist/{key-WSedbAA-.mjs → key-B3OBz6A_.mjs} +1 -1
- package/dist/{kv-CbLNp3zQ.d.cts → kv-D6hNiMTK.d.ts} +1 -0
- package/dist/{kv-cache-9cdQDeT0.cjs → kv-cache-BIapFiSV.cjs} +2 -2
- package/dist/{kv-cache-DNNRFY8u.js → kv-cache-C6nynGhh.js} +2 -2
- package/dist/{kv-cache-B01V7s3h.mjs → kv-cache-FsT1ljhs.mjs} +1 -1
- package/dist/{kv-GFYnFoOl.d.ts → kv-gJ8LYbxX.d.cts} +1 -3
- package/dist/ld-DTxYKZTT.mjs +550 -0
- package/dist/{middleware-UThUK30x.js → middleware-0vceVN10.js} +407 -82
- package/dist/{middleware-DFcgN1cH.cjs → middleware-BcbU5lKS.cjs} +406 -80
- package/dist/{middleware-8P6Z15Wq.cjs → middleware-DUT--Qen.cjs} +1 -1
- package/dist/{middleware-DDsnRvFC.mjs → middleware-DmT9t0BJ.mjs} +317 -84
- package/dist/{middleware-C2c1rlmE.mjs → middleware-Li_g_vqz.mjs} +1 -1
- package/dist/{mod-CnwZoDzx.d.ts → mod-0dF0OeGw.d.cts} +2 -3
- package/dist/{mod-B505FZBC.d.cts → mod-BTWFtZwa.d.ts} +4 -3
- package/dist/{mod-Cgpc49fA.d.cts → mod-Bv1elC-b.d.ts} +2 -1
- package/dist/{mod-DoJBjjnO.d.cts → mod-CjiK2zrW.d.ts} +3 -2
- package/dist/{mod-DvxszxXC.d.ts → mod-D5YlzzP3.d.cts} +3 -4
- package/dist/{mod-D7PAuO6k.d.ts → mod-dxOnKp2Y.d.cts} +4 -5
- package/dist/mod.cjs +4 -4
- package/dist/mod.d.cts +9 -8
- package/dist/mod.d.ts +9 -10
- package/dist/mod.js +9 -9
- package/dist/nodeinfo/handler.test.mjs +1 -1
- package/dist/nodeinfo/mod.d.cts +2 -1
- package/dist/nodeinfo/mod.d.ts +2 -3
- package/dist/nodeinfo/mod.js +3 -3
- package/dist/otel/mod.d.cts +2 -1
- package/dist/otel/mod.d.ts +2 -3
- package/dist/otel/mod.js +2 -2
- package/dist/{owner-CptqhsOy.d.cts → owner-CnngXDNJ.d.ts} +2 -1
- package/dist/{owner-74ARJ5TL.d.ts → owner-DEvZuyOE.d.cts} +2 -3
- package/dist/{owner-BceqCVOs.mjs → owner-DzcnuWYo.mjs} +2 -2
- package/dist/{proof-4NUQlbQV.js → proof-CtTT8A7y.js} +299 -5
- package/dist/{proof-BojC8L94.mjs → proof-DmVGi7mI.mjs} +2 -2
- package/dist/{proof-kuTIVfyZ.cjs → proof-JEoW3ODq.cjs} +345 -3
- package/dist/runtime/mod.d.cts +1 -0
- package/dist/runtime/mod.d.ts +1 -2
- package/dist/runtime/mod.js +3 -3
- package/dist/{send-Buz5Gy8x.mjs → send-5ulOKVCW.mjs} +2 -2
- package/dist/sig/http.test.mjs +120 -2
- package/dist/sig/key.test.mjs +1 -1
- package/dist/sig/ld.test.mjs +558 -2
- package/dist/sig/mod.cjs +2 -2
- package/dist/sig/mod.d.cts +4 -3
- package/dist/sig/mod.d.ts +4 -5
- package/dist/sig/mod.js +4 -4
- package/dist/sig/owner.test.mjs +1 -1
- package/dist/sig/proof.test.mjs +1 -1
- package/dist/temporal-CmJkd-25.mjs +95 -0
- package/dist/testing/mod.d.mts +48 -6
- package/dist/{transformers-ve6e2xcg.js → transformers-BGMIq1cs.js} +2 -2
- package/dist/{types-hvL8ElAs.js → types-CAY3OdLq.js} +2 -2
- 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.d.cts +2 -1
- package/dist/utils/mod.d.ts +2 -3
- package/dist/utils/mod.js +3 -3
- package/dist/vocab/mod.d.cts +1 -0
- package/dist/vocab/mod.d.ts +1 -2
- package/dist/vocab/mod.js +2 -2
- package/package.json +7 -7
- package/dist/ld-OBpaLfHR.mjs +0 -256
- /package/dist/{retry-B_E3V_Dx.mjs → retry-CJL0poaU.mjs} +0 -0
|
@@ -2,8 +2,8 @@ import "@js-temporal/polyfill";
|
|
|
2
2
|
import "urlpattern-polyfill";
|
|
3
3
|
globalThis.addEventListener = () => {};
|
|
4
4
|
import { n as RouterError, t as Router } from "./router-CrMLXoOr.mjs";
|
|
5
|
-
import { n as version, t as name } from "./deno-
|
|
6
|
-
import { t as InboxListenerSet } from "./inbox-
|
|
5
|
+
import { n as version, t as name } from "./deno-bqnW1QlD.mjs";
|
|
6
|
+
import { t as InboxListenerSet } from "./inbox-7b3VYnec.mjs";
|
|
7
7
|
import { getTypeId } from "@fedify/vocab";
|
|
8
8
|
import { SpanKind, SpanStatusCode, trace } from "@opentelemetry/api";
|
|
9
9
|
import { getLogger } from "@logtape/logtape";
|
|
@@ -43,7 +43,7 @@ var FederationBuilderImpl = class {
|
|
|
43
43
|
this.collectionTypeIds = {};
|
|
44
44
|
}
|
|
45
45
|
async build(options) {
|
|
46
|
-
const { FederationImpl } = await import("./middleware-
|
|
46
|
+
const { FederationImpl } = await import("./middleware-Li_g_vqz.mjs");
|
|
47
47
|
const f = new FederationImpl(options);
|
|
48
48
|
const trailingSlashInsensitiveValue = f.router.trailingSlashInsensitive;
|
|
49
49
|
f.router = this.router.clone();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "@js-temporal/polyfill";
|
|
2
|
-
import "urlpattern-polyfill";
|
|
1
|
+
import { Temporal } from "@js-temporal/polyfill";
|
|
2
|
+
import { URLPattern } from "urlpattern-polyfill";
|
|
3
3
|
//#region \0rolldown/runtime.js
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
5
5
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
package/dist/compat/mod.d.cts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference lib="esnext.temporal" />
|
|
2
|
+
import { Ct as ActivityTransformer, n as Context } from "../context-o22vjzS2.cjs";
|
|
2
3
|
import { Activity } from "@fedify/vocab";
|
|
3
4
|
|
|
4
5
|
//#region src/compat/transformers.d.ts
|
package/dist/compat/mod.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import { Ct as ActivityTransformer, n as Context } from "../context-C0fssarc.js";
|
|
1
|
+
/// <reference lib="esnext.temporal" />
|
|
2
|
+
import { Ct as ActivityTransformer, n as Context } from "../context-_l9t359k.js";
|
|
4
3
|
import { Activity } from "@fedify/vocab";
|
|
5
4
|
|
|
6
5
|
//#region src/compat/transformers.d.ts
|
package/dist/compat/mod.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "@js-temporal/polyfill";
|
|
2
|
-
import "urlpattern-polyfill";
|
|
3
|
-
import { n as autoIdAssigner, r as getDefaultActivityTransformers, t as actorDehydrator } from "../transformers-
|
|
1
|
+
import { Temporal } from "@js-temporal/polyfill";
|
|
2
|
+
import { URLPattern } from "urlpattern-polyfill";
|
|
3
|
+
import { n as autoIdAssigner, r as getDefaultActivityTransformers, t as actorDehydrator } from "../transformers-BGMIq1cs.js";
|
|
4
4
|
export { actorDehydrator, autoIdAssigner, getDefaultActivityTransformers };
|
|
@@ -5,7 +5,7 @@ import { t as assertEquals } from "../assert_equals-Ew3jOFa3.mjs";
|
|
|
5
5
|
import { t as assertInstanceOf } from "../assert_instance_of-C4Ri6VuN.mjs";
|
|
6
6
|
import { t as assert } from "../assert-ddO5KLpe.mjs";
|
|
7
7
|
import { t as MemoryKvStore } from "../kv-tL2TOE9X.mjs";
|
|
8
|
-
import { _ as autoIdAssigner, g as actorDehydrator, n as FederationImpl } from "../middleware-
|
|
8
|
+
import { _ as autoIdAssigner, g as actorDehydrator, n as FederationImpl } from "../middleware-DmT9t0BJ.mjs";
|
|
9
9
|
import { test } from "@fedify/fixture";
|
|
10
10
|
import { Follow, Person } from "@fedify/vocab";
|
|
11
11
|
//#region src/compat/transformers.test.ts
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import { o as
|
|
4
|
-
import {
|
|
5
|
-
import { n as
|
|
6
|
-
import { n as KvStore, t as KvKey } from "./kv-GFYnFoOl.js";
|
|
1
|
+
/// <reference lib="esnext.temporal" />
|
|
2
|
+
import { o as JsonValue, s as NodeInfo, t as GetNodeInfoOptions } from "./client-CSddvgWN.js";
|
|
3
|
+
import { o as VerifyRequestFailureReason, t as HttpMessageSignaturesSpec } from "./http-BDZeS5om.js";
|
|
4
|
+
import { n as GetKeyOwnerOptions } from "./owner-CnngXDNJ.js";
|
|
5
|
+
import { n as KvStore, t as KvKey } from "./kv-D6hNiMTK.js";
|
|
7
6
|
import { Activity, Actor, Collection, CryptographicKey, Hashtag, Link, LookupObjectOptions, Multikey, Object as Object$1, Recipient, TraverseCollectionOptions } from "@fedify/vocab";
|
|
8
7
|
import { Span, Tracer, TracerProvider } from "@opentelemetry/api";
|
|
9
8
|
import { AuthenticatedDocumentLoaderFactory, DocumentLoader, DocumentLoaderFactory, GetUserAgentOptions } from "@fedify/vocab-runtime";
|
|
@@ -707,6 +706,42 @@ interface InboxMessage {
|
|
|
707
706
|
readonly id: ReturnType<typeof crypto.randomUUID>;
|
|
708
707
|
readonly baseUrl: string;
|
|
709
708
|
readonly activity: unknown;
|
|
709
|
+
/**
|
|
710
|
+
* The normalized JSON-LD representation of a signed inbox activity that
|
|
711
|
+
* Fedify already compacted successfully while accepting the request. Queue
|
|
712
|
+
* workers can reuse this producer-side parse cache under stricter loader or
|
|
713
|
+
* network constraints without changing the raw payload preserved for
|
|
714
|
+
* forwarding.
|
|
715
|
+
*
|
|
716
|
+
* This may exist even when {@link ldSignatureVerified} is `false`, because
|
|
717
|
+
* fallback-authenticated traffic and already-queued backlog items can still
|
|
718
|
+
* depend on the cached normalized form to avoid re-fetching remote custom
|
|
719
|
+
* contexts during worker processing.
|
|
720
|
+
*
|
|
721
|
+
* This is optional for backward compatibility with messages that were
|
|
722
|
+
* queued by older Fedify versions or that were already in a queue before
|
|
723
|
+
* upgrading.
|
|
724
|
+
*
|
|
725
|
+
* Fedify keeps this on the queued message itself instead of an external
|
|
726
|
+
* sidecar because generic queue backends do not provide reliable lifecycle
|
|
727
|
+
* guarantees for auxiliary storage across retries and redeliveries.
|
|
728
|
+
*
|
|
729
|
+
* @internal
|
|
730
|
+
*/
|
|
731
|
+
readonly normalizedActivity?: unknown;
|
|
732
|
+
/**
|
|
733
|
+
* Whether the producer actually verified the Linked Data Signature before
|
|
734
|
+
* queueing this message. This lets workers distinguish verified LDS replay
|
|
735
|
+
* from other authenticated inbox traffic that merely happened to include a
|
|
736
|
+
* signature block. This provenance marker is separate from the optional
|
|
737
|
+
* normalizedActivity parse cache.
|
|
738
|
+
*
|
|
739
|
+
* `undefined` preserves backward compatibility with older queued messages
|
|
740
|
+
* that predate this marker.
|
|
741
|
+
*
|
|
742
|
+
* @internal
|
|
743
|
+
*/
|
|
744
|
+
readonly ldSignatureVerified?: boolean;
|
|
710
745
|
readonly started: string;
|
|
711
746
|
readonly attempt: number;
|
|
712
747
|
readonly identifier: string | null;
|
|
@@ -2357,9 +2392,12 @@ interface InboxContext<TContextData> extends Context<TContextData> {
|
|
|
2357
2392
|
* Forwards a received activity to the recipients' inboxes. The forwarded
|
|
2358
2393
|
* activity will be signed in HTTP Signatures by the forwarder, but its
|
|
2359
2394
|
* payload will not be modified, i.e., Linked Data Signatures and Object
|
|
2360
|
-
* Integrity Proofs will not be added.
|
|
2361
|
-
*
|
|
2362
|
-
*
|
|
2395
|
+
* Integrity Proofs will not be added. Even when Fedify internally
|
|
2396
|
+
* normalizes a Linked Data Signature activity for parsing, this method still
|
|
2397
|
+
* forwards the original received payload so the sender's signatures/proofs
|
|
2398
|
+
* are preserved as-is. Therefore, if the activity is not signed (i.e., it
|
|
2399
|
+
* has neither Linked Data Signatures nor Object Integrity Proofs), the
|
|
2400
|
+
* recipient probably will not trust the activity.
|
|
2363
2401
|
* @param forwarder The forwarder's identifier or the forwarder's username
|
|
2364
2402
|
* or the forwarder's key pair(s).
|
|
2365
2403
|
* @param recipients The recipients of the activity.
|
|
@@ -2375,9 +2413,12 @@ interface InboxContext<TContextData> extends Context<TContextData> {
|
|
|
2375
2413
|
* Forwards a received activity to the recipients' inboxes. The forwarded
|
|
2376
2414
|
* activity will be signed in HTTP Signatures by the forwarder, but its
|
|
2377
2415
|
* payload will not be modified, i.e., Linked Data Signatures and Object
|
|
2378
|
-
* Integrity Proofs will not be added.
|
|
2379
|
-
*
|
|
2380
|
-
*
|
|
2416
|
+
* Integrity Proofs will not be added. Even when Fedify internally
|
|
2417
|
+
* normalizes a Linked Data Signature activity for parsing, this method still
|
|
2418
|
+
* forwards the original received payload so the sender's signatures/proofs
|
|
2419
|
+
* are preserved as-is. Therefore, if the activity is not signed (i.e., it
|
|
2420
|
+
* has neither Linked Data Signatures nor Object Integrity Proofs), the
|
|
2421
|
+
* recipient probably will not trust the activity.
|
|
2381
2422
|
* @param forwarder The forwarder's identifier or the forwarder's username.
|
|
2382
2423
|
* @param recipients In this case, it must be `"followers"`.
|
|
2383
2424
|
* @param options Options for forwarding the activity.
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
import { o as
|
|
3
|
-
import {
|
|
4
|
-
import { n as
|
|
1
|
+
/// <reference lib="esnext.temporal" />
|
|
2
|
+
import { o as JsonValue, s as NodeInfo, t as GetNodeInfoOptions } from "./client-CAM_bQXx.cjs";
|
|
3
|
+
import { o as VerifyRequestFailureReason, t as HttpMessageSignaturesSpec } from "./http-C87EWkO0.cjs";
|
|
4
|
+
import { n as GetKeyOwnerOptions } from "./owner-DEvZuyOE.cjs";
|
|
5
|
+
import { n as KvStore, t as KvKey } from "./kv-gJ8LYbxX.cjs";
|
|
5
6
|
import { Activity, Actor, Collection, CryptographicKey, Hashtag, Link, LookupObjectOptions, Multikey, Object as Object$1, Recipient, TraverseCollectionOptions } from "@fedify/vocab";
|
|
6
7
|
import { AuthenticatedDocumentLoaderFactory, DocumentLoader, DocumentLoaderFactory, GetUserAgentOptions } from "@fedify/vocab-runtime";
|
|
7
8
|
import { Link as Link$1, LookupWebFingerOptions, ResourceDescriptor } from "@fedify/webfinger";
|
|
@@ -705,6 +706,42 @@ interface InboxMessage {
|
|
|
705
706
|
readonly id: ReturnType<typeof crypto.randomUUID>;
|
|
706
707
|
readonly baseUrl: string;
|
|
707
708
|
readonly activity: unknown;
|
|
709
|
+
/**
|
|
710
|
+
* The normalized JSON-LD representation of a signed inbox activity that
|
|
711
|
+
* Fedify already compacted successfully while accepting the request. Queue
|
|
712
|
+
* workers can reuse this producer-side parse cache under stricter loader or
|
|
713
|
+
* network constraints without changing the raw payload preserved for
|
|
714
|
+
* forwarding.
|
|
715
|
+
*
|
|
716
|
+
* This may exist even when {@link ldSignatureVerified} is `false`, because
|
|
717
|
+
* fallback-authenticated traffic and already-queued backlog items can still
|
|
718
|
+
* depend on the cached normalized form to avoid re-fetching remote custom
|
|
719
|
+
* contexts during worker processing.
|
|
720
|
+
*
|
|
721
|
+
* This is optional for backward compatibility with messages that were
|
|
722
|
+
* queued by older Fedify versions or that were already in a queue before
|
|
723
|
+
* upgrading.
|
|
724
|
+
*
|
|
725
|
+
* Fedify keeps this on the queued message itself instead of an external
|
|
726
|
+
* sidecar because generic queue backends do not provide reliable lifecycle
|
|
727
|
+
* guarantees for auxiliary storage across retries and redeliveries.
|
|
728
|
+
*
|
|
729
|
+
* @internal
|
|
730
|
+
*/
|
|
731
|
+
readonly normalizedActivity?: unknown;
|
|
732
|
+
/**
|
|
733
|
+
* Whether the producer actually verified the Linked Data Signature before
|
|
734
|
+
* queueing this message. This lets workers distinguish verified LDS replay
|
|
735
|
+
* from other authenticated inbox traffic that merely happened to include a
|
|
736
|
+
* signature block. This provenance marker is separate from the optional
|
|
737
|
+
* normalizedActivity parse cache.
|
|
738
|
+
*
|
|
739
|
+
* `undefined` preserves backward compatibility with older queued messages
|
|
740
|
+
* that predate this marker.
|
|
741
|
+
*
|
|
742
|
+
* @internal
|
|
743
|
+
*/
|
|
744
|
+
readonly ldSignatureVerified?: boolean;
|
|
708
745
|
readonly started: string;
|
|
709
746
|
readonly attempt: number;
|
|
710
747
|
readonly identifier: string | null;
|
|
@@ -2355,9 +2392,12 @@ interface InboxContext<TContextData> extends Context<TContextData> {
|
|
|
2355
2392
|
* Forwards a received activity to the recipients' inboxes. The forwarded
|
|
2356
2393
|
* activity will be signed in HTTP Signatures by the forwarder, but its
|
|
2357
2394
|
* payload will not be modified, i.e., Linked Data Signatures and Object
|
|
2358
|
-
* Integrity Proofs will not be added.
|
|
2359
|
-
*
|
|
2360
|
-
*
|
|
2395
|
+
* Integrity Proofs will not be added. Even when Fedify internally
|
|
2396
|
+
* normalizes a Linked Data Signature activity for parsing, this method still
|
|
2397
|
+
* forwards the original received payload so the sender's signatures/proofs
|
|
2398
|
+
* are preserved as-is. Therefore, if the activity is not signed (i.e., it
|
|
2399
|
+
* has neither Linked Data Signatures nor Object Integrity Proofs), the
|
|
2400
|
+
* recipient probably will not trust the activity.
|
|
2361
2401
|
* @param forwarder The forwarder's identifier or the forwarder's username
|
|
2362
2402
|
* or the forwarder's key pair(s).
|
|
2363
2403
|
* @param recipients The recipients of the activity.
|
|
@@ -2373,9 +2413,12 @@ interface InboxContext<TContextData> extends Context<TContextData> {
|
|
|
2373
2413
|
* Forwards a received activity to the recipients' inboxes. The forwarded
|
|
2374
2414
|
* activity will be signed in HTTP Signatures by the forwarder, but its
|
|
2375
2415
|
* payload will not be modified, i.e., Linked Data Signatures and Object
|
|
2376
|
-
* Integrity Proofs will not be added.
|
|
2377
|
-
*
|
|
2378
|
-
*
|
|
2416
|
+
* Integrity Proofs will not be added. Even when Fedify internally
|
|
2417
|
+
* normalizes a Linked Data Signature activity for parsing, this method still
|
|
2418
|
+
* forwards the original received payload so the sender's signatures/proofs
|
|
2419
|
+
* are preserved as-is. Therefore, if the activity is not signed (i.e., it
|
|
2420
|
+
* has neither Linked Data Signatures nor Object Integrity Proofs), the
|
|
2421
|
+
* recipient probably will not trust the activity.
|
|
2379
2422
|
* @param forwarder The forwarder's identifier or the forwarder's username.
|
|
2380
2423
|
* @param recipients In this case, it must be `"followers"`.
|
|
2381
2424
|
* @param options Options for forwarding the activity.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "@js-temporal/polyfill";
|
|
2
2
|
import "urlpattern-polyfill";
|
|
3
3
|
globalThis.addEventListener = () => {};
|
|
4
|
-
import { o as validateCryptoKey } from "./key-
|
|
5
|
-
import { n as doubleKnock } from "./http-
|
|
4
|
+
import { o as validateCryptoKey } from "./key-B3OBz6A_.mjs";
|
|
5
|
+
import { n as doubleKnock } from "./http-DvhFwy2E.mjs";
|
|
6
6
|
import { curry } from "es-toolkit";
|
|
7
7
|
import { UrlError, createActivityPubRequest, getRemoteDocument, logRequest, validatePublicUrl } from "@fedify/vocab-runtime";
|
|
8
8
|
import { getLogger } from "@logtape/logtape";
|
|
@@ -5,7 +5,7 @@ import { t as assertEquals } from "../assert_equals-Ew3jOFa3.mjs";
|
|
|
5
5
|
import { a as assertExists } from "../std__assert-Duiq_YC9.mjs";
|
|
6
6
|
import { t as assertThrows } from "../assert_throws-4NwKEy2q.mjs";
|
|
7
7
|
import { t as MemoryKvStore } from "../kv-tL2TOE9X.mjs";
|
|
8
|
-
import { n as createFederationBuilder } from "../builder-
|
|
8
|
+
import { n as createFederationBuilder } from "../builder-BBifZZ5G.mjs";
|
|
9
9
|
import { test } from "@fedify/fixture";
|
|
10
10
|
import { Activity, Note, Person } from "@fedify/vocab";
|
|
11
11
|
//#region src/federation/builder.test.ts
|