@fedify/fedify 1.9.10 → 1.9.12-dev.2265
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-BCmFER1x.js → actor-BJj7NAV7.js} +187 -187
- package/dist/{actor-CGzgm5oD.cjs → actor-BxUB2vBw.cjs} +187 -187
- package/dist/{actor-Dk8QQxfb.mjs → actor-DKEb3nb2.mjs} +1 -1
- package/dist/{authdocloader-C0oFDv-u.cjs → authdocloader-BkG-kREl.cjs} +3 -3
- package/dist/{authdocloader-BlqYxYyU.mjs → authdocloader-DVWlfdZ9.mjs} +3 -3
- package/dist/{authdocloader-C4Km7IX-.js → authdocloader-_m5yqwLt.js} +3 -3
- package/dist/{builder-Dy69enN4.mjs → builder-Dhm6irl1.mjs} +4 -4
- package/dist/{client-BVxHrCKU.mjs → client-CIvLnEyN.mjs} +1 -1
- package/dist/compat/mod.cjs +1 -1
- package/dist/compat/mod.d.cts +1 -1
- package/dist/compat/mod.d.ts +1 -1
- package/dist/compat/transformers.test.mjs +3 -3
- package/dist/{context-Cf8s07xm.d.ts → context-CNkTuNIm.d.ts} +48 -6
- package/dist/{context-Crmwowsw.d.cts → context-jX79cwCB.d.cts} +48 -6
- package/dist/{docloader-CJRlqHTE.js → docloader-CFM5B9fd.js} +121 -13
- package/dist/{docloader-L_Yv0SO1.cjs → docloader-ojCZeNsS.cjs} +121 -13
- package/dist/{esm-Bl5QZ7fr.mjs → esm-DpYRgHio.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 +1361 -45
- 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 +1586 -82
- package/dist/federation/mod.cjs +2 -2
- package/dist/federation/mod.d.cts +1 -1
- package/dist/federation/mod.d.ts +1 -1
- package/dist/federation/mod.js +1 -1
- package/dist/federation/mq.test.mjs +3 -3
- package/dist/federation/retry.test.mjs +2 -2
- package/dist/federation/router.test.mjs +2 -2
- package/dist/federation/send.test.mjs +7 -7
- package/dist/federation/temporal.test.d.mts +2 -0
- package/dist/federation/temporal.test.mjs +71 -0
- package/dist/{http-ChxLPxfJ.cjs → http-B7su-Fmy.cjs} +3 -3
- package/dist/{http-lEtFJ9QZ.mjs → http-ChKbuD-B.mjs} +2 -2
- package/dist/{http-CEocuLno.js → http-DdMd8CPw.js} +3 -3
- package/dist/{inbox-f2JhwcoC.mjs → inbox-Du7n_Tcq.mjs} +7 -4
- package/dist/{key-DL1K1oFv.cjs → key-AD7NWK_B.cjs} +2 -2
- package/dist/{key-CcFvjYSE.mjs → key-Bd3kgBIA.mjs} +2 -2
- package/dist/{key-GSxkNZYW.cjs → key-COEspOg4.cjs} +1 -1
- package/dist/{key-DXRa1vj8.mjs → key-DINKM8mV.mjs} +1 -1
- package/dist/{key-CfQiiCFY.js → key-DvsZ4r4J.js} +2 -2
- package/dist/{keycache-Car3vCR8.mjs → keycache-DYpvtScH.mjs} +1 -1
- package/dist/{keys-BPA70FRA.mjs → keys-CJPe6iTW.mjs} +1 -1
- package/dist/ld-C51F-FdC.mjs +548 -0
- package/dist/{lookup-BZCRNz7r.cjs → lookup-DrAw0WK4.cjs} +1 -1
- package/dist/{lookup-MjsiCtwV.js → lookup-avek91qK.js} +1 -1
- package/dist/{lookup-ByZEGrUD.mjs → lookup-jTLErl5g.mjs} +1 -1
- package/dist/{middleware-D23J06Wi.js → middleware-B_5QXY9T.js} +401 -76
- package/dist/{middleware-DwelHV2a.cjs → middleware-BxPRXIp2.cjs} +404 -78
- package/dist/{middleware-DzVgR5WN.cjs → middleware-CoZn3Vmd.cjs} +1 -1
- package/dist/{middleware-DT1q8p2_.mjs → middleware-ScXtn6SX.mjs} +313 -80
- package/dist/{middleware-DQF9aAWg.mjs → middleware-ySLVbIpY.mjs} +1 -1
- package/dist/mod.cjs +10 -10
- package/dist/mod.d.cts +1 -1
- package/dist/mod.d.ts +1 -1
- 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/{owner-2Hw80SWJ.mjs → owner-Ul_H1ZhA.mjs} +3 -3
- package/dist/{proof-B6709oyL.mjs → proof-CGXr6kyw.mjs} +2 -2
- package/dist/{proof-DoJnUD_A.js → proof-CO1rdWN1.js} +300 -6
- package/dist/{proof-DOwB_RsW.cjs → proof-CpHpOx4z.cjs} +347 -5
- 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 +53 -2
- package/dist/{send-CaI0XRhr.mjs → send-BktZN-8x.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 +561 -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/temporal-DG3PUHrG.mjs +95 -0
- package/dist/testing/docloader.test.mjs +1 -1
- package/dist/testing/mod.d.mts +48 -6
- package/dist/testing/mod.mjs +1 -1
- package/dist/{testing-2hgRVgOJ.mjs → testing-Dbq3x7rR.mjs} +2 -2
- package/dist/{transformers-BZ3mYJ1P.cjs → transformers-ZXV8xoFH.cjs} +1 -1
- package/dist/{types-36cPcbK8.js → types-CysnskTc.js} +1 -1
- package/dist/{types-DXy2Djgl.cjs → types-kNVIK9BX.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-BPE_99_6.mjs → vocab-BmWZ5Z8b.mjs} +306 -198
- 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/hono.d.cts +1 -1
- package/dist/x/hono.d.ts +1 -1
- package/dist/x/sveltekit.cjs +1 -1
- package/dist/x/sveltekit.d.cts +1 -1
- package/dist/x/sveltekit.d.ts +1 -1
- package/package.json +1 -1
- package/dist/ld-C5izJRbw.mjs +0 -254
- /package/dist/{denokv-CoSB_Eps.mjs → denokv-NJPMXyK0.mjs} +0 -0
- /package/dist/{retry-Ddbq3AcK.mjs → retry-B_E3V_Dx.mjs} +0 -0
package/dist/sig/owner.test.mjs
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import "@js-temporal/polyfill";
|
|
2
2
|
import "urlpattern-polyfill";
|
|
3
3
|
globalThis.addEventListener = () => {};
|
|
4
|
-
import { o as Create } from "../vocab-
|
|
5
|
-
import { t as lookupObject } from "../lookup-
|
|
6
|
-
import { a as mockDocumentLoader, t as test } from "../testing-
|
|
4
|
+
import { o as Create } from "../vocab-BmWZ5Z8b.mjs";
|
|
5
|
+
import { t as lookupObject } from "../lookup-jTLErl5g.mjs";
|
|
6
|
+
import { a as mockDocumentLoader, t as test } from "../testing-Dbq3x7rR.mjs";
|
|
7
7
|
import { t as assertEquals } from "../assert_equals-Ew3jOFa3.mjs";
|
|
8
8
|
import "../std__assert-2v7gYiZp.mjs";
|
|
9
9
|
import { n as assertFalse } from "../assert_rejects-CJC9ThS-.mjs";
|
|
10
10
|
import { t as assert } from "../assert-DikXweDx.mjs";
|
|
11
|
-
import { n as getKeyOwner, t as doesActorOwnKey } from "../owner-
|
|
12
|
-
import { o as rsaPublicKey1, s as rsaPublicKey2 } from "../keys-
|
|
11
|
+
import { n as getKeyOwner, t as doesActorOwnKey } from "../owner-Ul_H1ZhA.mjs";
|
|
12
|
+
import { o as rsaPublicKey1, s as rsaPublicKey2 } from "../keys-CJPe6iTW.mjs";
|
|
13
13
|
//#region src/sig/owner.test.ts
|
|
14
14
|
test("doesActorOwnKey()", async () => {
|
|
15
15
|
const options = {
|
package/dist/sig/proof.test.mjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { Temporal } from "@js-temporal/polyfill";
|
|
2
2
|
import "urlpattern-polyfill";
|
|
3
3
|
globalThis.addEventListener = () => {};
|
|
4
|
-
import { L as decode, N as importMultibaseKey, _ as Note, c as DataIntegrityProof, g as Multikey, o as Create, w as Place } from "../vocab-
|
|
5
|
-
import { a as mockDocumentLoader, t as test } from "../testing-
|
|
4
|
+
import { L as decode, N as importMultibaseKey, _ as Note, c as DataIntegrityProof, g as Multikey, o as Create, w as Place } from "../vocab-BmWZ5Z8b.mjs";
|
|
5
|
+
import { a as mockDocumentLoader, t as test } from "../testing-Dbq3x7rR.mjs";
|
|
6
6
|
import { t as assertEquals } from "../assert_equals-Ew3jOFa3.mjs";
|
|
7
7
|
import "../std__assert-2v7gYiZp.mjs";
|
|
8
8
|
import { t as assertRejects } from "../assert_rejects-CJC9ThS-.mjs";
|
|
9
9
|
import { t as assertInstanceOf } from "../assert_instance_of-C4Ri6VuN.mjs";
|
|
10
|
-
import { i as verifyProof, n as signObject, r as verifyObject, t as createProof } from "../proof-
|
|
11
|
-
import { i as rsaPrivateKey2, n as ed25519PrivateKey, r as ed25519PublicKey, s as rsaPublicKey2, t as ed25519Multikey } from "../keys-
|
|
10
|
+
import { i as verifyProof, n as signObject, r as verifyObject, t as createProof } from "../proof-CGXr6kyw.mjs";
|
|
11
|
+
import { i as rsaPrivateKey2, n as ed25519PrivateKey, r as ed25519PublicKey, s as rsaPublicKey2, t as ed25519Multikey } from "../keys-CJPe6iTW.mjs";
|
|
12
12
|
import { decodeHex, encodeHex } from "byte-encodings/hex";
|
|
13
13
|
//#region src/sig/proof.test.ts
|
|
14
14
|
const fep8b32TestVectorPrivateKey = await crypto.subtle.importKey("jwk", {
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { Temporal } from "@js-temporal/polyfill";
|
|
2
|
+
import "urlpattern-polyfill";
|
|
3
|
+
globalThis.addEventListener = () => {};
|
|
4
|
+
import { c as getNormalizationContextLoader } from "./ld-C51F-FdC.mjs";
|
|
5
|
+
import jsonld from "jsonld";
|
|
6
|
+
//#region src/federation/temporal.ts
|
|
7
|
+
function isPlainObject(value) {
|
|
8
|
+
return typeof value === "object" && value != null && !Array.isArray(value);
|
|
9
|
+
}
|
|
10
|
+
function normalizeDateTimeLiteral(value) {
|
|
11
|
+
return value.substring(19).match(/[Z+-]/) ? value : value + "Z";
|
|
12
|
+
}
|
|
13
|
+
function isMalformedDateTimeLiteral(value) {
|
|
14
|
+
if (typeof value !== "string") return false;
|
|
15
|
+
try {
|
|
16
|
+
Temporal.Instant.from(normalizeDateTimeLiteral(value));
|
|
17
|
+
return false;
|
|
18
|
+
} catch {
|
|
19
|
+
return true;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
function isMalformedDurationLiteral(value) {
|
|
23
|
+
if (typeof value !== "string") return false;
|
|
24
|
+
try {
|
|
25
|
+
Temporal.Duration.from(value);
|
|
26
|
+
return false;
|
|
27
|
+
} catch {
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
const TEMPORAL_DATE_TIME_IRIS = new Set([
|
|
32
|
+
"https://www.w3.org/ns/activitystreams#deleted",
|
|
33
|
+
"https://www.w3.org/ns/activitystreams#endTime",
|
|
34
|
+
"https://www.w3.org/ns/activitystreams#published",
|
|
35
|
+
"https://www.w3.org/ns/activitystreams#startTime",
|
|
36
|
+
"https://www.w3.org/ns/activitystreams#updated",
|
|
37
|
+
"http://purl.org/dc/terms/created",
|
|
38
|
+
"https://w3id.org/security#created"
|
|
39
|
+
]);
|
|
40
|
+
const TEMPORAL_DURATION_IRIS = new Set(["https://www.w3.org/ns/activitystreams#duration"]);
|
|
41
|
+
const QUESTION_CLOSED_IRI = "https://www.w3.org/ns/activitystreams#closed";
|
|
42
|
+
const XSD_DATE_TIME_IRI = "http://www.w3.org/2001/XMLSchema#dateTime";
|
|
43
|
+
function hasMalformedExpandedDateTimeLiteral(value) {
|
|
44
|
+
if (Array.isArray(value)) return value.some(hasMalformedExpandedDateTimeLiteral);
|
|
45
|
+
return isPlainObject(value) && "@value" in value && isMalformedDateTimeLiteral(value["@value"]);
|
|
46
|
+
}
|
|
47
|
+
function hasMalformedExpandedQuestionClosedLiteral(value) {
|
|
48
|
+
if (Array.isArray(value)) return value.some(hasMalformedExpandedQuestionClosedLiteral);
|
|
49
|
+
if (!isPlainObject(value) || !("@value" in value)) return false;
|
|
50
|
+
const literal = value["@value"];
|
|
51
|
+
if (typeof literal === "boolean") return false;
|
|
52
|
+
if (typeof literal !== "string") return false;
|
|
53
|
+
if (value["@type"] !== XSD_DATE_TIME_IRI) return false;
|
|
54
|
+
if (new Date(literal).toString() === "Invalid Date") return false;
|
|
55
|
+
return isMalformedDateTimeLiteral(literal);
|
|
56
|
+
}
|
|
57
|
+
function hasMalformedExpandedDurationLiteral(value) {
|
|
58
|
+
if (Array.isArray(value)) return value.some(hasMalformedExpandedDurationLiteral);
|
|
59
|
+
return isPlainObject(value) && "@value" in value && isMalformedDurationLiteral(value["@value"]);
|
|
60
|
+
}
|
|
61
|
+
function hasMalformedKnownTemporalLiteralInternal(value, visited) {
|
|
62
|
+
if (Array.isArray(value)) return value.some((item) => hasMalformedKnownTemporalLiteralInternal(item, visited));
|
|
63
|
+
if (!isPlainObject(value)) return false;
|
|
64
|
+
if (visited.has(value)) return false;
|
|
65
|
+
visited.add(value);
|
|
66
|
+
if ("@value" in value) return false;
|
|
67
|
+
for (const [key, child] of Object.entries(value)) {
|
|
68
|
+
if (TEMPORAL_DATE_TIME_IRIS.has(key)) {
|
|
69
|
+
if (hasMalformedExpandedDateTimeLiteral(child)) return true;
|
|
70
|
+
continue;
|
|
71
|
+
}
|
|
72
|
+
if (key === QUESTION_CLOSED_IRI) {
|
|
73
|
+
if (hasMalformedExpandedQuestionClosedLiteral(child)) return true;
|
|
74
|
+
continue;
|
|
75
|
+
}
|
|
76
|
+
if (TEMPORAL_DURATION_IRIS.has(key)) {
|
|
77
|
+
if (hasMalformedExpandedDurationLiteral(child)) return true;
|
|
78
|
+
continue;
|
|
79
|
+
}
|
|
80
|
+
if (hasMalformedKnownTemporalLiteralInternal(child, visited)) return true;
|
|
81
|
+
}
|
|
82
|
+
return false;
|
|
83
|
+
}
|
|
84
|
+
async function hasMalformedKnownTemporalLiteral(value, contextLoader) {
|
|
85
|
+
try {
|
|
86
|
+
return hasMalformedKnownTemporalLiteralInternal(await jsonld.expand(value, {
|
|
87
|
+
documentLoader: getNormalizationContextLoader(contextLoader),
|
|
88
|
+
keepFreeFloatingNodes: true
|
|
89
|
+
}), /* @__PURE__ */ new Set());
|
|
90
|
+
} catch {
|
|
91
|
+
return false;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
//#endregion
|
|
95
|
+
export { hasMalformedKnownTemporalLiteral as t };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "@js-temporal/polyfill";
|
|
2
2
|
import "urlpattern-polyfill";
|
|
3
3
|
globalThis.addEventListener = () => {};
|
|
4
|
-
import { a as mockDocumentLoader, t as test } from "../testing-
|
|
4
|
+
import { a as mockDocumentLoader, t as test } from "../testing-Dbq3x7rR.mjs";
|
|
5
5
|
import { t as assertEquals } from "../assert_equals-Ew3jOFa3.mjs";
|
|
6
6
|
import "../std__assert-2v7gYiZp.mjs";
|
|
7
7
|
//#region src/testing/docloader.test.ts
|
package/dist/testing/mod.d.mts
CHANGED
|
@@ -7406,6 +7406,42 @@ interface InboxMessage {
|
|
|
7406
7406
|
id: ReturnType<typeof crypto.randomUUID>;
|
|
7407
7407
|
baseUrl: string;
|
|
7408
7408
|
activity: unknown;
|
|
7409
|
+
/**
|
|
7410
|
+
* The normalized JSON-LD representation of a signed inbox activity that
|
|
7411
|
+
* Fedify already compacted successfully while accepting the request. Queue
|
|
7412
|
+
* workers can reuse this producer-side parse cache under stricter loader or
|
|
7413
|
+
* network constraints without changing the raw payload preserved for
|
|
7414
|
+
* forwarding.
|
|
7415
|
+
*
|
|
7416
|
+
* This may exist even when {@link ldSignatureVerified} is `false`, because
|
|
7417
|
+
* fallback-authenticated traffic and already-queued backlog items can still
|
|
7418
|
+
* depend on the cached normalized form to avoid re-fetching remote custom
|
|
7419
|
+
* contexts during worker processing.
|
|
7420
|
+
*
|
|
7421
|
+
* This is optional for backward compatibility with messages that were
|
|
7422
|
+
* queued by older Fedify versions or that were already in a queue before
|
|
7423
|
+
* upgrading.
|
|
7424
|
+
*
|
|
7425
|
+
* Fedify keeps this on the queued message itself instead of an external
|
|
7426
|
+
* sidecar because generic queue backends do not provide reliable lifecycle
|
|
7427
|
+
* guarantees for auxiliary storage across retries and redeliveries.
|
|
7428
|
+
*
|
|
7429
|
+
* @internal
|
|
7430
|
+
*/
|
|
7431
|
+
normalizedActivity?: unknown;
|
|
7432
|
+
/**
|
|
7433
|
+
* Whether the producer actually verified the Linked Data Signature before
|
|
7434
|
+
* queueing this message. This lets workers distinguish verified LDS replay
|
|
7435
|
+
* from other authenticated inbox traffic that merely happened to include a
|
|
7436
|
+
* signature block. This provenance marker is separate from the optional
|
|
7437
|
+
* normalizedActivity parse cache.
|
|
7438
|
+
*
|
|
7439
|
+
* `undefined` preserves backward compatibility with older queued messages
|
|
7440
|
+
* that predate this marker.
|
|
7441
|
+
*
|
|
7442
|
+
* @internal
|
|
7443
|
+
*/
|
|
7444
|
+
ldSignatureVerified?: boolean;
|
|
7409
7445
|
started: string;
|
|
7410
7446
|
attempt: number;
|
|
7411
7447
|
identifier: string | null;
|
|
@@ -8630,9 +8666,12 @@ interface InboxContext<TContextData> extends Context<TContextData> {
|
|
|
8630
8666
|
* Forwards a received activity to the recipients' inboxes. The forwarded
|
|
8631
8667
|
* activity will be signed in HTTP Signatures by the forwarder, but its
|
|
8632
8668
|
* payload will not be modified, i.e., Linked Data Signatures and Object
|
|
8633
|
-
* Integrity Proofs will not be added.
|
|
8634
|
-
*
|
|
8635
|
-
*
|
|
8669
|
+
* Integrity Proofs will not be added. Even when Fedify internally
|
|
8670
|
+
* normalizes a Linked Data Signature activity for parsing, this method still
|
|
8671
|
+
* forwards the original received payload so the sender's signatures/proofs
|
|
8672
|
+
* are preserved as-is. Therefore, if the activity is not signed (i.e., it
|
|
8673
|
+
* has neither Linked Data Signatures nor Object Integrity Proofs), the
|
|
8674
|
+
* recipient probably will not trust the activity.
|
|
8636
8675
|
* @param forwarder The forwarder's identifier or the forwarder's username
|
|
8637
8676
|
* or the forwarder's key pair(s).
|
|
8638
8677
|
* @param recipients The recipients of the activity.
|
|
@@ -8650,9 +8689,12 @@ interface InboxContext<TContextData> extends Context<TContextData> {
|
|
|
8650
8689
|
* Forwards a received activity to the recipients' inboxes. The forwarded
|
|
8651
8690
|
* activity will be signed in HTTP Signatures by the forwarder, but its
|
|
8652
8691
|
* payload will not be modified, i.e., Linked Data Signatures and Object
|
|
8653
|
-
* Integrity Proofs will not be added.
|
|
8654
|
-
*
|
|
8655
|
-
*
|
|
8692
|
+
* Integrity Proofs will not be added. Even when Fedify internally
|
|
8693
|
+
* normalizes a Linked Data Signature activity for parsing, this method still
|
|
8694
|
+
* forwards the original received payload so the sender's signatures/proofs
|
|
8695
|
+
* are preserved as-is. Therefore, if the activity is not signed (i.e., it
|
|
8696
|
+
* has neither Linked Data Signatures nor Object Integrity Proofs), the
|
|
8697
|
+
* recipient probably will not trust the activity.
|
|
8656
8698
|
* @param forwarder The forwarder's identifier or the forwarder's username.
|
|
8657
8699
|
* @param recipients In this case, it must be `"followers"`.
|
|
8658
8700
|
* @param options Options for forwarding the activity.
|
package/dist/testing/mod.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "@js-temporal/polyfill";
|
|
2
2
|
import "urlpattern-polyfill";
|
|
3
3
|
globalThis.addEventListener = () => {};
|
|
4
|
-
import { i as createRequestContext, n as testDefinitions, r as createInboxContext, t as test } from "../testing-
|
|
4
|
+
import { i as createRequestContext, n as testDefinitions, r as createInboxContext, t as test } from "../testing-Dbq3x7rR.mjs";
|
|
5
5
|
export { createInboxContext, createRequestContext, test, testDefinitions };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "@js-temporal/polyfill";
|
|
2
2
|
import "urlpattern-polyfill";
|
|
3
3
|
globalThis.addEventListener = () => {};
|
|
4
|
-
import { W as lookupWebFinger, ut as __require } from "./vocab-
|
|
5
|
-
import { i as RouterError, n as traverseCollection, t as lookupObject } from "./lookup-
|
|
4
|
+
import { W as lookupWebFinger, ut as __require } from "./vocab-BmWZ5Z8b.mjs";
|
|
5
|
+
import { i as RouterError, n as traverseCollection, t as lookupObject } from "./lookup-jTLErl5g.mjs";
|
|
6
6
|
import { configure, getConsoleSink, getLogger, reset } from "@logtape/logtape";
|
|
7
7
|
import { trace } from "@opentelemetry/api";
|
|
8
8
|
//#region src/testing/docloader.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const { Temporal } = require("@js-temporal/polyfill");
|
|
2
2
|
const { URLPattern } = require("urlpattern-polyfill");
|
|
3
|
-
require("./docloader-
|
|
3
|
+
require("./docloader-ojCZeNsS.cjs");
|
|
4
4
|
//#region src/compat/transformers.ts
|
|
5
5
|
const logger = (0, require("@logtape/logtape").getLogger)([
|
|
6
6
|
"fedify",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "@js-temporal/polyfill";
|
|
2
2
|
import "urlpattern-polyfill";
|
|
3
|
-
import { o as getUserAgent } from "./docloader-
|
|
3
|
+
import { o as getUserAgent } from "./docloader-CFM5B9fd.js";
|
|
4
4
|
import { getLogger } from "@logtape/logtape";
|
|
5
5
|
//#region src/nodeinfo/semver.ts
|
|
6
6
|
const MAX_LENGTH = 256;
|
|
@@ -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-ojCZeNsS.cjs");
|
|
4
4
|
let _logtape_logtape = require("@logtape/logtape");
|
|
5
5
|
//#region src/nodeinfo/semver.ts
|
|
6
6
|
const MAX_LENGTH = 256;
|
|
@@ -1,15 +1,15 @@
|
|
|
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, d as Group, lt as __exportAll, r as Application } from "../vocab-
|
|
5
|
-
import { t as test } from "../testing-
|
|
4
|
+
import { C as Person, E as Service, S as Organization, d as Group, lt as __exportAll, r as Application } from "../vocab-BmWZ5Z8b.mjs";
|
|
5
|
+
import { t as test } from "../testing-Dbq3x7rR.mjs";
|
|
6
6
|
import { t as assertEquals } from "../assert_equals-Ew3jOFa3.mjs";
|
|
7
7
|
import { n as assertStrictEquals } from "../std__assert-2v7gYiZp.mjs";
|
|
8
8
|
import { n as assertFalse, t as assertRejects } from "../assert_rejects-CJC9ThS-.mjs";
|
|
9
9
|
import { t as assertThrows } from "../assert_throws-BIL7gChy.mjs";
|
|
10
10
|
import { t as assert$1 } from "../assert-DikXweDx.mjs";
|
|
11
|
-
import { a as normalizeActorHandle, i as isActor, n as getActorHandle, r as getActorTypeName, t as getActorClassByTypeName } from "../actor-
|
|
12
|
-
import { t as esm_default } from "../esm-
|
|
11
|
+
import { a as normalizeActorHandle, i as isActor, n as getActorHandle, r as getActorTypeName, t as getActorClassByTypeName } from "../actor-DKEb3nb2.mjs";
|
|
12
|
+
import { t as esm_default } from "../esm-DpYRgHio.mjs";
|
|
13
13
|
//#region ../../node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/precondition/PreconditionFailure.js
|
|
14
14
|
var PreconditionFailure = class PreconditionFailure extends Error {
|
|
15
15
|
constructor(interruptExecution = false) {
|
package/dist/vocab/cjs.test.mjs
CHANGED
|
@@ -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-Dbq3x7rR.mjs";
|
|
5
5
|
import { createRequire } from "node:module";
|
|
6
6
|
import { strictEqual } from "node:assert";
|
|
7
7
|
//#region src/vocab/cjs.test.ts
|
|
@@ -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, i as Collection, v as Object$1 } from "../vocab-
|
|
5
|
-
import { n as traverseCollection, t as lookupObject } from "../lookup-
|
|
6
|
-
import { a as mockDocumentLoader, t as test } from "../testing-
|
|
4
|
+
import { C as Person, _ as Note, i as Collection, v as Object$1 } from "../vocab-BmWZ5Z8b.mjs";
|
|
5
|
+
import { n as traverseCollection, t as lookupObject } from "../lookup-jTLErl5g.mjs";
|
|
6
|
+
import { a as mockDocumentLoader, t as test } from "../testing-Dbq3x7rR.mjs";
|
|
7
7
|
import { t as assertEquals } from "../assert_equals-Ew3jOFa3.mjs";
|
|
8
8
|
import "../std__assert-2v7gYiZp.mjs";
|
|
9
9
|
import { t as assertRejects } from "../assert_rejects-CJC9ThS-.mjs";
|
|
10
10
|
import { t as assertInstanceOf } from "../assert_instance_of-C4Ri6VuN.mjs";
|
|
11
|
-
import { t as esm_default } from "../esm-
|
|
11
|
+
import { t as esm_default } from "../esm-DpYRgHio.mjs";
|
|
12
12
|
import { deepStrictEqual } from "node:assert";
|
|
13
13
|
//#region src/vocab/lookup.test.ts
|
|
14
14
|
test("lookupObject()", {
|
package/dist/vocab/mod.cjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
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_docloader = require("../docloader-
|
|
5
|
-
const require_actor = require("../actor-
|
|
6
|
-
const require_lookup = require("../lookup-
|
|
4
|
+
const require_docloader = require("../docloader-ojCZeNsS.cjs");
|
|
5
|
+
const require_actor = require("../actor-BxUB2vBw.cjs");
|
|
6
|
+
const require_lookup = require("../lookup-DrAw0WK4.cjs");
|
|
7
7
|
let _logtape_logtape = require("@logtape/logtape");
|
|
8
8
|
let _opentelemetry_api = require("@opentelemetry/api");
|
|
9
9
|
let es_toolkit = require("es-toolkit");
|
package/dist/vocab/mod.js
CHANGED
|
@@ -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, i as getDocumentLoader } from "../docloader-
|
|
4
|
-
import { $ as Person, A as Flag, B as Like, C as Dislike, D as Endpoints, E as EmojiReact, F as Image, G as Multikey, H as Listen, I as IntransitiveActivity, J as Offer, K as Note, L as Invite, M as Group, N as Hashtag, O as Event, P as Ignore, Q as Page, R as Join, S as DidService, T as Emoji, Tt as getTypeId, U as Mention, V as Link, W as Move, X as OrderedCollectionPage, Y as OrderedCollection, Z as Organization, _ as CollectionPage, _t as View, a as normalizeActorHandle, at as Reject, b as DataIntegrityProof, c as Add, ct as Service, d as Arrive, dt as TentativeReject, et as Place, f as Article, ft as Tombstone, g as Collection, gt as Video, h as ChatMessage, ht as Update, i as isActor, it as Read, j as Follow, k as Export, l as Announce, lt as Source, m as Block, mt as Undo, n as getActorHandle, nt as PropertyValue, o as Accept, ot as Relationship, p as Audio, pt as Travel, q as Object$1, r as getActorTypeName, rt as Question, s as Activity, st as Remove, t as getActorClassByTypeName, tt as Profile, u as Application, ut as TentativeAccept, v as Create, w as Document, x as Delete, y as CryptographicKey, z as Leave } from "../actor-
|
|
5
|
-
import { t as lookupWebFinger } from "../lookup-
|
|
3
|
+
import { d as name, f as version, i as getDocumentLoader } from "../docloader-CFM5B9fd.js";
|
|
4
|
+
import { $ as Person, A as Flag, B as Like, C as Dislike, D as Endpoints, E as EmojiReact, F as Image, G as Multikey, H as Listen, I as IntransitiveActivity, J as Offer, K as Note, L as Invite, M as Group, N as Hashtag, O as Event, P as Ignore, Q as Page, R as Join, S as DidService, T as Emoji, Tt as getTypeId, U as Mention, V as Link, W as Move, X as OrderedCollectionPage, Y as OrderedCollection, Z as Organization, _ as CollectionPage, _t as View, a as normalizeActorHandle, at as Reject, b as DataIntegrityProof, c as Add, ct as Service, d as Arrive, dt as TentativeReject, et as Place, f as Article, ft as Tombstone, g as Collection, gt as Video, h as ChatMessage, ht as Update, i as isActor, it as Read, j as Follow, k as Export, l as Announce, lt as Source, m as Block, mt as Undo, n as getActorHandle, nt as PropertyValue, o as Accept, ot as Relationship, p as Audio, pt as Travel, q as Object$1, r as getActorTypeName, rt as Question, s as Activity, st as Remove, t as getActorClassByTypeName, tt as Profile, u as Application, ut as TentativeAccept, v as Create, w as Document, x as Delete, y as CryptographicKey, z as Leave } from "../actor-BJj7NAV7.js";
|
|
5
|
+
import { t as lookupWebFinger } from "../lookup-avek91qK.js";
|
|
6
6
|
import { getLogger } from "@logtape/logtape";
|
|
7
7
|
import { SpanStatusCode, trace } from "@opentelemetry/api";
|
|
8
8
|
import { delay } from "es-toolkit";
|
package/dist/vocab/type.test.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "@js-temporal/polyfill";
|
|
2
2
|
import "urlpattern-polyfill";
|
|
3
3
|
globalThis.addEventListener = () => {};
|
|
4
|
-
import { C as Person, U as getTypeId } from "../vocab-
|
|
5
|
-
import { t as test } from "../testing-
|
|
4
|
+
import { C as Person, U as getTypeId } from "../vocab-BmWZ5Z8b.mjs";
|
|
5
|
+
import { t as test } from "../testing-Dbq3x7rR.mjs";
|
|
6
6
|
import { t as assertEquals } from "../assert_equals-Ew3jOFa3.mjs";
|
|
7
7
|
//#region src/vocab/type.test.ts
|
|
8
8
|
test("getTypeId()", () => {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Temporal } from "@js-temporal/polyfill";
|
|
2
2
|
import "urlpattern-polyfill";
|
|
3
3
|
globalThis.addEventListener = () => {};
|
|
4
|
-
import { A as LanguageString, C as Person, D as Source, L as decode, T as Question, _ as Note, f as Hashtag, h as Link, i as Collection, k as vocab_exports, n as Announce, o as Create, s as CryptographicKey, t as Activity, u as Follow, v as Object$1, w as Place, x as OrderedCollectionPage } from "../vocab-
|
|
5
|
-
import { a as mockDocumentLoader, t as test } from "../testing-
|
|
4
|
+
import { A as LanguageString, C as Person, D as Source, L as decode, T as Question, _ as Note, f as Hashtag, h as Link, i as Collection, k as vocab_exports, n as Announce, o as Create, s as CryptographicKey, t as Activity, u as Follow, v as Object$1, w as Place, x as OrderedCollectionPage } from "../vocab-BmWZ5Z8b.mjs";
|
|
5
|
+
import { a as mockDocumentLoader, t as test } from "../testing-Dbq3x7rR.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";
|
|
@@ -10,7 +10,7 @@ import { t as assertInstanceOf } from "../assert_instance_of-C4Ri6VuN.mjs";
|
|
|
10
10
|
import { t as assertNotEquals } from "../assert_not_equals--wG9hV7u.mjs";
|
|
11
11
|
import { t as assertThrows } from "../assert_throws-BIL7gChy.mjs";
|
|
12
12
|
import { t as assert } from "../assert-DikXweDx.mjs";
|
|
13
|
-
import { o as rsaPublicKey1, r as ed25519PublicKey } from "../keys-
|
|
13
|
+
import { o as rsaPublicKey1, r as ed25519PublicKey } from "../keys-CJPe6iTW.mjs";
|
|
14
14
|
import { pascalCase } from "es-toolkit";
|
|
15
15
|
import { parseLanguageTag } from "@phensley/language-tag";
|
|
16
16
|
import { Validator } from "@cfworker/json-schema";
|