@fedify/fedify 0.10.0-dev.186 → 0.10.0-dev.190
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGES.md +31 -0
- package/esm/deps/jsr.io/@std/semver/{0.224.1 → 0.224.2}/mod.js +32 -21
- package/esm/federation/handler.js +3 -5
- package/esm/federation/middleware.js +115 -25
- package/esm/nodeinfo/types.js +1 -1
- package/esm/runtime/key.js +23 -3
- package/esm/sig/key.js +44 -16
- package/esm/testing/fixtures/example.com/key4 +7 -0
- package/esm/testing/fixtures/example.com/person2 +6 -0
- package/package.json +2 -1
- package/types/deps/jsr.io/@std/assert/0.226.0/assert.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/assert/0.226.0/assertion_error.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/http/{0.224.2 → 0.224.3}/_negotiation/common.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/http/{0.224.2 → 0.224.3}/_negotiation/encoding.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/http/{0.224.2 → 0.224.3}/_negotiation/language.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/http/{0.224.2 → 0.224.3}/_negotiation/media_type.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/http/{0.224.2 → 0.224.3}/negotiation.d.ts +26 -21
- package/types/deps/jsr.io/@std/http/0.224.3/negotiation.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/semver/0.224.2/_constants.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/semver/{0.224.1 → 0.224.2}/_shared.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/semver/{0.224.1 → 0.224.2}/_test_comparator_set.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/semver/{0.224.1 → 0.224.2}/can_parse.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/semver/{0.224.1 → 0.224.2}/compare.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/semver/{0.224.1 → 0.224.2}/constants.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/semver/{0.224.1 → 0.224.2}/difference.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/semver/{0.224.1 → 0.224.2}/equals.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/semver/{0.224.1 → 0.224.2}/format.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/semver/{0.224.1 → 0.224.2}/format_range.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/semver/{0.224.1 → 0.224.2}/greater_or_equal.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/semver/{0.224.1 → 0.224.2}/greater_than.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/semver/{0.224.1 → 0.224.2}/greater_than_range.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/semver/{0.224.1 → 0.224.2}/increment.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/semver/{0.224.1 → 0.224.2}/is_range.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/semver/{0.224.1 → 0.224.2}/is_semver.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/semver/{0.224.1 → 0.224.2}/less_or_equal.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/semver/{0.224.1 → 0.224.2}/less_than.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/semver/{0.224.1 → 0.224.2}/less_than_range.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/semver/{0.224.1 → 0.224.2}/max_satisfying.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/semver/{0.224.1 → 0.224.2}/min_satisfying.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/semver/{0.224.1 → 0.224.2}/mod.d.ts +32 -21
- package/types/deps/jsr.io/@std/semver/0.224.2/mod.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/semver/{0.224.1 → 0.224.2}/not_equals.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/semver/{0.224.1 → 0.224.2}/parse.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/semver/{0.224.1 → 0.224.2}/parse_range.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/semver/{0.224.1 → 0.224.2}/range_intersects.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/semver/{0.224.1 → 0.224.2}/range_max.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/semver/{0.224.1 → 0.224.2}/range_min.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/semver/{0.224.1 → 0.224.2}/satisfies.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/semver/{0.224.1 → 0.224.2}/test_range.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/semver/{0.224.1 → 0.224.2}/try_parse.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/semver/{0.224.1 → 0.224.2}/try_parse_range.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/semver/{0.224.1 → 0.224.2}/types.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/text/{0.224.1 → 0.224.2}/_util.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/text/0.224.2/case.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/text/0.224.2/closest_string.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/text/0.224.2/compare_similarity.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/text/0.224.2/levenshtein_distance.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/text/0.224.2/mod.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/text/0.224.2/word_similarity_sort.d.ts.map +1 -0
- package/types/federation/callback.d.ts +16 -0
- package/types/federation/callback.d.ts.map +1 -1
- package/types/federation/context.d.ts +24 -2
- package/types/federation/context.d.ts.map +1 -1
- package/types/federation/handler.d.ts.map +1 -1
- package/types/federation/middleware.d.ts +14 -4
- package/types/federation/middleware.d.ts.map +1 -1
- package/types/nodeinfo/types.d.ts +1 -1
- package/types/runtime/key.d.ts +2 -0
- package/types/runtime/key.d.ts.map +1 -1
- package/types/sig/key.d.ts +5 -2
- package/types/sig/key.d.ts.map +1 -1
- package/types/testing/context.d.ts.map +1 -1
- package/types/testing/keys.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/assert/0.225.3/assert.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/assert/0.225.3/assertion_error.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/http/0.224.2/negotiation.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/semver/0.224.1/_constants.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/semver/0.224.1/mod.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/text/0.224.1/case.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/text/0.224.1/closest_string.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/text/0.224.1/compare_similarity.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/text/0.224.1/levenshtein_distance.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/text/0.224.1/mod.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/text/0.224.1/word_similarity_sort.d.ts.map +0 -1
- /package/esm/deps/jsr.io/@std/http/{0.224.2 → 0.224.3}/_negotiation/common.js +0 -0
- /package/esm/deps/jsr.io/@std/http/{0.224.2 → 0.224.3}/_negotiation/encoding.js +0 -0
- /package/esm/deps/jsr.io/@std/http/{0.224.2 → 0.224.3}/_negotiation/language.js +0 -0
- /package/esm/deps/jsr.io/@std/http/{0.224.2 → 0.224.3}/_negotiation/media_type.js +0 -0
- /package/esm/deps/jsr.io/@std/http/{0.224.2 → 0.224.3}/negotiation.js +0 -0
- /package/esm/deps/jsr.io/@std/semver/{0.224.1 → 0.224.2}/_constants.js +0 -0
- /package/esm/deps/jsr.io/@std/semver/{0.224.1 → 0.224.2}/_shared.js +0 -0
- /package/esm/deps/jsr.io/@std/semver/{0.224.1 → 0.224.2}/_test_comparator_set.js +0 -0
- /package/esm/deps/jsr.io/@std/semver/{0.224.1 → 0.224.2}/can_parse.js +0 -0
- /package/esm/deps/jsr.io/@std/semver/{0.224.1 → 0.224.2}/compare.js +0 -0
- /package/esm/deps/jsr.io/@std/semver/{0.224.1 → 0.224.2}/constants.js +0 -0
- /package/esm/deps/jsr.io/@std/semver/{0.224.1 → 0.224.2}/difference.js +0 -0
- /package/esm/deps/jsr.io/@std/semver/{0.224.1 → 0.224.2}/equals.js +0 -0
- /package/esm/deps/jsr.io/@std/semver/{0.224.1 → 0.224.2}/format.js +0 -0
- /package/esm/deps/jsr.io/@std/semver/{0.224.1 → 0.224.2}/format_range.js +0 -0
- /package/esm/deps/jsr.io/@std/semver/{0.224.1 → 0.224.2}/greater_or_equal.js +0 -0
- /package/esm/deps/jsr.io/@std/semver/{0.224.1 → 0.224.2}/greater_than.js +0 -0
- /package/esm/deps/jsr.io/@std/semver/{0.224.1 → 0.224.2}/greater_than_range.js +0 -0
- /package/esm/deps/jsr.io/@std/semver/{0.224.1 → 0.224.2}/increment.js +0 -0
- /package/esm/deps/jsr.io/@std/semver/{0.224.1 → 0.224.2}/is_range.js +0 -0
- /package/esm/deps/jsr.io/@std/semver/{0.224.1 → 0.224.2}/is_semver.js +0 -0
- /package/esm/deps/jsr.io/@std/semver/{0.224.1 → 0.224.2}/less_or_equal.js +0 -0
- /package/esm/deps/jsr.io/@std/semver/{0.224.1 → 0.224.2}/less_than.js +0 -0
- /package/esm/deps/jsr.io/@std/semver/{0.224.1 → 0.224.2}/less_than_range.js +0 -0
- /package/esm/deps/jsr.io/@std/semver/{0.224.1 → 0.224.2}/max_satisfying.js +0 -0
- /package/esm/deps/jsr.io/@std/semver/{0.224.1 → 0.224.2}/min_satisfying.js +0 -0
- /package/esm/deps/jsr.io/@std/semver/{0.224.1 → 0.224.2}/not_equals.js +0 -0
- /package/esm/deps/jsr.io/@std/semver/{0.224.1 → 0.224.2}/parse.js +0 -0
- /package/esm/deps/jsr.io/@std/semver/{0.224.1 → 0.224.2}/parse_range.js +0 -0
- /package/esm/deps/jsr.io/@std/semver/{0.224.1 → 0.224.2}/range_intersects.js +0 -0
- /package/esm/deps/jsr.io/@std/semver/{0.224.1 → 0.224.2}/range_max.js +0 -0
- /package/esm/deps/jsr.io/@std/semver/{0.224.1 → 0.224.2}/range_min.js +0 -0
- /package/esm/deps/jsr.io/@std/semver/{0.224.1 → 0.224.2}/satisfies.js +0 -0
- /package/esm/deps/jsr.io/@std/semver/{0.224.1 → 0.224.2}/test_range.js +0 -0
- /package/esm/deps/jsr.io/@std/semver/{0.224.1 → 0.224.2}/try_parse.js +0 -0
- /package/esm/deps/jsr.io/@std/semver/{0.224.1 → 0.224.2}/try_parse_range.js +0 -0
- /package/esm/deps/jsr.io/@std/semver/{0.224.1 → 0.224.2}/types.js +0 -0
- /package/types/deps/jsr.io/@std/http/{0.224.2 → 0.224.3}/_negotiation/common.d.ts +0 -0
- /package/types/deps/jsr.io/@std/http/{0.224.2 → 0.224.3}/_negotiation/encoding.d.ts +0 -0
- /package/types/deps/jsr.io/@std/http/{0.224.2 → 0.224.3}/_negotiation/language.d.ts +0 -0
- /package/types/deps/jsr.io/@std/http/{0.224.2 → 0.224.3}/_negotiation/media_type.d.ts +0 -0
- /package/types/deps/jsr.io/@std/semver/{0.224.1 → 0.224.2}/_constants.d.ts +0 -0
- /package/types/deps/jsr.io/@std/semver/{0.224.1 → 0.224.2}/_shared.d.ts +0 -0
- /package/types/deps/jsr.io/@std/semver/{0.224.1 → 0.224.2}/_test_comparator_set.d.ts +0 -0
- /package/types/deps/jsr.io/@std/semver/{0.224.1 → 0.224.2}/can_parse.d.ts +0 -0
- /package/types/deps/jsr.io/@std/semver/{0.224.1 → 0.224.2}/compare.d.ts +0 -0
- /package/types/deps/jsr.io/@std/semver/{0.224.1 → 0.224.2}/constants.d.ts +0 -0
- /package/types/deps/jsr.io/@std/semver/{0.224.1 → 0.224.2}/difference.d.ts +0 -0
- /package/types/deps/jsr.io/@std/semver/{0.224.1 → 0.224.2}/equals.d.ts +0 -0
- /package/types/deps/jsr.io/@std/semver/{0.224.1 → 0.224.2}/format.d.ts +0 -0
- /package/types/deps/jsr.io/@std/semver/{0.224.1 → 0.224.2}/format_range.d.ts +0 -0
- /package/types/deps/jsr.io/@std/semver/{0.224.1 → 0.224.2}/greater_or_equal.d.ts +0 -0
- /package/types/deps/jsr.io/@std/semver/{0.224.1 → 0.224.2}/greater_than.d.ts +0 -0
- /package/types/deps/jsr.io/@std/semver/{0.224.1 → 0.224.2}/greater_than_range.d.ts +0 -0
- /package/types/deps/jsr.io/@std/semver/{0.224.1 → 0.224.2}/increment.d.ts +0 -0
- /package/types/deps/jsr.io/@std/semver/{0.224.1 → 0.224.2}/is_range.d.ts +0 -0
- /package/types/deps/jsr.io/@std/semver/{0.224.1 → 0.224.2}/is_semver.d.ts +0 -0
- /package/types/deps/jsr.io/@std/semver/{0.224.1 → 0.224.2}/less_or_equal.d.ts +0 -0
- /package/types/deps/jsr.io/@std/semver/{0.224.1 → 0.224.2}/less_than.d.ts +0 -0
- /package/types/deps/jsr.io/@std/semver/{0.224.1 → 0.224.2}/less_than_range.d.ts +0 -0
- /package/types/deps/jsr.io/@std/semver/{0.224.1 → 0.224.2}/max_satisfying.d.ts +0 -0
- /package/types/deps/jsr.io/@std/semver/{0.224.1 → 0.224.2}/min_satisfying.d.ts +0 -0
- /package/types/deps/jsr.io/@std/semver/{0.224.1 → 0.224.2}/not_equals.d.ts +0 -0
- /package/types/deps/jsr.io/@std/semver/{0.224.1 → 0.224.2}/parse.d.ts +0 -0
- /package/types/deps/jsr.io/@std/semver/{0.224.1 → 0.224.2}/parse_range.d.ts +0 -0
- /package/types/deps/jsr.io/@std/semver/{0.224.1 → 0.224.2}/range_intersects.d.ts +0 -0
- /package/types/deps/jsr.io/@std/semver/{0.224.1 → 0.224.2}/range_max.d.ts +0 -0
- /package/types/deps/jsr.io/@std/semver/{0.224.1 → 0.224.2}/range_min.d.ts +0 -0
- /package/types/deps/jsr.io/@std/semver/{0.224.1 → 0.224.2}/satisfies.d.ts +0 -0
- /package/types/deps/jsr.io/@std/semver/{0.224.1 → 0.224.2}/test_range.d.ts +0 -0
- /package/types/deps/jsr.io/@std/semver/{0.224.1 → 0.224.2}/try_parse.d.ts +0 -0
- /package/types/deps/jsr.io/@std/semver/{0.224.1 → 0.224.2}/try_parse_range.d.ts +0 -0
- /package/types/deps/jsr.io/@std/semver/{0.224.1 → 0.224.2}/types.d.ts +0 -0
@@ -12,22 +12,22 @@ export type Request = {
|
|
12
12
|
* @example Usage
|
13
13
|
* ```ts
|
14
14
|
* import { accepts } from "@std/http/negotiation";
|
15
|
+
* import { assertEquals } from "@std/assert/assert-equals";
|
15
16
|
*
|
16
|
-
* const
|
17
|
+
* const request = new Request("https://example.com/", {
|
17
18
|
* headers: {
|
18
|
-
*
|
19
|
+
* accept:
|
19
20
|
* "text/html, application/xhtml+xml, application/xml;q=0.9, image/webp, *\/*;q=0.8",
|
20
21
|
* },
|
21
22
|
* });
|
22
23
|
*
|
23
|
-
*
|
24
|
-
*
|
25
|
-
*
|
26
|
-
*
|
27
|
-
*
|
28
|
-
*
|
29
|
-
*
|
30
|
-
* // ]
|
24
|
+
* assertEquals(accepts(request), [
|
25
|
+
* "text/html",
|
26
|
+
* "application/xhtml+xml",
|
27
|
+
* "image/webp",
|
28
|
+
* "application/xml",
|
29
|
+
* "*\/*",
|
30
|
+
* ]);
|
31
31
|
* ```
|
32
32
|
*
|
33
33
|
* @param request The request to get the acceptable media types for.
|
@@ -41,15 +41,16 @@ export declare function accepts(request: Request): string[];
|
|
41
41
|
* @example Usage
|
42
42
|
* ```ts
|
43
43
|
* import { accepts } from "@std/http/negotiation";
|
44
|
+
* import { assertEquals } from "@std/assert/assert-equals";
|
44
45
|
*
|
45
|
-
* const
|
46
|
+
* const request = new Request("https://example.com/", {
|
46
47
|
* headers: {
|
47
|
-
*
|
48
|
+
* accept:
|
48
49
|
* "text/html, application/xhtml+xml, application/xml;q=0.9, image/webp, *\/*;q=0.8",
|
49
50
|
* },
|
50
51
|
* });
|
51
52
|
*
|
52
|
-
* accepts(
|
53
|
+
* assertEquals(accepts(request, "text/html", "image/webp"), "text/html");
|
53
54
|
* ```
|
54
55
|
*
|
55
56
|
* @param request The request to get the acceptable media types for.
|
@@ -65,12 +66,13 @@ export declare function accepts(request: Request, ...types: string[]): string |
|
|
65
66
|
* @example Usage
|
66
67
|
* ```ts
|
67
68
|
* import { acceptsEncodings } from "@std/http/negotiation";
|
69
|
+
* import { assertEquals } from "@std/assert/assert-equals";
|
68
70
|
*
|
69
|
-
* const
|
71
|
+
* const request = new Request("https://example.com/", {
|
70
72
|
* headers: { "accept-encoding": "deflate, gzip;q=1.0, *;q=0.5" },
|
71
73
|
* });
|
72
74
|
*
|
73
|
-
* acceptsEncodings(
|
75
|
+
* assertEquals(acceptsEncodings(request), ["deflate", "gzip", "*"]);
|
74
76
|
* ```
|
75
77
|
*
|
76
78
|
* @param request The request to get the acceptable content encodings for.
|
@@ -89,12 +91,13 @@ export declare function acceptsEncodings(request: Request): string[];
|
|
89
91
|
* @example Usage
|
90
92
|
* ```ts
|
91
93
|
* import { acceptsEncodings } from "@std/http/negotiation";
|
94
|
+
* import { assertEquals } from "@std/assert/assert-equals";
|
92
95
|
*
|
93
|
-
* const
|
96
|
+
* const request = new Request("https://example.com/", {
|
94
97
|
* headers: { "accept-encoding": "deflate, gzip;q=1.0, *;q=0.5" },
|
95
98
|
* });
|
96
99
|
*
|
97
|
-
* acceptsEncodings(
|
100
|
+
* assertEquals(acceptsEncodings(request, "gzip", "identity"), "gzip");
|
98
101
|
* ```
|
99
102
|
*
|
100
103
|
* @param request The request to get the acceptable content encodings for.
|
@@ -110,14 +113,15 @@ export declare function acceptsEncodings(request: Request, ...encodings: string[
|
|
110
113
|
* @example Usage
|
111
114
|
* ```ts
|
112
115
|
* import { acceptsLanguages } from "@std/http/negotiation";
|
116
|
+
* import { assertEquals } from "@std/assert/assert-equals";
|
113
117
|
*
|
114
|
-
* const
|
118
|
+
* const request = new Request("https://example.com/", {
|
115
119
|
* headers: {
|
116
120
|
* "accept-language": "fr-CH, fr;q=0.9, en;q=0.8, de;q=0.7, *;q=0.5",
|
117
121
|
* },
|
118
122
|
* });
|
119
123
|
*
|
120
|
-
* acceptsLanguages(
|
124
|
+
* assertEquals(acceptsLanguages(request), ["fr-CH", "fr", "en", "de", "*"]);
|
121
125
|
* ```
|
122
126
|
*
|
123
127
|
* @param request The request to get the acceptable languages for.
|
@@ -131,14 +135,15 @@ export declare function acceptsLanguages(request: Request): string[];
|
|
131
135
|
* @example Usage
|
132
136
|
* ```ts
|
133
137
|
* import { acceptsLanguages } from "@std/http/negotiation";
|
138
|
+
* import { assertEquals } from "@std/assert/assert-equals";
|
134
139
|
*
|
135
|
-
* const
|
140
|
+
* const request = new Request("https://example.com/", {
|
136
141
|
* headers: {
|
137
142
|
* "accept-language": "fr-CH, fr;q=0.9, en;q=0.8, de;q=0.7, *;q=0.5",
|
138
143
|
* },
|
139
144
|
* });
|
140
145
|
*
|
141
|
-
* acceptsLanguages(
|
146
|
+
* assertEquals(acceptsLanguages(request, "en-gb", "en-us", "en"), "en");
|
142
147
|
* ```
|
143
148
|
*
|
144
149
|
* @param request The request to get the acceptable language for.
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"negotiation.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/http/0.224.3/negotiation.ts"],"names":[],"mappings":"AAcA,yCAAyC;AACzC,MAAM,MAAM,OAAO,GAAG;IACpB,OAAO,EAAE;QACP,GAAG,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;KACjC,CAAC;CACH,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,wBAAgB,OAAO,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,EAAE,CAAC;AACpD;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,OAAO,CACrB,OAAO,EAAE,OAAO,EAChB,GAAG,KAAK,EAAE,MAAM,EAAE,GACjB,MAAM,GAAG,SAAS,CAAC;AAatB;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,EAAE,CAAC;AAC7D;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAgB,gBAAgB,CAC9B,OAAO,EAAE,OAAO,EAChB,GAAG,SAAS,EAAE,MAAM,EAAE,GACrB,MAAM,GAAG,SAAS,CAAC;AAetB;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,EAAE,CAAC;AAC7D;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,gBAAgB,CAC9B,OAAO,EAAE,OAAO,EAChB,GAAG,KAAK,EAAE,MAAM,EAAE,GACjB,MAAM,GAAG,SAAS,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"_constants.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/semver/0.224.2/_constants.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS,uDAQZ,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"_shared.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/semver/0.224.
|
1
|
+
{"version":3,"file":"_shared.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/semver/0.224.2/_shared.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAE7C,wBAAgB,aAAa,CAC3B,CAAC,EAAE,MAAM,EACT,CAAC,EAAE,MAAM,GACR,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAGZ;AAED,wBAAgB,eAAe,CAC7B,EAAE,GAAE,aAAa,CAAC,MAAM,GAAG,MAAM,CAAM,EACvC,EAAE,GAAE,aAAa,CAAC,MAAM,GAAG,MAAM,CAAM,GACtC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAMZ;AAED,wBAAgB,iBAAiB,CAC/B,EAAE,GAAE,aAAa,CAAC,MAAM,GAAG,MAAM,CAAM,EACvC,EAAE,GAAE,aAAa,CAAC,MAAM,GAAG,MAAM,CAAM,GACtC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAoBZ;AAgDD,eAAO,MAAM,WAAW,QAAkC,CAAC;AAgB3D;;;GAGG;AACH,eAAO,MAAM,MAAM,iSAC0H,CAAC;AAE9I;;;GAGG;AACH,eAAO,MAAM,sBAAsB,QAElC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,iBAAiB,QAE7B,CAAC;AAEF;;;;;;;GAOG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,MAAM,CAO7D;AAED,eAAO,MAAM,UAAU,MAAM,CAAC;AAE9B;;;;;;;GAOG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,MAAM,CAO7D;AAGD,wBAAgB,eAAe,CAAC,UAAU,EAAE,MAAM,uBAWjD;AAED,wBAAgB,UAAU,CAAC,aAAa,EAAE,MAAM,YAE/C;AAED,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,UAI9D;AAED,wBAAgB,oBAAoB,CAAC,CAAC,EAAE,UAAU,GAAG,OAAO,CAM3D"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"_test_comparator_set.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/semver/0.224.
|
1
|
+
{"version":3,"file":"_test_comparator_set.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/semver/0.224.2/_test_comparator_set.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AAgCrD,wBAAgB,iBAAiB,CAC/B,OAAO,EAAE,MAAM,EACf,GAAG,EAAE,UAAU,EAAE,GAChB,OAAO,CA6BT"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"can_parse.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/semver/0.224.
|
1
|
+
{"version":3,"file":"can_parse.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/semver/0.224.2/can_parse.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAUjD"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"compare.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/semver/0.224.
|
1
|
+
{"version":3,"file":"compare.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/semver/0.224.2/compare.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AAOzC;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAgB,OAAO,CACrB,EAAE,EAAE,MAAM,EACV,EAAE,EAAE,MAAM,GACT,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CASZ"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/semver/0.224.
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/semver/0.224.2/constants.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AAErD;;;GAGG;AACH,eAAO,MAAM,GAAG,EAAE,MAMjB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,GAAG,EAAE,MAMjB,CAAC;AAEF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,OAAO,EAAE,MAMrB,CAAC;AAEF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,GAAG,EAAE,MAMjB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,GAAG,EAAE,UAGjB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,IAAI,EAAE,UAGlB,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"difference.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/semver/0.224.
|
1
|
+
{"version":3,"file":"difference.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/semver/0.224.2/difference.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AAGtD;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,UAAU,CAAC,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,WAAW,GAAG,SAAS,CAU1E"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"equals.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/semver/0.224.
|
1
|
+
{"version":3,"file":"equals.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/semver/0.224.2/equals.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AAEzC;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,OAAO,CAEtD"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"format.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/semver/0.224.
|
1
|
+
{"version":3,"file":"format.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/semver/0.224.2/format.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AAazC;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAc7C"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"format_range.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/semver/0.224.
|
1
|
+
{"version":3,"file":"format_range.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/semver/0.224.2/format_range.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAc,KAAK,EAAE,MAAM,YAAY,CAAC;AAOpD;;;;;;;;;;;;;GAaG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,KAAK,GAAG,MAAM,CAGhD"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"greater_or_equal.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/semver/0.224.
|
1
|
+
{"version":3,"file":"greater_or_equal.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/semver/0.224.2/greater_or_equal.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AAGzC;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,cAAc,CAAC,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,OAAO,CAE9D"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"greater_than.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/semver/0.224.
|
1
|
+
{"version":3,"file":"greater_than.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/semver/0.224.2/greater_than.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AAGzC;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,WAAW,CAAC,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,OAAO,CAE3D"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"greater_than_range.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/semver/0.224.
|
1
|
+
{"version":3,"file":"greater_than_range.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/semver/0.224.2/greater_than_range.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAc,KAAK,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AAK5D;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,GAAG,OAAO,CAItE"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"increment.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/semver/0.224.
|
1
|
+
{"version":3,"file":"increment.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/semver/0.224.2/increment.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AAkCtD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AACH,wBAAgB,SAAS,CACvB,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,WAAW,EACpB,UAAU,CAAC,EAAE,MAAM,EACnB,aAAa,CAAC,EAAE,MAAM,GACrB,MAAM,CAyGR"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"is_range.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/semver/0.224.
|
1
|
+
{"version":3,"file":"is_range.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/semver/0.224.2/is_range.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAc,KAAK,EAAE,MAAM,YAAY,CAAC;AAmBpD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,OAAO,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,KAAK,CAGtD"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"is_semver.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/semver/0.224.
|
1
|
+
{"version":3,"file":"is_semver.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/semver/0.224.2/is_semver.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AAGzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,wBAAgB,QAAQ,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,MAAM,CAuBxD"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"less_or_equal.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/semver/0.224.
|
1
|
+
{"version":3,"file":"less_or_equal.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/semver/0.224.2/less_or_equal.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AAGzC;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,WAAW,CAAC,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,OAAO,CAE3D"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"less_than.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/semver/0.224.
|
1
|
+
{"version":3,"file":"less_than.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/semver/0.224.2/less_than.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AAGzC;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,OAAO,CAExD"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"less_than_range.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/semver/0.224.
|
1
|
+
{"version":3,"file":"less_than_range.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/semver/0.224.2/less_than_range.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAc,KAAK,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AAK5D;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,aAAa,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,GAAG,OAAO,CAInE"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"max_satisfying.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/semver/0.224.
|
1
|
+
{"version":3,"file":"max_satisfying.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/semver/0.224.2/max_satisfying.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AAIhD;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,aAAa,CAC3B,QAAQ,EAAE,MAAM,EAAE,EAClB,KAAK,EAAE,KAAK,GACX,MAAM,GAAG,SAAS,CAOpB"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"min_satisfying.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/semver/0.224.
|
1
|
+
{"version":3,"file":"min_satisfying.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/semver/0.224.2/min_satisfying.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AAIhD;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,aAAa,CAC3B,QAAQ,EAAE,MAAM,EAAE,EAClB,KAAK,EAAE,KAAK,GACX,MAAM,GAAG,SAAS,CAOpB"}
|
@@ -1,8 +1,38 @@
|
|
1
1
|
/**
|
2
|
-
* The
|
2
|
+
* The Semantic Version parser.
|
3
3
|
*
|
4
4
|
* Adapted directly from {@link https://github.com/npm/node-semver | semver}.
|
5
5
|
*
|
6
|
+
* ```ts
|
7
|
+
* import {
|
8
|
+
* parse,
|
9
|
+
* parseRange,
|
10
|
+
* greaterThan,
|
11
|
+
* lessThan,
|
12
|
+
* format
|
13
|
+
* } from "@std/semver";
|
14
|
+
* import { assertEquals } from "@std/assert/assert-equals";
|
15
|
+
*
|
16
|
+
* const semver = parse("1.2.3");
|
17
|
+
* assertEquals(semver, {
|
18
|
+
* major: 1,
|
19
|
+
* minor: 2,
|
20
|
+
* patch: 3,
|
21
|
+
* prerelease: [],
|
22
|
+
* build: []
|
23
|
+
* });
|
24
|
+
*
|
25
|
+
* assertEquals(format(semver), "1.2.3");
|
26
|
+
*
|
27
|
+
* const range = parseRange("1.x || >=2.5.0 || 5.0.0 - 7.2.3");
|
28
|
+
*
|
29
|
+
* const s0 = parse("1.2.3");
|
30
|
+
* const s1 = parse("9.8.7");
|
31
|
+
*
|
32
|
+
* assertEquals(greaterThan(s0, s1), false);
|
33
|
+
* assertEquals(lessThan(s0, s1), true);
|
34
|
+
* ```
|
35
|
+
*
|
6
36
|
* ## Versions
|
7
37
|
*
|
8
38
|
* A "version" is described by the `v2.0.0` specification found at
|
@@ -238,26 +268,7 @@
|
|
238
268
|
*
|
239
269
|
* This module is browser compatible.
|
240
270
|
*
|
241
|
-
|
242
|
-
* ```ts
|
243
|
-
* import {
|
244
|
-
* parse,
|
245
|
-
* parseRange,
|
246
|
-
* greaterThan,
|
247
|
-
* lessThan,
|
248
|
-
* format
|
249
|
-
* } from "@std/semver";
|
250
|
-
*
|
251
|
-
* const semver = parse("1.2.3");
|
252
|
-
* const range = parseRange("1.x || >=2.5.0 || 5.0.0 - 7.2.3");
|
253
|
-
*
|
254
|
-
* const s0 = parse("1.2.3");
|
255
|
-
* const s1 = parse("9.8.7");
|
256
|
-
* greaterThan(s0, s1); // false
|
257
|
-
* lessThan(s0, s1); // true
|
258
|
-
*
|
259
|
-
* format(semver) // "1.2.3"
|
260
|
-
* ```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AAC/B,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AAEnC,8BAA8B;AAC9B,eAAO,MAAM,mBAAmB,UAAU,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"not_equals.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/semver/0.224.
|
1
|
+
{"version":3,"file":"not_equals.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/semver/0.224.2/not_equals.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AAGzC;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,SAAS,CAAC,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,OAAO,CAEzD"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"parse.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/semver/0.224.
|
1
|
+
{"version":3,"file":"parse.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/semver/0.224.2/parse.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AAIzC;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,KAAK,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAkC7C"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"parse_range.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/semver/0.224.
|
1
|
+
{"version":3,"file":"parse_range.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/semver/0.224.2/parse_range.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAwB,KAAK,EAAE,MAAM,YAAY,CAAC;AAiX9D;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,CAM/C"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"range_intersects.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/semver/0.224.
|
1
|
+
{"version":3,"file":"range_intersects.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/semver/0.224.2/range_intersects.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAc,KAAK,EAAE,MAAM,YAAY,CAAC;AA8DpD;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,eAAe,CAC7B,EAAE,EAAE,KAAK,EACT,EAAE,EAAE,KAAK,GACR,OAAO,CAST"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"range_max.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/semver/0.224.
|
1
|
+
{"version":3,"file":"range_max.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/semver/0.224.2/range_max.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAc,KAAK,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AAyC5D;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,QAAQ,CAAC,KAAK,EAAE,KAAK,GAAG,MAAM,CAU7C"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"range_min.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/semver/0.224.
|
1
|
+
{"version":3,"file":"range_min.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/semver/0.224.2/range_min.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAc,KAAK,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AAgC5D;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,QAAQ,CAAC,KAAK,EAAE,KAAK,GAAG,MAAM,CAU7C"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"satisfies.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/semver/0.224.
|
1
|
+
{"version":3,"file":"satisfies.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/semver/0.224.2/satisfies.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AAGhD;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,SAAS,CACvB,OAAO,EAAE,MAAM,EACf,KAAK,EAAE,KAAK,GACX,OAAO,CAET"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"test_range.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/semver/0.224.
|
1
|
+
{"version":3,"file":"test_range.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/semver/0.224.2/test_range.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AAGhD;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,SAAS,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,GAAG,OAAO,CAEhE"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"try_parse.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/semver/0.224.
|
1
|
+
{"version":3,"file":"try_parse.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/semver/0.224.2/try_parse.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AAGzC;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAS7D"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"try_parse_range.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/semver/0.224.
|
1
|
+
{"version":3,"file":"try_parse_range.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/semver/0.224.2/try_parse_range.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAGxC;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,aAAa,CAC3B,KAAK,EAAE,MAAM,GACZ,KAAK,GAAG,SAAS,CAQnB"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/semver/0.224.
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/semver/0.224.2/types.ts"],"names":[],"mappings":"AAGA;;;GAGG;AACH,MAAM,MAAM,WAAW,GACnB,KAAK,GACL,OAAO,GACP,UAAU,GACV,OAAO,GACP,UAAU,GACV,OAAO,GACP,UAAU,GACV,YAAY,CAAC;AAEjB;;GAEG;AACH,MAAM,MAAM,QAAQ,GAChB,SAAS,GACT,GAAG,GACH,IAAI,GACJ,GAAG,GACH,IAAI,GACJ,GAAG,GACH,IAAI,CAAC;AAET;;;GAGG;AACH,MAAM,WAAW,UAAW,SAAQ,MAAM;IACxC,mBAAmB;IACnB,QAAQ,CAAC,EAAE,QAAQ,CAAC;CACrB;AAED;;GAEG;AACH,MAAM,WAAW,MAAM;IACrB,wBAAwB;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,wBAAwB;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,wBAAwB;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,6BAA6B;IAC7B,UAAU,CAAC,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,CAAC;IACjC,yBAAyB;IACzB,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;CAClB;AAED;;;;GAIG;AACH,MAAM,MAAM,KAAK,GAAG,UAAU,EAAE,EAAE,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"_util.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/text/0.224.
|
1
|
+
{"version":3,"file":"_util.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/text/0.224.2/_util.ts"],"names":[],"mappings":"AAEA,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,YAIzC;AAED,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAInD"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"case.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/text/0.224.2/case.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;GAaG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAIjD;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAGjD;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAGlD;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAGjD"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"closest_string.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/text/0.224.2/closest_string.ts"],"names":[],"mappings":"AAQA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAgB,aAAa,CAC3B,SAAS,EAAE,MAAM,EACjB,aAAa,EAAE,MAAM,EAAE,EACvB,OAAO,CAAC,EAAE;IACR,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB,GACA,MAAM,CAwBR"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"compare_similarity.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/text/0.224.2/compare_similarity.ts"],"names":[],"mappings":"AAOA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,wBAAgB,iBAAiB,CAC/B,SAAS,EAAE,MAAM,EACjB,OAAO,CAAC,EAAE;IAAE,aAAa,CAAC,EAAE,OAAO,CAAA;CAAE,GACpC,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,KAAK,MAAM,CAUlC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"levenshtein_distance.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/text/0.224.2/levenshtein_distance.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;GAaG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CA8BtE"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/text/0.224.2/mod.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAEH,cAAc,2BAA2B,CAAC;AAC1C,cAAc,qBAAqB,CAAC;AACpC,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,WAAW,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"word_similarity_sort.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/text/0.224.2/word_similarity_sort.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,kBAAkB,CAChC,SAAS,EAAE,MAAM,EACjB,aAAa,EAAE,MAAM,EAAE,EACvB,OAAO,CAAC,EAAE;IACR,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB,GACA,MAAM,EAAE,CAOV"}
|
@@ -15,12 +15,28 @@ export type NodeInfoDispatcher<TContextData> = (context: RequestContext<TContext
|
|
15
15
|
* A callback that dispatches an {@link Actor} object.
|
16
16
|
*
|
17
17
|
* @typeParam TContextData The context data to pass to the {@link Context}.
|
18
|
+
* @param context The request context.
|
19
|
+
* @param handle The actor's handle.
|
20
|
+
* @param key The public key of the actor. **Deprecated: Do not rely on this
|
21
|
+
* parameter. Instead, use the {@link Context.getActorKeyPairs}
|
22
|
+
* method.**
|
18
23
|
*/
|
19
24
|
export type ActorDispatcher<TContextData> = (context: RequestContext<TContextData>, handle: string, key: CryptographicKey | null) => Actor | null | Promise<Actor | null>;
|
25
|
+
/**
|
26
|
+
* A callback that dispatches key pairs for an actor.
|
27
|
+
*
|
28
|
+
* @typeParam TContextData The context data to pass to the {@link Context}.
|
29
|
+
* @param contextData The context data.
|
30
|
+
* @param handle The actor's handle.
|
31
|
+
* @returns The key pairs.
|
32
|
+
* @since 0.10.0
|
33
|
+
*/
|
34
|
+
export type ActorKeyPairsDispatcher<TContextData> = (contextData: TContextData, handle: string) => dntShim.CryptoKeyPair[] | Promise<dntShim.CryptoKeyPair[]>;
|
20
35
|
/**
|
21
36
|
* A callback that dispatches a key pair for an actor.
|
22
37
|
*
|
23
38
|
* @typeParam TContextData The context data to pass to the {@link Context}.
|
39
|
+
* @deprecated
|
24
40
|
*/
|
25
41
|
export type ActorKeyPairDispatcher<TContextData> = (contextData: TContextData, handle: string) => dntShim.CryptoKeyPair | null | Promise<dntShim.CryptoKeyPair | null>;
|
26
42
|
/**
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"callback.d.ts","sourceRoot":"","sources":["../../src/federation/callback.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAC;AAC5C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,KAAK,EAAE,QAAQ,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAClE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mBA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,cAAc,EAAE,KAAK,GAAG,IAAI,KACzB,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC"}
|
@@ -90,13 +90,22 @@ export interface Context<TContextData> {
|
|
90
90
|
* Extracts the actor's handle from an actor URI, if it is a valid actor URI.
|
91
91
|
* @param actorUri The actor's URI.
|
92
92
|
* @returns The actor's handle, or `null` if the URI is not a valid actor URI.
|
93
|
-
* @deprecated Use {@link parseUri} instead.
|
93
|
+
* @deprecated Use {@link Context.parseUri} instead.
|
94
94
|
*/
|
95
95
|
getHandleFromActorUri(actorUri: URL): string | null;
|
96
96
|
/**
|
97
|
-
* Gets
|
97
|
+
* Gets the key pairs for an actor.
|
98
|
+
* @param handle The actor's handle.
|
99
|
+
* @returns An async iterable of the actor's key pairs. It can be empty.
|
100
|
+
* @since 0.10.0
|
101
|
+
*/
|
102
|
+
getActorKeyPairs(handle: string): Promise<ActorKeyPair[]>;
|
103
|
+
/**
|
104
|
+
* Gets a public RSA-PKCS#1-v1.5 {@link CryptographicKey} for an actor,
|
105
|
+
* if any exists.
|
98
106
|
* @param handle The actor's handle.
|
99
107
|
* @returns The actor's public key, or `null` if the actor has no key.
|
108
|
+
* @deprecated Use {@link Context.getActorKeyPairs} instead.
|
100
109
|
*/
|
101
110
|
getActorKey(handle: string): Promise<CryptographicKey | null>;
|
102
111
|
/**
|
@@ -305,4 +314,17 @@ export interface SendActivityOptions {
|
|
305
314
|
*/
|
306
315
|
excludeBaseUris?: URL[];
|
307
316
|
}
|
317
|
+
/**
|
318
|
+
* A pair of a public key and a private key in various formats.
|
319
|
+
*/
|
320
|
+
export interface ActorKeyPair extends dntShim.CryptoKeyPair {
|
321
|
+
/**
|
322
|
+
* The URI of the public key, which is used for verifying HTTP Signatures.
|
323
|
+
*/
|
324
|
+
keyId: URL;
|
325
|
+
/**
|
326
|
+
* A {@link CryptographicKey} instance of the public key.
|
327
|
+
*/
|
328
|
+
cryptographicKey: CryptographicKey;
|
329
|
+
}
|
308
330
|
//# sour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nt.shims.js";
|
|
4
4
|
import { type AuthenticatedDocumentLoaderFactory, type DocumentLoader } from "../runtime/docloader.js";
|
5
5
|
import type { Actor, Recipient } from "../vocab/actor.js";
|
6
6
|
import { Activity, type Object } from "../vocab/mod.js";
|
7
|
-
import type { ActorDispatcher, ActorKeyPairDispatcher, AuthorizePredicate, CollectionCounter, CollectionCursor, CollectionDispatcher, InboxErrorHandler, InboxListener, NodeInfoDispatcher, ObjectAuthorizePredicate, ObjectDispatcher, OutboxErrorHandler } from "./callback.js";
|
7
|
+
import type { ActorDispatcher, ActorKeyPairDispatcher, ActorKeyPairsDispatcher, AuthorizePredicate, CollectionCounter, CollectionCursor, CollectionDispatcher, InboxErrorHandler, InboxListener, NodeInfoDispatcher, ObjectAuthorizePredicate, ObjectDispatcher, OutboxErrorHandler } from "./callback.js";
|
8
8
|
import type { Context, RequestContext, SendActivityOptions } from "./context.js";
|
9
9
|
import type { KvKey, KvStore } from "./kv.js";
|
10
10
|
import type { MessageQueue } from "./mq.js";
|
@@ -143,7 +143,7 @@ export declare class Federation<TContextData> {
|
|
143
143
|
* ``` typescript
|
144
144
|
* federation.setActorDispatcher(
|
145
145
|
* "/users/{handle}",
|
146
|
-
* async (ctx, handle
|
146
|
+
* async (ctx, handle) => {
|
147
147
|
* return new Person({
|
148
148
|
* id: ctx.getActorUri(handle),
|
149
149
|
* preferredUsername: handle,
|
@@ -425,16 +425,26 @@ export interface FederationFetchOptions<TContextData> {
|
|
425
425
|
* federation.setActorDispatcher("/users/{handle}", async (ctx, handle, key) => {
|
426
426
|
* ...
|
427
427
|
* })
|
428
|
-
* .
|
428
|
+
* .setKeyPairsDispatcher(async (ctxData, handle) => {
|
429
429
|
* ...
|
430
430
|
* });
|
431
431
|
* ```
|
432
432
|
*/
|
433
433
|
export interface ActorCallbackSetters<TContextData> {
|
434
434
|
/**
|
435
|
-
* Sets the key
|
435
|
+
* Sets the key pairs dispatcher for actors.
|
436
|
+
* @param dispatcher A callback that returns the key pairs for an actor.
|
437
|
+
* @returns The setters object so that settings can be chained.
|
438
|
+
* @since 0.10.0
|
439
|
+
*/
|
440
|
+
setKeyPairsDispatcher(dispatcher: ActorKeyPairsDispatcher<TContextData>): ActorCallbackSetters<TContextData>;
|
441
|
+
/**
|
442
|
+
* Sets the RSA-PKCS#1-v1.5 key pair dispatcher for actors.
|
443
|
+
*
|
444
|
+
* Use {@link ActorCallbackSetters.setKeyPairsDispatcher} instead.
|
436
445
|
* @param dispatcher A callback that returns the key pair for an actor.
|
437
446
|
* @returns The setters object so that settings can be chained.
|
447
|
+
* @deprecated
|
438
448
|
*/
|
439
449
|
setKeyPairDispatcher(dispatcher: ActorKeyPairDispatcher<TContextData>): ActorCallbackSetters<TContextData>;
|
440
450
|
/**
|