@fedify/fedify 2.5.0-dev.2370 → 2.5.0-dev.2420
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-DzGfERAV.mjs → builder-Cwc3Eu59.mjs} +2 -2
- package/dist/compat/mod.d.cts +1 -1
- package/dist/compat/mod.d.ts +1 -1
- package/dist/compat/transformers.test.mjs +1 -1
- package/dist/{compound-proof-hnZ7MNwN.mjs → compound-proof-Dtwrhs1I.mjs} +2 -2
- package/dist/{context-C2-UDo2c.d.ts → context-2wLkQrjb.d.ts} +11 -0
- package/dist/{context-BjD_CTxh.d.cts → context-DPocjp1l.d.cts} +11 -0
- package/dist/{deno-CkkDV5gw.mjs → deno-D4J5fszd.mjs} +1 -1
- package/dist/{docloader-D6eQ0vA8.mjs → docloader-ChK1DQkj.mjs} +4 -2
- package/dist/federation/builder.test.mjs +1 -1
- package/dist/federation/compound-fanout.test.mjs +3 -3
- package/dist/federation/handler-compound-proof.test.mjs +5 -5
- package/dist/federation/handler.test.mjs +258 -6
- package/dist/federation/hashlink-media.test.mjs +2 -2
- package/dist/federation/idempotency.test.mjs +2 -2
- package/dist/federation/inbox-report.test.mjs +30 -5
- package/dist/federation/inbox.test.mjs +43 -0
- package/dist/federation/metrics.test.mjs +1 -1
- package/dist/federation/middleware.test.mjs +172 -10
- package/dist/federation/mod.cjs +1 -1
- package/dist/federation/mod.d.cts +2 -2
- package/dist/federation/mod.d.ts +2 -2
- package/dist/federation/mod.js +1 -1
- package/dist/federation/outgoing-proof.test.mjs +4 -5
- package/dist/federation/portable-actor.test.mjs +3 -3
- package/dist/federation/portable-chain.test.mjs +3 -3
- package/dist/federation/portable-collection.test.mjs +4 -4
- package/dist/federation/portable-delivery.test.mjs +2 -2
- package/dist/federation/portable-gateway-keys.test.mjs +4 -4
- package/dist/federation/portable-inbox.test.mjs +4 -4
- package/dist/federation/portable-parse-uri.test.mjs +1 -1
- package/dist/federation/portable-route-activity.test.mjs +2 -2
- package/dist/federation/portable.test.mjs +3 -3
- package/dist/federation/send.test.mjs +3 -3
- package/dist/federation/tasks/enqueue.test.mjs +1 -1
- package/dist/federation/tasks/tasks.test.mjs +2 -2
- package/dist/federation/temporal.test.mjs +1 -1
- package/dist/federation/webfinger.test.mjs +1 -1
- package/dist/{federation-BkIRrGXG.cjs → federation-DxQI9dSY.cjs} +125 -20
- package/dist/{http-DxljNiCC.mjs → http--kHQomKT.mjs} +4 -4
- package/dist/{http-C2gfnrKF.js → http-C8rIQ1pK.js} +110 -12
- package/dist/{http-CjpGhvxc.cjs → http-SBTDzPkh.cjs} +109 -11
- package/dist/inbox-BGD7K-Ra.mjs +188 -0
- package/dist/{kv-cache-DDwF4zee.mjs → kv-cache-B8LMKVe8.mjs} +1 -1
- package/dist/{kv-cache-nsVJF31j.js → kv-cache-DSUypZWS.js} +3 -1
- package/dist/{kv-cache-BVtotkZw.cjs → kv-cache-Dp_dDR1f.cjs} +3 -1
- package/dist/{key-8sZWp4lR.mjs → ld-BeBdBDAY.mjs} +760 -16
- package/dist/{metrics-DiQRjv6y.mjs → metrics-Dtb81JxK.mjs} +1 -1
- package/dist/{middleware-C_EdDn9c.js → middleware-DNjv5rBL.js} +125 -20
- package/dist/{middleware-BBnHLNpJ.mjs → middleware-DhI-75xh.mjs} +1 -1
- package/dist/{middleware-ClqRVObS.mjs → middleware-rQqAHzIo.mjs} +107 -180
- package/dist/{mod-BBPd4M_0.d.cts → mod-DKGoPoQC.d.cts} +1 -1
- package/dist/{mod-CUYBGKof.d.ts → mod-Dm-7RdhR.d.ts} +1 -1
- package/dist/mod.cjs +4 -4
- package/dist/mod.d.cts +2 -2
- package/dist/mod.d.ts +2 -2
- package/dist/mod.js +4 -4
- package/dist/nodeinfo/handler.test.mjs +1 -1
- package/dist/{owner-IiJfae6n.mjs → owner-u_-HQrgE.mjs} +3 -3
- package/dist/{portable-collection-BeS_vx1G.cjs → portable-collection-B-x4XwxP.cjs} +1 -1
- package/dist/{portable-collection-CUDbGQ5_.mjs → portable-collection-BKkTJQTd.mjs} +2 -2
- package/dist/{portable-collection-BtyE_2Rv.js → portable-collection-DReoGwZQ.js} +1 -1
- package/dist/{portable-key-ENr3Sc97.mjs → portable-key-Bkm6sXJB.mjs} +1 -1
- package/dist/{proof-CGtiU4Lz.mjs → proof-DOV4ZiAo.mjs} +3 -4
- package/dist/{send-CRYlnzg6.mjs → send-C_Fffu0I.mjs} +3 -3
- package/dist/sig/compound-proof-discovery.test.mjs +1 -1
- package/dist/sig/compound-proof-producer.test.mjs +1 -1
- package/dist/sig/compound-proof-verification.test.mjs +2 -2
- package/dist/sig/compound-proof.test.mjs +2 -2
- package/dist/sig/http.test.mjs +2 -2
- package/dist/sig/key.test.mjs +208 -3
- package/dist/sig/ld.test.mjs +1 -2
- package/dist/sig/mitra-receive-interop.test.mjs +4 -4
- package/dist/sig/mitra-send-interop.test.mjs +3 -3
- package/dist/sig/mod.cjs +2 -2
- package/dist/sig/mod.js +2 -2
- package/dist/sig/owner.test.mjs +1 -1
- package/dist/sig/portable-collection.test.mjs +1 -1
- package/dist/sig/portable-interop.test.mjs +3 -3
- package/dist/sig/portable-key.test.mjs +5 -6
- package/dist/sig/proof.test.mjs +3 -3
- package/dist/sig/tootik-request-interop.test.mjs +4 -4
- package/dist/sig/tootik-send-interop.test.mjs +3 -3
- package/dist/sig/verification.test.mjs +3 -3
- package/dist/{temporal-CDbdX_g_.mjs → temporal-BRgOZRRr.mjs} +1 -1
- package/dist/testing/kv.test.mjs +1 -1
- package/dist/testing/mod.d.mts +11 -0
- package/dist/utils/docloader.test.mjs +112 -37
- package/dist/utils/kv-cache.test.mjs +1 -1
- package/dist/utils/mod.cjs +1 -1
- package/dist/utils/mod.js +1 -1
- package/package.json +7 -7
- package/dist/ld-DXaIENwZ.mjs +0 -658
|
@@ -5,10 +5,10 @@ import { t as MemoryKvStore } from "../kv-DCHkaJ9-.mjs";
|
|
|
5
5
|
import { t as assertEquals } from "../assert_equals-Z6IcEbWU.mjs";
|
|
6
6
|
import "../std__assert-DvMDRPes.mjs";
|
|
7
7
|
import { t as assert } from "../assert-D1Eafmd_.mjs";
|
|
8
|
-
import { l as verifyPortableObjectProof } from "../proof-
|
|
9
|
-
import { p as verifyRequestDetailed } from "../http
|
|
10
|
-
import { o as createFederation } from "../middleware-
|
|
11
|
-
import { t as doesActorOwnKey } from "../owner-
|
|
8
|
+
import { l as verifyPortableObjectProof } from "../proof-DOV4ZiAo.mjs";
|
|
9
|
+
import { p as verifyRequestDetailed } from "../http--kHQomKT.mjs";
|
|
10
|
+
import { o as createFederation } from "../middleware-rQqAHzIo.mjs";
|
|
11
|
+
import { t as doesActorOwnKey } from "../owner-u_-HQrgE.mjs";
|
|
12
12
|
import { Follow, Person } from "@fedify/vocab";
|
|
13
13
|
import { mockDocumentLoader, test } from "@fedify/fixture";
|
|
14
14
|
import { encodeHex } from "byte-encodings/hex";
|
|
@@ -4,9 +4,9 @@ globalThis.addEventListener = () => {};
|
|
|
4
4
|
import { t as assertEquals } from "../assert_equals-Z6IcEbWU.mjs";
|
|
5
5
|
import "../std__assert-DvMDRPes.mjs";
|
|
6
6
|
import { t as assert } from "../assert-D1Eafmd_.mjs";
|
|
7
|
-
import { l as verifyPortableObjectProof } from "../proof-
|
|
8
|
-
import { p as verifyRequestDetailed } from "../http
|
|
9
|
-
import { t as doesActorOwnKey } from "../owner-
|
|
7
|
+
import { l as verifyPortableObjectProof } from "../proof-DOV4ZiAo.mjs";
|
|
8
|
+
import { p as verifyRequestDetailed } from "../http--kHQomKT.mjs";
|
|
9
|
+
import { t as doesActorOwnKey } from "../owner-u_-HQrgE.mjs";
|
|
10
10
|
import { Create } from "@fedify/vocab";
|
|
11
11
|
import { decodeMultibase, importDidKey } from "@fedify/vocab-runtime";
|
|
12
12
|
import { mockDocumentLoader, test } from "@fedify/fixture";
|
|
@@ -2,9 +2,9 @@ import "temporal-polyfill";
|
|
|
2
2
|
import "urlpattern-polyfill";
|
|
3
3
|
globalThis.addEventListener = () => {};
|
|
4
4
|
import { a as verificationObservation } from "../verification-Dpfcw8ml.mjs";
|
|
5
|
-
import { h as verifyJsonLd, p as signJsonLd } from "../ld-
|
|
6
|
-
import { c as verifyObject, o as signObject } from "../proof-
|
|
7
|
-
import { l as signRequest, p as verifyRequestDetailed } from "../http
|
|
5
|
+
import { h as verifyJsonLd, p as signJsonLd } from "../ld-BeBdBDAY.mjs";
|
|
6
|
+
import { c as verifyObject, o as signObject } from "../proof-DOV4ZiAo.mjs";
|
|
7
|
+
import { l as signRequest, p as verifyRequestDetailed } from "../http--kHQomKT.mjs";
|
|
8
8
|
import { i as rsaPrivateKey2, n as ed25519PrivateKey, o as rsaPublicKey1, s as rsaPublicKey2, t as ed25519Multikey } from "../keys-DIJNHW-Y.mjs";
|
|
9
9
|
import { Activity, Create, CryptographicKey, Multikey } from "@fedify/vocab";
|
|
10
10
|
import { FetchError } from "@fedify/vocab-runtime";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Temporal } from "temporal-polyfill";
|
|
2
2
|
import "urlpattern-polyfill";
|
|
3
3
|
globalThis.addEventListener = () => {};
|
|
4
|
-
import { c as getNormalizationContextLoader } from "./ld-
|
|
4
|
+
import { c as getNormalizationContextLoader } from "./ld-BeBdBDAY.mjs";
|
|
5
5
|
import jsonld from "@fedify/vocab-runtime/jsonld";
|
|
6
6
|
//#region src/federation/temporal.ts
|
|
7
7
|
function isPlainObject(value) {
|
package/dist/testing/kv.test.mjs
CHANGED
|
@@ -6,7 +6,7 @@ import { t as MemoryKvStore } from "../kv-DCHkaJ9-.mjs";
|
|
|
6
6
|
import { t as ManualClockKvStore } from "../kv-DBRWVx3Q.mjs";
|
|
7
7
|
import { n as baseOptions, o as stringSchema, t as MockQueue } from "../tasks-IG3pHfvZ.mjs";
|
|
8
8
|
import { t as assertEquals } from "../assert_equals-Z6IcEbWU.mjs";
|
|
9
|
-
import { o as createFederation } from "../middleware-
|
|
9
|
+
import { o as createFederation } from "../middleware-rQqAHzIo.mjs";
|
|
10
10
|
//#region src/testing/kv.test.ts
|
|
11
11
|
test("ManualClockKvStore keeps an entry at its exact expiration instant", async () => {
|
|
12
12
|
const kv = new ManualClockKvStore();
|
package/dist/testing/mod.d.mts
CHANGED
|
@@ -447,6 +447,17 @@ type InboxAuthentication = {
|
|
|
447
447
|
readonly detail?: InboxProofPolicyFailureReason;
|
|
448
448
|
} | {
|
|
449
449
|
readonly type: "invalidNonce";
|
|
450
|
+
} | {
|
|
451
|
+
/**
|
|
452
|
+
* The activity's ID does not have the same [FEP-fe34] origin as all
|
|
453
|
+
* of its actors.
|
|
454
|
+
*
|
|
455
|
+
* [FEP-fe34]: https://w3id.org/fep/fe34
|
|
456
|
+
* @since 2.5.0
|
|
457
|
+
*/
|
|
458
|
+
readonly type: "activityOriginMismatch";
|
|
459
|
+
readonly activityId: URL;
|
|
460
|
+
readonly actorIds: readonly URL[];
|
|
450
461
|
};
|
|
451
462
|
} | {
|
|
452
463
|
readonly status: "skipped";
|
|
@@ -5,9 +5,9 @@ import { t as esm_default } from "../esm-BHXXx4Wx.mjs";
|
|
|
5
5
|
import { t as assertEquals } from "../assert_equals-Z6IcEbWU.mjs";
|
|
6
6
|
import "../std__assert-DvMDRPes.mjs";
|
|
7
7
|
import { t as assertRejects } from "../assert_rejects-CTptdYck.mjs";
|
|
8
|
-
import { f as verifyRequest } from "../http
|
|
8
|
+
import { f as verifyRequest } from "../http--kHQomKT.mjs";
|
|
9
9
|
import { i as rsaPrivateKey2 } from "../keys-DIJNHW-Y.mjs";
|
|
10
|
-
import { t as getAuthenticatedDocumentLoader } from "../docloader-
|
|
10
|
+
import { t as getAuthenticatedDocumentLoader } from "../docloader-ChK1DQkj.mjs";
|
|
11
11
|
import { configure, reset } from "@logtape/logtape";
|
|
12
12
|
import { FetchError, UrlError } from "@fedify/vocab-runtime";
|
|
13
13
|
import { mockDocumentLoader, test } from "@fedify/fixture";
|
|
@@ -99,45 +99,50 @@ test("getAuthenticatedDocumentLoader() validates redirects", async (t) => {
|
|
|
99
99
|
});
|
|
100
100
|
esm_default.hardReset();
|
|
101
101
|
});
|
|
102
|
-
test("getAuthenticatedDocumentLoader() cancellation", {
|
|
103
|
-
sanitizeResources: false,
|
|
104
|
-
sanitizeOps: false
|
|
105
|
-
}, async (t) => {
|
|
102
|
+
test("getAuthenticatedDocumentLoader() cancellation", async (t) => {
|
|
106
103
|
esm_default.spyGlobal();
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
104
|
+
try {
|
|
105
|
+
await t.step("document loader cancellation", async () => {
|
|
106
|
+
let responseTimer;
|
|
107
|
+
try {
|
|
108
|
+
esm_default.get("https://example.com/slow-object", () => new Promise((resolve) => {
|
|
109
|
+
responseTimer = setTimeout(() => {
|
|
110
|
+
resolve({
|
|
111
|
+
status: 200,
|
|
112
|
+
headers: { "Content-Type": "application/activity+json" },
|
|
113
|
+
body: {
|
|
114
|
+
"@context": "https://www.w3.org/ns/activitystreams",
|
|
115
|
+
type: "Note",
|
|
116
|
+
content: "Slow response"
|
|
117
|
+
}
|
|
118
|
+
});
|
|
119
|
+
}, 1e3);
|
|
120
|
+
}));
|
|
121
|
+
const loader = getAuthenticatedDocumentLoader({
|
|
122
|
+
keyId: new URL("https://example.com/key2"),
|
|
123
|
+
privateKey: rsaPrivateKey2
|
|
118
124
|
});
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
125
|
+
const controller = new AbortController();
|
|
126
|
+
const promise = loader("https://example.com/slow-object", { signal: controller.signal });
|
|
127
|
+
controller.abort();
|
|
128
|
+
await assertRejects(() => promise, Error);
|
|
129
|
+
await assertRejects(() => loader("https://example.com/object", { signal: controller.signal }), Error);
|
|
130
|
+
} finally {
|
|
131
|
+
clearTimeout(responseTimer);
|
|
132
|
+
}
|
|
124
133
|
});
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
keyId: new URL("https://example.com/key2"),
|
|
134
|
-
privateKey: rsaPrivateKey2
|
|
134
|
+
await t.step("immediate cancellation", async () => {
|
|
135
|
+
const loader = getAuthenticatedDocumentLoader({
|
|
136
|
+
keyId: new URL("https://example.com/key2"),
|
|
137
|
+
privateKey: rsaPrivateKey2
|
|
138
|
+
});
|
|
139
|
+
const controller = new AbortController();
|
|
140
|
+
controller.abort();
|
|
141
|
+
await assertRejects(() => loader("https://example.com/object", { signal: controller.signal }), Error);
|
|
135
142
|
});
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
});
|
|
140
|
-
esm_default.hardReset();
|
|
143
|
+
} finally {
|
|
144
|
+
esm_default.hardReset();
|
|
145
|
+
}
|
|
141
146
|
});
|
|
142
147
|
test("getAuthenticatedDocumentLoader() bounds JSON after redirects", async () => {
|
|
143
148
|
esm_default.mockGlobal();
|
|
@@ -625,5 +630,75 @@ test("getAuthenticatedDocumentLoader() times out", async (t) => {
|
|
|
625
630
|
}
|
|
626
631
|
});
|
|
627
632
|
});
|
|
633
|
+
const unsupportedUrls = [
|
|
634
|
+
"ftp://example.com/collection",
|
|
635
|
+
"file:///collection",
|
|
636
|
+
`data:application/ld+json,${encodeURIComponent(JSON.stringify({ id: "https://example.com/data" }))}`
|
|
637
|
+
];
|
|
638
|
+
function isUnsupportedProtocolError(error, url) {
|
|
639
|
+
return error instanceof UrlError && error.message === `Unsupported protocol: ${new URL(url).protocol}` && error.reason === "disallowed";
|
|
640
|
+
}
|
|
641
|
+
async function withFetchStub(respond, callback) {
|
|
642
|
+
const fetched = [];
|
|
643
|
+
const originalFetch = globalThis.fetch;
|
|
644
|
+
globalThis.fetch = ((input, init) => {
|
|
645
|
+
const request = input instanceof Request && init == null ? input : new Request(input, init);
|
|
646
|
+
fetched.push(request);
|
|
647
|
+
return Promise.resolve(respond(request));
|
|
648
|
+
});
|
|
649
|
+
try {
|
|
650
|
+
await callback(fetched);
|
|
651
|
+
} finally {
|
|
652
|
+
globalThis.fetch = originalFetch;
|
|
653
|
+
}
|
|
654
|
+
}
|
|
655
|
+
for (const url of unsupportedUrls) {
|
|
656
|
+
const scheme = new URL(url).protocol;
|
|
657
|
+
const loader = getAuthenticatedDocumentLoader({
|
|
658
|
+
keyId: new URL("https://example.com/key2"),
|
|
659
|
+
privateKey: rsaPrivateKey2
|
|
660
|
+
}, { allowPrivateAddress: true });
|
|
661
|
+
test(`getAuthenticatedDocumentLoader() rejects ${scheme} URLs with private addresses allowed before fetching`, async () => {
|
|
662
|
+
await withFetchStub(() => Response.json({}), async (fetched) => {
|
|
663
|
+
await rejects(loader(url), (e) => isUnsupportedProtocolError(e, url));
|
|
664
|
+
deepStrictEqual(fetched, []);
|
|
665
|
+
});
|
|
666
|
+
});
|
|
667
|
+
test(`getAuthenticatedDocumentLoader() rejects redirects to ${scheme} URLs with private addresses allowed`, async () => {
|
|
668
|
+
const start = "https://example.com/redirect-to-unsupported";
|
|
669
|
+
await withFetchStub(() => Response.redirect(url, 302), async (fetched) => {
|
|
670
|
+
await rejects(loader(start), (e) => isUnsupportedProtocolError(e, url));
|
|
671
|
+
deepStrictEqual(fetched.map((r) => r.url), [start]);
|
|
672
|
+
});
|
|
673
|
+
});
|
|
674
|
+
for (const firstSpec of ["rfc9421", "draft-cavage-http-signatures-12"]) test(`getAuthenticatedDocumentLoader() rejects redirects to ${scheme} URLs after signature fallback from ${firstSpec}`, async () => {
|
|
675
|
+
const start = "https://example.com/fallback-redirect-to-unsupported";
|
|
676
|
+
const fallbackLoader = getAuthenticatedDocumentLoader({
|
|
677
|
+
keyId: new URL("https://example.com/key2"),
|
|
678
|
+
privateKey: rsaPrivateKey2
|
|
679
|
+
}, {
|
|
680
|
+
allowPrivateAddress: true,
|
|
681
|
+
specDeterminer: {
|
|
682
|
+
determineSpec: () => firstSpec,
|
|
683
|
+
rememberSpec: () => {}
|
|
684
|
+
}
|
|
685
|
+
});
|
|
686
|
+
await withFetchStub((request) => request.headers.has("Signature-Input") === (firstSpec === "rfc9421") ? new Response("Unauthorized", { status: 401 }) : Response.redirect(url, 302), async (fetched) => {
|
|
687
|
+
await rejects(fallbackLoader(start), (e) => isUnsupportedProtocolError(e, url));
|
|
688
|
+
deepStrictEqual(fetched.map((r) => r.url), [start, start]);
|
|
689
|
+
deepStrictEqual(fetched.map((r) => r.headers.has("Signature-Input")), [firstSpec === "rfc9421", firstSpec !== "rfc9421"]);
|
|
690
|
+
});
|
|
691
|
+
});
|
|
692
|
+
for (const html of [false, true]) test(`getAuthenticatedDocumentLoader() rejects ${html ? "HTML" : "Link header"} alternates to ${scheme} URLs with private addresses allowed`, async () => {
|
|
693
|
+
const start = "https://example.com/alternate-to-unsupported";
|
|
694
|
+
await withFetchStub(() => html ? new Response(`<link rel="alternate" type="application/activity+json" href="${url}">`, { headers: { "Content-Type": "text/html" } }) : new Response("", { headers: {
|
|
695
|
+
"Content-Type": "text/plain",
|
|
696
|
+
Link: `<${url}>; rel="alternate"; type="application/activity+json"`
|
|
697
|
+
} }), async (fetched) => {
|
|
698
|
+
await rejects(loader(start), (e) => isUnsupportedProtocolError(e, url));
|
|
699
|
+
deepStrictEqual(fetched.map((r) => r.url), [start]);
|
|
700
|
+
});
|
|
701
|
+
});
|
|
702
|
+
}
|
|
628
703
|
//#endregion
|
|
629
704
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Temporal } from "temporal-polyfill";
|
|
2
2
|
import { URLPattern } from "urlpattern-polyfill";
|
|
3
3
|
globalThis.addEventListener = () => {};
|
|
4
|
-
import { n as kvCache, t as MockKvStore } from "../kv-cache-
|
|
4
|
+
import { n as kvCache, t as MockKvStore } from "../kv-cache-B8LMKVe8.mjs";
|
|
5
5
|
import { preloadedContexts } from "@fedify/vocab-runtime";
|
|
6
6
|
import { deepStrictEqual, throws } from "node:assert";
|
|
7
7
|
import { createTestMeterProvider, mockDocumentLoader, test } from "@fedify/fixture";
|
package/dist/utils/mod.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const { URLPattern } = require("urlpattern-polyfill");
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const require_kv_cache = require("../kv-cache-
|
|
3
|
+
const require_kv_cache = require("../kv-cache-Dp_dDR1f.cjs");
|
|
4
4
|
exports.getAuthenticatedDocumentLoader = require_kv_cache.getAuthenticatedDocumentLoader;
|
|
5
5
|
exports.kvCache = require_kv_cache.kvCache;
|
package/dist/utils/mod.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { Temporal } from "temporal-polyfill";
|
|
2
2
|
import { URLPattern } from "urlpattern-polyfill";
|
|
3
|
-
import { n as getAuthenticatedDocumentLoader, t as kvCache } from "../kv-cache-
|
|
3
|
+
import { n as getAuthenticatedDocumentLoader, t as kvCache } from "../kv-cache-DSUypZWS.js";
|
|
4
4
|
export { getAuthenticatedDocumentLoader, kvCache };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fedify/fedify",
|
|
3
|
-
"version": "2.5.0-dev.
|
|
3
|
+
"version": "2.5.0-dev.2420+4db1db92",
|
|
4
4
|
"description": "An ActivityPub server framework",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ActivityPub",
|
|
@@ -151,10 +151,10 @@
|
|
|
151
151
|
"structured-field-values": "^2.0.4",
|
|
152
152
|
"temporal-polyfill": "^1.0.1",
|
|
153
153
|
"urlpattern-polyfill": "^10.1.0",
|
|
154
|
-
"@fedify/uri-template": "2.5.0-dev.
|
|
155
|
-
"@fedify/vocab-runtime": "2.5.0-dev.
|
|
156
|
-
"@fedify/
|
|
157
|
-
"@fedify/
|
|
154
|
+
"@fedify/uri-template": "2.5.0-dev.2420+4db1db92",
|
|
155
|
+
"@fedify/vocab-runtime": "2.5.0-dev.2420+4db1db92",
|
|
156
|
+
"@fedify/vocab": "2.5.0-dev.2420+4db1db92",
|
|
157
|
+
"@fedify/webfinger": "2.5.0-dev.2420+4db1db92"
|
|
158
158
|
},
|
|
159
159
|
"devDependencies": {
|
|
160
160
|
"@std/assert": "npm:@jsr/std__assert@^0.226.0",
|
|
@@ -166,8 +166,8 @@
|
|
|
166
166
|
"tsx": "^4.21.0",
|
|
167
167
|
"typescript": "^6.0.0",
|
|
168
168
|
"wrangler": "^4.17.0",
|
|
169
|
-
"@fedify/
|
|
170
|
-
"@fedify/
|
|
169
|
+
"@fedify/fixture": "2.0.0",
|
|
170
|
+
"@fedify/vocab-tools": "^2.5.0-dev.2420+4db1db92"
|
|
171
171
|
},
|
|
172
172
|
"scripts": {
|
|
173
173
|
"build:self": "tsdown",
|