@fedify/fedify 2.0.0-pr.393.1513 → 2.0.0-pr.401.1562

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.
Files changed (78) hide show
  1. package/dist/{actor-BCyaLmBO.js → actor-59y4r5a6.js} +1 -1
  2. package/dist/{actor-K1KTn_SO.js → actor-BWi9NHHD.js} +187 -187
  3. package/dist/{authdocloader-Dt5W9PIa.js → authdocloader-2RmCv76L.js} +3 -3
  4. package/dist/{authdocloader-Z01aN-9E.js → authdocloader-DtLerx0M.js} +3 -3
  5. package/dist/{builder-CaMxQWOJ.js → builder-B2zB3_gm.js} +4 -4
  6. package/dist/{client-B7GDAvYP.js → client-DXLpKovs.js} +1 -1
  7. package/dist/compat/transformers.test.js +16 -16
  8. package/dist/{docloader-C8ZZWnOn.js → docloader-CATXgP4e.js} +1 -1
  9. package/dist/{esm-DfB2yZ0W.js → esm-xcq-O0hS.js} +1 -1
  10. package/dist/federation/builder.test.js +5 -5
  11. package/dist/federation/collection.test.js +3 -3
  12. package/dist/federation/handler.test.js +17 -17
  13. package/dist/federation/inbox.test.js +4 -4
  14. package/dist/federation/keycache.test.js +4 -4
  15. package/dist/federation/kv.test.js +3 -3
  16. package/dist/federation/middleware.test.js +18 -18
  17. package/dist/federation/mod.js +10 -10
  18. package/dist/federation/mq.test.js +3 -3
  19. package/dist/federation/retry.test.js +3 -3
  20. package/dist/federation/router.test.js +3 -3
  21. package/dist/federation/send.test.js +10 -10
  22. package/dist/{http-BiGtJ_-_.js → http-C7XP4cVt.js} +2 -2
  23. package/dist/{http-BS4T8xzZ.js → http-DlvkLl0n.js} +3 -3
  24. package/dist/{inbox-k3pqL9Pe.js → inbox-DvGnzFUb.js} +1 -1
  25. package/dist/{key-Dwj_cIBu.js → key-BFyBwLWB.js} +2 -2
  26. package/dist/{key-DtQqP9H0.js → key-Ddg05wbu.js} +3 -3
  27. package/dist/{key-C3pG0qLv.js → key-Dgfnm6vr.js} +2 -2
  28. package/dist/{key-CFV8UWfV.js → key-WQs389qI.js} +4 -4
  29. package/dist/{keycache-koRfTBmX.js → keycache-DxyDOr9n.js} +1 -1
  30. package/dist/{keys-CSrCaQ3U.js → keys-BVYWwf_S.js} +1 -1
  31. package/dist/{ld-BaX2f6Wk.js → ld-B1cCA1RN.js} +2 -2
  32. package/dist/{lookup-DHhv2GSO.js → lookup-BRRgeEAD.js} +1 -1
  33. package/dist/{lookup-C7GL2Jhg.js → lookup-CArcoL5H.js} +1 -1
  34. package/dist/middleware--CHlNTRO.js +17 -0
  35. package/dist/{middleware-j_oPId1K.js → middleware-CGX6pc3s.js} +13 -13
  36. package/dist/middleware-D8IomGsM.js +26 -0
  37. package/dist/{middleware-CUzOPr8L.js → middleware-DCXAY1MY.js} +10 -10
  38. package/dist/mod.js +10 -10
  39. package/dist/nodeinfo/client.test.js +5 -5
  40. package/dist/nodeinfo/handler.test.js +16 -16
  41. package/dist/nodeinfo/mod.js +2 -2
  42. package/dist/nodeinfo/semver.test.js +3 -3
  43. package/dist/nodeinfo/types.test.js +3 -3
  44. package/dist/{owner-BF3Em-74.js → owner-BZiumxgq.js} +2 -2
  45. package/dist/{proof-7WryK_2V.js → proof-CJBfOgEw.js} +3 -3
  46. package/dist/{proof-COpwsEUD.js → proof-YgVoy7z_.js} +2 -2
  47. package/dist/runtime/authdocloader.test.js +9 -9
  48. package/dist/runtime/docloader.test.js +4 -4
  49. package/dist/runtime/key.test.js +5 -5
  50. package/dist/runtime/langstr.test.js +3 -3
  51. package/dist/runtime/mod.js +6 -6
  52. package/dist/runtime/multibase/multibase.test.js +3 -3
  53. package/dist/runtime/url.test.js +3 -3
  54. package/dist/{send-Cmm6hHfw.js → send--qYlw3Yo.js} +2 -2
  55. package/dist/sig/http.test.js +8 -8
  56. package/dist/sig/key.test.js +6 -6
  57. package/dist/sig/ld.test.js +7 -7
  58. package/dist/sig/mod.js +6 -6
  59. package/dist/sig/owner.test.js +7 -7
  60. package/dist/sig/proof.test.js +7 -7
  61. package/dist/testing/docloader.test.js +3 -3
  62. package/dist/testing/mod.js +3 -3
  63. package/dist/{testing-BMfB0gJs.js → testing-CjSaMVJd.js} +2 -2
  64. package/dist/{type-Dw9GfZfq.js → type-C8XgVGFS.js} +186 -186
  65. package/dist/{types-Li1yRkLu.js → types-WFzjqG4A.js} +1 -1
  66. package/dist/vocab/actor.test.js +5 -5
  67. package/dist/vocab/lookup.test.js +4 -4
  68. package/dist/vocab/mod.js +4 -4
  69. package/dist/vocab/type.test.js +3 -3
  70. package/dist/vocab/vocab.test.js +117 -81
  71. package/dist/{vocab-Bc-SBA36.js → vocab-C_bsny4K.js} +3 -3
  72. package/dist/webfinger/handler.test.js +16 -16
  73. package/dist/webfinger/lookup.test.js +4 -4
  74. package/dist/webfinger/mod.js +2 -2
  75. package/dist/x/cfworkers.test.js +3 -3
  76. package/package.json +1 -1
  77. package/dist/middleware-C8dmIkY0.js +0 -26
  78. package/dist/middleware-DB46Hjo8.js +0 -17
@@ -2,7 +2,7 @@
2
2
  import { Temporal } from "@js-temporal/polyfill";
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
 
5
- import { getUserAgent } from "./docloader-C8ZZWnOn.js";
5
+ import { getUserAgent } from "./docloader-CATXgP4e.js";
6
6
  import { getLogger } from "@logtape/logtape";
7
7
 
8
8
  //#region src/nodeinfo/semver.ts
@@ -3,19 +3,19 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { Application, Group, Organization, Person, Service, __export } from "../type-Dw9GfZfq.js";
6
+ import { Application, Group, Organization, Person, Service, __export } from "../type-C8XgVGFS.js";
7
7
  import { assertEquals } from "../assert_equals-DSbWqCm3.js";
8
8
  import { assert } from "../assert-MZs1qjMx.js";
9
9
  import "../assert_instance_of-DHz7EHNU.js";
10
- import "../lookup-C7GL2Jhg.js";
11
- import { getActorClassByTypeName, getActorHandle, getActorTypeName, isActor, normalizeActorHandle } from "../actor-BCyaLmBO.js";
12
- import { test } from "../testing-BMfB0gJs.js";
10
+ import "../lookup-CArcoL5H.js";
11
+ import { getActorClassByTypeName, getActorHandle, getActorTypeName, isActor, normalizeActorHandle } from "../actor-59y4r5a6.js";
12
+ import { test } from "../testing-CjSaMVJd.js";
13
13
  import { assertStrictEquals } from "../std__assert-X-_kMxKM.js";
14
14
  import { assertFalse, assertRejects } from "../assert_rejects-DiIiJbZn.js";
15
15
  import "../assert_is_error-BPGph1Jx.js";
16
16
  import "../assert_not_equals-f3m3epl3.js";
17
17
  import { assertThrows } from "../assert_throws-BOO88avQ.js";
18
- import { esm_default } from "../esm-DfB2yZ0W.js";
18
+ import { esm_default } from "../esm-xcq-O0hS.js";
19
19
 
20
20
  //#region ../../node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/precondition/PreconditionFailure.js
21
21
  var PreconditionFailure = class PreconditionFailure extends Error {
@@ -3,18 +3,18 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { Collection, Note, Object as Object$1, Person } from "../type-Dw9GfZfq.js";
6
+ import { Collection, Note, Object as Object$1, Person } from "../type-C8XgVGFS.js";
7
7
  import { assertEquals } from "../assert_equals-DSbWqCm3.js";
8
8
  import "../assert-MZs1qjMx.js";
9
9
  import { assertInstanceOf } from "../assert_instance_of-DHz7EHNU.js";
10
- import { lookupObject, traverseCollection } from "../lookup-C7GL2Jhg.js";
11
- import { mockDocumentLoader, test } from "../testing-BMfB0gJs.js";
10
+ import { lookupObject, traverseCollection } from "../lookup-CArcoL5H.js";
11
+ import { mockDocumentLoader, test } from "../testing-CjSaMVJd.js";
12
12
  import "../std__assert-X-_kMxKM.js";
13
13
  import "../assert_rejects-DiIiJbZn.js";
14
14
  import "../assert_is_error-BPGph1Jx.js";
15
15
  import "../assert_not_equals-f3m3epl3.js";
16
16
  import "../assert_throws-BOO88avQ.js";
17
- import { esm_default } from "../esm-DfB2yZ0W.js";
17
+ import { esm_default } from "../esm-xcq-O0hS.js";
18
18
 
19
19
  //#region src/vocab/lookup.test.ts
20
20
  test("lookupObject()", {
package/dist/vocab/mod.js CHANGED
@@ -2,9 +2,9 @@
2
2
  import { Temporal } from "@js-temporal/polyfill";
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
 
5
- import "../docloader-C8ZZWnOn.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, 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, getActorClassByTypeName, getActorHandle, getActorTypeName, getTypeId, isActor, normalizeActorHandle } from "../actor-K1KTn_SO.js";
7
- import "../lookup-DHhv2GSO.js";
8
- import { PUBLIC_COLLECTION, isFediverseHandle, lookupObject, parseFediverseHandle, toAcctUrl, traverseCollection } from "../vocab-Bc-SBA36.js";
5
+ import "../docloader-CATXgP4e.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, 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, getActorClassByTypeName, getActorHandle, getActorTypeName, getTypeId, isActor, normalizeActorHandle } from "../actor-BWi9NHHD.js";
7
+ import "../lookup-BRRgeEAD.js";
8
+ import { PUBLIC_COLLECTION, isFediverseHandle, lookupObject, parseFediverseHandle, toAcctUrl, traverseCollection } from "../vocab-C_bsny4K.js";
9
9
 
10
10
  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, Flag, Follow, Group, Hashtag, Ignore, Image, IntransitiveActivity, Invite, Join, Leave, Like, Link, Listen, Mention, Move, Multikey, Note, Object$1 as Object, Offer, OrderedCollection, OrderedCollectionPage, Organization, PUBLIC_COLLECTION, Page, Person, Place, Profile, PropertyValue, Question, Read, Reject, Relationship, Remove, Service, Source, TentativeAccept, TentativeReject, Tombstone, Travel, Undo, Update, Video, View, getActorClassByTypeName, getActorHandle, getActorTypeName, getTypeId, isActor, isFediverseHandle, lookupObject, normalizeActorHandle, parseFediverseHandle, toAcctUrl, traverseCollection };
@@ -3,10 +3,10 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { Person, getTypeId } from "../type-Dw9GfZfq.js";
6
+ import { Person, getTypeId } from "../type-C8XgVGFS.js";
7
7
  import { assertEquals } from "../assert_equals-DSbWqCm3.js";
8
- import "../lookup-C7GL2Jhg.js";
9
- import { test } from "../testing-BMfB0gJs.js";
8
+ import "../lookup-CArcoL5H.js";
9
+ import { test } from "../testing-CjSaMVJd.js";
10
10
 
11
11
  //#region src/vocab/type.test.ts
12
12
  test("getTypeId()", () => {
@@ -3,25 +3,110 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { Activity, Announce, Collection, Create, CryptographicKey, Follow, Hashtag, LanguageString, Note, Object as Object$1, OrderedCollectionPage, Person, Place, Question, Source, decode, vocab_exports } from "../type-Dw9GfZfq.js";
6
+ import { Activity, Announce, Collection, Create, CryptographicKey, Follow, Hashtag, LanguageString, Note, Object as Object$1, OrderedCollectionPage, Person, Place, Question, Source, decode, vocab_exports } from "../type-C8XgVGFS.js";
7
7
  import { assertEquals } from "../assert_equals-DSbWqCm3.js";
8
8
  import { assert } from "../assert-MZs1qjMx.js";
9
9
  import { assertInstanceOf } from "../assert_instance_of-DHz7EHNU.js";
10
- import "../lookup-C7GL2Jhg.js";
11
- import { mockDocumentLoader, test } from "../testing-BMfB0gJs.js";
10
+ import "../lookup-CArcoL5H.js";
11
+ import { mockDocumentLoader, test } from "../testing-CjSaMVJd.js";
12
12
  import "../std__assert-X-_kMxKM.js";
13
13
  import { assertFalse, assertRejects } from "../assert_rejects-DiIiJbZn.js";
14
14
  import "../assert_is_error-BPGph1Jx.js";
15
15
  import { assertNotEquals } from "../assert_not_equals-f3m3epl3.js";
16
16
  import { assertThrows } from "../assert_throws-BOO88avQ.js";
17
- import { ed25519PublicKey, rsaPublicKey1 } from "../keys-CSrCaQ3U.js";
17
+ import { ed25519PublicKey, rsaPublicKey1 } from "../keys-BVYWwf_S.js";
18
18
  import { pascalCase } from "es-toolkit";
19
19
  import { Validator } from "@cfworker/json-schema";
20
20
  import { readFile, readdir } from "node:fs/promises";
21
21
  import { join } from "node:path";
22
22
 
23
- //#region ../../node_modules/.pnpm/@jsr+std__path@1.1.0/node_modules/@jsr/std__path/_os.js
24
- const isWindows = globalThis.Deno?.build.os === "windows" || globalThis.navigator?.platform?.startsWith("Win") || globalThis.process?.platform?.startsWith("win") || false;
23
+ //#region ../../node_modules/.pnpm/@jsr+std__internal@1.0.10/node_modules/@jsr/std__internal/_os.js
24
+ function checkWindows() {
25
+ const global = globalThis;
26
+ const os = global.Deno?.build?.os;
27
+ return typeof os === "string" ? os === "windows" : global.navigator?.platform?.startsWith("Win") ?? global.process?.platform?.startsWith("win") ?? false;
28
+ }
29
+
30
+ //#endregion
31
+ //#region ../../node_modules/.pnpm/@jsr+std__internal@1.0.10/node_modules/@jsr/std__internal/os.js
32
+ /** Whether the current platform is Windows */ const isWindows = checkWindows();
33
+
34
+ //#endregion
35
+ //#region ../../node_modules/.pnpm/@jsr+std__path@1.1.2/node_modules/@jsr/std__path/_common/from_file_url.js
36
+ function assertArg$3(url) {
37
+ url = url instanceof URL ? url : new URL(url);
38
+ if (url.protocol !== "file:") throw new TypeError(`URL must be a file URL: received "${url.protocol}"`);
39
+ return url;
40
+ }
41
+
42
+ //#endregion
43
+ //#region ../../node_modules/.pnpm/@jsr+std__path@1.1.2/node_modules/@jsr/std__path/posix/from_file_url.js
44
+ /**
45
+ * Converts a file URL to a path string.
46
+ *
47
+ * @example Usage
48
+ * ```ts
49
+ * import { fromFileUrl } from "@std/path/posix/from-file-url";
50
+ * import { assertEquals } from "@std/assert";
51
+ *
52
+ * assertEquals(fromFileUrl(new URL("file:///home/foo")), "/home/foo");
53
+ * ```
54
+ *
55
+ * @param url The file URL to convert.
56
+ * @returns The path string.
57
+ */ function fromFileUrl$2(url) {
58
+ url = assertArg$3(url);
59
+ return decodeURIComponent(url.pathname.replace(/%(?![0-9A-Fa-f]{2})/g, "%25"));
60
+ }
61
+
62
+ //#endregion
63
+ //#region ../../node_modules/.pnpm/@jsr+std__path@1.1.2/node_modules/@jsr/std__path/windows/from_file_url.js
64
+ /**
65
+ * Converts a file URL to a path string.
66
+ *
67
+ * @example Usage
68
+ * ```ts
69
+ * import { fromFileUrl } from "@std/path/windows/from-file-url";
70
+ * import { assertEquals } from "@std/assert";
71
+ *
72
+ * assertEquals(fromFileUrl("file:///home/foo"), "\\home\\foo");
73
+ * assertEquals(fromFileUrl("file:///C:/Users/foo"), "C:\\Users\\foo");
74
+ * assertEquals(fromFileUrl("file://localhost/home/foo"), "\\home\\foo");
75
+ * ```
76
+ *
77
+ * @param url The file URL to convert.
78
+ * @returns The path string.
79
+ */ function fromFileUrl$3(url) {
80
+ url = assertArg$3(url);
81
+ let path = decodeURIComponent(url.pathname.replace(/\//g, "\\").replace(/%(?![0-9A-Fa-f]{2})/g, "%25")).replace(/^\\*([A-Za-z]:)(\\|$)/, "$1\\");
82
+ if (url.hostname !== "") path = `\\\\${url.hostname}${path}`;
83
+ return path;
84
+ }
85
+
86
+ //#endregion
87
+ //#region ../../node_modules/.pnpm/@jsr+std__path@1.1.2/node_modules/@jsr/std__path/from_file_url.js
88
+ /**
89
+ * Converts a file URL to a path string.
90
+ *
91
+ * @example Usage
92
+ * ```ts
93
+ * import { fromFileUrl } from "@std/path/from-file-url";
94
+ * import { assertEquals } from "@std/assert";
95
+ *
96
+ * if (Deno.build.os === "windows") {
97
+ * assertEquals(fromFileUrl("file:///home/foo"), "\\home\\foo");
98
+ * assertEquals(fromFileUrl("file:///C:/Users/foo"), "C:\\Users\\foo");
99
+ * assertEquals(fromFileUrl("file://localhost/home/foo"), "\\home\\foo");
100
+ * } else {
101
+ * assertEquals(fromFileUrl("file:///home/foo"), "/home/foo");
102
+ * }
103
+ * ```
104
+ *
105
+ * @param url The file URL to convert to a path.
106
+ * @returns The path string.
107
+ */ function fromFileUrl(url) {
108
+ return isWindows ? fromFileUrl$3(url) : fromFileUrl$2(url);
109
+ }
25
110
 
26
111
  //#endregion
27
112
  //#region ../../node_modules/.pnpm/@jsr+std__path@1.1.0/node_modules/@jsr/std__path/_common/assert_path.js
@@ -79,27 +164,15 @@ function isPosixPathSeparator(code) {
79
164
  }
80
165
 
81
166
  //#endregion
82
- //#region ../../node_modules/.pnpm/@jsr+std__path@1.1.0/node_modules/@jsr/std__path/windows/from_file_url.js
167
+ //#region ../../node_modules/.pnpm/@jsr+std__url@1.0.0-rc.3/node_modules/@jsr/std__url/_strip.js
83
168
  /**
84
- * Converts a file URL to a path string.
85
- *
86
- * @example Usage
87
- * ```ts
88
- * import { fromFileUrl } from "@std/path/windows/from-file-url";
89
- * import { assertEquals } from "@std/assert";
90
- *
91
- * assertEquals(fromFileUrl("file:///home/foo"), "\\home\\foo");
92
- * assertEquals(fromFileUrl("file:///C:/Users/foo"), "C:\\Users\\foo");
93
- * assertEquals(fromFileUrl("file://localhost/home/foo"), "\\home\\foo");
94
- * ```
169
+ * Strips any hash (eg. `#header`) or search parameters (eg. `?foo=bar`) from the provided URL.
95
170
  *
96
- * @param url The file URL to convert.
97
- * @returns The path string.
98
- */ function fromFileUrl$2(url) {
99
- url = assertArg$2(url);
100
- let path = decodeURIComponent(url.pathname.replace(/\//g, "\\").replace(/%(?![0-9A-Fa-f]{2})/g, "%25")).replace(/^\\*([A-Za-z]:)(\\|$)/, "$1\\");
101
- if (url.hostname !== "") path = `\\\\${url.hostname}${path}`;
102
- return path;
171
+ * (Mutates the original url provided)
172
+ * @param url to be stripped.
173
+ */ function strip(url) {
174
+ url.hash = "";
175
+ url.search = "";
103
176
  }
104
177
 
105
178
  //#endregion
@@ -154,28 +227,33 @@ function assertArg$1(path) {
154
227
  }
155
228
 
156
229
  //#endregion
157
- //#region ../../node_modules/.pnpm/@jsr+std__path@1.1.0/node_modules/@jsr/std__path/from_file_url.js
230
+ //#region ../../node_modules/.pnpm/@jsr+std__url@1.0.0-rc.3/node_modules/@jsr/std__url/dirname.js
158
231
  /**
159
- * Converts a file URL to a path string.
232
+ * Returns the directory path URL of a URL or URL string.
233
+ *
234
+ * The directory path is the portion of a URL up to but excluding the final path
235
+ * segment. URL queries and hashes are ignored.
236
+ *
237
+ * @param url URL to extract the directory from.
238
+ * @returns The directory path URL of the URL.
160
239
  *
161
240
  * @example Usage
162
241
  * ```ts
163
- * import { fromFileUrl } from "@std/path/from-file-url";
242
+ * import { dirname } from "@std/url/dirname";
164
243
  * import { assertEquals } from "@std/assert";
165
244
  *
166
- * if (Deno.build.os === "windows") {
167
- * assertEquals(fromFileUrl("file:///home/foo"), "\\home\\foo");
168
- * assertEquals(fromFileUrl("file:///C:/Users/foo"), "C:\\Users\\foo");
169
- * assertEquals(fromFileUrl("file://localhost/home/foo"), "\\home\\foo");
170
- * } else {
171
- * assertEquals(fromFileUrl("file:///home/foo"), "/home/foo");
172
- * }
245
+ * assertEquals(dirname("https://deno.land/std/path/mod.ts"), new URL("https://deno.land/std/path"));
246
+ * assertEquals(dirname(new URL("https://deno.land/std/path/mod.ts")), new URL("https://deno.land/std/path"));
173
247
  * ```
174
248
  *
175
- * @param url The file URL to convert to a path.
176
- * @returns The path string.
177
- */ function fromFileUrl(url) {
178
- return isWindows ? fromFileUrl$2(url) : fromFileUrl$1(url);
249
+ * @deprecated Use
250
+ * {@linkcode https://jsr.io/@std/path/doc/posix/~/dirname | @std/path/posix/dirname}
251
+ * instead (examples included). `@std/url` will be removed in the future.
252
+ */ function dirname$1(url) {
253
+ url = new URL(url);
254
+ strip(url);
255
+ url.pathname = dirname(url.pathname);
256
+ return url;
179
257
  }
180
258
 
181
259
  //#endregion
@@ -325,48 +403,6 @@ function normalizeString(path, allowAboveRoot, separator, isPathSeparator) {
325
403
  return joined === "" ? "." : normalize(joined);
326
404
  }
327
405
 
328
- //#endregion
329
- //#region ../../node_modules/.pnpm/@jsr+std__url@1.0.0-rc.3/node_modules/@jsr/std__url/_strip.js
330
- /**
331
- * Strips any hash (eg. `#header`) or search parameters (eg. `?foo=bar`) from the provided URL.
332
- *
333
- * (Mutates the original url provided)
334
- * @param url to be stripped.
335
- */ function strip(url) {
336
- url.hash = "";
337
- url.search = "";
338
- }
339
-
340
- //#endregion
341
- //#region ../../node_modules/.pnpm/@jsr+std__url@1.0.0-rc.3/node_modules/@jsr/std__url/dirname.js
342
- /**
343
- * Returns the directory path URL of a URL or URL string.
344
- *
345
- * The directory path is the portion of a URL up to but excluding the final path
346
- * segment. URL queries and hashes are ignored.
347
- *
348
- * @param url URL to extract the directory from.
349
- * @returns The directory path URL of the URL.
350
- *
351
- * @example Usage
352
- * ```ts
353
- * import { dirname } from "@std/url/dirname";
354
- * import { assertEquals } from "@std/assert";
355
- *
356
- * assertEquals(dirname("https://deno.land/std/path/mod.ts"), new URL("https://deno.land/std/path"));
357
- * assertEquals(dirname(new URL("https://deno.land/std/path/mod.ts")), new URL("https://deno.land/std/path"));
358
- * ```
359
- *
360
- * @deprecated Use
361
- * {@linkcode https://jsr.io/@std/path/doc/posix/~/dirname | @std/path/posix/dirname}
362
- * instead (examples included). `@std/url` will be removed in the future.
363
- */ function dirname$1(url) {
364
- url = new URL(url);
365
- strip(url);
366
- url.pathname = dirname(url.pathname);
367
- return url;
368
- }
369
-
370
406
  //#endregion
371
407
  //#region ../../node_modules/.pnpm/@jsr+std__url@1.0.0-rc.3/node_modules/@jsr/std__url/join.js
372
408
  /**
@@ -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-C8ZZWnOn.js";
6
- import { Object as Object$1, getTypeId } from "./actor-K1KTn_SO.js";
7
- import { lookupWebFinger } from "./lookup-DHhv2GSO.js";
5
+ import { deno_default, getDocumentLoader } from "./docloader-CATXgP4e.js";
6
+ import { Object as Object$1, getTypeId } from "./actor-BWi9NHHD.js";
7
+ import { lookupWebFinger } from "./lookup-BRRgeEAD.js";
8
8
  import { getLogger } from "@logtape/logtape";
9
9
  import { SpanStatusCode, trace } from "@opentelemetry/api";
10
10
  import { delay } from "es-toolkit";
@@ -3,30 +3,30 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { Image, Link, Person } from "../type-Dw9GfZfq.js";
6
+ import { Image, Link, Person } from "../type-C8XgVGFS.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, handleWebFinger } from "../middleware-j_oPId1K.js";
11
+ import { createFederation, handleWebFinger } from "../middleware-CGX6pc3s.js";
12
12
  import "../semver-dArNLkR9.js";
13
- import "../client-B7GDAvYP.js";
14
- import "../lookup-C7GL2Jhg.js";
13
+ import "../client-DXLpKovs.js";
14
+ import "../lookup-CArcoL5H.js";
15
15
  import "../types-BIgY6c-l.js";
16
- import "../actor-BCyaLmBO.js";
17
- import "../key-C3pG0qLv.js";
18
- import "../http-BiGtJ_-_.js";
19
- import "../authdocloader-Dt5W9PIa.js";
20
- import "../ld-BaX2f6Wk.js";
21
- import "../owner-BF3Em-74.js";
22
- import "../proof-COpwsEUD.js";
23
- import "../inbox-k3pqL9Pe.js";
24
- import "../builder-CaMxQWOJ.js";
16
+ import "../actor-59y4r5a6.js";
17
+ import "../key-Dgfnm6vr.js";
18
+ import "../http-C7XP4cVt.js";
19
+ import "../authdocloader-2RmCv76L.js";
20
+ import "../ld-B1cCA1RN.js";
21
+ import "../owner-BZiumxgq.js";
22
+ import "../proof-YgVoy7z_.js";
23
+ import "../inbox-DvGnzFUb.js";
24
+ import "../builder-B2zB3_gm.js";
25
25
  import "../collection-CSzG2j1P.js";
26
- import "../keycache-koRfTBmX.js";
26
+ import "../keycache-DxyDOr9n.js";
27
27
  import "../retry-D4GJ670a.js";
28
- import "../send-Cmm6hHfw.js";
29
- import { createRequestContext, test } from "../testing-BMfB0gJs.js";
28
+ import "../send--qYlw3Yo.js";
29
+ import { createRequestContext, test } from "../testing-CjSaMVJd.js";
30
30
  import "../std__assert-X-_kMxKM.js";
31
31
  import "../assert_rejects-DiIiJbZn.js";
32
32
  import "../assert_is_error-BPGph1Jx.js";
@@ -3,18 +3,18 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { lookupWebFinger } from "../type-Dw9GfZfq.js";
6
+ import { lookupWebFinger } from "../type-C8XgVGFS.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 "../lookup-C7GL2Jhg.js";
11
- import { test } from "../testing-BMfB0gJs.js";
10
+ import "../lookup-CArcoL5H.js";
11
+ import { test } from "../testing-CjSaMVJd.js";
12
12
  import "../std__assert-X-_kMxKM.js";
13
13
  import "../assert_rejects-DiIiJbZn.js";
14
14
  import "../assert_is_error-BPGph1Jx.js";
15
15
  import "../assert_not_equals-f3m3epl3.js";
16
16
  import "../assert_throws-BOO88avQ.js";
17
- import { esm_default } from "../esm-DfB2yZ0W.js";
17
+ import { esm_default } from "../esm-xcq-O0hS.js";
18
18
  import { withTimeout } from "es-toolkit";
19
19
 
20
20
  //#region src/webfinger/lookup.test.ts
@@ -2,8 +2,8 @@
2
2
  import { Temporal } from "@js-temporal/polyfill";
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
 
5
- import "../docloader-C8ZZWnOn.js";
6
- import { lookupWebFinger } from "../lookup-DHhv2GSO.js";
5
+ import "../docloader-CATXgP4e.js";
6
+ import { lookupWebFinger } from "../lookup-BRRgeEAD.js";
7
7
  import "../webfinger-C3GIyXIg.js";
8
8
 
9
9
  export { lookupWebFinger };
@@ -3,12 +3,12 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import "../type-Dw9GfZfq.js";
6
+ import "../type-C8XgVGFS.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 "../lookup-C7GL2Jhg.js";
11
- import { test } from "../testing-BMfB0gJs.js";
10
+ import "../lookup-CArcoL5H.js";
11
+ import { test } from "../testing-CjSaMVJd.js";
12
12
  import "../std__assert-X-_kMxKM.js";
13
13
  import "../assert_rejects-DiIiJbZn.js";
14
14
  import "../assert_is_error-BPGph1Jx.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fedify/fedify",
3
- "version": "2.0.0-pr.393.1513+eed3f9a5",
3
+ "version": "2.0.0-pr.401.1562+ede5d077",
4
4
  "description": "An ActivityPub server framework",
5
5
  "keywords": [
6
6
  "ActivityPub",
@@ -1,26 +0,0 @@
1
-
2
- import { Temporal } from "@js-temporal/polyfill";
3
- import { URLPattern } from "urlpattern-polyfill";
4
- globalThis.addEventListener = () => {};
5
-
6
- import "./type-Dw9GfZfq.js";
7
- import { ContextImpl, FederationImpl, InboxContextImpl, KvSpecDeterminer, createFederation } from "./middleware-j_oPId1K.js";
8
- import "./semver-dArNLkR9.js";
9
- import "./client-B7GDAvYP.js";
10
- import "./lookup-C7GL2Jhg.js";
11
- import "./types-BIgY6c-l.js";
12
- import "./actor-BCyaLmBO.js";
13
- import "./key-C3pG0qLv.js";
14
- import "./http-BiGtJ_-_.js";
15
- import "./authdocloader-Dt5W9PIa.js";
16
- import "./ld-BaX2f6Wk.js";
17
- import "./owner-BF3Em-74.js";
18
- import "./proof-COpwsEUD.js";
19
- import "./inbox-k3pqL9Pe.js";
20
- import "./builder-CaMxQWOJ.js";
21
- import "./collection-CSzG2j1P.js";
22
- import "./keycache-koRfTBmX.js";
23
- import "./retry-D4GJ670a.js";
24
- import "./send-Cmm6hHfw.js";
25
-
26
- export { FederationImpl };
@@ -1,17 +0,0 @@
1
-
2
- import { Temporal } from "@js-temporal/polyfill";
3
- import { URLPattern } from "urlpattern-polyfill";
4
-
5
- import "./transformers-Dna8Fg7k.js";
6
- import "./docloader-C8ZZWnOn.js";
7
- import "./actor-K1KTn_SO.js";
8
- import { ContextImpl, FederationImpl, InboxContextImpl, KvSpecDeterminer, createFederation } from "./middleware-CUzOPr8L.js";
9
- import "./lookup-DHhv2GSO.js";
10
- import "./key-Dwj_cIBu.js";
11
- import "./http-BS4T8xzZ.js";
12
- import "./proof-7WryK_2V.js";
13
- import "./types-Li1yRkLu.js";
14
- import "./authdocloader-Z01aN-9E.js";
15
- import "./vocab-Bc-SBA36.js";
16
-
17
- export { FederationImpl };