@fedify/fedify 1.8.1-pr.328.1159 → 1.8.1-pr.331.1169
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/README.md +4 -1
- package/dist/{actor-LkF6aqGd.js → actor-CM9DhmYG.js} +179 -179
- package/dist/{actor-BI_2abz3.js → actor-CXiBUxzX.js} +1 -4
- package/dist/{assert_rejects-DceVjUlD.js → assert_rejects-AjlKk-Vo.js} +1 -1
- package/dist/{assert_throws-DTDC_gwN.js → assert_throws-CqMKbTh_.js} +1 -1
- package/dist/{authdocloader-Bn1wpyy1.js → authdocloader-CoK1cNSv.js} +3 -4
- package/dist/{authdocloader-DeF41lCp.js → authdocloader-CxTR6Cx7.js} +3 -3
- package/dist/{builder-ypgCZZ9b.js → builder-D5PVNw-f.js} +4 -5
- package/dist/{client-D_GpybaE.js → client-Deo5HWuU.js} +2 -2
- package/dist/compat/transformers.test.js +20 -27
- package/dist/{docloader-ZcdrjMf8.js → docloader-CoCVFIdd.js} +2 -1
- package/dist/{esm-d-9EVGaP.js → esm-EXQbXMPG.js} +1 -1
- package/dist/federation/builder.test.js +11 -16
- package/dist/federation/collection.test.js +9 -7
- package/dist/federation/handler.test.js +26 -35
- package/dist/federation/inbox.test.js +6 -10
- package/dist/federation/keycache.test.js +4 -7
- package/dist/federation/kv.test.js +8 -6
- package/dist/federation/middleware.test.js +27 -35
- package/dist/federation/mod.js +10 -10
- package/dist/federation/mq.test.js +10 -8
- package/dist/federation/retry.test.js +5 -3
- package/dist/federation/router.test.js +8 -7
- package/dist/federation/send.test.js +15 -21
- package/dist/{http-CzYP-q4a.js → http-BMGJhytW.js} +2 -3
- package/dist/{http-BzbQEWKu.js → http-C2JU_TBj.js} +3 -3
- package/dist/{inbox-C3u7wpp-.js → inbox-BPbz_ao6.js} +1 -3
- package/dist/{key-ctbEcqup.js → key-Cw4UVtxp.js} +2 -3
- package/dist/{key-DpPVsVBo.js → key-DN4BIKz_.js} +4 -4
- package/dist/key-IO1BOpia.js +10 -0
- package/dist/{key-DuMiqGNl.js → key-OtdoFkXm.js} +2 -2
- package/dist/{keycache-B4MVJOqX.js → keycache-VoOwxP0J.js} +1 -1
- package/dist/{keys-8BtWAvD6.js → keys-BLkL01oe.js} +1 -1
- package/dist/{ld-DpsRY9hw.js → ld-DzSYkEZt.js} +2 -4
- package/dist/{lookup-Cl-flyHw.js → lookup-C_W_03GR.js} +1 -1
- package/dist/{lookup-DrKu09YQ.js → lookup-DmCcT32H.js} +113 -6
- package/dist/middleware-BOpaJuMq.js +26 -0
- package/dist/{middleware-Bel3idhw.js → middleware-CpvSNOWP.js} +11 -11
- package/dist/{middleware-_FILA5XM.js → middleware-D5a8IwLT.js} +17 -21
- package/dist/middleware-DsTB1RZr.js +17 -0
- package/dist/mod.js +10 -10
- package/dist/nodeinfo/client.test.js +11 -11
- package/dist/nodeinfo/handler.test.js +25 -34
- package/dist/nodeinfo/mod.js +2 -2
- package/dist/nodeinfo/semver.test.js +9 -7
- package/dist/nodeinfo/types.test.js +10 -8
- package/dist/{owner-MQpfmrEp.js → owner-B7WC4XMm.js} +2 -3
- package/dist/{proof-BmJlaEuD.js → proof-DGvKD7fj.js} +3 -3
- package/dist/{proof-C3Gb_y9R.js → proof-DZgS1afh.js} +2 -4
- package/dist/runtime/authdocloader.test.js +14 -20
- package/dist/runtime/docloader.test.js +9 -10
- package/dist/runtime/key.test.js +10 -15
- package/dist/runtime/langstr.test.js +8 -7
- package/dist/runtime/mod.js +6 -6
- package/dist/runtime/multibase/multibase.test.js +8 -7
- package/dist/runtime/url.test.js +5 -4
- package/dist/{send-B95nXWtF.js → send-KqOpWmPm.js} +2 -2
- package/dist/sig/http.test.js +13 -19
- package/dist/sig/key.test.js +11 -17
- package/dist/sig/ld.test.js +10 -16
- package/dist/sig/mod.js +6 -6
- package/dist/sig/owner.test.js +12 -19
- package/dist/sig/proof.test.js +12 -18
- package/dist/testing/docloader.test.js +8 -7
- package/dist/testing/mod.d.ts +8387 -1
- package/dist/testing/mod.js +4 -2
- package/dist/testing-Ckz8sJMd.js +301 -0
- package/dist/{vocab-BczrO3jQ.js → type-C5cdRbDh.js} +5255 -183
- package/dist/{types-C7C_l-jz.js → types-n7HI7VFr.js} +1 -1
- package/dist/{types-BACpZoAu.js → types-zNofm6uK.js} +1 -1
- package/dist/vocab/actor.test.js +10 -16
- package/dist/vocab/lookup.test.js +9 -16
- package/dist/vocab/mod.js +4 -4
- package/dist/vocab/type.test.js +3 -7
- package/dist/vocab/vocab.test.js +9 -13
- package/dist/{vocab-BFQwOXsO.js → vocab-B-ZpQXwI.js} +3 -3
- package/dist/webfinger/handler.test.js +25 -34
- package/dist/webfinger/lookup.test.js +9 -10
- package/dist/webfinger/mod.js +2 -2
- package/dist/x/cfworkers.test.js +8 -6
- package/package.json +1 -1
- package/dist/chunk-HsBuZ-b2.js +0 -41
- package/dist/context-wTS6NVpw.js +0 -108
- package/dist/docloader-09nVWLAZ.js +0 -68
- package/dist/docloader-4n0wKCuD.js +0 -4526
- package/dist/key-BDYWJlpE.js +0 -16
- package/dist/langstr-DbWheeIS.js +0 -33
- package/dist/lookup-CIZBWILo.js +0 -132
- package/dist/middleware-BoSxCdkz.js +0 -17
- package/dist/middleware-Db3gnzbt.js +0 -33
- package/dist/multibase-DeCHcK8L.js +0 -316
- package/dist/router-D3UybECj.js +0 -118
- package/dist/testing-BZ0dJ4qn.js +0 -143
- package/dist/type-D2s5lmbZ.js +0 -14
- package/dist/url-kTAI6_KP.js +0 -68
- /package/dist/{assert_is_error-DQdKoRgb.js → assert_is_error-CeVBLPsZ.js} +0 -0
- /package/dist/{assert_not_equals-7pyUM3Ib.js → assert_not_equals-D2R2nl5h.js} +0 -0
- /package/dist/{collection-Dfb0TPno.js → collection-D5V3UzU3.js} +0 -0
- /package/dist/{denokv-QWKsIqML.js → denokv-DK9P5Jq7.js} +0 -0
- /package/dist/{retry-BiIhZWgD.js → retry-BnpVRGFC.js} +0 -0
- /package/dist/{semver-DWClQt_5.js → semver-DCqorrj5.js} +0 -0
- /package/dist/{std__assert-B3iAixc-.js → std__assert-BQdmxyzF.js} +0 -0
|
@@ -3,30 +3,24 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
+
import { Activity, Application, Endpoints, Group, Person, Service } from "../type-C5cdRbDh.js";
|
|
6
7
|
import { assertEquals } from "../assert_equals-C5gKCm6A.js";
|
|
7
8
|
import { assert } from "../assert-DwEa6glZ.js";
|
|
8
9
|
import "../assert_instance_of-C9QtN-X9.js";
|
|
9
|
-
import "../
|
|
10
|
-
import "../
|
|
11
|
-
import "../
|
|
12
|
-
import {
|
|
13
|
-
import "../
|
|
14
|
-
import "../
|
|
15
|
-
import "../
|
|
16
|
-
import "../
|
|
17
|
-
import "../
|
|
18
|
-
import
|
|
19
|
-
import {
|
|
20
|
-
import
|
|
21
|
-
import {
|
|
22
|
-
import "../
|
|
23
|
-
import { assertFalse, assertRejects } from "../assert_rejects-DceVjUlD.js";
|
|
24
|
-
import "../assert_is_error-DQdKoRgb.js";
|
|
25
|
-
import { assertNotEquals } from "../assert_not_equals-7pyUM3Ib.js";
|
|
26
|
-
import "../assert_throws-DTDC_gwN.js";
|
|
27
|
-
import { mockDocumentLoader } from "../docloader-09nVWLAZ.js";
|
|
28
|
-
import { ed25519Multikey, ed25519PrivateKey, rsaPrivateKey2, rsaPublicKey2 } from "../keys-8BtWAvD6.js";
|
|
29
|
-
import { esm_default } from "../esm-d-9EVGaP.js";
|
|
10
|
+
import "../lookup-DmCcT32H.js";
|
|
11
|
+
import "../actor-CXiBUxzX.js";
|
|
12
|
+
import "../key-Cw4UVtxp.js";
|
|
13
|
+
import { verifyRequest } from "../http-BMGJhytW.js";
|
|
14
|
+
import { doesActorOwnKey } from "../owner-B7WC4XMm.js";
|
|
15
|
+
import { extractInboxes, sendActivity } from "../send-KqOpWmPm.js";
|
|
16
|
+
import { mockDocumentLoader, test } from "../testing-Ckz8sJMd.js";
|
|
17
|
+
import "../std__assert-BQdmxyzF.js";
|
|
18
|
+
import { assertFalse, assertRejects } from "../assert_rejects-AjlKk-Vo.js";
|
|
19
|
+
import "../assert_is_error-CeVBLPsZ.js";
|
|
20
|
+
import { assertNotEquals } from "../assert_not_equals-D2R2nl5h.js";
|
|
21
|
+
import "../assert_throws-CqMKbTh_.js";
|
|
22
|
+
import { ed25519Multikey, ed25519PrivateKey, rsaPrivateKey2, rsaPublicKey2 } from "../keys-BLkL01oe.js";
|
|
23
|
+
import { esm_default } from "../esm-EXQbXMPG.js";
|
|
30
24
|
|
|
31
25
|
//#region federation/send.test.ts
|
|
32
26
|
test("extractInboxes()", () => {
|
|
@@ -3,9 +3,8 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { deno_default } from "./
|
|
7
|
-
import {
|
|
8
|
-
import { fetchKey, validateCryptoKey } from "./key-ctbEcqup.js";
|
|
6
|
+
import { CryptographicKey, deno_default } from "./type-C5cdRbDh.js";
|
|
7
|
+
import { fetchKey, validateCryptoKey } from "./key-Cw4UVtxp.js";
|
|
9
8
|
import { getLogger } from "@logtape/logtape";
|
|
10
9
|
import { SpanStatusCode, trace } from "@opentelemetry/api";
|
|
11
10
|
import { ATTR_HTTP_REQUEST_HEADER, ATTR_HTTP_REQUEST_METHOD, ATTR_URL_FULL } from "@opentelemetry/semantic-conventions";
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import { Temporal } from "@js-temporal/polyfill";
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
|
|
5
|
-
import { deno_default } from "./docloader-
|
|
6
|
-
import { CryptographicKey } from "./actor-
|
|
7
|
-
import { fetchKey, validateCryptoKey } from "./key-
|
|
5
|
+
import { deno_default } from "./docloader-CoCVFIdd.js";
|
|
6
|
+
import { CryptographicKey } from "./actor-CM9DhmYG.js";
|
|
7
|
+
import { fetchKey, validateCryptoKey } from "./key-OtdoFkXm.js";
|
|
8
8
|
import { getLogger } from "@logtape/logtape";
|
|
9
9
|
import { SpanStatusCode, trace } from "@opentelemetry/api";
|
|
10
10
|
import { decodeBase64, encodeBase64 } from "byte-encodings/base64";
|
|
@@ -3,9 +3,7 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { deno_default } from "./
|
|
7
|
-
import { Activity } from "./vocab-BczrO3jQ.js";
|
|
8
|
-
import { getTypeId } from "./type-D2s5lmbZ.js";
|
|
6
|
+
import { Activity, deno_default, getTypeId } from "./type-C5cdRbDh.js";
|
|
9
7
|
import { getLogger } from "@logtape/logtape";
|
|
10
8
|
import { SpanKind, SpanStatusCode, context, propagation, trace } from "@opentelemetry/api";
|
|
11
9
|
|
|
@@ -3,9 +3,8 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { deno_default, getDocumentLoader } from "./
|
|
7
|
-
import {
|
|
8
|
-
import { isActor } from "./actor-BI_2abz3.js";
|
|
6
|
+
import { CryptographicKey, Object as Object$1, deno_default, getDocumentLoader } from "./type-C5cdRbDh.js";
|
|
7
|
+
import { isActor } from "./actor-CXiBUxzX.js";
|
|
9
8
|
import { getLogger } from "@logtape/logtape";
|
|
10
9
|
import { SpanKind, SpanStatusCode, trace } from "@opentelemetry/api";
|
|
11
10
|
|
|
@@ -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 "./actor-
|
|
7
|
-
import "./lookup-
|
|
8
|
-
import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk, validateCryptoKey } from "./key-
|
|
5
|
+
import "./docloader-CoCVFIdd.js";
|
|
6
|
+
import "./actor-CM9DhmYG.js";
|
|
7
|
+
import "./lookup-C_W_03GR.js";
|
|
8
|
+
import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk, validateCryptoKey } from "./key-OtdoFkXm.js";
|
|
9
9
|
|
|
10
10
|
export { validateCryptoKey };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
|
|
2
|
+
import { Temporal } from "@js-temporal/polyfill";
|
|
3
|
+
import { URLPattern } from "urlpattern-polyfill";
|
|
4
|
+
globalThis.addEventListener = () => {};
|
|
5
|
+
|
|
6
|
+
import "./type-C5cdRbDh.js";
|
|
7
|
+
import "./actor-CXiBUxzX.js";
|
|
8
|
+
import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk, validateCryptoKey } from "./key-Cw4UVtxp.js";
|
|
9
|
+
|
|
10
|
+
export { validateCryptoKey };
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import { Temporal } from "@js-temporal/polyfill";
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
|
|
5
|
-
import { deno_default, getDocumentLoader } from "./docloader-
|
|
6
|
-
import { CryptographicKey, Object as Object$1, isActor } from "./actor-
|
|
5
|
+
import { deno_default, getDocumentLoader } from "./docloader-CoCVFIdd.js";
|
|
6
|
+
import { CryptographicKey, Object as Object$1, isActor } from "./actor-CM9DhmYG.js";
|
|
7
7
|
import { getLogger } from "@logtape/logtape";
|
|
8
8
|
import { SpanKind, SpanStatusCode, trace } from "@opentelemetry/api";
|
|
9
9
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { CryptographicKey, Multikey } from "./
|
|
6
|
+
import { CryptographicKey, Multikey } from "./type-C5cdRbDh.js";
|
|
7
7
|
|
|
8
8
|
//#region federation/keycache.ts
|
|
9
9
|
var KvKeyCache = class {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { CryptographicKey, Multikey, importSpki } from "./
|
|
6
|
+
import { CryptographicKey, Multikey, importSpki } from "./type-C5cdRbDh.js";
|
|
7
7
|
|
|
8
8
|
//#region testing/keys.ts
|
|
9
9
|
const rsaPublicKey1 = new CryptographicKey({
|
|
@@ -3,10 +3,8 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { deno_default, getDocumentLoader } from "./
|
|
7
|
-
import {
|
|
8
|
-
import { getTypeId } from "./type-D2s5lmbZ.js";
|
|
9
|
-
import { fetchKey, validateCryptoKey } from "./key-ctbEcqup.js";
|
|
6
|
+
import { Activity, CryptographicKey, Object as Object$1, deno_default, getDocumentLoader, getTypeId } from "./type-C5cdRbDh.js";
|
|
7
|
+
import { fetchKey, validateCryptoKey } from "./key-Cw4UVtxp.js";
|
|
10
8
|
import { getLogger } from "@logtape/logtape";
|
|
11
9
|
import { SpanStatusCode, trace } from "@opentelemetry/api";
|
|
12
10
|
import { decodeBase64, encodeBase64 } from "byte-encodings/base64";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { Temporal } from "@js-temporal/polyfill";
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
|
|
5
|
-
import { UrlError, deno_default, getUserAgent, validatePublicUrl } from "./docloader-
|
|
5
|
+
import { UrlError, deno_default, getUserAgent, validatePublicUrl } from "./docloader-CoCVFIdd.js";
|
|
6
6
|
import { getLogger } from "@logtape/logtape";
|
|
7
7
|
import { SpanKind, SpanStatusCode, trace } from "@opentelemetry/api";
|
|
8
8
|
|
|
@@ -3,14 +3,121 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { deno_default, getDocumentLoader } from "./
|
|
7
|
-
import {
|
|
8
|
-
import { lookupWebFinger } from "./lookup-CIZBWILo.js";
|
|
9
|
-
import { getTypeId } from "./type-D2s5lmbZ.js";
|
|
10
|
-
import { delay } from "es-toolkit";
|
|
6
|
+
import { Object as Object$1, deno_default, getDocumentLoader, getTypeId, lookupWebFinger } from "./type-C5cdRbDh.js";
|
|
7
|
+
import { cloneDeep, delay } from "es-toolkit";
|
|
11
8
|
import { getLogger } from "@logtape/logtape";
|
|
12
9
|
import { SpanStatusCode, trace } from "@opentelemetry/api";
|
|
10
|
+
import { Router } from "uri-template-router";
|
|
11
|
+
import { parseTemplate } from "url-template";
|
|
13
12
|
|
|
13
|
+
//#region federation/router.ts
|
|
14
|
+
function cloneInnerRouter(router) {
|
|
15
|
+
const clone = new Router();
|
|
16
|
+
clone.nid = router.nid;
|
|
17
|
+
clone.fsm = cloneDeep(router.fsm);
|
|
18
|
+
clone.routeSet = new Set(router.routeSet);
|
|
19
|
+
clone.templateRouteMap = new Map(router.templateRouteMap);
|
|
20
|
+
clone.valueRouteMap = new Map(router.valueRouteMap);
|
|
21
|
+
clone.hierarchy = cloneDeep(router.hierarchy);
|
|
22
|
+
return clone;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* URL router and constructor based on URI Template
|
|
26
|
+
* ([RFC 6570](https://tools.ietf.org/html/rfc6570)).
|
|
27
|
+
*/
|
|
28
|
+
var Router$1 = class Router$1 {
|
|
29
|
+
#router;
|
|
30
|
+
#templates;
|
|
31
|
+
#templateStrings;
|
|
32
|
+
/**
|
|
33
|
+
* Whether to ignore trailing slashes when matching paths.
|
|
34
|
+
* @since 1.6.0
|
|
35
|
+
*/
|
|
36
|
+
trailingSlashInsensitive;
|
|
37
|
+
/**
|
|
38
|
+
* Create a new {@link Router}.
|
|
39
|
+
* @param options Options for the router.
|
|
40
|
+
*/
|
|
41
|
+
constructor(options = {}) {
|
|
42
|
+
this.#router = new Router();
|
|
43
|
+
this.#templates = {};
|
|
44
|
+
this.#templateStrings = {};
|
|
45
|
+
this.trailingSlashInsensitive = options.trailingSlashInsensitive ?? false;
|
|
46
|
+
}
|
|
47
|
+
clone() {
|
|
48
|
+
const clone = new Router$1({ trailingSlashInsensitive: this.trailingSlashInsensitive });
|
|
49
|
+
clone.#router = cloneInnerRouter(this.#router);
|
|
50
|
+
clone.#templates = { ...this.#templates };
|
|
51
|
+
clone.#templateStrings = { ...this.#templateStrings };
|
|
52
|
+
return clone;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Checks if a path name exists in the router.
|
|
56
|
+
* @param name The name of the path.
|
|
57
|
+
* @returns `true` if the path name exists, otherwise `false`.
|
|
58
|
+
*/
|
|
59
|
+
has(name) {
|
|
60
|
+
return name in this.#templates;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Adds a new path rule to the router.
|
|
64
|
+
* @param template The path pattern.
|
|
65
|
+
* @param name The name of the path.
|
|
66
|
+
* @returns The names of the variables in the path pattern.
|
|
67
|
+
*/
|
|
68
|
+
add(template, name) {
|
|
69
|
+
if (!template.startsWith("/")) throw new RouterError("Path must start with a slash.");
|
|
70
|
+
const rule = this.#router.addTemplate(template, {}, name);
|
|
71
|
+
this.#templates[name] = parseTemplate(template);
|
|
72
|
+
this.#templateStrings[name] = template;
|
|
73
|
+
return new Set(rule.variables.map((v) => v.varname));
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Resolves a path name and values from a URL, if any match.
|
|
77
|
+
* @param url The URL to resolve.
|
|
78
|
+
* @returns The name of the path and its values, if any match. Otherwise,
|
|
79
|
+
* `null`.
|
|
80
|
+
*/
|
|
81
|
+
route(url) {
|
|
82
|
+
let match = this.#router.resolveURI(url);
|
|
83
|
+
if (match == null) {
|
|
84
|
+
if (!this.trailingSlashInsensitive) return null;
|
|
85
|
+
url = url.endsWith("/") ? url.replace(/\/+$/, "") : `${url}/`;
|
|
86
|
+
match = this.#router.resolveURI(url);
|
|
87
|
+
if (match == null) return null;
|
|
88
|
+
}
|
|
89
|
+
return {
|
|
90
|
+
name: match.matchValue,
|
|
91
|
+
template: this.#templateStrings[match.matchValue],
|
|
92
|
+
values: match.params
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* Constructs a URL/path from a path name and values.
|
|
97
|
+
* @param name The name of the path.
|
|
98
|
+
* @param values The values to expand the path with.
|
|
99
|
+
* @returns The URL/path, if the name exists. Otherwise, `null`.
|
|
100
|
+
*/
|
|
101
|
+
build(name, values) {
|
|
102
|
+
if (name in this.#templates) return this.#templates[name].expand(values);
|
|
103
|
+
return null;
|
|
104
|
+
}
|
|
105
|
+
};
|
|
106
|
+
/**
|
|
107
|
+
* An error thrown by the {@link Router}.
|
|
108
|
+
*/
|
|
109
|
+
var RouterError = class extends Error {
|
|
110
|
+
/**
|
|
111
|
+
* Create a new {@link RouterError}.
|
|
112
|
+
* @param message The error message.
|
|
113
|
+
*/
|
|
114
|
+
constructor(message) {
|
|
115
|
+
super(message);
|
|
116
|
+
this.name = "RouterError";
|
|
117
|
+
}
|
|
118
|
+
};
|
|
119
|
+
|
|
120
|
+
//#endregion
|
|
14
121
|
//#region vocab/handle.ts
|
|
15
122
|
/**
|
|
16
123
|
* Regular expression to match a fediverse handle in the format `@user@server`
|
|
@@ -211,4 +318,4 @@ async function* traverseCollection(collection, options = {}) {
|
|
|
211
318
|
}
|
|
212
319
|
|
|
213
320
|
//#endregion
|
|
214
|
-
export { lookupObject, traverseCollection };
|
|
321
|
+
export { Router$1 as Router, RouterError, lookupObject, traverseCollection };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
|
|
2
|
+
import { Temporal } from "@js-temporal/polyfill";
|
|
3
|
+
import { URLPattern } from "urlpattern-polyfill";
|
|
4
|
+
globalThis.addEventListener = () => {};
|
|
5
|
+
|
|
6
|
+
import "./type-C5cdRbDh.js";
|
|
7
|
+
import { ContextImpl, FederationImpl, InboxContextImpl, KvSpecDeterminer, createFederation } from "./middleware-D5a8IwLT.js";
|
|
8
|
+
import "./semver-DCqorrj5.js";
|
|
9
|
+
import "./client-Deo5HWuU.js";
|
|
10
|
+
import "./lookup-DmCcT32H.js";
|
|
11
|
+
import "./types-n7HI7VFr.js";
|
|
12
|
+
import "./actor-CXiBUxzX.js";
|
|
13
|
+
import "./key-Cw4UVtxp.js";
|
|
14
|
+
import "./http-BMGJhytW.js";
|
|
15
|
+
import "./authdocloader-CoK1cNSv.js";
|
|
16
|
+
import "./ld-DzSYkEZt.js";
|
|
17
|
+
import "./owner-B7WC4XMm.js";
|
|
18
|
+
import "./proof-DZgS1afh.js";
|
|
19
|
+
import "./inbox-BPbz_ao6.js";
|
|
20
|
+
import "./builder-D5PVNw-f.js";
|
|
21
|
+
import "./collection-D5V3UzU3.js";
|
|
22
|
+
import "./keycache-VoOwxP0J.js";
|
|
23
|
+
import "./retry-BnpVRGFC.js";
|
|
24
|
+
import "./send-KqOpWmPm.js";
|
|
25
|
+
|
|
26
|
+
export { FederationImpl };
|
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
|
|
5
5
|
import { getDefaultActivityTransformers } from "./transformers-ghwJuzGY.js";
|
|
6
|
-
import { deno_default, getDocumentLoader, kvCache } from "./docloader-
|
|
7
|
-
import { Activity, CryptographicKey, Link, Multikey, Object as Object$1, OrderedCollection, OrderedCollectionPage, getTypeId } from "./actor-
|
|
8
|
-
import { lookupWebFinger } from "./lookup-
|
|
9
|
-
import { exportJwk, importJwk, validateCryptoKey } from "./key-
|
|
10
|
-
import { doubleKnock, verifyRequest } from "./http-
|
|
11
|
-
import { detachSignature, doesActorOwnKey, getKeyOwner, hasSignature, signJsonLd, signObject, verifyJsonLd, verifyObject } from "./proof-
|
|
12
|
-
import { getNodeInfo, nodeInfoToJson } from "./types-
|
|
13
|
-
import { getAuthenticatedDocumentLoader } from "./authdocloader-
|
|
14
|
-
import { lookupObject, traverseCollection } from "./vocab-
|
|
6
|
+
import { deno_default, getDocumentLoader, kvCache } from "./docloader-CoCVFIdd.js";
|
|
7
|
+
import { Activity, CryptographicKey, Link, Multikey, Object as Object$1, OrderedCollection, OrderedCollectionPage, getTypeId } from "./actor-CM9DhmYG.js";
|
|
8
|
+
import { lookupWebFinger } from "./lookup-C_W_03GR.js";
|
|
9
|
+
import { exportJwk, importJwk, validateCryptoKey } from "./key-OtdoFkXm.js";
|
|
10
|
+
import { doubleKnock, verifyRequest } from "./http-C2JU_TBj.js";
|
|
11
|
+
import { detachSignature, doesActorOwnKey, getKeyOwner, hasSignature, signJsonLd, signObject, verifyJsonLd, verifyObject } from "./proof-DGvKD7fj.js";
|
|
12
|
+
import { getNodeInfo, nodeInfoToJson } from "./types-zNofm6uK.js";
|
|
13
|
+
import { getAuthenticatedDocumentLoader } from "./authdocloader-CxTR6Cx7.js";
|
|
14
|
+
import { lookupObject, traverseCollection } from "./vocab-B-ZpQXwI.js";
|
|
15
15
|
import { getLogger, withContext } from "@logtape/logtape";
|
|
16
16
|
import { SpanKind, SpanStatusCode, context, propagation, trace } from "@opentelemetry/api";
|
|
17
17
|
import { encodeHex } from "byte-encodings/hex";
|
|
@@ -312,7 +312,7 @@ var FederationBuilderImpl = class {
|
|
|
312
312
|
this.objectTypeIds = {};
|
|
313
313
|
}
|
|
314
314
|
async build(options) {
|
|
315
|
-
const { FederationImpl: FederationImpl$1 } = await import("./middleware-
|
|
315
|
+
const { FederationImpl: FederationImpl$1 } = await import("./middleware-DsTB1RZr.js");
|
|
316
316
|
const f = new FederationImpl$1(options);
|
|
317
317
|
const trailingSlashInsensitiveValue = f.router.trailingSlashInsensitive;
|
|
318
318
|
f.router = this.router.clone();
|
|
@@ -3240,7 +3240,7 @@ var RequestContextImpl = class RequestContextImpl extends ContextImpl {
|
|
|
3240
3240
|
#invokedFromActorDispatcher;
|
|
3241
3241
|
#invokedFromObjectDispatcher;
|
|
3242
3242
|
request;
|
|
3243
|
-
url;
|
|
3243
|
+
url = void 0;
|
|
3244
3244
|
constructor(options) {
|
|
3245
3245
|
super(options);
|
|
3246
3246
|
this.#invokedFromActorDispatcher = options.invokedFromActorDispatcher;
|
|
@@ -3,26 +3,22 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { deno_default, getDocumentLoader, kvCache } from "./
|
|
7
|
-
import { getNodeInfo } from "./client-
|
|
8
|
-
import { RouterError } from "./
|
|
9
|
-
import { nodeInfoToJson } from "./types-
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import { buildCollectionSynchronizationHeader } from "./collection-Dfb0TPno.js";
|
|
23
|
-
import { KvKeyCache } from "./keycache-B4MVJOqX.js";
|
|
24
|
-
import { createExponentialBackoffPolicy } from "./retry-BiIhZWgD.js";
|
|
25
|
-
import { extractInboxes, sendActivity } from "./send-B95nXWtF.js";
|
|
6
|
+
import { Activity, CryptographicKey, Link, Multikey, Object as Object$1, OrderedCollection, OrderedCollectionPage, deno_default, getDocumentLoader, getTypeId, kvCache, lookupWebFinger } from "./type-C5cdRbDh.js";
|
|
7
|
+
import { getNodeInfo } from "./client-Deo5HWuU.js";
|
|
8
|
+
import { RouterError, lookupObject, traverseCollection } from "./lookup-DmCcT32H.js";
|
|
9
|
+
import { nodeInfoToJson } from "./types-n7HI7VFr.js";
|
|
10
|
+
import { exportJwk, importJwk, validateCryptoKey } from "./key-Cw4UVtxp.js";
|
|
11
|
+
import { verifyRequest } from "./http-BMGJhytW.js";
|
|
12
|
+
import { getAuthenticatedDocumentLoader } from "./authdocloader-CoK1cNSv.js";
|
|
13
|
+
import { detachSignature, hasSignature, signJsonLd, verifyJsonLd } from "./ld-DzSYkEZt.js";
|
|
14
|
+
import { doesActorOwnKey, getKeyOwner } from "./owner-B7WC4XMm.js";
|
|
15
|
+
import { signObject, verifyObject } from "./proof-DZgS1afh.js";
|
|
16
|
+
import { routeActivity } from "./inbox-BPbz_ao6.js";
|
|
17
|
+
import { FederationBuilderImpl } from "./builder-D5PVNw-f.js";
|
|
18
|
+
import { buildCollectionSynchronizationHeader } from "./collection-D5V3UzU3.js";
|
|
19
|
+
import { KvKeyCache } from "./keycache-VoOwxP0J.js";
|
|
20
|
+
import { createExponentialBackoffPolicy } from "./retry-BnpVRGFC.js";
|
|
21
|
+
import { extractInboxes, sendActivity } from "./send-KqOpWmPm.js";
|
|
26
22
|
import { getLogger, withContext } from "@logtape/logtape";
|
|
27
23
|
import { SpanKind, SpanStatusCode, context, propagation, trace } from "@opentelemetry/api";
|
|
28
24
|
import { ATTR_HTTP_REQUEST_HEADER, ATTR_HTTP_REQUEST_METHOD, ATTR_HTTP_RESPONSE_HEADER, ATTR_HTTP_RESPONSE_STATUS_CODE, ATTR_URL_FULL } from "@opentelemetry/semantic-conventions";
|
|
@@ -2375,7 +2371,7 @@ var RequestContextImpl = class RequestContextImpl extends ContextImpl {
|
|
|
2375
2371
|
#invokedFromActorDispatcher;
|
|
2376
2372
|
#invokedFromObjectDispatcher;
|
|
2377
2373
|
request;
|
|
2378
|
-
url;
|
|
2374
|
+
url = void 0;
|
|
2379
2375
|
constructor(options) {
|
|
2380
2376
|
super(options);
|
|
2381
2377
|
this.#invokedFromActorDispatcher = options.invokedFromActorDispatcher;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
|
|
2
|
+
import { Temporal } from "@js-temporal/polyfill";
|
|
3
|
+
import { URLPattern } from "urlpattern-polyfill";
|
|
4
|
+
|
|
5
|
+
import "./transformers-ghwJuzGY.js";
|
|
6
|
+
import "./docloader-CoCVFIdd.js";
|
|
7
|
+
import "./actor-CM9DhmYG.js";
|
|
8
|
+
import { ContextImpl, FederationImpl, InboxContextImpl, KvSpecDeterminer, createFederation } from "./middleware-CpvSNOWP.js";
|
|
9
|
+
import "./lookup-C_W_03GR.js";
|
|
10
|
+
import "./key-OtdoFkXm.js";
|
|
11
|
+
import "./http-C2JU_TBj.js";
|
|
12
|
+
import "./proof-DGvKD7fj.js";
|
|
13
|
+
import "./types-zNofm6uK.js";
|
|
14
|
+
import "./authdocloader-CxTR6Cx7.js";
|
|
15
|
+
import "./vocab-B-ZpQXwI.js";
|
|
16
|
+
|
|
17
|
+
export { FederationImpl };
|
package/dist/mod.js
CHANGED
|
@@ -4,17 +4,17 @@
|
|
|
4
4
|
|
|
5
5
|
import { actorDehydrator, autoIdAssigner, getDefaultActivityTransformers } from "./transformers-ghwJuzGY.js";
|
|
6
6
|
import "./compat-Bb5myD13.js";
|
|
7
|
-
import { FetchError, fetchDocumentLoader, getDocumentLoader, getUserAgent, kvCache } from "./docloader-
|
|
8
|
-
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, LanguageString, 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, exportMultibaseKey, exportSpki, getActorClassByTypeName, getActorHandle, getActorTypeName, getTypeId, importMultibaseKey, importPem, importPkcs1, importSpki, isActor, normalizeActorHandle } from "./actor-
|
|
9
|
-
import { Router, RouterError, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable } from "./middleware-
|
|
10
|
-
import { lookupWebFinger } from "./lookup-
|
|
11
|
-
import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk } from "./key-
|
|
12
|
-
import { signRequest, verifyRequest } from "./http-
|
|
13
|
-
import { attachSignature, createProof, createSignature, detachSignature, doesActorOwnKey, getKeyOwner, signJsonLd, signObject, verifyJsonLd, verifyObject, verifyProof, verifySignature } from "./proof-
|
|
7
|
+
import { FetchError, fetchDocumentLoader, getDocumentLoader, getUserAgent, kvCache } from "./docloader-CoCVFIdd.js";
|
|
8
|
+
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, LanguageString, 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, exportMultibaseKey, exportSpki, getActorClassByTypeName, getActorHandle, getActorTypeName, getTypeId, importMultibaseKey, importPem, importPkcs1, importSpki, isActor, normalizeActorHandle } from "./actor-CM9DhmYG.js";
|
|
9
|
+
import { Router, RouterError, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable } from "./middleware-CpvSNOWP.js";
|
|
10
|
+
import { lookupWebFinger } from "./lookup-C_W_03GR.js";
|
|
11
|
+
import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk } from "./key-OtdoFkXm.js";
|
|
12
|
+
import { signRequest, verifyRequest } from "./http-C2JU_TBj.js";
|
|
13
|
+
import { attachSignature, createProof, createSignature, detachSignature, doesActorOwnKey, getKeyOwner, signJsonLd, signObject, verifyJsonLd, verifyObject, verifyProof, verifySignature } from "./proof-DGvKD7fj.js";
|
|
14
14
|
import { InProcessMessageQueue, MemoryKvStore, ParallelMessageQueue } from "./federation-C44ekWNP.js";
|
|
15
|
-
import { formatSemVer, getNodeInfo, nodeInfoToJson, parseNodeInfo, parseSemVer } from "./types-
|
|
16
|
-
import { getAuthenticatedDocumentLoader } from "./authdocloader-
|
|
17
|
-
import { PUBLIC_COLLECTION, isFediverseHandle, lookupObject, parseFediverseHandle, toAcctUrl, traverseCollection } from "./vocab-
|
|
15
|
+
import { formatSemVer, getNodeInfo, nodeInfoToJson, parseNodeInfo, parseSemVer } from "./types-zNofm6uK.js";
|
|
16
|
+
import { getAuthenticatedDocumentLoader } from "./authdocloader-CxTR6Cx7.js";
|
|
17
|
+
import { PUBLIC_COLLECTION, isFediverseHandle, lookupObject, parseFediverseHandle, toAcctUrl, traverseCollection } from "./vocab-B-ZpQXwI.js";
|
|
18
18
|
import "./nodeinfo-CyEbLjHs.js";
|
|
19
19
|
import "./runtime-BSkOVUWM.js";
|
|
20
20
|
import "./sig-BXJO--F9.js";
|
|
@@ -3,20 +3,20 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
+
import "../type-C5cdRbDh.js";
|
|
6
7
|
import { assertEquals } from "../assert_equals-C5gKCm6A.js";
|
|
7
8
|
import "../assert-DwEa6glZ.js";
|
|
8
9
|
import "../assert_instance_of-C9QtN-X9.js";
|
|
9
|
-
import "../
|
|
10
|
-
import "../
|
|
11
|
-
import "../
|
|
12
|
-
import {
|
|
13
|
-
import
|
|
14
|
-
import "../
|
|
15
|
-
import "../
|
|
16
|
-
import "../
|
|
17
|
-
import "../
|
|
18
|
-
import "../
|
|
19
|
-
import { esm_default } from "../esm-d-9EVGaP.js";
|
|
10
|
+
import "../semver-DCqorrj5.js";
|
|
11
|
+
import { getNodeInfo, parseInboundService, parseNodeInfo, parseOutboundService, parseProtocol, parseServices, parseSoftware, parseUsage } from "../client-Deo5HWuU.js";
|
|
12
|
+
import "../lookup-DmCcT32H.js";
|
|
13
|
+
import { test } from "../testing-Ckz8sJMd.js";
|
|
14
|
+
import "../std__assert-BQdmxyzF.js";
|
|
15
|
+
import "../assert_rejects-AjlKk-Vo.js";
|
|
16
|
+
import "../assert_is_error-CeVBLPsZ.js";
|
|
17
|
+
import "../assert_not_equals-D2R2nl5h.js";
|
|
18
|
+
import "../assert_throws-CqMKbTh_.js";
|
|
19
|
+
import { esm_default } from "../esm-EXQbXMPG.js";
|
|
20
20
|
|
|
21
21
|
//#region nodeinfo/client.test.ts
|
|
22
22
|
test("getNodeInfo()", async (t) => {
|
|
@@ -3,44 +3,35 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
+
import "../type-C5cdRbDh.js";
|
|
6
7
|
import { assertEquals } from "../assert_equals-C5gKCm6A.js";
|
|
7
8
|
import "../assert-DwEa6glZ.js";
|
|
8
9
|
import "../assert_instance_of-C9QtN-X9.js";
|
|
9
10
|
import { MemoryKvStore } from "../kv-D7Yt6pnB.js";
|
|
10
|
-
import { createFederation, handleNodeInfo, handleNodeInfoJrd } from "../middleware-
|
|
11
|
-
import "../
|
|
12
|
-
import "../
|
|
13
|
-
import
|
|
14
|
-
import "../
|
|
15
|
-
import "../
|
|
16
|
-
import "../
|
|
17
|
-
import "../
|
|
18
|
-
import "../
|
|
19
|
-
import "../
|
|
20
|
-
import "../
|
|
21
|
-
import "../
|
|
22
|
-
import "../
|
|
23
|
-
import "../
|
|
24
|
-
import "../
|
|
25
|
-
import "../
|
|
26
|
-
import "../
|
|
27
|
-
import "../
|
|
28
|
-
import "../
|
|
29
|
-
import "../
|
|
30
|
-
import "../
|
|
31
|
-
import "../
|
|
32
|
-
import "../
|
|
33
|
-
import "../
|
|
34
|
-
import "../retry-BiIhZWgD.js";
|
|
35
|
-
import "../send-B95nXWtF.js";
|
|
36
|
-
import { test } from "../testing-BZ0dJ4qn.js";
|
|
37
|
-
import "../std__assert-B3iAixc-.js";
|
|
38
|
-
import "../assert_rejects-DceVjUlD.js";
|
|
39
|
-
import "../assert_is_error-DQdKoRgb.js";
|
|
40
|
-
import "../assert_not_equals-7pyUM3Ib.js";
|
|
41
|
-
import "../assert_throws-DTDC_gwN.js";
|
|
42
|
-
import "../docloader-09nVWLAZ.js";
|
|
43
|
-
import { createRequestContext } from "../context-wTS6NVpw.js";
|
|
11
|
+
import { createFederation, handleNodeInfo, handleNodeInfoJrd } from "../middleware-D5a8IwLT.js";
|
|
12
|
+
import { parseSemVer } from "../semver-DCqorrj5.js";
|
|
13
|
+
import "../client-Deo5HWuU.js";
|
|
14
|
+
import "../lookup-DmCcT32H.js";
|
|
15
|
+
import "../types-n7HI7VFr.js";
|
|
16
|
+
import "../actor-CXiBUxzX.js";
|
|
17
|
+
import "../key-Cw4UVtxp.js";
|
|
18
|
+
import "../http-BMGJhytW.js";
|
|
19
|
+
import "../authdocloader-CoK1cNSv.js";
|
|
20
|
+
import "../ld-DzSYkEZt.js";
|
|
21
|
+
import "../owner-B7WC4XMm.js";
|
|
22
|
+
import "../proof-DZgS1afh.js";
|
|
23
|
+
import "../inbox-BPbz_ao6.js";
|
|
24
|
+
import "../builder-D5PVNw-f.js";
|
|
25
|
+
import "../collection-D5V3UzU3.js";
|
|
26
|
+
import "../keycache-VoOwxP0J.js";
|
|
27
|
+
import "../retry-BnpVRGFC.js";
|
|
28
|
+
import "../send-KqOpWmPm.js";
|
|
29
|
+
import { createRequestContext, test } from "../testing-Ckz8sJMd.js";
|
|
30
|
+
import "../std__assert-BQdmxyzF.js";
|
|
31
|
+
import "../assert_rejects-AjlKk-Vo.js";
|
|
32
|
+
import "../assert_is_error-CeVBLPsZ.js";
|
|
33
|
+
import "../assert_not_equals-D2R2nl5h.js";
|
|
34
|
+
import "../assert_throws-CqMKbTh_.js";
|
|
44
35
|
|
|
45
36
|
//#region nodeinfo/handler.test.ts
|
|
46
37
|
test("handleNodeInfo()", async () => {
|
package/dist/nodeinfo/mod.js
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import { Temporal } from "@js-temporal/polyfill";
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
|
|
5
|
-
import "../docloader-
|
|
6
|
-
import { formatSemVer, getNodeInfo, nodeInfoToJson, parseNodeInfo, parseSemVer } from "../types-
|
|
5
|
+
import "../docloader-CoCVFIdd.js";
|
|
6
|
+
import { formatSemVer, getNodeInfo, nodeInfoToJson, parseNodeInfo, parseSemVer } from "../types-zNofm6uK.js";
|
|
7
7
|
import "../nodeinfo-CyEbLjHs.js";
|
|
8
8
|
|
|
9
9
|
export { formatSemVer, getNodeInfo, nodeInfoToJson, parseNodeInfo, parseSemVer };
|