@fedify/fedify 2.3.0-dev.1069 → 2.3.0-dev.1079
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-DQ2zYTeA.mjs → builder-DqT-OPZ8.mjs} +4 -4
- package/dist/{chunk-QSgtlS85.mjs → chunk-DNRtMIoB.mjs} +1 -1
- package/dist/compat/outgoing-jsonld.test.mjs +2 -2
- package/dist/compat/public-audience.test.mjs +2 -2
- package/dist/compat/transformers.test.mjs +2 -2
- package/dist/{context-7Azky82W.mjs → context-BAE7AKLA.mjs} +61 -3
- package/dist/{deno-CFXqOz6w.mjs → deno-BxqkYxIf.mjs} +1 -1
- package/dist/{docloader-QNtAtTZF.mjs → docloader-vsZP01ww.mjs} +3 -3
- package/dist/{esm-DhnRLoG9.mjs → esm-sdtqOUPu.mjs} +5 -7
- package/dist/{execAsync-eck5rbtb.mjs → execAsync-DCBrgFiV.mjs} +2 -2
- package/dist/federation/builder.test.mjs +3 -3
- package/dist/federation/handler.test.mjs +4 -4
- package/dist/federation/idempotency.test.mjs +3 -3
- package/dist/federation/inbox.test.mjs +1 -1
- package/dist/federation/keycache.test.mjs +1 -1
- package/dist/federation/middleware.test.mjs +10 -10
- package/dist/federation/mod.cjs +1 -1
- package/dist/federation/mod.js +1 -1
- package/dist/federation/mq.test.mjs +1 -1
- package/dist/federation/negotiation.test.mjs +1 -1
- package/dist/federation/router.test.mjs +1 -1
- package/dist/federation/send.test.mjs +133 -139
- package/dist/federation/webfinger.test.mjs +3 -3
- package/dist/{getMachineId-bsd-DqZ4QRFp.mjs → getMachineId-bsd-etIyxDet.mjs} +3 -3
- package/dist/{getMachineId-darwin-DMbbW3m7.mjs → getMachineId-darwin-D23zTf4g.mjs} +3 -3
- package/dist/{getMachineId-linux-lyeD2ug3.mjs → getMachineId-linux-ObI47Hql.mjs} +2 -2
- package/dist/{getMachineId-unsupported-JuKr57jY.mjs → getMachineId-unsupported-Ddu-PFeh.mjs} +2 -2
- package/dist/{getMachineId-win-Dxyf5pJq.mjs → getMachineId-win-Dpap6v5i.mjs} +3 -3
- package/dist/{http-QHJGzUe8.mjs → http-DM4ZAFCe.mjs} +3 -3
- package/dist/{http-e1wtIlFo.cjs → http-DQ25_ruv.cjs} +1 -1
- package/dist/{http-D2EDlTr2.js → http-b__OS_rJ.js} +1 -1
- package/dist/{key-CpAxygvh.mjs → key-BNp_b9oE.mjs} +2 -2
- package/dist/{kv-cache-KLjvIlKt.js → kv-cache-D5vjOi5y.js} +1 -1
- package/dist/{kv-cache-B3GfB70S.cjs → kv-cache-DzctboPD.cjs} +1 -1
- package/dist/{ld-Ce_vkKjG.mjs → ld-L9w529xq.mjs} +3 -3
- package/dist/{middleware-DOLrvK_b.cjs → middleware-CMF242Rg.cjs} +56 -35
- package/dist/{middleware-DsGmXfXz.mjs → middleware-CTdNwf_s.mjs} +23 -15
- package/dist/{middleware-BJMPv7_l.mjs → middleware-CpCSD43m.mjs} +1 -1
- package/dist/{middleware-De241etq.js → middleware-DZNHpEbh.js} +40 -3
- package/dist/mod.cjs +4 -4
- package/dist/mod.js +4 -4
- package/dist/{negotiation-VnHNB0Q5.mjs → negotiation-DDstyBvc.mjs} +29 -0
- package/dist/nodeinfo/client.test.mjs +2 -2
- package/dist/nodeinfo/handler.test.mjs +2 -2
- package/dist/otel/exporter.test.mjs +2 -2
- package/dist/{outgoing-jsonld-Bi7n-dEy.mjs → outgoing-jsonld-BgFLCJQ_.mjs} +2 -2
- package/dist/{owner-DmgzyItA.mjs → owner-C30LGgMz.mjs} +2 -2
- package/dist/{proof-C3q2IhUr.mjs → proof-BjToRsXF.mjs} +5 -5
- package/dist/{proof-DLDsFYfD.js → proof-CO1qAbN8.js} +1 -1
- package/dist/{proof-BU1TpFYI.cjs → proof-zrLeLWgt.cjs} +3 -3
- package/dist/{send-CTi2iPXp.mjs → send-DzbMznU6.mjs} +3 -3
- package/dist/sig/http.test.mjs +22 -27
- package/dist/sig/key.test.mjs +2 -2
- package/dist/sig/ld.test.mjs +3 -3
- package/dist/sig/mod.cjs +2 -2
- package/dist/sig/mod.js +2 -2
- package/dist/sig/owner.test.mjs +2 -2
- package/dist/sig/proof.test.mjs +3 -3
- package/dist/testing/mod.d.mts +6 -1
- package/dist/testing/mod.mjs +1 -2
- package/dist/utils/docloader.test.mjs +3 -3
- package/dist/utils/kv-cache.test.mjs +2 -2
- package/dist/utils/mod.cjs +1 -1
- package/dist/utils/mod.js +1 -1
- package/dist/vocab/cjs.test.mjs +1 -1
- package/package.json +14 -14
- package/dist/middleware-CibncbiT.cjs +0 -4
- package/dist/{client-CIiz1WX7.mjs → client-B_A6mfn3.mjs} +1 -1
- package/dist/{kv-cache-Bmv7tUzz.mjs → kv-cache-EaVpV2xQ.mjs} +1 -1
- package/dist/{public-audience-PVTwU_Ex.mjs → public-audience-N3pyOx2p.mjs} +1 -1
- /package/dist/{router-CrMLXoOr.mjs → router-BT_F5748.mjs} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const { Temporal } = require("@js-temporal/polyfill");
|
|
2
2
|
const { URLPattern } = require("urlpattern-polyfill");
|
|
3
3
|
const require_chunk = require("./chunk-DDcVe30Y.cjs");
|
|
4
|
-
const require_http = require("./http-
|
|
4
|
+
const require_http = require("./http-DQ25_ruv.cjs");
|
|
5
5
|
let _logtape_logtape = require("@logtape/logtape");
|
|
6
6
|
let _fedify_vocab = require("@fedify/vocab");
|
|
7
7
|
let _opentelemetry_api = require("@opentelemetry/api");
|
|
@@ -9,9 +9,9 @@ let byte_encodings_hex = require("byte-encodings/hex");
|
|
|
9
9
|
let _fedify_vocab_runtime = require("@fedify/vocab-runtime");
|
|
10
10
|
let byte_encodings_base64 = require("byte-encodings/base64");
|
|
11
11
|
let _fedify_vocab_runtime_jsonld = require("@fedify/vocab-runtime/jsonld");
|
|
12
|
-
_fedify_vocab_runtime_jsonld = require_chunk.__toESM(_fedify_vocab_runtime_jsonld);
|
|
12
|
+
_fedify_vocab_runtime_jsonld = require_chunk.__toESM(_fedify_vocab_runtime_jsonld, 1);
|
|
13
13
|
let json_canon = require("json-canon");
|
|
14
|
-
json_canon = require_chunk.__toESM(json_canon);
|
|
14
|
+
json_canon = require_chunk.__toESM(json_canon, 1);
|
|
15
15
|
//#region src/sig/ld.ts
|
|
16
16
|
const logger$3 = (0, _logtape_logtape.getLogger)([
|
|
17
17
|
"fedify",
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import "@js-temporal/polyfill";
|
|
2
2
|
import "urlpattern-polyfill";
|
|
3
3
|
globalThis.addEventListener = () => {};
|
|
4
|
-
import { n as version, t as name } from "./deno-
|
|
5
|
-
import { n as doubleKnock } from "./http-
|
|
6
|
-
import { SpanKind, SpanStatusCode, metrics, trace } from "@opentelemetry/api";
|
|
4
|
+
import { n as version, t as name } from "./deno-BxqkYxIf.mjs";
|
|
5
|
+
import { n as doubleKnock } from "./http-DM4ZAFCe.mjs";
|
|
7
6
|
import { getLogger } from "@logtape/logtape";
|
|
7
|
+
import { SpanKind, SpanStatusCode, metrics, trace } from "@opentelemetry/api";
|
|
8
8
|
//#region src/federation/metrics.ts
|
|
9
9
|
var FederationMetrics = class {
|
|
10
10
|
deliverySent;
|
package/dist/sig/http.test.mjs
CHANGED
|
@@ -6,9 +6,9 @@ import { i as assertExists, t as assertStringIncludes } from "../std__assert-CRD
|
|
|
6
6
|
import { n as assertFalse, t as assertRejects } from "../assert_rejects-B-qJtC9Z.mjs";
|
|
7
7
|
import { t as assertThrows } from "../assert_throws-4NwKEy2q.mjs";
|
|
8
8
|
import { t as assert } from "../assert-DikXweDx.mjs";
|
|
9
|
-
import { t as esm_default } from "../esm-
|
|
10
|
-
import { t as exportJwk } from "../key-
|
|
11
|
-
import { a as parseRfc9421Signature, c as timingSafeEqual, i as formatRfc9421SignatureParameters, l as verifyRequest, n as doubleKnock, o as parseRfc9421SignatureInput, r as formatRfc9421Signature, s as signRequest, t as createRfc9421SignatureBase, u as verifyRequestDetailed } from "../http-
|
|
9
|
+
import { t as esm_default } from "../esm-sdtqOUPu.mjs";
|
|
10
|
+
import { t as exportJwk } from "../key-BNp_b9oE.mjs";
|
|
11
|
+
import { a as parseRfc9421Signature, c as timingSafeEqual, i as formatRfc9421SignatureParameters, l as verifyRequest, n as doubleKnock, o as parseRfc9421SignatureInput, r as formatRfc9421Signature, s as signRequest, t as createRfc9421SignatureBase, u as verifyRequestDetailed } from "../http-DM4ZAFCe.mjs";
|
|
12
12
|
import { i as rsaPrivateKey2, l as rsaPublicKey5, o as rsaPublicKey1, s as rsaPublicKey2 } from "../keys-C3kae-6B.mjs";
|
|
13
13
|
import { createTestTracerProvider, mockDocumentLoader, test } from "@fedify/fixture";
|
|
14
14
|
import { FetchError, exportSpki } from "@fedify/vocab-runtime";
|
|
@@ -335,15 +335,12 @@ test("createRfc9421SignatureBase()", () => {
|
|
|
335
335
|
].join("\n"));
|
|
336
336
|
});
|
|
337
337
|
test("formatRfc9421Signature()", () => {
|
|
338
|
-
const
|
|
338
|
+
const [signatureInput, signatureHeader] = formatRfc9421Signature(new Uint8Array([
|
|
339
339
|
1,
|
|
340
340
|
2,
|
|
341
341
|
3,
|
|
342
342
|
4
|
|
343
|
-
])
|
|
344
|
-
const keyId = new URL("https://example.com/key");
|
|
345
|
-
const algorithm = "rsa-v1_5-sha256";
|
|
346
|
-
const [signatureInput, signatureHeader] = formatRfc9421Signature(signature, [
|
|
343
|
+
]), [
|
|
347
344
|
{
|
|
348
345
|
"value": "@method",
|
|
349
346
|
params: {}
|
|
@@ -357,8 +354,8 @@ test("formatRfc9421Signature()", () => {
|
|
|
357
354
|
params: {}
|
|
358
355
|
}
|
|
359
356
|
], formatRfc9421SignatureParameters({
|
|
360
|
-
algorithm,
|
|
361
|
-
keyId,
|
|
357
|
+
algorithm: "rsa-v1_5-sha256",
|
|
358
|
+
keyId: new URL("https://example.com/key"),
|
|
362
359
|
created: 1709626184
|
|
363
360
|
}));
|
|
364
361
|
assertEquals(signatureInput, `sig1=("@method" "@target-uri" "host");alg="rsa-v1_5-sha256";keyid="https://example.com/key";created=1709626184`);
|
|
@@ -855,12 +852,6 @@ test("doubleKnock() function with specDeterminer choosing draft-cavage first", a
|
|
|
855
852
|
else if (req.headers.has("Signature")) firstSpec = "draft-cavage";
|
|
856
853
|
return new Response("", { status: 202 });
|
|
857
854
|
});
|
|
858
|
-
const specDeterminer = {
|
|
859
|
-
determineSpec(_origin) {
|
|
860
|
-
return "draft-cavage-http-signatures-12";
|
|
861
|
-
},
|
|
862
|
-
rememberSpec(_origin, _spec) {}
|
|
863
|
-
};
|
|
864
855
|
assertEquals((await doubleKnock(new Request("https://example.com/inbox-accepts-any", {
|
|
865
856
|
method: "POST",
|
|
866
857
|
body: "Test message with draft-cavage preference",
|
|
@@ -868,7 +859,12 @@ test("doubleKnock() function with specDeterminer choosing draft-cavage first", a
|
|
|
868
859
|
}), {
|
|
869
860
|
keyId: rsaPublicKey2.id,
|
|
870
861
|
privateKey: rsaPrivateKey2
|
|
871
|
-
}, { specDeterminer
|
|
862
|
+
}, { specDeterminer: {
|
|
863
|
+
determineSpec(_origin) {
|
|
864
|
+
return "draft-cavage-http-signatures-12";
|
|
865
|
+
},
|
|
866
|
+
rememberSpec(_origin, _spec) {}
|
|
867
|
+
} })).status, 202, "Response status should be 202 Accepted");
|
|
872
868
|
assertEquals(requestCount, 1, "Only one request should have been made");
|
|
873
869
|
assertEquals(firstSpec, "draft-cavage", "First attempt should use draft-cavage");
|
|
874
870
|
esm_default.hardReset();
|
|
@@ -990,15 +986,6 @@ test("doubleKnock() async specDeterminer test", async () => {
|
|
|
990
986
|
else if (req.headers.has("Signature")) specUsed = "draft-cavage-http-signatures-12";
|
|
991
987
|
return new Response("", { status: 202 });
|
|
992
988
|
});
|
|
993
|
-
const specDeterminer = {
|
|
994
|
-
async determineSpec(_origin) {
|
|
995
|
-
await new Promise((resolve) => setTimeout(resolve, 10));
|
|
996
|
-
return "draft-cavage-http-signatures-12";
|
|
997
|
-
},
|
|
998
|
-
async rememberSpec(_origin, _spec) {
|
|
999
|
-
await new Promise((resolve) => setTimeout(resolve, 10));
|
|
1000
|
-
}
|
|
1001
|
-
};
|
|
1002
989
|
assertEquals((await doubleKnock(new Request("https://example.com/inbox-async-determiner", {
|
|
1003
990
|
method: "POST",
|
|
1004
991
|
body: "Test message with async spec determiner",
|
|
@@ -1006,7 +993,15 @@ test("doubleKnock() async specDeterminer test", async () => {
|
|
|
1006
993
|
}), {
|
|
1007
994
|
keyId: rsaPublicKey2.id,
|
|
1008
995
|
privateKey: rsaPrivateKey2
|
|
1009
|
-
}, { specDeterminer
|
|
996
|
+
}, { specDeterminer: {
|
|
997
|
+
async determineSpec(_origin) {
|
|
998
|
+
await new Promise((resolve) => setTimeout(resolve, 10));
|
|
999
|
+
return "draft-cavage-http-signatures-12";
|
|
1000
|
+
},
|
|
1001
|
+
async rememberSpec(_origin, _spec) {
|
|
1002
|
+
await new Promise((resolve) => setTimeout(resolve, 10));
|
|
1003
|
+
}
|
|
1004
|
+
} })).status, 202, "Response status should be 202 Accepted");
|
|
1010
1005
|
assertEquals(requestCount, 1, "Only one request should have been made");
|
|
1011
1006
|
assertEquals(specUsed, "draft-cavage-http-signatures-12", "Should use spec from async determiner");
|
|
1012
1007
|
esm_default.hardReset();
|
package/dist/sig/key.test.mjs
CHANGED
|
@@ -5,10 +5,10 @@ import { t as assertEquals } from "../assert_equals-Ew3jOFa3.mjs";
|
|
|
5
5
|
import "../std__assert-CRDpx_HF.mjs";
|
|
6
6
|
import { t as assertRejects } from "../assert_rejects-B-qJtC9Z.mjs";
|
|
7
7
|
import { t as assertThrows } from "../assert_throws-4NwKEy2q.mjs";
|
|
8
|
-
import { a as importJwk, i as generateCryptoKeyPair, n as fetchKey, o as validateCryptoKey, r as fetchKeyDetailed, t as exportJwk } from "../key-
|
|
8
|
+
import { a as importJwk, i as generateCryptoKeyPair, n as fetchKey, o as validateCryptoKey, r as fetchKeyDetailed, t as exportJwk } from "../key-BNp_b9oE.mjs";
|
|
9
9
|
import { c as rsaPublicKey3, i as rsaPrivateKey2, o as rsaPublicKey1, s as rsaPublicKey2, t as ed25519Multikey } from "../keys-C3kae-6B.mjs";
|
|
10
|
-
import { createTestTracerProvider, mockDocumentLoader, test } from "@fedify/fixture";
|
|
11
10
|
import { CryptographicKey, Multikey } from "@fedify/vocab";
|
|
11
|
+
import { createTestTracerProvider, mockDocumentLoader, test } from "@fedify/fixture";
|
|
12
12
|
import { FetchError } from "@fedify/vocab-runtime";
|
|
13
13
|
//#region src/sig/key.test.ts
|
|
14
14
|
test("validateCryptoKey()", async () => {
|
package/dist/sig/ld.test.mjs
CHANGED
|
@@ -5,11 +5,11 @@ 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 { t as assertThrows } from "../assert_throws-4NwKEy2q.mjs";
|
|
7
7
|
import { t as assert } from "../assert-DikXweDx.mjs";
|
|
8
|
-
import { i as generateCryptoKeyPair } from "../key-
|
|
8
|
+
import { i as generateCryptoKeyPair } from "../key-BNp_b9oE.mjs";
|
|
9
9
|
import { a as rsaPrivateKey3, c as rsaPublicKey3, i as rsaPrivateKey2, n as ed25519PrivateKey, s as rsaPublicKey2, t as ed25519Multikey } from "../keys-C3kae-6B.mjs";
|
|
10
|
-
import { a as signJsonLd, i as hasSignatureLike, n as createSignature, o as verifyJsonLd, r as detachSignature, s as verifySignature, t as attachSignature } from "../ld-
|
|
11
|
-
import { mockDocumentLoader, test } from "@fedify/fixture";
|
|
10
|
+
import { a as signJsonLd, i as hasSignatureLike, n as createSignature, o as verifyJsonLd, r as detachSignature, s as verifySignature, t as attachSignature } from "../ld-L9w529xq.mjs";
|
|
12
11
|
import { CryptographicKey } from "@fedify/vocab";
|
|
12
|
+
import { mockDocumentLoader, test } from "@fedify/fixture";
|
|
13
13
|
import { encodeBase64 } from "byte-encodings/base64";
|
|
14
14
|
//#region src/sig/ld.test.ts
|
|
15
15
|
test("attachSignature()", () => {
|
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-DQ25_ruv.cjs");
|
|
5
|
+
const require_proof = require("../proof-zrLeLWgt.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 "@js-temporal/polyfill";
|
|
2
2
|
import "urlpattern-polyfill";
|
|
3
|
-
import { a as verifyRequestDetailed, c as fetchKeyDetailed, f as formatAcceptSignature, h as validateAcceptSignature, i as verifyRequest, l as generateCryptoKeyPair, m as parseAcceptSignature, o as exportJwk, p as fulfillAcceptSignature, r as signRequest, s as fetchKey, u as importJwk } from "../http-
|
|
4
|
-
import { a as verifyProof, c as getKeyOwner, d as detachSignature, f as hasSignatureLike, h as verifySignature, i as verifyObject, l as attachSignature, m as verifyJsonLd, n as hasProofLike, p as signJsonLd, r as signObject, s as doesActorOwnKey, t as createProof, u as createSignature } from "../proof-
|
|
3
|
+
import { a as verifyRequestDetailed, c as fetchKeyDetailed, f as formatAcceptSignature, h as validateAcceptSignature, i as verifyRequest, l as generateCryptoKeyPair, m as parseAcceptSignature, o as exportJwk, p as fulfillAcceptSignature, r as signRequest, s as fetchKey, u as importJwk } from "../http-b__OS_rJ.js";
|
|
4
|
+
import { a as verifyProof, c as getKeyOwner, d as detachSignature, f as hasSignatureLike, h as verifySignature, i as verifyObject, l as attachSignature, m as verifyJsonLd, n as hasProofLike, p as signJsonLd, r as signObject, s as doesActorOwnKey, t as createProof, u as createSignature } from "../proof-CO1qAbN8.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,9 +6,9 @@ import "../std__assert-CRDpx_HF.mjs";
|
|
|
6
6
|
import { n as assertFalse } from "../assert_rejects-B-qJtC9Z.mjs";
|
|
7
7
|
import { t as assert } from "../assert-DikXweDx.mjs";
|
|
8
8
|
import { o as rsaPublicKey1, s as rsaPublicKey2 } from "../keys-C3kae-6B.mjs";
|
|
9
|
-
import { n as getKeyOwner, t as doesActorOwnKey } from "../owner-
|
|
10
|
-
import { createTestTracerProvider, mockDocumentLoader, test } from "@fedify/fixture";
|
|
9
|
+
import { n as getKeyOwner, t as doesActorOwnKey } from "../owner-C30LGgMz.mjs";
|
|
11
10
|
import { Create, CryptographicKey, lookupObject } from "@fedify/vocab";
|
|
11
|
+
import { createTestTracerProvider, mockDocumentLoader, test } from "@fedify/fixture";
|
|
12
12
|
//#region src/sig/owner.test.ts
|
|
13
13
|
test("doesActorOwnKey()", async () => {
|
|
14
14
|
const options = {
|
package/dist/sig/proof.test.mjs
CHANGED
|
@@ -7,10 +7,10 @@ import { n as assertFalse, t as assertRejects } from "../assert_rejects-B-qJtC9Z
|
|
|
7
7
|
import { t as assertInstanceOf } from "../assert_instance_of-C4Ri6VuN.mjs";
|
|
8
8
|
import { t as assert } from "../assert-DikXweDx.mjs";
|
|
9
9
|
import { i as rsaPrivateKey2, n as ed25519PrivateKey, r as ed25519PublicKey, s as rsaPublicKey2, t as ed25519Multikey } from "../keys-C3kae-6B.mjs";
|
|
10
|
-
import { r as normalizeOutgoingActivityJsonLd } from "../outgoing-jsonld-
|
|
11
|
-
import { a as verifyProof, i as verifyObject, n as hasProofLike, r as signObject, t as createProof } from "../proof-
|
|
12
|
-
import { mockDocumentLoader, test } from "@fedify/fixture";
|
|
10
|
+
import { r as normalizeOutgoingActivityJsonLd } from "../outgoing-jsonld-BgFLCJQ_.mjs";
|
|
11
|
+
import { a as verifyProof, i as verifyObject, n as hasProofLike, r as signObject, t as createProof } from "../proof-BjToRsXF.mjs";
|
|
13
12
|
import { Create, DataIntegrityProof, Document, Multikey, Note, PUBLIC_COLLECTION, Place } from "@fedify/vocab";
|
|
13
|
+
import { mockDocumentLoader, test } from "@fedify/fixture";
|
|
14
14
|
import { decodeMultibase, importMultibaseKey } from "@fedify/vocab-runtime";
|
|
15
15
|
import { decodeHex } from "byte-encodings/hex";
|
|
16
16
|
//#region src/sig/proof.test.ts
|
package/dist/testing/mod.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Temporal } from "@js-temporal/polyfill";
|
|
2
2
|
import { URLPattern } from "urlpattern-polyfill";
|
|
3
|
-
import {
|
|
3
|
+
import { ExportResultCode } from "@opentelemetry/core";
|
|
4
4
|
import { Activity, Actor, Collection, CryptographicKey, Hashtag, Link, LookupObjectOptions, Multikey, Object as Object$1, Recipient, Tombstone, TraverseCollectionOptions } from "@fedify/vocab";
|
|
5
5
|
import { Link as Link$1, LookupWebFingerOptions, ResourceDescriptor } from "@fedify/webfinger";
|
|
6
6
|
import { MeterProvider, TracerProvider } from "@opentelemetry/api";
|
|
@@ -2392,4 +2392,9 @@ declare function createOutboxContext<TContextData>(args: Partial<OutboxContext<T
|
|
|
2392
2392
|
federation: Federation<TContextData>;
|
|
2393
2393
|
}): OutboxContext<TContextData>;
|
|
2394
2394
|
//#endregion
|
|
2395
|
+
//#region ../fixture/dist/mod.d.ts
|
|
2396
|
+
//#endregion
|
|
2397
|
+
//#region src/test.d.ts
|
|
2398
|
+
declare const testDefinitions: Deno.TestDefinition[];
|
|
2399
|
+
//#endregion
|
|
2395
2400
|
export { createInboxContext, createOutboxContext, createRequestContext, testDefinitions };
|
package/dist/testing/mod.mjs
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import "@js-temporal/polyfill";
|
|
2
2
|
import "urlpattern-polyfill";
|
|
3
3
|
globalThis.addEventListener = () => {};
|
|
4
|
-
import { n as createOutboxContext, r as createRequestContext, t as createInboxContext } from "../context-
|
|
5
|
-
import { testDefinitions } from "@fedify/fixture";
|
|
4
|
+
import { i as testDefinitions, n as createOutboxContext, r as createRequestContext, t as createInboxContext } from "../context-BAE7AKLA.mjs";
|
|
6
5
|
export { createInboxContext, createOutboxContext, createRequestContext, testDefinitions };
|
|
@@ -4,10 +4,10 @@ globalThis.addEventListener = () => {};
|
|
|
4
4
|
import { t as assertEquals } from "../assert_equals-Ew3jOFa3.mjs";
|
|
5
5
|
import "../std__assert-CRDpx_HF.mjs";
|
|
6
6
|
import { t as assertRejects } from "../assert_rejects-B-qJtC9Z.mjs";
|
|
7
|
-
import { t as esm_default } from "../esm-
|
|
8
|
-
import { l as verifyRequest } from "../http-
|
|
7
|
+
import { t as esm_default } from "../esm-sdtqOUPu.mjs";
|
|
8
|
+
import { l as verifyRequest } from "../http-DM4ZAFCe.mjs";
|
|
9
9
|
import { i as rsaPrivateKey2 } from "../keys-C3kae-6B.mjs";
|
|
10
|
-
import { t as getAuthenticatedDocumentLoader } from "../docloader-
|
|
10
|
+
import { t as getAuthenticatedDocumentLoader } from "../docloader-vsZP01ww.mjs";
|
|
11
11
|
import { mockDocumentLoader, test } from "@fedify/fixture";
|
|
12
12
|
import { UrlError } from "@fedify/vocab-runtime";
|
|
13
13
|
//#region src/utils/docloader.test.ts
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Temporal } from "@js-temporal/polyfill";
|
|
2
2
|
import { URLPattern } from "urlpattern-polyfill";
|
|
3
3
|
globalThis.addEventListener = () => {};
|
|
4
|
-
import { n as kvCache, t as MockKvStore } from "../kv-cache-
|
|
5
|
-
import { mockDocumentLoader, test } from "@fedify/fixture";
|
|
4
|
+
import { n as kvCache, t as MockKvStore } from "../kv-cache-EaVpV2xQ.mjs";
|
|
6
5
|
import { deepStrictEqual, throws } from "node:assert";
|
|
6
|
+
import { mockDocumentLoader, test } from "@fedify/fixture";
|
|
7
7
|
import { preloadedContexts } from "@fedify/vocab-runtime";
|
|
8
8
|
//#region src/utils/kv-cache.test.ts
|
|
9
9
|
test("kvCache()", async (t) => {
|
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-DzctboPD.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 "@js-temporal/polyfill";
|
|
2
2
|
import "urlpattern-polyfill";
|
|
3
|
-
import { n as getAuthenticatedDocumentLoader, t as kvCache } from "../kv-cache-
|
|
3
|
+
import { n as getAuthenticatedDocumentLoader, t as kvCache } from "../kv-cache-D5vjOi5y.js";
|
|
4
4
|
export { getAuthenticatedDocumentLoader, kvCache };
|
package/dist/vocab/cjs.test.mjs
CHANGED
|
@@ -2,8 +2,8 @@ import "@js-temporal/polyfill";
|
|
|
2
2
|
import "urlpattern-polyfill";
|
|
3
3
|
globalThis.addEventListener = () => {};
|
|
4
4
|
import { createRequire } from "node:module";
|
|
5
|
-
import { test } from "@fedify/fixture";
|
|
6
5
|
import { strictEqual } from "node:assert";
|
|
6
|
+
import { test } from "@fedify/fixture";
|
|
7
7
|
//#region src/vocab/cjs.test.ts
|
|
8
8
|
test("CommonJS vocab entry exports Object", { ignore: "Deno" in globalThis }, () => {
|
|
9
9
|
const vocab = createRequire(import.meta.url)("./mod.cjs");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fedify/fedify",
|
|
3
|
-
"version": "2.3.0-dev.
|
|
3
|
+
"version": "2.3.0-dev.1079+36ac23d1",
|
|
4
4
|
"description": "An ActivityPub server framework",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ActivityPub",
|
|
@@ -140,36 +140,36 @@
|
|
|
140
140
|
},
|
|
141
141
|
"dependencies": {
|
|
142
142
|
"@js-temporal/polyfill": "^0.5.1",
|
|
143
|
-
"@logtape/logtape": "^2.0.
|
|
144
|
-
"@opentelemetry/api": "^1.9.
|
|
145
|
-
"@opentelemetry/core": "^2.
|
|
146
|
-
"@opentelemetry/sdk-trace-base": "^2.
|
|
147
|
-
"@opentelemetry/semantic-conventions": "^1.
|
|
143
|
+
"@logtape/logtape": "^2.0.7",
|
|
144
|
+
"@opentelemetry/api": "^1.9.1",
|
|
145
|
+
"@opentelemetry/core": "^2.7.1",
|
|
146
|
+
"@opentelemetry/sdk-trace-base": "^2.7.1",
|
|
147
|
+
"@opentelemetry/semantic-conventions": "^1.40.0",
|
|
148
148
|
"byte-encodings": "^1.0.11",
|
|
149
|
-
"es-toolkit": "1.
|
|
149
|
+
"es-toolkit": "1.46.1",
|
|
150
150
|
"json-canon": "^1.0.1",
|
|
151
151
|
"jsonld": "^9.0.0",
|
|
152
152
|
"structured-field-values": "^2.0.4",
|
|
153
153
|
"uri-template-router": "^1.0.0",
|
|
154
154
|
"url-template": "^3.1.1",
|
|
155
155
|
"urlpattern-polyfill": "^10.1.0",
|
|
156
|
-
"@fedify/vocab": "2.3.0-dev.
|
|
157
|
-
"@fedify/vocab
|
|
158
|
-
"@fedify/webfinger": "2.3.0-dev.
|
|
156
|
+
"@fedify/vocab-runtime": "2.3.0-dev.1079+36ac23d1",
|
|
157
|
+
"@fedify/vocab": "2.3.0-dev.1079+36ac23d1",
|
|
158
|
+
"@fedify/webfinger": "2.3.0-dev.1079+36ac23d1"
|
|
159
159
|
},
|
|
160
160
|
"devDependencies": {
|
|
161
|
-
"@opentelemetry/sdk-metrics": "2.
|
|
161
|
+
"@opentelemetry/sdk-metrics": "2.7.1",
|
|
162
162
|
"@std/assert": "npm:@jsr/std__assert@^0.226.0",
|
|
163
163
|
"@std/path": "npm:@jsr/std__path@^1.0.6",
|
|
164
164
|
"@types/node": "^24.2.1",
|
|
165
165
|
"fetch-mock": "^12.5.4",
|
|
166
166
|
"miniflare": "^4.20250523.0",
|
|
167
|
-
"tsdown": "^0.
|
|
168
|
-
"tsx": "^4.
|
|
167
|
+
"tsdown": "^0.22.0",
|
|
168
|
+
"tsx": "^4.21.0",
|
|
169
169
|
"typescript": "^5.9.2",
|
|
170
170
|
"wrangler": "^4.17.0",
|
|
171
171
|
"@fedify/fixture": "2.0.0",
|
|
172
|
-
"@fedify/vocab-tools": "^2.3.0-dev.
|
|
172
|
+
"@fedify/vocab-tools": "^2.3.0-dev.1079+36ac23d1"
|
|
173
173
|
},
|
|
174
174
|
"scripts": {
|
|
175
175
|
"build:self": "tsdown",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "@js-temporal/polyfill";
|
|
2
2
|
import "urlpattern-polyfill";
|
|
3
3
|
globalThis.addEventListener = () => {};
|
|
4
|
-
import { getUserAgent } from "@fedify/vocab-runtime";
|
|
5
4
|
import { getLogger } from "@logtape/logtape";
|
|
5
|
+
import { getUserAgent } from "@fedify/vocab-runtime";
|
|
6
6
|
//#region src/nodeinfo/client.ts
|
|
7
7
|
const logger = getLogger([
|
|
8
8
|
"fedify",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Temporal } from "@js-temporal/polyfill";
|
|
2
2
|
import { URLPattern } from "urlpattern-polyfill";
|
|
3
3
|
globalThis.addEventListener = () => {};
|
|
4
|
-
import { preloadedContexts } from "@fedify/vocab-runtime";
|
|
5
4
|
import { getLogger } from "@logtape/logtape";
|
|
5
|
+
import { preloadedContexts } from "@fedify/vocab-runtime";
|
|
6
6
|
//#region src/utils/kv-cache.ts
|
|
7
7
|
const logger = getLogger([
|
|
8
8
|
"fedify",
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "@js-temporal/polyfill";
|
|
2
2
|
import "urlpattern-polyfill";
|
|
3
3
|
globalThis.addEventListener = () => {};
|
|
4
|
+
import { getLogger } from "@logtape/logtape";
|
|
4
5
|
import { PUBLIC_COLLECTION } from "@fedify/vocab";
|
|
5
6
|
import { preloadedContexts } from "@fedify/vocab-runtime";
|
|
6
|
-
import { getLogger } from "@logtape/logtape";
|
|
7
7
|
import jsonld from "@fedify/vocab-runtime/jsonld";
|
|
8
8
|
//#region src/compat/preloaded-context-loader.ts
|
|
9
9
|
/**
|
|
File without changes
|