@fedify/fedify 1.6.4 → 1.7.0-dev.888
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-BfzxE2QN.js → actor-D_TAErPk.js} +184 -199
- package/dist/{actor-CHPy3MD6.js → actor-DtsixKAW.js} +3 -3
- package/dist/{assert-0DSnLFa8.js → assert-YJk-1DlZ.js} +1 -1
- package/dist/{assert_equals-XhPMqqO2.js → assert_equals-Dnj7ejjL.js} +7 -19
- package/dist/{assert_instance_of-v5adm_-K.js → assert_instance_of-DBIoG5k7.js} +1 -1
- package/dist/{assert_is_error-Drwb_yQp.js → assert_is_error-jyzqjHud.js} +1 -1
- package/dist/{assert_not_equals-BRPdeJ9D.js → assert_not_equals-wx-SRs4i.js} +1 -1
- package/dist/{assert_rejects-D_nYI1gs.js → assert_rejects-BZjUwo62.js} +2 -2
- package/dist/{assert_throws-DNuPhPNp.js → assert_throws-gBPv3v2V.js} +2 -2
- package/dist/{authdocloader-8yB-xGBR.js → authdocloader-Cj8NhE13.js} +3 -3
- package/dist/{authdocloader-qBxZEEi9.js → authdocloader-D3lP3oQJ.js} +3 -3
- package/dist/{builder-NApTRrpC.js → builder-q1rdJ7Qu.js} +3 -3
- package/dist/{client-DFAp6PBu.js → client-DUX3b6Xa.js} +2 -2
- package/dist/compat/mod.d.ts +3 -3
- package/dist/compat/transformers.test.js +23 -23
- package/dist/{context-DPm_2m4V.js → context-CJunwlbH.js} +2 -2
- package/dist/{context-DRhhOsMk.d.ts → context-DdICJaUT.d.ts} +1 -1
- package/dist/{denokv-B_GFWjrl.js → denokv-CvROlGYX.js} +5 -0
- package/dist/{docloader-Chzwgszm.js → docloader-CD0wlEX1.js} +1 -1
- package/dist/{docloader-BGQB_PFT.js → docloader-D933g4kZ.js} +1 -1
- package/dist/{esm-CASHO3OR.js → esm-Btx3E8og.js} +12 -18
- package/dist/federation/builder.test.js +14 -14
- package/dist/federation/collection.test.js +9 -9
- package/dist/federation/handler.test.js +31 -34
- package/dist/federation/inbox.test.js +7 -7
- package/dist/federation/keycache.test.js +7 -7
- package/dist/federation/kv.test.js +9 -9
- package/dist/federation/middleware.test.js +167 -31
- package/dist/federation/mod.d.ts +2 -2
- package/dist/federation/mod.js +11 -11
- package/dist/federation/mq.test.js +66 -10
- package/dist/federation/retry.test.js +3 -3
- package/dist/federation/router.test.js +9 -9
- package/dist/federation/send.test.js +19 -19
- package/dist/{federation-3B6BDKCK.js → federation-lZOZyLAo.js} +11 -0
- package/dist/{http-DJcO8N65.js → http-CQmvdqnv.js} +9 -23
- package/dist/{http-CoPwpYGd.js → http-fivRSxPO.js} +9 -23
- package/dist/{inbox-CL7Y2POM.js → inbox-Dxm3dzXC.js} +2 -2
- package/dist/{key-vNs-KWCR.js → key-8FgmjBQw.js} +2 -2
- package/dist/{key-5iwxfdk7.js → key-Bd9x5bZc.js} +3 -3
- package/dist/{key-BQEmzABV.js → key-CDrBZp4z.js} +4 -4
- package/dist/{key-dki_alWE.js → key-DA2WNLBR.js} +5 -5
- package/dist/{keycache-oIWQCIss.js → keycache-DpxW9Koh.js} +1 -1
- package/dist/{keys-BF9Wnizj.js → keys-B0uS_qcm.js} +1 -1
- package/dist/{ld-Bro1OUaC.js → ld-EwYuTK6H.js} +3 -3
- package/dist/{lookup-DVLRiy-x.js → lookup-DEkWpnDW.js} +1 -1
- package/dist/{lookup-BE2D88-F.js → lookup-DF-Kf8aT.js} +1 -1
- package/dist/{lookup-BNZr2r1q.js → lookup-DJEy1utC.js} +3 -3
- package/dist/{middleware-BoJeFg8A.js → middleware-BP-bBD2r.js} +37 -16
- package/dist/{middleware-DIMI9i2M.js → middleware-CQ7qEYyO.js} +31 -10
- package/dist/middleware-CWgW_9AC.js +17 -0
- package/dist/middleware-D9gKZ14Q.js +33 -0
- package/dist/{mod-CgmTOt4z.d.ts → mod-5orySGMZ.d.ts} +1 -1
- package/dist/mod.d.ts +3 -3
- package/dist/mod.js +11 -11
- package/dist/{mq-nceTGCuc.d.ts → mq-DYKDDJmp.d.ts} +20 -0
- package/dist/nodeinfo/client.test.js +13 -13
- package/dist/nodeinfo/handler.test.js +29 -29
- package/dist/nodeinfo/mod.js +2 -2
- package/dist/nodeinfo/semver.test.js +10 -10
- package/dist/nodeinfo/types.test.js +11 -11
- package/dist/{owner-B5psHPX0.js → owner-Cc4nwvMO.js} +3 -3
- package/dist/{proof-Bxho-Eev.js → proof-CQOQgQLC.js} +3 -3
- package/dist/{proof-Ck9qUTzW.js → proof-dej36xUb.js} +3 -3
- package/dist/runtime/authdocloader.test.js +18 -18
- package/dist/runtime/docloader.test.js +11 -11
- package/dist/runtime/key.test.js +14 -14
- package/dist/runtime/langstr.test.js +9 -9
- package/dist/runtime/mod.js +6 -6
- package/dist/runtime/multibase/multibase.test.js +9 -9
- package/dist/runtime/url.test.js +5 -5
- package/dist/{semver-DWClQt_5.js → semver-CbbIgUsa.js} +2 -2
- package/dist/{send-D4-hN_vq.js → send-Cs6hGpVz.js} +2 -2
- package/dist/sig/http.test.js +23 -51
- package/dist/sig/key.test.js +15 -15
- package/dist/sig/ld.test.js +13 -13
- package/dist/sig/mod.js +6 -6
- package/dist/sig/owner.test.js +17 -17
- package/dist/sig/proof.test.js +17 -17
- package/dist/{std__assert-CmyZxqPw.js → std__assert-CHXwj7zk.js} +1 -1
- package/dist/testing/docloader.test.js +9 -9
- package/dist/testing/mod.js +1 -1
- package/dist/{testing-BZ0dJ4qn.js → testing-jcGLO9Lp.js} +1 -1
- package/dist/{types-BaxpHQDE.js → types-Bn2FleIz.js} +3 -3
- package/dist/{types-C7C_l-jz.js → types-CqoqWDkp.js} +1 -1
- package/dist/vocab/actor.test.js +15 -15
- package/dist/vocab/announce.yaml +1 -3
- package/dist/vocab/create.yaml +1 -3
- package/dist/vocab/delete.yaml +1 -3
- package/dist/vocab/lookup.test.js +14 -14
- package/dist/vocab/mod.js +4 -4
- package/dist/vocab/question.yaml +1 -3
- package/dist/vocab/type.test.js +4 -4
- package/dist/vocab/update.yaml +1 -3
- package/dist/vocab/vocab.test.js +34 -37
- package/dist/{vocab-Bcgf3ubZ.js → vocab-BKrOvMEW.js} +3 -3
- package/dist/{vocab-DrV5TQKL.js → vocab-BeUz_sCd.js} +184 -199
- package/dist/webfinger/handler.test.js +29 -29
- package/dist/webfinger/lookup.test.js +12 -12
- package/dist/webfinger/mod.js +2 -2
- package/dist/x/cfworkers.d.ts +7 -1
- package/dist/x/cfworkers.js +6 -0
- package/dist/x/cfworkers.test.js +15 -9
- package/dist/x/hono.d.ts +2 -2
- package/dist/x/sveltekit.d.ts +2 -2
- package/package.json +1 -1
- package/dist/middleware-30sYf6H-.js +0 -17
- package/dist/middleware-DvIti4UE.js +0 -33
@@ -3,9 +3,9 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import { deno_default } from "./docloader-
|
7
|
-
import { Application, Group, Organization, Person, Service } from "./vocab-
|
8
|
-
import { lookupWebFinger } from "./lookup-
|
6
|
+
import { deno_default } from "./docloader-CD0wlEX1.js";
|
7
|
+
import { Application, Group, Organization, Person, Service } from "./vocab-BeUz_sCd.js";
|
8
|
+
import { lookupWebFinger } from "./lookup-DF-Kf8aT.js";
|
9
9
|
import { getTypeId } from "./type-D2s5lmbZ.js";
|
10
10
|
import { SpanStatusCode, trace } from "@opentelemetry/api";
|
11
11
|
import { domainToASCII, domainToUnicode } from "node:url";
|
@@ -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
|
/**
|
@@ -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
|
*
|
@@ -284,7 +284,7 @@ function constructorsEqual(a, b) {
|
|
284
284
|
const assertionState = new AssertionState();
|
285
285
|
|
286
286
|
//#endregion
|
287
|
-
//#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
|
288
288
|
const { Deno } = globalThis;
|
289
289
|
const noColor = typeof Deno?.noColor === "boolean" ? Deno.noColor : false;
|
290
290
|
const enabled = !noColor;
|
@@ -451,7 +451,7 @@ const ANSI_PATTERN = new RegExp(["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-z
|
|
451
451
|
}
|
452
452
|
|
453
453
|
//#endregion
|
454
|
-
//#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
|
455
455
|
/**
|
456
456
|
* Colors the output of assertion diffs.
|
457
457
|
*
|
@@ -545,7 +545,7 @@ const ANSI_PATTERN = new RegExp(["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-z
|
|
545
545
|
}
|
546
546
|
|
547
547
|
//#endregion
|
548
|
-
//#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
|
549
549
|
const REMOVED = 1;
|
550
550
|
const COMMON = 2;
|
551
551
|
const ADDED = 3;
|
@@ -814,7 +814,7 @@ const ADDED = 3;
|
|
814
814
|
}
|
815
815
|
|
816
816
|
//#endregion
|
817
|
-
//#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
|
818
818
|
/**
|
819
819
|
* Unescape invisible characters.
|
820
820
|
*
|
@@ -955,7 +955,7 @@ const NON_WHITESPACE_REGEXP = /\S/;
|
|
955
955
|
}
|
956
956
|
|
957
957
|
//#endregion
|
958
|
-
//#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
|
959
959
|
/**
|
960
960
|
* Converts the input into a string. Objects, Sets and Maps are sorted so as to
|
961
961
|
* make tests less flaky.
|
@@ -986,18 +986,6 @@ const NON_WHITESPACE_REGEXP = /\S/;
|
|
986
986
|
}) : `"${String(v).replace(/(?=["\\])/g, "\\")}"`;
|
987
987
|
}
|
988
988
|
|
989
|
-
//#endregion
|
990
|
-
//#region node_modules/.pnpm/@jsr+std__internal@1.0.9/node_modules/@jsr/std__internal/_os.js
|
991
|
-
function checkWindows() {
|
992
|
-
const global = globalThis;
|
993
|
-
const os = global.Deno?.build?.os;
|
994
|
-
return typeof os === "string" ? os === "windows" : global.navigator?.platform?.startsWith("Win") ?? global.process?.platform?.startsWith("win") ?? false;
|
995
|
-
}
|
996
|
-
|
997
|
-
//#endregion
|
998
|
-
//#region node_modules/.pnpm/@jsr+std__internal@1.0.9/node_modules/@jsr/std__internal/os.js
|
999
|
-
/** Whether the current platform is Windows */ const isWindows = checkWindows();
|
1000
|
-
|
1001
989
|
//#endregion
|
1002
990
|
//#region node_modules/.pnpm/@jsr+std__assert@0.226.0/node_modules/@jsr/std__assert/assert_equals.js
|
1003
991
|
/**
|
@@ -1036,4 +1024,4 @@ function checkWindows() {
|
|
1036
1024
|
}
|
1037
1025
|
|
1038
1026
|
//#endregion
|
1039
|
-
export { AssertionError, assertEquals, buildMessage, diff, diffStr, equal, format,
|
1027
|
+
export { AssertionError, assertEquals, buildMessage, diff, diffStr, equal, format, red, stripAnsiCode };
|
@@ -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-D933g4kZ.js";
|
6
|
+
import { validateCryptoKey } from "./key-8FgmjBQw.js";
|
7
|
+
import { doubleKnock } from "./http-fivRSxPO.js";
|
8
8
|
import { getLogger } from "@logtape/logtape";
|
9
9
|
|
10
10
|
//#region runtime/authdocloader.ts
|
@@ -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-CD0wlEX1.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-Bd9x5bZc.js";
|
9
|
+
import { doubleKnock } from "./http-CQmvdqnv.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-CD0wlEX1.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-Dxm3dzXC.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-D9gKZ14Q.js");
|
38
38
|
const f = new FederationImpl(options);
|
39
39
|
const trailingSlashInsensitiveValue = f.router.trailingSlashInsensitive;
|
40
40
|
f.router = this.router.clone();
|
@@ -3,8 +3,8 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import { getUserAgent } from "./docloader-
|
7
|
-
import { parseSemVer } from "./semver-
|
6
|
+
import { getUserAgent } from "./docloader-CD0wlEX1.js";
|
7
|
+
import { parseSemVer } from "./semver-CbbIgUsa.js";
|
8
8
|
import { getLogger } from "@logtape/logtape";
|
9
9
|
|
10
10
|
//#region nodeinfo/client.ts
|
package/dist/compat/mod.d.ts
CHANGED
@@ -9,7 +9,7 @@ import "../http-BkUCISGt.js";
|
|
9
9
|
import "../owner-CbRc94FP.js";
|
10
10
|
import "../mod-DSPyncxx.js";
|
11
11
|
import "../lookup-vJccIKCS.js";
|
12
|
-
import { ActivityTransformer } from "../context-
|
13
|
-
import "../mq-
|
14
|
-
import { actorDehydrator, autoIdAssigner, getDefaultActivityTransformers } from "../mod-
|
12
|
+
import { ActivityTransformer } from "../context-DdICJaUT.js";
|
13
|
+
import "../mq-DYKDDJmp.js";
|
14
|
+
import { actorDehydrator, autoIdAssigner, getDefaultActivityTransformers } from "../mod-5orySGMZ.js";
|
15
15
|
export { ActivityTransformer, actorDehydrator, autoIdAssigner, getDefaultActivityTransformers };
|
@@ -3,37 +3,37 @@
|
|
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-BP-bBD2r.js";
|
11
|
+
import "../docloader-CD0wlEX1.js";
|
12
12
|
import "../url-kTAI6_KP.js";
|
13
|
-
import "../semver-
|
14
|
-
import "../client-
|
13
|
+
import "../semver-CbbIgUsa.js";
|
14
|
+
import "../client-DUX3b6Xa.js";
|
15
15
|
import "../router-D_aVZZUc.js";
|
16
|
-
import "../types-
|
16
|
+
import "../types-CqoqWDkp.js";
|
17
17
|
import "../multibase-DeCHcK8L.js";
|
18
|
-
import { Follow, Person } from "../vocab-
|
18
|
+
import { Follow, Person } from "../vocab-BeUz_sCd.js";
|
19
19
|
import "../langstr-DbWheeIS.js";
|
20
|
-
import "../lookup-
|
20
|
+
import "../lookup-DF-Kf8aT.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-
|
22
|
+
import "../actor-DtsixKAW.js";
|
23
|
+
import "../key-Bd9x5bZc.js";
|
24
|
+
import "../http-CQmvdqnv.js";
|
25
|
+
import "../authdocloader-D3lP3oQJ.js";
|
26
|
+
import "../ld-EwYuTK6H.js";
|
27
|
+
import "../owner-Cc4nwvMO.js";
|
28
|
+
import "../proof-dej36xUb.js";
|
29
|
+
import "../lookup-DJEy1utC.js";
|
30
|
+
import "../inbox-Dxm3dzXC.js";
|
31
|
+
import "../builder-q1rdJ7Qu.js";
|
32
32
|
import "../collection-Dfb0TPno.js";
|
33
|
-
import "../keycache-
|
33
|
+
import "../keycache-DpxW9Koh.js";
|
34
34
|
import "../retry-BiIhZWgD.js";
|
35
|
-
import "../send-
|
36
|
-
import { test } from "../testing-
|
35
|
+
import "../send-Cs6hGpVz.js";
|
36
|
+
import { test } from "../testing-jcGLO9Lp.js";
|
37
37
|
|
38
38
|
//#region compat/transformers.test.ts
|
39
39
|
const federation = new FederationImpl({ kv: new MemoryKvStore() });
|
@@ -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-DF-Kf8aT.js";
|
8
|
+
import { lookupObject, traverseCollection } from "./lookup-DJEy1utC.js";
|
9
9
|
import { mockDocumentLoader } from "./docloader-09nVWLAZ.js";
|
10
10
|
import { trace } from "@opentelemetry/api";
|
11
11
|
|
@@ -8,7 +8,7 @@ import { Actor, Recipient } from "./actor-tT_B0pDn.js";
|
|
8
8
|
import { GetKeyOwnerOptions } from "./owner-CbRc94FP.js";
|
9
9
|
import { LookupObjectOptions, TraverseCollectionOptions } from "./mod-DSPyncxx.js";
|
10
10
|
import { LookupWebFingerOptions, ResourceDescriptor } from "./lookup-vJccIKCS.js";
|
11
|
-
import { MessageQueue } from "./mq-
|
11
|
+
import { MessageQueue } from "./mq-DYKDDJmp.js";
|
12
12
|
import { Span, TracerProvider } from "@opentelemetry/api";
|
13
13
|
|
14
14
|
//#region compat/types.d.ts
|
@@ -10,6 +10,11 @@
|
|
10
10
|
var DenoKvMessageQueue = class {
|
11
11
|
#kv;
|
12
12
|
/**
|
13
|
+
* Deno KV queues provide automatic retry with exponential backoff.
|
14
|
+
* @since 1.7.0
|
15
|
+
*/
|
16
|
+
nativeRetrial = true;
|
17
|
+
/**
|
13
18
|
* Constructs a new {@link DenoKvMessageQueue} adapter with the given Deno KV
|
14
19
|
* store.
|
15
20
|
* @param kv The Deno KV store to use.
|
@@ -115,7 +115,7 @@ function parse(input, loose) {
|
|
115
115
|
}
|
116
116
|
|
117
117
|
//#endregion
|
118
|
-
//#region node_modules/.pnpm/fetch-mock@12.5.
|
118
|
+
//#region node_modules/.pnpm/fetch-mock@12.5.2/node_modules/fetch-mock/dist/esm/TypeDescriptor.js
|
119
119
|
const valueTypes = new Set([
|
120
120
|
"boolean",
|
121
121
|
"number",
|
@@ -207,7 +207,7 @@ var TypeDescriptor = class TypeDescriptor {
|
|
207
207
|
};
|
208
208
|
|
209
209
|
//#endregion
|
210
|
-
//#region node_modules/.pnpm/fetch-mock@12.5.
|
210
|
+
//#region node_modules/.pnpm/fetch-mock@12.5.2/node_modules/fetch-mock/dist/esm/IsSubsetOf.js
|
211
211
|
const allowedTypes = new Set([
|
212
212
|
"array",
|
213
213
|
"object",
|
@@ -366,7 +366,7 @@ function dequal(foo, bar) {
|
|
366
366
|
}
|
367
367
|
|
368
368
|
//#endregion
|
369
|
-
//#region node_modules/.pnpm/fetch-mock@12.5.
|
369
|
+
//#region node_modules/.pnpm/fetch-mock@12.5.2/node_modules/fetch-mock/dist/esm/RequestUtils.js
|
370
370
|
const absoluteUrlRX = new RegExp("^[a-z]+://|^data:", "i");
|
371
371
|
const protocolRelativeUrlRX = new RegExp("^//", "i");
|
372
372
|
function hasCredentialsInUrl(url) {
|
@@ -444,7 +444,7 @@ function normalizeHeaders(headers) {
|
|
444
444
|
}
|
445
445
|
|
446
446
|
//#endregion
|
447
|
-
//#region node_modules/.pnpm/fetch-mock@12.5.
|
447
|
+
//#region node_modules/.pnpm/fetch-mock@12.5.2/node_modules/fetch-mock/dist/esm/Matchers.js
|
448
448
|
var import_glob_to_regexp = __toESM(require_glob_to_regexp(), 1);
|
449
449
|
const isUrlMatcher = (matcher) => matcher instanceof RegExp || typeof matcher === "string" || typeof matcher === "object" && "href" in matcher;
|
450
450
|
const isFunctionMatcher = (matcher) => typeof matcher === "function";
|
@@ -576,7 +576,7 @@ const getUrlMatcher = (route) => {
|
|
576
576
|
}
|
577
577
|
if (typeof matcherUrl === "string") {
|
578
578
|
for (const shorthand in stringMatchers) if (matcherUrl.indexOf(`${shorthand}:`) === 0) {
|
579
|
-
const urlFragment = matcherUrl.replace(
|
579
|
+
const urlFragment = matcherUrl.replace(new RegExp(`^${shorthand}:`), "");
|
580
580
|
return stringMatchers[shorthand](urlFragment);
|
581
581
|
}
|
582
582
|
return getFullUrlMatcher(route, matcherUrl, query);
|
@@ -627,7 +627,7 @@ const builtInMatchers = [
|
|
627
627
|
];
|
628
628
|
|
629
629
|
//#endregion
|
630
|
-
//#region node_modules/.pnpm/fetch-mock@12.5.
|
630
|
+
//#region node_modules/.pnpm/fetch-mock@12.5.2/node_modules/fetch-mock/dist/esm/StatusTextMap.js
|
631
631
|
const statusTextMap = {
|
632
632
|
100: "Continue",
|
633
633
|
101: "Switching Protocols",
|
@@ -695,7 +695,7 @@ const statusTextMap = {
|
|
695
695
|
var StatusTextMap_default = statusTextMap;
|
696
696
|
|
697
697
|
//#endregion
|
698
|
-
//#region node_modules/.pnpm/fetch-mock@12.5.
|
698
|
+
//#region node_modules/.pnpm/fetch-mock@12.5.2/node_modules/fetch-mock/dist/esm/Route.js
|
699
699
|
var __classPrivateFieldSet = void 0 && (void 0).__classPrivateFieldSet || function(receiver, state, value, kind, f) {
|
700
700
|
if (kind === "m") throw new TypeError("Private method is not writable");
|
701
701
|
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
@@ -708,11 +708,6 @@ var __classPrivateFieldGet = void 0 && (void 0).__classPrivateFieldGet || functi
|
|
708
708
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
709
709
|
};
|
710
710
|
var _Route_instances, _a, _Route_responseSubscriptions, _Route_validate, _Route_sanitize, _Route_generateMatcher, _Route_limit, _Route_delayResponse;
|
711
|
-
var RouteConfigWrapper = class {
|
712
|
-
constructor(config) {
|
713
|
-
Object.assign(this, config);
|
714
|
-
}
|
715
|
-
};
|
716
711
|
function isBodyInit(body) {
|
717
712
|
return body instanceof Blob || body instanceof ArrayBuffer || ArrayBuffer.isView(body) || body instanceof DataView || body instanceof FormData || body instanceof ReadableStream || body instanceof URLSearchParams || body instanceof String || typeof body === "string" || body === null;
|
718
713
|
}
|
@@ -829,7 +824,7 @@ builtInMatchers.forEach(Route.defineMatcher);
|
|
829
824
|
var Route_default = Route;
|
830
825
|
|
831
826
|
//#endregion
|
832
|
-
//#region node_modules/.pnpm/fetch-mock@12.5.
|
827
|
+
//#region node_modules/.pnpm/fetch-mock@12.5.2/node_modules/fetch-mock/dist/esm/Router.js
|
833
828
|
const responseConfigProps = [
|
834
829
|
"body",
|
835
830
|
"headers",
|
@@ -906,7 +901,7 @@ var Router = class {
|
|
906
901
|
} catch (err) {
|
907
902
|
reject(err);
|
908
903
|
}
|
909
|
-
else reject(
|
904
|
+
else reject(new Error(`fetch-mock: No response or fallback rule to cover ${options && options.method || "GET"} to ${url}`));
|
910
905
|
});
|
911
906
|
}
|
912
907
|
async generateResponse(callLog) {
|
@@ -943,7 +938,6 @@ var Router = class {
|
|
943
938
|
}
|
944
939
|
addRoute(matcher, response, nameOrOptions) {
|
945
940
|
const config = {};
|
946
|
-
if (matcher instanceof RouteConfigWrapper) Object.assign(config, matcher);
|
947
941
|
if (isUrlMatcher(matcher)) config.url = matcher;
|
948
942
|
else if (isFunctionMatcher(matcher)) config.matcherFunction = matcher;
|
949
943
|
else Object.assign(config, matcher);
|
@@ -1002,7 +996,7 @@ var Router = class {
|
|
1002
996
|
};
|
1003
997
|
|
1004
998
|
//#endregion
|
1005
|
-
//#region node_modules/.pnpm/fetch-mock@12.5.
|
999
|
+
//#region node_modules/.pnpm/fetch-mock@12.5.2/node_modules/fetch-mock/dist/esm/CallHistory.js
|
1006
1000
|
const isName = (filter) => typeof filter === "string" && /^[\da-zA-Z-]+$/.test(filter) && !["matched", "unmatched"].includes(filter);
|
1007
1001
|
const isMatchedOrUnmatched = (filter) => typeof filter === "boolean" || ["matched", "unmatched"].includes(filter);
|
1008
1002
|
var CallHistory = class {
|
@@ -1087,7 +1081,7 @@ var CallHistory = class {
|
|
1087
1081
|
var CallHistory_default = CallHistory;
|
1088
1082
|
|
1089
1083
|
//#endregion
|
1090
|
-
//#region node_modules/.pnpm/fetch-mock@12.5.
|
1084
|
+
//#region node_modules/.pnpm/fetch-mock@12.5.2/node_modules/fetch-mock/dist/esm/FetchMock.js
|
1091
1085
|
const defaultFetchMockConfig = {
|
1092
1086
|
includeContentLength: true,
|
1093
1087
|
matchPartialBody: false,
|
@@ -1220,7 +1214,7 @@ const fetchMock = new FetchMock({ ...defaultFetchMockConfig });
|
|
1220
1214
|
var FetchMock_default = fetchMock;
|
1221
1215
|
|
1222
1216
|
//#endregion
|
1223
|
-
//#region node_modules/.pnpm/fetch-mock@12.5.
|
1217
|
+
//#region node_modules/.pnpm/fetch-mock@12.5.2/node_modules/fetch-mock/dist/esm/index.js
|
1224
1218
|
var esm_default = FetchMock_default;
|
1225
1219
|
|
1226
1220
|
//#endregion
|
@@ -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-CD0wlEX1.js";
|
11
11
|
import "../url-kTAI6_KP.js";
|
12
|
-
import { parseSemVer } from "../semver-
|
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-BeUz_sCd.js";
|
16
16
|
import "../langstr-DbWheeIS.js";
|
17
17
|
import "../type-D2s5lmbZ.js";
|
18
|
-
import "../inbox-
|
19
|
-
import { createFederationBuilder } from "../builder-
|
20
|
-
import { test } from "../testing-
|
21
|
-
import { assertExists } from "../std__assert-
|
22
|
-
import "../assert_rejects-
|
23
|
-
import "../assert_is_error-
|
24
|
-
import "../assert_not_equals-
|
25
|
-
import "../assert_throws-
|
18
|
+
import "../inbox-Dxm3dzXC.js";
|
19
|
+
import { createFederationBuilder } from "../builder-q1rdJ7Qu.js";
|
20
|
+
import { test } from "../testing-jcGLO9Lp.js";
|
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) => {
|
@@ -3,16 +3,16 @@
|
|
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 { buildCollectionSynchronizationHeader, digest } from "../collection-Dfb0TPno.js";
|
10
|
-
import { test } from "../testing-
|
11
|
-
import "../std__assert-
|
12
|
-
import "../assert_rejects-
|
13
|
-
import "../assert_is_error-
|
14
|
-
import "../assert_not_equals-
|
15
|
-
import "../assert_throws-
|
10
|
+
import { test } from "../testing-jcGLO9Lp.js";
|
11
|
+
import "../std__assert-CHXwj7zk.js";
|
12
|
+
import "../assert_rejects-BZjUwo62.js";
|
13
|
+
import "../assert_is_error-jyzqjHud.js";
|
14
|
+
import "../assert_not_equals-wx-SRs4i.js";
|
15
|
+
import "../assert_throws-gBPv3v2V.js";
|
16
16
|
import { decodeHex } from "byte-encodings/hex";
|
17
17
|
|
18
18
|
//#region federation/collection.test.ts
|
@@ -3,45 +3,45 @@
|
|
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 "../assert_instance_of-
|
6
|
+
import { assertEquals } from "../assert_equals-Dnj7ejjL.js";
|
7
|
+
import { assert } from "../assert-YJk-1DlZ.js";
|
8
|
+
import "../assert_instance_of-DBIoG5k7.js";
|
9
9
|
import { MemoryKvStore } from "../kv-DohFOP2C.js";
|
10
|
-
import { acceptsJsonLd, createFederation, handleActor, handleCollection, handleInbox, handleObject, respondWithObject, respondWithObjectIfAcceptable } from "../middleware-
|
11
|
-
import "../docloader-
|
10
|
+
import { acceptsJsonLd, createFederation, handleActor, handleCollection, handleInbox, handleObject, respondWithObject, respondWithObjectIfAcceptable } from "../middleware-BP-bBD2r.js";
|
11
|
+
import "../docloader-CD0wlEX1.js";
|
12
12
|
import "../url-kTAI6_KP.js";
|
13
|
-
import "../semver-
|
14
|
-
import "../client-
|
13
|
+
import "../semver-CbbIgUsa.js";
|
14
|
+
import "../client-DUX3b6Xa.js";
|
15
15
|
import "../router-D_aVZZUc.js";
|
16
|
-
import "../types-
|
16
|
+
import "../types-CqoqWDkp.js";
|
17
17
|
import "../multibase-DeCHcK8L.js";
|
18
|
-
import { Create, Note, Person } from "../vocab-
|
18
|
+
import { Create, Note, Person } from "../vocab-BeUz_sCd.js";
|
19
19
|
import "../langstr-DbWheeIS.js";
|
20
|
-
import "../lookup-
|
20
|
+
import "../lookup-DF-Kf8aT.js";
|
21
21
|
import "../type-D2s5lmbZ.js";
|
22
|
-
import "../actor-
|
23
|
-
import "../key-
|
24
|
-
import { signRequest } from "../http-
|
25
|
-
import "../authdocloader-
|
26
|
-
import "../ld-
|
27
|
-
import "../owner-
|
28
|
-
import "../proof-
|
29
|
-
import "../lookup-
|
30
|
-
import "../inbox-
|
31
|
-
import "../builder-
|
22
|
+
import "../actor-DtsixKAW.js";
|
23
|
+
import "../key-Bd9x5bZc.js";
|
24
|
+
import { signRequest } from "../http-CQmvdqnv.js";
|
25
|
+
import "../authdocloader-D3lP3oQJ.js";
|
26
|
+
import "../ld-EwYuTK6H.js";
|
27
|
+
import "../owner-Cc4nwvMO.js";
|
28
|
+
import "../proof-dej36xUb.js";
|
29
|
+
import "../lookup-DJEy1utC.js";
|
30
|
+
import "../inbox-Dxm3dzXC.js";
|
31
|
+
import "../builder-q1rdJ7Qu.js";
|
32
32
|
import "../collection-Dfb0TPno.js";
|
33
|
-
import "../keycache-
|
33
|
+
import "../keycache-DpxW9Koh.js";
|
34
34
|
import "../retry-BiIhZWgD.js";
|
35
|
-
import "../send-
|
36
|
-
import { test } from "../testing-
|
37
|
-
import "../std__assert-
|
38
|
-
import { assertFalse } from "../assert_rejects-
|
39
|
-
import "../assert_is_error-
|
40
|
-
import "../assert_not_equals-
|
41
|
-
import "../assert_throws-
|
35
|
+
import "../send-Cs6hGpVz.js";
|
36
|
+
import { test } from "../testing-jcGLO9Lp.js";
|
37
|
+
import "../std__assert-CHXwj7zk.js";
|
38
|
+
import { assertFalse } from "../assert_rejects-BZjUwo62.js";
|
39
|
+
import "../assert_is_error-jyzqjHud.js";
|
40
|
+
import "../assert_not_equals-wx-SRs4i.js";
|
41
|
+
import "../assert_throws-gBPv3v2V.js";
|
42
42
|
import { mockDocumentLoader } from "../docloader-09nVWLAZ.js";
|
43
|
-
import { createInboxContext, createRequestContext } from "../context-
|
44
|
-
import { rsaPrivateKey3, rsaPublicKey2, rsaPublicKey3 } from "../keys-
|
43
|
+
import { createInboxContext, createRequestContext } from "../context-CJunwlbH.js";
|
44
|
+
import { rsaPrivateKey3, rsaPublicKey2, rsaPublicKey3 } from "../keys-B0uS_qcm.js";
|
45
45
|
|
46
46
|
//#region federation/handler.test.ts
|
47
47
|
test("acceptsJsonLd()", () => {
|
@@ -654,10 +654,7 @@ test("handleCollection()", async () => {
|
|
654
654
|
Emoji: "toot:Emoji",
|
655
655
|
Hashtag: "as:Hashtag",
|
656
656
|
sensitive: "as:sensitive",
|
657
|
-
votersCount:
|
658
|
-
"@id": "toot:votersCount",
|
659
|
-
"@type": "http://www.w3.org/2001/XMLSchema#nonNegativeInteger"
|
660
|
-
},
|
657
|
+
votersCount: "toot:votersCount",
|
661
658
|
_misskey_quote: "misskey:_misskey_quote",
|
662
659
|
quoteUri: "fedibird:quoteUri",
|
663
660
|
quoteUrl: "as:quoteUrl",
|