@fedify/fedify 2.2.16 → 2.2.18-dev.2386
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-2WicIXl5.mjs → builder-CiKYvR0I.mjs} +2 -2
- package/dist/compat/transformers.test.mjs +1 -1
- package/dist/{deno-BCQztXLl.mjs → deno-CkabM5bf.mjs} +1 -1
- package/dist/{docloader-NG6Mmr-J.mjs → docloader-B4Hk3LSj.mjs} +2 -2
- package/dist/federation/builder.test.mjs +1 -1
- package/dist/federation/handler.test.mjs +5 -5
- package/dist/federation/idempotency.test.mjs +2 -2
- package/dist/federation/middleware.test.mjs +6 -6
- package/dist/federation/mod.cjs +1 -1
- package/dist/federation/mod.js +1 -1
- package/dist/federation/send.test.mjs +3 -3
- package/dist/federation/temporal.test.mjs +1 -1
- package/dist/federation/webfinger.test.mjs +1 -1
- package/dist/{http-B7mxZjxT.cjs → http-C_Qq0cNx.cjs} +103 -9
- package/dist/{http-DK5sOqk3.js → http-DP-vbG4o.js} +104 -10
- package/dist/{http-B72sZOJB.mjs → http-DovhI1VM.mjs} +2 -2
- package/dist/{key-DCQAjTMo.mjs → key-BtVvc9pe.mjs} +104 -10
- package/dist/{kv-cache-BatvhvQ8.js → kv-cache-D8yJIXRo.js} +1 -1
- package/dist/{kv-cache-DCIQW7aM.cjs → kv-cache-Ds_adaor.cjs} +1 -1
- package/dist/{ld-37J55dno.mjs → ld-1J9cdTp0.mjs} +2 -2
- package/dist/{middleware-O_yyvaOf.cjs → middleware-BWXhlsuq.cjs} +4 -4
- package/dist/{middleware-BZO3vnP1.cjs → middleware-B_M6lcay.cjs} +1 -1
- package/dist/{middleware-Cqza2chY.js → middleware-BrFMyQSp.js} +3 -3
- package/dist/{middleware-CPmKbXgW.mjs → middleware-DMkt5ShX.mjs} +1 -1
- package/dist/{middleware-DOTXcNS-.mjs → middleware-ruFPV2xR.mjs} +10 -10
- package/dist/mod.cjs +4 -4
- package/dist/mod.js +4 -4
- package/dist/nodeinfo/handler.test.mjs +1 -1
- package/dist/{owner-Bou1yabn.mjs → owner-CgurOfJ9.mjs} +2 -2
- package/dist/{proof-BdrKA26Y.js → proof-BJ332wO_.js} +1 -1
- package/dist/{proof-ZUtbM4a6.cjs → proof-C6uAR-Hj.cjs} +1 -1
- package/dist/{proof-BFSV3hJj.mjs → proof-Dn4nm7pr.mjs} +2 -2
- package/dist/{send-DwQAYND-.mjs → send-iVwnK504.mjs} +2 -2
- package/dist/sig/http.test.mjs +2 -2
- package/dist/sig/key.test.mjs +198 -3
- package/dist/sig/ld.test.mjs +2 -2
- 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/proof.test.mjs +1 -1
- package/dist/{temporal-BWuGBFaX.mjs → temporal-BZrzDMq2.mjs} +1 -1
- package/dist/utils/docloader.test.mjs +2 -2
- package/dist/utils/mod.cjs +1 -1
- package/dist/utils/mod.js +1 -1
- package/package.json +5 -5
package/dist/sig/key.test.mjs
CHANGED
|
@@ -6,11 +6,13 @@ import "../std__assert-BVFj8-_V.mjs";
|
|
|
6
6
|
import { t as assertRejects } from "../assert_rejects-B-qJtC9Z.mjs";
|
|
7
7
|
import { t as assert } from "../assert-BhQd8QHP.mjs";
|
|
8
8
|
import { t as assertThrows } from "../assert_throws-4NwKEy2q.mjs";
|
|
9
|
-
import {
|
|
9
|
+
import { t as assertStrictEquals } from "../assert_strict_equals-Dmjbg-bA.mjs";
|
|
10
|
+
import { a as generateCryptoKeyPair, i as fetchKeyDetailed, o as importJwk, r as fetchKey, s as validateCryptoKey, t as exportJwk } from "../key-BtVvc9pe.mjs";
|
|
10
11
|
import { c as rsaPublicKey3, i as rsaPrivateKey2, o as rsaPublicKey1, s as rsaPublicKey2, t as ed25519Multikey } from "../keys-BAK-tUlf.mjs";
|
|
12
|
+
import { _ as wrapContextLoaderForJsonLd } from "../ld-1J9cdTp0.mjs";
|
|
11
13
|
import { createTestTracerProvider, mockDocumentLoader, test } from "@fedify/fixture";
|
|
12
|
-
import { CryptographicKey, Multikey } from "@fedify/vocab";
|
|
13
|
-
import { FetchError } from "@fedify/vocab-runtime";
|
|
14
|
+
import { CryptographicKey, Multikey, Person } from "@fedify/vocab";
|
|
15
|
+
import { FetchError, UrlError, getDocumentLoader } from "@fedify/vocab-runtime";
|
|
14
16
|
//#region src/sig/key.test.ts
|
|
15
17
|
test("validateCryptoKey()", async () => {
|
|
16
18
|
const pkcs1v15 = await crypto.subtle.generateKey({
|
|
@@ -399,6 +401,199 @@ test("fetchKey() returns null for a malformed actor publicKey", async () => {
|
|
|
399
401
|
cached: true
|
|
400
402
|
});
|
|
401
403
|
});
|
|
404
|
+
for (const cls of [CryptographicKey, Multikey]) for (const location of [
|
|
405
|
+
"actor",
|
|
406
|
+
"key",
|
|
407
|
+
"owner"
|
|
408
|
+
]) test(`fetchKey() handles JSON-LD context failures in ${cls.name} ${location} documents`, async (t) => {
|
|
409
|
+
const actorId = new URL("https://example.com/context-actor");
|
|
410
|
+
const keyId = new URL(`${actorId.href}#key`);
|
|
411
|
+
const key = cls === CryptographicKey ? rsaPublicKey1.clone({
|
|
412
|
+
id: keyId,
|
|
413
|
+
owner: actorId
|
|
414
|
+
}) : ed25519Multikey.clone({
|
|
415
|
+
id: keyId,
|
|
416
|
+
controller: actorId
|
|
417
|
+
});
|
|
418
|
+
const actorDocument = await new Person({
|
|
419
|
+
id: actorId,
|
|
420
|
+
...key instanceof CryptographicKey ? { publicKeys: [key] } : { assertionMethods: [key] }
|
|
421
|
+
}).toJsonLd({ contextLoader: mockDocumentLoader });
|
|
422
|
+
const keyDocument = await key.toJsonLd({ contextLoader: mockDocumentLoader });
|
|
423
|
+
const contextUrl = `https://example.com/context/${cls.name}/${location}`;
|
|
424
|
+
const transportErrors = [
|
|
425
|
+
/* @__PURE__ */ new TypeError("fetch failed"),
|
|
426
|
+
/* @__PURE__ */ new TypeError("error reading a body from connection"),
|
|
427
|
+
globalThis.Object.assign(/* @__PURE__ */ new TypeError("The socket connection was closed unexpectedly."), { code: "ECONNRESET" }),
|
|
428
|
+
globalThis.Object.assign(/* @__PURE__ */ new TypeError("Network request failed"), { code: "ECONNRESET" }),
|
|
429
|
+
new TypeError("Network request failed", { cause: globalThis.Object.assign(/* @__PURE__ */ new Error("connection refused"), { code: "ECONNREFUSED" }) }),
|
|
430
|
+
new FetchError(contextUrl, "HTTP 503"),
|
|
431
|
+
new FetchError(contextUrl, "HTTP 503", new Response("unavailable", { status: 503 })),
|
|
432
|
+
new UrlError("DNS lookup failed", { reason: "dns" }),
|
|
433
|
+
globalThis.Object.assign(/* @__PURE__ */ new Error("request aborted"), { name: "AbortError" })
|
|
434
|
+
];
|
|
435
|
+
const programmingErrors = [
|
|
436
|
+
/* @__PURE__ */ new Error("loader bug"),
|
|
437
|
+
/* @__PURE__ */ new ReferenceError("loader bug"),
|
|
438
|
+
/* @__PURE__ */ new TypeError("loader bug"),
|
|
439
|
+
"loader bug",
|
|
440
|
+
null,
|
|
441
|
+
void 0
|
|
442
|
+
];
|
|
443
|
+
const cases = [
|
|
444
|
+
{ kind: "inline" },
|
|
445
|
+
{
|
|
446
|
+
kind: "url",
|
|
447
|
+
wrapped: false
|
|
448
|
+
},
|
|
449
|
+
{
|
|
450
|
+
kind: "url",
|
|
451
|
+
wrapped: true
|
|
452
|
+
},
|
|
453
|
+
{
|
|
454
|
+
kind: "wrapped",
|
|
455
|
+
error: /* @__PURE__ */ new TypeError("Invalid URL string.")
|
|
456
|
+
},
|
|
457
|
+
{
|
|
458
|
+
kind: "remote",
|
|
459
|
+
document: 123
|
|
460
|
+
},
|
|
461
|
+
{
|
|
462
|
+
kind: "remote",
|
|
463
|
+
document: "not JSON"
|
|
464
|
+
},
|
|
465
|
+
{
|
|
466
|
+
kind: "remote",
|
|
467
|
+
document: { "@context": contextUrl }
|
|
468
|
+
},
|
|
469
|
+
...transportErrors.map((error) => ({
|
|
470
|
+
kind: "transport",
|
|
471
|
+
error
|
|
472
|
+
})),
|
|
473
|
+
...programmingErrors.map((error) => ({
|
|
474
|
+
kind: "programming",
|
|
475
|
+
error
|
|
476
|
+
})),
|
|
477
|
+
...location === "key" ? [{
|
|
478
|
+
kind: "transport",
|
|
479
|
+
error: /* @__PURE__ */ new TypeError("fetch failed"),
|
|
480
|
+
fallback: true
|
|
481
|
+
}, {
|
|
482
|
+
kind: "programming",
|
|
483
|
+
error: /* @__PURE__ */ new ReferenceError("fallback bug"),
|
|
484
|
+
fallback: true
|
|
485
|
+
}] : []
|
|
486
|
+
];
|
|
487
|
+
for (const scenario of cases) {
|
|
488
|
+
const description = "error" in scenario ? scenario.error instanceof Error ? `${scenario.error.name}: ${scenario.error.message}` : String(scenario.error) : "document" in scenario ? JSON.stringify(scenario.document) : "invalid type mapping";
|
|
489
|
+
await t.step(`${scenario.kind}: ${description}${"fallback" in scenario ? " (fallback)" : ""}`, async () => {
|
|
490
|
+
const cache = {};
|
|
491
|
+
let fetchError = { error: /* @__PURE__ */ new Error("stale fetch error") };
|
|
492
|
+
let recovered = false;
|
|
493
|
+
let contextLoads = 0;
|
|
494
|
+
const options = {
|
|
495
|
+
documentLoader(resource) {
|
|
496
|
+
const document = structuredClone(resource === keyId.href && location !== "actor" ? keyDocument : actorDocument);
|
|
497
|
+
if (location === "actor" || location === "key" && resource === keyId.href || location === "owner" && resource === actorId.href) {
|
|
498
|
+
const context = scenario.kind === "inline" ? { broken: {
|
|
499
|
+
"@id": "https://example.com/ns#broken",
|
|
500
|
+
"@type": "not-an-absolute-iri"
|
|
501
|
+
} } : scenario.kind === "url" ? "http://[" : contextUrl;
|
|
502
|
+
document["@context"] = [document["@context"], context].flat();
|
|
503
|
+
}
|
|
504
|
+
return Promise.resolve({
|
|
505
|
+
contextUrl: null,
|
|
506
|
+
documentUrl: resource,
|
|
507
|
+
document
|
|
508
|
+
});
|
|
509
|
+
},
|
|
510
|
+
async contextLoader(resource) {
|
|
511
|
+
if (scenario.kind === "url" && resource === "http://[") {
|
|
512
|
+
const loader = getDocumentLoader();
|
|
513
|
+
return await (scenario.wrapped ? wrapContextLoaderForJsonLd(loader) : loader)(resource);
|
|
514
|
+
}
|
|
515
|
+
if (scenario.kind === "wrapped" && resource === contextUrl) return await wrapContextLoaderForJsonLd(() => Promise.reject(scenario.error))(resource);
|
|
516
|
+
if (resource !== contextUrl) return await mockDocumentLoader(resource);
|
|
517
|
+
contextLoads++;
|
|
518
|
+
if (!recovered && "error" in scenario && (!("fallback" in scenario) || contextLoads > 1)) throw scenario.error;
|
|
519
|
+
return {
|
|
520
|
+
contextUrl: null,
|
|
521
|
+
documentUrl: resource,
|
|
522
|
+
document: !recovered && "document" in scenario ? scenario.document : { "@context": {} }
|
|
523
|
+
};
|
|
524
|
+
},
|
|
525
|
+
keyCache: {
|
|
526
|
+
get: (id) => Promise.resolve(cache[id.href]),
|
|
527
|
+
set(id, value) {
|
|
528
|
+
cache[id.href] = value;
|
|
529
|
+
return Promise.resolve();
|
|
530
|
+
},
|
|
531
|
+
getFetchError: () => Promise.resolve(fetchError),
|
|
532
|
+
setFetchError(_id, error) {
|
|
533
|
+
fetchError = error ?? void 0;
|
|
534
|
+
return Promise.resolve();
|
|
535
|
+
}
|
|
536
|
+
}
|
|
537
|
+
};
|
|
538
|
+
const lookup = () => fetchKey(keyId, cls, options);
|
|
539
|
+
if (scenario.kind === "programming" && "error" in scenario) {
|
|
540
|
+
assertStrictEquals(await assertRejects(lookup), scenario.error);
|
|
541
|
+
assertEquals(cache, {});
|
|
542
|
+
assertStrictEquals(await assertRejects(() => fetchKeyDetailed(keyId, cls, options)), scenario.error);
|
|
543
|
+
assertEquals(cache, {});
|
|
544
|
+
return;
|
|
545
|
+
}
|
|
546
|
+
assertEquals(await lookup(), {
|
|
547
|
+
key: null,
|
|
548
|
+
cached: false
|
|
549
|
+
});
|
|
550
|
+
assertEquals(cache, { [keyId.href]: null });
|
|
551
|
+
const detailed = await fetchKeyDetailed(keyId, cls, options);
|
|
552
|
+
assertEquals(detailed.cached, true);
|
|
553
|
+
if (scenario.kind === "transport" || scenario.kind === "wrapped") {
|
|
554
|
+
assert(detailed.fetchError != null);
|
|
555
|
+
if (scenario.error instanceof FetchError && scenario.error.response != null) {
|
|
556
|
+
assert("status" in detailed.fetchError);
|
|
557
|
+
assertEquals(detailed.fetchError.status, 503);
|
|
558
|
+
assertEquals(await detailed.fetchError.response.text(), "unavailable");
|
|
559
|
+
} else {
|
|
560
|
+
assert("error" in detailed.fetchError);
|
|
561
|
+
assertStrictEquals(detailed.fetchError.error, scenario.error);
|
|
562
|
+
}
|
|
563
|
+
} else assertEquals(detailed.fetchError, void 0);
|
|
564
|
+
const previousLoads = contextLoads;
|
|
565
|
+
assertEquals(await lookup(), {
|
|
566
|
+
key: null,
|
|
567
|
+
cached: true
|
|
568
|
+
});
|
|
569
|
+
assertEquals(contextLoads, previousLoads);
|
|
570
|
+
delete cache[keyId.href];
|
|
571
|
+
fetchError = void 0;
|
|
572
|
+
const fresh = await fetchKeyDetailed(keyId, cls, options);
|
|
573
|
+
assertEquals(fresh.cached, false);
|
|
574
|
+
assertEquals(fresh.key, null);
|
|
575
|
+
if (scenario.kind === "transport" || scenario.kind === "wrapped") {
|
|
576
|
+
assert(fresh.fetchError != null);
|
|
577
|
+
if (scenario.error instanceof FetchError && scenario.error.response != null) {
|
|
578
|
+
assert("status" in fresh.fetchError);
|
|
579
|
+
assertEquals(fresh.fetchError.status, 503);
|
|
580
|
+
assertEquals(await fresh.fetchError.response.text(), "unavailable");
|
|
581
|
+
} else {
|
|
582
|
+
assert("error" in fresh.fetchError);
|
|
583
|
+
assertStrictEquals(fresh.fetchError.error, scenario.error);
|
|
584
|
+
}
|
|
585
|
+
} else assertEquals(fresh.fetchError, void 0);
|
|
586
|
+
if (scenario.kind === "transport") {
|
|
587
|
+
delete cache[keyId.href];
|
|
588
|
+
recovered = true;
|
|
589
|
+
const result = await lookup();
|
|
590
|
+
assertEquals(result.cached, false);
|
|
591
|
+
assertEquals(result.key?.id, keyId);
|
|
592
|
+
assert(result.key?.publicKey != null);
|
|
593
|
+
}
|
|
594
|
+
});
|
|
595
|
+
}
|
|
596
|
+
});
|
|
402
597
|
test("fetchKey() rejects a key whose owner does not link back", async () => {
|
|
403
598
|
const keyId = "https://attacker.example/key";
|
|
404
599
|
const keyDocument = await rsaPublicKey1.toJsonLd({ contextLoader: mockDocumentLoader });
|
package/dist/sig/ld.test.mjs
CHANGED
|
@@ -5,9 +5,9 @@ import { t as assertEquals } from "../assert_equals-Ew3jOFa3.mjs";
|
|
|
5
5
|
import { n as assertFalse, t as assertRejects } from "../assert_rejects-B-qJtC9Z.mjs";
|
|
6
6
|
import { n as assertInstanceOf, t as assert } from "../assert-BhQd8QHP.mjs";
|
|
7
7
|
import { t as assertThrows } from "../assert_throws-4NwKEy2q.mjs";
|
|
8
|
-
import { a as generateCryptoKeyPair } from "../key-
|
|
8
|
+
import { a as generateCryptoKeyPair } from "../key-BtVvc9pe.mjs";
|
|
9
9
|
import { a as rsaPrivateKey3, c as rsaPublicKey3, i as rsaPrivateKey2, n as ed25519PrivateKey, s as rsaPublicKey2, t as ed25519Multikey } from "../keys-BAK-tUlf.mjs";
|
|
10
|
-
import { a as compactJsonLd, f as isInvalidUrlTypeError, g as verifySignature, h as verifyJsonLd, i as attachSignature, n as UnsafeJsonLdError, o as createSignature, p as signJsonLd, s as detachSignature, u as hasSignatureLike } from "../ld-
|
|
10
|
+
import { a as compactJsonLd, f as isInvalidUrlTypeError, g as verifySignature, h as verifyJsonLd, i as attachSignature, n as UnsafeJsonLdError, o as createSignature, p as signJsonLd, s as detachSignature, u as hasSignatureLike } from "../ld-1J9cdTp0.mjs";
|
|
11
11
|
import { mockDocumentLoader, test } from "@fedify/fixture";
|
|
12
12
|
import { CryptographicKey } from "@fedify/vocab";
|
|
13
13
|
import { encodeBase64 } from "byte-encodings/base64";
|
package/dist/sig/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
|
-
const require_http = require("../http-
|
|
5
|
-
const require_proof = require("../proof-
|
|
4
|
+
const require_http = require("../http-C_Qq0cNx.cjs");
|
|
5
|
+
const require_proof = require("../proof-C6uAR-Hj.cjs");
|
|
6
6
|
exports.attachSignature = require_proof.attachSignature;
|
|
7
7
|
exports.createProof = require_proof.createProof;
|
|
8
8
|
exports.createSignature = require_proof.createSignature;
|
package/dist/sig/mod.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Temporal } from "@js-temporal/polyfill";
|
|
2
2
|
import { URLPattern } from "urlpattern-polyfill";
|
|
3
|
-
import { _ as validateAcceptSignature, a as verifyRequestDetailed, c as fetchKey, d as importJwk, g as parseAcceptSignature, h as fulfillAcceptSignature, i as verifyRequest, l as fetchKeyDetailed, m as formatAcceptSignature, o as exportJwk, r as signRequest, u as generateCryptoKeyPair } from "../http-
|
|
4
|
-
import { C as verifySignature, S as verifyJsonLd, _ as hasSignatureLike, a as verifyProof, b as signJsonLd, c as getKeyOwner, d as attachSignature, i as verifyObject, m as detachSignature, n as hasProofLike, p as createSignature, r as signObject, s as doesActorOwnKey, t as createProof } from "../proof-
|
|
3
|
+
import { _ as validateAcceptSignature, a as verifyRequestDetailed, c as fetchKey, d as importJwk, g as parseAcceptSignature, h as fulfillAcceptSignature, i as verifyRequest, l as fetchKeyDetailed, m as formatAcceptSignature, o as exportJwk, r as signRequest, u as generateCryptoKeyPair } from "../http-DP-vbG4o.js";
|
|
4
|
+
import { C as verifySignature, S as verifyJsonLd, _ as hasSignatureLike, a as verifyProof, b as signJsonLd, c as getKeyOwner, d as attachSignature, i as verifyObject, m as detachSignature, n as hasProofLike, p as createSignature, r as signObject, s as doesActorOwnKey, t as createProof } from "../proof-BJ332wO_.js";
|
|
5
5
|
export { attachSignature, createProof, createSignature, detachSignature, doesActorOwnKey, exportJwk, fetchKey, fetchKeyDetailed, formatAcceptSignature, fulfillAcceptSignature, generateCryptoKeyPair, getKeyOwner, hasProofLike, hasSignatureLike, importJwk, parseAcceptSignature, signJsonLd, signObject, signRequest, validateAcceptSignature, verifyJsonLd, verifyObject, verifyProof, verifyRequest, verifyRequestDetailed, verifySignature };
|
package/dist/sig/owner.test.mjs
CHANGED
|
@@ -6,7 +6,7 @@ import "../std__assert-BVFj8-_V.mjs";
|
|
|
6
6
|
import { n as assertFalse } from "../assert_rejects-B-qJtC9Z.mjs";
|
|
7
7
|
import { t as assert } from "../assert-BhQd8QHP.mjs";
|
|
8
8
|
import { o as rsaPublicKey1, s as rsaPublicKey2 } from "../keys-BAK-tUlf.mjs";
|
|
9
|
-
import { n as getKeyOwner, t as doesActorOwnKey } from "../owner-
|
|
9
|
+
import { n as getKeyOwner, t as doesActorOwnKey } from "../owner-CgurOfJ9.mjs";
|
|
10
10
|
import { createTestTracerProvider, mockDocumentLoader, test } from "@fedify/fixture";
|
|
11
11
|
import { Create, CryptographicKey, lookupObject } from "@fedify/vocab";
|
|
12
12
|
//#region src/sig/owner.test.ts
|
package/dist/sig/proof.test.mjs
CHANGED
|
@@ -7,7 +7,7 @@ import { n as assertFalse, t as assertRejects } from "../assert_rejects-B-qJtC9Z
|
|
|
7
7
|
import { n as assertInstanceOf, t as assert } from "../assert-BhQd8QHP.mjs";
|
|
8
8
|
import { i as rsaPrivateKey2, n as ed25519PrivateKey, r as ed25519PublicKey, s as rsaPublicKey2, t as ed25519Multikey } from "../keys-BAK-tUlf.mjs";
|
|
9
9
|
import { r as normalizeOutgoingActivityJsonLd } from "../outgoing-jsonld-amccRMrV.mjs";
|
|
10
|
-
import { a as verifyProof, i as verifyObject, n as hasProofLike, r as signObject, t as createProof } from "../proof-
|
|
10
|
+
import { a as verifyProof, i as verifyObject, n as hasProofLike, r as signObject, t as createProof } from "../proof-Dn4nm7pr.mjs";
|
|
11
11
|
import { mockDocumentLoader, test } from "@fedify/fixture";
|
|
12
12
|
import { Create, DataIntegrityProof, Document, Multikey, Note, PUBLIC_COLLECTION, Place } from "@fedify/vocab";
|
|
13
13
|
import { decodeMultibase, importMultibaseKey } from "@fedify/vocab-runtime";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Temporal } from "@js-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-1J9cdTp0.mjs";
|
|
5
5
|
import jsonld from "@fedify/vocab-runtime/jsonld";
|
|
6
6
|
//#region src/federation/temporal.ts
|
|
7
7
|
function isPlainObject(value) {
|
|
@@ -5,9 +5,9 @@ import { t as esm_default } from "../esm-DVILvP5e.mjs";
|
|
|
5
5
|
import { t as assertEquals } from "../assert_equals-Ew3jOFa3.mjs";
|
|
6
6
|
import "../std__assert-BVFj8-_V.mjs";
|
|
7
7
|
import { t as assertRejects } from "../assert_rejects-B-qJtC9Z.mjs";
|
|
8
|
-
import { l as verifyRequest } from "../http-
|
|
8
|
+
import { l as verifyRequest } from "../http-DovhI1VM.mjs";
|
|
9
9
|
import { i as rsaPrivateKey2 } from "../keys-BAK-tUlf.mjs";
|
|
10
|
-
import { t as getAuthenticatedDocumentLoader } from "../docloader-
|
|
10
|
+
import { t as getAuthenticatedDocumentLoader } from "../docloader-B4Hk3LSj.mjs";
|
|
11
11
|
import { mockDocumentLoader, test } from "@fedify/fixture";
|
|
12
12
|
import { FetchError, UrlError } from "@fedify/vocab-runtime";
|
|
13
13
|
import { configure, reset } from "@logtape/logtape";
|
package/dist/utils/mod.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
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_kv_cache = require("../kv-cache-
|
|
4
|
+
const require_kv_cache = require("../kv-cache-Ds_adaor.cjs");
|
|
5
5
|
exports.getAuthenticatedDocumentLoader = require_kv_cache.getAuthenticatedDocumentLoader;
|
|
6
6
|
exports.kvCache = require_kv_cache.kvCache;
|
package/dist/utils/mod.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { Temporal } from "@js-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-D8yJIXRo.js";
|
|
4
4
|
export { getAuthenticatedDocumentLoader, kvCache };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fedify/fedify",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.18-dev.2386+41abb5f5",
|
|
4
4
|
"description": "An ActivityPub server framework",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ActivityPub",
|
|
@@ -153,9 +153,9 @@
|
|
|
153
153
|
"uri-template-router": "^1.0.0",
|
|
154
154
|
"url-template": "^3.1.1",
|
|
155
155
|
"urlpattern-polyfill": "^10.1.0",
|
|
156
|
-
"@fedify/
|
|
157
|
-
"@fedify/vocab": "2.2.
|
|
158
|
-
"@fedify/
|
|
156
|
+
"@fedify/vocab": "2.2.18-dev.2386+41abb5f5",
|
|
157
|
+
"@fedify/vocab-runtime": "2.2.18-dev.2386+41abb5f5",
|
|
158
|
+
"@fedify/webfinger": "2.2.18-dev.2386+41abb5f5"
|
|
159
159
|
},
|
|
160
160
|
"devDependencies": {
|
|
161
161
|
"@std/assert": "npm:@jsr/std__assert@^0.226.0",
|
|
@@ -168,7 +168,7 @@
|
|
|
168
168
|
"typescript": "^6.0.0",
|
|
169
169
|
"wrangler": "^4.17.0",
|
|
170
170
|
"@fedify/fixture": "2.0.0",
|
|
171
|
-
"@fedify/vocab-tools": "^2.2.
|
|
171
|
+
"@fedify/vocab-tools": "^2.2.18-dev.2386+41abb5f5"
|
|
172
172
|
},
|
|
173
173
|
"scripts": {
|
|
174
174
|
"build:self": "tsdown",
|