@fedify/fedify 2.0.0-pr.390.1523 → 2.0.0-pr.390.1532
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-CLKyl77Q.js → actor-4MFFJX4d.js} +187 -187
- package/dist/{actor-kwTBx5wP.js → actor-Da8tjZhY.js} +1 -1
- package/dist/{authdocloader-BtWNvE3E.js → authdocloader-DPX3QYDb.js} +3 -3
- package/dist/{authdocloader-BzIOa0aq.js → authdocloader-xG90Xsg8.js} +3 -3
- package/dist/{builder-Bqwb_o7p.js → builder-B57zNcNU.js} +4 -4
- package/dist/{client-CqN7Ss2-.js → client-CTwOTEpG.js} +1 -1
- package/dist/compat/mod.d.ts +2 -2
- package/dist/compat/transformers.test.js +16 -16
- package/dist/{context-DmlbRh9p.d.ts → context-3ICnZJKt.d.ts} +0 -6
- package/dist/{docloader-Bnu4aRsm.js → docloader-BNCEQ8_w.js} +1 -1
- package/dist/{esm-BUZPmLIC.js → esm-DU3lVyL0.js} +1 -1
- package/dist/federation/builder.test.js +5 -5
- package/dist/federation/collection.test.js +3 -3
- package/dist/federation/handler.test.js +17 -17
- package/dist/federation/inbox.test.js +4 -4
- package/dist/federation/keycache.test.js +4 -4
- package/dist/federation/kv.test.js +3 -3
- package/dist/federation/middleware.test.js +46 -47
- package/dist/federation/mod.d.ts +1 -1
- package/dist/federation/mod.js +10 -10
- package/dist/federation/mq.test.js +3 -3
- package/dist/federation/retry.test.js +3 -3
- package/dist/federation/router.test.js +3 -3
- package/dist/federation/send.test.js +10 -10
- package/dist/{http-C39tuq-8.js → http-DajzepP_.js} +3 -3
- package/dist/{http-lnff2mG0.js → http-zGK3XGn5.js} +2 -2
- package/dist/{inbox-lGeVAzu1.js → inbox-B2Bd8LMj.js} +1 -1
- package/dist/{key-Cur4pLgy.js → key-BDFYiOvP.js} +2 -2
- package/dist/{key-BwkOBQ52.js → key-CX3WVkhi.js} +2 -2
- package/dist/{key-7bnQrrXN.js → key-CjGLDAgt.js} +4 -4
- package/dist/{key-FcTIQVEL.js → key-D1N8nXIk.js} +3 -3
- package/dist/{keycache-DYHgHpJ0.js → keycache-QIZeg0h7.js} +1 -1
- package/dist/{keys-D4a_F21_.js → keys-Cti7eNH_.js} +1 -1
- package/dist/{ld-CT0iSYnT.js → ld-BbWr_Ew7.js} +2 -2
- package/dist/{lookup-D1k-d4cZ.js → lookup-CEMhtkh0.js} +1 -1
- package/dist/{lookup-MDKQQUBm.js → lookup-Kclw0b25.js} +1 -1
- package/dist/{middleware-BxPsIxkb.js → middleware-CHgb31MO.js} +12 -17
- package/dist/middleware-CPZsfDRE.js +26 -0
- package/dist/{middleware-B06VqNXn.js → middleware-DGR0mjEf.js} +15 -20
- package/dist/middleware-HHBznx20.js +17 -0
- package/dist/{mod-0EysZ-dJ.d.ts → mod-CWxqOAci.d.ts} +1 -1
- package/dist/mod.d.ts +2 -2
- package/dist/mod.js +10 -10
- package/dist/nodeinfo/client.test.js +5 -5
- package/dist/nodeinfo/handler.test.js +16 -16
- package/dist/nodeinfo/mod.js +2 -2
- package/dist/nodeinfo/semver.test.js +3 -3
- package/dist/nodeinfo/types.test.js +3 -3
- package/dist/{owner-DpdBc0Rq.js → owner-Ck4PMsvA.js} +2 -2
- package/dist/{proof-m6tOlm_m.js → proof-99x3uOrg.js} +3 -3
- package/dist/{proof-D85b-bL4.js → proof-BT-xl3G4.js} +2 -2
- package/dist/runtime/authdocloader.test.js +9 -9
- package/dist/runtime/docloader.test.js +4 -4
- package/dist/runtime/key.test.js +5 -5
- package/dist/runtime/langstr.test.js +3 -3
- package/dist/runtime/mod.js +6 -6
- package/dist/runtime/multibase/multibase.test.js +3 -3
- package/dist/runtime/url.test.js +3 -3
- package/dist/{send-BN0gxKhZ.js → send-CbaVfVDB.js} +2 -2
- package/dist/sig/http.test.js +8 -8
- package/dist/sig/key.test.js +6 -6
- package/dist/sig/ld.test.js +7 -7
- package/dist/sig/mod.js +6 -6
- package/dist/sig/owner.test.js +7 -7
- package/dist/sig/proof.test.js +7 -7
- package/dist/testing/docloader.test.js +3 -3
- package/dist/testing/mod.js +3 -3
- package/dist/{testing-D_qOfx8m.js → testing-5l-PiAjn.js} +2 -2
- package/dist/{type-DU7BZjNM.js → type-CYq_wkij.js} +186 -186
- package/dist/{types-Cbi35ib8.js → types-DN27G9IQ.js} +1 -1
- package/dist/vocab/actor.test.js +5 -5
- package/dist/vocab/lookup.test.js +4 -4
- package/dist/vocab/mod.js +4 -4
- package/dist/vocab/type.test.js +3 -3
- package/dist/vocab/vocab.test.js +117 -81
- package/dist/{vocab-BcbSuLzi.js → vocab-BZIbbwIY.js} +3 -3
- package/dist/webfinger/handler.test.js +16 -16
- package/dist/webfinger/lookup.test.js +4 -4
- package/dist/webfinger/mod.js +2 -2
- package/dist/x/cfworkers.test.js +3 -3
- package/dist/x/hono.d.ts +1 -1
- package/dist/x/sveltekit.d.ts +1 -1
- package/package.json +1 -1
- package/dist/middleware-ClucF05j.js +0 -26
- package/dist/middleware-DJyjSofe.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-
|
5
|
+
import { getUserAgent } from "./docloader-BNCEQ8_w.js";
|
6
6
|
import { getLogger } from "@logtape/logtape";
|
7
7
|
|
8
8
|
//#region src/nodeinfo/semver.ts
|
package/dist/vocab/actor.test.js
CHANGED
@@ -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-
|
6
|
+
import { Application, Group, Organization, Person, Service, __export } from "../type-CYq_wkij.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-
|
11
|
-
import { getActorClassByTypeName, getActorHandle, getActorTypeName, isActor, normalizeActorHandle } from "../actor-
|
12
|
-
import { test } from "../testing-
|
10
|
+
import "../lookup-CEMhtkh0.js";
|
11
|
+
import { getActorClassByTypeName, getActorHandle, getActorTypeName, isActor, normalizeActorHandle } from "../actor-Da8tjZhY.js";
|
12
|
+
import { test } from "../testing-5l-PiAjn.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-
|
18
|
+
import { esm_default } from "../esm-DU3lVyL0.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-
|
6
|
+
import { Collection, Note, Object as Object$1, Person } from "../type-CYq_wkij.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-
|
11
|
-
import { mockDocumentLoader, test } from "../testing-
|
10
|
+
import { lookupObject, traverseCollection } from "../lookup-CEMhtkh0.js";
|
11
|
+
import { mockDocumentLoader, test } from "../testing-5l-PiAjn.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-
|
17
|
+
import { esm_default } from "../esm-DU3lVyL0.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-
|
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-
|
7
|
-
import "../lookup-
|
8
|
-
import { PUBLIC_COLLECTION, isFediverseHandle, lookupObject, parseFediverseHandle, toAcctUrl, traverseCollection } from "../vocab-
|
5
|
+
import "../docloader-BNCEQ8_w.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-4MFFJX4d.js";
|
7
|
+
import "../lookup-Kclw0b25.js";
|
8
|
+
import { PUBLIC_COLLECTION, isFediverseHandle, lookupObject, parseFediverseHandle, toAcctUrl, traverseCollection } from "../vocab-BZIbbwIY.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 };
|
package/dist/vocab/type.test.js
CHANGED
@@ -3,10 +3,10 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import { Person, getTypeId } from "../type-
|
6
|
+
import { Person, getTypeId } from "../type-CYq_wkij.js";
|
7
7
|
import { assertEquals } from "../assert_equals-DSbWqCm3.js";
|
8
|
-
import "../lookup-
|
9
|
-
import { test } from "../testing-
|
8
|
+
import "../lookup-CEMhtkh0.js";
|
9
|
+
import { test } from "../testing-5l-PiAjn.js";
|
10
10
|
|
11
11
|
//#region src/vocab/type.test.ts
|
12
12
|
test("getTypeId()", () => {
|
package/dist/vocab/vocab.test.js
CHANGED
@@ -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-
|
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-CYq_wkij.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-
|
11
|
-
import { mockDocumentLoader, test } from "../testing-
|
10
|
+
import "../lookup-CEMhtkh0.js";
|
11
|
+
import { mockDocumentLoader, test } from "../testing-5l-PiAjn.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-
|
17
|
+
import { ed25519PublicKey, rsaPublicKey1 } from "../keys-Cti7eNH_.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+
|
24
|
-
|
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+
|
167
|
+
//#region ../../node_modules/.pnpm/@jsr+std__url@1.0.0-rc.3/node_modules/@jsr/std__url/_strip.js
|
83
168
|
/**
|
84
|
-
*
|
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
|
-
*
|
97
|
-
* @
|
98
|
-
*/ function
|
99
|
-
url =
|
100
|
-
|
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+
|
230
|
+
//#region ../../node_modules/.pnpm/@jsr+std__url@1.0.0-rc.3/node_modules/@jsr/std__url/dirname.js
|
158
231
|
/**
|
159
|
-
*
|
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 {
|
242
|
+
* import { dirname } from "@std/url/dirname";
|
164
243
|
* import { assertEquals } from "@std/assert";
|
165
244
|
*
|
166
|
-
*
|
167
|
-
*
|
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
|
-
* @
|
176
|
-
* @
|
177
|
-
|
178
|
-
|
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-
|
6
|
-
import { Object as Object$1, getTypeId } from "./actor-
|
7
|
-
import { lookupWebFinger } from "./lookup-
|
5
|
+
import { deno_default, getDocumentLoader } from "./docloader-BNCEQ8_w.js";
|
6
|
+
import { Object as Object$1, getTypeId } from "./actor-4MFFJX4d.js";
|
7
|
+
import { lookupWebFinger } from "./lookup-Kclw0b25.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-
|
6
|
+
import { Image, Link, Person } from "../type-CYq_wkij.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-
|
11
|
+
import { createFederation, handleWebFinger } from "../middleware-DGR0mjEf.js";
|
12
12
|
import "../semver-dArNLkR9.js";
|
13
|
-
import "../client-
|
14
|
-
import "../lookup-
|
13
|
+
import "../client-CTwOTEpG.js";
|
14
|
+
import "../lookup-CEMhtkh0.js";
|
15
15
|
import "../types-BIgY6c-l.js";
|
16
|
-
import "../actor-
|
17
|
-
import "../key-
|
18
|
-
import "../http-
|
19
|
-
import "../authdocloader-
|
20
|
-
import "../ld-
|
21
|
-
import "../owner-
|
22
|
-
import "../proof-
|
23
|
-
import "../inbox-
|
24
|
-
import "../builder-
|
16
|
+
import "../actor-Da8tjZhY.js";
|
17
|
+
import "../key-CX3WVkhi.js";
|
18
|
+
import "../http-zGK3XGn5.js";
|
19
|
+
import "../authdocloader-xG90Xsg8.js";
|
20
|
+
import "../ld-BbWr_Ew7.js";
|
21
|
+
import "../owner-Ck4PMsvA.js";
|
22
|
+
import "../proof-BT-xl3G4.js";
|
23
|
+
import "../inbox-B2Bd8LMj.js";
|
24
|
+
import "../builder-B57zNcNU.js";
|
25
25
|
import "../collection-CSzG2j1P.js";
|
26
|
-
import "../keycache-
|
26
|
+
import "../keycache-QIZeg0h7.js";
|
27
27
|
import "../retry-D4GJ670a.js";
|
28
|
-
import "../send-
|
29
|
-
import { createRequestContext, test } from "../testing-
|
28
|
+
import "../send-CbaVfVDB.js";
|
29
|
+
import { createRequestContext, test } from "../testing-5l-PiAjn.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-
|
6
|
+
import { lookupWebFinger } from "../type-CYq_wkij.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-
|
11
|
-
import { test } from "../testing-
|
10
|
+
import "../lookup-CEMhtkh0.js";
|
11
|
+
import { test } from "../testing-5l-PiAjn.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-
|
17
|
+
import { esm_default } from "../esm-DU3lVyL0.js";
|
18
18
|
import { withTimeout } from "es-toolkit";
|
19
19
|
|
20
20
|
//#region src/webfinger/lookup.test.ts
|
package/dist/webfinger/mod.js
CHANGED
@@ -2,8 +2,8 @@
|
|
2
2
|
import { Temporal } from "@js-temporal/polyfill";
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
|
5
|
-
import "../docloader-
|
6
|
-
import { lookupWebFinger } from "../lookup-
|
5
|
+
import "../docloader-BNCEQ8_w.js";
|
6
|
+
import { lookupWebFinger } from "../lookup-Kclw0b25.js";
|
7
7
|
import "../webfinger-C3GIyXIg.js";
|
8
8
|
|
9
9
|
export { lookupWebFinger };
|
package/dist/x/cfworkers.test.js
CHANGED
@@ -3,12 +3,12 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import "../type-
|
6
|
+
import "../type-CYq_wkij.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-
|
11
|
-
import { test } from "../testing-
|
10
|
+
import "../lookup-CEMhtkh0.js";
|
11
|
+
import { test } from "../testing-5l-PiAjn.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/dist/x/hono.d.ts
CHANGED
@@ -9,7 +9,7 @@ import "../http-DqSNLFNY.js";
|
|
9
9
|
import "../owner-CQPnQVtf.js";
|
10
10
|
import "../mod-Cxt4Kpf6.js";
|
11
11
|
import "../lookup-3czM5mmU.js";
|
12
|
-
import { Federation } from "../context-
|
12
|
+
import { Federation } from "../context-3ICnZJKt.js";
|
13
13
|
import "../mq-CRGm1e_F.js";
|
14
14
|
|
15
15
|
//#region src/x/hono.d.ts
|
package/dist/x/sveltekit.d.ts
CHANGED
@@ -9,7 +9,7 @@ import "../http-DqSNLFNY.js";
|
|
9
9
|
import "../owner-CQPnQVtf.js";
|
10
10
|
import "../mod-Cxt4Kpf6.js";
|
11
11
|
import "../lookup-3czM5mmU.js";
|
12
|
-
import { Federation } from "../context-
|
12
|
+
import { Federation } from "../context-3ICnZJKt.js";
|
13
13
|
import "../mq-CRGm1e_F.js";
|
14
14
|
|
15
15
|
//#region src/x/sveltekit.d.ts
|
package/package.json
CHANGED
@@ -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-DU7BZjNM.js";
|
7
|
-
import { ContextImpl, FederationImpl, InboxContextImpl, KvSpecDeterminer, createFederation } from "./middleware-B06VqNXn.js";
|
8
|
-
import "./semver-dArNLkR9.js";
|
9
|
-
import "./client-CqN7Ss2-.js";
|
10
|
-
import "./lookup-D1k-d4cZ.js";
|
11
|
-
import "./types-BIgY6c-l.js";
|
12
|
-
import "./actor-kwTBx5wP.js";
|
13
|
-
import "./key-BwkOBQ52.js";
|
14
|
-
import "./http-lnff2mG0.js";
|
15
|
-
import "./authdocloader-BzIOa0aq.js";
|
16
|
-
import "./ld-CT0iSYnT.js";
|
17
|
-
import "./owner-DpdBc0Rq.js";
|
18
|
-
import "./proof-D85b-bL4.js";
|
19
|
-
import "./inbox-lGeVAzu1.js";
|
20
|
-
import "./builder-Bqwb_o7p.js";
|
21
|
-
import "./collection-CSzG2j1P.js";
|
22
|
-
import "./keycache-DYHgHpJ0.js";
|
23
|
-
import "./retry-D4GJ670a.js";
|
24
|
-
import "./send-BN0gxKhZ.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-Bnu4aRsm.js";
|
7
|
-
import "./actor-CLKyl77Q.js";
|
8
|
-
import { ContextImpl, FederationImpl, InboxContextImpl, KvSpecDeterminer, createFederation } from "./middleware-BxPsIxkb.js";
|
9
|
-
import "./lookup-MDKQQUBm.js";
|
10
|
-
import "./key-Cur4pLgy.js";
|
11
|
-
import "./http-C39tuq-8.js";
|
12
|
-
import "./proof-m6tOlm_m.js";
|
13
|
-
import "./types-Cbi35ib8.js";
|
14
|
-
import "./authdocloader-BtWNvE3E.js";
|
15
|
-
import "./vocab-BcbSuLzi.js";
|
16
|
-
|
17
|
-
export { FederationImpl };
|