@fedify/fedify 1.6.7 → 1.6.9
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-fvEQljsh.js → actor-DY_ediuQ.js} +179 -225
- package/dist/{actor-CJUOVkus.js → actor-qNVQigMJ.js} +3 -3
- package/dist/{authdocloader-UN6bFYqE.js → authdocloader-ColUu5fh.js} +3 -3
- package/dist/{authdocloader-sLr3_CKo.js → authdocloader-DTpSS6vq.js} +3 -3
- package/dist/{builder-Dwwf9LZs.js → builder-CTAic_n3.js} +3 -3
- package/dist/{client-BOQZYjsA.js → client-Bp-TqQI6.js} +1 -1
- package/dist/compat/transformers.test.d.ts +2 -1
- package/dist/compat/transformers.test.js +19 -18
- package/dist/{context-B9H6ypbl.js → context-BAx407GT.js} +2 -2
- package/dist/{docloader-D27WkV2-.js → docloader-NmruKwBX.js} +2 -2
- package/dist/{docloader-BpcD_SLO.js → docloader-UqcHJRjL.js} +2 -2
- package/dist/{esm-CASHO3OR.js → esm-Db4De7AS.js} +5 -7
- package/dist/federation/builder.test.d.ts +2 -1
- package/dist/federation/builder.test.js +6 -5
- package/dist/federation/collection.test.d.ts +2 -1
- package/dist/federation/collection.test.js +2 -1
- package/dist/federation/handler.test.d.ts +2 -1
- package/dist/federation/handler.test.js +79 -20
- package/dist/federation/inbox.test.d.ts +2 -1
- package/dist/federation/inbox.test.js +5 -4
- package/dist/federation/keycache.test.d.ts +2 -1
- package/dist/federation/keycache.test.js +5 -4
- package/dist/federation/kv.test.d.ts +2 -1
- package/dist/federation/kv.test.js +2 -1
- package/dist/federation/middleware.test.d.ts +2 -1
- package/dist/federation/middleware.test.js +21 -20
- package/dist/federation/mod.js +10 -10
- package/dist/federation/mq.test.d.ts +2 -1
- package/dist/federation/mq.test.js +2 -1
- package/dist/federation/retry.test.d.ts +2 -1
- package/dist/federation/retry.test.js +2 -1
- package/dist/federation/router.test.d.ts +2 -1
- package/dist/federation/router.test.js +2 -1
- package/dist/federation/send.test.d.ts +2 -1
- package/dist/federation/send.test.js +12 -11
- package/dist/{http-DEMqisx6.js → http-DjFoawa6.js} +3 -3
- package/dist/{http-hhXcurBA.js → http-XWz7prGl.js} +3 -3
- package/dist/{inbox-Dn9cGz72.js → inbox-eAHML3xw.js} +2 -2
- package/dist/{key-BS8tcPCt.js → key-B4UFmNvL.js} +2 -2
- package/dist/{key-heR1cMpe.js → key-ByAyOg3m.js} +5 -5
- package/dist/{key-Djjl3-NI.js → key-C1UhN1LT.js} +4 -4
- package/dist/{key-HZNzd-FS.js → key-CUEyp_yz.js} +3 -3
- package/dist/{keycache-DxrNxDV9.js → keycache-YqFJn7EL.js} +1 -1
- package/dist/{keys-cVHkVfkB.js → keys-Dd_v3HDs.js} +1 -1
- package/dist/{ld-BHlSwz3F.js → ld-D8WCx-VU.js} +3 -3
- package/dist/{lookup-d9KQSGH3.js → lookup-DEN8lvde.js} +1 -1
- package/dist/{lookup-D1UwpzKL.js → lookup-DHlMvC3Q.js} +1 -1
- package/dist/{lookup-DZ5JT-dZ.js → lookup-DggOHyrB.js} +3 -3
- package/dist/middleware-B-ysz1Gc.js +17 -0
- package/dist/middleware-Bmr-V4-W.js +33 -0
- package/dist/{middleware-DbABwSSq.js → middleware-D_j7IO2V.js} +29 -29
- package/dist/{middleware-jYmGxpPU.js → middleware-mmR5eUDI.js} +24 -24
- package/dist/mod.js +10 -10
- package/dist/nodeinfo/client.test.d.ts +2 -1
- package/dist/nodeinfo/client.test.js +5 -4
- package/dist/nodeinfo/handler.test.d.ts +2 -1
- package/dist/nodeinfo/handler.test.js +20 -19
- package/dist/nodeinfo/mod.js +2 -2
- package/dist/nodeinfo/semver.test.d.ts +2 -1
- package/dist/nodeinfo/semver.test.js +2 -1
- package/dist/nodeinfo/types.test.d.ts +2 -1
- package/dist/nodeinfo/types.test.js +2 -1
- package/dist/{owner-CY_4qryA.js → owner-lYBh2f5Z.js} +3 -3
- package/dist/{proof-NEDLECyh.js → proof-BAoGg0DQ.js} +3 -3
- package/dist/{proof-ZOvHKN5-.js → proof-CPamyAcG.js} +3 -3
- package/dist/runtime/authdocloader.test.d.ts +2 -1
- package/dist/runtime/authdocloader.test.js +11 -10
- package/dist/runtime/docloader.test.d.ts +2 -1
- package/dist/runtime/docloader.test.js +28 -3
- package/dist/runtime/key.test.d.ts +2 -1
- package/dist/runtime/key.test.js +7 -6
- package/dist/runtime/langstr.test.d.ts +2 -1
- package/dist/runtime/langstr.test.js +2 -1
- package/dist/runtime/mod.js +6 -6
- package/dist/runtime/multibase/multibase.test.d.ts +2 -1
- package/dist/runtime/multibase/multibase.test.js +2 -1
- package/dist/runtime/url.test.d.ts +2 -1
- package/dist/runtime/url.test.js +2 -1
- package/dist/{send-BrO7rgzl.js → send-CrbpYrfD.js} +2 -2
- package/dist/sig/http.test.d.ts +2 -1
- package/dist/sig/http.test.js +10 -9
- package/dist/sig/key.test.d.ts +2 -1
- package/dist/sig/key.test.js +8 -7
- package/dist/sig/ld.test.d.ts +2 -1
- package/dist/sig/ld.test.js +9 -8
- package/dist/sig/mod.js +6 -6
- package/dist/sig/owner.test.d.ts +2 -1
- package/dist/sig/owner.test.js +10 -9
- package/dist/sig/proof.test.d.ts +2 -1
- package/dist/sig/proof.test.js +9 -8
- package/dist/testing/docloader.test.d.ts +2 -1
- package/dist/testing/docloader.test.js +2 -1
- package/dist/{types-45TSQHsw.js → types-Bl1hBU1t.js} +1 -1
- package/dist/vocab/actor.test.d.ts +2 -1
- package/dist/vocab/actor.test.js +8 -10
- package/dist/vocab/lookup.test.d.ts +2 -1
- package/dist/vocab/lookup.test.js +7 -6
- package/dist/vocab/mod.js +4 -4
- package/dist/vocab/type.test.d.ts +2 -1
- package/dist/vocab/type.test.js +4 -3
- package/dist/vocab/vocab.test.d.ts +2 -1
- package/dist/vocab/vocab.test.js +19 -18
- package/dist/{vocab-DzvTuYjm.js → vocab-Cs9KbJAx.js} +178 -224
- package/dist/{vocab-B42jXGwc.js → vocab-DSVoOj6P.js} +3 -3
- package/dist/webfinger/handler.test.d.ts +2 -1
- package/dist/webfinger/handler.test.js +20 -19
- package/dist/webfinger/lookup.test.d.ts +2 -1
- package/dist/webfinger/lookup.test.js +5 -4
- package/dist/webfinger/mod.js +2 -2
- package/dist/x/cfworkers.test.d.ts +2 -1
- package/dist/x/cfworkers.test.js +2 -1
- package/package.json +1 -1
- package/dist/middleware-YRLKRl1N.js +0 -17
- package/dist/middleware-lqxhBcoT.js +0 -33
package/dist/vocab/actor.test.js
CHANGED
|
@@ -7,21 +7,21 @@ import { __export } from "../chunk-HsBuZ-b2.js";
|
|
|
7
7
|
import { assertEquals } from "../assert_equals-CTYbeopb.js";
|
|
8
8
|
import { assert } from "../assert-DmFG7ppO.js";
|
|
9
9
|
import "../assert_instance_of-CF09JHYM.js";
|
|
10
|
-
import "../docloader-
|
|
10
|
+
import "../docloader-UqcHJRjL.js";
|
|
11
11
|
import "../url-kTAI6_KP.js";
|
|
12
12
|
import "../multibase-DeCHcK8L.js";
|
|
13
|
-
import { Application, Group, Organization, Person, Service } from "../vocab-
|
|
13
|
+
import { Application, Group, Organization, Person, Service } from "../vocab-Cs9KbJAx.js";
|
|
14
14
|
import "../langstr-DbWheeIS.js";
|
|
15
|
-
import "../lookup-
|
|
15
|
+
import "../lookup-DEN8lvde.js";
|
|
16
16
|
import "../type-D2s5lmbZ.js";
|
|
17
|
-
import { getActorClassByTypeName, getActorHandle, getActorTypeName, isActor, normalizeActorHandle } from "../actor-
|
|
17
|
+
import { getActorClassByTypeName, getActorHandle, getActorTypeName, isActor, normalizeActorHandle } from "../actor-qNVQigMJ.js";
|
|
18
18
|
import { test } from "../testing-BZ0dJ4qn.js";
|
|
19
19
|
import { assertStrictEquals } from "../std__assert-vp0TKMS1.js";
|
|
20
20
|
import { assertFalse, assertRejects } from "../assert_rejects-C-sxEMM5.js";
|
|
21
21
|
import "../assert_is_error-nrwA1GeT.js";
|
|
22
22
|
import "../assert_not_equals-Dc7y-V5Q.js";
|
|
23
23
|
import { assertThrows } from "../assert_throws-Cn9C6Jur.js";
|
|
24
|
-
import { esm_default } from "../esm-
|
|
24
|
+
import { esm_default } from "../esm-Db4De7AS.js";
|
|
25
25
|
|
|
26
26
|
//#region node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/precondition/PreconditionFailure.js
|
|
27
27
|
var PreconditionFailure = class PreconditionFailure extends Error {
|
|
@@ -2664,9 +2664,7 @@ var NoopSlicedGenerator = class {
|
|
|
2664
2664
|
this.mrng = mrng;
|
|
2665
2665
|
this.biasFactor = biasFactor;
|
|
2666
2666
|
}
|
|
2667
|
-
attemptExact() {
|
|
2668
|
-
return;
|
|
2669
|
-
}
|
|
2667
|
+
attemptExact() {}
|
|
2670
2668
|
next() {
|
|
2671
2669
|
return this.arb.generate(this.mrng, this.biasFactor);
|
|
2672
2670
|
}
|
|
@@ -5384,7 +5382,6 @@ const safeNegativeInfinity = Number.NEGATIVE_INFINITY;
|
|
|
5384
5382
|
const safePositiveInfinity = Number.POSITIVE_INFINITY;
|
|
5385
5383
|
const safeNaN = NaN;
|
|
5386
5384
|
function safeFloatToIndex(f, constraintsLabel) {
|
|
5387
|
-
const conversionTrick = "you can convert any double to a 32-bit float by using `Math.fround(myDouble)`";
|
|
5388
5385
|
const errorMessage = "fc.float constraints." + constraintsLabel + " must be a 32-bit float - you can convert any double to a 32-bit float by using `Math.fround(myDouble)`";
|
|
5389
5386
|
if (safeNumberIsNaN(f) || safeMathFround(f) !== f) throw new Error(errorMessage);
|
|
5390
5387
|
return floatToIndex(f);
|
|
@@ -5961,4 +5958,5 @@ test("normalizeActorHandle()", () => {
|
|
|
5961
5958
|
assertThrows(() => normalizeActorHandle("@foo@bar.com@baz.com"));
|
|
5962
5959
|
});
|
|
5963
5960
|
|
|
5964
|
-
//#endregion
|
|
5961
|
+
//#endregion
|
|
5962
|
+
export { };
|
|
@@ -6,14 +6,14 @@
|
|
|
6
6
|
import { assertEquals } from "../assert_equals-CTYbeopb.js";
|
|
7
7
|
import "../assert-DmFG7ppO.js";
|
|
8
8
|
import { assertInstanceOf } from "../assert_instance_of-CF09JHYM.js";
|
|
9
|
-
import "../docloader-
|
|
9
|
+
import "../docloader-UqcHJRjL.js";
|
|
10
10
|
import "../url-kTAI6_KP.js";
|
|
11
11
|
import "../multibase-DeCHcK8L.js";
|
|
12
|
-
import { Collection, Note, Object as Object$1, Person } from "../vocab-
|
|
12
|
+
import { Collection, Note, Object as Object$1, Person } from "../vocab-Cs9KbJAx.js";
|
|
13
13
|
import "../langstr-DbWheeIS.js";
|
|
14
|
-
import "../lookup-
|
|
14
|
+
import "../lookup-DEN8lvde.js";
|
|
15
15
|
import "../type-D2s5lmbZ.js";
|
|
16
|
-
import { lookupObject, traverseCollection } from "../lookup-
|
|
16
|
+
import { lookupObject, traverseCollection } from "../lookup-DggOHyrB.js";
|
|
17
17
|
import { test } from "../testing-BZ0dJ4qn.js";
|
|
18
18
|
import "../std__assert-vp0TKMS1.js";
|
|
19
19
|
import "../assert_rejects-C-sxEMM5.js";
|
|
@@ -21,7 +21,7 @@ import "../assert_is_error-nrwA1GeT.js";
|
|
|
21
21
|
import "../assert_not_equals-Dc7y-V5Q.js";
|
|
22
22
|
import "../assert_throws-Cn9C6Jur.js";
|
|
23
23
|
import { mockDocumentLoader } from "../docloader-09nVWLAZ.js";
|
|
24
|
-
import { esm_default } from "../esm-
|
|
24
|
+
import { esm_default } from "../esm-Db4De7AS.js";
|
|
25
25
|
|
|
26
26
|
//#region vocab/lookup.test.ts
|
|
27
27
|
test("lookupObject()", async (t) => {
|
|
@@ -118,4 +118,5 @@ test("traverseCollection()", async () => {
|
|
|
118
118
|
]);
|
|
119
119
|
});
|
|
120
120
|
|
|
121
|
-
//#endregion
|
|
121
|
+
//#endregion
|
|
122
|
+
export { };
|
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, lookupObject, traverseCollection } from "../vocab-
|
|
5
|
+
import "../docloader-NmruKwBX.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-DY_ediuQ.js";
|
|
7
|
+
import "../lookup-DHlMvC3Q.js";
|
|
8
|
+
import { PUBLIC_COLLECTION, lookupObject, traverseCollection } from "../vocab-DSVoOj6P.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, lookupObject, normalizeActorHandle, traverseCollection };
|
package/dist/vocab/type.test.js
CHANGED
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
6
|
import { assertEquals } from "../assert_equals-CTYbeopb.js";
|
|
7
|
-
import "../docloader-
|
|
7
|
+
import "../docloader-UqcHJRjL.js";
|
|
8
8
|
import "../url-kTAI6_KP.js";
|
|
9
9
|
import "../multibase-DeCHcK8L.js";
|
|
10
|
-
import { Person } from "../vocab-
|
|
10
|
+
import { Person } from "../vocab-Cs9KbJAx.js";
|
|
11
11
|
import "../langstr-DbWheeIS.js";
|
|
12
12
|
import { getTypeId } from "../type-D2s5lmbZ.js";
|
|
13
13
|
import { test } from "../testing-BZ0dJ4qn.js";
|
|
@@ -26,4 +26,5 @@ test("getTypeId()", () => {
|
|
|
26
26
|
assertEquals(getTypeId(obj5), void 0);
|
|
27
27
|
});
|
|
28
28
|
|
|
29
|
-
//#endregion
|
|
29
|
+
//#endregion
|
|
30
|
+
export { };
|
package/dist/vocab/vocab.test.js
CHANGED
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
import { assertEquals, isWindows } from "../assert_equals-CTYbeopb.js";
|
|
7
7
|
import { assert } from "../assert-DmFG7ppO.js";
|
|
8
8
|
import { assertInstanceOf } from "../assert_instance_of-CF09JHYM.js";
|
|
9
|
-
import "../docloader-
|
|
9
|
+
import "../docloader-UqcHJRjL.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, Question, Source, vocab_exports } from "../vocab-
|
|
12
|
+
import { Activity, Announce, Create, CryptographicKey, Follow, Hashtag, Note, Object as Object$1, OrderedCollectionPage, Person, Place, Question, Source, vocab_exports } from "../vocab-Cs9KbJAx.js";
|
|
13
13
|
import { LanguageString } from "../langstr-DbWheeIS.js";
|
|
14
14
|
import { test } from "../testing-BZ0dJ4qn.js";
|
|
15
15
|
import "../std__assert-vp0TKMS1.js";
|
|
@@ -18,20 +18,20 @@ import "../assert_is_error-nrwA1GeT.js";
|
|
|
18
18
|
import { assertNotEquals } from "../assert_not_equals-Dc7y-V5Q.js";
|
|
19
19
|
import { assertThrows } from "../assert_throws-Cn9C6Jur.js";
|
|
20
20
|
import { mockDocumentLoader } from "../docloader-09nVWLAZ.js";
|
|
21
|
-
import { ed25519PublicKey, rsaPublicKey1 } from "../keys-
|
|
21
|
+
import { ed25519PublicKey, rsaPublicKey1 } from "../keys-Dd_v3HDs.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.2/node_modules/@jsr/std__path/_common/assert_path.js
|
|
29
29
|
function assertPath(path) {
|
|
30
30
|
if (typeof path !== "string") throw new TypeError(`Path must be a string, received "${JSON.stringify(path)}"`);
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
//#endregion
|
|
34
|
-
//#region node_modules/.pnpm/@jsr+std__path@1.1.
|
|
34
|
+
//#region node_modules/.pnpm/@jsr+std__path@1.1.2/node_modules/@jsr/std__path/_common/from_file_url.js
|
|
35
35
|
function assertArg$2(url) {
|
|
36
36
|
url = url instanceof URL ? url : new URL(url);
|
|
37
37
|
if (url.protocol !== "file:") throw new TypeError(`URL must be a file URL: received "${url.protocol}"`);
|
|
@@ -39,7 +39,7 @@ function assertArg$2(url) {
|
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
//#endregion
|
|
42
|
-
//#region node_modules/.pnpm/@jsr+std__path@1.1.
|
|
42
|
+
//#region node_modules/.pnpm/@jsr+std__path@1.1.2/node_modules/@jsr/std__path/posix/from_file_url.js
|
|
43
43
|
/**
|
|
44
44
|
* Converts a file URL to a path string.
|
|
45
45
|
*
|
|
@@ -59,7 +59,7 @@ function assertArg$2(url) {
|
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
//#endregion
|
|
62
|
-
//#region node_modules/.pnpm/@jsr+std__path@1.1.
|
|
62
|
+
//#region node_modules/.pnpm/@jsr+std__path@1.1.2/node_modules/@jsr/std__path/_common/strip_trailing_separators.js
|
|
63
63
|
function stripTrailingSeparators(segment, isSep) {
|
|
64
64
|
if (segment.length <= 1) return segment;
|
|
65
65
|
let end = segment.length;
|
|
@@ -69,18 +69,18 @@ function stripTrailingSeparators(segment, isSep) {
|
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
//#endregion
|
|
72
|
-
//#region node_modules/.pnpm/@jsr+std__path@1.1.
|
|
72
|
+
//#region node_modules/.pnpm/@jsr+std__path@1.1.2/node_modules/@jsr/std__path/_common/constants.js
|
|
73
73
|
const CHAR_DOT = 46;
|
|
74
74
|
const CHAR_FORWARD_SLASH = 47;
|
|
75
75
|
|
|
76
76
|
//#endregion
|
|
77
|
-
//#region node_modules/.pnpm/@jsr+std__path@1.1.
|
|
77
|
+
//#region node_modules/.pnpm/@jsr+std__path@1.1.2/node_modules/@jsr/std__path/posix/_util.js
|
|
78
78
|
function isPosixPathSeparator(code) {
|
|
79
79
|
return code === CHAR_FORWARD_SLASH;
|
|
80
80
|
}
|
|
81
81
|
|
|
82
82
|
//#endregion
|
|
83
|
-
//#region node_modules/.pnpm/@jsr+std__path@1.1.
|
|
83
|
+
//#region node_modules/.pnpm/@jsr+std__path@1.1.2/node_modules/@jsr/std__path/windows/from_file_url.js
|
|
84
84
|
/**
|
|
85
85
|
* Converts a file URL to a path string.
|
|
86
86
|
*
|
|
@@ -104,14 +104,14 @@ function isPosixPathSeparator(code) {
|
|
|
104
104
|
}
|
|
105
105
|
|
|
106
106
|
//#endregion
|
|
107
|
-
//#region node_modules/.pnpm/@jsr+std__path@1.1.
|
|
107
|
+
//#region node_modules/.pnpm/@jsr+std__path@1.1.2/node_modules/@jsr/std__path/_common/dirname.js
|
|
108
108
|
function assertArg$1(path) {
|
|
109
109
|
assertPath(path);
|
|
110
110
|
if (path.length === 0) return ".";
|
|
111
111
|
}
|
|
112
112
|
|
|
113
113
|
//#endregion
|
|
114
|
-
//#region node_modules/.pnpm/@jsr+std__path@1.1.
|
|
114
|
+
//#region node_modules/.pnpm/@jsr+std__path@1.1.2/node_modules/@jsr/std__path/posix/dirname.js
|
|
115
115
|
/**
|
|
116
116
|
* Return the directory path of a `path`.
|
|
117
117
|
*
|
|
@@ -155,7 +155,7 @@ function assertArg$1(path) {
|
|
|
155
155
|
}
|
|
156
156
|
|
|
157
157
|
//#endregion
|
|
158
|
-
//#region node_modules/.pnpm/@jsr+std__path@1.1.
|
|
158
|
+
//#region node_modules/.pnpm/@jsr+std__path@1.1.2/node_modules/@jsr/std__path/from_file_url.js
|
|
159
159
|
/**
|
|
160
160
|
* Converts a file URL to a path string.
|
|
161
161
|
*
|
|
@@ -180,14 +180,14 @@ function assertArg$1(path) {
|
|
|
180
180
|
}
|
|
181
181
|
|
|
182
182
|
//#endregion
|
|
183
|
-
//#region node_modules/.pnpm/@jsr+std__path@1.1.
|
|
183
|
+
//#region node_modules/.pnpm/@jsr+std__path@1.1.2/node_modules/@jsr/std__path/_common/normalize.js
|
|
184
184
|
function assertArg(path) {
|
|
185
185
|
assertPath(path);
|
|
186
186
|
if (path.length === 0) return ".";
|
|
187
187
|
}
|
|
188
188
|
|
|
189
189
|
//#endregion
|
|
190
|
-
//#region node_modules/.pnpm/@jsr+std__path@1.1.
|
|
190
|
+
//#region node_modules/.pnpm/@jsr+std__path@1.1.2/node_modules/@jsr/std__path/_common/normalize_string.js
|
|
191
191
|
function normalizeString(path, allowAboveRoot, separator, isPathSeparator) {
|
|
192
192
|
let res = "";
|
|
193
193
|
let lastSegmentLength = 0;
|
|
@@ -240,7 +240,7 @@ function normalizeString(path, allowAboveRoot, separator, isPathSeparator) {
|
|
|
240
240
|
}
|
|
241
241
|
|
|
242
242
|
//#endregion
|
|
243
|
-
//#region node_modules/.pnpm/@jsr+std__path@1.1.
|
|
243
|
+
//#region node_modules/.pnpm/@jsr+std__path@1.1.2/node_modules/@jsr/std__path/posix/normalize.js
|
|
244
244
|
/**
|
|
245
245
|
* Normalize the `path`, resolving `'..'` and `'.'` segments.
|
|
246
246
|
* Note that resolving these segments does not necessarily mean that all will be eliminated.
|
|
@@ -288,7 +288,7 @@ function normalizeString(path, allowAboveRoot, separator, isPathSeparator) {
|
|
|
288
288
|
}
|
|
289
289
|
|
|
290
290
|
//#endregion
|
|
291
|
-
//#region node_modules/.pnpm/@jsr+std__path@1.1.
|
|
291
|
+
//#region node_modules/.pnpm/@jsr+std__path@1.1.2/node_modules/@jsr/std__path/posix/join.js
|
|
292
292
|
/**
|
|
293
293
|
* Join all given a sequence of `paths`,then normalizes the resulting path.
|
|
294
294
|
*
|
|
@@ -3303,4 +3303,5 @@ for (const typeUri in types) {
|
|
|
3303
3303
|
});
|
|
3304
3304
|
}
|
|
3305
3305
|
|
|
3306
|
-
//#endregion
|
|
3306
|
+
//#endregion
|
|
3307
|
+
export { };
|