@fedify/fedify 1.6.1 → 1.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{actor-BPpr69o_.js → actor-CCwKVyYD.js} +3 -3
- package/dist/{actor-BRHV5zJ-.js → actor-DQsqHVyQ.js} +199 -184
- package/dist/{authdocloader-BekmxF5u.js → authdocloader-GtTPdEHT.js} +3 -3
- package/dist/{authdocloader-BZFGEwwq.js → authdocloader-P1AjCw0S.js} +3 -3
- package/dist/{builder-6d3Dz5mx.js → builder-SMtPpAOa.js} +3 -3
- package/dist/{client-DQIcIlJU.js → client-BKY09Rhq.js} +2 -2
- package/dist/compat/transformers.test.js +20 -20
- package/dist/{context-hZKmfLXY.js → context-DXraAKCP.js} +2 -2
- package/dist/{docloader-CFuioPSY.js → docloader-DMwgPTaH.js} +1 -1
- package/dist/{docloader-COHp0QgR.js → docloader-YLjCHzbv.js} +1 -1
- package/dist/{esm-Btx3E8og.js → esm-CASHO3OR.js} +18 -12
- package/dist/federation/builder.test.js +6 -6
- package/dist/federation/collection.test.js +1 -1
- package/dist/federation/handler.test.js +26 -23
- package/dist/federation/inbox.test.js +4 -4
- package/dist/federation/keycache.test.js +4 -4
- package/dist/federation/kv.test.js +1 -1
- package/dist/federation/middleware.test.js +23 -23
- package/dist/federation/mod.js +10 -10
- package/dist/federation/mq.test.js +1 -1
- package/dist/federation/retry.test.js +1 -1
- package/dist/federation/router.test.js +1 -1
- package/dist/federation/send.test.js +11 -11
- package/dist/{http-C0ueQROD.js → http-CI51jrbs.js} +4 -4
- package/dist/{http-D523RJVL.js → http-DIp-Nofe.js} +4 -4
- package/dist/{inbox-5eiuvsES.js → inbox-ByVJXDww.js} +2 -2
- package/dist/{key-CrAjL8Th.js → key-C75Lolnz.js} +5 -5
- package/dist/{key-D5LOMkXp.js → key-CLOZqhvI.js} +3 -3
- package/dist/{key-DlqwkdF6.js → key-CXEHrdky.js} +2 -2
- package/dist/{key-PLMRBhyq.js → key-DlmG6lAZ.js} +4 -4
- package/dist/{keycache-CyjJMAa8.js → keycache-B6jm9SLk.js} +1 -1
- package/dist/{keys-DQ2kNLQQ.js → keys-Dstgvoyj.js} +1 -1
- package/dist/{ld-rLvDkwUL.js → ld-CE4MeMYU.js} +3 -3
- package/dist/{lookup-oLKN3HSl.js → lookup-0rfbBli1.js} +1 -1
- package/dist/{lookup-CRjlBmyh.js → lookup-9Sutc_q3.js} +3 -3
- package/dist/{lookup-B4JQ9FvE.js → lookup-DvKouya1.js} +1 -1
- package/dist/middleware-BgyoW8br.js +33 -0
- package/dist/middleware-DF1duV2E.js +17 -0
- package/dist/{middleware-83KxItnw.js → middleware-hm9nABtR.js} +10 -10
- package/dist/{middleware-B0uCxn1o.js → middleware-zZ3xBpsd.js} +16 -16
- package/dist/mod.js +10 -10
- package/dist/nodeinfo/client.test.js +5 -5
- package/dist/nodeinfo/handler.test.js +21 -21
- package/dist/nodeinfo/mod.js +2 -2
- package/dist/nodeinfo/semver.test.js +2 -2
- package/dist/nodeinfo/types.test.js +3 -3
- package/dist/{owner-B5sR7_Qw.js → owner-u2cBHFa8.js} +3 -3
- package/dist/{proof-BVprztx-.js → proof-BaBhQqjH.js} +3 -3
- package/dist/{proof-AL0P3h_I.js → proof-CWTAtwln.js} +3 -3
- package/dist/runtime/authdocloader.test.js +10 -10
- package/dist/runtime/docloader.test.js +3 -3
- package/dist/runtime/key.test.js +6 -6
- package/dist/runtime/langstr.test.js +1 -1
- package/dist/runtime/mod.js +6 -6
- package/dist/runtime/multibase/multibase.test.js +1 -1
- package/dist/runtime/url.test.js +1 -1
- package/dist/{semver-CbbIgUsa.js → semver-DWClQt_5.js} +2 -2
- package/dist/{send-BjLRJdee.js → send-j256mhpQ.js} +2 -2
- package/dist/sig/http.test.js +15 -15
- package/dist/sig/key.test.js +7 -7
- package/dist/sig/ld.test.js +8 -8
- package/dist/sig/mod.js +6 -6
- package/dist/sig/owner.test.js +9 -9
- package/dist/sig/proof.test.js +9 -9
- package/dist/testing/docloader.test.js +1 -1
- package/dist/testing/mod.js +1 -1
- package/dist/{testing-jcGLO9Lp.js → testing-BZ0dJ4qn.js} +1 -1
- package/dist/{types-CqoqWDkp.js → types-C7C_l-jz.js} +1 -1
- package/dist/{types-DegZ8FlT.js → types-CsvE6S52.js} +3 -3
- package/dist/vocab/actor.test.js +7 -7
- package/dist/vocab/announce.yaml +3 -1
- package/dist/vocab/create.yaml +3 -1
- package/dist/vocab/delete.yaml +3 -1
- package/dist/vocab/lookup.test.js +6 -6
- package/dist/vocab/mod.js +4 -4
- package/dist/vocab/question.yaml +3 -1
- package/dist/vocab/type.test.js +3 -3
- package/dist/vocab/update.yaml +3 -1
- package/dist/vocab/vocab.test.js +73 -36
- package/dist/{vocab-uVrsB2D1.js → vocab-BTj5WfK3.js} +199 -184
- package/dist/{vocab-BY68bjvE.js → vocab-Bcmgxvr_.js} +3 -3
- package/dist/webfinger/handler.test.js +21 -21
- package/dist/webfinger/lookup.test.js +4 -4
- package/dist/webfinger/mod.js +2 -2
- package/dist/x/cfworkers.test.js +1 -1
- package/package.json +1 -1
- package/dist/middleware-CtQDr_8l.js +0 -17
- package/dist/middleware-DbguxGNt.js +0 -33
@@ -7,7 +7,7 @@ import { assertEquals } from "../assert_equals-Dnj7ejjL.js";
|
|
7
7
|
import "../assert-YJk-1DlZ.js";
|
8
8
|
import "../assert_instance_of-DBIoG5k7.js";
|
9
9
|
import { LanguageString } from "../langstr-DbWheeIS.js";
|
10
|
-
import { test } from "../testing-
|
10
|
+
import { test } from "../testing-BZ0dJ4qn.js";
|
11
11
|
import "../std__assert-CHXwj7zk.js";
|
12
12
|
import "../assert_rejects-BZjUwo62.js";
|
13
13
|
import "../assert_is_error-jyzqjHud.js";
|
package/dist/runtime/mod.js
CHANGED
@@ -2,12 +2,12 @@
|
|
2
2
|
import { Temporal } from "@js-temporal/polyfill";
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
|
5
|
-
import { FetchError, fetchDocumentLoader, getDocumentLoader, getUserAgent, kvCache } from "../docloader-
|
6
|
-
import { LanguageString, exportMultibaseKey, exportSpki, importMultibaseKey, importPem, importPkcs1, importSpki } from "../actor-
|
7
|
-
import "../lookup-
|
8
|
-
import "../key-
|
9
|
-
import "../http-
|
10
|
-
import { getAuthenticatedDocumentLoader } from "../authdocloader-
|
5
|
+
import { FetchError, fetchDocumentLoader, getDocumentLoader, getUserAgent, kvCache } from "../docloader-YLjCHzbv.js";
|
6
|
+
import { LanguageString, exportMultibaseKey, exportSpki, importMultibaseKey, importPem, importPkcs1, importSpki } from "../actor-DQsqHVyQ.js";
|
7
|
+
import "../lookup-DvKouya1.js";
|
8
|
+
import "../key-CXEHrdky.js";
|
9
|
+
import "../http-CI51jrbs.js";
|
10
|
+
import { getAuthenticatedDocumentLoader } from "../authdocloader-GtTPdEHT.js";
|
11
11
|
import "../runtime-BSkOVUWM.js";
|
12
12
|
|
13
13
|
export { FetchError, LanguageString, exportMultibaseKey, exportSpki, fetchDocumentLoader, getAuthenticatedDocumentLoader, getDocumentLoader, getUserAgent, importMultibaseKey, importPem, importPkcs1, importSpki, kvCache };
|
@@ -7,7 +7,7 @@ import { assertEquals } from "../../assert_equals-Dnj7ejjL.js";
|
|
7
7
|
import "../../assert-YJk-1DlZ.js";
|
8
8
|
import "../../assert_instance_of-DBIoG5k7.js";
|
9
9
|
import { codes, decode, decodeText, encode, encodeText, names } from "../../multibase-DeCHcK8L.js";
|
10
|
-
import { test } from "../../testing-
|
10
|
+
import { test } from "../../testing-BZ0dJ4qn.js";
|
11
11
|
import "../../std__assert-CHXwj7zk.js";
|
12
12
|
import "../../assert_rejects-BZjUwo62.js";
|
13
13
|
import "../../assert_is_error-jyzqjHud.js";
|
package/dist/runtime/url.test.js
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
import { assertEquals } from "../assert_equals-Dnj7ejjL.js";
|
7
7
|
import { assert } from "../assert-YJk-1DlZ.js";
|
8
8
|
import { UrlError, expandIPv6Address, isValidPublicIPv4Address, isValidPublicIPv6Address, validatePublicUrl } from "../url-kTAI6_KP.js";
|
9
|
-
import { test } from "../testing-
|
9
|
+
import { test } from "../testing-BZ0dJ4qn.js";
|
10
10
|
import { assertFalse, assertRejects } from "../assert_rejects-BZjUwo62.js";
|
11
11
|
import "../assert_is_error-jyzqjHud.js";
|
12
12
|
|
@@ -39,7 +39,7 @@ const BUILD = `(?:\\+(?<buildmetadata>${BUILD_IDENTIFIER}(?:\\.${BUILD_IDENTIFIE
|
|
39
39
|
* A version, followed optionally by a pre-release version and build metadata.
|
40
40
|
*/
|
41
41
|
const FULL_VERSION = `v?${VERSION_CORE}${PRERELEASE}?${BUILD}?`;
|
42
|
-
const FULL_REGEXP = new RegExp(`^${FULL_VERSION}$`);
|
42
|
+
const FULL_REGEXP = /* @__PURE__ */ new RegExp(`^${FULL_VERSION}$`);
|
43
43
|
/**
|
44
44
|
* Attempt to parse a string as a semantic version, returning a SemVer object.
|
45
45
|
*
|
@@ -93,7 +93,7 @@ function parseSemVer(value) {
|
|
93
93
|
function isValidNumber(value) {
|
94
94
|
return typeof value === "number" && !Number.isNaN(value) && (!Number.isFinite(value) || 0 <= value && value <= Number.MAX_SAFE_INTEGER);
|
95
95
|
}
|
96
|
-
const NUMERIC_IDENTIFIER_REGEXP = new RegExp(`^${NUMERIC_IDENTIFIER}$`);
|
96
|
+
const NUMERIC_IDENTIFIER_REGEXP = /* @__PURE__ */ new RegExp(`^${NUMERIC_IDENTIFIER}$`);
|
97
97
|
function parsePrerelease(prerelease) {
|
98
98
|
return prerelease.split(".").filter(Boolean).map((id) => {
|
99
99
|
if (NUMERIC_IDENTIFIER_REGEXP.test(id)) {
|
@@ -3,8 +3,8 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import { deno_default } from "./docloader-
|
7
|
-
import { doubleKnock } from "./http-
|
6
|
+
import { deno_default } from "./docloader-DMwgPTaH.js";
|
7
|
+
import { doubleKnock } from "./http-DIp-Nofe.js";
|
8
8
|
import { getLogger } from "@logtape/logtape";
|
9
9
|
import { SpanKind, SpanStatusCode, trace } from "@opentelemetry/api";
|
10
10
|
|
package/dist/sig/http.test.js
CHANGED
@@ -6,25 +6,25 @@
|
|
6
6
|
import { assertEquals } from "../assert_equals-Dnj7ejjL.js";
|
7
7
|
import { assert } from "../assert-YJk-1DlZ.js";
|
8
8
|
import "../assert_instance_of-DBIoG5k7.js";
|
9
|
-
import "../docloader-
|
9
|
+
import "../docloader-DMwgPTaH.js";
|
10
10
|
import "../url-kTAI6_KP.js";
|
11
11
|
import "../multibase-DeCHcK8L.js";
|
12
|
-
import { exportSpki } from "../vocab-
|
12
|
+
import { exportSpki } from "../vocab-BTj5WfK3.js";
|
13
13
|
import "../langstr-DbWheeIS.js";
|
14
|
-
import "../lookup-
|
14
|
+
import "../lookup-0rfbBli1.js";
|
15
15
|
import "../type-D2s5lmbZ.js";
|
16
|
-
import "../actor-
|
17
|
-
import { exportJwk } from "../key-
|
18
|
-
import { createRfc9421SignatureBase, doubleKnock, formatRfc9421Signature, formatRfc9421SignatureParameters, parseRfc9421Signature, parseRfc9421SignatureInput, signRequest, timingSafeEqual, verifyRequest } from "../http-
|
19
|
-
import { test } from "../testing-
|
16
|
+
import "../actor-CCwKVyYD.js";
|
17
|
+
import { exportJwk } from "../key-CLOZqhvI.js";
|
18
|
+
import { createRfc9421SignatureBase, doubleKnock, formatRfc9421Signature, formatRfc9421SignatureParameters, parseRfc9421Signature, parseRfc9421SignatureInput, signRequest, timingSafeEqual, verifyRequest } from "../http-DIp-Nofe.js";
|
19
|
+
import { test } from "../testing-BZ0dJ4qn.js";
|
20
20
|
import { assertExists, assertStringIncludes } from "../std__assert-CHXwj7zk.js";
|
21
21
|
import { assertFalse } from "../assert_rejects-BZjUwo62.js";
|
22
22
|
import "../assert_is_error-jyzqjHud.js";
|
23
23
|
import "../assert_not_equals-wx-SRs4i.js";
|
24
24
|
import "../assert_throws-gBPv3v2V.js";
|
25
25
|
import { mockDocumentLoader } from "../docloader-09nVWLAZ.js";
|
26
|
-
import { rsaPrivateKey2, rsaPublicKey1, rsaPublicKey2, rsaPublicKey5 } from "../keys-
|
27
|
-
import { esm_default } from "../esm-
|
26
|
+
import { rsaPrivateKey2, rsaPublicKey1, rsaPublicKey2, rsaPublicKey5 } from "../keys-Dstgvoyj.js";
|
27
|
+
import { esm_default } from "../esm-CASHO3OR.js";
|
28
28
|
import { encodeBase64 } from "byte-encodings/base64";
|
29
29
|
|
30
30
|
//#region sig/http.test.ts
|
@@ -325,7 +325,7 @@ test("verifyRequest() [rfc9421] successful GET verification", async () => {
|
|
325
325
|
contextLoader: mockDocumentLoader,
|
326
326
|
documentLoader: mockDocumentLoader,
|
327
327
|
spec: "rfc9421",
|
328
|
-
currentTime: Temporal.Instant.from(`${new Date(currentTimestamp * 1e3).toISOString()}`)
|
328
|
+
currentTime: Temporal.Instant.from(`${(/* @__PURE__ */ new Date(currentTimestamp * 1e3)).toISOString()}`)
|
329
329
|
});
|
330
330
|
assertEquals(verifiedKey, rsaPublicKey2, "Valid signature should verify to the correct public key");
|
331
331
|
});
|
@@ -449,7 +449,7 @@ test("verifyRequest() [rfc9421] error cases and edge cases", async () => {
|
|
449
449
|
contextLoader: mockDocumentLoader,
|
450
450
|
documentLoader: mockDocumentLoader,
|
451
451
|
spec: "rfc9421",
|
452
|
-
currentTime: Temporal.Instant.from(`${new Date((currentTimestamp + 2592e3) * 1e3).toISOString()}`),
|
452
|
+
currentTime: Temporal.Instant.from(`${(/* @__PURE__ */ new Date((currentTimestamp + 2592e3) * 1e3)).toISOString()}`),
|
453
453
|
timeWindow: { hours: 1 }
|
454
454
|
});
|
455
455
|
assertEquals(expiredResult, null, "Should fail verification when signature timestamp is too old");
|
@@ -467,7 +467,7 @@ test("verifyRequest() [rfc9421] error cases and edge cases", async () => {
|
|
467
467
|
contextLoader: mockDocumentLoader,
|
468
468
|
documentLoader: mockDocumentLoader,
|
469
469
|
spec: "rfc9421",
|
470
|
-
currentTime: Temporal.Instant.from(`${new Date((currentTimestamp - 2592e3) * 1e3).toISOString()}`),
|
470
|
+
currentTime: Temporal.Instant.from(`${(/* @__PURE__ */ new Date((currentTimestamp - 2592e3) * 1e3)).toISOString()}`),
|
471
471
|
timeWindow: { hours: 1 }
|
472
472
|
});
|
473
473
|
assertEquals(futureResult, null, "Should fail verification when signature timestamp is in the future");
|
@@ -485,7 +485,7 @@ test("verifyRequest() [rfc9421] error cases and edge cases", async () => {
|
|
485
485
|
contextLoader: mockDocumentLoader,
|
486
486
|
documentLoader: mockDocumentLoader,
|
487
487
|
spec: "rfc9421",
|
488
|
-
currentTime: Temporal.Instant.from(`${new Date((currentTimestamp + 31536e3) * 1e3).toISOString()}`),
|
488
|
+
currentTime: Temporal.Instant.from(`${(/* @__PURE__ */ new Date((currentTimestamp + 31536e3) * 1e3)).toISOString()}`),
|
489
489
|
timeWindow: false
|
490
490
|
});
|
491
491
|
assertEquals(timeDisabledResult, rsaPublicKey2, "Should verify signature when time checking is disabled");
|
@@ -522,7 +522,7 @@ test("verifyRequest() [rfc9421] error cases and edge cases", async () => {
|
|
522
522
|
contextLoader: mockDocumentLoader,
|
523
523
|
documentLoader: mockDocumentLoader,
|
524
524
|
spec: "rfc9421",
|
525
|
-
currentTime: Temporal.Instant.from(`${new Date(currentTimestamp * 1e3).toISOString()}`)
|
525
|
+
currentTime: Temporal.Instant.from(`${(/* @__PURE__ */ new Date(currentTimestamp * 1e3)).toISOString()}`)
|
526
526
|
});
|
527
527
|
assertEquals(tamperDigestResult, null, "Should fail verification with invalid Content-Digest");
|
528
528
|
const testRequest = new Request("https://example.com/", { headers: new Headers({
|
@@ -590,7 +590,7 @@ test("verifyRequest() [rfc9421] error cases and edge cases", async () => {
|
|
590
590
|
contextLoader: mockDocumentLoader,
|
591
591
|
documentLoader: mockDocumentLoader,
|
592
592
|
spec: "rfc9421",
|
593
|
-
currentTime: Temporal.Instant.from(`${new Date(currentTimestamp * 1e3).toISOString()}`)
|
593
|
+
currentTime: Temporal.Instant.from(`${(/* @__PURE__ */ new Date(currentTimestamp * 1e3)).toISOString()}`)
|
594
594
|
});
|
595
595
|
assertEquals(mixedResult, rsaPublicKey2, "Should verify when at least one signature is valid");
|
596
596
|
});
|
package/dist/sig/key.test.js
CHANGED
@@ -6,23 +6,23 @@
|
|
6
6
|
import { assertEquals } from "../assert_equals-Dnj7ejjL.js";
|
7
7
|
import "../assert-YJk-1DlZ.js";
|
8
8
|
import "../assert_instance_of-DBIoG5k7.js";
|
9
|
-
import "../docloader-
|
9
|
+
import "../docloader-DMwgPTaH.js";
|
10
10
|
import "../url-kTAI6_KP.js";
|
11
11
|
import "../multibase-DeCHcK8L.js";
|
12
|
-
import { CryptographicKey, Multikey } from "../vocab-
|
12
|
+
import { CryptographicKey, Multikey } from "../vocab-BTj5WfK3.js";
|
13
13
|
import "../langstr-DbWheeIS.js";
|
14
|
-
import "../lookup-
|
14
|
+
import "../lookup-0rfbBli1.js";
|
15
15
|
import "../type-D2s5lmbZ.js";
|
16
|
-
import "../actor-
|
17
|
-
import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk, validateCryptoKey } from "../key-
|
18
|
-
import { test } from "../testing-
|
16
|
+
import "../actor-CCwKVyYD.js";
|
17
|
+
import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk, validateCryptoKey } from "../key-CLOZqhvI.js";
|
18
|
+
import { test } from "../testing-BZ0dJ4qn.js";
|
19
19
|
import "../std__assert-CHXwj7zk.js";
|
20
20
|
import { assertRejects } from "../assert_rejects-BZjUwo62.js";
|
21
21
|
import "../assert_is_error-jyzqjHud.js";
|
22
22
|
import "../assert_not_equals-wx-SRs4i.js";
|
23
23
|
import { assertThrows } from "../assert_throws-gBPv3v2V.js";
|
24
24
|
import { mockDocumentLoader } from "../docloader-09nVWLAZ.js";
|
25
|
-
import { ed25519Multikey, rsaPrivateKey2, rsaPublicKey1, rsaPublicKey2, rsaPublicKey3 } from "../keys-
|
25
|
+
import { ed25519Multikey, rsaPrivateKey2, rsaPublicKey1, rsaPublicKey2, rsaPublicKey3 } from "../keys-Dstgvoyj.js";
|
26
26
|
|
27
27
|
//#region sig/key.test.ts
|
28
28
|
test("validateCryptoKey()", async () => {
|
package/dist/sig/ld.test.js
CHANGED
@@ -5,22 +5,22 @@
|
|
5
5
|
|
6
6
|
import { assertEquals } from "../assert_equals-Dnj7ejjL.js";
|
7
7
|
import { assert } from "../assert-YJk-1DlZ.js";
|
8
|
-
import "../docloader-
|
8
|
+
import "../docloader-DMwgPTaH.js";
|
9
9
|
import "../url-kTAI6_KP.js";
|
10
10
|
import "../multibase-DeCHcK8L.js";
|
11
|
-
import { CryptographicKey } from "../vocab-
|
11
|
+
import { CryptographicKey } from "../vocab-BTj5WfK3.js";
|
12
12
|
import "../langstr-DbWheeIS.js";
|
13
|
-
import "../lookup-
|
13
|
+
import "../lookup-0rfbBli1.js";
|
14
14
|
import "../type-D2s5lmbZ.js";
|
15
|
-
import "../actor-
|
16
|
-
import { generateCryptoKeyPair } from "../key-
|
17
|
-
import { attachSignature, createSignature, detachSignature, signJsonLd, verifyJsonLd, verifySignature } from "../ld-
|
18
|
-
import { test } from "../testing-
|
15
|
+
import "../actor-CCwKVyYD.js";
|
16
|
+
import { generateCryptoKeyPair } from "../key-CLOZqhvI.js";
|
17
|
+
import { attachSignature, createSignature, detachSignature, signJsonLd, verifyJsonLd, verifySignature } from "../ld-CE4MeMYU.js";
|
18
|
+
import { test } from "../testing-BZ0dJ4qn.js";
|
19
19
|
import { assertFalse, assertRejects } from "../assert_rejects-BZjUwo62.js";
|
20
20
|
import "../assert_is_error-jyzqjHud.js";
|
21
21
|
import { assertThrows } from "../assert_throws-gBPv3v2V.js";
|
22
22
|
import { mockDocumentLoader } from "../docloader-09nVWLAZ.js";
|
23
|
-
import { ed25519Multikey, ed25519PrivateKey, rsaPrivateKey2, rsaPrivateKey3, rsaPublicKey2, rsaPublicKey3 } from "../keys-
|
23
|
+
import { ed25519Multikey, ed25519PrivateKey, rsaPrivateKey2, rsaPrivateKey3, rsaPublicKey2, rsaPublicKey3 } from "../keys-Dstgvoyj.js";
|
24
24
|
import { encodeBase64 } from "byte-encodings/base64";
|
25
25
|
|
26
26
|
//#region sig/ld.test.ts
|
package/dist/sig/mod.js
CHANGED
@@ -2,12 +2,12 @@
|
|
2
2
|
import { Temporal } from "@js-temporal/polyfill";
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
|
5
|
-
import "../docloader-
|
6
|
-
import "../actor-
|
7
|
-
import "../lookup-
|
8
|
-
import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk } from "../key-
|
9
|
-
import { signRequest, verifyRequest } from "../http-
|
10
|
-
import { attachSignature, createProof, createSignature, detachSignature, doesActorOwnKey, getKeyOwner, signJsonLd, signObject, verifyJsonLd, verifyObject, verifyProof, verifySignature } from "../proof-
|
5
|
+
import "../docloader-YLjCHzbv.js";
|
6
|
+
import "../actor-DQsqHVyQ.js";
|
7
|
+
import "../lookup-DvKouya1.js";
|
8
|
+
import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk } from "../key-CXEHrdky.js";
|
9
|
+
import { signRequest, verifyRequest } from "../http-CI51jrbs.js";
|
10
|
+
import { attachSignature, createProof, createSignature, detachSignature, doesActorOwnKey, getKeyOwner, signJsonLd, signObject, verifyJsonLd, verifyObject, verifyProof, verifySignature } from "../proof-CWTAtwln.js";
|
11
11
|
import "../sig-BXJO--F9.js";
|
12
12
|
|
13
13
|
export { attachSignature, createProof, createSignature, detachSignature, doesActorOwnKey, exportJwk, fetchKey, generateCryptoKeyPair, getKeyOwner, importJwk, signJsonLd, signObject, signRequest, verifyJsonLd, verifyObject, verifyProof, verifyRequest, verifySignature };
|
package/dist/sig/owner.test.js
CHANGED
@@ -6,25 +6,25 @@
|
|
6
6
|
import { assertEquals } from "../assert_equals-Dnj7ejjL.js";
|
7
7
|
import { assert } from "../assert-YJk-1DlZ.js";
|
8
8
|
import "../assert_instance_of-DBIoG5k7.js";
|
9
|
-
import "../docloader-
|
9
|
+
import "../docloader-DMwgPTaH.js";
|
10
10
|
import "../url-kTAI6_KP.js";
|
11
11
|
import "../multibase-DeCHcK8L.js";
|
12
|
-
import { Create } from "../vocab-
|
12
|
+
import { Create } from "../vocab-BTj5WfK3.js";
|
13
13
|
import "../langstr-DbWheeIS.js";
|
14
|
-
import "../lookup-
|
14
|
+
import "../lookup-0rfbBli1.js";
|
15
15
|
import "../type-D2s5lmbZ.js";
|
16
|
-
import "../actor-
|
17
|
-
import "../key-
|
18
|
-
import { doesActorOwnKey, getKeyOwner } from "../owner-
|
19
|
-
import { lookupObject } from "../lookup-
|
20
|
-
import { test } from "../testing-
|
16
|
+
import "../actor-CCwKVyYD.js";
|
17
|
+
import "../key-CLOZqhvI.js";
|
18
|
+
import { doesActorOwnKey, getKeyOwner } from "../owner-u2cBHFa8.js";
|
19
|
+
import { lookupObject } from "../lookup-9Sutc_q3.js";
|
20
|
+
import { test } from "../testing-BZ0dJ4qn.js";
|
21
21
|
import "../std__assert-CHXwj7zk.js";
|
22
22
|
import { assertFalse } from "../assert_rejects-BZjUwo62.js";
|
23
23
|
import "../assert_is_error-jyzqjHud.js";
|
24
24
|
import "../assert_not_equals-wx-SRs4i.js";
|
25
25
|
import "../assert_throws-gBPv3v2V.js";
|
26
26
|
import { mockDocumentLoader } from "../docloader-09nVWLAZ.js";
|
27
|
-
import { rsaPublicKey1, rsaPublicKey2 } from "../keys-
|
27
|
+
import { rsaPublicKey1, rsaPublicKey2 } from "../keys-Dstgvoyj.js";
|
28
28
|
|
29
29
|
//#region sig/owner.test.ts
|
30
30
|
test("doesActorOwnKey()", async () => {
|
package/dist/sig/proof.test.js
CHANGED
@@ -6,24 +6,24 @@
|
|
6
6
|
import { assertEquals } from "../assert_equals-Dnj7ejjL.js";
|
7
7
|
import "../assert-YJk-1DlZ.js";
|
8
8
|
import { assertInstanceOf } from "../assert_instance_of-DBIoG5k7.js";
|
9
|
-
import "../docloader-
|
9
|
+
import "../docloader-DMwgPTaH.js";
|
10
10
|
import "../url-kTAI6_KP.js";
|
11
11
|
import { decode } from "../multibase-DeCHcK8L.js";
|
12
|
-
import { Create, DataIntegrityProof, Multikey, Note, Place, importMultibaseKey } from "../vocab-
|
12
|
+
import { Create, DataIntegrityProof, Multikey, Note, Place, importMultibaseKey } from "../vocab-BTj5WfK3.js";
|
13
13
|
import "../langstr-DbWheeIS.js";
|
14
|
-
import "../lookup-
|
14
|
+
import "../lookup-0rfbBli1.js";
|
15
15
|
import "../type-D2s5lmbZ.js";
|
16
|
-
import "../actor-
|
17
|
-
import "../key-
|
18
|
-
import { createProof, signObject, verifyObject, verifyProof } from "../proof-
|
19
|
-
import { test } from "../testing-
|
16
|
+
import "../actor-CCwKVyYD.js";
|
17
|
+
import "../key-CLOZqhvI.js";
|
18
|
+
import { createProof, signObject, verifyObject, verifyProof } from "../proof-BaBhQqjH.js";
|
19
|
+
import { test } from "../testing-BZ0dJ4qn.js";
|
20
20
|
import "../std__assert-CHXwj7zk.js";
|
21
21
|
import { assertRejects } from "../assert_rejects-BZjUwo62.js";
|
22
22
|
import "../assert_is_error-jyzqjHud.js";
|
23
23
|
import "../assert_not_equals-wx-SRs4i.js";
|
24
24
|
import "../assert_throws-gBPv3v2V.js";
|
25
25
|
import { mockDocumentLoader } from "../docloader-09nVWLAZ.js";
|
26
|
-
import { ed25519Multikey, ed25519PrivateKey, ed25519PublicKey, rsaPrivateKey2, rsaPublicKey2 } from "../keys-
|
26
|
+
import { ed25519Multikey, ed25519PrivateKey, ed25519PublicKey, rsaPrivateKey2, rsaPublicKey2 } from "../keys-Dstgvoyj.js";
|
27
27
|
import { decodeHex, encodeHex } from "byte-encodings/hex";
|
28
28
|
|
29
29
|
//#region sig/proof.test.ts
|
@@ -63,7 +63,7 @@ test("createProof()", async () => {
|
|
63
63
|
assertEquals(proof.verificationMethodId, ed25519PublicKey.id);
|
64
64
|
assertEquals(proof.proofPurpose, "assertionMethod");
|
65
65
|
console.log(encodeHex(proof.proofValue));
|
66
|
-
assertEquals(proof.proofValue, decodeHex("
|
66
|
+
assertEquals(proof.proofValue, decodeHex("203e6afc5b7c6affe08d2d67ad100cc6cdcf1f5a438063d16766204956aa8fdd67cc04088ccf69de36225cab19377b5a032542fd2454b9b9dd001ffbdef5aa03"));
|
67
67
|
assertEquals(proof.created, created);
|
68
68
|
assertEquals(await verifyProof(await create.toJsonLd({
|
69
69
|
format: "compact",
|
@@ -6,7 +6,7 @@
|
|
6
6
|
import { assertEquals } from "../assert_equals-Dnj7ejjL.js";
|
7
7
|
import "../assert-YJk-1DlZ.js";
|
8
8
|
import "../assert_instance_of-DBIoG5k7.js";
|
9
|
-
import { test } from "../testing-
|
9
|
+
import { test } from "../testing-BZ0dJ4qn.js";
|
10
10
|
import "../std__assert-CHXwj7zk.js";
|
11
11
|
import "../assert_rejects-BZjUwo62.js";
|
12
12
|
import "../assert_is_error-jyzqjHud.js";
|
package/dist/testing/mod.js
CHANGED
@@ -133,7 +133,7 @@ function caller() {
|
|
133
133
|
const Trace = Error;
|
134
134
|
const _ = Trace.prepareStackTrace;
|
135
135
|
Trace.prepareStackTrace = (_$1, stack$1) => stack$1;
|
136
|
-
const { stack } = new Error();
|
136
|
+
const { stack } = /* @__PURE__ */ new Error();
|
137
137
|
Trace.prepareStackTrace = _;
|
138
138
|
const caller$1 = stack[2];
|
139
139
|
return caller$1.getFileName().replaceAll("\\", "/");
|
@@ -2,7 +2,7 @@
|
|
2
2
|
import { Temporal } from "@js-temporal/polyfill";
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
|
5
|
-
import { getUserAgent } from "./docloader-
|
5
|
+
import { getUserAgent } from "./docloader-YLjCHzbv.js";
|
6
6
|
import { getLogger } from "@logtape/logtape";
|
7
7
|
|
8
8
|
//#region nodeinfo/semver.ts
|
@@ -41,7 +41,7 @@ const BUILD = `(?:\\+(?<buildmetadata>${BUILD_IDENTIFIER}(?:\\.${BUILD_IDENTIFIE
|
|
41
41
|
* A version, followed optionally by a pre-release version and build metadata.
|
42
42
|
*/
|
43
43
|
const FULL_VERSION = `v?${VERSION_CORE}${PRERELEASE}?${BUILD}?`;
|
44
|
-
const FULL_REGEXP = new RegExp(`^${FULL_VERSION}$`);
|
44
|
+
const FULL_REGEXP = /* @__PURE__ */ new RegExp(`^${FULL_VERSION}$`);
|
45
45
|
/**
|
46
46
|
* Attempt to parse a string as a semantic version, returning a SemVer object.
|
47
47
|
*
|
@@ -95,7 +95,7 @@ function parseSemVer(value) {
|
|
95
95
|
function isValidNumber(value) {
|
96
96
|
return typeof value === "number" && !Number.isNaN(value) && (!Number.isFinite(value) || 0 <= value && value <= Number.MAX_SAFE_INTEGER);
|
97
97
|
}
|
98
|
-
const NUMERIC_IDENTIFIER_REGEXP = new RegExp(`^${NUMERIC_IDENTIFIER}$`);
|
98
|
+
const NUMERIC_IDENTIFIER_REGEXP = /* @__PURE__ */ new RegExp(`^${NUMERIC_IDENTIFIER}$`);
|
99
99
|
function parsePrerelease(prerelease) {
|
100
100
|
return prerelease.split(".").filter(Boolean).map((id) => {
|
101
101
|
if (NUMERIC_IDENTIFIER_REGEXP.test(id)) {
|
package/dist/vocab/actor.test.js
CHANGED
@@ -7,21 +7,21 @@ import { __export } from "../chunk-HsBuZ-b2.js";
|
|
7
7
|
import { assertEquals } from "../assert_equals-Dnj7ejjL.js";
|
8
8
|
import { assert } from "../assert-YJk-1DlZ.js";
|
9
9
|
import "../assert_instance_of-DBIoG5k7.js";
|
10
|
-
import "../docloader-
|
10
|
+
import "../docloader-DMwgPTaH.js";
|
11
11
|
import "../url-kTAI6_KP.js";
|
12
12
|
import "../multibase-DeCHcK8L.js";
|
13
|
-
import { Application, Group, Organization, Person, Service } from "../vocab-
|
13
|
+
import { Application, Group, Organization, Person, Service } from "../vocab-BTj5WfK3.js";
|
14
14
|
import "../langstr-DbWheeIS.js";
|
15
|
-
import "../lookup-
|
15
|
+
import "../lookup-0rfbBli1.js";
|
16
16
|
import "../type-D2s5lmbZ.js";
|
17
|
-
import { getActorClassByTypeName, getActorHandle, getActorTypeName, isActor, normalizeActorHandle } from "../actor-
|
18
|
-
import { test } from "../testing-
|
17
|
+
import { getActorClassByTypeName, getActorHandle, getActorTypeName, isActor, normalizeActorHandle } from "../actor-CCwKVyYD.js";
|
18
|
+
import { test } from "../testing-BZ0dJ4qn.js";
|
19
19
|
import { assertStrictEquals } from "../std__assert-CHXwj7zk.js";
|
20
20
|
import { assertFalse, assertRejects } from "../assert_rejects-BZjUwo62.js";
|
21
21
|
import "../assert_is_error-jyzqjHud.js";
|
22
22
|
import "../assert_not_equals-wx-SRs4i.js";
|
23
23
|
import { assertThrows } from "../assert_throws-gBPv3v2V.js";
|
24
|
-
import { esm_default } from "../esm-
|
24
|
+
import { esm_default } from "../esm-CASHO3OR.js";
|
25
25
|
|
26
26
|
//#region node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/precondition/PreconditionFailure.js
|
27
27
|
var PreconditionFailure = class PreconditionFailure extends Error {
|
@@ -5385,7 +5385,7 @@ const safePositiveInfinity = Number.POSITIVE_INFINITY;
|
|
5385
5385
|
const safeNaN = NaN;
|
5386
5386
|
function safeFloatToIndex(f, constraintsLabel) {
|
5387
5387
|
const conversionTrick = "you can convert any double to a 32-bit float by using `Math.fround(myDouble)`";
|
5388
|
-
const errorMessage = "fc.float constraints." + constraintsLabel + " must be a 32-bit float -
|
5388
|
+
const errorMessage = "fc.float constraints." + constraintsLabel + " must be a 32-bit float - you can convert any double to a 32-bit float by using `Math.fround(myDouble)`";
|
5389
5389
|
if (safeNumberIsNaN(f) || safeMathFround(f) !== f) throw new Error(errorMessage);
|
5390
5390
|
return floatToIndex(f);
|
5391
5391
|
}
|
package/dist/vocab/announce.yaml
CHANGED
@@ -16,7 +16,9 @@ defaultContext:
|
|
16
16
|
misskey: "https://misskey-hub.net/ns#"
|
17
17
|
fedibird: "http://fedibird.com/ns#"
|
18
18
|
sensitive: "as:sensitive"
|
19
|
-
votersCount:
|
19
|
+
votersCount:
|
20
|
+
"@id": "toot:votersCount"
|
21
|
+
"@type": "http://www.w3.org/2001/XMLSchema#nonNegativeInteger"
|
20
22
|
Emoji: "toot:Emoji"
|
21
23
|
Hashtag: "as:Hashtag"
|
22
24
|
quoteUrl: "as:quoteUrl"
|
package/dist/vocab/create.yaml
CHANGED
@@ -13,7 +13,9 @@ defaultContext:
|
|
13
13
|
misskey: "https://misskey-hub.net/ns#"
|
14
14
|
fedibird: "http://fedibird.com/ns#"
|
15
15
|
sensitive: "as:sensitive"
|
16
|
-
votersCount:
|
16
|
+
votersCount:
|
17
|
+
"@id": "toot:votersCount"
|
18
|
+
"@type": "http://www.w3.org/2001/XMLSchema#nonNegativeInteger"
|
17
19
|
Emoji: "toot:Emoji"
|
18
20
|
Hashtag: "as:Hashtag"
|
19
21
|
ChatMessage: "http://litepub.social/ns#ChatMessage"
|
package/dist/vocab/delete.yaml
CHANGED
@@ -15,7 +15,9 @@ defaultContext:
|
|
15
15
|
misskey: "https://misskey-hub.net/ns#"
|
16
16
|
fedibird: "http://fedibird.com/ns#"
|
17
17
|
sensitive: "as:sensitive"
|
18
|
-
votersCount:
|
18
|
+
votersCount:
|
19
|
+
"@id": "toot:votersCount"
|
20
|
+
"@type": "http://www.w3.org/2001/XMLSchema#nonNegativeInteger"
|
19
21
|
Emoji: "toot:Emoji"
|
20
22
|
Hashtag: "as:Hashtag"
|
21
23
|
ChatMessage: "http://litepub.social/ns#ChatMessage"
|
@@ -6,22 +6,22 @@
|
|
6
6
|
import { assertEquals } from "../assert_equals-Dnj7ejjL.js";
|
7
7
|
import "../assert-YJk-1DlZ.js";
|
8
8
|
import { assertInstanceOf } from "../assert_instance_of-DBIoG5k7.js";
|
9
|
-
import "../docloader-
|
9
|
+
import "../docloader-DMwgPTaH.js";
|
10
10
|
import "../url-kTAI6_KP.js";
|
11
11
|
import "../multibase-DeCHcK8L.js";
|
12
|
-
import { Collection, Note, Object as Object$1, Person } from "../vocab-
|
12
|
+
import { Collection, Note, Object as Object$1, Person } from "../vocab-BTj5WfK3.js";
|
13
13
|
import "../langstr-DbWheeIS.js";
|
14
|
-
import "../lookup-
|
14
|
+
import "../lookup-0rfbBli1.js";
|
15
15
|
import "../type-D2s5lmbZ.js";
|
16
|
-
import { lookupObject, traverseCollection } from "../lookup-
|
17
|
-
import { test } from "../testing-
|
16
|
+
import { lookupObject, traverseCollection } from "../lookup-9Sutc_q3.js";
|
17
|
+
import { test } from "../testing-BZ0dJ4qn.js";
|
18
18
|
import "../std__assert-CHXwj7zk.js";
|
19
19
|
import "../assert_rejects-BZjUwo62.js";
|
20
20
|
import "../assert_is_error-jyzqjHud.js";
|
21
21
|
import "../assert_not_equals-wx-SRs4i.js";
|
22
22
|
import "../assert_throws-gBPv3v2V.js";
|
23
23
|
import { mockDocumentLoader } from "../docloader-09nVWLAZ.js";
|
24
|
-
import { esm_default } from "../esm-
|
24
|
+
import { esm_default } from "../esm-CASHO3OR.js";
|
25
25
|
|
26
26
|
//#region vocab/lookup.test.ts
|
27
27
|
test("lookupObject()", async (t) => {
|
package/dist/vocab/mod.js
CHANGED
@@ -2,9 +2,9 @@
|
|
2
2
|
import { Temporal } from "@js-temporal/polyfill";
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
|
5
|
-
import "../docloader-
|
6
|
-
import { Accept, Activity, Add, Announce, Application, Arrive, Article, Audio, Block, ChatMessage, Collection, CollectionPage, Create, CryptographicKey, DataIntegrityProof, Delete, DidService, Dislike, Document, Emoji, EmojiReact, Endpoints, Event, Export, Flag, Follow, Group, Hashtag, Ignore, Image, IntransitiveActivity, Invite, Join, Leave, Like, Link, Listen, Mention, Move, Multikey, Note, Object as Object$1, Offer, OrderedCollection, OrderedCollectionPage, Organization, Page, Person, Place, Profile, PropertyValue, Question, Read, Reject, Relationship, Remove, Service, Source, TentativeAccept, TentativeReject, Tombstone, Travel, Undo, Update, Video, View, getActorClassByTypeName, getActorHandle, getActorTypeName, getTypeId, isActor, normalizeActorHandle } from "../actor-
|
7
|
-
import "../lookup-
|
8
|
-
import { PUBLIC_COLLECTION, lookupObject, traverseCollection } from "../vocab-
|
5
|
+
import "../docloader-YLjCHzbv.js";
|
6
|
+
import { Accept, Activity, Add, Announce, Application, Arrive, Article, Audio, Block, ChatMessage, Collection, CollectionPage, Create, CryptographicKey, DataIntegrityProof, Delete, DidService, Dislike, Document, Emoji, EmojiReact, Endpoints, Event, Export, Flag, Follow, Group, Hashtag, Ignore, Image, IntransitiveActivity, Invite, Join, Leave, Like, Link, Listen, Mention, Move, Multikey, Note, Object as Object$1, Offer, OrderedCollection, OrderedCollectionPage, Organization, Page, Person, Place, Profile, PropertyValue, Question, Read, Reject, Relationship, Remove, Service, Source, TentativeAccept, TentativeReject, Tombstone, Travel, Undo, Update, Video, View, getActorClassByTypeName, getActorHandle, getActorTypeName, getTypeId, isActor, normalizeActorHandle } from "../actor-DQsqHVyQ.js";
|
7
|
+
import "../lookup-DvKouya1.js";
|
8
|
+
import { PUBLIC_COLLECTION, lookupObject, traverseCollection } from "../vocab-Bcmgxvr_.js";
|
9
9
|
|
10
10
|
export { Accept, Activity, Add, Announce, Application, Arrive, Article, Audio, Block, ChatMessage, Collection, CollectionPage, Create, CryptographicKey, DataIntegrityProof, Delete, DidService, Dislike, Document, Emoji, EmojiReact, Endpoints, Event, Export, Flag, Follow, Group, Hashtag, Ignore, Image, IntransitiveActivity, Invite, Join, Leave, Like, Link, Listen, Mention, Move, Multikey, Note, Object$1 as Object, Offer, OrderedCollection, OrderedCollectionPage, Organization, PUBLIC_COLLECTION, Page, Person, Place, Profile, PropertyValue, Question, Read, Reject, Relationship, Remove, Service, Source, TentativeAccept, TentativeReject, Tombstone, Travel, Undo, Update, Video, View, getActorClassByTypeName, getActorHandle, getActorTypeName, getTypeId, isActor, lookupObject, normalizeActorHandle, traverseCollection };
|
package/dist/vocab/question.yaml
CHANGED
@@ -21,7 +21,9 @@ defaultContext:
|
|
21
21
|
misskey: "https://misskey-hub.net/ns#"
|
22
22
|
fedibird: "http://fedibird.com/ns#"
|
23
23
|
sensitive: "as:sensitive"
|
24
|
-
votersCount:
|
24
|
+
votersCount:
|
25
|
+
"@id": "toot:votersCount"
|
26
|
+
"@type": "http://www.w3.org/2001/XMLSchema#nonNegativeInteger"
|
25
27
|
Emoji: "toot:Emoji"
|
26
28
|
Hashtag: "as:Hashtag"
|
27
29
|
quoteUrl: "as:quoteUrl"
|
package/dist/vocab/type.test.js
CHANGED
@@ -4,13 +4,13 @@
|
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
6
|
import { assertEquals } from "../assert_equals-Dnj7ejjL.js";
|
7
|
-
import "../docloader-
|
7
|
+
import "../docloader-DMwgPTaH.js";
|
8
8
|
import "../url-kTAI6_KP.js";
|
9
9
|
import "../multibase-DeCHcK8L.js";
|
10
|
-
import { Person } from "../vocab-
|
10
|
+
import { Person } from "../vocab-BTj5WfK3.js";
|
11
11
|
import "../langstr-DbWheeIS.js";
|
12
12
|
import { getTypeId } from "../type-D2s5lmbZ.js";
|
13
|
-
import { test } from "../testing-
|
13
|
+
import { test } from "../testing-BZ0dJ4qn.js";
|
14
14
|
|
15
15
|
//#region vocab/type.test.ts
|
16
16
|
test("getTypeId()", () => {
|
package/dist/vocab/update.yaml
CHANGED
@@ -37,7 +37,9 @@ defaultContext:
|
|
37
37
|
suspended: "toot:suspended"
|
38
38
|
memorial: "toot:memorial"
|
39
39
|
indexable: "toot:indexable"
|
40
|
-
votersCount:
|
40
|
+
votersCount:
|
41
|
+
"@id": "toot:votersCount"
|
42
|
+
"@type": "http://www.w3.org/2001/XMLSchema#nonNegativeInteger"
|
41
43
|
Emoji: "toot:Emoji"
|
42
44
|
Hashtag: "as:Hashtag"
|
43
45
|
schema: "http://schema.org#"
|