@fedify/fedify 1.6.1-dev.877 → 1.6.1-dev.881
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-DuRbv_Bj.js → actor-BRIxlOTx.js} +3 -3
- package/dist/{actor-BHqS2e3c.js → actor-BidJp8n0.js} +180 -180
- package/dist/{actor-f67C7yQD.d.ts → actor-tT_B0pDn.d.ts} +5 -8
- package/dist/{assert-Dv75vaGI.js → assert-YJk-1DlZ.js} +1 -1
- package/dist/{assert_equals-ClvzlhZu.js → assert_equals-Dnj7ejjL.js} +16 -9
- package/dist/{assert_instance_of--9UCVKsi.js → assert_instance_of-DBIoG5k7.js} +1 -1
- package/dist/{assert_is_error-D162gXcM.js → assert_is_error-jyzqjHud.js} +1 -1
- package/dist/{assert_not_equals-Cyf5m9Ke.js → assert_not_equals-wx-SRs4i.js} +1 -1
- package/dist/{assert_rejects-FOHCtlD2.js → assert_rejects-BZjUwo62.js} +2 -2
- package/dist/{assert_throws-CRfQJvVx.js → assert_throws-gBPv3v2V.js} +2 -2
- package/dist/{authdocloader-BeFl0PFE.js → authdocloader-BRs7flug.js} +4 -4
- package/dist/{authdocloader-Bl6g1FVm.js → authdocloader-CG3GTtW2.js} +3 -3
- package/dist/{builder-DY8xBedN.js → builder-DtoRVfyu.js} +3 -3
- package/dist/{client-DcBIDSv0.js → client-CQ24CTCb.js} +1 -1
- package/dist/{client-Dw1pCSIt.d.ts → client-Cd552pKL.d.ts} +6 -9
- package/dist/{collection-QaGK9TVn.js → collection-Dfb0TPno.js} +1 -1
- package/dist/compat/mod.d.ts +12 -12
- package/dist/compat/mod.js +1 -1
- package/dist/compat/transformers.test.js +21 -21
- package/dist/{context-DBM4y1xF.d.ts → context-DRhhOsMk.d.ts} +12 -28
- package/dist/{context-BDE1HkwS.js → context-Dub61h2m.js} +2 -2
- package/dist/{docloader-YfB_ekLA.js → docloader-BzbamfL0.js} +1 -1
- package/dist/{docloader-D8aaMXMS.js → docloader-CjMOaZ0w.js} +1 -1
- package/dist/{docloader-DTRsVZPo.d.ts → docloader-DlUDOVSe.d.ts} +4 -7
- package/dist/{esm-BxIKwi-M.js → esm-Btx3E8og.js} +1 -1
- package/dist/federation/builder.test.js +12 -12
- package/dist/federation/collection.test.js +9 -9
- package/dist/federation/handler.test.js +28 -28
- package/dist/federation/inbox.test.js +6 -6
- package/dist/federation/keycache.test.js +6 -6
- package/dist/federation/kv.test.js +8 -8
- package/dist/federation/middleware.test.js +28 -28
- package/dist/federation/mod.d.ts +11 -11
- package/dist/federation/mod.js +12 -12
- package/dist/federation/mq.test.js +9 -9
- package/dist/federation/retry.test.js +2 -2
- package/dist/federation/router.test.js +9 -9
- package/dist/federation/send.test.js +18 -18
- package/dist/{federation-Bmj7soSg.js → federation-3B6BDKCK.js} +1 -1
- package/dist/{hongminhee__deno-mock-fetch-DJKLj_H-.js → hongminhee__deno-mock-fetch-Az7fJGtg.js} +1 -1
- package/dist/{http-B0cOjwNh.js → http-B3Xedrzu.js} +12 -6
- package/dist/{http-CZyKN-rt.d.ts → http-BkUCISGt.d.ts} +6 -14
- package/dist/{http-Df-q_v_l.js → http-CV67UidJ.js} +12 -6
- package/dist/{inbox-CTtTAWQW.js → inbox-BoldQCGa.js} +4 -4
- package/dist/{key-yakqWjMR.js → key-D3Mc3n0F.js} +3 -3
- package/dist/{key-lg7Bamqg.js → key-DD4k9Ph4.js} +4 -4
- package/dist/{key-D66XeFWU.js → key-Dt894e0l.js} +2 -2
- package/dist/{key-CcDIn1xI.js → key-zqk3iQJM.js} +5 -5
- package/dist/{keycache-BNazIgsa.js → keycache-DXp-3NZn.js} +2 -2
- package/dist/{keys-sBaDMsit.js → keys-j3LZyq_M.js} +1 -1
- package/dist/{kv-BmsWxOQ2.d.ts → kv-p8sC8PTT.d.ts} +3 -7
- package/dist/{ld-DFhDZpVO.js → ld-BJz01zAZ.js} +4 -4
- package/dist/{lookup-1_LyYkq2.js → lookup-CNv4GGs7.js} +1 -1
- package/dist/{lookup-Zz0ToYnF.js → lookup-DTOPcLsZ.js} +1 -1
- package/dist/{lookup-B3yeXDFK.js → lookup-dfyiwjbB.js} +3 -3
- package/dist/{lookup-nlxO7x0u.d.ts → lookup-vJccIKCS.d.ts} +4 -8
- package/dist/{middleware-DfZ8KIdq.js → middleware-BXqSM2dw.js} +18 -18
- package/dist/{middleware-DORBFmeo.js → middleware-DB7wiPiW.js} +18 -18
- package/dist/middleware-HBJtiy_q.js +17 -0
- package/dist/middleware-ORyJDzKn.js +33 -0
- package/dist/{mod-iE_61Xjt.d.ts → mod-BTHfUeLo.d.ts} +2 -9
- package/dist/{mod-BUAWJ2pK.d.ts → mod-BUTm-sog.d.ts} +5 -9
- package/dist/{mod-CsYfI7YL.d.ts → mod-CgmTOt4z.d.ts} +3 -21
- package/dist/{mod-Bx6Du4Ct.d.ts → mod-DSPyncxx.d.ts} +5 -11
- package/dist/mod.d.ts +14 -14
- package/dist/mod.js +12 -12
- package/dist/{mq-Bue016Tz.d.ts → mq-nceTGCuc.d.ts} +3 -7
- package/dist/nodeinfo/client.test.js +11 -11
- package/dist/nodeinfo/handler.test.js +27 -27
- package/dist/nodeinfo/mod.d.ts +3 -3
- package/dist/nodeinfo/mod.js +2 -2
- package/dist/nodeinfo/semver.test.js +8 -8
- package/dist/nodeinfo/types.test.js +8 -8
- package/dist/{owner-C_Gw25Id.d.ts → owner-CbRc94FP.d.ts} +6 -9
- package/dist/{owner-B-x5wVW7.js → owner-DPR9iegf.js} +3 -3
- package/dist/{proof-Bt6oaSF6.js → proof-CIdBQp8W.js} +3 -3
- package/dist/{proof-DlVhAg_t.js → proof-DozAJu8u.js} +5 -5
- package/dist/runtime/authdocloader.test.js +17 -17
- package/dist/runtime/docloader.test.js +10 -10
- package/dist/runtime/key.test.js +13 -13
- package/dist/runtime/langstr.test.js +8 -8
- package/dist/runtime/mod.d.ts +5 -5
- package/dist/runtime/mod.js +6 -6
- package/dist/runtime/multibase/multibase.test.js +8 -8
- package/dist/runtime/url.test.js +4 -4
- package/dist/{send-CqqlfPUc.js → send-ZuWTBaWD.js} +3 -3
- package/dist/sig/http.test.js +16 -16
- package/dist/sig/key.test.js +14 -14
- package/dist/sig/ld.test.js +12 -12
- package/dist/sig/mod.d.ts +7 -7
- package/dist/sig/mod.js +6 -6
- package/dist/sig/owner.test.js +16 -16
- package/dist/sig/proof.test.js +15 -15
- package/dist/{std__assert-CaBUULmX.js → std__assert-CHXwj7zk.js} +1 -1
- package/dist/testing/docloader.test.js +8 -8
- package/dist/testing/mod.d.ts +0 -1
- package/dist/{transformers-jxj-4o2K.js → transformers-ghwJuzGY.js} +1 -1
- package/dist/{types-COsvFBcH.js → types-BkYhmwmv.js} +1 -1
- package/dist/vocab/actor.test.js +37 -37
- package/dist/vocab/lookup.test.js +13 -13
- package/dist/vocab/mod.d.ts +5 -5
- package/dist/vocab/mod.js +4 -4
- package/dist/vocab/type.test.js +3 -3
- package/dist/vocab/vocab.test.js +129 -132
- package/dist/{vocab-BlP2AeMB.js → vocab-CKuJcawO.js} +3 -3
- package/dist/{vocab-BXZLOG9E.js → vocab-D0LMe9FE.js} +178 -178
- package/dist/{vocab-C4bpdeio.d.ts → vocab-DSFLLLe6.d.ts} +2 -7
- package/dist/webfinger/handler.test.js +27 -27
- package/dist/webfinger/lookup.test.js +11 -11
- package/dist/webfinger/mod.d.ts +3 -3
- package/dist/webfinger/mod.js +2 -2
- package/dist/x/cfworkers.d.ts +2 -9
- package/dist/x/cfworkers.test.js +8 -8
- package/dist/x/hono.d.ts +11 -12
- package/dist/x/sveltekit.d.ts +11 -12
- package/package.json +2 -2
- package/dist/middleware-DnbfTDpa.js +0 -17
- package/dist/middleware-DoD5Iw7X.js +0 -33
@@ -1,14 +1,10 @@
|
|
1
1
|
import { Temporal } from "@js-temporal/polyfill";
|
2
2
|
import { URLPattern } from "urlpattern-polyfill";
|
3
|
-
import { GetUserAgentOptions } from "./docloader-
|
4
|
-
import { Application
|
3
|
+
import { GetUserAgentOptions } from "./docloader-DlUDOVSe.js";
|
4
|
+
import { Application, Group, Organization, Person, Service } from "./vocab-DSFLLLe6.js";
|
5
5
|
import { TracerProvider } from "@opentelemetry/api";
|
6
6
|
|
7
7
|
//#region vocab/actor.d.ts
|
8
|
-
/**
|
9
|
-
* Actor types are {@link Object} types that are capable of performing
|
10
|
-
* activities.
|
11
|
-
*/
|
12
8
|
/**
|
13
9
|
* Actor types are {@link Object} types that are capable of performing
|
14
10
|
* activities.
|
@@ -129,5 +125,6 @@ interface Recipient {
|
|
129
125
|
*/
|
130
126
|
sharedInbox: URL | null;
|
131
127
|
} | null;
|
132
|
-
}
|
133
|
-
|
128
|
+
}
|
129
|
+
//#endregion
|
130
|
+
export { Actor, ActorTypeName, GetActorHandleOptions, NormalizeActorHandleOptions, Recipient, getActorClassByTypeName, getActorHandle, getActorTypeName, isActor, normalizeActorHandle };
|
@@ -3,7 +3,7 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import { AssertionError } from "./assert_equals-
|
6
|
+
import { AssertionError } from "./assert_equals-Dnj7ejjL.js";
|
7
7
|
|
8
8
|
//#region node_modules/.pnpm/@jsr+std__assert@0.226.0/node_modules/@jsr/std__assert/assert.js
|
9
9
|
/**
|
@@ -53,7 +53,7 @@ function constructorsEqual(a, b) {
|
|
53
53
|
* equal({ foo: "bar" }, { foo: "baz" }); // Returns `false
|
54
54
|
* ```
|
55
55
|
*/ function equal(c, d) {
|
56
|
-
const seen = new Map();
|
56
|
+
const seen = /* @__PURE__ */ new Map();
|
57
57
|
return function compare(a, b) {
|
58
58
|
if (a && b && (a instanceof RegExp && b instanceof RegExp || a instanceof URL && b instanceof URL)) return String(a) === String(b);
|
59
59
|
if (a instanceof Date && b instanceof Date) {
|
@@ -105,7 +105,7 @@ function constructorsEqual(a, b) {
|
|
105
105
|
}
|
106
106
|
|
107
107
|
//#endregion
|
108
|
-
//#region node_modules/.pnpm/@jsr+std__internal@1.0.
|
108
|
+
//#region node_modules/.pnpm/@jsr+std__internal@1.0.8/node_modules/@jsr/std__internal/assertion_state.js
|
109
109
|
/**
|
110
110
|
* Check the test suite internal state
|
111
111
|
*
|
@@ -124,9 +124,16 @@ function constructorsEqual(a, b) {
|
|
124
124
|
assertionTriggered: false,
|
125
125
|
assertionTriggeredCount: 0
|
126
126
|
};
|
127
|
-
globalThis.addEventListener("unload", () => {
|
128
|
-
|
127
|
+
if (typeof globalThis?.addEventListener === "function") globalThis.addEventListener("unload", () => {
|
128
|
+
this.#ensureCleanedUp();
|
129
129
|
});
|
130
|
+
else if (typeof globalThis?.process?.on === "function") globalThis.process.on("exit", () => {
|
131
|
+
this.#ensureCleanedUp();
|
132
|
+
});
|
133
|
+
else console.warn("AssertionCounter cleanup step was not registered");
|
134
|
+
}
|
135
|
+
#ensureCleanedUp() {
|
136
|
+
if (this.#state.assertionCheck || this.#state.assertionCount !== void 0) throw new Error("AssertionCounter was not cleaned up: If tests are not otherwise failing, ensure `expect.hasAssertion` and `expect.assertions` are only run in bdd tests");
|
130
137
|
}
|
131
138
|
/**
|
132
139
|
* Get the number that through `expect.assertions` api set.
|
@@ -277,7 +284,7 @@ function constructorsEqual(a, b) {
|
|
277
284
|
const assertionState = new AssertionState();
|
278
285
|
|
279
286
|
//#endregion
|
280
|
-
//#region node_modules/.pnpm/@jsr+std__internal@1.0.
|
287
|
+
//#region node_modules/.pnpm/@jsr+std__internal@1.0.8/node_modules/@jsr/std__internal/styles.js
|
281
288
|
const { Deno } = globalThis;
|
282
289
|
const noColor = typeof Deno?.noColor === "boolean" ? Deno.noColor : false;
|
283
290
|
const enabled = !noColor;
|
@@ -444,7 +451,7 @@ const ANSI_PATTERN = new RegExp(["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-z
|
|
444
451
|
}
|
445
452
|
|
446
453
|
//#endregion
|
447
|
-
//#region node_modules/.pnpm/@jsr+std__internal@1.0.
|
454
|
+
//#region node_modules/.pnpm/@jsr+std__internal@1.0.8/node_modules/@jsr/std__internal/build_message.js
|
448
455
|
/**
|
449
456
|
* Colors the output of assertion diffs.
|
450
457
|
*
|
@@ -538,7 +545,7 @@ const ANSI_PATTERN = new RegExp(["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-z
|
|
538
545
|
}
|
539
546
|
|
540
547
|
//#endregion
|
541
|
-
//#region node_modules/.pnpm/@jsr+std__internal@1.0.
|
548
|
+
//#region node_modules/.pnpm/@jsr+std__internal@1.0.8/node_modules/@jsr/std__internal/diff.js
|
542
549
|
const REMOVED = 1;
|
543
550
|
const COMMON = 2;
|
544
551
|
const ADDED = 3;
|
@@ -807,7 +814,7 @@ const ADDED = 3;
|
|
807
814
|
}
|
808
815
|
|
809
816
|
//#endregion
|
810
|
-
//#region node_modules/.pnpm/@jsr+std__internal@1.0.
|
817
|
+
//#region node_modules/.pnpm/@jsr+std__internal@1.0.8/node_modules/@jsr/std__internal/diff_str.js
|
811
818
|
/**
|
812
819
|
* Unescape invisible characters.
|
813
820
|
*
|
@@ -948,7 +955,7 @@ const NON_WHITESPACE_REGEXP = /\S/;
|
|
948
955
|
}
|
949
956
|
|
950
957
|
//#endregion
|
951
|
-
//#region node_modules/.pnpm/@jsr+std__internal@1.0.
|
958
|
+
//#region node_modules/.pnpm/@jsr+std__internal@1.0.8/node_modules/@jsr/std__internal/format.js
|
952
959
|
/**
|
953
960
|
* Converts the input into a string. Objects, Sets and Maps are sorted so as to
|
954
961
|
* make tests less flaky.
|
@@ -3,7 +3,7 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import { AssertionError } from "./assert_equals-
|
6
|
+
import { AssertionError } from "./assert_equals-Dnj7ejjL.js";
|
7
7
|
|
8
8
|
//#region node_modules/.pnpm/@jsr+std__assert@0.226.0/node_modules/@jsr/std__assert/assert_instance_of.js
|
9
9
|
/**
|
@@ -3,7 +3,7 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import { AssertionError, stripAnsiCode } from "./assert_equals-
|
6
|
+
import { AssertionError, stripAnsiCode } from "./assert_equals-Dnj7ejjL.js";
|
7
7
|
|
8
8
|
//#region node_modules/.pnpm/@jsr+std__assert@0.226.0/node_modules/@jsr/std__assert/assert_is_error.js
|
9
9
|
/**
|
@@ -3,7 +3,7 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import { AssertionError, equal } from "./assert_equals-
|
6
|
+
import { AssertionError, equal } from "./assert_equals-Dnj7ejjL.js";
|
7
7
|
|
8
8
|
//#region node_modules/.pnpm/@jsr+std__assert@0.226.0/node_modules/@jsr/std__assert/assert_not_equals.js
|
9
9
|
/**
|
@@ -3,8 +3,8 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import { AssertionError } from "./assert_equals-
|
7
|
-
import { assertIsError } from "./assert_is_error-
|
6
|
+
import { AssertionError } from "./assert_equals-Dnj7ejjL.js";
|
7
|
+
import { assertIsError } from "./assert_is_error-jyzqjHud.js";
|
8
8
|
|
9
9
|
//#region node_modules/.pnpm/@jsr+std__assert@0.226.0/node_modules/@jsr/std__assert/assert_false.js
|
10
10
|
/**
|
@@ -3,8 +3,8 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import { AssertionError } from "./assert_equals-
|
7
|
-
import { assertIsError } from "./assert_is_error-
|
6
|
+
import { AssertionError } from "./assert_equals-Dnj7ejjL.js";
|
7
|
+
import { assertIsError } from "./assert_is_error-jyzqjHud.js";
|
8
8
|
|
9
9
|
//#region node_modules/.pnpm/@jsr+std__assert@0.226.0/node_modules/@jsr/std__assert/assert_throws.js
|
10
10
|
function assertThrows(fn, errorClassOrMsg, msgIncludesOrMsg, msg) {
|
@@ -2,9 +2,9 @@
|
|
2
2
|
import { Temporal } from "@js-temporal/polyfill";
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
|
5
|
-
import { UrlError, createRequest, getRemoteDocument, logRequest, validatePublicUrl } from "./docloader-
|
6
|
-
import { validateCryptoKey } from "./key-
|
7
|
-
import { doubleKnock } from "./http-
|
5
|
+
import { UrlError, createRequest, getRemoteDocument, logRequest, validatePublicUrl } from "./docloader-CjMOaZ0w.js";
|
6
|
+
import { validateCryptoKey } from "./key-Dt894e0l.js";
|
7
|
+
import { doubleKnock } from "./http-CV67UidJ.js";
|
8
8
|
import { getLogger } from "@logtape/logtape";
|
9
9
|
|
10
10
|
//#region runtime/authdocloader.ts
|
@@ -48,4 +48,4 @@ function getAuthenticatedDocumentLoader(identity, { allowPrivateAddress, userAge
|
|
48
48
|
}
|
49
49
|
|
50
50
|
//#endregion
|
51
|
-
export { getAuthenticatedDocumentLoader
|
51
|
+
export { getAuthenticatedDocumentLoader };
|
@@ -3,10 +3,10 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import { createRequest, getRemoteDocument, logRequest } from "./docloader-
|
6
|
+
import { createRequest, getRemoteDocument, logRequest } from "./docloader-BzbamfL0.js";
|
7
7
|
import { UrlError, validatePublicUrl } from "./url-kTAI6_KP.js";
|
8
|
-
import { validateCryptoKey } from "./key-
|
9
|
-
import { doubleKnock } from "./http-
|
8
|
+
import { validateCryptoKey } from "./key-D3Mc3n0F.js";
|
9
|
+
import { doubleKnock } from "./http-B3Xedrzu.js";
|
10
10
|
import { getLogger } from "@logtape/logtape";
|
11
11
|
|
12
12
|
//#region runtime/authdocloader.ts
|
@@ -3,10 +3,10 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import { deno_default } from "./docloader-
|
6
|
+
import { deno_default } from "./docloader-BzbamfL0.js";
|
7
7
|
import { Router, RouterError } from "./router-D_aVZZUc.js";
|
8
8
|
import { getTypeId } from "./type-D2s5lmbZ.js";
|
9
|
-
import { InboxListenerSet } from "./inbox-
|
9
|
+
import { InboxListenerSet } from "./inbox-BoldQCGa.js";
|
10
10
|
import { getLogger } from "@logtape/logtape";
|
11
11
|
import { SpanKind, SpanStatusCode, trace } from "@opentelemetry/api";
|
12
12
|
|
@@ -34,7 +34,7 @@ var FederationBuilderImpl = class {
|
|
34
34
|
this.objectTypeIds = {};
|
35
35
|
}
|
36
36
|
async build(options) {
|
37
|
-
const { FederationImpl } = await import("./middleware-
|
37
|
+
const { FederationImpl } = await import("./middleware-ORyJDzKn.js");
|
38
38
|
const f = new FederationImpl(options);
|
39
39
|
const trailingSlashInsensitiveValue = f.router.trailingSlashInsensitive;
|
40
40
|
f.router = this.router.clone();
|
@@ -3,7 +3,7 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import { getUserAgent } from "./docloader-
|
6
|
+
import { getUserAgent } from "./docloader-BzbamfL0.js";
|
7
7
|
import { parseSemVer } from "./semver-CbbIgUsa.js";
|
8
8
|
import { getLogger } from "@logtape/logtape";
|
9
9
|
|
@@ -1,12 +1,8 @@
|
|
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-DlUDOVSe.js";
|
4
4
|
|
5
5
|
//#region nodeinfo/semver.d.ts
|
6
|
-
/**
|
7
|
-
* A SemVer object parsed into its constituent parts.
|
8
|
-
* @since 1.2.0
|
9
|
-
*/
|
10
6
|
/**
|
11
7
|
* A SemVer object parsed into its constituent parts.
|
12
8
|
* @since 1.2.0
|
@@ -75,7 +71,8 @@ declare function parseSemVer(value: string): SemVer;
|
|
75
71
|
* @returns The string representation of a semantic version.
|
76
72
|
* @since 1.2.0
|
77
73
|
*/
|
78
|
-
declare function formatSemVer(version: SemVer): string;
|
74
|
+
declare function formatSemVer(version: SemVer): string;
|
75
|
+
//#endregion
|
79
76
|
//#region nodeinfo/types.d.ts
|
80
77
|
/**
|
81
78
|
* The type of the result of parsing JSON.
|
@@ -207,7 +204,8 @@ interface Usage {
|
|
207
204
|
* @returns The JSON value that complies with the NodeInfo schema.
|
208
205
|
* @throws {TypeError} If the {@link NodeInfo} object is invalid.
|
209
206
|
*/
|
210
|
-
declare function nodeInfoToJson(nodeInfo: NodeInfo): JsonValue;
|
207
|
+
declare function nodeInfoToJson(nodeInfo: NodeInfo): JsonValue;
|
208
|
+
//#endregion
|
211
209
|
//#region nodeinfo/client.d.ts
|
212
210
|
/**
|
213
211
|
* Options for {@link getNodeInfo} function.
|
@@ -294,6 +292,5 @@ interface ParseNodeInfoOptions {
|
|
294
292
|
* @since 1.2.0
|
295
293
|
*/
|
296
294
|
declare function parseNodeInfo(data: unknown, options?: ParseNodeInfoOptions): NodeInfo | null;
|
297
|
-
|
298
295
|
//#endregion
|
299
|
-
export { GetNodeInfoOptions, InboundService, JsonValue, NodeInfo, OutboundService, ParseNodeInfoOptions, Protocol, SemVer, Services, Software, Usage, formatSemVer
|
296
|
+
export { GetNodeInfoOptions, InboundService, JsonValue, NodeInfo, OutboundService, ParseNodeInfoOptions, Protocol, SemVer, Services, Software, Usage, formatSemVer, getNodeInfo, nodeInfoToJson, parseNodeInfo, parseSemVer };
|
@@ -14,7 +14,7 @@ import { encodeHex } from "byte-encodings/hex";
|
|
14
14
|
* @returns The digest.
|
15
15
|
*/
|
16
16
|
async function digest(uris) {
|
17
|
-
const processed = new Set();
|
17
|
+
const processed = /* @__PURE__ */ new Set();
|
18
18
|
const encoder = new TextEncoder();
|
19
19
|
const result = new Uint8Array(32);
|
20
20
|
for (const uri of uris) {
|
package/dist/compat/mod.d.ts
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
import { Temporal } from "@js-temporal/polyfill";
|
2
2
|
import { URLPattern } from "urlpattern-polyfill";
|
3
|
-
import "../kv-
|
4
|
-
import "../docloader-
|
5
|
-
import "../client-
|
6
|
-
import "../vocab-
|
7
|
-
import "../actor-
|
8
|
-
import "../http-
|
9
|
-
import "../owner-
|
10
|
-
import "../mod-
|
11
|
-
import "../lookup-
|
12
|
-
import { ActivityTransformer } from "../context-
|
13
|
-
import "../mq-
|
14
|
-
import { actorDehydrator, autoIdAssigner, getDefaultActivityTransformers } from "../mod-
|
3
|
+
import "../kv-p8sC8PTT.js";
|
4
|
+
import "../docloader-DlUDOVSe.js";
|
5
|
+
import "../client-Cd552pKL.js";
|
6
|
+
import "../vocab-DSFLLLe6.js";
|
7
|
+
import "../actor-tT_B0pDn.js";
|
8
|
+
import "../http-BkUCISGt.js";
|
9
|
+
import "../owner-CbRc94FP.js";
|
10
|
+
import "../mod-DSPyncxx.js";
|
11
|
+
import "../lookup-vJccIKCS.js";
|
12
|
+
import { ActivityTransformer } from "../context-DRhhOsMk.js";
|
13
|
+
import "../mq-nceTGCuc.js";
|
14
|
+
import { actorDehydrator, autoIdAssigner, getDefaultActivityTransformers } from "../mod-CgmTOt4z.js";
|
15
15
|
export { ActivityTransformer, actorDehydrator, autoIdAssigner, getDefaultActivityTransformers };
|
package/dist/compat/mod.js
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
import { Temporal } from "@js-temporal/polyfill";
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
|
5
|
-
import { actorDehydrator
|
5
|
+
import { actorDehydrator, autoIdAssigner, getDefaultActivityTransformers } from "../transformers-ghwJuzGY.js";
|
6
6
|
import "../compat-Bb5myD13.js";
|
7
7
|
|
8
8
|
export { actorDehydrator, autoIdAssigner, getDefaultActivityTransformers };
|
@@ -3,36 +3,36 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import { assertEquals } from "../assert_equals-
|
7
|
-
import { assert } from "../assert-
|
8
|
-
import { assertInstanceOf } from "../assert_instance_of
|
6
|
+
import { assertEquals } from "../assert_equals-Dnj7ejjL.js";
|
7
|
+
import { assert } from "../assert-YJk-1DlZ.js";
|
8
|
+
import { assertInstanceOf } from "../assert_instance_of-DBIoG5k7.js";
|
9
9
|
import { MemoryKvStore } from "../kv-DohFOP2C.js";
|
10
|
-
import { FederationImpl, actorDehydrator, autoIdAssigner } from "../middleware-
|
11
|
-
import "../docloader-
|
10
|
+
import { FederationImpl, actorDehydrator, autoIdAssigner } from "../middleware-BXqSM2dw.js";
|
11
|
+
import "../docloader-BzbamfL0.js";
|
12
12
|
import "../url-kTAI6_KP.js";
|
13
13
|
import "../semver-CbbIgUsa.js";
|
14
|
-
import "../client-
|
14
|
+
import "../client-CQ24CTCb.js";
|
15
15
|
import "../router-D_aVZZUc.js";
|
16
16
|
import "../types-CqoqWDkp.js";
|
17
17
|
import "../multibase-DeCHcK8L.js";
|
18
|
-
import { Follow, Person } from "../vocab-
|
18
|
+
import { Follow, Person } from "../vocab-D0LMe9FE.js";
|
19
19
|
import "../langstr-DbWheeIS.js";
|
20
|
-
import "../lookup-
|
20
|
+
import "../lookup-CNv4GGs7.js";
|
21
21
|
import "../type-D2s5lmbZ.js";
|
22
|
-
import "../actor-
|
23
|
-
import "../key-
|
24
|
-
import "../http-
|
25
|
-
import "../authdocloader-
|
26
|
-
import "../ld-
|
27
|
-
import "../owner-
|
28
|
-
import "../proof-
|
29
|
-
import "../lookup-
|
30
|
-
import "../inbox-
|
31
|
-
import "../builder-
|
32
|
-
import "../collection-
|
33
|
-
import "../keycache-
|
22
|
+
import "../actor-BRIxlOTx.js";
|
23
|
+
import "../key-D3Mc3n0F.js";
|
24
|
+
import "../http-B3Xedrzu.js";
|
25
|
+
import "../authdocloader-CG3GTtW2.js";
|
26
|
+
import "../ld-BJz01zAZ.js";
|
27
|
+
import "../owner-DPR9iegf.js";
|
28
|
+
import "../proof-CIdBQp8W.js";
|
29
|
+
import "../lookup-dfyiwjbB.js";
|
30
|
+
import "../inbox-BoldQCGa.js";
|
31
|
+
import "../builder-DtoRVfyu.js";
|
32
|
+
import "../collection-Dfb0TPno.js";
|
33
|
+
import "../keycache-DXp-3NZn.js";
|
34
34
|
import "../retry-BiIhZWgD.js";
|
35
|
-
import "../send-
|
35
|
+
import "../send-ZuWTBaWD.js";
|
36
36
|
import { test } from "../testing-jcGLO9Lp.js";
|
37
37
|
|
38
38
|
//#region compat/transformers.test.ts
|
@@ -1,27 +1,22 @@
|
|
1
1
|
import { Temporal } from "@js-temporal/polyfill";
|
2
2
|
import { URLPattern } from "urlpattern-polyfill";
|
3
|
-
import { KvKey, KvStore } from "./kv-
|
4
|
-
import { AuthenticatedDocumentLoaderFactory, DocumentLoader, DocumentLoaderFactory, GetUserAgentOptions } from "./docloader-
|
5
|
-
import { GetNodeInfoOptions, JsonValue, NodeInfo } from "./client-
|
6
|
-
import { Activity
|
7
|
-
import { Actor, Recipient } from "./actor-
|
8
|
-
import { GetKeyOwnerOptions } from "./owner-
|
9
|
-
import { LookupObjectOptions, TraverseCollectionOptions } from "./mod-
|
10
|
-
import { LookupWebFingerOptions, ResourceDescriptor } from "./lookup-
|
11
|
-
import { MessageQueue } from "./mq-
|
3
|
+
import { KvKey, KvStore } from "./kv-p8sC8PTT.js";
|
4
|
+
import { AuthenticatedDocumentLoaderFactory, DocumentLoader, DocumentLoaderFactory, GetUserAgentOptions } from "./docloader-DlUDOVSe.js";
|
5
|
+
import { GetNodeInfoOptions, JsonValue, NodeInfo } from "./client-Cd552pKL.js";
|
6
|
+
import { Activity, Collection, CryptographicKey, Hashtag, Link, Multikey, Object as Object$1 } from "./vocab-DSFLLLe6.js";
|
7
|
+
import { Actor, Recipient } from "./actor-tT_B0pDn.js";
|
8
|
+
import { GetKeyOwnerOptions } from "./owner-CbRc94FP.js";
|
9
|
+
import { LookupObjectOptions, TraverseCollectionOptions } from "./mod-DSPyncxx.js";
|
10
|
+
import { LookupWebFingerOptions, ResourceDescriptor } from "./lookup-vJccIKCS.js";
|
11
|
+
import { MessageQueue } from "./mq-nceTGCuc.js";
|
12
12
|
import { Span, TracerProvider } from "@opentelemetry/api";
|
13
13
|
|
14
14
|
//#region compat/types.d.ts
|
15
|
-
/**
|
16
|
-
* A function that transforms an activity object.
|
17
|
-
* @since 1.4.0
|
18
|
-
*/
|
19
15
|
/**
|
20
16
|
* A function that transforms an activity object.
|
21
17
|
* @since 1.4.0
|
22
18
|
*/
|
23
19
|
type ActivityTransformer<TContextData> = (activity: Activity, context: Context<TContextData>) => Activity;
|
24
|
-
|
25
20
|
//#endregion
|
26
21
|
//#region federation/collection.d.ts
|
27
22
|
/**
|
@@ -50,7 +45,6 @@ declare function digest(uris: Iterable<string | URL>): Promise<Uint8Array>;
|
|
50
45
|
* @returns The header content.
|
51
46
|
*/
|
52
47
|
declare function buildCollectionSynchronizationHeader(collectionId: string | URL, actorIds: Iterable<string | URL>): Promise<string>;
|
53
|
-
|
54
48
|
//#endregion
|
55
49
|
//#region federation/send.d.ts
|
56
50
|
/**
|
@@ -67,12 +61,11 @@ interface SenderKeyPair {
|
|
67
61
|
*/
|
68
62
|
keyId: URL;
|
69
63
|
}
|
70
|
-
|
71
|
-
//#endregion
|
72
|
-
//#region federation/callback.d.ts
|
73
64
|
/**
|
74
65
|
* Parameters for {@link sendActivity}.
|
75
66
|
*/
|
67
|
+
//#endregion
|
68
|
+
//#region federation/callback.d.ts
|
76
69
|
/**
|
77
70
|
* A callback that dispatches a {@link NodeInfo} object.
|
78
71
|
*
|
@@ -266,7 +259,6 @@ type AuthorizePredicate<TContextData> = (context: RequestContext<TContextData>,
|
|
266
259
|
* @since 0.7.0
|
267
260
|
*/
|
268
261
|
type ObjectAuthorizePredicate<TContextData, TParam extends string> = (context: RequestContext<TContextData>, values: Record<TParam, string>, signedKey: CryptographicKey | null, signedKeyOwner: Actor | null) => boolean | Promise<boolean>;
|
269
|
-
|
270
262
|
//#endregion
|
271
263
|
//#region federation/handler.d.ts
|
272
264
|
/**
|
@@ -299,7 +291,6 @@ declare function respondWithObject(object: Object$1, options?: RespondWithObject
|
|
299
291
|
* @since 0.3.0
|
300
292
|
*/
|
301
293
|
declare function respondWithObjectIfAcceptable(object: Object$1, request: Request, options?: RespondWithObjectOptions): Promise<Response | null>;
|
302
|
-
|
303
294
|
//#endregion
|
304
295
|
//#region federation/router.d.ts
|
305
296
|
/**
|
@@ -385,7 +376,6 @@ declare class RouterError extends Error {
|
|
385
376
|
*/
|
386
377
|
constructor(message: string);
|
387
378
|
}
|
388
|
-
|
389
379
|
//#endregion
|
390
380
|
//#region federation/builder.d.ts
|
391
381
|
/**
|
@@ -394,7 +384,6 @@ declare class RouterError extends Error {
|
|
394
384
|
* @since 1.6.0
|
395
385
|
*/
|
396
386
|
declare function createFederationBuilder<TContextData>(): FederationBuilder<TContextData>;
|
397
|
-
|
398
387
|
//#endregion
|
399
388
|
//#region federation/queue.d.ts
|
400
389
|
interface SenderKeyJwkPair {
|
@@ -451,7 +440,6 @@ interface InboxMessage {
|
|
451
440
|
identifier: string | null;
|
452
441
|
traceContext: Record<string, string>;
|
453
442
|
}
|
454
|
-
|
455
443
|
//#endregion
|
456
444
|
//#region federation/retry.d.ts
|
457
445
|
/**
|
@@ -516,7 +504,6 @@ interface CreateExponentialBackoffPolicyOptions {
|
|
516
504
|
* @since 0.12.0
|
517
505
|
*/
|
518
506
|
declare function createExponentialBackoffPolicy(options?: CreateExponentialBackoffPolicyOptions): RetryPolicy;
|
519
|
-
|
520
507
|
//#endregion
|
521
508
|
//#region federation/middleware.d.ts
|
522
509
|
/**
|
@@ -604,7 +591,6 @@ interface FederationOrigin {
|
|
604
591
|
* @since 0.10.0
|
605
592
|
*/
|
606
593
|
declare function createFederation<TContextData>(options: CreateFederationOptions<TContextData>): Federation<TContextData>;
|
607
|
-
|
608
594
|
//#endregion
|
609
595
|
//#region federation/federation.d.ts
|
610
596
|
/**
|
@@ -1289,7 +1275,6 @@ interface FederationFetchOptions<TContextData> {
|
|
1289
1275
|
*/
|
1290
1276
|
onUnauthorized?: (request: Request) => Response | Promise<Response>;
|
1291
1277
|
}
|
1292
|
-
|
1293
1278
|
//#endregion
|
1294
1279
|
//#region federation/context.d.ts
|
1295
1280
|
/**
|
@@ -2029,6 +2014,5 @@ interface ActorKeyPair extends CryptoKeyPair {
|
|
2029
2014
|
*/
|
2030
2015
|
multikey: Multikey;
|
2031
2016
|
}
|
2032
|
-
|
2033
2017
|
//#endregion
|
2034
|
-
export { ActivityTransformer, ActorAliasMapper, ActorCallbackSetters, ActorDispatcher, ActorHandleMapper, ActorKeyPair, ActorKeyPairsDispatcher, AuthorizePredicate, CollectionCallbackSetters, CollectionCounter, CollectionCursor, CollectionDispatcher, Context, CreateExponentialBackoffPolicyOptions, CreateFederationOptions, Federatable, Federation, FederationBuilder, FederationFetchOptions, FederationKvPrefixes, FederationOptions, FederationOrigin, FederationQueueOptions, FederationStartQueueOptions, ForwardActivityOptions, GetSignedKeyOptions, InboxContext, InboxErrorHandler, InboxListener, InboxListenerSetters, Message, NodeInfoDispatcher, ObjectAuthorizePredicate, ObjectCallbackSetters, ObjectDispatcher, OutboxErrorHandler, PageItems, ParseUriResult, RequestContext, RespondWithObjectOptions, RetryContext, RetryPolicy, RouteActivityOptions, Router
|
2018
|
+
export { ActivityTransformer, ActorAliasMapper, ActorCallbackSetters, ActorDispatcher, ActorHandleMapper, ActorKeyPair, ActorKeyPairsDispatcher, AuthorizePredicate, CollectionCallbackSetters, CollectionCounter, CollectionCursor, CollectionDispatcher, Context, CreateExponentialBackoffPolicyOptions, CreateFederationOptions, Federatable, Federation, FederationBuilder, FederationFetchOptions, FederationKvPrefixes, FederationOptions, FederationOrigin, FederationQueueOptions, FederationStartQueueOptions, ForwardActivityOptions, GetSignedKeyOptions, InboxContext, InboxErrorHandler, InboxListener, InboxListenerSetters, Message, NodeInfoDispatcher, ObjectAuthorizePredicate, ObjectCallbackSetters, ObjectDispatcher, OutboxErrorHandler, PageItems, ParseUriResult, RequestContext, RespondWithObjectOptions, RetryContext, RetryPolicy, RouteActivityOptions, Router, RouterError, RouterOptions, RouterRouteResult, SendActivityOptions, SendActivityOptionsForCollection, SenderKeyPair, SharedInboxKeyDispatcher, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable };
|
@@ -4,8 +4,8 @@
|
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
6
|
import { RouterError } from "./router-D_aVZZUc.js";
|
7
|
-
import { lookupWebFinger } from "./lookup-
|
8
|
-
import { lookupObject, traverseCollection } from "./lookup-
|
7
|
+
import { lookupWebFinger } from "./lookup-CNv4GGs7.js";
|
8
|
+
import { lookupObject, traverseCollection } from "./lookup-dfyiwjbB.js";
|
9
9
|
import { mockDocumentLoader } from "./docloader-09nVWLAZ.js";
|
10
10
|
import { trace } from "@opentelemetry/api";
|
11
11
|
|
@@ -1,12 +1,8 @@
|
|
1
1
|
import { Temporal } from "@js-temporal/polyfill";
|
2
2
|
import { URLPattern } from "urlpattern-polyfill";
|
3
|
-
import { KvKey, KvStore } from "./kv-
|
3
|
+
import { KvKey, KvStore } from "./kv-p8sC8PTT.js";
|
4
4
|
|
5
5
|
//#region runtime/docloader.d.ts
|
6
|
-
/**
|
7
|
-
* A remote JSON-LD document and its context fetched by
|
8
|
-
* a {@link DocumentLoader}.
|
9
|
-
*/
|
10
6
|
/**
|
11
7
|
* A remote JSON-LD document and its context fetched by
|
12
8
|
* a {@link DocumentLoader}.
|
@@ -207,5 +203,6 @@ interface GetUserAgentOptions {
|
|
207
203
|
declare function getUserAgent({
|
208
204
|
software,
|
209
205
|
url
|
210
|
-
}?: GetUserAgentOptions): string;
|
211
|
-
|
206
|
+
}?: GetUserAgentOptions): string;
|
207
|
+
//#endregion
|
208
|
+
export { AuthenticatedDocumentLoaderFactory, DocumentLoader, DocumentLoaderFactory, DocumentLoaderFactoryOptions, FetchError, GetDocumentLoaderOptions, GetUserAgentOptions, KvCacheParameters, RemoteDocument, fetchDocumentLoader, getDocumentLoader, getUserAgent, kvCache };
|
@@ -784,7 +784,7 @@ var Route = class {
|
|
784
784
|
_a.registeredMatchers.push(matcher);
|
785
785
|
}
|
786
786
|
};
|
787
|
-
_a = Route, _Route_responseSubscriptions = new WeakMap(), _Route_instances = new WeakSet(), _Route_validate = function _Route_validate$1() {
|
787
|
+
_a = Route, _Route_responseSubscriptions = /* @__PURE__ */ new WeakMap(), _Route_instances = /* @__PURE__ */ new WeakSet(), _Route_validate = function _Route_validate$1() {
|
788
788
|
if (["matched", "unmatched"].includes(this.config.name)) throw new Error(`fetch-mock: Routes cannot use the reserved name \`${this.config.name}\``);
|
789
789
|
if (!("response" in this.config)) throw new Error("fetch-mock: Each route must define a response");
|
790
790
|
if (!_a.registeredMatchers.some(({ name }) => name in this.config)) throw new Error("fetch-mock: Each route must specify some criteria for matching calls to fetch. To match all calls use '*'");
|
@@ -3,26 +3,26 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import { assertEquals } from "../assert_equals-
|
7
|
-
import "../assert-
|
8
|
-
import "../assert_instance_of
|
6
|
+
import { assertEquals } from "../assert_equals-Dnj7ejjL.js";
|
7
|
+
import "../assert-YJk-1DlZ.js";
|
8
|
+
import "../assert_instance_of-DBIoG5k7.js";
|
9
9
|
import { MemoryKvStore } from "../kv-DohFOP2C.js";
|
10
|
-
import "../docloader-
|
10
|
+
import "../docloader-BzbamfL0.js";
|
11
11
|
import "../url-kTAI6_KP.js";
|
12
12
|
import { parseSemVer } from "../semver-CbbIgUsa.js";
|
13
13
|
import "../router-D_aVZZUc.js";
|
14
14
|
import "../multibase-DeCHcK8L.js";
|
15
|
-
import { Activity, Note, Person } from "../vocab-
|
15
|
+
import { Activity, Note, Person } from "../vocab-D0LMe9FE.js";
|
16
16
|
import "../langstr-DbWheeIS.js";
|
17
17
|
import "../type-D2s5lmbZ.js";
|
18
|
-
import "../inbox-
|
19
|
-
import { createFederationBuilder } from "../builder-
|
18
|
+
import "../inbox-BoldQCGa.js";
|
19
|
+
import { createFederationBuilder } from "../builder-DtoRVfyu.js";
|
20
20
|
import { test } from "../testing-jcGLO9Lp.js";
|
21
|
-
import { assertExists } from "../std__assert-
|
22
|
-
import "../assert_rejects-
|
23
|
-
import "../assert_is_error-
|
24
|
-
import "../assert_not_equals-
|
25
|
-
import "../assert_throws-
|
21
|
+
import { assertExists } from "../std__assert-CHXwj7zk.js";
|
22
|
+
import "../assert_rejects-BZjUwo62.js";
|
23
|
+
import "../assert_is_error-jyzqjHud.js";
|
24
|
+
import "../assert_not_equals-wx-SRs4i.js";
|
25
|
+
import "../assert_throws-gBPv3v2V.js";
|
26
26
|
|
27
27
|
//#region federation/builder.test.ts
|
28
28
|
test("FederationBuilder", async (t) => {
|