@fedify/fedify 2.0.36-dev.2653 → 2.0.36-dev.2729
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-D6LGNjSj.mjs → builder-DifMW7os.mjs} +3 -3
- package/dist/callback-CJd-aCRE.d.mts +2223 -0
- 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/{context-C00pWP8x.d.ts → context-CgpkmUFq.d.ts} +23 -12
- package/dist/{context-ao-qb3eP.d.cts → context-DGC1C_UU.d.cts} +23 -12
- package/dist/{deno-DnlTCwP9.mjs → deno-CZYDJcbZ.mjs} +1 -1
- package/dist/{docloader-ClA1cBXp.mjs → docloader-DXZDJeg3.mjs} +2 -2
- package/dist/federation/builder.test.mjs +1 -1
- package/dist/federation/handler.test.mjs +6 -6
- package/dist/federation/idempotency.test.mjs +2 -2
- package/dist/federation/inbox.test.mjs +1 -1
- package/dist/federation/middleware.test.mjs +7 -7
- 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/send.test.mjs +3 -3
- package/dist/federation/temporal.test.mjs +1 -1
- package/dist/federation/webfinger.test.mjs +1 -1
- package/dist/{http-Cqbz1vSQ.js → http-6beU7KiN.js} +6 -4
- package/dist/{http-Cd8UD1ym.d.ts → http-B57wVmZ3.d.cts} +3 -3
- package/dist/{http-pcUSzQJO.mjs → http-BEyjd3P7.mjs} +6 -4
- package/dist/{http-CUyMHX68.cjs → http-CU9dab8F.cjs} +6 -4
- package/dist/{http-DFqAb11b.d.cts → http-CURWmZlP.d.ts} +3 -3
- package/dist/{inbox-Dvd92fR4.mjs → inbox-DO4a9FKE.mjs} +1 -1
- package/dist/{key-WbbcbEg2.mjs → key-DjCiTRyO.mjs} +3 -2
- package/dist/{kv-cache-C2CZ0wo0.cjs → kv-cache-DFybNxHG.cjs} +1 -1
- package/dist/{kv-cache-CFnt0ze9.js → kv-cache-DPBGlPnW.js} +1 -1
- package/dist/{ld-CQIFcE4D.mjs → ld-B5pG0yhd.mjs} +20 -7
- package/dist/{middleware-CNSvd_Yd.cjs → middleware-Bdvdue5B.cjs} +1 -1
- package/dist/{middleware-C1wIK-Eo.js → middleware-BqQbaTiu.js} +14 -6
- package/dist/{middleware-BW7yDR0N.cjs → middleware-ClxSuYs7.cjs} +15 -7
- package/dist/{middleware-pG3fni-8.mjs → middleware-DnnYzTPv.mjs} +22 -13
- package/dist/{middleware-DdgQlj3K.mjs → middleware-Dsw0i5sQ.mjs} +1 -1
- package/dist/{mod-DtRh015i.d.ts → mod-BqnolIm8.d.ts} +1 -1
- package/dist/{mod-6uJWdCc0.d.cts → mod-BzKteaAe.d.cts} +1 -1
- package/dist/{mod-DGP89q0u.d.ts → mod-CIjZ1RmH.d.ts} +3 -3
- package/dist/{mod-BPDfu4Ey.d.cts → mod-DaQ6pIH3.d.cts} +3 -3
- package/dist/{mod-CL9Ep0uo.d.ts → mod-DmmcsbU8.d.cts} +12 -7
- package/dist/{mod-BA6vqC2S.d.cts → mod-fnE_D0lV.d.ts} +12 -7
- package/dist/mod.cjs +4 -4
- package/dist/mod.d.cts +7 -7
- package/dist/mod.d.ts +7 -7
- package/dist/mod.js +4 -4
- package/dist/nodeinfo/handler.test.mjs +1 -1
- package/dist/{owner-U2uzi8vw.mjs → owner-Dmlm2oR_.mjs} +2 -2
- package/dist/{proof-Czu16ywv.cjs → proof-BGPhmUJL.cjs} +20 -7
- package/dist/{proof-DlcTuXU1.js → proof-iPBfQoMT.js} +20 -7
- package/dist/{proof-DuGHbMbs.mjs → proof-v76wU5Lv.mjs} +4 -3
- package/dist/{send-JCtYxtYm.mjs → send-C830qz95.mjs} +2 -2
- package/dist/sig/http.test.mjs +2 -2
- package/dist/sig/key-types.test.d.mts +218 -0
- package/dist/sig/key-types.test.mjs +8 -0
- package/dist/sig/key.test.mjs +2 -2
- package/dist/sig/ld.test.mjs +156 -4
- package/dist/sig/mod.cjs +2 -2
- package/dist/sig/mod.d.cts +3 -3
- package/dist/sig/mod.d.ts +3 -3
- package/dist/sig/mod.js +2 -2
- package/dist/sig/owner.test.mjs +1 -1
- package/dist/sig/proof.test.mjs +2 -2
- package/dist/{temporal-B7Rg3f1o.mjs → temporal-Bm5DL5mq.mjs} +1 -1
- package/dist/testing/mod.d.mts +2 -2123
- package/dist/utils/docloader.test.mjs +2 -2
- package/dist/utils/mod.cjs +1 -1
- package/dist/utils/mod.d.cts +1 -1
- package/dist/utils/mod.d.ts +1 -1
- package/dist/utils/mod.js +1 -1
- package/package.json +5 -5
package/dist/sig/ld.test.mjs
CHANGED
|
@@ -5,11 +5,11 @@ import { t as assertEquals } from "../assert_equals-Ew3jOFa3.mjs";
|
|
|
5
5
|
import { r as assertFalse, t as assertThrows } from "../assert_throws-D4DNWrux.mjs";
|
|
6
6
|
import { n as assertInstanceOf, t as assert } from "../assert-BhQd8QHP.mjs";
|
|
7
7
|
import { t as assertRejects } from "../assert_rejects-WyYSTDDX.mjs";
|
|
8
|
-
import { i as generateCryptoKeyPair } from "../key-
|
|
8
|
+
import { i as generateCryptoKeyPair } from "../key-DjCiTRyO.mjs";
|
|
9
9
|
import { a as rsaPrivateKey3, c as rsaPublicKey3, i as rsaPrivateKey2, n as ed25519PrivateKey, s as rsaPublicKey2, t as ed25519Multikey } from "../keys-CCxRJhWa.mjs";
|
|
10
|
-
import { a as compactJsonLd, d as isInvalidUrlTypeError, f as signJsonLd, h as verifySignature, i as attachSignature, m as verifyJsonLd, n as UnsafeJsonLdError, o as createSignature, s as detachSignature } from "../ld-
|
|
10
|
+
import { a as compactJsonLd, d as isInvalidUrlTypeError, f as signJsonLd, h as verifySignature, i as attachSignature, m as verifyJsonLd, n as UnsafeJsonLdError, o as createSignature, s as detachSignature } from "../ld-B5pG0yhd.mjs";
|
|
11
11
|
import { mockDocumentLoader, test } from "@fedify/fixture";
|
|
12
|
-
import { CryptographicKey } from "@fedify/vocab";
|
|
12
|
+
import { Create, CryptographicKey, Note } from "@fedify/vocab";
|
|
13
13
|
import { encodeBase64 } from "byte-encodings/base64";
|
|
14
14
|
import jsonld from "@fedify/vocab-runtime/jsonld";
|
|
15
15
|
//#region src/sig/ld.test.ts
|
|
@@ -412,6 +412,155 @@ test("verifyJsonLd()", async () => {
|
|
|
412
412
|
contextLoader: mockDocumentLoader
|
|
413
413
|
}));
|
|
414
414
|
});
|
|
415
|
+
test("verifyJsonLd() tolerates unmapped document and signature properties", async () => {
|
|
416
|
+
const options = {
|
|
417
|
+
documentLoader: mockDocumentLoader,
|
|
418
|
+
contextLoader: mockDocumentLoader
|
|
419
|
+
};
|
|
420
|
+
const canonize = (input) => jsonld.canonize(input, {
|
|
421
|
+
format: "application/n-quads",
|
|
422
|
+
documentLoader: mockDocumentLoader,
|
|
423
|
+
safe: false
|
|
424
|
+
});
|
|
425
|
+
const withQuote = {
|
|
426
|
+
...document,
|
|
427
|
+
object: {
|
|
428
|
+
...document.object,
|
|
429
|
+
quoteUri: "https://example.com/quoted"
|
|
430
|
+
}
|
|
431
|
+
};
|
|
432
|
+
const sigOptions = {
|
|
433
|
+
"@context": "https://w3id.org/identity/v1",
|
|
434
|
+
creator: signature.creator,
|
|
435
|
+
created: signature.created
|
|
436
|
+
};
|
|
437
|
+
const extraOption = { quoteUri: "https://example.com/quoted" };
|
|
438
|
+
assertEquals(await canonize(withQuote), await canonize(document));
|
|
439
|
+
assertEquals(await canonize({
|
|
440
|
+
...sigOptions,
|
|
441
|
+
...extraOption
|
|
442
|
+
}), await canonize(sigOptions));
|
|
443
|
+
for (const input of [withQuote, {
|
|
444
|
+
...sigOptions,
|
|
445
|
+
...extraOption
|
|
446
|
+
}]) await assertRejects(() => jsonld.canonize(input, {
|
|
447
|
+
format: "application/n-quads",
|
|
448
|
+
documentLoader: mockDocumentLoader,
|
|
449
|
+
safe: true
|
|
450
|
+
}), Error, "Safe mode validation error.");
|
|
451
|
+
const expectedKey = await verifySignature(testVector, options);
|
|
452
|
+
assertInstanceOf(expectedKey, CryptographicKey);
|
|
453
|
+
for (const signed of [
|
|
454
|
+
{
|
|
455
|
+
...withQuote,
|
|
456
|
+
signature
|
|
457
|
+
},
|
|
458
|
+
{
|
|
459
|
+
...document,
|
|
460
|
+
signature: {
|
|
461
|
+
...signature,
|
|
462
|
+
...extraOption
|
|
463
|
+
}
|
|
464
|
+
},
|
|
465
|
+
{
|
|
466
|
+
...withQuote,
|
|
467
|
+
signature: {
|
|
468
|
+
...signature,
|
|
469
|
+
...extraOption
|
|
470
|
+
}
|
|
471
|
+
}
|
|
472
|
+
]) {
|
|
473
|
+
assertEquals(await verifySignature(signed, options), expectedKey);
|
|
474
|
+
assert(await verifyJsonLd(signed, options));
|
|
475
|
+
}
|
|
476
|
+
const tampered = {
|
|
477
|
+
...withQuote,
|
|
478
|
+
object: {
|
|
479
|
+
...withQuote.object,
|
|
480
|
+
content: "<p>Forged</p>"
|
|
481
|
+
},
|
|
482
|
+
signature
|
|
483
|
+
};
|
|
484
|
+
assertEquals(await verifySignature(tampered, options), null);
|
|
485
|
+
assertFalse(await verifyJsonLd(tampered, options));
|
|
486
|
+
});
|
|
487
|
+
test("verifyJsonLd() rejects relative IRIs despite unmapped properties", async () => {
|
|
488
|
+
const options = {
|
|
489
|
+
documentLoader: mockDocumentLoader,
|
|
490
|
+
contextLoader: mockDocumentLoader
|
|
491
|
+
};
|
|
492
|
+
const canonize = (input) => jsonld.canonize(input, {
|
|
493
|
+
format: "application/n-quads",
|
|
494
|
+
documentLoader: mockDocumentLoader,
|
|
495
|
+
safe: false
|
|
496
|
+
});
|
|
497
|
+
const withRelativeUrl = {
|
|
498
|
+
...document,
|
|
499
|
+
object: {
|
|
500
|
+
...document.object,
|
|
501
|
+
url: [document.object.url, "/evil"]
|
|
502
|
+
}
|
|
503
|
+
};
|
|
504
|
+
const note = await (await Create.fromJsonLd(withRelativeUrl, options)).getObject(options);
|
|
505
|
+
assertInstanceOf(note, Note);
|
|
506
|
+
assertEquals(note.urls.map((url) => url instanceof URL ? url.href : null), [document.object.url, "https://activitypub.academy/evil"]);
|
|
507
|
+
for (const input of [withRelativeUrl, {
|
|
508
|
+
...document,
|
|
509
|
+
"https://example.com/extension": { "@id": "relative" }
|
|
510
|
+
}]) {
|
|
511
|
+
assertEquals(await canonize(input), await canonize(document));
|
|
512
|
+
for (const extra of [{}, { quoteUri: "https://example.com/quoted" }]) {
|
|
513
|
+
const signed = {
|
|
514
|
+
...input,
|
|
515
|
+
...extra,
|
|
516
|
+
signature
|
|
517
|
+
};
|
|
518
|
+
assertEquals(await verifySignature(signed, options), null);
|
|
519
|
+
assertFalse(await verifyJsonLd(signed, options));
|
|
520
|
+
}
|
|
521
|
+
}
|
|
522
|
+
const relativeOptions = {
|
|
523
|
+
...testVector,
|
|
524
|
+
signature: {
|
|
525
|
+
...signature,
|
|
526
|
+
nonce: { "@id": "relative" },
|
|
527
|
+
quoteUri: "https://example.com/quoted"
|
|
528
|
+
}
|
|
529
|
+
};
|
|
530
|
+
const sigOptions = {
|
|
531
|
+
"@context": "https://w3id.org/identity/v1",
|
|
532
|
+
creator: signature.creator,
|
|
533
|
+
created: signature.created
|
|
534
|
+
};
|
|
535
|
+
assertEquals(await canonize({
|
|
536
|
+
...sigOptions,
|
|
537
|
+
nonce: relativeOptions.signature.nonce,
|
|
538
|
+
quoteUri: relativeOptions.signature.quoteUri
|
|
539
|
+
}), await canonize(sigOptions));
|
|
540
|
+
assertEquals(await verifySignature(relativeOptions, options), null);
|
|
541
|
+
assertFalse(await verifyJsonLd(relativeOptions, options));
|
|
542
|
+
});
|
|
543
|
+
test("signing still rejects unmapped properties", async () => {
|
|
544
|
+
const input = {
|
|
545
|
+
...document,
|
|
546
|
+
quoteUri: "https://example.com/quoted"
|
|
547
|
+
};
|
|
548
|
+
const options = { contextLoader: mockDocumentLoader };
|
|
549
|
+
await assertRejects(() => createSignature(input, rsaPrivateKey3, rsaPublicKey3.id, options), Error, "Safe mode validation error.");
|
|
550
|
+
await assertRejects(() => signJsonLd(input, rsaPrivateKey3, rsaPublicKey3.id, options), Error, "Safe mode validation error.");
|
|
551
|
+
});
|
|
552
|
+
test("verification still rejects malformed JSON-LD", async () => {
|
|
553
|
+
const malformed = {
|
|
554
|
+
...testVector,
|
|
555
|
+
"@context": 42
|
|
556
|
+
};
|
|
557
|
+
const options = {
|
|
558
|
+
documentLoader: mockDocumentLoader,
|
|
559
|
+
contextLoader: mockDocumentLoader
|
|
560
|
+
};
|
|
561
|
+
assertEquals(await verifySignature(malformed, options), null);
|
|
562
|
+
assertEquals((await assertRejects(() => verifyJsonLd(malformed, options), Error)).name, "jsonld.SyntaxError");
|
|
563
|
+
});
|
|
415
564
|
test("compactJsonLd() with restrictive context loader", async () => {
|
|
416
565
|
const restrictiveContextLoader = async (resource) => {
|
|
417
566
|
const url = new URL(resource).href;
|
|
@@ -916,7 +1065,10 @@ test("verifyJsonLd() rejects unsafe JSON-LD keywords", async () => {
|
|
|
916
1065
|
signature: signed.signature
|
|
917
1066
|
}]
|
|
918
1067
|
];
|
|
919
|
-
for (const [keyword, jsonLd] of cases) await assertRejects(() => verifyJsonLd(
|
|
1068
|
+
for (const [keyword, jsonLd] of cases) for (const extra of [{}, { quoteUri: "https://example.com/quoted" }]) await assertRejects(() => verifyJsonLd({
|
|
1069
|
+
...jsonLd,
|
|
1070
|
+
...extra
|
|
1071
|
+
}, options), UnsafeJsonLdError, `Unsupported JSON-LD keyword: ${keyword}.`);
|
|
920
1072
|
});
|
|
921
1073
|
test("compactJsonLd() rejects unsafe JSON-LD keywords inside signature objects", async () => {
|
|
922
1074
|
const signed = await signJsonLd({
|
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-CU9dab8F.cjs");
|
|
5
|
+
const require_proof = require("../proof-BGPhmUJL.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.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference lib="esnext.temporal" />
|
|
2
|
-
import { a as signRequest, c as FetchKeyResult, d as fetchKey, f as generateCryptoKeyPair, i as VerifyRequestOptions, l as KeyCache, n as HttpMessageSignaturesSpecDeterminer, o as verifyRequest, p as importJwk, r as SignRequestOptions, s as FetchKeyOptions, t as HttpMessageSignaturesSpec, u as exportJwk } from "../http-
|
|
2
|
+
import { a as signRequest, c as FetchKeyResult, d as fetchKey, f as generateCryptoKeyPair, i as VerifyRequestOptions, l as KeyCache, n as HttpMessageSignaturesSpecDeterminer, o as verifyRequest, p as importJwk, r as SignRequestOptions, s as FetchKeyOptions, t as HttpMessageSignaturesSpec, u as exportJwk } from "../http-B57wVmZ3.cjs";
|
|
3
3
|
import { i as getKeyOwner, n as GetKeyOwnerOptions, r as doesActorOwnKey, t as DoesActorOwnKeyOptions } from "../owner-B3hNQCG8.cjs";
|
|
4
|
-
import { _ as
|
|
5
|
-
export { CreateProofOptions, CreateSignatureOptions, DoesActorOwnKeyOptions, FetchKeyOptions, FetchKeyResult, GetKeyOwnerOptions, HttpMessageSignaturesSpec, HttpMessageSignaturesSpecDeterminer, KeyCache, SignJsonLdOptions, SignObjectOptions, SignRequestOptions, VerifyJsonLdOptions, VerifyObjectOptions, VerifyProofOptions, VerifyRequestOptions, VerifySignatureOptions, attachSignature, createProof, createSignature, detachSignature, doesActorOwnKey, exportJwk, fetchKey, generateCryptoKeyPair, getKeyOwner, importJwk, signJsonLd, signObject, signRequest, verifyJsonLd, verifyObject, verifyProof, verifyRequest, verifySignature };
|
|
4
|
+
import { _ as detachSignature, a as VerifyObjectOptions, b as verifySignature, c as signObject, d as CreateSignatureOptions, f as SignJsonLdOptions, g as createSignature, h as attachSignature, i as SignObjectOptions, l as verifyObject, m as VerifySignatureOptions, n as CryptoKeyPairLike, o as VerifyProofOptions, p as VerifyJsonLdOptions, r as CreateProofOptions, s as createProof, t as CryptoKeyLike, u as verifyProof, v as signJsonLd, y as verifyJsonLd } from "../mod-DmmcsbU8.cjs";
|
|
5
|
+
export { CreateProofOptions, CreateSignatureOptions, CryptoKeyLike, CryptoKeyPairLike, DoesActorOwnKeyOptions, FetchKeyOptions, FetchKeyResult, GetKeyOwnerOptions, HttpMessageSignaturesSpec, HttpMessageSignaturesSpecDeterminer, KeyCache, SignJsonLdOptions, SignObjectOptions, SignRequestOptions, VerifyJsonLdOptions, VerifyObjectOptions, VerifyProofOptions, VerifyRequestOptions, VerifySignatureOptions, attachSignature, createProof, createSignature, detachSignature, doesActorOwnKey, exportJwk, fetchKey, generateCryptoKeyPair, getKeyOwner, importJwk, signJsonLd, signObject, signRequest, verifyJsonLd, verifyObject, verifyProof, verifyRequest, verifySignature };
|
package/dist/sig/mod.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference lib="esnext.temporal" />
|
|
2
|
-
import { a as signRequest, c as FetchKeyResult, d as fetchKey, f as generateCryptoKeyPair, i as VerifyRequestOptions, l as KeyCache, n as HttpMessageSignaturesSpecDeterminer, o as verifyRequest, p as importJwk, r as SignRequestOptions, s as FetchKeyOptions, t as HttpMessageSignaturesSpec, u as exportJwk } from "../http-
|
|
2
|
+
import { a as signRequest, c as FetchKeyResult, d as fetchKey, f as generateCryptoKeyPair, i as VerifyRequestOptions, l as KeyCache, n as HttpMessageSignaturesSpecDeterminer, o as verifyRequest, p as importJwk, r as SignRequestOptions, s as FetchKeyOptions, t as HttpMessageSignaturesSpec, u as exportJwk } from "../http-CURWmZlP.js";
|
|
3
3
|
import { i as getKeyOwner, n as GetKeyOwnerOptions, r as doesActorOwnKey, t as DoesActorOwnKeyOptions } from "../owner-CiBPcC6F.js";
|
|
4
|
-
import { _ as
|
|
5
|
-
export { CreateProofOptions, CreateSignatureOptions, DoesActorOwnKeyOptions, FetchKeyOptions, FetchKeyResult, GetKeyOwnerOptions, HttpMessageSignaturesSpec, HttpMessageSignaturesSpecDeterminer, KeyCache, SignJsonLdOptions, SignObjectOptions, SignRequestOptions, VerifyJsonLdOptions, VerifyObjectOptions, VerifyProofOptions, VerifyRequestOptions, VerifySignatureOptions, attachSignature, createProof, createSignature, detachSignature, doesActorOwnKey, exportJwk, fetchKey, generateCryptoKeyPair, getKeyOwner, importJwk, signJsonLd, signObject, signRequest, verifyJsonLd, verifyObject, verifyProof, verifyRequest, verifySignature };
|
|
4
|
+
import { _ as detachSignature, a as VerifyObjectOptions, b as verifySignature, c as signObject, d as CreateSignatureOptions, f as SignJsonLdOptions, g as createSignature, h as attachSignature, i as SignObjectOptions, l as verifyObject, m as VerifySignatureOptions, n as CryptoKeyPairLike, o as VerifyProofOptions, p as VerifyJsonLdOptions, r as CreateProofOptions, s as createProof, t as CryptoKeyLike, u as verifyProof, v as signJsonLd, y as verifyJsonLd } from "../mod-fnE_D0lV.js";
|
|
5
|
+
export { CreateProofOptions, CreateSignatureOptions, CryptoKeyLike, CryptoKeyPairLike, DoesActorOwnKeyOptions, FetchKeyOptions, FetchKeyResult, GetKeyOwnerOptions, HttpMessageSignaturesSpec, HttpMessageSignaturesSpecDeterminer, KeyCache, SignJsonLdOptions, SignObjectOptions, SignRequestOptions, VerifyJsonLdOptions, VerifyObjectOptions, VerifyProofOptions, VerifyRequestOptions, VerifySignatureOptions, attachSignature, createProof, createSignature, detachSignature, doesActorOwnKey, exportJwk, fetchKey, generateCryptoKeyPair, getKeyOwner, importJwk, signJsonLd, signObject, signRequest, verifyJsonLd, verifyObject, verifyProof, verifyRequest, verifySignature };
|
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 { c as importJwk, i as exportJwk, n as signRequest, o as fetchKey, r as verifyRequest, s as generateCryptoKeyPair } from "../http-
|
|
4
|
-
import { _ as signJsonLd, a as doesActorOwnKey, b as verifySignature, d as createSignature, f as detachSignature, i as verifyProof, l as attachSignature, n as signObject, o as getKeyOwner, r as verifyObject, t as createProof, y as verifyJsonLd } from "../proof-
|
|
3
|
+
import { c as importJwk, i as exportJwk, n as signRequest, o as fetchKey, r as verifyRequest, s as generateCryptoKeyPair } from "../http-6beU7KiN.js";
|
|
4
|
+
import { _ as signJsonLd, a as doesActorOwnKey, b as verifySignature, d as createSignature, f as detachSignature, i as verifyProof, l as attachSignature, n as signObject, o as getKeyOwner, r as verifyObject, t as createProof, y as verifyJsonLd } from "../proof-iPBfQoMT.js";
|
|
5
5
|
export { attachSignature, createProof, createSignature, detachSignature, doesActorOwnKey, exportJwk, fetchKey, generateCryptoKeyPair, getKeyOwner, importJwk, signJsonLd, signObject, signRequest, verifyJsonLd, verifyObject, verifyProof, verifyRequest, verifySignature };
|
package/dist/sig/owner.test.mjs
CHANGED
|
@@ -6,7 +6,7 @@ import "../std__assert-DflMZha5.mjs";
|
|
|
6
6
|
import { r as assertFalse } from "../assert_throws-D4DNWrux.mjs";
|
|
7
7
|
import { t as assert } from "../assert-BhQd8QHP.mjs";
|
|
8
8
|
import { o as rsaPublicKey1, s as rsaPublicKey2 } from "../keys-CCxRJhWa.mjs";
|
|
9
|
-
import { n as getKeyOwner, t as doesActorOwnKey } from "../owner-
|
|
9
|
+
import { n as getKeyOwner, t as doesActorOwnKey } from "../owner-Dmlm2oR_.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
|
@@ -6,8 +6,8 @@ import "../std__assert-DflMZha5.mjs";
|
|
|
6
6
|
import { n as assertInstanceOf } from "../assert-BhQd8QHP.mjs";
|
|
7
7
|
import { t as assertRejects } from "../assert_rejects-WyYSTDDX.mjs";
|
|
8
8
|
import { i as rsaPrivateKey2, n as ed25519PrivateKey, r as ed25519PublicKey, s as rsaPublicKey2, t as ed25519Multikey } from "../keys-CCxRJhWa.mjs";
|
|
9
|
-
import { f as signJsonLd, h as verifySignature, s as detachSignature } from "../ld-
|
|
10
|
-
import { i as verifyProof, n as signObject, r as verifyObject, t as createProof } from "../proof-
|
|
9
|
+
import { f as signJsonLd, h as verifySignature, s as detachSignature } from "../ld-B5pG0yhd.mjs";
|
|
10
|
+
import { i as verifyProof, n as signObject, r as verifyObject, t as createProof } from "../proof-v76wU5Lv.mjs";
|
|
11
11
|
import { mockDocumentLoader, test } from "@fedify/fixture";
|
|
12
12
|
import { Create, DataIntegrityProof, Multikey, Note, 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-B5pG0yhd.mjs";
|
|
5
5
|
import jsonld from "@fedify/vocab-runtime/jsonld";
|
|
6
6
|
import { normalizeDateTimeLiteral } from "@fedify/vocab-runtime/temporal";
|
|
7
7
|
//#region src/federation/temporal.ts
|