@fedify/fedify 1.9.0-pr.428.1588 → 1.9.0-pr.431.1610
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-CdM_sJLC.js → actor-BEAs4Rfa.js} +190 -190
- package/dist/actor-CHOM_AN3.d.cts +128 -0
- package/dist/{actor-ByOSf9n9.js → actor-D1SNISu7.js} +1 -1
- package/dist/actor-D7jYcPnn.cjs +37783 -0
- package/dist/{authdocloader-CfP6lfxM.js → authdocloader-CfBE-GwX.js} +3 -3
- package/dist/authdocloader-DKJUCe4a.cjs +58 -0
- package/dist/{authdocloader-VVd0U8Qg.js → authdocloader-DKxdIQtO.js} +6 -6
- package/dist/{builder-mfXmda-W.js → builder-CgGQBruC.js} +4 -4
- package/dist/chunk-DqRYRqnO.cjs +34 -0
- package/dist/{client-DB8N2RwI.js → client-C3YSqexf.js} +1 -1
- package/dist/client-DjT_tegg.d.cts +294 -0
- package/dist/compat/mod.cjs +10 -0
- package/dist/compat/mod.d.cts +13 -0
- package/dist/compat/mod.js +5 -5
- package/dist/compat/transformers.test.js +16 -16
- package/dist/compat-DmDDELst.cjs +4 -0
- package/dist/compat-nxUqe4Z-.js +4 -0
- package/dist/context-KXVF2AhH.d.cts +2261 -0
- package/dist/{docloader-XJzCMWY-.js → docloader-B1XuLkAD.js} +188 -8
- package/dist/docloader-BvAM7fZH.cjs +4862 -0
- package/dist/docloader-D-MrRyHl.d.cts +219 -0
- package/dist/{esm-BVYQVacR.js → esm-DJ_VMRiX.js} +1 -1
- package/dist/federation/builder.test.js +5 -5
- package/dist/federation/collection.test.js +3 -3
- package/dist/federation/handler.test.js +17 -17
- package/dist/federation/inbox.test.js +4 -4
- package/dist/federation/keycache.test.js +4 -4
- package/dist/federation/kv.test.js +3 -3
- package/dist/federation/middleware.test.js +18 -18
- package/dist/federation/mod.cjs +29 -0
- package/dist/federation/mod.d.cts +13 -0
- package/dist/federation/mod.js +15 -15
- package/dist/federation/mq.test.js +3 -3
- package/dist/federation/retry.test.js +3 -3
- package/dist/federation/router.test.js +3 -3
- package/dist/federation/send.test.js +10 -10
- package/dist/{federation-CMX7WzeL.js → federation-D1U8YY9t.js} +3 -3
- package/dist/federation-H2_En3j5.cjs +244 -0
- package/dist/http-B_zBcsai.d.cts +253 -0
- package/dist/{http-B_bBrm6N.js → http-BgzA6jae.js} +2 -2
- package/dist/http-CAFNF0iO.cjs +826 -0
- package/dist/{http-DYB4M8Pr.js → http-Ds0LTTSM.js} +6 -6
- package/dist/{inbox-B4k2JQpE.js → inbox-D4Cb7QkK.js} +1 -1
- package/dist/{key-BcVEPl--.js → key-B-zNaX1j.js} +3 -3
- package/dist/key-BDenFcHJ.cjs +10 -0
- package/dist/key-CCZPSqiH.cjs +290 -0
- package/dist/{key-BdBFUTr5.js → key-CIhTILta.js} +5 -5
- package/dist/key-CgTdjgMJ.js +10 -0
- package/dist/{key-feGm-IP3.js → key-Cy9BZAvS.js} +2 -2
- package/dist/{keycache-b7FYgzB9.js → keycache-wYb-oxnf.js} +1 -1
- package/dist/{keys-B7uX1KoX.js → keys-DC6gPFjj.js} +1 -1
- package/dist/kv-63Cil1MD.d.cts +81 -0
- package/dist/{ld-DJCemZO2.js → ld-BRNOa1H0.js} +2 -2
- package/dist/lookup-B8HaDWQy.cjs +137 -0
- package/dist/{lookup-CIsbr_Qi.js → lookup-C4eH5cYn.js} +4 -4
- package/dist/{lookup-CXaZBmuy.js → lookup-CbeXkXzo.js} +1 -1
- package/dist/middleware-67ENnFNZ.js +17 -0
- package/dist/middleware-C8ExR52y.cjs +4240 -0
- package/dist/{middleware-e_Gw7sQy.js → middleware-DS1MxLTd.js} +14 -14
- package/dist/middleware-DWa2DHDL.cjs +17 -0
- package/dist/middleware-qMDNSljM.js +26 -0
- package/dist/{middleware-D5JRdsEc.js → middleware-yTRyzvMw.js} +13 -13
- package/dist/mod-C2tOeRkN.d.cts +1 -0
- package/dist/mod-C3CGxYoF.d.cts +102 -0
- package/dist/mod-COw_caPC.d.cts +266 -0
- package/dist/mod-FZd39qVq.d.cts +1 -0
- package/dist/mod-NKH_G-IY.d.cts +289 -0
- package/dist/mod-YfAcrVbP.d.cts +80 -0
- package/dist/mod-jQ4OODsl.d.cts +113 -0
- package/dist/mod.cjs +152 -0
- package/dist/mod.d.cts +17 -0
- package/dist/mod.js +20 -20
- package/dist/mq-B7R1Q-M5.d.cts +140 -0
- package/dist/nodeinfo/client.test.js +5 -5
- package/dist/nodeinfo/handler.test.js +16 -16
- package/dist/nodeinfo/mod.cjs +13 -0
- package/dist/nodeinfo/mod.d.cts +5 -0
- package/dist/nodeinfo/mod.js +6 -6
- package/dist/nodeinfo/semver.test.js +3 -3
- package/dist/nodeinfo/types.test.js +3 -3
- package/dist/nodeinfo-Co9lJrWl.cjs +4 -0
- package/dist/nodeinfo-DfycQ8Wf.js +4 -0
- package/dist/owner-C9Ry0TOI.d.cts +67 -0
- package/dist/{owner-i9FkgZwa.js → owner-CA34KiVt.js} +2 -2
- package/dist/proof-BYW1UtvZ.cjs +673 -0
- package/dist/{proof-Bvtdd-Ul.js → proof-DCywA0A9.js} +2 -2
- package/dist/{proof-DKGUTtBt.js → proof-Lb5J8kZs.js} +6 -6
- package/dist/runtime/authdocloader.test.js +9 -9
- package/dist/runtime/docloader.test.js +4 -4
- package/dist/runtime/key.test.js +5 -5
- package/dist/runtime/langstr.test.js +3 -3
- package/dist/runtime/link.test.d.ts +3 -0
- package/dist/runtime/link.test.js +61 -0
- package/dist/runtime/mod.cjs +25 -0
- package/dist/runtime/mod.d.cts +6 -0
- package/dist/runtime/mod.js +10 -10
- package/dist/runtime/multibase/multibase.test.js +3 -3
- package/dist/runtime/url.test.js +3 -3
- package/dist/runtime-C58AJWSv.cjs +4 -0
- package/dist/runtime-DPYEDf-o.js +4 -0
- package/dist/{send-Cuw-wTCx.js → send-CCYAwvUz.js} +2 -2
- package/dist/sig/http.test.js +8 -8
- package/dist/sig/key.test.js +6 -6
- package/dist/sig/ld.test.js +7 -7
- package/dist/sig/mod.cjs +30 -0
- package/dist/sig/mod.d.cts +8 -0
- package/dist/sig/mod.js +10 -10
- package/dist/sig/owner.test.js +7 -7
- package/dist/sig/proof.test.js +7 -7
- package/dist/sig-ByHXzqUi.cjs +4 -0
- package/dist/sig-Cj3tk-ig.js +4 -0
- package/dist/testing/docloader.test.js +3 -3
- package/dist/testing/mod.js +3 -3
- package/dist/{testing-DUFWSgSt.js → testing-D8uHmxZf.js} +2 -2
- package/dist/{transformers-Dna8Fg7k.js → transformers-BFT6d7J5.js} +3 -3
- package/dist/transformers-CoBS-oFG.cjs +116 -0
- package/dist/{type-DDwsy8fI.js → type-B_KdjvvV.js} +371 -191
- package/dist/{types-CuvNqe2X.js → types-BJQx6og9.js} +4 -4
- package/dist/types-Bnm8HO_7.cjs +488 -0
- package/dist/vocab/actor.test.js +5 -5
- package/dist/vocab/lookup.test.js +4 -4
- package/dist/vocab/mod.cjs +87 -0
- package/dist/vocab/mod.d.cts +6 -0
- package/dist/vocab/mod.js +7 -7
- package/dist/vocab/type.test.js +3 -3
- package/dist/vocab/vocab.test.js +4 -4
- package/dist/{vocab-CEXwobaS.js → vocab-Bg61J7Qa.js} +6 -6
- package/dist/vocab-BzGg7ltX.d.cts +14629 -0
- package/dist/vocab-HaE5Fc6F.cjs +282 -0
- package/dist/webfinger/handler.test.js +16 -16
- package/dist/webfinger/lookup.test.js +4 -4
- package/dist/webfinger/mod.cjs +9 -0
- package/dist/webfinger/mod.d.cts +4 -0
- package/dist/webfinger/mod.js +6 -6
- package/dist/webfinger-BjOEdFPs.cjs +4 -0
- package/dist/webfinger-De_bU0iE.js +4 -0
- package/dist/x/cfworkers.cjs +100 -0
- package/dist/x/cfworkers.d.cts +59 -0
- package/dist/x/cfworkers.js +3 -3
- package/dist/x/cfworkers.test.js +3 -3
- package/dist/x/hono.cjs +61 -0
- package/dist/x/hono.d.cts +54 -0
- package/dist/x/hono.js +3 -3
- package/dist/x/sveltekit.cjs +69 -0
- package/dist/x/sveltekit.d.cts +46 -0
- package/dist/x/sveltekit.js +3 -3
- package/package.json +68 -13
- package/dist/compat-Bb5myD13.js +0 -4
- package/dist/key-0hFXQUQz.js +0 -10
- package/dist/middleware-BhQdOVAF.js +0 -17
- package/dist/middleware-DVy3ms0C.js +0 -26
- package/dist/nodeinfo-CyEbLjHs.js +0 -4
- package/dist/runtime-BSkOVUWM.js +0 -4
- package/dist/sig-BXJO--F9.js +0 -4
- package/dist/webfinger-C3GIyXIg.js +0 -4
@@ -0,0 +1,219 @@
|
|
1
|
+
import { KvKey, KvStore } from "./kv-63Cil1MD.cjs";
|
2
|
+
|
3
|
+
//#region src/runtime/docloader.d.ts
|
4
|
+
/**
|
5
|
+
* A remote JSON-LD document and its context fetched by
|
6
|
+
* a {@link DocumentLoader}.
|
7
|
+
*/
|
8
|
+
interface RemoteDocument {
|
9
|
+
/**
|
10
|
+
* The URL of the context document.
|
11
|
+
*/
|
12
|
+
contextUrl: string | null;
|
13
|
+
/**
|
14
|
+
* The fetched JSON-LD document.
|
15
|
+
*/
|
16
|
+
document: unknown;
|
17
|
+
/**
|
18
|
+
* The URL of the fetched document.
|
19
|
+
*/
|
20
|
+
documentUrl: string;
|
21
|
+
}
|
22
|
+
/**
|
23
|
+
* Options for {@link DocumentLoader}.
|
24
|
+
* @since 1.8.0
|
25
|
+
*/
|
26
|
+
interface DocumentLoaderOptions {
|
27
|
+
/**
|
28
|
+
* An `AbortSignal` for cancellation.
|
29
|
+
* @since 1.8.0
|
30
|
+
*/
|
31
|
+
signal?: AbortSignal;
|
32
|
+
}
|
33
|
+
/**
|
34
|
+
* A JSON-LD document loader that fetches documents from the Web.
|
35
|
+
* @param url The URL of the document to load.
|
36
|
+
* @param options The options for the document loader.
|
37
|
+
* @returns The loaded remote document.
|
38
|
+
*/
|
39
|
+
type DocumentLoader = (url: string, options?: DocumentLoaderOptions) => Promise<RemoteDocument>;
|
40
|
+
/**
|
41
|
+
* A factory function that creates a {@link DocumentLoader} with options.
|
42
|
+
* @param options The options for the document loader.
|
43
|
+
* @returns The document loader.
|
44
|
+
* @since 1.4.0
|
45
|
+
*/
|
46
|
+
type DocumentLoaderFactory = (options?: DocumentLoaderFactoryOptions) => DocumentLoader;
|
47
|
+
/**
|
48
|
+
* Options for {@link DocumentLoaderFactory}.
|
49
|
+
* @see {@link DocumentLoaderFactory}
|
50
|
+
* @see {@link AuthenticatedDocumentLoaderFactory}
|
51
|
+
* @since 1.4.0
|
52
|
+
*/
|
53
|
+
interface DocumentLoaderFactoryOptions {
|
54
|
+
/**
|
55
|
+
* Whether to allow fetching private network addresses.
|
56
|
+
* Turned off by default.
|
57
|
+
* @default `false``
|
58
|
+
*/
|
59
|
+
allowPrivateAddress?: boolean;
|
60
|
+
/**
|
61
|
+
* Options for making `User-Agent` string.
|
62
|
+
* If a string is given, it is used as the `User-Agent` header value.
|
63
|
+
* If an object is given, it is passed to {@link getUserAgent} function.
|
64
|
+
*/
|
65
|
+
userAgent?: GetUserAgentOptions | string;
|
66
|
+
}
|
67
|
+
/**
|
68
|
+
* A factory function that creates an authenticated {@link DocumentLoader} for
|
69
|
+
* a given identity. This is used for fetching documents that require
|
70
|
+
* authentication.
|
71
|
+
* @param identity The identity to create the document loader for.
|
72
|
+
* The actor's key pair.
|
73
|
+
* @param options The options for the document loader.
|
74
|
+
* @returns The authenticated document loader.
|
75
|
+
* @since 0.4.0
|
76
|
+
*/
|
77
|
+
type AuthenticatedDocumentLoaderFactory = (identity: {
|
78
|
+
keyId: URL;
|
79
|
+
privateKey: CryptoKey;
|
80
|
+
}, options?: DocumentLoaderFactoryOptions) => DocumentLoader;
|
81
|
+
/**
|
82
|
+
* Error thrown when fetching a JSON-LD document failed.
|
83
|
+
*/
|
84
|
+
declare class FetchError extends Error {
|
85
|
+
/**
|
86
|
+
* The URL that failed to fetch.
|
87
|
+
*/
|
88
|
+
url: URL;
|
89
|
+
/**
|
90
|
+
* Constructs a new `FetchError`.
|
91
|
+
*
|
92
|
+
* @param url The URL that failed to fetch.
|
93
|
+
* @param message Error message.
|
94
|
+
*/
|
95
|
+
constructor(url: URL | string, message?: string);
|
96
|
+
}
|
97
|
+
/**
|
98
|
+
* Options for creating a request.
|
99
|
+
* @internal
|
100
|
+
*/
|
101
|
+
|
102
|
+
/**
|
103
|
+
* Options for {@link getDocumentLoader}.
|
104
|
+
* @since 1.3.0
|
105
|
+
*/
|
106
|
+
interface GetDocumentLoaderOptions extends DocumentLoaderFactoryOptions {
|
107
|
+
/**
|
108
|
+
* Whether to preload the frequently used contexts.
|
109
|
+
*/
|
110
|
+
skipPreloadedContexts?: boolean;
|
111
|
+
}
|
112
|
+
/**
|
113
|
+
* Creates a JSON-LD document loader that utilizes the browser's `fetch` API.
|
114
|
+
*
|
115
|
+
* The created loader preloads the below frequently used contexts by default
|
116
|
+
* (unless `options.ignorePreloadedContexts` is set to `true`):
|
117
|
+
*
|
118
|
+
* - <https://www.w3.org/ns/activitystreams>
|
119
|
+
* - <https://w3id.org/security/v1>
|
120
|
+
* - <https://w3id.org/security/data-integrity/v1>
|
121
|
+
* - <https://www.w3.org/ns/did/v1>
|
122
|
+
* - <https://w3id.org/security/multikey/v1>
|
123
|
+
* - <https://purl.archive.org/socialweb/webfinger>
|
124
|
+
* - <http://schema.org/>
|
125
|
+
* @param options Options for the document loader.
|
126
|
+
* @returns The document loader.
|
127
|
+
* @since 1.3.0
|
128
|
+
*/
|
129
|
+
declare function getDocumentLoader({
|
130
|
+
allowPrivateAddress,
|
131
|
+
skipPreloadedContexts,
|
132
|
+
userAgent
|
133
|
+
}?: GetDocumentLoaderOptions): DocumentLoader;
|
134
|
+
/**
|
135
|
+
* A JSON-LD document loader that utilizes the browser's `fetch` API.
|
136
|
+
*
|
137
|
+
* This loader preloads the below frequently used contexts:
|
138
|
+
*
|
139
|
+
* - <https://www.w3.org/ns/activitystreams>
|
140
|
+
* - <https://w3id.org/security/v1>
|
141
|
+
* - <https://w3id.org/security/data-integrity/v1>
|
142
|
+
* - <https://www.w3.org/ns/did/v1>
|
143
|
+
* - <https://w3id.org/security/multikey/v1>
|
144
|
+
* - <https://purl.archive.org/socialweb/webfinger>
|
145
|
+
* - <http://schema.org/>
|
146
|
+
* @param url The URL of the document to load.
|
147
|
+
* @param allowPrivateAddress Whether to allow fetching private network
|
148
|
+
* addresses. Turned off by default.
|
149
|
+
* @returns The remote document.
|
150
|
+
* @deprecated Use {@link getDocumentLoader} instead.
|
151
|
+
*/
|
152
|
+
declare function fetchDocumentLoader(url: string, allowPrivateAddress?: boolean): Promise<RemoteDocument>;
|
153
|
+
declare function fetchDocumentLoader(url: string, options?: DocumentLoaderOptions): Promise<RemoteDocument>;
|
154
|
+
/**
|
155
|
+
* The parameters for {@link kvCache} function.
|
156
|
+
*/
|
157
|
+
interface KvCacheParameters {
|
158
|
+
/**
|
159
|
+
* The document loader to decorate with a cache.
|
160
|
+
*/
|
161
|
+
loader: DocumentLoader;
|
162
|
+
/**
|
163
|
+
* The key–value store to use for backing the cache.
|
164
|
+
*/
|
165
|
+
kv: KvStore;
|
166
|
+
/**
|
167
|
+
* The key prefix to use for namespacing the cache.
|
168
|
+
* `["_fedify", "remoteDocument"]` by default.
|
169
|
+
*/
|
170
|
+
prefix?: KvKey;
|
171
|
+
/**
|
172
|
+
* The per-URL cache rules in the array of `[urlPattern, duration]` pairs
|
173
|
+
* where `urlPattern` is either a string, a {@link URL}, or
|
174
|
+
* a {@link URLPattern} and `duration` is a {@link Temporal.Duration}.
|
175
|
+
* The `duration` is allowed to be at most 30 days.
|
176
|
+
*
|
177
|
+
* By default, 5 minutes for all URLs.
|
178
|
+
*/
|
179
|
+
rules?: [string | URL | URLPattern, Temporal.Duration][];
|
180
|
+
}
|
181
|
+
/**
|
182
|
+
* Decorates a {@link DocumentLoader} with a cache backed by a {@link Deno.Kv}.
|
183
|
+
* @param parameters The parameters for the cache.
|
184
|
+
* @returns The decorated document loader which is cache-enabled.
|
185
|
+
*/
|
186
|
+
declare function kvCache({
|
187
|
+
loader,
|
188
|
+
kv,
|
189
|
+
prefix,
|
190
|
+
rules
|
191
|
+
}: KvCacheParameters): DocumentLoader;
|
192
|
+
/**
|
193
|
+
* Options for making `User-Agent` string.
|
194
|
+
* @see {@link getUserAgent}
|
195
|
+
* @since 1.3.0
|
196
|
+
*/
|
197
|
+
interface GetUserAgentOptions {
|
198
|
+
/**
|
199
|
+
* An optional software name and version, e.g., `"Hollo/1.0.0"`.
|
200
|
+
*/
|
201
|
+
software?: string | null;
|
202
|
+
/**
|
203
|
+
* An optional URL to append to the user agent string.
|
204
|
+
* Usually the URL of the ActivityPub instance.
|
205
|
+
*/
|
206
|
+
url?: string | URL | null;
|
207
|
+
}
|
208
|
+
/**
|
209
|
+
* Gets the user agent string for the given application and URL.
|
210
|
+
* @param options The options for making the user agent string.
|
211
|
+
* @returns The user agent string.
|
212
|
+
* @since 1.3.0
|
213
|
+
*/
|
214
|
+
declare function getUserAgent({
|
215
|
+
software,
|
216
|
+
url
|
217
|
+
}?: GetUserAgentOptions): string;
|
218
|
+
//#endregion
|
219
|
+
export { AuthenticatedDocumentLoaderFactory, DocumentLoader, DocumentLoaderFactory, DocumentLoaderFactoryOptions, FetchError, GetDocumentLoaderOptions, GetUserAgentOptions, KvCacheParameters, RemoteDocument, fetchDocumentLoader, getDocumentLoader, getUserAgent, kvCache };
|
@@ -3,7 +3,7 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import { __commonJS, __toESM } from "./type-
|
6
|
+
import { __commonJS, __toESM } from "./type-B_KdjvvV.js";
|
7
7
|
|
8
8
|
//#region ../../node_modules/.pnpm/glob-to-regexp@0.4.1/node_modules/glob-to-regexp/index.js
|
9
9
|
var require_glob_to_regexp = __commonJS({ "../../node_modules/.pnpm/glob-to-regexp@0.4.1/node_modules/glob-to-regexp/index.js"(exports, module) {
|
@@ -3,16 +3,16 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import { Activity, Note, Person } from "../type-
|
6
|
+
import { Activity, Note, Person } from "../type-B_KdjvvV.js";
|
7
7
|
import { assertEquals } from "../assert_equals-DSbWqCm3.js";
|
8
8
|
import "../assert-MZs1qjMx.js";
|
9
9
|
import "../assert_instance_of-DHz7EHNU.js";
|
10
10
|
import { MemoryKvStore } from "../kv-CRZrzyXm.js";
|
11
11
|
import { parseSemVer } from "../semver-dArNLkR9.js";
|
12
|
-
import "../lookup-
|
13
|
-
import "../inbox-
|
14
|
-
import { createFederationBuilder } from "../builder-
|
15
|
-
import { test } from "../testing-
|
12
|
+
import "../lookup-CbeXkXzo.js";
|
13
|
+
import "../inbox-D4Cb7QkK.js";
|
14
|
+
import { createFederationBuilder } from "../builder-CgGQBruC.js";
|
15
|
+
import { test } from "../testing-D8uHmxZf.js";
|
16
16
|
import { assertExists } from "../std__assert-X-_kMxKM.js";
|
17
17
|
import "../assert_rejects-DiIiJbZn.js";
|
18
18
|
import "../assert_is_error-BPGph1Jx.js";
|
@@ -3,13 +3,13 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import "../type-
|
6
|
+
import "../type-B_KdjvvV.js";
|
7
7
|
import { assertEquals } from "../assert_equals-DSbWqCm3.js";
|
8
8
|
import "../assert-MZs1qjMx.js";
|
9
9
|
import "../assert_instance_of-DHz7EHNU.js";
|
10
|
-
import "../lookup-
|
10
|
+
import "../lookup-CbeXkXzo.js";
|
11
11
|
import { buildCollectionSynchronizationHeader, digest } from "../collection-CSzG2j1P.js";
|
12
|
-
import { test } from "../testing-
|
12
|
+
import { test } from "../testing-D8uHmxZf.js";
|
13
13
|
import "../std__assert-X-_kMxKM.js";
|
14
14
|
import "../assert_rejects-DiIiJbZn.js";
|
15
15
|
import "../assert_is_error-BPGph1Jx.js";
|
@@ -3,36 +3,36 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import { Create, Note, Person } from "../type-
|
6
|
+
import { Create, Note, Person } from "../type-B_KdjvvV.js";
|
7
7
|
import { assertEquals } from "../assert_equals-DSbWqCm3.js";
|
8
8
|
import { assert } from "../assert-MZs1qjMx.js";
|
9
9
|
import "../assert_instance_of-DHz7EHNU.js";
|
10
10
|
import { MemoryKvStore } from "../kv-CRZrzyXm.js";
|
11
|
-
import { acceptsJsonLd, createFederation, handleActor, handleCollection, handleCustomCollection, handleInbox, handleObject, respondWithObject, respondWithObjectIfAcceptable } from "../middleware-
|
11
|
+
import { acceptsJsonLd, createFederation, handleActor, handleCollection, handleCustomCollection, handleInbox, handleObject, respondWithObject, respondWithObjectIfAcceptable } from "../middleware-yTRyzvMw.js";
|
12
12
|
import "../semver-dArNLkR9.js";
|
13
|
-
import "../client-
|
14
|
-
import "../lookup-
|
13
|
+
import "../client-C3YSqexf.js";
|
14
|
+
import "../lookup-CbeXkXzo.js";
|
15
15
|
import "../types-BIgY6c-l.js";
|
16
|
-
import "../actor-
|
17
|
-
import "../key-
|
18
|
-
import { signRequest } from "../http-
|
19
|
-
import "../authdocloader-
|
20
|
-
import "../ld-
|
21
|
-
import "../owner-
|
22
|
-
import "../proof-
|
23
|
-
import { InboxListenerSet } from "../inbox-
|
24
|
-
import "../builder-
|
16
|
+
import "../actor-D1SNISu7.js";
|
17
|
+
import "../key-Cy9BZAvS.js";
|
18
|
+
import { signRequest } from "../http-BgzA6jae.js";
|
19
|
+
import "../authdocloader-CfBE-GwX.js";
|
20
|
+
import "../ld-BRNOa1H0.js";
|
21
|
+
import "../owner-CA34KiVt.js";
|
22
|
+
import "../proof-DCywA0A9.js";
|
23
|
+
import { InboxListenerSet } from "../inbox-D4Cb7QkK.js";
|
24
|
+
import "../builder-CgGQBruC.js";
|
25
25
|
import "../collection-CSzG2j1P.js";
|
26
|
-
import "../keycache-
|
26
|
+
import "../keycache-wYb-oxnf.js";
|
27
27
|
import "../retry-D4GJ670a.js";
|
28
|
-
import "../send-
|
29
|
-
import { createInboxContext, createRequestContext, mockDocumentLoader, test } from "../testing-
|
28
|
+
import "../send-CCYAwvUz.js";
|
29
|
+
import { createInboxContext, createRequestContext, mockDocumentLoader, test } from "../testing-D8uHmxZf.js";
|
30
30
|
import "../std__assert-X-_kMxKM.js";
|
31
31
|
import { assertFalse } from "../assert_rejects-DiIiJbZn.js";
|
32
32
|
import "../assert_is_error-BPGph1Jx.js";
|
33
33
|
import "../assert_not_equals-f3m3epl3.js";
|
34
34
|
import "../assert_throws-BOO88avQ.js";
|
35
|
-
import { rsaPrivateKey3, rsaPublicKey2, rsaPublicKey3 } from "../keys-
|
35
|
+
import { rsaPrivateKey3, rsaPublicKey2, rsaPublicKey3 } from "../keys-DC6gPFjj.js";
|
36
36
|
|
37
37
|
//#region src/federation/handler.test.ts
|
38
38
|
test("acceptsJsonLd()", () => {
|
@@ -3,11 +3,11 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import { Activity, Create, Invite, Offer, Update } from "../type-
|
6
|
+
import { Activity, Create, Invite, Offer, Update } from "../type-B_KdjvvV.js";
|
7
7
|
import { assertEquals } from "../assert_equals-DSbWqCm3.js";
|
8
|
-
import "../lookup-
|
9
|
-
import { InboxListenerSet } from "../inbox-
|
10
|
-
import { test } from "../testing-
|
8
|
+
import "../lookup-CbeXkXzo.js";
|
9
|
+
import { InboxListenerSet } from "../inbox-D4Cb7QkK.js";
|
10
|
+
import { test } from "../testing-D8uHmxZf.js";
|
11
11
|
import "../assert_is_error-BPGph1Jx.js";
|
12
12
|
import { assertThrows } from "../assert_throws-BOO88avQ.js";
|
13
13
|
|
@@ -3,14 +3,14 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import { CryptographicKey, Multikey } from "../type-
|
6
|
+
import { CryptographicKey, Multikey } from "../type-B_KdjvvV.js";
|
7
7
|
import { assertEquals } from "../assert_equals-DSbWqCm3.js";
|
8
8
|
import { assert } from "../assert-MZs1qjMx.js";
|
9
9
|
import { assertInstanceOf } from "../assert_instance_of-DHz7EHNU.js";
|
10
10
|
import { MemoryKvStore } from "../kv-CRZrzyXm.js";
|
11
|
-
import "../lookup-
|
12
|
-
import { KvKeyCache } from "../keycache-
|
13
|
-
import { test } from "../testing-
|
11
|
+
import "../lookup-CbeXkXzo.js";
|
12
|
+
import { KvKeyCache } from "../keycache-wYb-oxnf.js";
|
13
|
+
import { test } from "../testing-D8uHmxZf.js";
|
14
14
|
|
15
15
|
//#region src/federation/keycache.test.ts
|
16
16
|
test("KvKeyCache.set()", async () => {
|
@@ -3,13 +3,13 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import "../type-
|
6
|
+
import "../type-B_KdjvvV.js";
|
7
7
|
import { assertEquals } from "../assert_equals-DSbWqCm3.js";
|
8
8
|
import "../assert-MZs1qjMx.js";
|
9
9
|
import "../assert_instance_of-DHz7EHNU.js";
|
10
10
|
import { MemoryKvStore } from "../kv-CRZrzyXm.js";
|
11
|
-
import "../lookup-
|
12
|
-
import { test } from "../testing-
|
11
|
+
import "../lookup-CbeXkXzo.js";
|
12
|
+
import { test } from "../testing-D8uHmxZf.js";
|
13
13
|
import "../std__assert-X-_kMxKM.js";
|
14
14
|
import "../assert_rejects-DiIiJbZn.js";
|
15
15
|
import "../assert_is_error-BPGph1Jx.js";
|
@@ -3,37 +3,37 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import { Activity, Announce, Create, FetchError, Invite, Multikey, Note, Object as Object$1, Offer, Person, fetchDocumentLoader, getTypeId } from "../type-
|
6
|
+
import { Activity, Announce, Create, FetchError, Invite, Multikey, Note, Object as Object$1, Offer, Person, fetchDocumentLoader, getTypeId } from "../type-B_KdjvvV.js";
|
7
7
|
import { assertEquals } from "../assert_equals-DSbWqCm3.js";
|
8
8
|
import { assert } from "../assert-MZs1qjMx.js";
|
9
9
|
import { assertInstanceOf } from "../assert_instance_of-DHz7EHNU.js";
|
10
10
|
import { MemoryKvStore } from "../kv-CRZrzyXm.js";
|
11
|
-
import { ContextImpl, FederationImpl, InboxContextImpl, KvSpecDeterminer, createFederation } from "../middleware-
|
11
|
+
import { ContextImpl, FederationImpl, InboxContextImpl, KvSpecDeterminer, createFederation } from "../middleware-yTRyzvMw.js";
|
12
12
|
import "../semver-dArNLkR9.js";
|
13
|
-
import "../client-
|
14
|
-
import { RouterError, lookupObject } from "../lookup-
|
13
|
+
import "../client-C3YSqexf.js";
|
14
|
+
import { RouterError, lookupObject } from "../lookup-CbeXkXzo.js";
|
15
15
|
import "../types-BIgY6c-l.js";
|
16
|
-
import "../actor-
|
17
|
-
import "../key-
|
18
|
-
import { signRequest, verifyRequest } from "../http-
|
19
|
-
import { getAuthenticatedDocumentLoader } from "../authdocloader-
|
20
|
-
import { detachSignature, signJsonLd, verifyJsonLd } from "../ld-
|
21
|
-
import { doesActorOwnKey } from "../owner-
|
22
|
-
import { signObject, verifyObject } from "../proof-
|
23
|
-
import "../inbox-
|
24
|
-
import "../builder-
|
16
|
+
import "../actor-D1SNISu7.js";
|
17
|
+
import "../key-Cy9BZAvS.js";
|
18
|
+
import { signRequest, verifyRequest } from "../http-BgzA6jae.js";
|
19
|
+
import { getAuthenticatedDocumentLoader } from "../authdocloader-CfBE-GwX.js";
|
20
|
+
import { detachSignature, signJsonLd, verifyJsonLd } from "../ld-BRNOa1H0.js";
|
21
|
+
import { doesActorOwnKey } from "../owner-CA34KiVt.js";
|
22
|
+
import { signObject, verifyObject } from "../proof-DCywA0A9.js";
|
23
|
+
import "../inbox-D4Cb7QkK.js";
|
24
|
+
import "../builder-CgGQBruC.js";
|
25
25
|
import "../collection-CSzG2j1P.js";
|
26
|
-
import "../keycache-
|
26
|
+
import "../keycache-wYb-oxnf.js";
|
27
27
|
import "../retry-D4GJ670a.js";
|
28
|
-
import "../send-
|
29
|
-
import { mockDocumentLoader, test } from "../testing-
|
28
|
+
import "../send-CCYAwvUz.js";
|
29
|
+
import { mockDocumentLoader, test } from "../testing-D8uHmxZf.js";
|
30
30
|
import { assertStrictEquals } from "../std__assert-X-_kMxKM.js";
|
31
31
|
import { assertFalse, assertRejects } from "../assert_rejects-DiIiJbZn.js";
|
32
32
|
import "../assert_is_error-BPGph1Jx.js";
|
33
33
|
import { assertNotEquals } from "../assert_not_equals-f3m3epl3.js";
|
34
34
|
import { assertThrows } from "../assert_throws-BOO88avQ.js";
|
35
|
-
import { ed25519Multikey, ed25519PrivateKey, ed25519PublicKey, rsaPrivateKey2, rsaPrivateKey3, rsaPublicKey2, rsaPublicKey3 } from "../keys-
|
36
|
-
import { esm_default } from "../esm-
|
35
|
+
import { ed25519Multikey, ed25519PrivateKey, ed25519PublicKey, rsaPrivateKey2, rsaPrivateKey3, rsaPublicKey2, rsaPublicKey3 } from "../keys-DC6gPFjj.js";
|
36
|
+
import { esm_default } from "../esm-DJ_VMRiX.js";
|
37
37
|
|
38
38
|
//#region src/testing/fixtures/example.com/person.json
|
39
39
|
var __context$1 = ["https://www.w3.org/ns/activitystreams", "https://w3id.org/security/v1"];
|
@@ -0,0 +1,29 @@
|
|
1
|
+
|
2
|
+
const { Temporal } = require("@js-temporal/polyfill");
|
3
|
+
const { URLPattern } = require("urlpattern-polyfill");
|
4
|
+
|
5
|
+
require('../transformers-CoBS-oFG.cjs');
|
6
|
+
require('../docloader-BvAM7fZH.cjs');
|
7
|
+
require('../actor-D7jYcPnn.cjs');
|
8
|
+
const require_middleware = require('../middleware-C8ExR52y.cjs');
|
9
|
+
require('../lookup-B8HaDWQy.cjs');
|
10
|
+
require('../key-CCZPSqiH.cjs');
|
11
|
+
require('../http-CAFNF0iO.cjs');
|
12
|
+
require('../proof-BYW1UtvZ.cjs');
|
13
|
+
const require_federation = require('../federation-H2_En3j5.cjs');
|
14
|
+
require('../types-Bnm8HO_7.cjs');
|
15
|
+
require('../authdocloader-DKJUCe4a.cjs');
|
16
|
+
require('../vocab-HaE5Fc6F.cjs');
|
17
|
+
|
18
|
+
exports.InProcessMessageQueue = require_federation.InProcessMessageQueue;
|
19
|
+
exports.MemoryKvStore = require_federation.MemoryKvStore;
|
20
|
+
exports.ParallelMessageQueue = require_federation.ParallelMessageQueue;
|
21
|
+
exports.Router = require_middleware.Router;
|
22
|
+
exports.RouterError = require_middleware.RouterError;
|
23
|
+
exports.buildCollectionSynchronizationHeader = require_middleware.buildCollectionSynchronizationHeader;
|
24
|
+
exports.createExponentialBackoffPolicy = require_middleware.createExponentialBackoffPolicy;
|
25
|
+
exports.createFederation = require_middleware.createFederation;
|
26
|
+
exports.createFederationBuilder = require_middleware.createFederationBuilder;
|
27
|
+
exports.digest = require_middleware.digest;
|
28
|
+
exports.respondWithObject = require_middleware.respondWithObject;
|
29
|
+
exports.respondWithObjectIfAcceptable = require_middleware.respondWithObjectIfAcceptable;
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import { KvKey, KvStore, KvStoreSetOptions, MemoryKvStore } from "../kv-63Cil1MD.cjs";
|
2
|
+
import "../docloader-D-MrRyHl.cjs";
|
3
|
+
import "../client-DjT_tegg.cjs";
|
4
|
+
import "../vocab-BzGg7ltX.cjs";
|
5
|
+
import "../actor-CHOM_AN3.cjs";
|
6
|
+
import "../http-B_zBcsai.cjs";
|
7
|
+
import "../owner-C9Ry0TOI.cjs";
|
8
|
+
import "../mod-NKH_G-IY.cjs";
|
9
|
+
import "../mod-jQ4OODsl.cjs";
|
10
|
+
import { ActorAliasMapper, ActorCallbackSetters, ActorDispatcher, ActorHandleMapper, ActorKeyPair, ActorKeyPairsDispatcher, AuthorizePredicate, CollectionCallbackSetters, CollectionCounter, CollectionCursor, CollectionDispatcher, ConstructorWithTypeId, Context, CreateExponentialBackoffPolicyOptions, CreateFederationOptions, CustomCollectionCallbackSetters, CustomCollectionCounter, CustomCollectionCursor, CustomCollectionDispatcher, Federatable, Federation, FederationBuilder, FederationFetchOptions, FederationKvPrefixes, FederationOptions, FederationOrigin, FederationQueueOptions, FederationStartQueueOptions, ForwardActivityOptions, GetSignedKeyOptions, InboxContext, InboxErrorHandler, InboxListener, InboxListenerSetters, Message, NodeInfoDispatcher, ObjectAuthorizePredicate, ObjectCallbackSetters, ObjectDispatcher, OutboxErrorHandler, PageItems, ParamsKeyPath, ParseUriResult, RequestContext, RespondWithObjectOptions, RetryContext, RetryPolicy, RouteActivityOptions, Router, RouterError, RouterOptions, RouterRouteResult, SendActivityOptions, SendActivityOptionsForCollection, SenderKeyPair, SharedInboxKeyDispatcher, WebFingerLinksDispatcher, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable } from "../context-KXVF2AhH.cjs";
|
11
|
+
import { InProcessMessageQueue, InProcessMessageQueueOptions, MessageQueue, MessageQueueEnqueueOptions, MessageQueueListenOptions, ParallelMessageQueue } from "../mq-B7R1Q-M5.cjs";
|
12
|
+
import "../mod-C2tOeRkN.cjs";
|
13
|
+
export { ActorAliasMapper, ActorCallbackSetters, ActorDispatcher, ActorHandleMapper, ActorKeyPair, ActorKeyPairsDispatcher, AuthorizePredicate, CollectionCallbackSetters, CollectionCounter, CollectionCursor, CollectionDispatcher, ConstructorWithTypeId, Context, CreateExponentialBackoffPolicyOptions, CreateFederationOptions, CustomCollectionCallbackSetters, CustomCollectionCounter, CustomCollectionCursor, CustomCollectionDispatcher, Federatable, Federation, FederationBuilder, FederationFetchOptions, FederationKvPrefixes, FederationOptions, FederationOrigin, FederationQueueOptions, FederationStartQueueOptions, ForwardActivityOptions, GetSignedKeyOptions, InProcessMessageQueue, InProcessMessageQueueOptions, InboxContext, InboxErrorHandler, InboxListener, InboxListenerSetters, KvKey, KvStore, KvStoreSetOptions, MemoryKvStore, Message, MessageQueue, MessageQueueEnqueueOptions, MessageQueueListenOptions, NodeInfoDispatcher, ObjectAuthorizePredicate, ObjectCallbackSetters, ObjectDispatcher, OutboxErrorHandler, PageItems, ParallelMessageQueue, ParamsKeyPath, ParseUriResult, RequestContext, RespondWithObjectOptions, RetryContext, RetryPolicy, RouteActivityOptions, Router, RouterError, RouterOptions, RouterRouteResult, SendActivityOptions, SendActivityOptionsForCollection, SenderKeyPair, SharedInboxKeyDispatcher, WebFingerLinksDispatcher, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable };
|
package/dist/federation/mod.js
CHANGED
@@ -1,18 +1,18 @@
|
|
1
1
|
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
import "../transformers-
|
6
|
-
import "../docloader-
|
7
|
-
import "../actor-
|
8
|
-
import { Router, RouterError, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable } from "../middleware-
|
9
|
-
import "../lookup-
|
10
|
-
import "../key-
|
11
|
-
import "../http-
|
12
|
-
import "../proof-
|
13
|
-
import { InProcessMessageQueue, MemoryKvStore, ParallelMessageQueue } from "../federation-
|
14
|
-
import "../types-
|
15
|
-
import "../authdocloader-
|
16
|
-
import "../vocab-
|
2
|
+
import { Temporal } from "@js-temporal/polyfill";
|
3
|
+
import { URLPattern } from "urlpattern-polyfill";
|
4
|
+
|
5
|
+
import "../transformers-BFT6d7J5.js";
|
6
|
+
import "../docloader-B1XuLkAD.js";
|
7
|
+
import "../actor-BEAs4Rfa.js";
|
8
|
+
import { Router, RouterError, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable } from "../middleware-DS1MxLTd.js";
|
9
|
+
import "../lookup-C4eH5cYn.js";
|
10
|
+
import "../key-CIhTILta.js";
|
11
|
+
import "../http-Ds0LTTSM.js";
|
12
|
+
import "../proof-Lb5J8kZs.js";
|
13
|
+
import { InProcessMessageQueue, MemoryKvStore, ParallelMessageQueue } from "../federation-D1U8YY9t.js";
|
14
|
+
import "../types-BJQx6og9.js";
|
15
|
+
import "../authdocloader-DKxdIQtO.js";
|
16
|
+
import "../vocab-Bg61J7Qa.js";
|
17
17
|
|
18
18
|
export { InProcessMessageQueue, MemoryKvStore, ParallelMessageQueue, Router, RouterError, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable };
|
@@ -3,12 +3,12 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import "../type-
|
6
|
+
import "../type-B_KdjvvV.js";
|
7
7
|
import { assertEquals } from "../assert_equals-DSbWqCm3.js";
|
8
8
|
import { assert } from "../assert-MZs1qjMx.js";
|
9
9
|
import "../assert_instance_of-DHz7EHNU.js";
|
10
|
-
import "../lookup-
|
11
|
-
import { test } from "../testing-
|
10
|
+
import "../lookup-CbeXkXzo.js";
|
11
|
+
import { test } from "../testing-D8uHmxZf.js";
|
12
12
|
import { assertGreater, assertGreaterOrEqual } from "../std__assert-X-_kMxKM.js";
|
13
13
|
import { assertFalse } from "../assert_rejects-DiIiJbZn.js";
|
14
14
|
import "../assert_is_error-BPGph1Jx.js";
|
@@ -3,11 +3,11 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import "../type-
|
6
|
+
import "../type-B_KdjvvV.js";
|
7
7
|
import { AssertionError, assertEquals } from "../assert_equals-DSbWqCm3.js";
|
8
|
-
import "../lookup-
|
8
|
+
import "../lookup-CbeXkXzo.js";
|
9
9
|
import { createExponentialBackoffPolicy } from "../retry-D4GJ670a.js";
|
10
|
-
import { test } from "../testing-
|
10
|
+
import { test } from "../testing-D8uHmxZf.js";
|
11
11
|
import { assertNotEquals } from "../assert_not_equals-f3m3epl3.js";
|
12
12
|
|
13
13
|
//#region src/federation/retry.test.ts
|
@@ -3,12 +3,12 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import "../type-
|
6
|
+
import "../type-B_KdjvvV.js";
|
7
7
|
import { assertEquals } from "../assert_equals-DSbWqCm3.js";
|
8
8
|
import { assert } from "../assert-MZs1qjMx.js";
|
9
9
|
import "../assert_instance_of-DHz7EHNU.js";
|
10
|
-
import { Router, RouterError } from "../lookup-
|
11
|
-
import { test } from "../testing-
|
10
|
+
import { Router, RouterError } from "../lookup-CbeXkXzo.js";
|
11
|
+
import { test } from "../testing-D8uHmxZf.js";
|
12
12
|
import "../std__assert-X-_kMxKM.js";
|
13
13
|
import { assertFalse } from "../assert_rejects-DiIiJbZn.js";
|
14
14
|
import "../assert_is_error-BPGph1Jx.js";
|
@@ -3,24 +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-
|
6
|
+
import { Activity, Application, Endpoints, Group, Person, Service } from "../type-B_KdjvvV.js";
|
7
7
|
import { assertEquals } from "../assert_equals-DSbWqCm3.js";
|
8
8
|
import { assert } from "../assert-MZs1qjMx.js";
|
9
9
|
import "../assert_instance_of-DHz7EHNU.js";
|
10
|
-
import "../lookup-
|
11
|
-
import "../actor-
|
12
|
-
import "../key-
|
13
|
-
import { verifyRequest } from "../http-
|
14
|
-
import { doesActorOwnKey } from "../owner-
|
15
|
-
import { extractInboxes, sendActivity } from "../send-
|
16
|
-
import { mockDocumentLoader, test } from "../testing-
|
10
|
+
import "../lookup-CbeXkXzo.js";
|
11
|
+
import "../actor-D1SNISu7.js";
|
12
|
+
import "../key-Cy9BZAvS.js";
|
13
|
+
import { verifyRequest } from "../http-BgzA6jae.js";
|
14
|
+
import { doesActorOwnKey } from "../owner-CA34KiVt.js";
|
15
|
+
import { extractInboxes, sendActivity } from "../send-CCYAwvUz.js";
|
16
|
+
import { mockDocumentLoader, test } from "../testing-D8uHmxZf.js";
|
17
17
|
import "../std__assert-X-_kMxKM.js";
|
18
18
|
import { assertFalse, assertRejects } from "../assert_rejects-DiIiJbZn.js";
|
19
19
|
import "../assert_is_error-BPGph1Jx.js";
|
20
20
|
import { assertNotEquals } from "../assert_not_equals-f3m3epl3.js";
|
21
21
|
import "../assert_throws-BOO88avQ.js";
|
22
|
-
import { ed25519Multikey, ed25519PrivateKey, rsaPrivateKey2, rsaPublicKey2 } from "../keys-
|
23
|
-
import { esm_default } from "../esm-
|
22
|
+
import { ed25519Multikey, ed25519PrivateKey, rsaPrivateKey2, rsaPublicKey2 } from "../keys-DC6gPFjj.js";
|
23
|
+
import { esm_default } from "../esm-DJ_VMRiX.js";
|
24
24
|
|
25
25
|
//#region src/federation/send.test.ts
|
26
26
|
test("extractInboxes()", () => {
|
@@ -1,7 +1,7 @@
|
|
1
1
|
|
2
|
-
|
3
|
-
|
4
|
-
|
2
|
+
import { Temporal } from "@js-temporal/polyfill";
|
3
|
+
import { URLPattern } from "urlpattern-polyfill";
|
4
|
+
|
5
5
|
import { isEqual } from "es-toolkit";
|
6
6
|
|
7
7
|
//#region src/federation/kv.ts
|