@fedify/fedify 1.8.0-pr.278.951 → 1.8.0-pr.282.963
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-BwamOVOs.js → actor-BH02gzS1.js} +3 -3
- package/dist/{actor-DuYja3s_.js → actor-xJX8eU65.js} +179 -179
- package/dist/{authdocloader-DAhh8Fj0.js → authdocloader-6eI9Jvjr.js} +3 -3
- package/dist/{authdocloader-COnJz2Gi.js → authdocloader-wYK__kbb.js} +3 -3
- package/dist/{builder-BqFNBlWO.js → builder-BLZheYmO.js} +3 -3
- package/dist/{client-DGzWjDhk.js → client-C3QJu9R1.js} +1 -1
- package/dist/compat/mod.d.ts +4 -4
- package/dist/compat/transformers.test.js +17 -17
- package/dist/{context-CutbDY_L.d.ts → context-CrSyJrIa.d.ts} +2 -2
- package/dist/{context-B6lp2Mp_.js → context-CwFp10US.js} +2 -2
- package/dist/{docloader-DZLBnsTj.js → docloader-B2aZfMYV.js} +2 -1
- package/dist/{docloader-DkAapQc_.js → docloader-BWdKdA_0.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-BDTHMKLY.js → http-Bjut8mo4.js} +3 -3
- package/dist/{http-_NLh4AQw.js → http-R4E9BnTd.js} +3 -3
- package/dist/{inbox-C1fucqgb.js → inbox-CdezVIVo.js} +2 -2
- package/dist/{key-DXdAlXWe.js → key-Bdp_Zd26.js} +4 -4
- package/dist/{key-BYYZAmsY.js → key-COt19bd9.js} +2 -2
- package/dist/{key-BLo_aRf-.js → key-DQWvbRZC.js} +5 -5
- package/dist/{key-C4cogquc.js → key-UPuSsywk.js} +3 -3
- package/dist/{keycache-SBjbS-RE.js → keycache-Cdhwdz8O.js} +1 -1
- package/dist/{keys-ur1F_g7P.js → keys-CXkrDSKt.js} +1 -1
- package/dist/{ld-DqPMDWzB.js → ld-BAK3C0Sy.js} +3 -3
- package/dist/{lookup-LMJC-TLp.js → lookup-BwPBu6aR.js} +4 -3
- package/dist/{lookup-tn6iksxL.js → lookup-CZy1GbWP.js} +4 -3
- package/dist/{lookup-Ceatq76e.js → lookup-DtZ-CBoe.js} +23 -17
- package/dist/{lookup-DHNtuVcT.d.ts → lookup-J_m4YZg0.d.ts} +6 -0
- package/dist/middleware-Bpsbya1e.js +17 -0
- package/dist/middleware-D51mkgEb.js +33 -0
- package/dist/{middleware-D9lp51Qo.js → middleware-DZmswCko.js} +10 -10
- package/dist/{middleware-BZp6TsV9.js → middleware-_mba7_wr.js} +15 -15
- package/dist/{mod-yjbK0F05.d.ts → mod-BFwgZ7_K.d.ts} +26 -17
- package/dist/{mod-DUH25XRb.d.ts → mod-DpE8T10I.d.ts} +1 -1
- package/dist/mod.d.ts +5 -5
- package/dist/mod.js +11 -11
- 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-H215iqvU.js → owner-B0JDV4g0.js} +3 -3
- package/dist/{proof-BKCny61f.js → proof-C6OzCGKq.js} +3 -3
- package/dist/{proof-f69jWqQJ.js → proof-C7qMEuCF.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-DvVUb-A7.js → send-D9LG0fpO.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-CO3XVJo_.js → types-C7zRjUCC.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 +2 -2
- package/dist/vocab/mod.js +5 -5
- package/dist/vocab/type.test.js +2 -2
- package/dist/vocab/vocab.test.js +3 -3
- package/dist/{vocab-x1J4xmfs.js → vocab-6jfnAaoz.js} +178 -178
- package/dist/{vocab-BhuePG48.js → vocab-BbG5E6JQ.js} +33 -24
- 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-3IJXQ5eC.js +0 -33
- package/dist/middleware-ft1ILMHe.js +0 -17
@@ -2,34 +2,38 @@
|
|
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 { Object as Object$1, getTypeId } from "./actor-
|
7
|
-
import { lookupWebFinger } from "./lookup-
|
5
|
+
import { deno_default, getDocumentLoader } from "./docloader-B2aZfMYV.js";
|
6
|
+
import { Object as Object$1, getTypeId } from "./actor-xJX8eU65.js";
|
7
|
+
import { lookupWebFinger } from "./lookup-BwPBu6aR.js";
|
8
8
|
import { getLogger } from "@logtape/logtape";
|
9
9
|
import { SpanStatusCode, trace } from "@opentelemetry/api";
|
10
10
|
import { delay } from "es-toolkit";
|
11
11
|
|
12
12
|
//#region vocab/handle.ts
|
13
13
|
/**
|
14
|
-
* Regular expression to match a fediverse handle in the format `@user@server`
|
15
|
-
* The `user` part can contain alphanumeric characters and
|
16
|
-
* The `server` part is all characters
|
14
|
+
* Regular expression to match a fediverse handle in the format `@user@server`
|
15
|
+
* or `user@server`. The `user` part can contain alphanumeric characters and
|
16
|
+
* some special characters except `@`. The `server` part is all characters
|
17
|
+
* after the `@` symbol in the middle.
|
17
18
|
*/
|
18
19
|
const handleRegexp = /^@?((?:[-A-Za-z0-9._~!$&'()*+,;=]|%[A-Fa-f0-9]{2})+)@([^@]+)$/;
|
19
20
|
/**
|
20
21
|
* Parses a fediverse handle in the format `@user@server` or `user@server`.
|
21
|
-
* The `user` part can contain alphanumeric characters and some special
|
22
|
-
* The `server` part is all characters after the `@`
|
22
|
+
* The `user` part can contain alphanumeric characters and some special
|
23
|
+
* characters except `@`. The `server` part is all characters after the `@`
|
24
|
+
* symbol in the middle.
|
23
25
|
*
|
24
|
-
* @param handle - The fediverse handle string to parse.
|
25
|
-
* @returns A {@link FediverseHandle} object with `username` and `host` if the input is valid; otherwise `null`.
|
26
|
-
* @since 1.8.0
|
27
26
|
* @example
|
28
27
|
* ```typescript
|
29
28
|
* const handle = parseFediverseHandle("@username@example.com");
|
30
29
|
* console.log(handle?.username); // "username"
|
31
30
|
* console.log(handle?.host); // "example.com"
|
32
31
|
* ```
|
32
|
+
*
|
33
|
+
* @param handle - The fediverse handle string to parse.
|
34
|
+
* @returns A {@link FediverseHandle} object with `username` and `host`
|
35
|
+
* if the input is valid; otherwise `null`.
|
36
|
+
* @since 1.8.0
|
33
37
|
*/
|
34
38
|
function parseFediverseHandle(handle) {
|
35
39
|
const match = handleRegexp.exec(handle);
|
@@ -40,19 +44,22 @@ function parseFediverseHandle(handle) {
|
|
40
44
|
return null;
|
41
45
|
}
|
42
46
|
/**
|
43
|
-
* Checks if a string is a valid fediverse handle in the format `@user@server`
|
44
|
-
* The `user` part can contain alphanumeric characters and
|
45
|
-
* The `server` part is all characters
|
47
|
+
* Checks if a string is a valid fediverse handle in the format `@user@server`
|
48
|
+
* or `user@server`. The `user` part can contain alphanumeric characters and
|
49
|
+
* some special characters except `@`. The `server` part is all characters
|
50
|
+
* after the `@` symbol in the middle.
|
46
51
|
*
|
47
|
-
* @param handle - The string to test as a fediverse handle.
|
48
|
-
* @returns `true` if the string matches the fediverse handle pattern; otherwise `false`.
|
49
|
-
* @since 1.8.0
|
50
52
|
* @example
|
51
53
|
* ```typescript
|
52
54
|
* console.log(isFediverseHandle("@username@example.com")); // true
|
53
55
|
* console.log(isFediverseHandle("username@example.com")); // true
|
54
56
|
* console.log(isFediverseHandle("@username@")); // false
|
55
57
|
* ```
|
58
|
+
*
|
59
|
+
* @param handle - The string to test as a fediverse handle.
|
60
|
+
* @returns `true` if the string matches the fediverse handle pattern;
|
61
|
+
* otherwise `false`.
|
62
|
+
* @since 1.8.0
|
56
63
|
*/
|
57
64
|
function isFediverseHandle(handle) {
|
58
65
|
return handleRegexp.test(handle);
|
@@ -61,16 +68,18 @@ function isFediverseHandle(handle) {
|
|
61
68
|
* Converts a fediverse handle in the format `@user@server` or `user@server`
|
62
69
|
* to an `acct:` URI, which is a URL-like identifier for ActivityPub actors.
|
63
70
|
*
|
64
|
-
* @param handle - The fediverse handle string to convert.
|
65
|
-
* @returns A `URL` object representing the `acct:` URI if conversion succeeds; otherwise `null`.
|
66
|
-
* @since 1.8.0
|
67
71
|
* @example
|
68
72
|
* ```typescript
|
69
|
-
* const identifier =
|
73
|
+
* const identifier = toAcctUrl("@username@example.com");
|
70
74
|
* console.log(identifier?.href); // "acct:username@example.com"
|
71
75
|
* ```
|
76
|
+
*
|
77
|
+
* @param handle - The fediverse handle string to convert.
|
78
|
+
* @returns A `URL` object representing the `acct:` URI if conversion succeeds;
|
79
|
+
* otherwise `null`.
|
80
|
+
* @since 1.8.0
|
72
81
|
*/
|
73
|
-
function
|
82
|
+
function toAcctUrl(handle) {
|
74
83
|
const parsed = parseFediverseHandle(handle);
|
75
84
|
if (!parsed) return null;
|
76
85
|
const identifier = new URL(`acct:${parsed.username}@${parsed.host}`);
|
@@ -142,7 +151,7 @@ async function lookupObject(identifier, options = {}) {
|
|
142
151
|
}
|
143
152
|
async function lookupObjectInternal(identifier, options = {}) {
|
144
153
|
const documentLoader = options.documentLoader ?? getDocumentLoader({ userAgent: options.userAgent });
|
145
|
-
if (typeof identifier === "string") identifier =
|
154
|
+
if (typeof identifier === "string") identifier = toAcctUrl(identifier) ?? new URL(identifier);
|
146
155
|
let document = null;
|
147
156
|
if (identifier.protocol === "http:" || identifier.protocol === "https:") try {
|
148
157
|
const remoteDoc = await documentLoader(identifier.href);
|
@@ -233,4 +242,4 @@ async function* traverseCollection(collection, options = {}) {
|
|
233
242
|
const PUBLIC_COLLECTION = new URL("https://www.w3.org/ns/activitystreams#Public");
|
234
243
|
|
235
244
|
//#endregion
|
236
|
-
export { PUBLIC_COLLECTION,
|
245
|
+
export { PUBLIC_COLLECTION, isFediverseHandle, lookupObject, parseFediverseHandle, toAcctUrl, traverseCollection };
|
@@ -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, handleWebFinger } from "../middleware-
|
11
|
-
import "../docloader-
|
10
|
+
import { createFederation, handleWebFinger } from "../middleware-_mba7_wr.js";
|
11
|
+
import "../docloader-BWdKdA_0.js";
|
12
12
|
import "../url-kTAI6_KP.js";
|
13
13
|
import "../semver-DWClQt_5.js";
|
14
|
-
import "../client-
|
14
|
+
import "../client-C3QJu9R1.js";
|
15
15
|
import "../router-D3UybECj.js";
|
16
16
|
import "../types-C7C_l-jz.js";
|
17
17
|
import "../multibase-DeCHcK8L.js";
|
18
|
-
import { Image, Link, Person } from "../vocab-
|
18
|
+
import { Image, Link, Person } from "../vocab-6jfnAaoz.js";
|
19
19
|
import "../langstr-DbWheeIS.js";
|
20
|
-
import "../lookup-
|
20
|
+
import "../lookup-CZy1GbWP.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-BH02gzS1.js";
|
23
|
+
import "../key-UPuSsywk.js";
|
24
|
+
import "../http-R4E9BnTd.js";
|
25
|
+
import "../authdocloader-6eI9Jvjr.js";
|
26
|
+
import "../ld-BAK3C0Sy.js";
|
27
|
+
import "../owner-B0JDV4g0.js";
|
28
|
+
import "../proof-C6OzCGKq.js";
|
29
|
+
import "../lookup-DtZ-CBoe.js";
|
30
|
+
import "../inbox-CdezVIVo.js";
|
31
|
+
import "../builder-BLZheYmO.js";
|
32
32
|
import "../collection-Dfb0TPno.js";
|
33
|
-
import "../keycache-
|
33
|
+
import "../keycache-Cdhwdz8O.js";
|
34
34
|
import "../retry-BiIhZWgD.js";
|
35
|
-
import "../send-
|
35
|
+
import "../send-D9LG0fpO.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-CwFp10US.js";
|
44
44
|
|
45
45
|
//#region webfinger/handler.test.ts
|
46
46
|
test("handleWebFinger()", async (t) => {
|
@@ -6,9 +6,9 @@
|
|
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-BWdKdA_0.js";
|
10
10
|
import "../url-kTAI6_KP.js";
|
11
|
-
import { lookupWebFinger } from "../lookup-
|
11
|
+
import { lookupWebFinger } from "../lookup-CZy1GbWP.js";
|
12
12
|
import { test } from "../testing-BZ0dJ4qn.js";
|
13
13
|
import "../std__assert-B3iAixc-.js";
|
14
14
|
import "../assert_rejects-DceVjUlD.js";
|
@@ -117,6 +117,24 @@ test({
|
|
117
117
|
await t.step("redirection to private address", async () => {
|
118
118
|
assertEquals(await lookupWebFinger("acct:johndoe@example.com"), null);
|
119
119
|
});
|
120
|
+
esm_default.removeRoutes();
|
121
|
+
let redirectCount = 0;
|
122
|
+
esm_default.get("begin:https://example.com/.well-known/webfinger", () => {
|
123
|
+
redirectCount++;
|
124
|
+
if (redirectCount < 3) return {
|
125
|
+
status: 302,
|
126
|
+
headers: { Location: `/.well-known/webfinger?redirect=${redirectCount}` }
|
127
|
+
};
|
128
|
+
return { body: expected };
|
129
|
+
});
|
130
|
+
await t.step("custom maxRedirection", async () => {
|
131
|
+
redirectCount = 0;
|
132
|
+
assertEquals(await lookupWebFinger("acct:johndoe@example.com", { maxRedirection: 2 }), null);
|
133
|
+
redirectCount = 0;
|
134
|
+
assertEquals(await lookupWebFinger("acct:johndoe@example.com", { maxRedirection: 3 }), expected);
|
135
|
+
redirectCount = 0;
|
136
|
+
assertEquals(await lookupWebFinger("acct:johndoe@example.com"), expected);
|
137
|
+
});
|
120
138
|
esm_default.hardReset();
|
121
139
|
}
|
122
140
|
});
|
package/dist/webfinger/mod.d.ts
CHANGED
@@ -2,6 +2,6 @@ import { Temporal } from "@js-temporal/polyfill";
|
|
2
2
|
import { URLPattern } from "urlpattern-polyfill";
|
3
3
|
import "../kv-DDdb1hMa.js";
|
4
4
|
import "../docloader-BeCtcTOJ.js";
|
5
|
-
import { Link, LookupWebFingerOptions, ResourceDescriptor, lookupWebFinger } from "../lookup-
|
5
|
+
import { Link, LookupWebFingerOptions, ResourceDescriptor, lookupWebFinger } from "../lookup-J_m4YZg0.js";
|
6
6
|
import "../mod-GIh5OYxW.js";
|
7
7
|
export { Link, LookupWebFingerOptions, ResourceDescriptor, lookupWebFinger };
|
package/dist/webfinger/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 { lookupWebFinger } from "../lookup-
|
5
|
+
import "../docloader-B2aZfMYV.js";
|
6
|
+
import { lookupWebFinger } from "../lookup-BwPBu6aR.js";
|
7
7
|
import "../webfinger-C3GIyXIg.js";
|
8
8
|
|
9
9
|
export { lookupWebFinger };
|
package/dist/x/hono.d.ts
CHANGED
@@ -7,9 +7,9 @@ import "../vocab-By6mpzr-.js";
|
|
7
7
|
import "../actor-B4TBtqRP.js";
|
8
8
|
import "../http-CP2ZUALI.js";
|
9
9
|
import "../owner-CEv_PfyK.js";
|
10
|
-
import "../mod-
|
11
|
-
import "../lookup-
|
12
|
-
import { Federation } from "../context-
|
10
|
+
import "../mod-BFwgZ7_K.js";
|
11
|
+
import "../lookup-J_m4YZg0.js";
|
12
|
+
import { Federation } from "../context-CrSyJrIa.js";
|
13
13
|
import "../mq-DYKDDJmp.js";
|
14
14
|
|
15
15
|
//#region x/hono.d.ts
|
package/dist/x/sveltekit.d.ts
CHANGED
@@ -7,9 +7,9 @@ import "../vocab-By6mpzr-.js";
|
|
7
7
|
import "../actor-B4TBtqRP.js";
|
8
8
|
import "../http-CP2ZUALI.js";
|
9
9
|
import "../owner-CEv_PfyK.js";
|
10
|
-
import "../mod-
|
11
|
-
import "../lookup-
|
12
|
-
import { Federation } from "../context-
|
10
|
+
import "../mod-BFwgZ7_K.js";
|
11
|
+
import "../lookup-J_m4YZg0.js";
|
12
|
+
import { Federation } from "../context-CrSyJrIa.js";
|
13
13
|
import "../mq-DYKDDJmp.js";
|
14
14
|
|
15
15
|
//#region x/sveltekit.d.ts
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@fedify/fedify",
|
3
|
-
"version": "1.8.0-pr.
|
3
|
+
"version": "1.8.0-pr.282.963+ed118dc2",
|
4
4
|
"description": "An ActivityPub server framework",
|
5
5
|
"keywords": [
|
6
6
|
"ActivityPub",
|
@@ -39,47 +39,58 @@
|
|
39
39
|
"exports": {
|
40
40
|
".": {
|
41
41
|
"types": "./dist/mod.d.ts",
|
42
|
-
"import": "./dist/mod.js"
|
42
|
+
"import": "./dist/mod.js",
|
43
|
+
"default": "./dist/mod.js"
|
43
44
|
},
|
44
45
|
"./compat": {
|
45
46
|
"types": "./dist/compat/mod.d.ts",
|
46
|
-
"import": "./dist/compat/mod.js"
|
47
|
+
"import": "./dist/compat/mod.js",
|
48
|
+
"default": "./dist/compat/mod.js"
|
47
49
|
},
|
48
50
|
"./federation": {
|
49
51
|
"types": "./dist/federation/mod.d.ts",
|
50
|
-
"import": "./dist/federation/mod.js"
|
52
|
+
"import": "./dist/federation/mod.js",
|
53
|
+
"default": "./dist/federation/mod.js"
|
51
54
|
},
|
52
55
|
"./nodeinfo": {
|
53
56
|
"types": "./dist/nodeinfo/mod.d.ts",
|
54
|
-
"import": "./dist/nodeinfo/mod.js"
|
57
|
+
"import": "./dist/nodeinfo/mod.js",
|
58
|
+
"default": "./dist/nodeinfo/mod.js"
|
55
59
|
},
|
56
60
|
"./runtime": {
|
57
61
|
"types": "./dist/runtime/mod.d.ts",
|
58
|
-
"import": "./dist/runtime/mod.js"
|
62
|
+
"import": "./dist/runtime/mod.js",
|
63
|
+
"default": "./dist/runtime/mod.js"
|
59
64
|
},
|
60
65
|
"./sig": {
|
61
66
|
"types": "./dist/sig/mod.d.ts",
|
62
|
-
"import": "./dist/sig/mod.js"
|
67
|
+
"import": "./dist/sig/mod.js",
|
68
|
+
"default": "./dist/sig/mod.js"
|
63
69
|
},
|
64
70
|
"./vocab": {
|
65
71
|
"types": "./dist/vocab/mod.d.ts",
|
66
|
-
"import": "./dist/vocab/mod.js"
|
72
|
+
"import": "./dist/vocab/mod.js",
|
73
|
+
"default": "./dist/vocab/mod.js"
|
67
74
|
},
|
68
75
|
"./webfinger": {
|
69
76
|
"types": "./dist/webfinger/mod.d.ts",
|
70
|
-
"import": "./dist/webfinger/mod.js"
|
77
|
+
"import": "./dist/webfinger/mod.js",
|
78
|
+
"default": "./dist/webfinger/mod.js"
|
71
79
|
},
|
72
80
|
"./x/cfworkers": {
|
73
81
|
"types": "./dist/x/cfworkers.d.ts",
|
74
|
-
"import": "./dist/x/cfworkers.js"
|
82
|
+
"import": "./dist/x/cfworkers.js",
|
83
|
+
"default": "./dist/x/cfworkers.js"
|
75
84
|
},
|
76
85
|
"./x/hono": {
|
77
86
|
"types": "./dist/x/hono.d.ts",
|
78
|
-
"import": "./dist/x/hono.js"
|
87
|
+
"import": "./dist/x/hono.js",
|
88
|
+
"default": "./dist/x/hono.js"
|
79
89
|
},
|
80
90
|
"./x/sveltekit": {
|
81
91
|
"types": "./dist/x/sveltekit.d.ts",
|
82
|
-
"import": "./dist/x/sveltekit.js"
|
92
|
+
"import": "./dist/x/sveltekit.js",
|
93
|
+
"default": "./dist/x/sveltekit.js"
|
83
94
|
}
|
84
95
|
},
|
85
96
|
"dependencies": {
|
@@ -1,33 +0,0 @@
|
|
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-BZp6TsV9.js";
|
7
|
-
import "./docloader-DkAapQc_.js";
|
8
|
-
import "./url-kTAI6_KP.js";
|
9
|
-
import "./semver-DWClQt_5.js";
|
10
|
-
import "./client-DGzWjDhk.js";
|
11
|
-
import "./router-D3UybECj.js";
|
12
|
-
import "./types-C7C_l-jz.js";
|
13
|
-
import "./multibase-DeCHcK8L.js";
|
14
|
-
import "./vocab-x1J4xmfs.js";
|
15
|
-
import "./langstr-DbWheeIS.js";
|
16
|
-
import "./lookup-tn6iksxL.js";
|
17
|
-
import "./type-D2s5lmbZ.js";
|
18
|
-
import "./actor-BwamOVOs.js";
|
19
|
-
import "./key-C4cogquc.js";
|
20
|
-
import "./http-_NLh4AQw.js";
|
21
|
-
import "./authdocloader-DAhh8Fj0.js";
|
22
|
-
import "./ld-DqPMDWzB.js";
|
23
|
-
import "./owner-H215iqvU.js";
|
24
|
-
import "./proof-BKCny61f.js";
|
25
|
-
import "./lookup-Ceatq76e.js";
|
26
|
-
import "./inbox-C1fucqgb.js";
|
27
|
-
import "./builder-BqFNBlWO.js";
|
28
|
-
import "./collection-Dfb0TPno.js";
|
29
|
-
import "./keycache-SBjbS-RE.js";
|
30
|
-
import "./retry-BiIhZWgD.js";
|
31
|
-
import "./send-DvVUb-A7.js";
|
32
|
-
|
33
|
-
export { FederationImpl };
|
@@ -1,17 +0,0 @@
|
|
1
|
-
|
2
|
-
import { Temporal } from "@js-temporal/polyfill";
|
3
|
-
import { URLPattern } from "urlpattern-polyfill";
|
4
|
-
|
5
|
-
import "./transformers-ghwJuzGY.js";
|
6
|
-
import "./docloader-DZLBnsTj.js";
|
7
|
-
import "./actor-DuYja3s_.js";
|
8
|
-
import { ContextImpl, FederationImpl, InboxContextImpl, KvSpecDeterminer, createFederation } from "./middleware-D9lp51Qo.js";
|
9
|
-
import "./lookup-LMJC-TLp.js";
|
10
|
-
import "./key-BYYZAmsY.js";
|
11
|
-
import "./http-BDTHMKLY.js";
|
12
|
-
import "./proof-f69jWqQJ.js";
|
13
|
-
import "./types-CO3XVJo_.js";
|
14
|
-
import "./authdocloader-COnJz2Gi.js";
|
15
|
-
import "./vocab-BhuePG48.js";
|
16
|
-
|
17
|
-
export { FederationImpl };
|