@fedify/fedify 1.6.1-pr.242.868 → 1.6.1-pr.242.870
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-4RHkloLu.js → actor-BZ9B-RoF.js} +3 -3
- package/dist/{actor-DTAqv8mf.js → actor-BZSxF3np.js} +179 -179
- package/dist/{actor-lFlm8FYo.d.ts → actor-f67C7yQD.d.ts} +1 -1
- package/dist/{authdocloader-DWb2O07G.js → authdocloader-D0DivxEu.js} +3 -3
- package/dist/{authdocloader-B8WXzKLO.js → authdocloader-rWSY8oOW.js} +3 -3
- package/dist/{builder-DmqGnXEV.js → builder-BkIAn75B.js} +16 -16
- package/dist/{client-BXM1Jsjk.js → client-BiqVblC1.js} +1 -1
- package/dist/compat/mod.d.ts +8 -8
- package/dist/compat/transformers.test.js +18 -18
- package/dist/{context-CNjBitqI.js → context-32iZISdA.js} +3 -3
- package/dist/{context-D-mAOKif.d.ts → context-DBM4y1xF.d.ts} +6 -5
- package/dist/{docloader-SoTWFoGg.js → docloader-B8h_rZsO.js} +1 -1
- package/dist/{docloader-Bx3IyCbi.js → docloader-BnNphEMr.js} +1 -1
- package/dist/federation/builder.test.js +6 -5
- package/dist/federation/handler.test.js +20 -20
- package/dist/federation/inbox.test.js +3 -3
- package/dist/federation/keycache.test.js +3 -3
- package/dist/federation/middleware.test.js +19 -19
- package/dist/federation/mod.d.ts +7 -7
- package/dist/federation/mod.js +10 -10
- package/dist/federation/router.test.js +16 -3
- package/dist/federation/send.test.js +9 -9
- package/dist/{http-BImJcLfv.d.ts → http-CZyKN-rt.d.ts} +1 -1
- package/dist/{http-Bx8zx0B9.js → http-DNpod1Ge.js} +3 -3
- package/dist/{http-_wjASyrF.js → http-zn1ZCiC4.js} +3 -3
- package/dist/{inbox-B25fOUCE.js → inbox-CeJ_mvRP.js} +8 -3
- package/dist/{key-DMjXmsGn.js → key-BNiziAax.js} +3 -3
- package/dist/{key-BSJPc6d6.js → key-C8Pn30oc.js} +4 -4
- package/dist/{key-DJR5B9MR.js → key-ColohqTL.js} +5 -5
- package/dist/{key-DLPGtYyL.js → key-shd1YA1v.js} +2 -2
- package/dist/{keycache-Bfb23HgF.js → keycache-CsaCu72m.js} +1 -1
- package/dist/{keys-Bpe3lo_n.js → keys-Blj3q2iI.js} +1 -1
- package/dist/{ld-DnImogQ2.js → ld-CgeTT2_c.js} +3 -3
- package/dist/{lookup-BdqwM7q0.js → lookup-BhC7f-4T.js} +3 -3
- package/dist/{lookup-iEX2Qf_y.js → lookup-C1iODRax.js} +1 -1
- package/dist/{lookup-DuhsEtQ9.js → lookup-eKf7p7Ac.js} +1 -1
- package/dist/{lookup-DAfStZtI.d.ts → lookup-nlxO7x0u.d.ts} +1 -1
- package/dist/{middleware-DIkN1Cw2.js → middleware-2mnj-GVU.js} +55 -32
- package/dist/middleware-DWeRWtqS.js +17 -0
- package/dist/{middleware-kjMnS9e3.js → middleware-DorxmHEo.js} +16 -16
- package/dist/middleware-vEJM7OL8.js +33 -0
- package/dist/{mod-XT0mRthe.d.ts → mod-BUAWJ2pK.d.ts} +2 -2
- package/dist/{mod-DysVoXOu.d.ts → mod-Bx6Du4Ct.d.ts} +1 -1
- package/dist/{mod-zRl4tJCz.d.ts → mod-CsYfI7YL.d.ts} +2 -2
- package/dist/{mod-BxwG4X3V.d.ts → mod-iE_61Xjt.d.ts} +1 -1
- package/dist/mod.d.ts +10 -10
- package/dist/mod.js +10 -10
- package/dist/nodeinfo/client.test.js +2 -2
- package/dist/nodeinfo/handler.test.js +19 -19
- package/dist/nodeinfo/mod.js +2 -2
- package/dist/{owner-DqE35Vly.js → owner-BE4bLxh6.js} +3 -3
- package/dist/{owner-BjpObx-L.d.ts → owner-C_Gw25Id.d.ts} +2 -2
- package/dist/{proof-4GVd_94h.js → proof-CZ5J2Im2.js} +3 -3
- package/dist/{proof-DBWAm04A.js → proof-DrMu1lZ-.js} +3 -3
- package/dist/{router-BQ9wxxuz.js → router-D_aVZZUc.js} +19 -1
- 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.d.ts +3 -3
- package/dist/runtime/mod.js +6 -6
- package/dist/{send-B6r0W6TU.js → send-ChVugp_l.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.d.ts +5 -5
- 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-DPKT1AqJ.js → types-DiZi5k5s.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 +3 -3
- package/dist/vocab/mod.js +4 -4
- package/dist/vocab/type.test.js +2 -2
- package/dist/vocab/vocab.test.js +4 -4
- package/dist/{vocab-Bkp-mLSq.js → vocab-7-nYuxr4.js} +3 -3
- package/dist/{vocab-CLWdoo7y.d.ts → vocab-C4bpdeio.d.ts} +1 -1
- package/dist/{vocab-DGenL1NB.js → vocab-kxUmjK1n.js} +178 -178
- package/dist/webfinger/handler.test.js +19 -19
- package/dist/webfinger/lookup.test.js +2 -2
- package/dist/webfinger/mod.d.ts +1 -1
- package/dist/webfinger/mod.js +2 -2
- package/dist/x/hono.d.ts +7 -7
- package/dist/x/sveltekit.d.ts +7 -7
- package/package.json +1 -1
- package/dist/middleware-BS5P5Q6N.js +0 -33
- package/dist/middleware-DXhUqEJ1.js +0 -17
@@ -3,18 +3,23 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import { deno_default } from "./docloader-
|
7
|
-
import { Activity } from "./vocab-
|
6
|
+
import { deno_default } from "./docloader-B8h_rZsO.js";
|
7
|
+
import { Activity } from "./vocab-kxUmjK1n.js";
|
8
8
|
import { getTypeId } from "./type-D2s5lmbZ.js";
|
9
9
|
import { getLogger } from "@logtape/logtape";
|
10
10
|
import { SpanKind, SpanStatusCode, context, propagation, trace } from "@opentelemetry/api";
|
11
11
|
|
12
12
|
//#region federation/inbox.ts
|
13
|
-
var InboxListenerSet = class {
|
13
|
+
var InboxListenerSet = class InboxListenerSet {
|
14
14
|
#listeners;
|
15
15
|
constructor() {
|
16
16
|
this.#listeners = new Map();
|
17
17
|
}
|
18
|
+
clone() {
|
19
|
+
const clone = new InboxListenerSet();
|
20
|
+
clone.#listeners = new Map(this.#listeners);
|
21
|
+
return clone;
|
22
|
+
}
|
18
23
|
add(type, listener) {
|
19
24
|
if (this.#listeners.has(type)) throw new TypeError("Listener already set for this type.");
|
20
25
|
this.#listeners.set(type, listener);
|
@@ -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 { CryptographicKey, Object as Object$1 } from "./vocab-
|
8
|
-
import { isActor } from "./actor-
|
6
|
+
import { deno_default, getDocumentLoader } from "./docloader-B8h_rZsO.js";
|
7
|
+
import { CryptographicKey, Object as Object$1 } from "./vocab-kxUmjK1n.js";
|
8
|
+
import { isActor } from "./actor-BZ9B-RoF.js";
|
9
9
|
import { getLogger } from "@logtape/logtape";
|
10
10
|
import { SpanKind, SpanStatusCode, trace } from "@opentelemetry/api";
|
11
11
|
|
@@ -2,9 +2,9 @@
|
|
2
2
|
import { Temporal } from "@js-temporal/polyfill";
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
|
5
|
-
import "./docloader-
|
6
|
-
import "./actor-
|
7
|
-
import "./lookup-
|
8
|
-
import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk, validateCryptoKey } from "./key-
|
5
|
+
import "./docloader-BnNphEMr.js";
|
6
|
+
import "./actor-BZSxF3np.js";
|
7
|
+
import "./lookup-C1iODRax.js";
|
8
|
+
import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk, validateCryptoKey } from "./key-shd1YA1v.js";
|
9
9
|
|
10
10
|
export { validateCryptoKey };
|
@@ -3,14 +3,14 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import "./docloader-
|
6
|
+
import "./docloader-B8h_rZsO.js";
|
7
7
|
import "./url-kTAI6_KP.js";
|
8
8
|
import "./multibase-DeCHcK8L.js";
|
9
|
-
import "./vocab-
|
9
|
+
import "./vocab-kxUmjK1n.js";
|
10
10
|
import "./langstr-DbWheeIS.js";
|
11
|
-
import "./lookup-
|
11
|
+
import "./lookup-eKf7p7Ac.js";
|
12
12
|
import "./type-D2s5lmbZ.js";
|
13
|
-
import "./actor-
|
14
|
-
import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk, validateCryptoKey } from "./key-
|
13
|
+
import "./actor-BZ9B-RoF.js";
|
14
|
+
import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk, validateCryptoKey } from "./key-BNiziAax.js";
|
15
15
|
|
16
16
|
export { validateCryptoKey };
|
@@ -2,8 +2,8 @@
|
|
2
2
|
import { Temporal } from "@js-temporal/polyfill";
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
|
5
|
-
import { deno_default, getDocumentLoader } from "./docloader-
|
6
|
-
import { CryptographicKey, Object as Object$1, isActor } from "./actor-
|
5
|
+
import { deno_default, getDocumentLoader } from "./docloader-BnNphEMr.js";
|
6
|
+
import { CryptographicKey, Object as Object$1, isActor } from "./actor-BZSxF3np.js";
|
7
7
|
import { getLogger } from "@logtape/logtape";
|
8
8
|
import { SpanKind, SpanStatusCode, trace } from "@opentelemetry/api";
|
9
9
|
|
@@ -3,7 +3,7 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import { CryptographicKey, Multikey } from "./vocab-
|
6
|
+
import { CryptographicKey, Multikey } from "./vocab-kxUmjK1n.js";
|
7
7
|
|
8
8
|
//#region federation/keycache.ts
|
9
9
|
var KvKeyCache = class {
|
@@ -3,7 +3,7 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import { CryptographicKey, Multikey, importSpki } from "./vocab-
|
6
|
+
import { CryptographicKey, Multikey, importSpki } from "./vocab-kxUmjK1n.js";
|
7
7
|
|
8
8
|
//#region testing/keys.ts
|
9
9
|
const rsaPublicKey1 = new CryptographicKey({
|
@@ -3,10 +3,10 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import { deno_default, getDocumentLoader } from "./docloader-
|
7
|
-
import { Activity, CryptographicKey, Object as Object$1 } from "./vocab-
|
6
|
+
import { deno_default, getDocumentLoader } from "./docloader-B8h_rZsO.js";
|
7
|
+
import { Activity, CryptographicKey, Object as Object$1 } from "./vocab-kxUmjK1n.js";
|
8
8
|
import { getTypeId } from "./type-D2s5lmbZ.js";
|
9
|
-
import { fetchKey, validateCryptoKey } from "./key-
|
9
|
+
import { fetchKey, validateCryptoKey } from "./key-BNiziAax.js";
|
10
10
|
import { getLogger } from "@logtape/logtape";
|
11
11
|
import { SpanStatusCode, trace } from "@opentelemetry/api";
|
12
12
|
import { decodeBase64, encodeBase64 } from "byte-encodings/base64";
|
@@ -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-B8h_rZsO.js";
|
7
|
+
import { Object as Object$1 } from "./vocab-kxUmjK1n.js";
|
8
|
+
import { lookupWebFinger } from "./lookup-eKf7p7Ac.js";
|
9
9
|
import { getTypeId } from "./type-D2s5lmbZ.js";
|
10
10
|
import { getLogger } from "@logtape/logtape";
|
11
11
|
import { SpanStatusCode, trace } from "@opentelemetry/api";
|
@@ -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-BnNphEMr.js";
|
6
6
|
import { getLogger } from "@logtape/logtape";
|
7
7
|
import { SpanKind, SpanStatusCode, trace } from "@opentelemetry/api";
|
8
8
|
|
@@ -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-B8h_rZsO.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";
|
@@ -97,4 +97,4 @@ interface LookupWebFingerOptions {
|
|
97
97
|
declare function lookupWebFinger(resource: URL | string, options?: LookupWebFingerOptions): Promise<ResourceDescriptor | null>;
|
98
98
|
|
99
99
|
//#endregion
|
100
|
-
export { Link as Link$
|
100
|
+
export { Link as Link$1, LookupWebFingerOptions, ResourceDescriptor, lookupWebFinger as lookupWebFinger$1 };
|
@@ -3,29 +3,35 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
|
5
5
|
import { getDefaultActivityTransformers$1 as getDefaultActivityTransformers } from "./transformers-jxj-4o2K.js";
|
6
|
-
import { deno_default, getDocumentLoader, kvCache } from "./docloader-
|
7
|
-
import { Activity, CryptographicKey, Link, Multikey, Object as Object$1, OrderedCollection, OrderedCollectionPage, getTypeId$1 as getTypeId } from "./actor-
|
8
|
-
import { lookupWebFinger } from "./lookup-
|
9
|
-
import { exportJwk, importJwk, validateCryptoKey } from "./key-
|
10
|
-
import { doubleKnock, verifyRequest } from "./http-
|
11
|
-
import { detachSignature$1 as detachSignature, doesActorOwnKey, getKeyOwner, hasSignature, signJsonLd$1 as signJsonLd, signObject$1 as signObject, verifyJsonLd$1 as verifyJsonLd, verifyObject$1 as verifyObject } from "./proof-
|
12
|
-
import { getNodeInfo, nodeInfoToJson } from "./types-
|
13
|
-
import { getAuthenticatedDocumentLoader$1 as getAuthenticatedDocumentLoader } from "./authdocloader-
|
14
|
-
import { lookupObject, traverseCollection } from "./vocab-
|
6
|
+
import { deno_default, getDocumentLoader, kvCache } from "./docloader-BnNphEMr.js";
|
7
|
+
import { Activity, CryptographicKey, Link, Multikey, Object as Object$1, OrderedCollection, OrderedCollectionPage, getTypeId$1 as getTypeId } from "./actor-BZSxF3np.js";
|
8
|
+
import { lookupWebFinger } from "./lookup-C1iODRax.js";
|
9
|
+
import { exportJwk, importJwk, validateCryptoKey } from "./key-shd1YA1v.js";
|
10
|
+
import { doubleKnock, verifyRequest } from "./http-zn1ZCiC4.js";
|
11
|
+
import { detachSignature$1 as detachSignature, doesActorOwnKey, getKeyOwner, hasSignature, signJsonLd$1 as signJsonLd, signObject$1 as signObject, verifyJsonLd$1 as verifyJsonLd, verifyObject$1 as verifyObject } from "./proof-DrMu1lZ-.js";
|
12
|
+
import { getNodeInfo, nodeInfoToJson } from "./types-DiZi5k5s.js";
|
13
|
+
import { getAuthenticatedDocumentLoader$1 as getAuthenticatedDocumentLoader } from "./authdocloader-D0DivxEu.js";
|
14
|
+
import { lookupObject, traverseCollection } from "./vocab-7-nYuxr4.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";
|
18
|
+
import { cloneDeep } from "@es-toolkit/es-toolkit";
|
18
19
|
import { Router } from "uri-template-router";
|
19
20
|
import { parseTemplate } from "url-template";
|
20
21
|
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";
|
21
22
|
import { domainToASCII } from "node:url";
|
22
23
|
|
23
24
|
//#region federation/inbox.ts
|
24
|
-
var InboxListenerSet = class {
|
25
|
+
var InboxListenerSet = class InboxListenerSet {
|
25
26
|
#listeners;
|
26
27
|
constructor() {
|
27
28
|
this.#listeners = new Map();
|
28
29
|
}
|
30
|
+
clone() {
|
31
|
+
const clone = new InboxListenerSet();
|
32
|
+
clone.#listeners = new Map(this.#listeners);
|
33
|
+
return clone;
|
34
|
+
}
|
29
35
|
add(type, listener) {
|
30
36
|
if (this.#listeners.has(type)) throw new TypeError("Listener already set for this type.");
|
31
37
|
this.#listeners.set(type, listener);
|
@@ -175,11 +181,21 @@ async function routeActivity({ context: ctx, json, activity, recipient, inboxLis
|
|
175
181
|
|
176
182
|
//#endregion
|
177
183
|
//#region federation/router.ts
|
184
|
+
function cloneInnerRouter(router) {
|
185
|
+
const clone = new Router();
|
186
|
+
clone.nid = router.nid;
|
187
|
+
clone.fsm = cloneDeep(router.fsm);
|
188
|
+
clone.routeSet = new Set(router.routeSet);
|
189
|
+
clone.templateRouteMap = new Map(router.templateRouteMap);
|
190
|
+
clone.valueRouteMap = new Map(router.valueRouteMap);
|
191
|
+
clone.hierarchy = cloneDeep(router.hierarchy);
|
192
|
+
return clone;
|
193
|
+
}
|
178
194
|
/**
|
179
195
|
* URL router and constructor based on URI Template
|
180
196
|
* ([RFC 6570](https://tools.ietf.org/html/rfc6570)).
|
181
197
|
*/
|
182
|
-
var Router$1 = class {
|
198
|
+
var Router$1 = class Router$1 {
|
183
199
|
#router;
|
184
200
|
#templates;
|
185
201
|
#templateStrings;
|
@@ -198,6 +214,13 @@ var Router$1 = class {
|
|
198
214
|
this.#templateStrings = {};
|
199
215
|
this.trailingSlashInsensitive = options.trailingSlashInsensitive ?? false;
|
200
216
|
}
|
217
|
+
clone() {
|
218
|
+
const clone = new Router$1({ trailingSlashInsensitive: this.trailingSlashInsensitive });
|
219
|
+
clone.#router = cloneInnerRouter(this.#router);
|
220
|
+
clone.#templates = { ...this.#templates };
|
221
|
+
clone.#templateStrings = { ...this.#templateStrings };
|
222
|
+
return clone;
|
223
|
+
}
|
201
224
|
/**
|
202
225
|
* Checks if a path name exists in the router.
|
203
226
|
* @param name The name of the path.
|
@@ -289,25 +312,25 @@ var FederationBuilderImpl = class {
|
|
289
312
|
this.objectTypeIds = {};
|
290
313
|
}
|
291
314
|
async build(options) {
|
292
|
-
const { FederationImpl: FederationImpl$1 } = await import("./middleware-
|
315
|
+
const { FederationImpl: FederationImpl$1 } = await import("./middleware-DWeRWtqS.js");
|
293
316
|
const f = new FederationImpl$1(options);
|
294
317
|
const trailingSlashInsensitiveValue = f.router.trailingSlashInsensitive;
|
295
|
-
f.router = this.router;
|
318
|
+
f.router = this.router.clone();
|
296
319
|
f.router.trailingSlashInsensitive = trailingSlashInsensitiveValue;
|
297
320
|
f._initializeRouter();
|
298
|
-
f.actorCallbacks = this.actorCallbacks;
|
321
|
+
f.actorCallbacks = this.actorCallbacks == null ? void 0 : { ...this.actorCallbacks };
|
299
322
|
f.nodeInfoDispatcher = this.nodeInfoDispatcher;
|
300
|
-
f.objectCallbacks = this.objectCallbacks;
|
301
|
-
f.objectTypeIds = this.objectTypeIds;
|
323
|
+
f.objectCallbacks = { ...this.objectCallbacks };
|
324
|
+
f.objectTypeIds = { ...this.objectTypeIds };
|
302
325
|
f.inboxPath = this.inboxPath;
|
303
|
-
f.inboxCallbacks = this.inboxCallbacks;
|
304
|
-
f.outboxCallbacks = this.outboxCallbacks;
|
305
|
-
f.followingCallbacks = this.followingCallbacks;
|
306
|
-
f.followersCallbacks = this.followersCallbacks;
|
307
|
-
f.likedCallbacks = this.likedCallbacks;
|
308
|
-
f.featuredCallbacks = this.featuredCallbacks;
|
309
|
-
f.featuredTagsCallbacks = this.featuredTagsCallbacks;
|
310
|
-
f.inboxListeners = this.inboxListeners;
|
326
|
+
f.inboxCallbacks = this.inboxCallbacks == null ? void 0 : { ...this.inboxCallbacks };
|
327
|
+
f.outboxCallbacks = this.outboxCallbacks == null ? void 0 : { ...this.outboxCallbacks };
|
328
|
+
f.followingCallbacks = this.followingCallbacks == null ? void 0 : { ...this.followingCallbacks };
|
329
|
+
f.followersCallbacks = this.followersCallbacks == null ? void 0 : { ...this.followersCallbacks };
|
330
|
+
f.likedCallbacks = this.likedCallbacks == null ? void 0 : { ...this.likedCallbacks };
|
331
|
+
f.featuredCallbacks = this.featuredCallbacks == null ? void 0 : { ...this.featuredCallbacks };
|
332
|
+
f.featuredTagsCallbacks = this.featuredTagsCallbacks == null ? void 0 : { ...this.featuredTagsCallbacks };
|
333
|
+
f.inboxListeners = this.inboxListeners?.clone();
|
311
334
|
f.inboxErrorHandler = this.inboxErrorHandler;
|
312
335
|
f.sharedInboxKeyDispatcher = this.sharedInboxKeyDispatcher;
|
313
336
|
return f;
|
@@ -1601,8 +1624,8 @@ function createExponentialBackoffPolicy(options = {}) {
|
|
1601
1624
|
milliseconds *= 1 + Math.random();
|
1602
1625
|
milliseconds = Math.round(milliseconds);
|
1603
1626
|
}
|
1604
|
-
const delay = Temporal.Duration.from({ milliseconds });
|
1605
|
-
return Temporal.Duration.compare(delay, maxDelay) > 0 ? maxDelay : delay;
|
1627
|
+
const delay$1 = Temporal.Duration.from({ milliseconds });
|
1628
|
+
return Temporal.Duration.compare(delay$1, maxDelay) > 0 ? maxDelay : delay$1;
|
1606
1629
|
};
|
1607
1630
|
}
|
1608
1631
|
|
@@ -2027,11 +2050,11 @@ var FederationImpl = class extends FederationBuilderImpl {
|
|
2027
2050
|
error: error$1
|
2028
2051
|
});
|
2029
2052
|
}
|
2030
|
-
const delay = this.outboxRetryPolicy({
|
2053
|
+
const delay$1 = this.outboxRetryPolicy({
|
2031
2054
|
elapsedTime: Temporal.Instant.from(message.started).until(Temporal.Now.instant()),
|
2032
2055
|
attempts: message.attempt
|
2033
2056
|
});
|
2034
|
-
if (delay != null) {
|
2057
|
+
if (delay$1 != null) {
|
2035
2058
|
logger$1.error("Failed to send activity {activityId} to {inbox} (attempt #{attempt}); retry...:\n{error}", {
|
2036
2059
|
...logData,
|
2037
2060
|
error
|
@@ -2039,7 +2062,7 @@ var FederationImpl = class extends FederationBuilderImpl {
|
|
2039
2062
|
await this.outboxQueue?.enqueue({
|
2040
2063
|
...message,
|
2041
2064
|
attempt: message.attempt + 1
|
2042
|
-
}, { delay: Temporal.Duration.compare(delay, { seconds: 0 }) < 0 ? Temporal.Duration.from({ seconds: 0 }) : delay });
|
2065
|
+
}, { delay: Temporal.Duration.compare(delay$1, { seconds: 0 }) < 0 ? Temporal.Duration.from({ seconds: 0 }) : delay$1 });
|
2043
2066
|
} else logger$1.error("Failed to send activity {activityId} to {inbox} after {attempt} attempts; giving up:\n{error}", {
|
2044
2067
|
...logData,
|
2045
2068
|
error
|
@@ -2112,11 +2135,11 @@ var FederationImpl = class extends FederationBuilderImpl {
|
|
2112
2135
|
recipient: message.identifier
|
2113
2136
|
});
|
2114
2137
|
}
|
2115
|
-
const delay = this.inboxRetryPolicy({
|
2138
|
+
const delay$1 = this.inboxRetryPolicy({
|
2116
2139
|
elapsedTime: Temporal.Instant.from(message.started).until(Temporal.Now.instant()),
|
2117
2140
|
attempts: message.attempt
|
2118
2141
|
});
|
2119
|
-
if (delay != null) {
|
2142
|
+
if (delay$1 != null) {
|
2120
2143
|
logger$1.error("Failed to process the incoming activity {activityId} (attempt #{attempt}); retry...:\n{error}", {
|
2121
2144
|
error,
|
2122
2145
|
attempt: message.attempt,
|
@@ -2127,7 +2150,7 @@ var FederationImpl = class extends FederationBuilderImpl {
|
|
2127
2150
|
await this.inboxQueue?.enqueue({
|
2128
2151
|
...message,
|
2129
2152
|
attempt: message.attempt + 1
|
2130
|
-
}, { delay: Temporal.Duration.compare(delay, { seconds: 0 }) < 0 ? Temporal.Duration.from({ seconds: 0 }) : delay });
|
2153
|
+
}, { delay: Temporal.Duration.compare(delay$1, { seconds: 0 }) < 0 ? Temporal.Duration.from({ seconds: 0 }) : delay$1 });
|
2131
2154
|
} else logger$1.error("Failed to process the incoming activity {activityId} after {trial} attempts; giving up:\n{error}", {
|
2132
2155
|
error,
|
2133
2156
|
activityId: activity.id?.href,
|
@@ -0,0 +1,17 @@
|
|
1
|
+
|
2
|
+
import { Temporal } from "@js-temporal/polyfill";
|
3
|
+
import { URLPattern } from "urlpattern-polyfill";
|
4
|
+
|
5
|
+
import "./transformers-jxj-4o2K.js";
|
6
|
+
import "./docloader-BnNphEMr.js";
|
7
|
+
import "./actor-BZSxF3np.js";
|
8
|
+
import { ContextImpl, FederationImpl, InboxContextImpl, KvSpecDeterminer, createFederation } from "./middleware-2mnj-GVU.js";
|
9
|
+
import "./lookup-C1iODRax.js";
|
10
|
+
import "./key-shd1YA1v.js";
|
11
|
+
import "./http-zn1ZCiC4.js";
|
12
|
+
import "./proof-DrMu1lZ-.js";
|
13
|
+
import "./types-DiZi5k5s.js";
|
14
|
+
import "./authdocloader-D0DivxEu.js";
|
15
|
+
import "./vocab-7-nYuxr4.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-
|
8
|
-
import { RouterError } from "./router-
|
6
|
+
import { deno_default, getDocumentLoader, kvCache } from "./docloader-B8h_rZsO.js";
|
7
|
+
import { getNodeInfo } from "./client-BiqVblC1.js";
|
8
|
+
import { RouterError } from "./router-D_aVZZUc.js";
|
9
9
|
import { nodeInfoToJson } from "./types-CqoqWDkp.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-kxUmjK1n.js";
|
11
|
+
import { lookupWebFinger } from "./lookup-eKf7p7Ac.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-BNiziAax.js";
|
14
|
+
import { verifyRequest } from "./http-DNpod1Ge.js";
|
15
|
+
import { getAuthenticatedDocumentLoader } from "./authdocloader-rWSY8oOW.js";
|
16
|
+
import { detachSignature, hasSignature, signJsonLd, verifyJsonLd } from "./ld-CgeTT2_c.js";
|
17
|
+
import { doesActorOwnKey, getKeyOwner } from "./owner-BE4bLxh6.js";
|
18
|
+
import { signObject, verifyObject } from "./proof-CZ5J2Im2.js";
|
19
|
+
import { lookupObject, traverseCollection } from "./lookup-BhC7f-4T.js";
|
20
|
+
import { routeActivity } from "./inbox-CeJ_mvRP.js";
|
21
|
+
import { FederationBuilderImpl } from "./builder-BkIAn75B.js";
|
22
22
|
import { buildCollectionSynchronizationHeader } from "./collection-QaGK9TVn.js";
|
23
|
-
import { KvKeyCache } from "./keycache-
|
23
|
+
import { KvKeyCache } from "./keycache-CsaCu72m.js";
|
24
24
|
import { createExponentialBackoffPolicy } from "./retry-BiIhZWgD.js";
|
25
|
-
import { extractInboxes, sendActivity } from "./send-
|
25
|
+
import { extractInboxes, sendActivity } from "./send-ChVugp_l.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-DorxmHEo.js";
|
7
|
+
import "./docloader-B8h_rZsO.js";
|
8
|
+
import "./url-kTAI6_KP.js";
|
9
|
+
import "./semver-CbbIgUsa.js";
|
10
|
+
import "./client-BiqVblC1.js";
|
11
|
+
import "./router-D_aVZZUc.js";
|
12
|
+
import "./types-CqoqWDkp.js";
|
13
|
+
import "./multibase-DeCHcK8L.js";
|
14
|
+
import "./vocab-kxUmjK1n.js";
|
15
|
+
import "./langstr-DbWheeIS.js";
|
16
|
+
import "./lookup-eKf7p7Ac.js";
|
17
|
+
import "./type-D2s5lmbZ.js";
|
18
|
+
import "./actor-BZ9B-RoF.js";
|
19
|
+
import "./key-BNiziAax.js";
|
20
|
+
import "./http-DNpod1Ge.js";
|
21
|
+
import "./authdocloader-rWSY8oOW.js";
|
22
|
+
import "./ld-CgeTT2_c.js";
|
23
|
+
import "./owner-BE4bLxh6.js";
|
24
|
+
import "./proof-CZ5J2Im2.js";
|
25
|
+
import "./lookup-BhC7f-4T.js";
|
26
|
+
import "./inbox-CeJ_mvRP.js";
|
27
|
+
import "./builder-BkIAn75B.js";
|
28
|
+
import "./collection-QaGK9TVn.js";
|
29
|
+
import "./keycache-CsaCu72m.js";
|
30
|
+
import "./retry-BiIhZWgD.js";
|
31
|
+
import "./send-ChVugp_l.js";
|
32
|
+
|
33
|
+
export { FederationImpl };
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import { Temporal } from "@js-temporal/polyfill";
|
2
2
|
import { URLPattern } from "urlpattern-polyfill";
|
3
3
|
import { DocumentLoader } from "./docloader-DTRsVZPo.js";
|
4
|
-
import { CryptographicKey$1 as CryptographicKey, DataIntegrityProof$1 as DataIntegrityProof, Multikey$1 as Multikey, Object$1 } from "./vocab-
|
5
|
-
import { KeyCache } from "./http-
|
4
|
+
import { CryptographicKey$1 as CryptographicKey, DataIntegrityProof$1 as DataIntegrityProof, Multikey$1 as Multikey, Object$1 } from "./vocab-C4bpdeio.js";
|
5
|
+
import { KeyCache } from "./http-CZyKN-rt.js";
|
6
6
|
import { TracerProvider } from "@opentelemetry/api";
|
7
7
|
|
8
8
|
//#region sig/ld.d.ts
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { Temporal } from "@js-temporal/polyfill";
|
2
2
|
import { URLPattern } from "urlpattern-polyfill";
|
3
3
|
import { DocumentLoader, GetUserAgentOptions } from "./docloader-DTRsVZPo.js";
|
4
|
-
import { Collection$1 as Collection, Link$
|
4
|
+
import { Collection$1 as Collection, Link$2 as Link, Object$1 } from "./vocab-C4bpdeio.js";
|
5
5
|
import { TracerProvider } from "@opentelemetry/api";
|
6
6
|
|
7
7
|
//#region vocab/lookup.d.ts
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { Temporal } from "@js-temporal/polyfill";
|
2
2
|
import { URLPattern } from "urlpattern-polyfill";
|
3
|
-
import { Activity$1 as Activity } from "./vocab-
|
4
|
-
import { ActivityTransformer, Context } from "./context-
|
3
|
+
import { Activity$1 as Activity } from "./vocab-C4bpdeio.js";
|
4
|
+
import { ActivityTransformer, Context } from "./context-DBM4y1xF.js";
|
5
5
|
|
6
6
|
//#region compat/transformers.d.ts
|
7
7
|
/**
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { Temporal } from "@js-temporal/polyfill";
|
2
2
|
import { URLPattern } from "urlpattern-polyfill";
|
3
3
|
import { DocumentLoader, DocumentLoaderFactoryOptions } from "./docloader-DTRsVZPo.js";
|
4
|
-
import { HttpMessageSignaturesSpecDeterminer } from "./http-
|
4
|
+
import { HttpMessageSignaturesSpecDeterminer } from "./http-CZyKN-rt.js";
|
5
5
|
import { TracerProvider } from "@opentelemetry/api";
|
6
6
|
|
7
7
|
//#region runtime/authdocloader.d.ts
|
package/dist/mod.d.ts
CHANGED
@@ -3,18 +3,18 @@ import { URLPattern } from "urlpattern-polyfill";
|
|
3
3
|
import { KvKey, KvStore, KvStoreSetOptions, MemoryKvStore$1 as MemoryKvStore } from "./kv-BmsWxOQ2.js";
|
4
4
|
import { AuthenticatedDocumentLoaderFactory, DocumentLoader, DocumentLoaderFactory, DocumentLoaderFactoryOptions, FetchError$1 as FetchError, GetDocumentLoaderOptions, GetUserAgentOptions, KvCacheParameters, RemoteDocument, fetchDocumentLoader$1 as fetchDocumentLoader, getDocumentLoader$1 as getDocumentLoader, getUserAgent$1 as getUserAgent, kvCache$1 as kvCache } from "./docloader-DTRsVZPo.js";
|
5
5
|
import { GetNodeInfoOptions, InboundService, JsonValue, NodeInfo, OutboundService, ParseNodeInfoOptions, Protocol, SemVer, Services, Software, Usage, formatSemVer$1 as formatSemVer, getNodeInfo$1 as getNodeInfo, nodeInfoToJson$1 as nodeInfoToJson, parseNodeInfo$1 as parseNodeInfo, parseSemVer$1 as parseSemVer } from "./client-Dw1pCSIt.js";
|
6
|
-
import { Accept$1 as Accept, Activity$1 as Activity, Add$1 as Add, Announce$1 as Announce, Application$1 as Application, Arrive$1 as Arrive, Article$1 as Article, Audio$1 as Audio, Block$1 as Block, ChatMessage$1 as ChatMessage, Collection$1 as Collection, CollectionPage$1 as CollectionPage, Create$1 as Create, CryptographicKey$1 as CryptographicKey, DataIntegrityProof$1 as DataIntegrityProof, Delete$1 as Delete, DidService$1 as DidService, Dislike$1 as Dislike, Document$1 as Document, Emoji$1 as Emoji, EmojiReact$1 as EmojiReact, Endpoints$1 as Endpoints, Event$1 as Event, Export$1 as Export, Flag$1 as Flag, Follow$1 as Follow, Group$1 as Group, Hashtag$1 as Hashtag, Ignore$1 as Ignore, Image$1 as Image, IntransitiveActivity$1 as IntransitiveActivity, Invite$1 as Invite, Join$1 as Join, LanguageString$1 as LanguageString, Leave$1 as Leave, Like$1 as Like, Link$
|
7
|
-
import { Actor, ActorTypeName, GetActorHandleOptions, NormalizeActorHandleOptions, Recipient, getActorClassByTypeName$1 as getActorClassByTypeName, getActorHandle$1 as getActorHandle, getActorTypeName$1 as getActorTypeName, isActor$1 as isActor, normalizeActorHandle$1 as normalizeActorHandle } from "./actor-
|
8
|
-
import { FetchKeyOptions, FetchKeyResult, HttpMessageSignaturesSpec, HttpMessageSignaturesSpecDeterminer, KeyCache, SignRequestOptions, VerifyRequestOptions, exportJwk$1 as exportJwk, fetchKey$1 as fetchKey, generateCryptoKeyPair$1 as generateCryptoKeyPair, importJwk$1 as importJwk, signRequest$1 as signRequest, verifyRequest$1 as verifyRequest } from "./http-
|
9
|
-
import { DoesActorOwnKeyOptions, GetKeyOwnerOptions, doesActorOwnKey$1 as doesActorOwnKey, getKeyOwner$1 as getKeyOwner } from "./owner-
|
10
|
-
import { LookupObjectOptions, PUBLIC_COLLECTION$1 as PUBLIC_COLLECTION, TraverseCollectionOptions, getTypeId, lookupObject$1 as lookupObject, traverseCollection$1 as traverseCollection } from "./mod-
|
11
|
-
import { ResourceDescriptor, lookupWebFinger$1 as 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$1 as Router, RouterError$1 as RouterError, RouterOptions, RouterRouteResult, SendActivityOptions, SendActivityOptionsForCollection, SenderKeyPair, SharedInboxKeyDispatcher, buildCollectionSynchronizationHeader$1 as buildCollectionSynchronizationHeader, createExponentialBackoffPolicy$1 as createExponentialBackoffPolicy, createFederation$1 as createFederation, createFederationBuilder$1 as createFederationBuilder, digest$1 as digest, respondWithObject$1 as respondWithObject, respondWithObjectIfAcceptable$1 as respondWithObjectIfAcceptable } from "./context-
|
6
|
+
import { Accept$1 as Accept, Activity$1 as Activity, Add$1 as Add, Announce$1 as Announce, Application$1 as Application, Arrive$1 as Arrive, Article$1 as Article, Audio$1 as Audio, Block$1 as Block, ChatMessage$1 as ChatMessage, Collection$1 as Collection, CollectionPage$1 as CollectionPage, Create$1 as Create, CryptographicKey$1 as CryptographicKey, DataIntegrityProof$1 as DataIntegrityProof, Delete$1 as Delete, DidService$1 as DidService, Dislike$1 as Dislike, Document$1 as Document, Emoji$1 as Emoji, EmojiReact$1 as EmojiReact, Endpoints$1 as Endpoints, Event$1 as Event, Export$1 as Export, Flag$1 as Flag, Follow$1 as Follow, Group$1 as Group, Hashtag$1 as Hashtag, Ignore$1 as Ignore, Image$1 as Image, IntransitiveActivity$1 as IntransitiveActivity, Invite$1 as Invite, Join$1 as Join, LanguageString$1 as LanguageString, Leave$1 as Leave, Like$1 as Like, Link$2 as Link, Listen$1 as Listen, Mention$1 as Mention, Move$1 as Move, Multikey$1 as Multikey, Note$1 as Note, Object$1, Offer$1 as Offer, OrderedCollection$1 as OrderedCollection, OrderedCollectionPage$1 as OrderedCollectionPage, Organization$1 as Organization, Page$1 as Page, Person$1 as Person, Place$1 as Place, Profile$1 as Profile, PropertyValue$1 as PropertyValue, Question$1 as Question, Read$1 as Read, Reject$1 as Reject, Relationship$1 as Relationship, Remove$1 as Remove, Service$1 as Service, Source$1 as Source, TentativeAccept$1 as TentativeAccept, TentativeReject$1 as TentativeReject, Tombstone$1 as Tombstone, Travel$1 as Travel, Undo$1 as Undo, Update$1 as Update, Video$1 as Video, View$1 as View } from "./vocab-C4bpdeio.js";
|
7
|
+
import { Actor, ActorTypeName, GetActorHandleOptions, NormalizeActorHandleOptions, Recipient, getActorClassByTypeName$1 as getActorClassByTypeName, getActorHandle$1 as getActorHandle, getActorTypeName$1 as getActorTypeName, isActor$1 as isActor, normalizeActorHandle$1 as normalizeActorHandle } from "./actor-f67C7yQD.js";
|
8
|
+
import { FetchKeyOptions, FetchKeyResult, HttpMessageSignaturesSpec, HttpMessageSignaturesSpecDeterminer, KeyCache, SignRequestOptions, VerifyRequestOptions, exportJwk$1 as exportJwk, fetchKey$1 as fetchKey, generateCryptoKeyPair$1 as generateCryptoKeyPair, importJwk$1 as importJwk, signRequest$1 as signRequest, verifyRequest$1 as verifyRequest } from "./http-CZyKN-rt.js";
|
9
|
+
import { DoesActorOwnKeyOptions, GetKeyOwnerOptions, doesActorOwnKey$1 as doesActorOwnKey, getKeyOwner$1 as getKeyOwner } from "./owner-C_Gw25Id.js";
|
10
|
+
import { LookupObjectOptions, PUBLIC_COLLECTION$1 as PUBLIC_COLLECTION, TraverseCollectionOptions, getTypeId, lookupObject$1 as lookupObject, traverseCollection$1 as traverseCollection } from "./mod-Bx6Du4Ct.js";
|
11
|
+
import { ResourceDescriptor, lookupWebFinger$1 as lookupWebFinger } from "./lookup-nlxO7x0u.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$1 as Router, RouterError$1 as RouterError, RouterOptions, RouterRouteResult, SendActivityOptions, SendActivityOptionsForCollection, SenderKeyPair, SharedInboxKeyDispatcher, buildCollectionSynchronizationHeader$1 as buildCollectionSynchronizationHeader, createExponentialBackoffPolicy$1 as createExponentialBackoffPolicy, createFederation$1 as createFederation, createFederationBuilder$1 as createFederationBuilder, digest$1 as digest, respondWithObject$1 as respondWithObject, respondWithObjectIfAcceptable$1 as respondWithObjectIfAcceptable } from "./context-DBM4y1xF.js";
|
13
13
|
import { InProcessMessageQueue$1 as InProcessMessageQueue, InProcessMessageQueueOptions, MessageQueue, MessageQueueEnqueueOptions, MessageQueueListenOptions, ParallelMessageQueue$1 as ParallelMessageQueue } from "./mq-Bue016Tz.js";
|
14
|
-
import { actorDehydrator, autoIdAssigner, getDefaultActivityTransformers } from "./mod-
|
14
|
+
import { actorDehydrator, autoIdAssigner, getDefaultActivityTransformers } from "./mod-CsYfI7YL.js";
|
15
15
|
import "./mod-g0xFzAP9.js";
|
16
16
|
import "./mod-1pDWKvUL.js";
|
17
|
-
import { GetAuthenticatedDocumentLoaderOptions, exportMultibaseKey, exportSpki, getAuthenticatedDocumentLoader, importMultibaseKey, importPem, importPkcs1, importSpki } from "./mod-
|
18
|
-
import { CreateProofOptions, CreateSignatureOptions, SignJsonLdOptions, SignObjectOptions, VerifyJsonLdOptions, VerifyObjectOptions, VerifyProofOptions, VerifySignatureOptions, attachSignature, createProof, createSignature, detachSignature, signJsonLd, signObject, verifyJsonLd, verifyObject, verifyProof, verifySignature } from "./mod-
|
17
|
+
import { GetAuthenticatedDocumentLoaderOptions, exportMultibaseKey, exportSpki, getAuthenticatedDocumentLoader, importMultibaseKey, importPem, importPkcs1, importSpki } from "./mod-iE_61Xjt.js";
|
18
|
+
import { CreateProofOptions, CreateSignatureOptions, SignJsonLdOptions, SignObjectOptions, VerifyJsonLdOptions, VerifyObjectOptions, VerifyProofOptions, VerifySignatureOptions, attachSignature, createProof, createSignature, detachSignature, signJsonLd, signObject, verifyJsonLd, verifyObject, verifyProof, verifySignature } from "./mod-BUAWJ2pK.js";
|
19
19
|
import "./mod-GIh5OYxW.js";
|
20
20
|
export { Accept, Activity, ActivityTransformer, Actor, ActorAliasMapper, ActorCallbackSetters, ActorDispatcher, ActorHandleMapper, ActorKeyPair, ActorKeyPairsDispatcher, ActorTypeName, Add, Announce, Application, Arrive, Article, Audio, AuthenticatedDocumentLoaderFactory, AuthorizePredicate, Block, ChatMessage, Collection, CollectionCallbackSetters, CollectionCounter, CollectionCursor, CollectionDispatcher, CollectionPage, Context, Create, CreateExponentialBackoffPolicyOptions, CreateFederationOptions, CreateProofOptions, CreateSignatureOptions, CryptographicKey, DataIntegrityProof, Delete, DidService, Dislike, Document, DocumentLoader, DocumentLoaderFactory, DocumentLoaderFactoryOptions, DoesActorOwnKeyOptions, Emoji, EmojiReact, Endpoints, Event, Export, Federatable, Federation, FederationBuilder, FederationFetchOptions, FederationKvPrefixes, FederationOptions, FederationOrigin, FederationQueueOptions, FederationStartQueueOptions, FetchError, FetchKeyOptions, FetchKeyResult, Flag, Follow, ForwardActivityOptions, GetActorHandleOptions, GetAuthenticatedDocumentLoaderOptions, GetDocumentLoaderOptions, GetKeyOwnerOptions, GetNodeInfoOptions, GetSignedKeyOptions, GetUserAgentOptions, Group, Hashtag, HttpMessageSignaturesSpec, HttpMessageSignaturesSpecDeterminer, Ignore, Image, InProcessMessageQueue, InProcessMessageQueueOptions, InboundService, InboxContext, InboxErrorHandler, InboxListener, InboxListenerSetters, IntransitiveActivity, Invite, Join, JsonValue, KeyCache, KvCacheParameters, KvKey, KvStore, KvStoreSetOptions, LanguageString, Leave, Like, Link, Listen, LookupObjectOptions, MemoryKvStore, Mention, Message, MessageQueue, MessageQueueEnqueueOptions, MessageQueueListenOptions, Move, Multikey, NodeInfo, NodeInfoDispatcher, NormalizeActorHandleOptions, Note, Object$1 as Object, ObjectAuthorizePredicate, ObjectCallbackSetters, ObjectDispatcher, Offer, OrderedCollection, OrderedCollectionPage, Organization, OutboundService, OutboxErrorHandler, PUBLIC_COLLECTION, Page, PageItems, ParallelMessageQueue, ParseNodeInfoOptions, ParseUriResult, Person, Place, Profile, PropertyValue, Protocol, Question, Read, Recipient, Reject, Relationship, RemoteDocument, Remove, RequestContext, ResourceDescriptor, RespondWithObjectOptions, RetryContext, RetryPolicy, RouteActivityOptions, Router, RouterError, RouterOptions, RouterRouteResult, SemVer, SendActivityOptions, SendActivityOptionsForCollection, SenderKeyPair, Service, Services, SharedInboxKeyDispatcher, SignJsonLdOptions, SignObjectOptions, SignRequestOptions, Software, Source, TentativeAccept, TentativeReject, Tombstone, Travel, TraverseCollectionOptions, Undo, Update, Usage, VerifyJsonLdOptions, VerifyObjectOptions, VerifyProofOptions, VerifyRequestOptions, VerifySignatureOptions, Video, View, actorDehydrator, attachSignature, autoIdAssigner, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, createProof, createSignature, detachSignature, digest, doesActorOwnKey, exportJwk, exportMultibaseKey, exportSpki, fetchDocumentLoader, fetchKey, formatSemVer, generateCryptoKeyPair, getActorClassByTypeName, getActorHandle, getActorTypeName, getAuthenticatedDocumentLoader, getDefaultActivityTransformers, getDocumentLoader, getKeyOwner, getNodeInfo, getTypeId, getUserAgent, importJwk, importMultibaseKey, importPem, importPkcs1, importSpki, isActor, kvCache, lookupObject, lookupWebFinger, nodeInfoToJson, normalizeActorHandle, parseNodeInfo, parseSemVer, respondWithObject, respondWithObjectIfAcceptable, signJsonLd, signObject, signRequest, traverseCollection, verifyJsonLd, verifyObject, verifyProof, verifyRequest, verifySignature };
|
package/dist/mod.js
CHANGED
@@ -4,17 +4,17 @@
|
|
4
4
|
|
5
5
|
import { actorDehydrator$1 as actorDehydrator, autoIdAssigner$1 as autoIdAssigner, getDefaultActivityTransformers$1 as getDefaultActivityTransformers } from "./transformers-jxj-4o2K.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$1 as exportMultibaseKey, exportSpki$1 as exportSpki, getActorClassByTypeName, getActorHandle, getActorTypeName, getTypeId$1 as getTypeId, importMultibaseKey$1 as importMultibaseKey, importPem$1 as importPem, importPkcs1$1 as importPkcs1, importSpki$1 as 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$1 as attachSignature, createProof$1 as createProof, createSignature$1 as createSignature, detachSignature$1 as detachSignature, doesActorOwnKey, getKeyOwner, signJsonLd$1 as signJsonLd, signObject$1 as signObject, verifyJsonLd$1 as verifyJsonLd, verifyObject$1 as verifyObject, verifyProof$1 as verifyProof, verifySignature$1 as verifySignature } from "./proof-
|
7
|
+
import { FetchError, fetchDocumentLoader, getDocumentLoader, getUserAgent, kvCache } from "./docloader-BnNphEMr.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$1 as exportMultibaseKey, exportSpki$1 as exportSpki, getActorClassByTypeName, getActorHandle, getActorTypeName, getTypeId$1 as getTypeId, importMultibaseKey$1 as importMultibaseKey, importPem$1 as importPem, importPkcs1$1 as importPkcs1, importSpki$1 as importSpki, isActor, normalizeActorHandle } from "./actor-BZSxF3np.js";
|
9
|
+
import { Router, RouterError, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable } from "./middleware-2mnj-GVU.js";
|
10
|
+
import { lookupWebFinger } from "./lookup-C1iODRax.js";
|
11
|
+
import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk } from "./key-shd1YA1v.js";
|
12
|
+
import { signRequest, verifyRequest } from "./http-zn1ZCiC4.js";
|
13
|
+
import { attachSignature$1 as attachSignature, createProof$1 as createProof, createSignature$1 as createSignature, detachSignature$1 as detachSignature, doesActorOwnKey, getKeyOwner, signJsonLd$1 as signJsonLd, signObject$1 as signObject, verifyJsonLd$1 as verifyJsonLd, verifyObject$1 as verifyObject, verifyProof$1 as verifyProof, verifySignature$1 as verifySignature } from "./proof-DrMu1lZ-.js";
|
14
14
|
import { InProcessMessageQueue, MemoryKvStore, ParallelMessageQueue } from "./federation-Bmj7soSg.js";
|
15
|
-
import { formatSemVer, getNodeInfo, nodeInfoToJson, parseNodeInfo, parseSemVer } from "./types-
|
16
|
-
import { getAuthenticatedDocumentLoader$1 as getAuthenticatedDocumentLoader } from "./authdocloader-
|
17
|
-
import { PUBLIC_COLLECTION, lookupObject, traverseCollection } from "./vocab-
|
15
|
+
import { formatSemVer, getNodeInfo, nodeInfoToJson, parseNodeInfo, parseSemVer } from "./types-DiZi5k5s.js";
|
16
|
+
import { getAuthenticatedDocumentLoader$1 as getAuthenticatedDocumentLoader } from "./authdocloader-D0DivxEu.js";
|
17
|
+
import { PUBLIC_COLLECTION, lookupObject, traverseCollection } from "./vocab-7-nYuxr4.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-ClvzlhZu.js";
|
7
7
|
import "../assert-Dv75vaGI.js";
|
8
8
|
import "../assert_instance_of--9UCVKsi.js";
|
9
|
-
import "../docloader-
|
9
|
+
import "../docloader-B8h_rZsO.js";
|
10
10
|
import "../url-kTAI6_KP.js";
|
11
11
|
import "../semver-CbbIgUsa.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-BiqVblC1.js";
|
13
13
|
import { test } from "../testing-jcGLO9Lp.js";
|
14
14
|
import "../std__assert-CaBUULmX.js";
|
15
15
|
import "../assert_rejects-FOHCtlD2.js";
|