@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
package/dist/vocab/vocab.test.js
CHANGED
@@ -3,35 +3,39 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import { assertEquals
|
7
|
-
import
|
8
|
-
import { assertInstanceOf } from "../assert_instance_of-
|
9
|
-
import "../docloader-
|
6
|
+
import { assertEquals } from "../assert_equals-Dnj7ejjL.js";
|
7
|
+
import "../assert-YJk-1DlZ.js";
|
8
|
+
import { assertInstanceOf } from "../assert_instance_of-DBIoG5k7.js";
|
9
|
+
import "../docloader-CD0wlEX1.js";
|
10
10
|
import "../url-kTAI6_KP.js";
|
11
11
|
import { decode } from "../multibase-DeCHcK8L.js";
|
12
|
-
import { Activity, Announce, Create, CryptographicKey, Follow, Hashtag, Note, Object as Object$1, OrderedCollectionPage, Person, Place,
|
12
|
+
import { Activity, Announce, Create, CryptographicKey, Follow, Hashtag, Note, Object as Object$1, OrderedCollectionPage, Person, Place, Source, vocab_exports } from "../vocab-BeUz_sCd.js";
|
13
13
|
import { LanguageString } from "../langstr-DbWheeIS.js";
|
14
|
-
import { test } from "../testing-
|
15
|
-
import "../std__assert-
|
16
|
-
import { assertFalse, assertRejects } from "../assert_rejects-
|
17
|
-
import "../assert_is_error-
|
18
|
-
import { assertNotEquals } from "../assert_not_equals-
|
19
|
-
import { assertThrows } from "../assert_throws-
|
14
|
+
import { test } from "../testing-jcGLO9Lp.js";
|
15
|
+
import "../std__assert-CHXwj7zk.js";
|
16
|
+
import { assertFalse, assertRejects } from "../assert_rejects-BZjUwo62.js";
|
17
|
+
import "../assert_is_error-jyzqjHud.js";
|
18
|
+
import { assertNotEquals } from "../assert_not_equals-wx-SRs4i.js";
|
19
|
+
import { assertThrows } from "../assert_throws-gBPv3v2V.js";
|
20
20
|
import { mockDocumentLoader } from "../docloader-09nVWLAZ.js";
|
21
|
-
import { ed25519PublicKey, rsaPublicKey1 } from "../keys-
|
21
|
+
import { ed25519PublicKey, rsaPublicKey1 } from "../keys-B0uS_qcm.js";
|
22
22
|
import { pascalCase } from "@es-toolkit/es-toolkit";
|
23
23
|
import { parseLanguageTag } from "@phensley/language-tag";
|
24
24
|
import { Validator } from "@cfworker/json-schema";
|
25
25
|
import { readFile, readdir } from "node:fs/promises";
|
26
26
|
import { join } from "node:path";
|
27
27
|
|
28
|
-
//#region node_modules/.pnpm/@jsr+std__path@1.1.
|
28
|
+
//#region node_modules/.pnpm/@jsr+std__path@1.1.0/node_modules/@jsr/std__path/_os.js
|
29
|
+
const isWindows = globalThis.Deno?.build.os === "windows" || globalThis.navigator?.platform?.startsWith("Win") || globalThis.process?.platform?.startsWith("win") || false;
|
30
|
+
|
31
|
+
//#endregion
|
32
|
+
//#region node_modules/.pnpm/@jsr+std__path@1.1.0/node_modules/@jsr/std__path/_common/assert_path.js
|
29
33
|
function assertPath(path) {
|
30
34
|
if (typeof path !== "string") throw new TypeError(`Path must be a string, received "${JSON.stringify(path)}"`);
|
31
35
|
}
|
32
36
|
|
33
37
|
//#endregion
|
34
|
-
//#region node_modules/.pnpm/@jsr+std__path@1.1.
|
38
|
+
//#region node_modules/.pnpm/@jsr+std__path@1.1.0/node_modules/@jsr/std__path/_common/from_file_url.js
|
35
39
|
function assertArg$2(url) {
|
36
40
|
url = url instanceof URL ? url : new URL(url);
|
37
41
|
if (url.protocol !== "file:") throw new TypeError(`URL must be a file URL: received "${url.protocol}"`);
|
@@ -39,7 +43,7 @@ function assertArg$2(url) {
|
|
39
43
|
}
|
40
44
|
|
41
45
|
//#endregion
|
42
|
-
//#region node_modules/.pnpm/@jsr+std__path@1.1.
|
46
|
+
//#region node_modules/.pnpm/@jsr+std__path@1.1.0/node_modules/@jsr/std__path/posix/from_file_url.js
|
43
47
|
/**
|
44
48
|
* Converts a file URL to a path string.
|
45
49
|
*
|
@@ -59,7 +63,7 @@ function assertArg$2(url) {
|
|
59
63
|
}
|
60
64
|
|
61
65
|
//#endregion
|
62
|
-
//#region node_modules/.pnpm/@jsr+std__path@1.1.
|
66
|
+
//#region node_modules/.pnpm/@jsr+std__path@1.1.0/node_modules/@jsr/std__path/_common/strip_trailing_separators.js
|
63
67
|
function stripTrailingSeparators(segment, isSep) {
|
64
68
|
if (segment.length <= 1) return segment;
|
65
69
|
let end = segment.length;
|
@@ -69,18 +73,18 @@ function stripTrailingSeparators(segment, isSep) {
|
|
69
73
|
}
|
70
74
|
|
71
75
|
//#endregion
|
72
|
-
//#region node_modules/.pnpm/@jsr+std__path@1.1.
|
76
|
+
//#region node_modules/.pnpm/@jsr+std__path@1.1.0/node_modules/@jsr/std__path/_common/constants.js
|
73
77
|
const CHAR_DOT = 46;
|
74
78
|
const CHAR_FORWARD_SLASH = 47;
|
75
79
|
|
76
80
|
//#endregion
|
77
|
-
//#region node_modules/.pnpm/@jsr+std__path@1.1.
|
81
|
+
//#region node_modules/.pnpm/@jsr+std__path@1.1.0/node_modules/@jsr/std__path/posix/_util.js
|
78
82
|
function isPosixPathSeparator(code) {
|
79
83
|
return code === CHAR_FORWARD_SLASH;
|
80
84
|
}
|
81
85
|
|
82
86
|
//#endregion
|
83
|
-
//#region node_modules/.pnpm/@jsr+std__path@1.1.
|
87
|
+
//#region node_modules/.pnpm/@jsr+std__path@1.1.0/node_modules/@jsr/std__path/windows/from_file_url.js
|
84
88
|
/**
|
85
89
|
* Converts a file URL to a path string.
|
86
90
|
*
|
@@ -104,14 +108,14 @@ function isPosixPathSeparator(code) {
|
|
104
108
|
}
|
105
109
|
|
106
110
|
//#endregion
|
107
|
-
//#region node_modules/.pnpm/@jsr+std__path@1.1.
|
111
|
+
//#region node_modules/.pnpm/@jsr+std__path@1.1.0/node_modules/@jsr/std__path/_common/dirname.js
|
108
112
|
function assertArg$1(path) {
|
109
113
|
assertPath(path);
|
110
114
|
if (path.length === 0) return ".";
|
111
115
|
}
|
112
116
|
|
113
117
|
//#endregion
|
114
|
-
//#region node_modules/.pnpm/@jsr+std__path@1.1.
|
118
|
+
//#region node_modules/.pnpm/@jsr+std__path@1.1.0/node_modules/@jsr/std__path/posix/dirname.js
|
115
119
|
/**
|
116
120
|
* Return the directory path of a `path`.
|
117
121
|
*
|
@@ -155,7 +159,7 @@ function assertArg$1(path) {
|
|
155
159
|
}
|
156
160
|
|
157
161
|
//#endregion
|
158
|
-
//#region node_modules/.pnpm/@jsr+std__path@1.1.
|
162
|
+
//#region node_modules/.pnpm/@jsr+std__path@1.1.0/node_modules/@jsr/std__path/from_file_url.js
|
159
163
|
/**
|
160
164
|
* Converts a file URL to a path string.
|
161
165
|
*
|
@@ -180,14 +184,14 @@ function assertArg$1(path) {
|
|
180
184
|
}
|
181
185
|
|
182
186
|
//#endregion
|
183
|
-
//#region node_modules/.pnpm/@jsr+std__path@1.1.
|
187
|
+
//#region node_modules/.pnpm/@jsr+std__path@1.1.0/node_modules/@jsr/std__path/_common/normalize.js
|
184
188
|
function assertArg(path) {
|
185
189
|
assertPath(path);
|
186
190
|
if (path.length === 0) return ".";
|
187
191
|
}
|
188
192
|
|
189
193
|
//#endregion
|
190
|
-
//#region node_modules/.pnpm/@jsr+std__path@1.1.
|
194
|
+
//#region node_modules/.pnpm/@jsr+std__path@1.1.0/node_modules/@jsr/std__path/_common/normalize_string.js
|
191
195
|
function normalizeString(path, allowAboveRoot, separator, isPathSeparator) {
|
192
196
|
let res = "";
|
193
197
|
let lastSegmentLength = 0;
|
@@ -240,7 +244,7 @@ function normalizeString(path, allowAboveRoot, separator, isPathSeparator) {
|
|
240
244
|
}
|
241
245
|
|
242
246
|
//#endregion
|
243
|
-
//#region node_modules/.pnpm/@jsr+std__path@1.1.
|
247
|
+
//#region node_modules/.pnpm/@jsr+std__path@1.1.0/node_modules/@jsr/std__path/posix/normalize.js
|
244
248
|
/**
|
245
249
|
* Normalize the `path`, resolving `'..'` and `'.'` segments.
|
246
250
|
* Note that resolving these segments does not necessarily mean that all will be eliminated.
|
@@ -288,7 +292,7 @@ function normalizeString(path, allowAboveRoot, separator, isPathSeparator) {
|
|
288
292
|
}
|
289
293
|
|
290
294
|
//#endregion
|
291
|
-
//#region node_modules/.pnpm/@jsr+std__path@1.1.
|
295
|
+
//#region node_modules/.pnpm/@jsr+std__path@1.1.0/node_modules/@jsr/std__path/posix/join.js
|
292
296
|
/**
|
293
297
|
* Join all given a sequence of `paths`,then normalizes the resulting path.
|
294
298
|
*
|
@@ -576,7 +580,7 @@ function isPlainObject(object) {
|
|
576
580
|
|
577
581
|
//#endregion
|
578
582
|
//#region node_modules/.pnpm/@jsr+std__yaml@1.0.8/node_modules/@jsr/std__yaml/_type/float.js
|
579
|
-
const YAML_FLOAT_PATTERN =
|
583
|
+
const YAML_FLOAT_PATTERN = new RegExp("^(?:[-+]?(?:0|[1-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
|
580
584
|
function resolveYamlFloat(data) {
|
581
585
|
if (!YAML_FLOAT_PATTERN.test(data) || data[data.length - 1] === "_") return false;
|
582
586
|
return true;
|
@@ -871,8 +875,8 @@ const str = {
|
|
871
875
|
|
872
876
|
//#endregion
|
873
877
|
//#region node_modules/.pnpm/@jsr+std__yaml@1.0.8/node_modules/@jsr/std__yaml/_type/timestamp.js
|
874
|
-
const YAML_DATE_REGEXP =
|
875
|
-
const YAML_TIMESTAMP_REGEXP =
|
878
|
+
const YAML_DATE_REGEXP = new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$");
|
879
|
+
const YAML_TIMESTAMP_REGEXP = new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");
|
876
880
|
function resolveYamlTimestamp(data) {
|
877
881
|
if (data === null) return false;
|
878
882
|
if (YAML_DATE_REGEXP.exec(data) !== null) return true;
|
@@ -1189,7 +1193,7 @@ var LoaderState = class {
|
|
1189
1193
|
}
|
1190
1194
|
#createError(message) {
|
1191
1195
|
const mark = markToString(this.input, this.position, this.line, this.position - this.lineStart);
|
1192
|
-
return
|
1196
|
+
return new SyntaxError(`${message} ${mark}`);
|
1193
1197
|
}
|
1194
1198
|
dispatchWarning(message) {
|
1195
1199
|
const error = this.#createError(message);
|
@@ -2779,13 +2783,6 @@ test("Activity.clone()", async () => {
|
|
2779
2783
|
summaries: ["plural"]
|
2780
2784
|
}), TypeError, "Cannot update both summary and summaries at the same time.");
|
2781
2785
|
});
|
2782
|
-
test("Question.voters", async () => {
|
2783
|
-
const question = new Question({ voters: 123 });
|
2784
|
-
const json = await question.toJsonLd({ format: "compact" });
|
2785
|
-
assert(typeof json === "object" && json != null);
|
2786
|
-
assert("votersCount" in json);
|
2787
|
-
assertEquals(json["votersCount"], 123);
|
2788
|
-
});
|
2789
2786
|
test({
|
2790
2787
|
name: "Deno.inspect(Object)",
|
2791
2788
|
ignore: !("Deno" in globalThis),
|
@@ -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, getDocumentLoader } from "./docloader-
|
6
|
-
import { Object as Object$1, getTypeId } from "./actor-
|
7
|
-
import { lookupWebFinger } from "./lookup-
|
5
|
+
import { deno_default, getDocumentLoader } from "./docloader-D933g4kZ.js";
|
6
|
+
import { Object as Object$1, getTypeId } from "./actor-D_TAErPk.js";
|
7
|
+
import { lookupWebFinger } from "./lookup-DEkWpnDW.js";
|
8
8
|
import { getLogger } from "@logtape/logtape";
|
9
9
|
import { SpanStatusCode, trace } from "@opentelemetry/api";
|
10
10
|
import { delay } from "@es-toolkit/es-toolkit";
|