@fedify/fedify 1.9.0-pr.403.1503 → 1.9.0-pr.403.1507
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-Ch5yFYFG.d.ts → actor-B80VL7Zv.d.ts} +2 -2
- package/dist/{actor-ddzp91bo.js → actor-CIsF-n5t.js} +187 -187
- package/dist/{actor-gF1XBVOh.js → actor-D5NEKs-H.js} +1 -1
- package/dist/{authdocloader-LZrs2JTf.js → authdocloader-C80Qh6nT.js} +3 -3
- package/dist/{authdocloader-Bazh9WML.js → authdocloader-kT3YjLfm.js} +3 -3
- package/dist/{builder-Dh6fHk6A.js → builder--4Abku0B.js} +4 -4
- package/dist/{client-DF8anIB5.d.ts → client-BLIpt8C0.d.ts} +1 -1
- package/dist/{client-DZoZLopd.js → client-CIZTyPSt.js} +5 -4
- package/dist/compat/mod.d.ts +12 -12
- package/dist/compat/transformers.test.js +18 -18
- package/dist/{context-CmgIi27U.d.ts → context-B8KXDXjQ.d.ts} +10 -10
- package/dist/{docloader-CxWcuWqQ.d.ts → docloader-ClLAKEYo.d.ts} +1 -1
- package/dist/{docloader-B3YenrMX.js → docloader-D__EFgsg.js} +1 -1
- package/dist/{esm-BIQDNIre.js → esm-MoRVnXvZ.js} +1 -1
- package/dist/federation/builder.test.js +6 -6
- package/dist/federation/collection.test.js +3 -3
- package/dist/federation/handler.test.js +19 -19
- 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 +20 -20
- package/dist/federation/mod.d.ts +12 -12
- package/dist/federation/mod.js +11 -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-DRiKgrZb.js → http-BG0qOzZu.js} +2 -2
- package/dist/{http-D8Q4xH0d.d.ts → http-C68HIQho.d.ts} +2 -2
- package/dist/{http-DQvJllR8.js → http-DDfAIynd.js} +3 -3
- package/dist/{inbox-CICxRJ1v.js → inbox-D-bc5rI-.js} +1 -1
- package/dist/jrd-CVjXud67.js +22 -0
- package/dist/{key-CkZKU9c3.js → key-AIK2WmqL.js} +2 -2
- package/dist/{key-64JGN2QF.js → key-DIlYv882.js} +2 -2
- package/dist/{key-CmTMB6LD.js → key-DnS3IKGP.js} +3 -3
- package/dist/{key-DP5st_gc.js → key-pfboPnfT.js} +4 -4
- package/dist/{keycache-KDjztN02.js → keycache-DHnsRk0Y.js} +1 -1
- package/dist/{keys-QAPsELFi.js → keys-Cu_G6FPA.js} +1 -1
- package/dist/{ld-CzxBsfyQ.js → ld-CtIXhBh6.js} +2 -2
- package/dist/{lookup-BFfXRr1d.d.ts → lookup-CimDQw3M.d.ts} +10 -2
- package/dist/{lookup-DG2Qs-8X.js → lookup-DBhAQ6QY.js} +20 -3
- package/dist/{lookup-CJDkBrED.js → lookup-DlIiNCAM.js} +1 -1
- package/dist/{middleware-B_z_8lUt.js → middleware-0klbRaez.js} +10 -10
- package/dist/{middleware-DrSXSqEv.js → middleware-CnIxIUi-.js} +14 -14
- package/dist/middleware-Cpq4rdM2.js +18 -0
- package/dist/middleware-DI5CZSGv.js +26 -0
- package/dist/{mod-DS1m1V7N.d.ts → mod-BdjjfJgD.d.ts} +2 -2
- package/dist/{mod-Cy6pkZSn.d.ts → mod-DsFZsguN.d.ts} +2 -2
- package/dist/{mod-BAuhKa9d.d.ts → mod-V4On8xpJ.d.ts} +2 -2
- package/dist/{mod-B7Pc0I7F.d.ts → mod-vNTMZFkP.d.ts} +3 -3
- package/dist/mod.d.ts +17 -17
- package/dist/mod.js +16 -15
- package/dist/nodeinfo/client.test.js +6 -6
- package/dist/nodeinfo/handler.test.js +18 -18
- package/dist/nodeinfo/mod.d.ts +4 -4
- package/dist/nodeinfo/mod.js +4 -3
- package/dist/nodeinfo/semver.test.js +4 -4
- package/dist/nodeinfo/types.test.js +5 -5
- package/dist/{owner-D38zBIMc.d.ts → owner-BB7x_v65.d.ts} +3 -3
- package/dist/{owner-CTcr5xgd.js → owner-DLlle-l2.js} +2 -2
- package/dist/{proof-wFWCk5k0.js → proof-DrvUurr3.js} +3 -3
- package/dist/{proof-B8g21BH-.js → proof-NP4r1NS8.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 +5 -5
- package/dist/runtime/mod.js +7 -7
- package/dist/runtime/multibase/multibase.test.js +3 -3
- package/dist/runtime/url.test.js +3 -3
- package/dist/{send-Q8lbVZtK.js → send-BtU_Xnfq.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 +7 -7
- package/dist/sig/mod.js +7 -7
- 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-DvZH9Z_u.js → testing-DXNsKEUF.js} +2 -2
- package/dist/{type-CXta-7xG.js → type-tE5Z3ILc.js} +186 -186
- package/dist/{types-B6nMoYI4.js → types-CbFXXeEf.js} +4 -3
- package/dist/{types-BIgY6c-l.js → types-DEOFv30y.js} +1 -1
- package/dist/vocab/actor.test.js +5 -5
- package/dist/vocab/lookup.test.js +4 -4
- package/dist/vocab/mod.d.ts +5 -5
- package/dist/vocab/mod.js +5 -4
- package/dist/vocab/type.test.js +3 -3
- package/dist/vocab/vocab.test.js +4 -4
- package/dist/{vocab-BYU_AXmP.js → vocab-Dbl52dmj.js} +5 -4
- package/dist/{vocab-BEEm2I6u.d.ts → vocab-Dq4PIigg.d.ts} +1 -1
- package/dist/webfinger/handler.test.js +18 -18
- package/dist/webfinger/lookup.test.js +4 -4
- package/dist/webfinger/mod.d.ts +5 -5
- package/dist/webfinger/mod.js +5 -4
- package/dist/x/cfworkers.d.ts +2 -2
- package/dist/x/cfworkers.test.js +3 -3
- package/dist/x/hono.d.ts +11 -11
- package/dist/x/sveltekit.d.ts +11 -11
- package/package.json +1 -1
- package/dist/middleware-DDqQh45n.js +0 -26
- package/dist/middleware-DeWLztd3.js +0 -17
- /package/dist/{kv-C7sopW2E.d.ts → kv-Nozgty7f.d.ts} +0 -0
- /package/dist/{mod-GIh5OYxW.d.ts → mod-8L0uotkD.d.ts} +0 -0
- /package/dist/{mod-g0xFzAP9.d.ts → mod-BzXXY2df.d.ts} +0 -0
- /package/dist/{mq-CRGm1e_F.d.ts → mq-C_kcxiLL.d.ts} +0 -0
- /package/dist/{nodeinfo-CyEbLjHs.js → nodeinfo-C8cvu-8q.js} +0 -0
- /package/dist/{runtime-BSkOVUWM.js → runtime-DK9xgBqW.js} +0 -0
- /package/dist/{semver-dArNLkR9.js → semver-DK6KJMYH.js} +0 -0
- /package/dist/{sig-BXJO--F9.js → sig-ccY9XpbB.js} +0 -0
- /package/dist/{webfinger-C3GIyXIg.js → webfinger-i8KkKSng.js} +0 -0
@@ -1,7 +1,7 @@
|
|
1
1
|
import { Temporal } from "@js-temporal/polyfill";
|
2
2
|
import { URLPattern } from "urlpattern-polyfill";
|
3
|
-
import { DocumentLoader } from "./docloader-
|
4
|
-
import { CryptographicKey, Multikey } from "./vocab-
|
3
|
+
import { DocumentLoader } from "./docloader-ClLAKEYo.js";
|
4
|
+
import { CryptographicKey, Multikey } from "./vocab-Dq4PIigg.js";
|
5
5
|
import { TracerProvider } from "@opentelemetry/api";
|
6
6
|
|
7
7
|
//#region src/sig/key.d.ts
|
@@ -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-D__EFgsg.js";
|
6
|
+
import { CryptographicKey } from "./actor-CIsF-n5t.js";
|
7
|
+
import { fetchKey, validateCryptoKey } from "./key-DIlYv882.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-tE5Z3ILc.js";
|
7
7
|
import { getLogger } from "@logtape/logtape";
|
8
8
|
import { SpanKind, SpanStatusCode, context, propagation, trace } from "@opentelemetry/api";
|
9
9
|
|
@@ -0,0 +1,22 @@
|
|
1
|
+
|
2
|
+
import { Temporal } from "@js-temporal/polyfill";
|
3
|
+
import { URLPattern } from "urlpattern-polyfill";
|
4
|
+
|
5
|
+
//#region src/webfinger/jrd.ts
|
6
|
+
function isOStatusSubscribeLink(link) {
|
7
|
+
if ("template" in link && link.rel === "http://ostatus.org/schema/1.0/subscribe" && typeof link.template === "string") return true;
|
8
|
+
return false;
|
9
|
+
}
|
10
|
+
isOStatusSubscribeLink.withCondition = (condition) => (link) => {
|
11
|
+
return isOStatusSubscribeLink(link) && condition(link);
|
12
|
+
};
|
13
|
+
function isLink(link) {
|
14
|
+
if ("rel" in link && typeof link.rel === "string") return true;
|
15
|
+
return false;
|
16
|
+
}
|
17
|
+
isLink.withCondition = (condition) => (link) => {
|
18
|
+
return isLink(link) && condition(link);
|
19
|
+
};
|
20
|
+
|
21
|
+
//#endregion
|
22
|
+
export { isLink, isOStatusSubscribeLink };
|
@@ -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-tE5Z3ILc.js";
|
7
|
+
import { isActor } from "./actor-D5NEKs-H.js";
|
8
8
|
import { getLogger } from "@logtape/logtape";
|
9
9
|
import { SpanKind, SpanStatusCode, trace } from "@opentelemetry/api";
|
10
10
|
|
@@ -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-D__EFgsg.js";
|
6
|
+
import { CryptographicKey, Object as Object$1, isActor } from "./actor-CIsF-n5t.js";
|
7
7
|
import { getLogger } from "@logtape/logtape";
|
8
8
|
import { SpanKind, SpanStatusCode, trace } from "@opentelemetry/api";
|
9
9
|
|
@@ -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-tE5Z3ILc.js";
|
7
|
+
import "./actor-D5NEKs-H.js";
|
8
|
+
import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk, validateCryptoKey } from "./key-AIK2WmqL.js";
|
9
9
|
|
10
10
|
export { validateCryptoKey };
|
@@ -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-D__EFgsg.js";
|
6
|
+
import "./actor-CIsF-n5t.js";
|
7
|
+
import "./lookup-DlIiNCAM.js";
|
8
|
+
import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk, validateCryptoKey } from "./key-DIlYv882.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-tE5Z3ILc.js";
|
7
7
|
|
8
8
|
//#region src/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-tE5Z3ILc.js";
|
7
7
|
|
8
8
|
//#region src/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-tE5Z3ILc.js";
|
7
|
+
import { fetchKey, validateCryptoKey } from "./key-AIK2WmqL.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";
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { Temporal } from "@js-temporal/polyfill";
|
2
2
|
import { URLPattern } from "urlpattern-polyfill";
|
3
|
-
import { GetUserAgentOptions } from "./docloader-
|
3
|
+
import { GetUserAgentOptions } from "./docloader-ClLAKEYo.js";
|
4
4
|
import { TracerProvider } from "@opentelemetry/api";
|
5
5
|
|
6
6
|
//#region src/webfinger/jrd.d.ts
|
@@ -68,6 +68,14 @@ interface OStatusSubscribeLink {
|
|
68
68
|
*/
|
69
69
|
template: string;
|
70
70
|
}
|
71
|
+
declare function isOStatusSubscribeLink(link: Link | OStatusSubscribeLink): link is OStatusSubscribeLink;
|
72
|
+
declare namespace isOStatusSubscribeLink {
|
73
|
+
var withCondition: (condition: (link: OStatusSubscribeLink) => boolean) => (link: Link | OStatusSubscribeLink) => link is OStatusSubscribeLink;
|
74
|
+
}
|
75
|
+
declare function isLink(link: Link | OStatusSubscribeLink): link is Link;
|
76
|
+
declare namespace isLink {
|
77
|
+
var withCondition: (condition: (link: Link) => boolean) => (link: Link | Link) => link is Link;
|
78
|
+
}
|
71
79
|
//#endregion
|
72
80
|
//#region src/webfinger/lookup.d.ts
|
73
81
|
/**
|
@@ -118,4 +126,4 @@ interface LookupWebFingerOptions {
|
|
118
126
|
*/
|
119
127
|
declare function lookupWebFinger(resource: URL | string, options?: LookupWebFingerOptions): Promise<ResourceDescriptor | null>;
|
120
128
|
//#endregion
|
121
|
-
export { Link, LookupWebFingerOptions, OStatusSubscribeLink, ResourceDescriptor, lookupWebFinger };
|
129
|
+
export { Link, LookupWebFingerOptions, OStatusSubscribeLink, ResourceDescriptor, isLink, isOStatusSubscribeLink, lookupWebFinger };
|
@@ -3,13 +3,30 @@
|
|
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-tE5Z3ILc.js";
|
7
7
|
import { cloneDeep, delay } from "es-toolkit";
|
8
8
|
import { getLogger } from "@logtape/logtape";
|
9
9
|
import { SpanStatusCode, trace } from "@opentelemetry/api";
|
10
10
|
import { Router } from "uri-template-router";
|
11
11
|
import { parseTemplate } from "url-template";
|
12
12
|
|
13
|
+
//#region src/webfinger/jrd.ts
|
14
|
+
function isOStatusSubscribeLink(link) {
|
15
|
+
if ("template" in link && link.rel === "http://ostatus.org/schema/1.0/subscribe" && typeof link.template === "string") return true;
|
16
|
+
return false;
|
17
|
+
}
|
18
|
+
isOStatusSubscribeLink.withCondition = (condition) => (link) => {
|
19
|
+
return isOStatusSubscribeLink(link) && condition(link);
|
20
|
+
};
|
21
|
+
function isLink(link) {
|
22
|
+
if ("rel" in link && typeof link.rel === "string") return true;
|
23
|
+
return false;
|
24
|
+
}
|
25
|
+
isLink.withCondition = (condition) => (link) => {
|
26
|
+
return isLink(link) && condition(link);
|
27
|
+
};
|
28
|
+
|
29
|
+
//#endregion
|
13
30
|
//#region src/federation/router.ts
|
14
31
|
function cloneInnerRouter(router) {
|
15
32
|
const clone = new Router();
|
@@ -256,7 +273,7 @@ async function lookupObjectInternal(identifier, options = {}) {
|
|
256
273
|
});
|
257
274
|
if (jrd?.links == null) return null;
|
258
275
|
for (const l of jrd.links) {
|
259
|
-
if (
|
276
|
+
if (isOStatusSubscribeLink(l) || l.type !== "application/activity+json" && !l.type?.match(/application\/ld\+json;\s*profile="https:\/\/www.w3.org\/ns\/activitystreams"/) || l.rel !== "self" || l.href == null) continue;
|
260
277
|
try {
|
261
278
|
const remoteDoc = await documentLoader(l.href, { signal: options.signal });
|
262
279
|
document = remoteDoc.document;
|
@@ -319,4 +336,4 @@ async function* traverseCollection(collection, options = {}) {
|
|
319
336
|
}
|
320
337
|
|
321
338
|
//#endregion
|
322
|
-
export { Router$1 as Router, RouterError, lookupObject, traverseCollection };
|
339
|
+
export { Router$1 as Router, RouterError, isLink, lookupObject, traverseCollection };
|
@@ -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-D__EFgsg.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-Dna8Fg7k.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-D__EFgsg.js";
|
7
|
+
import { Activity, Collection, CollectionPage, CryptographicKey, Link, Multikey, Object as Object$1, OrderedCollection, OrderedCollectionPage, getTypeId } from "./actor-CIsF-n5t.js";
|
8
|
+
import { lookupWebFinger } from "./lookup-DlIiNCAM.js";
|
9
|
+
import { exportJwk, importJwk, validateCryptoKey } from "./key-DIlYv882.js";
|
10
|
+
import { doubleKnock, verifyRequest } from "./http-DDfAIynd.js";
|
11
|
+
import { detachSignature, doesActorOwnKey, getKeyOwner, hasSignature, signJsonLd, signObject, verifyJsonLd, verifyObject } from "./proof-DrvUurr3.js";
|
12
|
+
import { getNodeInfo, nodeInfoToJson } from "./types-CbFXXeEf.js";
|
13
|
+
import { getAuthenticatedDocumentLoader } from "./authdocloader-kT3YjLfm.js";
|
14
|
+
import { lookupObject, traverseCollection } from "./vocab-Dbl52dmj.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";
|
@@ -320,7 +320,7 @@ var FederationBuilderImpl = class {
|
|
320
320
|
this.collectionTypeIds = {};
|
321
321
|
}
|
322
322
|
async build(options) {
|
323
|
-
const { FederationImpl: FederationImpl$1 } = await import("./middleware-
|
323
|
+
const { FederationImpl: FederationImpl$1 } = await import("./middleware-Cpq4rdM2.js");
|
324
324
|
const f = new FederationImpl$1(options);
|
325
325
|
const trailingSlashInsensitiveValue = f.router.trailingSlashInsensitive;
|
326
326
|
f.router = this.router.clone();
|
@@ -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 {
|
8
|
-
import {
|
9
|
-
import { nodeInfoToJson } from "./types-
|
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
|
6
|
+
import { Activity, Collection, CollectionPage, CryptographicKey, Link, Multikey, Object as Object$1, OrderedCollection, OrderedCollectionPage, deno_default, getDocumentLoader, getTypeId, kvCache, lookupWebFinger } from "./type-tE5Z3ILc.js";
|
7
|
+
import { RouterError, lookupObject, traverseCollection } from "./lookup-DBhAQ6QY.js";
|
8
|
+
import { getNodeInfo } from "./client-CIZTyPSt.js";
|
9
|
+
import { nodeInfoToJson } from "./types-DEOFv30y.js";
|
10
|
+
import { exportJwk, importJwk, validateCryptoKey } from "./key-AIK2WmqL.js";
|
11
|
+
import { verifyRequest } from "./http-BG0qOzZu.js";
|
12
|
+
import { getAuthenticatedDocumentLoader } from "./authdocloader-C80Qh6nT.js";
|
13
|
+
import { detachSignature, hasSignature, signJsonLd, verifyJsonLd } from "./ld-CtIXhBh6.js";
|
14
|
+
import { doesActorOwnKey, getKeyOwner } from "./owner-DLlle-l2.js";
|
15
|
+
import { signObject, verifyObject } from "./proof-NP4r1NS8.js";
|
16
|
+
import { routeActivity } from "./inbox-D-bc5rI-.js";
|
17
|
+
import { FederationBuilderImpl } from "./builder--4Abku0B.js";
|
18
18
|
import { buildCollectionSynchronizationHeader } from "./collection-CSzG2j1P.js";
|
19
|
-
import { KvKeyCache } from "./keycache-
|
19
|
+
import { KvKeyCache } from "./keycache-DHnsRk0Y.js";
|
20
20
|
import { createExponentialBackoffPolicy } from "./retry-D4GJ670a.js";
|
21
|
-
import { extractInboxes, sendActivity } from "./send-
|
21
|
+
import { extractInboxes, sendActivity } from "./send-BtU_Xnfq.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";
|
@@ -0,0 +1,18 @@
|
|
1
|
+
|
2
|
+
import { Temporal } from "@js-temporal/polyfill";
|
3
|
+
import { URLPattern } from "urlpattern-polyfill";
|
4
|
+
|
5
|
+
import "./transformers-Dna8Fg7k.js";
|
6
|
+
import "./docloader-D__EFgsg.js";
|
7
|
+
import "./actor-CIsF-n5t.js";
|
8
|
+
import { ContextImpl, FederationImpl, InboxContextImpl, KvSpecDeterminer, createFederation } from "./middleware-0klbRaez.js";
|
9
|
+
import "./lookup-DlIiNCAM.js";
|
10
|
+
import "./key-DIlYv882.js";
|
11
|
+
import "./http-DDfAIynd.js";
|
12
|
+
import "./proof-DrvUurr3.js";
|
13
|
+
import "./jrd-CVjXud67.js";
|
14
|
+
import "./types-CbFXXeEf.js";
|
15
|
+
import "./authdocloader-kT3YjLfm.js";
|
16
|
+
import "./vocab-Dbl52dmj.js";
|
17
|
+
|
18
|
+
export { FederationImpl };
|
@@ -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-tE5Z3ILc.js";
|
7
|
+
import { ContextImpl, FederationImpl, InboxContextImpl, KvSpecDeterminer, createFederation } from "./middleware-CnIxIUi-.js";
|
8
|
+
import "./lookup-DBhAQ6QY.js";
|
9
|
+
import "./semver-DK6KJMYH.js";
|
10
|
+
import "./client-CIZTyPSt.js";
|
11
|
+
import "./types-DEOFv30y.js";
|
12
|
+
import "./actor-D5NEKs-H.js";
|
13
|
+
import "./key-AIK2WmqL.js";
|
14
|
+
import "./http-BG0qOzZu.js";
|
15
|
+
import "./authdocloader-C80Qh6nT.js";
|
16
|
+
import "./ld-CtIXhBh6.js";
|
17
|
+
import "./owner-DLlle-l2.js";
|
18
|
+
import "./proof-NP4r1NS8.js";
|
19
|
+
import "./inbox-D-bc5rI-.js";
|
20
|
+
import "./builder--4Abku0B.js";
|
21
|
+
import "./collection-CSzG2j1P.js";
|
22
|
+
import "./keycache-DHnsRk0Y.js";
|
23
|
+
import "./retry-D4GJ670a.js";
|
24
|
+
import "./send-BtU_Xnfq.js";
|
25
|
+
|
26
|
+
export { FederationImpl };
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { Temporal } from "@js-temporal/polyfill";
|
2
2
|
import { URLPattern } from "urlpattern-polyfill";
|
3
|
-
import { Activity } from "./vocab-
|
4
|
-
import { ActivityTransformer, Context } from "./context-
|
3
|
+
import { Activity } from "./vocab-Dq4PIigg.js";
|
4
|
+
import { ActivityTransformer, Context } from "./context-B8KXDXjQ.js";
|
5
5
|
|
6
6
|
//#region src/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
|
-
import { DocumentLoader, GetUserAgentOptions } from "./docloader-
|
4
|
-
import { Collection, Link, Object as Object$1 } from "./vocab-
|
3
|
+
import { DocumentLoader, GetUserAgentOptions } from "./docloader-ClLAKEYo.js";
|
4
|
+
import { Collection, Link, Object as Object$1 } from "./vocab-Dq4PIigg.js";
|
5
5
|
import { TracerProvider } from "@opentelemetry/api";
|
6
6
|
|
7
7
|
//#region src/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 { DocumentLoader, DocumentLoaderFactoryOptions } from "./docloader-
|
4
|
-
import { HttpMessageSignaturesSpecDeterminer } from "./http-
|
3
|
+
import { DocumentLoader, DocumentLoaderFactoryOptions } from "./docloader-ClLAKEYo.js";
|
4
|
+
import { HttpMessageSignaturesSpecDeterminer } from "./http-C68HIQho.js";
|
5
5
|
import { TracerProvider } from "@opentelemetry/api";
|
6
6
|
|
7
7
|
//#region src/runtime/authdocloader.d.ts
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import { Temporal } from "@js-temporal/polyfill";
|
2
2
|
import { URLPattern } from "urlpattern-polyfill";
|
3
|
-
import { DocumentLoader } from "./docloader-
|
4
|
-
import { CryptographicKey, DataIntegrityProof, Multikey, Object as Object$1 } from "./vocab-
|
5
|
-
import { KeyCache } from "./http-
|
3
|
+
import { DocumentLoader } from "./docloader-ClLAKEYo.js";
|
4
|
+
import { CryptographicKey, DataIntegrityProof, Multikey, Object as Object$1 } from "./vocab-Dq4PIigg.js";
|
5
|
+
import { KeyCache } from "./http-C68HIQho.js";
|
6
6
|
import { TracerProvider } from "@opentelemetry/api";
|
7
7
|
|
8
8
|
//#region src/sig/ld.d.ts
|
package/dist/mod.d.ts
CHANGED
@@ -1,20 +1,20 @@
|
|
1
1
|
import { Temporal } from "@js-temporal/polyfill";
|
2
2
|
import { URLPattern } from "urlpattern-polyfill";
|
3
|
-
import { KvKey, KvStore, KvStoreSetOptions, MemoryKvStore } from "./kv-
|
4
|
-
import { AuthenticatedDocumentLoaderFactory, DocumentLoader, DocumentLoaderFactory, DocumentLoaderFactoryOptions, FetchError, GetDocumentLoaderOptions, GetUserAgentOptions, KvCacheParameters, RemoteDocument, fetchDocumentLoader, getDocumentLoader, getUserAgent, kvCache } from "./docloader-
|
5
|
-
import { GetNodeInfoOptions, InboundService, JsonValue, NodeInfo, OutboundService, ParseNodeInfoOptions, Protocol, SemVer, Services, Software, Usage, formatSemVer, getNodeInfo, nodeInfoToJson, parseNodeInfo, parseSemVer } from "./client-
|
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-
|
7
|
-
import { Actor, ActorTypeName, GetActorHandleOptions, NormalizeActorHandleOptions, Recipient, getActorClassByTypeName, getActorHandle, getActorTypeName, isActor, normalizeActorHandle } from "./actor-
|
8
|
-
import { FetchKeyOptions, FetchKeyResult, HttpMessageSignaturesSpec, HttpMessageSignaturesSpecDeterminer, KeyCache, SignRequestOptions, VerifyRequestOptions, exportJwk, fetchKey, generateCryptoKeyPair, importJwk, signRequest, verifyRequest } from "./http-
|
9
|
-
import { DoesActorOwnKeyOptions, GetKeyOwnerOptions, doesActorOwnKey, getKeyOwner } from "./owner-
|
10
|
-
import { FediverseHandle, LookupObjectOptions, PUBLIC_COLLECTION, TraverseCollectionOptions, getTypeId, isFediverseHandle, lookupObject, parseFediverseHandle, toAcctUrl, traverseCollection } from "./mod-
|
11
|
-
import { ResourceDescriptor, lookupWebFinger } from "./lookup-
|
12
|
-
import { ActivityTransformer, ActorAliasMapper, ActorCallbackSetters, ActorDispatcher, ActorHandleMapper, ActorKeyPair, ActorKeyPairsDispatcher, AuthorizePredicate, CollectionCallbackSetters, CollectionCounter, CollectionCursor, CollectionDispatcher, 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-
|
13
|
-
import { InProcessMessageQueue, InProcessMessageQueueOptions, MessageQueue, MessageQueueEnqueueOptions, MessageQueueListenOptions, ParallelMessageQueue } from "./mq-
|
14
|
-
import { actorDehydrator, autoIdAssigner, getDefaultActivityTransformers } from "./mod-
|
15
|
-
import "./mod-g0xFzAP9.js";
|
3
|
+
import { KvKey, KvStore, KvStoreSetOptions, MemoryKvStore } from "./kv-Nozgty7f.js";
|
4
|
+
import { AuthenticatedDocumentLoaderFactory, DocumentLoader, DocumentLoaderFactory, DocumentLoaderFactoryOptions, FetchError, GetDocumentLoaderOptions, GetUserAgentOptions, KvCacheParameters, RemoteDocument, fetchDocumentLoader, getDocumentLoader, getUserAgent, kvCache } from "./docloader-ClLAKEYo.js";
|
5
|
+
import { GetNodeInfoOptions, InboundService, JsonValue, NodeInfo, OutboundService, ParseNodeInfoOptions, Protocol, SemVer, Services, Software, Usage, formatSemVer, getNodeInfo, nodeInfoToJson, parseNodeInfo, parseSemVer } from "./client-BLIpt8C0.js";
|
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-Dq4PIigg.js";
|
7
|
+
import { Actor, ActorTypeName, GetActorHandleOptions, NormalizeActorHandleOptions, Recipient, getActorClassByTypeName, getActorHandle, getActorTypeName, isActor, normalizeActorHandle } from "./actor-B80VL7Zv.js";
|
8
|
+
import { FetchKeyOptions, FetchKeyResult, HttpMessageSignaturesSpec, HttpMessageSignaturesSpecDeterminer, KeyCache, SignRequestOptions, VerifyRequestOptions, exportJwk, fetchKey, generateCryptoKeyPair, importJwk, signRequest, verifyRequest } from "./http-C68HIQho.js";
|
9
|
+
import { DoesActorOwnKeyOptions, GetKeyOwnerOptions, doesActorOwnKey, getKeyOwner } from "./owner-BB7x_v65.js";
|
10
|
+
import { FediverseHandle, LookupObjectOptions, PUBLIC_COLLECTION, TraverseCollectionOptions, getTypeId, isFediverseHandle, lookupObject, parseFediverseHandle, toAcctUrl, traverseCollection } from "./mod-DsFZsguN.js";
|
11
|
+
import { ResourceDescriptor, isLink, isOStatusSubscribeLink, lookupWebFinger } from "./lookup-CimDQw3M.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-B8KXDXjQ.js";
|
13
|
+
import { InProcessMessageQueue, InProcessMessageQueueOptions, MessageQueue, MessageQueueEnqueueOptions, MessageQueueListenOptions, ParallelMessageQueue } from "./mq-C_kcxiLL.js";
|
14
|
+
import { actorDehydrator, autoIdAssigner, getDefaultActivityTransformers } from "./mod-BdjjfJgD.js";
|
16
15
|
import "./mod-1pDWKvUL.js";
|
17
|
-
import
|
18
|
-
import {
|
19
|
-
import "./mod-
|
20
|
-
|
16
|
+
import "./mod-8L0uotkD.js";
|
17
|
+
import { GetAuthenticatedDocumentLoaderOptions, exportMultibaseKey, exportSpki, getAuthenticatedDocumentLoader, importMultibaseKey, importPem, importPkcs1, importSpki } from "./mod-V4On8xpJ.js";
|
18
|
+
import { CreateProofOptions, CreateSignatureOptions, SignJsonLdOptions, SignObjectOptions, VerifyJsonLdOptions, VerifyObjectOptions, VerifyProofOptions, VerifySignatureOptions, attachSignature, createProof, createSignature, detachSignature, signJsonLd, signObject, verifyJsonLd, verifyObject, verifyProof, verifySignature } from "./mod-vNTMZFkP.js";
|
19
|
+
import "./mod-BzXXY2df.js";
|
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, isLink, isOStatusSubscribeLink, 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,20 +4,21 @@
|
|
4
4
|
|
5
5
|
import { actorDehydrator, autoIdAssigner, getDefaultActivityTransformers } from "./transformers-Dna8Fg7k.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-D__EFgsg.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-CIsF-n5t.js";
|
9
|
+
import { Router, RouterError, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable } from "./middleware-0klbRaez.js";
|
10
|
+
import { lookupWebFinger } from "./lookup-DlIiNCAM.js";
|
11
|
+
import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk } from "./key-DIlYv882.js";
|
12
|
+
import { signRequest, verifyRequest } from "./http-DDfAIynd.js";
|
13
|
+
import { attachSignature, createProof, createSignature, detachSignature, doesActorOwnKey, getKeyOwner, signJsonLd, signObject, verifyJsonLd, verifyObject, verifyProof, verifySignature } from "./proof-DrvUurr3.js";
|
14
14
|
import { InProcessMessageQueue, MemoryKvStore, ParallelMessageQueue } from "./federation-CMX7WzeL.js";
|
15
|
-
import {
|
16
|
-
import {
|
17
|
-
import {
|
18
|
-
import "./
|
19
|
-
import "./
|
20
|
-
import "./
|
21
|
-
import "./
|
15
|
+
import { isLink, isOStatusSubscribeLink } from "./jrd-CVjXud67.js";
|
16
|
+
import { formatSemVer, getNodeInfo, nodeInfoToJson, parseNodeInfo, parseSemVer } from "./types-CbFXXeEf.js";
|
17
|
+
import { getAuthenticatedDocumentLoader } from "./authdocloader-kT3YjLfm.js";
|
18
|
+
import { PUBLIC_COLLECTION, isFediverseHandle, lookupObject, parseFediverseHandle, toAcctUrl, traverseCollection } from "./vocab-Dbl52dmj.js";
|
19
|
+
import "./nodeinfo-C8cvu-8q.js";
|
20
|
+
import "./runtime-DK9xgBqW.js";
|
21
|
+
import "./sig-ccY9XpbB.js";
|
22
|
+
import "./webfinger-i8KkKSng.js";
|
22
23
|
|
23
|
-
export { Accept, Activity, Add, Announce, Application, Arrive, Article, Audio, Block, ChatMessage, Collection, CollectionPage, Create, CryptographicKey, DataIntegrityProof, Delete, DidService, Dislike, Document, Emoji, EmojiReact, Endpoints, Event, Export, FetchError, Flag, Follow, Group, Hashtag, Ignore, Image, InProcessMessageQueue, IntransitiveActivity, Invite, Join, LanguageString, Leave, Like, Link, Listen, MemoryKvStore, Mention, Move, Multikey, Note, Object$1 as Object, Offer, OrderedCollection, OrderedCollectionPage, Organization, PUBLIC_COLLECTION, Page, ParallelMessageQueue, Person, Place, Profile, PropertyValue, Question, Read, Reject, Relationship, Remove, Router, RouterError, Service, Source, TentativeAccept, TentativeReject, Tombstone, Travel, Undo, Update, 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 };
|
24
|
+
export { Accept, Activity, Add, Announce, Application, Arrive, Article, Audio, Block, ChatMessage, Collection, CollectionPage, Create, CryptographicKey, DataIntegrityProof, Delete, DidService, Dislike, Document, Emoji, EmojiReact, Endpoints, Event, Export, FetchError, Flag, Follow, Group, Hashtag, Ignore, Image, InProcessMessageQueue, IntransitiveActivity, Invite, Join, LanguageString, Leave, Like, Link, Listen, MemoryKvStore, Mention, Move, Multikey, Note, Object$1 as Object, Offer, OrderedCollection, OrderedCollectionPage, Organization, PUBLIC_COLLECTION, Page, ParallelMessageQueue, Person, Place, Profile, PropertyValue, Question, Read, Reject, Relationship, Remove, Router, RouterError, Service, Source, TentativeAccept, TentativeReject, Tombstone, Travel, Undo, Update, 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, isLink, isOStatusSubscribeLink, kvCache, lookupObject, lookupWebFinger, nodeInfoToJson, normalizeActorHandle, parseFediverseHandle, parseNodeInfo, parseSemVer, respondWithObject, respondWithObjectIfAcceptable, signJsonLd, signObject, signRequest, toAcctUrl, traverseCollection, verifyJsonLd, verifyObject, verifyProof, verifyRequest, verifySignature };
|
@@ -3,20 +3,20 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import "../type-
|
6
|
+
import "../type-tE5Z3ILc.js";
|
7
7
|
import { assertEquals } from "../assert_equals-DSbWqCm3.js";
|
8
8
|
import "../assert-MZs1qjMx.js";
|
9
9
|
import "../assert_instance_of-DHz7EHNU.js";
|
10
|
-
import "../
|
11
|
-
import
|
12
|
-
import "../
|
13
|
-
import { test } from "../testing-
|
10
|
+
import "../lookup-DBhAQ6QY.js";
|
11
|
+
import "../semver-DK6KJMYH.js";
|
12
|
+
import { getNodeInfo, parseInboundService, parseNodeInfo, parseOutboundService, parseProtocol, parseServices, parseSoftware, parseUsage } from "../client-CIZTyPSt.js";
|
13
|
+
import { test } from "../testing-DXNsKEUF.js";
|
14
14
|
import "../std__assert-X-_kMxKM.js";
|
15
15
|
import "../assert_rejects-DiIiJbZn.js";
|
16
16
|
import "../assert_is_error-BPGph1Jx.js";
|
17
17
|
import "../assert_not_equals-f3m3epl3.js";
|
18
18
|
import "../assert_throws-BOO88avQ.js";
|
19
|
-
import { esm_default } from "../esm-
|
19
|
+
import { esm_default } from "../esm-MoRVnXvZ.js";
|
20
20
|
|
21
21
|
//#region src/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-tE5Z3ILc.js";
|
7
7
|
import { assertEquals } from "../assert_equals-DSbWqCm3.js";
|
8
8
|
import "../assert-MZs1qjMx.js";
|
9
9
|
import "../assert_instance_of-DHz7EHNU.js";
|
10
10
|
import { MemoryKvStore } from "../kv-CRZrzyXm.js";
|
11
|
-
import { createFederation, handleNodeInfo, handleNodeInfoJrd } from "../middleware-
|
12
|
-
import
|
13
|
-
import "../
|
14
|
-
import "../
|
15
|
-
import "../types-
|
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
|
11
|
+
import { createFederation, handleNodeInfo, handleNodeInfoJrd } from "../middleware-CnIxIUi-.js";
|
12
|
+
import "../lookup-DBhAQ6QY.js";
|
13
|
+
import { parseSemVer } from "../semver-DK6KJMYH.js";
|
14
|
+
import "../client-CIZTyPSt.js";
|
15
|
+
import "../types-DEOFv30y.js";
|
16
|
+
import "../actor-D5NEKs-H.js";
|
17
|
+
import "../key-AIK2WmqL.js";
|
18
|
+
import "../http-BG0qOzZu.js";
|
19
|
+
import "../authdocloader-C80Qh6nT.js";
|
20
|
+
import "../ld-CtIXhBh6.js";
|
21
|
+
import "../owner-DLlle-l2.js";
|
22
|
+
import "../proof-NP4r1NS8.js";
|
23
|
+
import "../inbox-D-bc5rI-.js";
|
24
|
+
import "../builder--4Abku0B.js";
|
25
25
|
import "../collection-CSzG2j1P.js";
|
26
|
-
import "../keycache-
|
26
|
+
import "../keycache-DHnsRk0Y.js";
|
27
27
|
import "../retry-D4GJ670a.js";
|
28
|
-
import "../send-
|
29
|
-
import { createRequestContext, test } from "../testing-
|
28
|
+
import "../send-BtU_Xnfq.js";
|
29
|
+
import { createRequestContext, test } from "../testing-DXNsKEUF.js";
|
30
30
|
import "../std__assert-X-_kMxKM.js";
|
31
31
|
import "../assert_rejects-DiIiJbZn.js";
|
32
32
|
import "../assert_is_error-BPGph1Jx.js";
|
package/dist/nodeinfo/mod.d.ts
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import { Temporal } from "@js-temporal/polyfill";
|
2
2
|
import { URLPattern } from "urlpattern-polyfill";
|
3
|
-
import "../kv-
|
4
|
-
import "../docloader-
|
5
|
-
import { GetNodeInfoOptions, InboundService, JsonValue, NodeInfo, OutboundService, ParseNodeInfoOptions, Protocol, SemVer, Services, Software, Usage, formatSemVer, getNodeInfo, nodeInfoToJson, parseNodeInfo, parseSemVer } from "../client-
|
6
|
-
import "../mod-
|
3
|
+
import "../kv-Nozgty7f.js";
|
4
|
+
import "../docloader-ClLAKEYo.js";
|
5
|
+
import { GetNodeInfoOptions, InboundService, JsonValue, NodeInfo, OutboundService, ParseNodeInfoOptions, Protocol, SemVer, Services, Software, Usage, formatSemVer, getNodeInfo, nodeInfoToJson, parseNodeInfo, parseSemVer } from "../client-BLIpt8C0.js";
|
6
|
+
import "../mod-8L0uotkD.js";
|
7
7
|
export { GetNodeInfoOptions, InboundService, JsonValue, NodeInfo, OutboundService, ParseNodeInfoOptions, Protocol, SemVer, Services, Software, Usage, formatSemVer, getNodeInfo, nodeInfoToJson, parseNodeInfo, parseSemVer };
|