@fedify/fedify 1.8.1-pr.332.1182 → 1.8.1-pr.332.1206
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-DGhGviFF.js → actor-BG6nQiGo.js} +1 -1
- package/dist/{actor-CEOpqw2j.js → actor-DiY4TXaT.js} +179 -179
- package/dist/{authdocloader-F5CEYzSX.js → authdocloader-CVsVMvOK.js} +3 -3
- package/dist/{authdocloader-5puN-Y5K.js → authdocloader-DVXQiSXr.js} +3 -3
- package/dist/{builder-UdluIvUy.js → builder-BBIXluVw.js} +38 -7
- package/dist/{client-DIWtwDpq.js → client-cpcGgCz4.js} +1 -1
- package/dist/compat/mod.d.ts +3 -3
- package/dist/compat/transformers.test.js +16 -16
- package/dist/{context-72aRESIE.d.ts → context-Csbv_Ssv.d.ts} +1 -1
- package/dist/{docloader-BZVERUXw.js → docloader-DmrXAf56.js} +1 -1
- package/dist/{esm-CAt2YHNr.js → esm-P-Jx8p-N.js} +1 -1
- package/dist/federation/builder.test.js +25 -6
- 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 +48 -18
- package/dist/federation/mod.d.ts +2 -2
- package/dist/federation/mod.js +10 -10
- 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/{http-D1uoUH4N.d.ts → http-BL6S1G0j.d.ts} +1 -1
- package/dist/{http-L8nGt-kU.js → http-V1txgyQm.js} +2 -2
- package/dist/{http-DwWuBdiS.js → http-cF_guZC4.js} +3 -3
- package/dist/{inbox-Bww5_4f3.js → inbox-DZjkOcY_.js} +1 -1
- package/dist/{key-DmlNusxB.js → key-BgP87NyA.js} +2 -2
- package/dist/{key-AxtPEhyf.js → key-DZYB-qzc.js} +4 -4
- package/dist/{key-D7eESjT8.js → key-DZzrjZ_W.js} +2 -2
- package/dist/{key-Dvvr8w0R.js → key-ccT9Df-j.js} +3 -3
- package/dist/{keycache-CCfh6JzL.js → keycache-BpGJH5wN.js} +1 -1
- package/dist/{keys-Cojpplg7.js → keys-BwxRZrc5.js} +1 -1
- package/dist/{ld-BM_q92Md.js → ld-BUMRH4qT.js} +2 -2
- package/dist/{lookup-BqO_EQ7t.js → lookup-BHvHuca3.js} +1 -1
- package/dist/{lookup-N-vUaeU-.js → lookup-mqYx33fa.js} +1 -1
- package/dist/{middleware-D6oTvqvo.js → middleware-CIEFJR-0.js} +47 -23
- package/dist/middleware-CRmdJleG.js +26 -0
- package/dist/middleware-CgE_fA7L.js +17 -0
- package/dist/{middleware-Dt7enCqI.js → middleware-ysGs35SI.js} +16 -23
- package/dist/{mod-0L5jhGYM.d.ts → mod-D8-liXFY.d.ts} +1 -1
- package/dist/{mod-OU0GgfW6.d.ts → mod-Dc_fDCtK.d.ts} +1 -1
- package/dist/{mod-BCl7t-Ka.d.ts → mod-j0OCtlRW.d.ts} +1 -1
- package/dist/mod.d.ts +5 -5
- package/dist/mod.js +10 -10
- package/dist/nodeinfo/client.test.js +5 -5
- package/dist/nodeinfo/handler.test.js +16 -16
- package/dist/nodeinfo/mod.js +2 -2
- package/dist/nodeinfo/semver.test.js +3 -3
- package/dist/nodeinfo/types.test.js +3 -3
- package/dist/{owner-BHm6Slll.js → owner-CJiB3h-w.js} +2 -2
- package/dist/{proof-Ret5s-pN.js → proof-CBnoAbsR.js} +3 -3
- package/dist/{proof-qZ9pvD4f.js → proof-CO7PKkkS.js} +2 -2
- 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/mod.d.ts +2 -2
- package/dist/runtime/mod.js +6 -6
- package/dist/runtime/multibase/multibase.test.js +3 -3
- package/dist/runtime/url.test.js +3 -3
- package/dist/{send-lJvGpeln.js → send-jERwLMa1.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.d.ts +2 -2
- package/dist/sig/mod.js +6 -6
- package/dist/sig/owner.test.js +7 -7
- package/dist/sig/proof.test.js +7 -7
- package/dist/testing/docloader.test.js +3 -3
- package/dist/testing/mod.js +3 -3
- package/dist/{testing-dvdFh8m2.js → testing-DT73_kZh.js} +2 -2
- package/dist/{type-C81IXTZo.js → type-CSD3N947.js} +178 -178
- package/dist/{types-CCgeAzKU.js → types-BdxXmVoY.js} +1 -1
- package/dist/vocab/actor.test.js +5 -5
- package/dist/vocab/lookup.test.js +4 -4
- package/dist/vocab/mod.js +4 -4
- package/dist/vocab/type.test.js +3 -3
- package/dist/vocab/vocab.test.js +4 -4
- package/dist/{vocab-DWd0TzMK.js → vocab-DNOZ_bTQ.js} +3 -3
- package/dist/webfinger/handler.test.js +16 -16
- package/dist/webfinger/lookup.test.js +4 -4
- package/dist/webfinger/mod.js +2 -2
- package/dist/x/cfworkers.test.js +3 -3
- package/dist/x/hono.d.ts +2 -2
- package/dist/x/sveltekit.d.ts +2 -2
- package/package.json +1 -1
- package/dist/middleware-CivPioYC.js +0 -26
- package/dist/middleware-v2B43-x2.js +0 -17
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { CryptographicKey, deno_default } from "./type-
|
|
7
|
-
import { fetchKey, validateCryptoKey } from "./key-
|
|
6
|
+
import { CryptographicKey, deno_default } from "./type-CSD3N947.js";
|
|
7
|
+
import { fetchKey, validateCryptoKey } from "./key-DZzrjZ_W.js";
|
|
8
8
|
import { getLogger } from "@logtape/logtape";
|
|
9
9
|
import { SpanStatusCode, trace } from "@opentelemetry/api";
|
|
10
10
|
import { ATTR_HTTP_REQUEST_HEADER, ATTR_HTTP_REQUEST_METHOD, ATTR_URL_FULL } from "@opentelemetry/semantic-conventions";
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import { Temporal } from "@js-temporal/polyfill";
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
|
|
5
|
-
import { deno_default } from "./docloader-
|
|
6
|
-
import { CryptographicKey } from "./actor-
|
|
7
|
-
import { fetchKey, validateCryptoKey } from "./key-
|
|
5
|
+
import { deno_default } from "./docloader-DmrXAf56.js";
|
|
6
|
+
import { CryptographicKey } from "./actor-DiY4TXaT.js";
|
|
7
|
+
import { fetchKey, validateCryptoKey } from "./key-BgP87NyA.js";
|
|
8
8
|
import { getLogger } from "@logtape/logtape";
|
|
9
9
|
import { SpanStatusCode, trace } from "@opentelemetry/api";
|
|
10
10
|
import { decodeBase64, encodeBase64 } from "byte-encodings/base64";
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { Activity, deno_default, getTypeId } from "./type-
|
|
6
|
+
import { Activity, deno_default, getTypeId } from "./type-CSD3N947.js";
|
|
7
7
|
import { getLogger } from "@logtape/logtape";
|
|
8
8
|
import { SpanKind, SpanStatusCode, context, propagation, trace } from "@opentelemetry/api";
|
|
9
9
|
|
|
@@ -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-DmrXAf56.js";
|
|
6
|
+
import { CryptographicKey, Object as Object$1, isActor } from "./actor-DiY4TXaT.js";
|
|
7
7
|
import { getLogger } from "@logtape/logtape";
|
|
8
8
|
import { SpanKind, SpanStatusCode, trace } from "@opentelemetry/api";
|
|
9
9
|
|
|
@@ -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-DmrXAf56.js";
|
|
6
|
+
import "./actor-DiY4TXaT.js";
|
|
7
|
+
import "./lookup-mqYx33fa.js";
|
|
8
|
+
import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk, validateCryptoKey } from "./key-BgP87NyA.js";
|
|
9
9
|
|
|
10
10
|
export { validateCryptoKey };
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { CryptographicKey, Object as Object$1, deno_default, getDocumentLoader } from "./type-
|
|
7
|
-
import { isActor } from "./actor-
|
|
6
|
+
import { CryptographicKey, Object as Object$1, deno_default, getDocumentLoader } from "./type-CSD3N947.js";
|
|
7
|
+
import { isActor } from "./actor-BG6nQiGo.js";
|
|
8
8
|
import { getLogger } from "@logtape/logtape";
|
|
9
9
|
import { SpanKind, SpanStatusCode, trace } from "@opentelemetry/api";
|
|
10
10
|
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import "./type-
|
|
7
|
-
import "./actor-
|
|
8
|
-
import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk, validateCryptoKey } from "./key-
|
|
6
|
+
import "./type-CSD3N947.js";
|
|
7
|
+
import "./actor-BG6nQiGo.js";
|
|
8
|
+
import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk, validateCryptoKey } from "./key-DZzrjZ_W.js";
|
|
9
9
|
|
|
10
10
|
export { validateCryptoKey };
|
|
@@ -3,7 +3,7 @@
|
|
|
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-CSD3N947.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 "./type-
|
|
6
|
+
import { CryptographicKey, Multikey, importSpki } from "./type-CSD3N947.js";
|
|
7
7
|
|
|
8
8
|
//#region testing/keys.ts
|
|
9
9
|
const rsaPublicKey1 = new CryptographicKey({
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { Activity, CryptographicKey, Object as Object$1, deno_default, getDocumentLoader, getTypeId } from "./type-
|
|
7
|
-
import { fetchKey, validateCryptoKey } from "./key-
|
|
6
|
+
import { Activity, CryptographicKey, Object as Object$1, deno_default, getDocumentLoader, getTypeId } from "./type-CSD3N947.js";
|
|
7
|
+
import { fetchKey, validateCryptoKey } from "./key-DZzrjZ_W.js";
|
|
8
8
|
import { getLogger } from "@logtape/logtape";
|
|
9
9
|
import { SpanStatusCode, trace } from "@opentelemetry/api";
|
|
10
10
|
import { decodeBase64, encodeBase64 } from "byte-encodings/base64";
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { Object as Object$1, deno_default, getDocumentLoader, getTypeId, lookupWebFinger } from "./type-
|
|
6
|
+
import { Object as Object$1, deno_default, getDocumentLoader, getTypeId, lookupWebFinger } from "./type-CSD3N947.js";
|
|
7
7
|
import { cloneDeep, delay } from "es-toolkit";
|
|
8
8
|
import { getLogger } from "@logtape/logtape";
|
|
9
9
|
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-DmrXAf56.js";
|
|
6
6
|
import { getLogger } from "@logtape/logtape";
|
|
7
7
|
import { SpanKind, SpanStatusCode, trace } from "@opentelemetry/api";
|
|
8
8
|
|
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
|
|
5
5
|
import { getDefaultActivityTransformers } from "./transformers-ghwJuzGY.js";
|
|
6
|
-
import { deno_default, getDocumentLoader, kvCache } from "./docloader-
|
|
7
|
-
import { Activity, Collection, CollectionPage, CryptographicKey, Link, Multikey, Object as Object$1, OrderedCollection, OrderedCollectionPage, getTypeId } from "./actor-
|
|
8
|
-
import { lookupWebFinger } from "./lookup-
|
|
9
|
-
import { exportJwk, importJwk, validateCryptoKey } from "./key-
|
|
10
|
-
import { doubleKnock, verifyRequest } from "./http-
|
|
11
|
-
import { detachSignature, doesActorOwnKey, getKeyOwner, hasSignature, signJsonLd, signObject, verifyJsonLd, verifyObject } from "./proof-
|
|
12
|
-
import { getNodeInfo, nodeInfoToJson } from "./types-
|
|
13
|
-
import { getAuthenticatedDocumentLoader } from "./authdocloader-
|
|
14
|
-
import { lookupObject, traverseCollection } from "./vocab-
|
|
6
|
+
import { deno_default, getDocumentLoader, kvCache } from "./docloader-DmrXAf56.js";
|
|
7
|
+
import { Activity, Collection, CollectionPage, CryptographicKey, Link, Multikey, Object as Object$1, OrderedCollection, OrderedCollectionPage, getTypeId } from "./actor-DiY4TXaT.js";
|
|
8
|
+
import { lookupWebFinger } from "./lookup-mqYx33fa.js";
|
|
9
|
+
import { exportJwk, importJwk, validateCryptoKey } from "./key-BgP87NyA.js";
|
|
10
|
+
import { doubleKnock, verifyRequest } from "./http-cF_guZC4.js";
|
|
11
|
+
import { detachSignature, doesActorOwnKey, getKeyOwner, hasSignature, signJsonLd, signObject, verifyJsonLd, verifyObject } from "./proof-CBnoAbsR.js";
|
|
12
|
+
import { getNodeInfo, nodeInfoToJson } from "./types-BdxXmVoY.js";
|
|
13
|
+
import { getAuthenticatedDocumentLoader } from "./authdocloader-DVXQiSXr.js";
|
|
14
|
+
import { lookupObject, traverseCollection } from "./vocab-DNOZ_bTQ.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";
|
|
@@ -308,6 +308,10 @@ var FederationBuilderImpl = class {
|
|
|
308
308
|
sharedInboxKeyDispatcher;
|
|
309
309
|
collectionTypeIds;
|
|
310
310
|
collectionCallbacks;
|
|
311
|
+
/**
|
|
312
|
+
* Symbol registry for unique identification of unnamed symbols.
|
|
313
|
+
*/
|
|
314
|
+
#symbolRegistry = /* @__PURE__ */ new Map();
|
|
311
315
|
constructor() {
|
|
312
316
|
this.router = new Router$1();
|
|
313
317
|
this.objectCallbacks = {};
|
|
@@ -316,7 +320,7 @@ var FederationBuilderImpl = class {
|
|
|
316
320
|
this.collectionTypeIds = {};
|
|
317
321
|
}
|
|
318
322
|
async build(options) {
|
|
319
|
-
const { FederationImpl: FederationImpl$1 } = await import("./middleware-
|
|
323
|
+
const { FederationImpl: FederationImpl$1 } = await import("./middleware-CgE_fA7L.js");
|
|
320
324
|
const f = new FederationImpl$1(options);
|
|
321
325
|
const trailingSlashInsensitiveValue = f.router.trailingSlashInsensitive;
|
|
322
326
|
f.router = this.router.clone();
|
|
@@ -767,9 +771,10 @@ var FederationBuilderImpl = class {
|
|
|
767
771
|
return this.#setCustomCollectionDispatcher(name, "orderedCollection", ...args);
|
|
768
772
|
}
|
|
769
773
|
#setCustomCollectionDispatcher(name, collectionType, itemType, path, dispatcher) {
|
|
770
|
-
const
|
|
771
|
-
|
|
772
|
-
if (this.
|
|
774
|
+
const strName = String(name);
|
|
775
|
+
const routeName = `${collectionType}:${this.#uniqueCollectionId(name)}`;
|
|
776
|
+
if (this.router.has(routeName)) throw new RouterError(`Collection dispatcher for ${strName} already set.`);
|
|
777
|
+
if (this.collectionCallbacks[name] != null) throw new RouterError(`Collection dispatcher for ${strName} already set.`);
|
|
773
778
|
const variables = this.router.add(path, routeName);
|
|
774
779
|
if (variables.size < 1) throw new RouterError("Path for collection dispatcher must have at least one variable.");
|
|
775
780
|
const callbacks = { dispatcher };
|
|
@@ -795,6 +800,32 @@ var FederationBuilderImpl = class {
|
|
|
795
800
|
};
|
|
796
801
|
return setters;
|
|
797
802
|
}
|
|
803
|
+
/**
|
|
804
|
+
* Get the URL path for a custom collection.
|
|
805
|
+
* If the collection is not registered, returns null.
|
|
806
|
+
* @typeParam TParam The parameter names of the requested URL.
|
|
807
|
+
* @param {string | symbol} name The name of the custom collection.
|
|
808
|
+
* @param {TParam} values The values to fill in the URL parameters.
|
|
809
|
+
* @returns {string | null} The URL path for the custom collection, or null if not registered.
|
|
810
|
+
*/
|
|
811
|
+
getCollectionPath(name, values) {
|
|
812
|
+
if (!(name in this.collectionCallbacks)) return null;
|
|
813
|
+
const routeName = this.#uniqueCollectionId(name);
|
|
814
|
+
const path = this.router.build(`collection:${routeName}`, values) ?? this.router.build(`orderedCollection:${routeName}`, values);
|
|
815
|
+
return path;
|
|
816
|
+
}
|
|
817
|
+
/**
|
|
818
|
+
* Converts a name (string or symbol) to a unique string identifier.
|
|
819
|
+
* For symbols, generates and caches a UUID if not already present.
|
|
820
|
+
* For strings, returns the string as-is.
|
|
821
|
+
* @param name The name to convert to a unique identifier
|
|
822
|
+
* @returns A unique string identifier
|
|
823
|
+
*/
|
|
824
|
+
#uniqueCollectionId(name) {
|
|
825
|
+
if (typeof name === "string") return name;
|
|
826
|
+
if (!this.#symbolRegistry.has(name)) this.#symbolRegistry.set(name, crypto.randomUUID());
|
|
827
|
+
return this.#symbolRegistry.get(name);
|
|
828
|
+
}
|
|
798
829
|
};
|
|
799
830
|
/**
|
|
800
831
|
* Creates a new {@link FederationBuilder} instance.
|
|
@@ -3295,16 +3326,9 @@ var ContextImpl = class ContextImpl {
|
|
|
3295
3326
|
return new URL(path, this.canonicalOrigin);
|
|
3296
3327
|
}
|
|
3297
3328
|
getCollectionUri(name, values) {
|
|
3298
|
-
const
|
|
3299
|
-
if (
|
|
3300
|
-
|
|
3301
|
-
const orderedCollectionRouteName = `orderedCollection:${String(name)}`;
|
|
3302
|
-
let path = this.federation.router.build(collectionRouteName, values);
|
|
3303
|
-
if (path == null) path = this.federation.router.build(orderedCollectionRouteName, values);
|
|
3304
|
-
if (path == null) throw new RouterError(`No collection dispatcher registered for ${String(name)}.`);
|
|
3305
|
-
return new URL(path, this.canonicalOrigin);
|
|
3306
|
-
}
|
|
3307
|
-
throw new RouterError(`No collection dispatcher registered for ${String(name)}.`);
|
|
3329
|
+
const path = this.federation.getCollectionPath(name, values);
|
|
3330
|
+
if (path === null) throw new RouterError(`No collection dispatcher registered for "${String(name)}".`);
|
|
3331
|
+
return new URL(path, this.canonicalOrigin);
|
|
3308
3332
|
}
|
|
3309
3333
|
parseUri(uri) {
|
|
3310
3334
|
if (uri == null) return null;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
|
|
2
|
+
import { Temporal } from "@js-temporal/polyfill";
|
|
3
|
+
import { URLPattern } from "urlpattern-polyfill";
|
|
4
|
+
globalThis.addEventListener = () => {};
|
|
5
|
+
|
|
6
|
+
import "./type-CSD3N947.js";
|
|
7
|
+
import { ContextImpl, FederationImpl, InboxContextImpl, KvSpecDeterminer, createFederation } from "./middleware-ysGs35SI.js";
|
|
8
|
+
import "./semver-DCqorrj5.js";
|
|
9
|
+
import "./client-cpcGgCz4.js";
|
|
10
|
+
import "./lookup-BHvHuca3.js";
|
|
11
|
+
import "./types-n7HI7VFr.js";
|
|
12
|
+
import "./actor-BG6nQiGo.js";
|
|
13
|
+
import "./key-DZzrjZ_W.js";
|
|
14
|
+
import "./http-V1txgyQm.js";
|
|
15
|
+
import "./authdocloader-CVsVMvOK.js";
|
|
16
|
+
import "./ld-BUMRH4qT.js";
|
|
17
|
+
import "./owner-CJiB3h-w.js";
|
|
18
|
+
import "./proof-CO7PKkkS.js";
|
|
19
|
+
import "./inbox-DZjkOcY_.js";
|
|
20
|
+
import "./builder-BBIXluVw.js";
|
|
21
|
+
import "./collection-D5V3UzU3.js";
|
|
22
|
+
import "./keycache-BpGJH5wN.js";
|
|
23
|
+
import "./retry-BnpVRGFC.js";
|
|
24
|
+
import "./send-jERwLMa1.js";
|
|
25
|
+
|
|
26
|
+
export { FederationImpl };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
|
|
2
|
+
import { Temporal } from "@js-temporal/polyfill";
|
|
3
|
+
import { URLPattern } from "urlpattern-polyfill";
|
|
4
|
+
|
|
5
|
+
import "./transformers-ghwJuzGY.js";
|
|
6
|
+
import "./docloader-DmrXAf56.js";
|
|
7
|
+
import "./actor-DiY4TXaT.js";
|
|
8
|
+
import { ContextImpl, FederationImpl, InboxContextImpl, KvSpecDeterminer, createFederation } from "./middleware-CIEFJR-0.js";
|
|
9
|
+
import "./lookup-mqYx33fa.js";
|
|
10
|
+
import "./key-BgP87NyA.js";
|
|
11
|
+
import "./http-cF_guZC4.js";
|
|
12
|
+
import "./proof-CBnoAbsR.js";
|
|
13
|
+
import "./types-BdxXmVoY.js";
|
|
14
|
+
import "./authdocloader-DVXQiSXr.js";
|
|
15
|
+
import "./vocab-DNOZ_bTQ.js";
|
|
16
|
+
|
|
17
|
+
export { FederationImpl };
|
|
@@ -3,22 +3,22 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { Activity, Collection, CollectionPage, CryptographicKey, Link, Multikey, Object as Object$1, OrderedCollection, OrderedCollectionPage, deno_default, getDocumentLoader, getTypeId, kvCache, lookupWebFinger } from "./type-
|
|
7
|
-
import { getNodeInfo } from "./client-
|
|
8
|
-
import { RouterError, lookupObject, traverseCollection } from "./lookup-
|
|
6
|
+
import { Activity, Collection, CollectionPage, CryptographicKey, Link, Multikey, Object as Object$1, OrderedCollection, OrderedCollectionPage, deno_default, getDocumentLoader, getTypeId, kvCache, lookupWebFinger } from "./type-CSD3N947.js";
|
|
7
|
+
import { getNodeInfo } from "./client-cpcGgCz4.js";
|
|
8
|
+
import { RouterError, lookupObject, traverseCollection } from "./lookup-BHvHuca3.js";
|
|
9
9
|
import { nodeInfoToJson } from "./types-n7HI7VFr.js";
|
|
10
|
-
import { exportJwk, importJwk, validateCryptoKey } from "./key-
|
|
11
|
-
import { verifyRequest } from "./http-
|
|
12
|
-
import { getAuthenticatedDocumentLoader } from "./authdocloader-
|
|
13
|
-
import { detachSignature, hasSignature, signJsonLd, verifyJsonLd } from "./ld-
|
|
14
|
-
import { doesActorOwnKey, getKeyOwner } from "./owner-
|
|
15
|
-
import { signObject, verifyObject } from "./proof-
|
|
16
|
-
import { routeActivity } from "./inbox-
|
|
17
|
-
import { FederationBuilderImpl } from "./builder-
|
|
10
|
+
import { exportJwk, importJwk, validateCryptoKey } from "./key-DZzrjZ_W.js";
|
|
11
|
+
import { verifyRequest } from "./http-V1txgyQm.js";
|
|
12
|
+
import { getAuthenticatedDocumentLoader } from "./authdocloader-CVsVMvOK.js";
|
|
13
|
+
import { detachSignature, hasSignature, signJsonLd, verifyJsonLd } from "./ld-BUMRH4qT.js";
|
|
14
|
+
import { doesActorOwnKey, getKeyOwner } from "./owner-CJiB3h-w.js";
|
|
15
|
+
import { signObject, verifyObject } from "./proof-CO7PKkkS.js";
|
|
16
|
+
import { routeActivity } from "./inbox-DZjkOcY_.js";
|
|
17
|
+
import { FederationBuilderImpl } from "./builder-BBIXluVw.js";
|
|
18
18
|
import { buildCollectionSynchronizationHeader } from "./collection-D5V3UzU3.js";
|
|
19
|
-
import { KvKeyCache } from "./keycache-
|
|
19
|
+
import { KvKeyCache } from "./keycache-BpGJH5wN.js";
|
|
20
20
|
import { createExponentialBackoffPolicy } from "./retry-BnpVRGFC.js";
|
|
21
|
-
import { extractInboxes, sendActivity } from "./send-
|
|
21
|
+
import { extractInboxes, sendActivity } from "./send-jERwLMa1.js";
|
|
22
22
|
import { getLogger, withContext } from "@logtape/logtape";
|
|
23
23
|
import { SpanKind, SpanStatusCode, context, propagation, trace } from "@opentelemetry/api";
|
|
24
24
|
import { ATTR_HTTP_REQUEST_HEADER, ATTR_HTTP_REQUEST_METHOD, ATTR_HTTP_RESPONSE_HEADER, ATTR_HTTP_RESPONSE_STATUS_CODE, ATTR_URL_FULL } from "@opentelemetry/semantic-conventions";
|
|
@@ -2387,16 +2387,9 @@ var ContextImpl = class ContextImpl {
|
|
|
2387
2387
|
return new URL(path, this.canonicalOrigin);
|
|
2388
2388
|
}
|
|
2389
2389
|
getCollectionUri(name, values) {
|
|
2390
|
-
const
|
|
2391
|
-
if (
|
|
2392
|
-
|
|
2393
|
-
const orderedCollectionRouteName = `orderedCollection:${String(name)}`;
|
|
2394
|
-
let path = this.federation.router.build(collectionRouteName, values);
|
|
2395
|
-
if (path == null) path = this.federation.router.build(orderedCollectionRouteName, values);
|
|
2396
|
-
if (path == null) throw new RouterError(`No collection dispatcher registered for ${String(name)}.`);
|
|
2397
|
-
return new URL(path, this.canonicalOrigin);
|
|
2398
|
-
}
|
|
2399
|
-
throw new RouterError(`No collection dispatcher registered for ${String(name)}.`);
|
|
2390
|
+
const path = this.federation.getCollectionPath(name, values);
|
|
2391
|
+
if (path === null) throw new RouterError(`No collection dispatcher registered for "${String(name)}".`);
|
|
2392
|
+
return new URL(path, this.canonicalOrigin);
|
|
2400
2393
|
}
|
|
2401
2394
|
parseUri(uri) {
|
|
2402
2395
|
if (uri == null) return null;
|
|
@@ -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-BeCtcTOJ.js";
|
|
4
|
-
import { HttpMessageSignaturesSpecDeterminer } from "./http-
|
|
4
|
+
import { HttpMessageSignaturesSpecDeterminer } from "./http-BL6S1G0j.js";
|
|
5
5
|
import { TracerProvider } from "@opentelemetry/api";
|
|
6
6
|
|
|
7
7
|
//#region runtime/authdocloader.d.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Temporal } from "@js-temporal/polyfill";
|
|
2
2
|
import { URLPattern } from "urlpattern-polyfill";
|
|
3
3
|
import { Activity } from "./vocab-By6mpzr-.js";
|
|
4
|
-
import { ActivityTransformer, Context } from "./context-
|
|
4
|
+
import { ActivityTransformer, Context } from "./context-Csbv_Ssv.js";
|
|
5
5
|
|
|
6
6
|
//#region compat/transformers.d.ts
|
|
7
7
|
|
|
@@ -2,7 +2,7 @@ import { Temporal } from "@js-temporal/polyfill";
|
|
|
2
2
|
import { URLPattern } from "urlpattern-polyfill";
|
|
3
3
|
import { DocumentLoader } from "./docloader-BeCtcTOJ.js";
|
|
4
4
|
import { CryptographicKey, DataIntegrityProof, Multikey, Object as Object$1 } from "./vocab-By6mpzr-.js";
|
|
5
|
-
import { KeyCache } from "./http-
|
|
5
|
+
import { KeyCache } from "./http-BL6S1G0j.js";
|
|
6
6
|
import { TracerProvider } from "@opentelemetry/api";
|
|
7
7
|
|
|
8
8
|
//#region sig/ld.d.ts
|
package/dist/mod.d.ts
CHANGED
|
@@ -5,16 +5,16 @@ import { AuthenticatedDocumentLoaderFactory, DocumentLoader, DocumentLoaderFacto
|
|
|
5
5
|
import { GetNodeInfoOptions, InboundService, JsonValue, NodeInfo, OutboundService, ParseNodeInfoOptions, Protocol, SemVer, Services, Software, Usage, formatSemVer, getNodeInfo, nodeInfoToJson, parseNodeInfo, parseSemVer } from "./client-BQ4AQGKo.js";
|
|
6
6
|
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 } from "./vocab-By6mpzr-.js";
|
|
7
7
|
import { Actor, ActorTypeName, GetActorHandleOptions, NormalizeActorHandleOptions, Recipient, getActorClassByTypeName, getActorHandle, getActorTypeName, isActor, normalizeActorHandle } from "./actor-B4TBtqRP.js";
|
|
8
|
-
import { FetchKeyOptions, FetchKeyResult, HttpMessageSignaturesSpec, HttpMessageSignaturesSpecDeterminer, KeyCache, SignRequestOptions, VerifyRequestOptions, exportJwk, fetchKey, generateCryptoKeyPair, importJwk, signRequest, verifyRequest } from "./http-
|
|
8
|
+
import { FetchKeyOptions, FetchKeyResult, HttpMessageSignaturesSpec, HttpMessageSignaturesSpecDeterminer, KeyCache, SignRequestOptions, VerifyRequestOptions, exportJwk, fetchKey, generateCryptoKeyPair, importJwk, signRequest, verifyRequest } from "./http-BL6S1G0j.js";
|
|
9
9
|
import { DoesActorOwnKeyOptions, GetKeyOwnerOptions, doesActorOwnKey, getKeyOwner } from "./owner-CEv_PfyK.js";
|
|
10
10
|
import { FediverseHandle, LookupObjectOptions, PUBLIC_COLLECTION, TraverseCollectionOptions, getTypeId, isFediverseHandle, lookupObject, parseFediverseHandle, toAcctUrl, traverseCollection } from "./mod-BFwgZ7_K.js";
|
|
11
11
|
import { ResourceDescriptor, lookupWebFinger } from "./lookup-J_m4YZg0.js";
|
|
12
|
-
import { ActivityTransformer, 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, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable } from "./context-
|
|
12
|
+
import { ActivityTransformer, 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, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable } from "./context-Csbv_Ssv.js";
|
|
13
13
|
import { InProcessMessageQueue, InProcessMessageQueueOptions, MessageQueue, MessageQueueEnqueueOptions, MessageQueueListenOptions, ParallelMessageQueue } from "./mq-DYKDDJmp.js";
|
|
14
|
-
import { actorDehydrator, autoIdAssigner, getDefaultActivityTransformers } from "./mod-
|
|
14
|
+
import { actorDehydrator, autoIdAssigner, getDefaultActivityTransformers } from "./mod-Dc_fDCtK.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-D8-liXFY.js";
|
|
18
|
+
import { CreateProofOptions, CreateSignatureOptions, SignJsonLdOptions, SignObjectOptions, VerifyJsonLdOptions, VerifyObjectOptions, VerifyProofOptions, VerifySignatureOptions, attachSignature, createProof, createSignature, detachSignature, signJsonLd, signObject, verifyJsonLd, verifyObject, verifyProof, verifySignature } from "./mod-j0OCtlRW.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, ConstructorWithTypeId, Context, Create, CreateExponentialBackoffPolicyOptions, CreateFederationOptions, CreateProofOptions, CreateSignatureOptions, CryptographicKey, CustomCollectionCallbackSetters, CustomCollectionCounter, CustomCollectionCursor, CustomCollectionDispatcher, DataIntegrityProof, Delete, DidService, Dislike, Document, DocumentLoader, DocumentLoaderFactory, DocumentLoaderFactoryOptions, DoesActorOwnKeyOptions, Emoji, EmojiReact, Endpoints, Event, Export, Federatable, Federation, FederationBuilder, FederationFetchOptions, FederationKvPrefixes, FederationOptions, FederationOrigin, FederationQueueOptions, FederationStartQueueOptions, FediverseHandle, 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, ParamsKeyPath, 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, isFediverseHandle, kvCache, lookupObject, lookupWebFinger, nodeInfoToJson, normalizeActorHandle, parseFediverseHandle, parseNodeInfo, parseSemVer, respondWithObject, respondWithObjectIfAcceptable, signJsonLd, signObject, signRequest, toAcctUrl, traverseCollection, verifyJsonLd, verifyObject, verifyProof, verifyRequest, verifySignature };
|
package/dist/mod.js
CHANGED
|
@@ -4,17 +4,17 @@
|
|
|
4
4
|
|
|
5
5
|
import { actorDehydrator, autoIdAssigner, getDefaultActivityTransformers } from "./transformers-ghwJuzGY.js";
|
|
6
6
|
import "./compat-Bb5myD13.js";
|
|
7
|
-
import { FetchError, fetchDocumentLoader, getDocumentLoader, getUserAgent, kvCache } from "./docloader-
|
|
8
|
-
import { Accept, Activity, Add, Announce, Application, Arrive, Article, Audio, Block, ChatMessage, Collection, CollectionPage, Create, CryptographicKey, DataIntegrityProof, Delete, DidService, Dislike, Document, Emoji, EmojiReact, Endpoints, Event, Export, Flag, Follow, Group, Hashtag, Ignore, Image, IntransitiveActivity, Invite, Join, LanguageString, Leave, Like, Link, Listen, Mention, Move, Multikey, Note, Object as Object$1, Offer, OrderedCollection, OrderedCollectionPage, Organization, Page, Person, Place, Profile, PropertyValue, Question, Read, Reject, Relationship, Remove, Service, Source, TentativeAccept, TentativeReject, Tombstone, Travel, Undo, Update, Video, View, exportMultibaseKey, exportSpki, getActorClassByTypeName, getActorHandle, getActorTypeName, getTypeId, importMultibaseKey, importPem, importPkcs1, importSpki, isActor, normalizeActorHandle } from "./actor-
|
|
9
|
-
import { Router, RouterError, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable } from "./middleware-
|
|
10
|
-
import { lookupWebFinger } from "./lookup-
|
|
11
|
-
import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk } from "./key-
|
|
12
|
-
import { signRequest, verifyRequest } from "./http-
|
|
13
|
-
import { attachSignature, createProof, createSignature, detachSignature, doesActorOwnKey, getKeyOwner, signJsonLd, signObject, verifyJsonLd, verifyObject, verifyProof, verifySignature } from "./proof-
|
|
7
|
+
import { FetchError, fetchDocumentLoader, getDocumentLoader, getUserAgent, kvCache } from "./docloader-DmrXAf56.js";
|
|
8
|
+
import { Accept, Activity, Add, Announce, Application, Arrive, Article, Audio, Block, ChatMessage, Collection, CollectionPage, Create, CryptographicKey, DataIntegrityProof, Delete, DidService, Dislike, Document, Emoji, EmojiReact, Endpoints, Event, Export, Flag, Follow, Group, Hashtag, Ignore, Image, IntransitiveActivity, Invite, Join, LanguageString, Leave, Like, Link, Listen, Mention, Move, Multikey, Note, Object as Object$1, Offer, OrderedCollection, OrderedCollectionPage, Organization, Page, Person, Place, Profile, PropertyValue, Question, Read, Reject, Relationship, Remove, Service, Source, TentativeAccept, TentativeReject, Tombstone, Travel, Undo, Update, Video, View, exportMultibaseKey, exportSpki, getActorClassByTypeName, getActorHandle, getActorTypeName, getTypeId, importMultibaseKey, importPem, importPkcs1, importSpki, isActor, normalizeActorHandle } from "./actor-DiY4TXaT.js";
|
|
9
|
+
import { Router, RouterError, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable } from "./middleware-CIEFJR-0.js";
|
|
10
|
+
import { lookupWebFinger } from "./lookup-mqYx33fa.js";
|
|
11
|
+
import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk } from "./key-BgP87NyA.js";
|
|
12
|
+
import { signRequest, verifyRequest } from "./http-cF_guZC4.js";
|
|
13
|
+
import { attachSignature, createProof, createSignature, detachSignature, doesActorOwnKey, getKeyOwner, signJsonLd, signObject, verifyJsonLd, verifyObject, verifyProof, verifySignature } from "./proof-CBnoAbsR.js";
|
|
14
14
|
import { InProcessMessageQueue, MemoryKvStore, ParallelMessageQueue } from "./federation-C44ekWNP.js";
|
|
15
|
-
import { formatSemVer, getNodeInfo, nodeInfoToJson, parseNodeInfo, parseSemVer } from "./types-
|
|
16
|
-
import { getAuthenticatedDocumentLoader } from "./authdocloader-
|
|
17
|
-
import { PUBLIC_COLLECTION, isFediverseHandle, lookupObject, parseFediverseHandle, toAcctUrl, traverseCollection } from "./vocab-
|
|
15
|
+
import { formatSemVer, getNodeInfo, nodeInfoToJson, parseNodeInfo, parseSemVer } from "./types-BdxXmVoY.js";
|
|
16
|
+
import { getAuthenticatedDocumentLoader } from "./authdocloader-DVXQiSXr.js";
|
|
17
|
+
import { PUBLIC_COLLECTION, isFediverseHandle, lookupObject, parseFediverseHandle, toAcctUrl, traverseCollection } from "./vocab-DNOZ_bTQ.js";
|
|
18
18
|
import "./nodeinfo-CyEbLjHs.js";
|
|
19
19
|
import "./runtime-BSkOVUWM.js";
|
|
20
20
|
import "./sig-BXJO--F9.js";
|
|
@@ -3,20 +3,20 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import "../type-
|
|
6
|
+
import "../type-CSD3N947.js";
|
|
7
7
|
import { assertEquals } from "../assert_equals-C5gKCm6A.js";
|
|
8
8
|
import "../assert-DwEa6glZ.js";
|
|
9
9
|
import "../assert_instance_of-C9QtN-X9.js";
|
|
10
10
|
import "../semver-DCqorrj5.js";
|
|
11
|
-
import { getNodeInfo, parseInboundService, parseNodeInfo, parseOutboundService, parseProtocol, parseServices, parseSoftware, parseUsage } from "../client-
|
|
12
|
-
import "../lookup-
|
|
13
|
-
import { test } from "../testing-
|
|
11
|
+
import { getNodeInfo, parseInboundService, parseNodeInfo, parseOutboundService, parseProtocol, parseServices, parseSoftware, parseUsage } from "../client-cpcGgCz4.js";
|
|
12
|
+
import "../lookup-BHvHuca3.js";
|
|
13
|
+
import { test } from "../testing-DT73_kZh.js";
|
|
14
14
|
import "../std__assert-BQdmxyzF.js";
|
|
15
15
|
import "../assert_rejects-AjlKk-Vo.js";
|
|
16
16
|
import "../assert_is_error-CeVBLPsZ.js";
|
|
17
17
|
import "../assert_not_equals-D2R2nl5h.js";
|
|
18
18
|
import "../assert_throws-CqMKbTh_.js";
|
|
19
|
-
import { esm_default } from "../esm-
|
|
19
|
+
import { esm_default } from "../esm-P-Jx8p-N.js";
|
|
20
20
|
|
|
21
21
|
//#region nodeinfo/client.test.ts
|
|
22
22
|
test("getNodeInfo()", async (t) => {
|
|
@@ -3,30 +3,30 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import "../type-
|
|
6
|
+
import "../type-CSD3N947.js";
|
|
7
7
|
import { assertEquals } from "../assert_equals-C5gKCm6A.js";
|
|
8
8
|
import "../assert-DwEa6glZ.js";
|
|
9
9
|
import "../assert_instance_of-C9QtN-X9.js";
|
|
10
10
|
import { MemoryKvStore } from "../kv-D7Yt6pnB.js";
|
|
11
|
-
import { createFederation, handleNodeInfo, handleNodeInfoJrd } from "../middleware-
|
|
11
|
+
import { createFederation, handleNodeInfo, handleNodeInfoJrd } from "../middleware-ysGs35SI.js";
|
|
12
12
|
import { parseSemVer } from "../semver-DCqorrj5.js";
|
|
13
|
-
import "../client-
|
|
14
|
-
import "../lookup-
|
|
13
|
+
import "../client-cpcGgCz4.js";
|
|
14
|
+
import "../lookup-BHvHuca3.js";
|
|
15
15
|
import "../types-n7HI7VFr.js";
|
|
16
|
-
import "../actor-
|
|
17
|
-
import "../key-
|
|
18
|
-
import "../http-
|
|
19
|
-
import "../authdocloader-
|
|
20
|
-
import "../ld-
|
|
21
|
-
import "../owner-
|
|
22
|
-
import "../proof-
|
|
23
|
-
import "../inbox-
|
|
24
|
-
import "../builder-
|
|
16
|
+
import "../actor-BG6nQiGo.js";
|
|
17
|
+
import "../key-DZzrjZ_W.js";
|
|
18
|
+
import "../http-V1txgyQm.js";
|
|
19
|
+
import "../authdocloader-CVsVMvOK.js";
|
|
20
|
+
import "../ld-BUMRH4qT.js";
|
|
21
|
+
import "../owner-CJiB3h-w.js";
|
|
22
|
+
import "../proof-CO7PKkkS.js";
|
|
23
|
+
import "../inbox-DZjkOcY_.js";
|
|
24
|
+
import "../builder-BBIXluVw.js";
|
|
25
25
|
import "../collection-D5V3UzU3.js";
|
|
26
|
-
import "../keycache-
|
|
26
|
+
import "../keycache-BpGJH5wN.js";
|
|
27
27
|
import "../retry-BnpVRGFC.js";
|
|
28
|
-
import "../send-
|
|
29
|
-
import { createRequestContext, test } from "../testing-
|
|
28
|
+
import "../send-jERwLMa1.js";
|
|
29
|
+
import { createRequestContext, test } from "../testing-DT73_kZh.js";
|
|
30
30
|
import "../std__assert-BQdmxyzF.js";
|
|
31
31
|
import "../assert_rejects-AjlKk-Vo.js";
|
|
32
32
|
import "../assert_is_error-CeVBLPsZ.js";
|
package/dist/nodeinfo/mod.js
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import { Temporal } from "@js-temporal/polyfill";
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
|
|
5
|
-
import "../docloader-
|
|
6
|
-
import { formatSemVer, getNodeInfo, nodeInfoToJson, parseNodeInfo, parseSemVer } from "../types-
|
|
5
|
+
import "../docloader-DmrXAf56.js";
|
|
6
|
+
import { formatSemVer, getNodeInfo, nodeInfoToJson, parseNodeInfo, parseSemVer } from "../types-BdxXmVoY.js";
|
|
7
7
|
import "../nodeinfo-CyEbLjHs.js";
|
|
8
8
|
|
|
9
9
|
export { formatSemVer, getNodeInfo, nodeInfoToJson, parseNodeInfo, parseSemVer };
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import "../type-
|
|
6
|
+
import "../type-CSD3N947.js";
|
|
7
7
|
import { assertEquals } from "../assert_equals-C5gKCm6A.js";
|
|
8
8
|
import "../assert-DwEa6glZ.js";
|
|
9
9
|
import "../assert_instance_of-C9QtN-X9.js";
|
|
10
10
|
import { formatSemVer, parseSemVer } from "../semver-DCqorrj5.js";
|
|
11
|
-
import "../lookup-
|
|
12
|
-
import { test } from "../testing-
|
|
11
|
+
import "../lookup-BHvHuca3.js";
|
|
12
|
+
import { test } from "../testing-DT73_kZh.js";
|
|
13
13
|
import "../std__assert-BQdmxyzF.js";
|
|
14
14
|
import "../assert_rejects-AjlKk-Vo.js";
|
|
15
15
|
import "../assert_is_error-CeVBLPsZ.js";
|
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import "../type-
|
|
6
|
+
import "../type-CSD3N947.js";
|
|
7
7
|
import { assertEquals } from "../assert_equals-C5gKCm6A.js";
|
|
8
8
|
import "../assert-DwEa6glZ.js";
|
|
9
9
|
import "../assert_instance_of-C9QtN-X9.js";
|
|
10
10
|
import "../semver-DCqorrj5.js";
|
|
11
|
-
import "../lookup-
|
|
11
|
+
import "../lookup-BHvHuca3.js";
|
|
12
12
|
import { nodeInfoToJson } from "../types-n7HI7VFr.js";
|
|
13
|
-
import { test } from "../testing-
|
|
13
|
+
import { test } from "../testing-DT73_kZh.js";
|
|
14
14
|
import "../std__assert-BQdmxyzF.js";
|
|
15
15
|
import "../assert_rejects-AjlKk-Vo.js";
|
|
16
16
|
import "../assert_is_error-CeVBLPsZ.js";
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { CryptographicKey, Object as Object$1, getDocumentLoader } from "./type-
|
|
7
|
-
import { isActor } from "./actor-
|
|
6
|
+
import { CryptographicKey, Object as Object$1, getDocumentLoader } from "./type-CSD3N947.js";
|
|
7
|
+
import { isActor } from "./actor-BG6nQiGo.js";
|
|
8
8
|
import { trace } from "@opentelemetry/api";
|
|
9
9
|
|
|
10
10
|
//#region sig/owner.ts
|