@fedify/fedify 1.8.0-pr.278.954 → 1.8.0-pr.284.976
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-CuceYum6.js → actor-CmXrSq2U.js} +179 -179
- package/dist/{actor-BCkVDFhH.js → actor-DtCWBGDN.js} +3 -3
- package/dist/{authdocloader-Yt2DNd-F.js → authdocloader-8Yd0E4Ux.js} +3 -3
- package/dist/{authdocloader-ChEVPp40.js → authdocloader-BYnVI5y3.js} +3 -3
- package/dist/{builder-D_E9O8AC.js → builder-BYviWIdh.js} +3 -3
- package/dist/{client-DQ6WqDCI.js → client-a0hqHPSm.js} +1 -1
- package/dist/compat/mod.d.ts +4 -4
- package/dist/compat/transformers.test.js +17 -17
- package/dist/{context-fYY7ZnDJ.js → context-BUzi8-YS.js} +2 -2
- package/dist/{context-C9TuW4WP.d.ts → context-CrSyJrIa.d.ts} +2 -2
- package/dist/{docloader-C1IVQkRP.js → docloader-BsH_JECp.js} +2 -1
- package/dist/{docloader-DqFEk2jg.js → docloader-DmUkPur6.js} +2 -1
- package/dist/federation/builder.test.js +4 -4
- package/dist/federation/handler.test.js +19 -19
- package/dist/federation/inbox.test.js +3 -3
- package/dist/federation/keycache.test.js +3 -3
- package/dist/federation/middleware.test.js +18 -18
- package/dist/federation/mod.d.ts +3 -3
- package/dist/federation/mod.js +10 -10
- package/dist/federation/send.test.js +9 -9
- package/dist/{http-Ciz7uzOt.js → http-CTqrCRSi.js} +3 -3
- package/dist/{http-L-9leJPd.js → http-THA4Ir9W.js} +3 -3
- package/dist/{inbox-DNUSBzlE.js → inbox-DqeKvKKm.js} +2 -2
- package/dist/{key-C6q5br0f.js → key-C9aIOpbS.js} +3 -3
- package/dist/{key-CvYSEzPk.js → key-CLifdy6s.js} +5 -5
- package/dist/{key-Dqo17CZb.js → key-CRNIQZmk.js} +2 -2
- package/dist/{key-Da-qH_wo.js → key-DG3cQtsj.js} +4 -4
- package/dist/{keycache-DLNgc6CP.js → keycache-BWuiO1G2.js} +1 -1
- package/dist/{keys-d10_3yyT.js → keys-BFZUb0ym.js} +1 -1
- package/dist/{ld-CDTEoZsO.js → ld-bXQXWgOZ.js} +3 -3
- package/dist/{lookup-CGhMzgzD.js → lookup-B4lhxS50.js} +4 -3
- package/dist/{lookup-DNs_QqFL.js → lookup-CCF8U-rt.js} +20 -14
- package/dist/{lookup-DHNtuVcT.d.ts → lookup-J_m4YZg0.d.ts} +6 -0
- package/dist/{lookup-BVYEcmwn.js → lookup-ZEGqTz-m.js} +4 -3
- package/dist/middleware-CDcGDmy2.js +17 -0
- package/dist/{middleware-BZCGTCbH.js → middleware-CPekh85h.js} +15 -15
- package/dist/middleware-DRsODCzG.js +33 -0
- package/dist/{middleware-DuxOdY3e.js → middleware-sBlala4t.js} +10 -10
- package/dist/{mod-DN1F4HQG.d.ts → mod-BFwgZ7_K.d.ts} +22 -14
- package/dist/{mod-BZOuEqr5.d.ts → mod-DpE8T10I.d.ts} +1 -1
- package/dist/mod.d.ts +4 -4
- package/dist/mod.js +10 -10
- package/dist/nodeinfo/client.test.js +2 -2
- package/dist/nodeinfo/handler.test.js +18 -18
- package/dist/nodeinfo/mod.js +2 -2
- package/dist/{owner-S5QtysOF.js → owner-DJZWQnBq.js} +3 -3
- package/dist/{proof-DX9kJgHD.js → proof-CMGznFqc.js} +3 -3
- package/dist/{proof-BCvVmZYI.js → proof-OtEQjs4t.js} +3 -3
- package/dist/runtime/authdocloader.test.js +8 -8
- package/dist/runtime/docloader.test.js +1 -1
- package/dist/runtime/key.test.js +5 -5
- package/dist/runtime/mod.js +6 -6
- package/dist/{send-DvNS3dQ4.js → send-CI1kKc52.js} +2 -2
- package/dist/sig/http.test.js +7 -7
- package/dist/sig/key.test.js +6 -6
- package/dist/sig/ld.test.js +7 -7
- package/dist/sig/mod.js +6 -6
- package/dist/sig/owner.test.js +8 -8
- package/dist/sig/proof.test.js +7 -7
- package/dist/{types-D6GFUswr.js → types-5FKuiQIs.js} +1 -1
- package/dist/vocab/actor.test.js +4 -4
- package/dist/vocab/lookup.test.js +4 -4
- package/dist/vocab/mod.d.ts +1 -1
- package/dist/vocab/mod.js +4 -4
- package/dist/vocab/type.test.js +2 -2
- package/dist/vocab/vocab.test.js +3 -3
- package/dist/{vocab-vaqnky9K.js → vocab-BzQ9-pso.js} +29 -20
- package/dist/{vocab-BYkN7owe.js → vocab-DtErGdsZ.js} +178 -178
- package/dist/webfinger/handler.test.js +18 -18
- package/dist/webfinger/lookup.test.js +20 -2
- package/dist/webfinger/mod.d.ts +1 -1
- package/dist/webfinger/mod.js +2 -2
- package/dist/x/hono.d.ts +3 -3
- package/dist/x/sveltekit.d.ts +3 -3
- package/package.json +23 -12
- package/dist/middleware-B3MOXKhz.js +0 -17
- package/dist/middleware-Dx0UxKR9.js +0 -33
@@ -3,7 +3,7 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import { deno_default, getUserAgent } from "./docloader-
|
6
|
+
import { deno_default, getUserAgent } from "./docloader-BsH_JECp.js";
|
7
7
|
import { UrlError, validatePublicUrl } from "./url-kTAI6_KP.js";
|
8
8
|
import { getLogger } from "@logtape/logtape";
|
9
9
|
import { SpanKind, SpanStatusCode, trace } from "@opentelemetry/api";
|
@@ -14,7 +14,7 @@ const logger = getLogger([
|
|
14
14
|
"webfinger",
|
15
15
|
"lookup"
|
16
16
|
]);
|
17
|
-
const
|
17
|
+
const DEFAULT_MAX_REDIRECTION = 5;
|
18
18
|
/**
|
19
19
|
* Looks up a WebFinger resource.
|
20
20
|
* @param resource The resource URL to look up.
|
@@ -92,7 +92,8 @@ async function lookupWebFingerInternal(resource, options = {}) {
|
|
92
92
|
}
|
93
93
|
if (response.status >= 300 && response.status < 400 && response.headers.has("Location")) {
|
94
94
|
redirected++;
|
95
|
-
|
95
|
+
const maxRedirection = options.maxRedirection ?? DEFAULT_MAX_REDIRECTION;
|
96
|
+
if (redirected >= maxRedirection) {
|
96
97
|
logger.error("Too many redirections ({redirections}) while fetching WebFinger resource descriptor.", { redirections: redirected });
|
97
98
|
return null;
|
98
99
|
}
|
@@ -3,9 +3,9 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import { deno_default, getDocumentLoader } from "./docloader-
|
7
|
-
import { Object as Object$1 } from "./vocab-
|
8
|
-
import { lookupWebFinger } from "./lookup-
|
6
|
+
import { deno_default, getDocumentLoader } from "./docloader-BsH_JECp.js";
|
7
|
+
import { Object as Object$1 } from "./vocab-DtErGdsZ.js";
|
8
|
+
import { lookupWebFinger } from "./lookup-B4lhxS50.js";
|
9
9
|
import { getTypeId } from "./type-D2s5lmbZ.js";
|
10
10
|
import { delay } from "es-toolkit";
|
11
11
|
import { getLogger } from "@logtape/logtape";
|
@@ -13,25 +13,29 @@ import { SpanStatusCode, trace } from "@opentelemetry/api";
|
|
13
13
|
|
14
14
|
//#region vocab/handle.ts
|
15
15
|
/**
|
16
|
-
* Regular expression to match a fediverse handle in the format `@user@server`
|
17
|
-
* The `user` part can contain alphanumeric characters and
|
18
|
-
* The `server` part is all characters
|
16
|
+
* Regular expression to match a fediverse handle in the format `@user@server`
|
17
|
+
* or `user@server`. The `user` part can contain alphanumeric characters and
|
18
|
+
* some special characters except `@`. The `server` part is all characters
|
19
|
+
* after the `@` symbol in the middle.
|
19
20
|
*/
|
20
21
|
const handleRegexp = /^@?((?:[-A-Za-z0-9._~!$&'()*+,;=]|%[A-Fa-f0-9]{2})+)@([^@]+)$/;
|
21
22
|
/**
|
22
23
|
* Parses a fediverse handle in the format `@user@server` or `user@server`.
|
23
|
-
* The `user` part can contain alphanumeric characters and some special
|
24
|
-
* The `server` part is all characters after the `@`
|
24
|
+
* The `user` part can contain alphanumeric characters and some special
|
25
|
+
* characters except `@`. The `server` part is all characters after the `@`
|
26
|
+
* symbol in the middle.
|
25
27
|
*
|
26
|
-
* @param handle - The fediverse handle string to parse.
|
27
|
-
* @returns A {@link FediverseHandle} object with `username` and `host` if the input is valid; otherwise `null`.
|
28
|
-
* @since 1.8.0
|
29
28
|
* @example
|
30
29
|
* ```typescript
|
31
30
|
* const handle = parseFediverseHandle("@username@example.com");
|
32
31
|
* console.log(handle?.username); // "username"
|
33
32
|
* console.log(handle?.host); // "example.com"
|
34
33
|
* ```
|
34
|
+
*
|
35
|
+
* @param handle - The fediverse handle string to parse.
|
36
|
+
* @returns A {@link FediverseHandle} object with `username` and `host`
|
37
|
+
* if the input is valid; otherwise `null`.
|
38
|
+
* @since 1.8.0
|
35
39
|
*/
|
36
40
|
function parseFediverseHandle(handle) {
|
37
41
|
const match = handleRegexp.exec(handle);
|
@@ -45,14 +49,16 @@ function parseFediverseHandle(handle) {
|
|
45
49
|
* Converts a fediverse handle in the format `@user@server` or `user@server`
|
46
50
|
* to an `acct:` URI, which is a URL-like identifier for ActivityPub actors.
|
47
51
|
*
|
48
|
-
* @param handle - The fediverse handle string to convert.
|
49
|
-
* @returns A `URL` object representing the `acct:` URI if conversion succeeds; otherwise `null`.
|
50
|
-
* @since 1.8.0
|
51
52
|
* @example
|
52
53
|
* ```typescript
|
53
54
|
* const identifier = toAcctUrl("@username@example.com");
|
54
55
|
* console.log(identifier?.href); // "acct:username@example.com"
|
55
56
|
* ```
|
57
|
+
*
|
58
|
+
* @param handle - The fediverse handle string to convert.
|
59
|
+
* @returns A `URL` object representing the `acct:` URI if conversion succeeds;
|
60
|
+
* otherwise `null`.
|
61
|
+
* @since 1.8.0
|
56
62
|
*/
|
57
63
|
function toAcctUrl(handle) {
|
58
64
|
const parsed = parseFediverseHandle(handle);
|
@@ -78,6 +78,12 @@ interface LookupWebFingerOptions {
|
|
78
78
|
* @since 1.4.0
|
79
79
|
*/
|
80
80
|
allowPrivateAddress?: boolean;
|
81
|
+
/**
|
82
|
+
* The maximum number of redirections to follow.
|
83
|
+
* @default `5`
|
84
|
+
* @since 1.8.0
|
85
|
+
*/
|
86
|
+
maxRedirection?: number;
|
81
87
|
/**
|
82
88
|
* The OpenTelemetry tracer provider. If omitted, the global tracer provider
|
83
89
|
* is used.
|
@@ -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-DmUkPur6.js";
|
6
6
|
import { getLogger } from "@logtape/logtape";
|
7
7
|
import { SpanKind, SpanStatusCode, trace } from "@opentelemetry/api";
|
8
8
|
|
@@ -12,7 +12,7 @@ const logger = getLogger([
|
|
12
12
|
"webfinger",
|
13
13
|
"lookup"
|
14
14
|
]);
|
15
|
-
const
|
15
|
+
const DEFAULT_MAX_REDIRECTION = 5;
|
16
16
|
/**
|
17
17
|
* Looks up a WebFinger resource.
|
18
18
|
* @param resource The resource URL to look up.
|
@@ -90,7 +90,8 @@ async function lookupWebFingerInternal(resource, options = {}) {
|
|
90
90
|
}
|
91
91
|
if (response.status >= 300 && response.status < 400 && response.headers.has("Location")) {
|
92
92
|
redirected++;
|
93
|
-
|
93
|
+
const maxRedirection = options.maxRedirection ?? DEFAULT_MAX_REDIRECTION;
|
94
|
+
if (redirected >= maxRedirection) {
|
94
95
|
logger.error("Too many redirections ({redirections}) while fetching WebFinger resource descriptor.", { redirections: redirected });
|
95
96
|
return null;
|
96
97
|
}
|
@@ -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-DmUkPur6.js";
|
7
|
+
import "./actor-CmXrSq2U.js";
|
8
|
+
import { ContextImpl, FederationImpl, InboxContextImpl, KvSpecDeterminer, createFederation } from "./middleware-sBlala4t.js";
|
9
|
+
import "./lookup-ZEGqTz-m.js";
|
10
|
+
import "./key-CRNIQZmk.js";
|
11
|
+
import "./http-CTqrCRSi.js";
|
12
|
+
import "./proof-OtEQjs4t.js";
|
13
|
+
import "./types-5FKuiQIs.js";
|
14
|
+
import "./authdocloader-8Yd0E4Ux.js";
|
15
|
+
import "./vocab-BzQ9-pso.js";
|
16
|
+
|
17
|
+
export { FederationImpl };
|
@@ -3,26 +3,26 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import { deno_default, getDocumentLoader, kvCache } from "./docloader-
|
7
|
-
import { getNodeInfo } from "./client-
|
6
|
+
import { deno_default, getDocumentLoader, kvCache } from "./docloader-BsH_JECp.js";
|
7
|
+
import { getNodeInfo } from "./client-a0hqHPSm.js";
|
8
8
|
import { RouterError } from "./router-D3UybECj.js";
|
9
9
|
import { nodeInfoToJson } from "./types-C7C_l-jz.js";
|
10
|
-
import { Activity, CryptographicKey, Link, Multikey, Object as Object$1, OrderedCollection, OrderedCollectionPage } from "./vocab-
|
11
|
-
import { lookupWebFinger } from "./lookup-
|
10
|
+
import { Activity, CryptographicKey, Link, Multikey, Object as Object$1, OrderedCollection, OrderedCollectionPage } from "./vocab-DtErGdsZ.js";
|
11
|
+
import { lookupWebFinger } from "./lookup-B4lhxS50.js";
|
12
12
|
import { getTypeId } from "./type-D2s5lmbZ.js";
|
13
|
-
import { exportJwk, importJwk, validateCryptoKey } from "./key-
|
14
|
-
import { verifyRequest } from "./http-
|
15
|
-
import { getAuthenticatedDocumentLoader } from "./authdocloader-
|
16
|
-
import { detachSignature, hasSignature, signJsonLd, verifyJsonLd } from "./ld-
|
17
|
-
import { doesActorOwnKey, getKeyOwner } from "./owner-
|
18
|
-
import { signObject, verifyObject } from "./proof-
|
19
|
-
import { lookupObject, traverseCollection } from "./lookup-
|
20
|
-
import { routeActivity } from "./inbox-
|
21
|
-
import { FederationBuilderImpl } from "./builder-
|
13
|
+
import { exportJwk, importJwk, validateCryptoKey } from "./key-C9aIOpbS.js";
|
14
|
+
import { verifyRequest } from "./http-THA4Ir9W.js";
|
15
|
+
import { getAuthenticatedDocumentLoader } from "./authdocloader-BYnVI5y3.js";
|
16
|
+
import { detachSignature, hasSignature, signJsonLd, verifyJsonLd } from "./ld-bXQXWgOZ.js";
|
17
|
+
import { doesActorOwnKey, getKeyOwner } from "./owner-DJZWQnBq.js";
|
18
|
+
import { signObject, verifyObject } from "./proof-CMGznFqc.js";
|
19
|
+
import { lookupObject, traverseCollection } from "./lookup-CCF8U-rt.js";
|
20
|
+
import { routeActivity } from "./inbox-DqeKvKKm.js";
|
21
|
+
import { FederationBuilderImpl } from "./builder-BYviWIdh.js";
|
22
22
|
import { buildCollectionSynchronizationHeader } from "./collection-Dfb0TPno.js";
|
23
|
-
import { KvKeyCache } from "./keycache-
|
23
|
+
import { KvKeyCache } from "./keycache-BWuiO1G2.js";
|
24
24
|
import { createExponentialBackoffPolicy } from "./retry-BiIhZWgD.js";
|
25
|
-
import { extractInboxes, sendActivity } from "./send-
|
25
|
+
import { extractInboxes, sendActivity } from "./send-CI1kKc52.js";
|
26
26
|
import { getLogger, withContext } from "@logtape/logtape";
|
27
27
|
import { SpanKind, SpanStatusCode, context, propagation, trace } from "@opentelemetry/api";
|
28
28
|
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";
|
@@ -0,0 +1,33 @@
|
|
1
|
+
|
2
|
+
import { Temporal } from "@js-temporal/polyfill";
|
3
|
+
import { URLPattern } from "urlpattern-polyfill";
|
4
|
+
globalThis.addEventListener = () => {};
|
5
|
+
|
6
|
+
import { ContextImpl, FederationImpl, InboxContextImpl, KvSpecDeterminer, createFederation } from "./middleware-CPekh85h.js";
|
7
|
+
import "./docloader-BsH_JECp.js";
|
8
|
+
import "./url-kTAI6_KP.js";
|
9
|
+
import "./semver-DWClQt_5.js";
|
10
|
+
import "./client-a0hqHPSm.js";
|
11
|
+
import "./router-D3UybECj.js";
|
12
|
+
import "./types-C7C_l-jz.js";
|
13
|
+
import "./multibase-DeCHcK8L.js";
|
14
|
+
import "./vocab-DtErGdsZ.js";
|
15
|
+
import "./langstr-DbWheeIS.js";
|
16
|
+
import "./lookup-B4lhxS50.js";
|
17
|
+
import "./type-D2s5lmbZ.js";
|
18
|
+
import "./actor-DtCWBGDN.js";
|
19
|
+
import "./key-C9aIOpbS.js";
|
20
|
+
import "./http-THA4Ir9W.js";
|
21
|
+
import "./authdocloader-BYnVI5y3.js";
|
22
|
+
import "./ld-bXQXWgOZ.js";
|
23
|
+
import "./owner-DJZWQnBq.js";
|
24
|
+
import "./proof-CMGznFqc.js";
|
25
|
+
import "./lookup-CCF8U-rt.js";
|
26
|
+
import "./inbox-DqeKvKKm.js";
|
27
|
+
import "./builder-BYviWIdh.js";
|
28
|
+
import "./collection-Dfb0TPno.js";
|
29
|
+
import "./keycache-BWuiO1G2.js";
|
30
|
+
import "./retry-BiIhZWgD.js";
|
31
|
+
import "./send-CI1kKc52.js";
|
32
|
+
|
33
|
+
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-DmUkPur6.js";
|
7
|
+
import { Activity, CryptographicKey, Link, Multikey, Object as Object$1, OrderedCollection, OrderedCollectionPage, getTypeId } from "./actor-CmXrSq2U.js";
|
8
|
+
import { lookupWebFinger } from "./lookup-ZEGqTz-m.js";
|
9
|
+
import { exportJwk, importJwk, validateCryptoKey } from "./key-CRNIQZmk.js";
|
10
|
+
import { doubleKnock, verifyRequest } from "./http-CTqrCRSi.js";
|
11
|
+
import { detachSignature, doesActorOwnKey, getKeyOwner, hasSignature, signJsonLd, signObject, verifyJsonLd, verifyObject } from "./proof-OtEQjs4t.js";
|
12
|
+
import { getNodeInfo, nodeInfoToJson } from "./types-5FKuiQIs.js";
|
13
|
+
import { getAuthenticatedDocumentLoader } from "./authdocloader-8Yd0E4Ux.js";
|
14
|
+
import { lookupObject, traverseCollection } from "./vocab-BzQ9-pso.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-CDcGDmy2.js");
|
316
316
|
const f = new FederationImpl$1(options);
|
317
317
|
const trailingSlashInsensitiveValue = f.router.trailingSlashInsensitive;
|
318
318
|
f.router = this.router.clone();
|
@@ -148,48 +148,56 @@ interface FediverseHandle {
|
|
148
148
|
}
|
149
149
|
/**
|
150
150
|
* Parses a fediverse handle in the format `@user@server` or `user@server`.
|
151
|
-
* The `user` part can contain alphanumeric characters and some special
|
152
|
-
* The `server` part is all characters after the `@`
|
151
|
+
* The `user` part can contain alphanumeric characters and some special
|
152
|
+
* characters except `@`. The `server` part is all characters after the `@`
|
153
|
+
* symbol in the middle.
|
153
154
|
*
|
154
|
-
* @param handle - The fediverse handle string to parse.
|
155
|
-
* @returns A {@link FediverseHandle} object with `username` and `host` if the input is valid; otherwise `null`.
|
156
|
-
* @since 1.8.0
|
157
155
|
* @example
|
158
156
|
* ```typescript
|
159
157
|
* const handle = parseFediverseHandle("@username@example.com");
|
160
158
|
* console.log(handle?.username); // "username"
|
161
159
|
* console.log(handle?.host); // "example.com"
|
162
160
|
* ```
|
161
|
+
*
|
162
|
+
* @param handle - The fediverse handle string to parse.
|
163
|
+
* @returns A {@link FediverseHandle} object with `username` and `host`
|
164
|
+
* if the input is valid; otherwise `null`.
|
165
|
+
* @since 1.8.0
|
163
166
|
*/
|
164
167
|
declare function parseFediverseHandle(handle: string): FediverseHandle | null;
|
165
168
|
/**
|
166
|
-
* Checks if a string is a valid fediverse handle in the format `@user@server`
|
167
|
-
* The `user` part can contain alphanumeric characters and
|
168
|
-
* The `server` part is all characters
|
169
|
+
* Checks if a string is a valid fediverse handle in the format `@user@server`
|
170
|
+
* or `user@server`. The `user` part can contain alphanumeric characters and
|
171
|
+
* some special characters except `@`. The `server` part is all characters
|
172
|
+
* after the `@` symbol in the middle.
|
169
173
|
*
|
170
|
-
* @param handle - The string to test as a fediverse handle.
|
171
|
-
* @returns `true` if the string matches the fediverse handle pattern; otherwise `false`.
|
172
|
-
* @since 1.8.0
|
173
174
|
* @example
|
174
175
|
* ```typescript
|
175
176
|
* console.log(isFediverseHandle("@username@example.com")); // true
|
176
177
|
* console.log(isFediverseHandle("username@example.com")); // true
|
177
178
|
* console.log(isFediverseHandle("@username@")); // false
|
178
179
|
* ```
|
180
|
+
*
|
181
|
+
* @param handle - The string to test as a fediverse handle.
|
182
|
+
* @returns `true` if the string matches the fediverse handle pattern;
|
183
|
+
* otherwise `false`.
|
184
|
+
* @since 1.8.0
|
179
185
|
*/
|
180
186
|
declare function isFediverseHandle(handle: string): handle is `${string}@${string}`;
|
181
187
|
/**
|
182
188
|
* Converts a fediverse handle in the format `@user@server` or `user@server`
|
183
189
|
* to an `acct:` URI, which is a URL-like identifier for ActivityPub actors.
|
184
190
|
*
|
185
|
-
* @param handle - The fediverse handle string to convert.
|
186
|
-
* @returns A `URL` object representing the `acct:` URI if conversion succeeds; otherwise `null`.
|
187
|
-
* @since 1.8.0
|
188
191
|
* @example
|
189
192
|
* ```typescript
|
190
193
|
* const identifier = toAcctUrl("@username@example.com");
|
191
194
|
* console.log(identifier?.href); // "acct:username@example.com"
|
192
195
|
* ```
|
196
|
+
*
|
197
|
+
* @param handle - The fediverse handle string to convert.
|
198
|
+
* @returns A `URL` object representing the `acct:` URI if conversion succeeds;
|
199
|
+
* otherwise `null`.
|
200
|
+
* @since 1.8.0
|
193
201
|
*/
|
194
202
|
declare function toAcctUrl(handle: string): URL | null;
|
195
203
|
//#endregion
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { Temporal } from "@js-temporal/polyfill";
|
2
2
|
import { URLPattern } from "urlpattern-polyfill";
|
3
3
|
import { Activity } from "./vocab-By6mpzr-.js";
|
4
|
-
import { ActivityTransformer, Context } from "./context-
|
4
|
+
import { ActivityTransformer, Context } from "./context-CrSyJrIa.js";
|
5
5
|
|
6
6
|
//#region compat/transformers.d.ts
|
7
7
|
|
package/dist/mod.d.ts
CHANGED
@@ -7,11 +7,11 @@ import { Accept, Activity, Add, Announce, Application, Arrive, Article, Audio, B
|
|
7
7
|
import { Actor, ActorTypeName, GetActorHandleOptions, NormalizeActorHandleOptions, Recipient, getActorClassByTypeName, getActorHandle, getActorTypeName, isActor, normalizeActorHandle } from "./actor-B4TBtqRP.js";
|
8
8
|
import { FetchKeyOptions, FetchKeyResult, HttpMessageSignaturesSpec, HttpMessageSignaturesSpecDeterminer, KeyCache, SignRequestOptions, VerifyRequestOptions, exportJwk, fetchKey, generateCryptoKeyPair, importJwk, signRequest, verifyRequest } from "./http-CP2ZUALI.js";
|
9
9
|
import { DoesActorOwnKeyOptions, GetKeyOwnerOptions, doesActorOwnKey, getKeyOwner } from "./owner-CEv_PfyK.js";
|
10
|
-
import { FediverseHandle, LookupObjectOptions, PUBLIC_COLLECTION, TraverseCollectionOptions, getTypeId, isFediverseHandle, lookupObject, parseFediverseHandle, toAcctUrl, traverseCollection } from "./mod-
|
11
|
-
import { ResourceDescriptor, lookupWebFinger } from "./lookup-
|
12
|
-
import { ActivityTransformer, ActorAliasMapper, ActorCallbackSetters, ActorDispatcher, ActorHandleMapper, ActorKeyPair, ActorKeyPairsDispatcher, AuthorizePredicate, CollectionCallbackSetters, CollectionCounter, CollectionCursor, CollectionDispatcher, Context, CreateExponentialBackoffPolicyOptions, CreateFederationOptions, Federatable, Federation, FederationBuilder, FederationFetchOptions, FederationKvPrefixes, FederationOptions, FederationOrigin, FederationQueueOptions, FederationStartQueueOptions, ForwardActivityOptions, GetSignedKeyOptions, InboxContext, InboxErrorHandler, InboxListener, InboxListenerSetters, Message, NodeInfoDispatcher, ObjectAuthorizePredicate, ObjectCallbackSetters, ObjectDispatcher, OutboxErrorHandler, PageItems, ParseUriResult, RequestContext, RespondWithObjectOptions, RetryContext, RetryPolicy, RouteActivityOptions, Router, RouterError, RouterOptions, RouterRouteResult, SendActivityOptions, SendActivityOptionsForCollection, SenderKeyPair, SharedInboxKeyDispatcher, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable } from "./context-
|
10
|
+
import { FediverseHandle, LookupObjectOptions, PUBLIC_COLLECTION, TraverseCollectionOptions, getTypeId, isFediverseHandle, lookupObject, parseFediverseHandle, toAcctUrl, traverseCollection } from "./mod-BFwgZ7_K.js";
|
11
|
+
import { ResourceDescriptor, lookupWebFinger } from "./lookup-J_m4YZg0.js";
|
12
|
+
import { ActivityTransformer, ActorAliasMapper, ActorCallbackSetters, ActorDispatcher, ActorHandleMapper, ActorKeyPair, ActorKeyPairsDispatcher, AuthorizePredicate, CollectionCallbackSetters, CollectionCounter, CollectionCursor, CollectionDispatcher, Context, CreateExponentialBackoffPolicyOptions, CreateFederationOptions, Federatable, Federation, FederationBuilder, FederationFetchOptions, FederationKvPrefixes, FederationOptions, FederationOrigin, FederationQueueOptions, FederationStartQueueOptions, ForwardActivityOptions, GetSignedKeyOptions, InboxContext, InboxErrorHandler, InboxListener, InboxListenerSetters, Message, NodeInfoDispatcher, ObjectAuthorizePredicate, ObjectCallbackSetters, ObjectDispatcher, OutboxErrorHandler, PageItems, ParseUriResult, RequestContext, RespondWithObjectOptions, RetryContext, RetryPolicy, RouteActivityOptions, Router, RouterError, RouterOptions, RouterRouteResult, SendActivityOptions, SendActivityOptionsForCollection, SenderKeyPair, SharedInboxKeyDispatcher, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable } from "./context-CrSyJrIa.js";
|
13
13
|
import { InProcessMessageQueue, InProcessMessageQueueOptions, MessageQueue, MessageQueueEnqueueOptions, MessageQueueListenOptions, ParallelMessageQueue } from "./mq-DYKDDJmp.js";
|
14
|
-
import { actorDehydrator, autoIdAssigner, getDefaultActivityTransformers } from "./mod-
|
14
|
+
import { actorDehydrator, autoIdAssigner, getDefaultActivityTransformers } from "./mod-DpE8T10I.js";
|
15
15
|
import "./mod-g0xFzAP9.js";
|
16
16
|
import "./mod-1pDWKvUL.js";
|
17
17
|
import { GetAuthenticatedDocumentLoaderOptions, exportMultibaseKey, exportSpki, getAuthenticatedDocumentLoader, importMultibaseKey, importPem, importPkcs1, importSpki } from "./mod-CytXBx8A.js";
|
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-DmUkPur6.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-CmXrSq2U.js";
|
9
|
+
import { Router, RouterError, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable } from "./middleware-sBlala4t.js";
|
10
|
+
import { lookupWebFinger } from "./lookup-ZEGqTz-m.js";
|
11
|
+
import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk } from "./key-CRNIQZmk.js";
|
12
|
+
import { signRequest, verifyRequest } from "./http-CTqrCRSi.js";
|
13
|
+
import { attachSignature, createProof, createSignature, detachSignature, doesActorOwnKey, getKeyOwner, signJsonLd, signObject, verifyJsonLd, verifyObject, verifyProof, verifySignature } from "./proof-OtEQjs4t.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-5FKuiQIs.js";
|
16
|
+
import { getAuthenticatedDocumentLoader } from "./authdocloader-8Yd0E4Ux.js";
|
17
|
+
import { PUBLIC_COLLECTION, isFediverseHandle, lookupObject, parseFediverseHandle, toAcctUrl, traverseCollection } from "./vocab-BzQ9-pso.js";
|
18
18
|
import "./nodeinfo-CyEbLjHs.js";
|
19
19
|
import "./runtime-BSkOVUWM.js";
|
20
20
|
import "./sig-BXJO--F9.js";
|
@@ -6,10 +6,10 @@
|
|
6
6
|
import { assertEquals } from "../assert_equals-C5gKCm6A.js";
|
7
7
|
import "../assert-DwEa6glZ.js";
|
8
8
|
import "../assert_instance_of-C9QtN-X9.js";
|
9
|
-
import "../docloader-
|
9
|
+
import "../docloader-BsH_JECp.js";
|
10
10
|
import "../url-kTAI6_KP.js";
|
11
11
|
import "../semver-DWClQt_5.js";
|
12
|
-
import { getNodeInfo, parseInboundService, parseNodeInfo, parseOutboundService, parseProtocol, parseServices, parseSoftware, parseUsage } from "../client-
|
12
|
+
import { getNodeInfo, parseInboundService, parseNodeInfo, parseOutboundService, parseProtocol, parseServices, parseSoftware, parseUsage } from "../client-a0hqHPSm.js";
|
13
13
|
import { test } from "../testing-BZ0dJ4qn.js";
|
14
14
|
import "../std__assert-B3iAixc-.js";
|
15
15
|
import "../assert_rejects-DceVjUlD.js";
|
@@ -7,32 +7,32 @@ import { assertEquals } from "../assert_equals-C5gKCm6A.js";
|
|
7
7
|
import "../assert-DwEa6glZ.js";
|
8
8
|
import "../assert_instance_of-C9QtN-X9.js";
|
9
9
|
import { MemoryKvStore } from "../kv-D7Yt6pnB.js";
|
10
|
-
import { createFederation, handleNodeInfo, handleNodeInfoJrd } from "../middleware-
|
11
|
-
import "../docloader-
|
10
|
+
import { createFederation, handleNodeInfo, handleNodeInfoJrd } from "../middleware-CPekh85h.js";
|
11
|
+
import "../docloader-BsH_JECp.js";
|
12
12
|
import "../url-kTAI6_KP.js";
|
13
13
|
import { parseSemVer } from "../semver-DWClQt_5.js";
|
14
|
-
import "../client-
|
14
|
+
import "../client-a0hqHPSm.js";
|
15
15
|
import "../router-D3UybECj.js";
|
16
16
|
import "../types-C7C_l-jz.js";
|
17
17
|
import "../multibase-DeCHcK8L.js";
|
18
|
-
import "../vocab-
|
18
|
+
import "../vocab-DtErGdsZ.js";
|
19
19
|
import "../langstr-DbWheeIS.js";
|
20
|
-
import "../lookup-
|
20
|
+
import "../lookup-B4lhxS50.js";
|
21
21
|
import "../type-D2s5lmbZ.js";
|
22
|
-
import "../actor-
|
23
|
-
import "../key-
|
24
|
-
import "../http-
|
25
|
-
import "../authdocloader-
|
26
|
-
import "../ld-
|
27
|
-
import "../owner-
|
28
|
-
import "../proof-
|
29
|
-
import "../lookup-
|
30
|
-
import "../inbox-
|
31
|
-
import "../builder-
|
22
|
+
import "../actor-DtCWBGDN.js";
|
23
|
+
import "../key-C9aIOpbS.js";
|
24
|
+
import "../http-THA4Ir9W.js";
|
25
|
+
import "../authdocloader-BYnVI5y3.js";
|
26
|
+
import "../ld-bXQXWgOZ.js";
|
27
|
+
import "../owner-DJZWQnBq.js";
|
28
|
+
import "../proof-CMGznFqc.js";
|
29
|
+
import "../lookup-CCF8U-rt.js";
|
30
|
+
import "../inbox-DqeKvKKm.js";
|
31
|
+
import "../builder-BYviWIdh.js";
|
32
32
|
import "../collection-Dfb0TPno.js";
|
33
|
-
import "../keycache-
|
33
|
+
import "../keycache-BWuiO1G2.js";
|
34
34
|
import "../retry-BiIhZWgD.js";
|
35
|
-
import "../send-
|
35
|
+
import "../send-CI1kKc52.js";
|
36
36
|
import { test } from "../testing-BZ0dJ4qn.js";
|
37
37
|
import "../std__assert-B3iAixc-.js";
|
38
38
|
import "../assert_rejects-DceVjUlD.js";
|
@@ -40,7 +40,7 @@ import "../assert_is_error-DQdKoRgb.js";
|
|
40
40
|
import "../assert_not_equals-7pyUM3Ib.js";
|
41
41
|
import "../assert_throws-DTDC_gwN.js";
|
42
42
|
import "../docloader-09nVWLAZ.js";
|
43
|
-
import { createRequestContext } from "../context-
|
43
|
+
import { createRequestContext } from "../context-BUzi8-YS.js";
|
44
44
|
|
45
45
|
//#region nodeinfo/handler.test.ts
|
46
46
|
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-DmUkPur6.js";
|
6
|
+
import { formatSemVer, getNodeInfo, nodeInfoToJson, parseNodeInfo, parseSemVer } from "../types-5FKuiQIs.js";
|
7
7
|
import "../nodeinfo-CyEbLjHs.js";
|
8
8
|
|
9
9
|
export { formatSemVer, getNodeInfo, nodeInfoToJson, parseNodeInfo, parseSemVer };
|
@@ -3,9 +3,9 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import { getDocumentLoader } from "./docloader-
|
7
|
-
import { CryptographicKey, Object as Object$1 } from "./vocab-
|
8
|
-
import { isActor } from "./actor-
|
6
|
+
import { getDocumentLoader } from "./docloader-BsH_JECp.js";
|
7
|
+
import { CryptographicKey, Object as Object$1 } from "./vocab-DtErGdsZ.js";
|
8
|
+
import { isActor } from "./actor-DtCWBGDN.js";
|
9
9
|
import { trace } from "@opentelemetry/api";
|
10
10
|
|
11
11
|
//#region sig/owner.ts
|
@@ -3,10 +3,10 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import { deno_default } from "./docloader-
|
7
|
-
import { Activity, DataIntegrityProof, Multikey } from "./vocab-
|
6
|
+
import { deno_default } from "./docloader-BsH_JECp.js";
|
7
|
+
import { Activity, DataIntegrityProof, Multikey } from "./vocab-DtErGdsZ.js";
|
8
8
|
import { getTypeId } from "./type-D2s5lmbZ.js";
|
9
|
-
import { fetchKey, validateCryptoKey } from "./key-
|
9
|
+
import { fetchKey, validateCryptoKey } from "./key-C9aIOpbS.js";
|
10
10
|
import { getLogger } from "@logtape/logtape";
|
11
11
|
import { SpanStatusCode, trace } from "@opentelemetry/api";
|
12
12
|
import { encodeHex } from "byte-encodings/hex";
|
@@ -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, getDocumentLoader } from "./docloader-
|
6
|
-
import { Activity, CryptographicKey, DataIntegrityProof, Multikey, Object as Object$1, getTypeId, isActor } from "./actor-
|
7
|
-
import { fetchKey, validateCryptoKey } from "./key-
|
5
|
+
import { deno_default, getDocumentLoader } from "./docloader-DmUkPur6.js";
|
6
|
+
import { Activity, CryptographicKey, DataIntegrityProof, Multikey, Object as Object$1, getTypeId, isActor } from "./actor-CmXrSq2U.js";
|
7
|
+
import { fetchKey, validateCryptoKey } from "./key-CRNIQZmk.js";
|
8
8
|
import { getLogger } from "@logtape/logtape";
|
9
9
|
import { SpanStatusCode, trace } from "@opentelemetry/api";
|
10
10
|
import jsonld from "jsonld";
|
@@ -6,17 +6,17 @@
|
|
6
6
|
import { assertEquals } from "../assert_equals-C5gKCm6A.js";
|
7
7
|
import "../assert-DwEa6glZ.js";
|
8
8
|
import "../assert_instance_of-C9QtN-X9.js";
|
9
|
-
import "../docloader-
|
9
|
+
import "../docloader-BsH_JECp.js";
|
10
10
|
import { UrlError } from "../url-kTAI6_KP.js";
|
11
11
|
import "../multibase-DeCHcK8L.js";
|
12
|
-
import "../vocab-
|
12
|
+
import "../vocab-DtErGdsZ.js";
|
13
13
|
import "../langstr-DbWheeIS.js";
|
14
|
-
import "../lookup-
|
14
|
+
import "../lookup-B4lhxS50.js";
|
15
15
|
import "../type-D2s5lmbZ.js";
|
16
|
-
import "../actor-
|
17
|
-
import "../key-
|
18
|
-
import { verifyRequest } from "../http-
|
19
|
-
import { getAuthenticatedDocumentLoader } from "../authdocloader-
|
16
|
+
import "../actor-DtCWBGDN.js";
|
17
|
+
import "../key-C9aIOpbS.js";
|
18
|
+
import { verifyRequest } from "../http-THA4Ir9W.js";
|
19
|
+
import { getAuthenticatedDocumentLoader } from "../authdocloader-BYnVI5y3.js";
|
20
20
|
import { test } from "../testing-BZ0dJ4qn.js";
|
21
21
|
import "../std__assert-B3iAixc-.js";
|
22
22
|
import { assertRejects } from "../assert_rejects-DceVjUlD.js";
|
@@ -24,7 +24,7 @@ import "../assert_is_error-DQdKoRgb.js";
|
|
24
24
|
import "../assert_not_equals-7pyUM3Ib.js";
|
25
25
|
import "../assert_throws-DTDC_gwN.js";
|
26
26
|
import { mockDocumentLoader } from "../docloader-09nVWLAZ.js";
|
27
|
-
import { rsaPrivateKey2 } from "../keys-
|
27
|
+
import { rsaPrivateKey2 } from "../keys-BFZUb0ym.js";
|
28
28
|
import { esm_default } from "../esm-d-9EVGaP.js";
|
29
29
|
|
30
30
|
//#region runtime/authdocloader.test.ts
|
@@ -7,7 +7,7 @@ import { assertEquals } from "../assert_equals-C5gKCm6A.js";
|
|
7
7
|
import "../assert-DwEa6glZ.js";
|
8
8
|
import "../assert_instance_of-C9QtN-X9.js";
|
9
9
|
import { MemoryKvStore } from "../kv-D7Yt6pnB.js";
|
10
|
-
import { FetchError, contexts_default, deno_default, getDocumentLoader, getUserAgent, kvCache } from "../docloader-
|
10
|
+
import { FetchError, contexts_default, deno_default, getDocumentLoader, getUserAgent, kvCache } from "../docloader-BsH_JECp.js";
|
11
11
|
import { UrlError } from "../url-kTAI6_KP.js";
|
12
12
|
import { test } from "../testing-BZ0dJ4qn.js";
|
13
13
|
import "../std__assert-B3iAixc-.js";
|
package/dist/runtime/key.test.js
CHANGED
@@ -6,15 +6,15 @@
|
|
6
6
|
import { assertEquals } from "../assert_equals-C5gKCm6A.js";
|
7
7
|
import "../assert-DwEa6glZ.js";
|
8
8
|
import "../assert_instance_of-C9QtN-X9.js";
|
9
|
-
import "../docloader-
|
9
|
+
import "../docloader-BsH_JECp.js";
|
10
10
|
import "../url-kTAI6_KP.js";
|
11
11
|
import "../multibase-DeCHcK8L.js";
|
12
|
-
import { exportMultibaseKey, exportSpki, importMultibaseKey, importPem, importPkcs1, importSpki } from "../vocab-
|
12
|
+
import { exportMultibaseKey, exportSpki, importMultibaseKey, importPem, importPkcs1, importSpki } from "../vocab-DtErGdsZ.js";
|
13
13
|
import "../langstr-DbWheeIS.js";
|
14
|
-
import "../lookup-
|
14
|
+
import "../lookup-B4lhxS50.js";
|
15
15
|
import "../type-D2s5lmbZ.js";
|
16
|
-
import "../actor-
|
17
|
-
import { exportJwk, importJwk } from "../key-
|
16
|
+
import "../actor-DtCWBGDN.js";
|
17
|
+
import { exportJwk, importJwk } from "../key-C9aIOpbS.js";
|
18
18
|
import { test } from "../testing-BZ0dJ4qn.js";
|
19
19
|
import "../std__assert-B3iAixc-.js";
|
20
20
|
import "../assert_rejects-DceVjUlD.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-DmUkPur6.js";
|
6
|
+
import { LanguageString, exportMultibaseKey, exportSpki, importMultibaseKey, importPem, importPkcs1, importSpki } from "../actor-CmXrSq2U.js";
|
7
|
+
import "../lookup-ZEGqTz-m.js";
|
8
|
+
import "../key-CRNIQZmk.js";
|
9
|
+
import "../http-CTqrCRSi.js";
|
10
|
+
import { getAuthenticatedDocumentLoader } from "../authdocloader-8Yd0E4Ux.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 };
|