@fedify/fedify 1.0.0-dev.409 → 1.0.0-dev.411
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGES.md +12 -0
- package/esm/deps/jsr.io/@std/encoding/{0.224.3 → 1.0.5}/_validate_binary_like.js +1 -1
- package/esm/deps/jsr.io/@std/encoding/{0.224.3 → 1.0.5}/base64.js +3 -5
- package/esm/deps/jsr.io/@std/encoding/{0.224.3 → 1.0.5}/base64url.js +3 -5
- package/esm/deps/jsr.io/@std/encoding/{0.224.3 → 1.0.5}/hex.js +7 -9
- package/esm/deps/jsr.io/@std/http/{0.224.5 → 1.0.6}/_negotiation/encoding.js +3 -1
- package/esm/deps/jsr.io/@std/http/{0.224.5 → 1.0.6}/_negotiation/language.js +2 -2
- package/esm/deps/jsr.io/@std/http/{0.224.5 → 1.0.6}/_negotiation/media_type.js +7 -7
- package/esm/deps/jsr.io/@std/semver/1.0.3/_constants.js +38 -0
- package/esm/deps/jsr.io/@std/semver/{0.224.3 → 1.0.3}/_shared.js +3 -2
- package/esm/deps/jsr.io/@std/semver/{0.224.3 → 1.0.3}/can_parse.js +4 -7
- package/esm/deps/jsr.io/@std/semver/1.0.3/compare.js +35 -0
- package/esm/deps/jsr.io/@std/semver/1.0.3/difference.js +41 -0
- package/esm/deps/jsr.io/@std/semver/1.0.3/equals.js +27 -0
- package/esm/deps/jsr.io/@std/semver/1.0.3/format.js +32 -0
- package/esm/deps/jsr.io/@std/semver/{0.224.3 → 1.0.3}/format_range.js +5 -3
- package/esm/deps/jsr.io/@std/semver/1.0.3/greater_or_equal.js +26 -0
- package/esm/deps/jsr.io/@std/semver/1.0.3/greater_than.js +28 -0
- package/esm/deps/jsr.io/@std/semver/{0.224.3 → 1.0.3}/greater_than_range.js +14 -13
- package/esm/deps/jsr.io/@std/semver/{0.224.3 → 1.0.3}/increment.js +13 -14
- package/esm/deps/jsr.io/@std/semver/{0.224.3 → 1.0.3}/is_range.js +4 -4
- package/esm/deps/jsr.io/@std/semver/{0.224.3 → 1.0.3}/is_semver.js +3 -5
- package/esm/deps/jsr.io/@std/semver/1.0.3/less_or_equal.js +26 -0
- package/esm/deps/jsr.io/@std/semver/1.0.3/less_than.js +26 -0
- package/esm/deps/jsr.io/@std/semver/{0.224.3 → 1.0.3}/less_than_range.js +14 -13
- package/esm/deps/jsr.io/@std/semver/{0.224.3 → 1.0.3}/max_satisfying.js +2 -2
- package/esm/deps/jsr.io/@std/semver/{0.224.3 → 1.0.3}/min_satisfying.js +2 -2
- package/esm/deps/jsr.io/@std/semver/{0.224.3 → 1.0.3}/mod.js +25 -33
- package/esm/deps/jsr.io/@std/semver/1.0.3/not_equals.js +25 -0
- package/esm/deps/jsr.io/@std/semver/1.0.3/parse.js +44 -0
- package/esm/deps/jsr.io/@std/semver/{0.224.3 → 1.0.3}/parse_range.js +18 -13
- package/esm/deps/jsr.io/@std/semver/{0.224.3 → 1.0.3}/range_intersects.js +29 -28
- package/esm/deps/jsr.io/@std/semver/{0.224.3 → 1.0.3}/satisfies.js +3 -3
- package/esm/deps/jsr.io/@std/semver/{0.224.3 → 1.0.3}/try_parse.js +5 -8
- package/esm/deps/jsr.io/@std/semver/{0.224.3 → 1.0.3}/try_parse_range.js +3 -3
- package/esm/federation/collection.js +1 -1
- package/esm/federation/handler.js +1 -1
- package/esm/nodeinfo/types.js +1 -1
- package/esm/runtime/key.js +3 -3
- package/esm/sig/http.js +1 -1
- package/esm/sig/ld.js +2 -2
- package/package.json +4 -4
- package/types/deps/jsr.io/@std/encoding/1.0.5/_validate_binary_like.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/encoding/{0.224.3 → 1.0.5}/base64.d.ts +2 -2
- package/types/deps/jsr.io/@std/encoding/1.0.5/base64.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/encoding/{0.224.3 → 1.0.5}/base64url.d.ts +2 -2
- package/types/deps/jsr.io/@std/encoding/1.0.5/base64url.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/encoding/{0.224.3 → 1.0.5}/hex.d.ts +2 -2
- package/types/deps/jsr.io/@std/encoding/1.0.5/hex.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/http/{0.224.5 → 1.0.6}/_negotiation/common.d.ts +2 -2
- package/types/deps/jsr.io/@std/http/1.0.6/_negotiation/common.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/http/1.0.6/_negotiation/encoding.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/http/1.0.6/_negotiation/language.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/http/1.0.6/_negotiation/media_type.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/http/{0.224.5 → 1.0.6}/negotiation.d.ts +13 -18
- package/types/deps/jsr.io/@std/http/1.0.6/negotiation.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/semver/1.0.3/_constants.d.ts +16 -0
- package/types/deps/jsr.io/@std/semver/1.0.3/_constants.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/semver/1.0.3/_shared.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/semver/1.0.3/_test_comparator_set.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/semver/{0.224.3 → 1.0.3}/can_parse.d.ts +2 -2
- package/types/deps/jsr.io/@std/semver/1.0.3/can_parse.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/semver/1.0.3/compare.d.ts +28 -0
- package/types/deps/jsr.io/@std/semver/1.0.3/compare.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/semver/1.0.3/difference.d.ts +27 -0
- package/types/deps/jsr.io/@std/semver/1.0.3/difference.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/semver/1.0.3/equals.d.ts +24 -0
- package/types/deps/jsr.io/@std/semver/1.0.3/equals.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/semver/{0.224.3 → 1.0.3}/format.d.ts +3 -7
- package/types/deps/jsr.io/@std/semver/1.0.3/format.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/semver/{0.224.3 → 1.0.3}/format_range.d.ts +3 -2
- package/types/deps/jsr.io/@std/semver/1.0.3/format_range.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/semver/1.0.3/greater_or_equal.d.ts +25 -0
- package/types/deps/jsr.io/@std/semver/1.0.3/greater_or_equal.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/semver/1.0.3/greater_than.d.ts +25 -0
- package/types/deps/jsr.io/@std/semver/1.0.3/greater_than.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/semver/{0.224.3 → 1.0.3}/greater_than_range.d.ts +8 -7
- package/types/deps/jsr.io/@std/semver/1.0.3/greater_than_range.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/semver/{0.224.3 → 1.0.3}/increment.d.ts +11 -5
- package/types/deps/jsr.io/@std/semver/1.0.3/increment.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/semver/{0.224.3 → 1.0.3}/is_range.d.ts +2 -2
- package/types/deps/jsr.io/@std/semver/1.0.3/is_range.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/semver/{0.224.3 → 1.0.3}/is_semver.d.ts +2 -2
- package/types/deps/jsr.io/@std/semver/1.0.3/is_semver.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/semver/1.0.3/less_or_equal.d.ts +25 -0
- package/types/deps/jsr.io/@std/semver/1.0.3/less_or_equal.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/semver/1.0.3/less_than.d.ts +25 -0
- package/types/deps/jsr.io/@std/semver/1.0.3/less_than.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/semver/{0.224.3 → 1.0.3}/less_than_range.d.ts +8 -7
- package/types/deps/jsr.io/@std/semver/1.0.3/less_than_range.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/semver/{0.224.3 → 1.0.3}/max_satisfying.d.ts +2 -2
- package/types/deps/jsr.io/@std/semver/1.0.3/max_satisfying.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/semver/{0.224.3 → 1.0.3}/min_satisfying.d.ts +2 -2
- package/types/deps/jsr.io/@std/semver/1.0.3/min_satisfying.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/semver/{0.224.3 → 1.0.3}/mod.d.ts +25 -33
- package/types/deps/jsr.io/@std/semver/1.0.3/mod.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/semver/1.0.3/not_equals.d.ts +24 -0
- package/types/deps/jsr.io/@std/semver/1.0.3/not_equals.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/semver/{0.224.3 → 1.0.3}/parse.d.ts +5 -5
- package/types/deps/jsr.io/@std/semver/1.0.3/parse.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/semver/{0.224.3 → 1.0.3}/parse_range.d.ts +6 -5
- package/types/deps/jsr.io/@std/semver/1.0.3/parse_range.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/semver/1.0.3/range_intersects.d.ts +25 -0
- package/types/deps/jsr.io/@std/semver/1.0.3/range_intersects.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/semver/{0.224.3 → 1.0.3}/satisfies.d.ts +3 -3
- package/types/deps/jsr.io/@std/semver/1.0.3/satisfies.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/semver/{0.224.3 → 1.0.3}/try_parse.d.ts +4 -4
- package/types/deps/jsr.io/@std/semver/1.0.3/try_parse.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/semver/{0.224.3 → 1.0.3}/try_parse_range.d.ts +2 -2
- package/types/deps/jsr.io/@std/semver/1.0.3/try_parse_range.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/semver/{0.224.3 → 1.0.3}/types.d.ts +23 -4
- package/types/deps/jsr.io/@std/semver/1.0.3/types.d.ts.map +1 -0
- package/types/nodeinfo/types.d.ts +1 -1
- package/types/nodeinfo/types.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/semver/0.224.3/_constants.js +0 -10
- package/esm/deps/jsr.io/@std/semver/0.224.3/compare.js +0 -35
- package/esm/deps/jsr.io/@std/semver/0.224.3/constants.js +0 -71
- package/esm/deps/jsr.io/@std/semver/0.224.3/difference.js +0 -37
- package/esm/deps/jsr.io/@std/semver/0.224.3/equals.js +0 -27
- package/esm/deps/jsr.io/@std/semver/0.224.3/format.js +0 -48
- package/esm/deps/jsr.io/@std/semver/0.224.3/greater_or_equal.js +0 -25
- package/esm/deps/jsr.io/@std/semver/0.224.3/greater_than.js +0 -27
- package/esm/deps/jsr.io/@std/semver/0.224.3/less_or_equal.js +0 -25
- package/esm/deps/jsr.io/@std/semver/0.224.3/less_than.js +0 -25
- package/esm/deps/jsr.io/@std/semver/0.224.3/not_equals.js +0 -24
- package/esm/deps/jsr.io/@std/semver/0.224.3/parse.js +0 -50
- package/esm/deps/jsr.io/@std/semver/0.224.3/range_max.js +0 -77
- package/esm/deps/jsr.io/@std/semver/0.224.3/range_min.js +0 -68
- package/esm/deps/jsr.io/@std/semver/0.224.3/test_range.js +0 -28
- package/types/deps/jsr.io/@std/encoding/0.224.3/_validate_binary_like.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/encoding/0.224.3/base64.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/encoding/0.224.3/base64url.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/encoding/0.224.3/hex.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/http/0.224.5/_negotiation/common.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/http/0.224.5/_negotiation/encoding.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/http/0.224.5/_negotiation/language.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/http/0.224.5/_negotiation/media_type.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/http/0.224.5/negotiation.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/semver/0.224.3/_constants.d.ts +0 -2
- package/types/deps/jsr.io/@std/semver/0.224.3/_constants.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/semver/0.224.3/_shared.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/semver/0.224.3/_test_comparator_set.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/semver/0.224.3/can_parse.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/semver/0.224.3/compare.d.ts +0 -28
- package/types/deps/jsr.io/@std/semver/0.224.3/compare.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/semver/0.224.3/constants.d.ts +0 -43
- package/types/deps/jsr.io/@std/semver/0.224.3/constants.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/semver/0.224.3/difference.d.ts +0 -27
- package/types/deps/jsr.io/@std/semver/0.224.3/difference.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/semver/0.224.3/equals.d.ts +0 -24
- package/types/deps/jsr.io/@std/semver/0.224.3/equals.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/semver/0.224.3/format.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/semver/0.224.3/format_range.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/semver/0.224.3/greater_or_equal.d.ts +0 -24
- package/types/deps/jsr.io/@std/semver/0.224.3/greater_or_equal.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/semver/0.224.3/greater_than.d.ts +0 -24
- package/types/deps/jsr.io/@std/semver/0.224.3/greater_than.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/semver/0.224.3/greater_than_range.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/semver/0.224.3/increment.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/semver/0.224.3/is_range.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/semver/0.224.3/is_semver.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/semver/0.224.3/less_or_equal.d.ts +0 -24
- package/types/deps/jsr.io/@std/semver/0.224.3/less_or_equal.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/semver/0.224.3/less_than.d.ts +0 -24
- package/types/deps/jsr.io/@std/semver/0.224.3/less_than.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/semver/0.224.3/less_than_range.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/semver/0.224.3/max_satisfying.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/semver/0.224.3/min_satisfying.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/semver/0.224.3/mod.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/semver/0.224.3/not_equals.d.ts +0 -23
- package/types/deps/jsr.io/@std/semver/0.224.3/not_equals.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/semver/0.224.3/parse.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/semver/0.224.3/parse_range.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/semver/0.224.3/range_intersects.d.ts +0 -24
- package/types/deps/jsr.io/@std/semver/0.224.3/range_intersects.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/semver/0.224.3/range_max.d.ts +0 -25
- package/types/deps/jsr.io/@std/semver/0.224.3/range_max.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/semver/0.224.3/range_min.d.ts +0 -25
- package/types/deps/jsr.io/@std/semver/0.224.3/range_min.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/semver/0.224.3/satisfies.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/semver/0.224.3/test_range.d.ts +0 -27
- package/types/deps/jsr.io/@std/semver/0.224.3/test_range.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/semver/0.224.3/try_parse.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/semver/0.224.3/try_parse_range.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/semver/0.224.3/types.d.ts.map +0 -1
- /package/esm/deps/jsr.io/@std/http/{0.224.5 → 1.0.6}/_negotiation/common.js +0 -0
- /package/esm/deps/jsr.io/@std/http/{0.224.5 → 1.0.6}/negotiation.js +0 -0
- /package/esm/deps/jsr.io/@std/semver/{0.224.3 → 1.0.3}/_test_comparator_set.js +0 -0
- /package/esm/deps/jsr.io/@std/semver/{0.224.3 → 1.0.3}/types.js +0 -0
- /package/types/deps/jsr.io/@std/encoding/{0.224.3 → 1.0.5}/_validate_binary_like.d.ts +0 -0
- /package/types/deps/jsr.io/@std/http/{0.224.5 → 1.0.6}/_negotiation/encoding.d.ts +0 -0
- /package/types/deps/jsr.io/@std/http/{0.224.5 → 1.0.6}/_negotiation/language.d.ts +0 -0
- /package/types/deps/jsr.io/@std/http/{0.224.5 → 1.0.6}/_negotiation/media_type.d.ts +0 -0
- /package/types/deps/jsr.io/@std/semver/{0.224.3 → 1.0.3}/_shared.d.ts +0 -0
- /package/types/deps/jsr.io/@std/semver/{0.224.3 → 1.0.3}/_test_comparator_set.d.ts +0 -0
@@ -1,11 +1,11 @@
|
|
1
1
|
import { parse } from "./parse.js";
|
2
2
|
/**
|
3
|
-
* Returns the parsed
|
3
|
+
* Returns the parsed SemVer, or `undefined` if it's not valid.
|
4
4
|
*
|
5
5
|
* @example Usage
|
6
6
|
* ```ts
|
7
7
|
* import { tryParse } from "@std/semver/try-parse";
|
8
|
-
* import { assertEquals } from "@std/assert
|
8
|
+
* import { assertEquals } from "@std/assert";
|
9
9
|
*
|
10
10
|
* assertEquals(tryParse("1.2.3"), { major: 1, minor: 2, patch: 3, prerelease: [], build: [] });
|
11
11
|
* assertEquals(tryParse("1.2.3-alpha"), { major: 1, minor: 2, patch: 3, prerelease: ["alpha"], build: [] });
|
@@ -14,15 +14,12 @@ import { parse } from "./parse.js";
|
|
14
14
|
* assertEquals(tryParse(" invalid "), undefined);
|
15
15
|
* ```
|
16
16
|
*
|
17
|
-
* @param
|
17
|
+
* @param value The version string to parse
|
18
18
|
* @returns A valid SemVer or `undefined`
|
19
19
|
*/
|
20
|
-
export function tryParse(
|
21
|
-
if (version === undefined) {
|
22
|
-
return undefined;
|
23
|
-
}
|
20
|
+
export function tryParse(value) {
|
24
21
|
try {
|
25
|
-
return parse(
|
22
|
+
return parse(value);
|
26
23
|
}
|
27
24
|
catch {
|
28
25
|
return undefined;
|
@@ -18,14 +18,14 @@ import { parseRange } from "./parse_range.js";
|
|
18
18
|
* ]);
|
19
19
|
* ```
|
20
20
|
*
|
21
|
-
* @param
|
21
|
+
* @param value The range string
|
22
22
|
* @returns A Range object if valid otherwise `undefined`
|
23
23
|
*/
|
24
|
-
export function tryParseRange(
|
24
|
+
export function tryParseRange(value) {
|
25
25
|
try {
|
26
26
|
// Return '*' instead of '' so that truthiness works.
|
27
27
|
// This will throw if it's invalid anyway
|
28
|
-
return parseRange(
|
28
|
+
return parseRange(value);
|
29
29
|
}
|
30
30
|
catch {
|
31
31
|
return undefined;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import * as dntShim from "../_dnt.shims.js";
|
2
2
|
import { getLogger } from "@logtape/logtape";
|
3
|
-
import { accepts } from "../deps/jsr.io/@std/http/0.
|
3
|
+
import { accepts } from "../deps/jsr.io/@std/http/1.0.6/negotiation.js";
|
4
4
|
import { verifyRequest } from "../sig/http.js";
|
5
5
|
import { detachSignature, verifyJsonLd } from "../sig/ld.js";
|
6
6
|
import { doesActorOwnKey } from "../sig/owner.js";
|
package/esm/nodeinfo/types.js
CHANGED
package/esm/runtime/key.js
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
import * as dntShim from "../_dnt.shims.js";
|
2
2
|
import { createPublicKey } from "node:crypto";
|
3
3
|
import { concat } from "../deps/jsr.io/@std/bytes/1.0.2/concat.js";
|
4
|
-
import { decodeBase64, encodeBase64 } from "../deps/jsr.io/@std/encoding/0.
|
5
|
-
import { decodeBase64Url } from "../deps/jsr.io/@std/encoding/0.
|
6
|
-
import { decodeHex } from "../deps/jsr.io/@std/encoding/0.
|
4
|
+
import { decodeBase64, encodeBase64 } from "../deps/jsr.io/@std/encoding/1.0.5/base64.js";
|
5
|
+
import { decodeBase64Url } from "../deps/jsr.io/@std/encoding/1.0.5/base64url.js";
|
6
|
+
import { decodeHex } from "../deps/jsr.io/@std/encoding/1.0.5/hex.js";
|
7
7
|
import { Integer, Sequence } from "asn1js";
|
8
8
|
import { decode, encode } from "multibase";
|
9
9
|
import { addPrefix, getCodeFromData, rmPrefix } from "multicodec";
|
package/esm/sig/http.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import * as dntShim from "../_dnt.shims.js";
|
2
2
|
import { getLogger } from "@logtape/logtape";
|
3
3
|
import { equals } from "../deps/jsr.io/@std/bytes/1.0.2/mod.js";
|
4
|
-
import { decodeBase64, encodeBase64 } from "../deps/jsr.io/@std/encoding/0.
|
4
|
+
import { decodeBase64, encodeBase64 } from "../deps/jsr.io/@std/encoding/1.0.5/base64.js";
|
5
5
|
import { CryptographicKey } from "../vocab/vocab.js";
|
6
6
|
import { fetchKey, validateCryptoKey } from "./key.js";
|
7
7
|
/**
|
package/esm/sig/ld.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import * as dntShim from "../_dnt.shims.js";
|
2
2
|
import { getLogger } from "@logtape/logtape";
|
3
|
-
import { decodeBase64, encodeBase64 } from "../deps/jsr.io/@std/encoding/0.
|
4
|
-
import { encodeHex } from "../deps/jsr.io/@std/encoding/0.
|
3
|
+
import { decodeBase64, encodeBase64 } from "../deps/jsr.io/@std/encoding/1.0.5/base64.js";
|
4
|
+
import { encodeHex } from "../deps/jsr.io/@std/encoding/1.0.5/hex.js";
|
5
5
|
// @ts-ignore TS7016
|
6
6
|
import jsonld from "jsonld";
|
7
7
|
import { fetchDocumentLoader, } from "../runtime/docloader.js";
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@fedify/fedify",
|
3
|
-
"version": "1.0.0-dev.
|
3
|
+
"version": "1.0.0-dev.411+811199dd",
|
4
4
|
"description": "An ActivityPub server framework",
|
5
5
|
"keywords": [
|
6
6
|
"ActivityPub",
|
@@ -77,14 +77,14 @@
|
|
77
77
|
],
|
78
78
|
"dependencies": {
|
79
79
|
"@hugoalh/http-header-link": "^1.0.2",
|
80
|
-
"@logtape/logtape": "^0.
|
81
|
-
"@phensley/language-tag": "^1.
|
80
|
+
"@logtape/logtape": "^0.5.1",
|
81
|
+
"@phensley/language-tag": "^1.9.0",
|
82
82
|
"asn1js": "^3.0.5",
|
83
83
|
"json-canon": "^1.0.1",
|
84
84
|
"jsonld": "^8.3.2",
|
85
85
|
"multibase": "^4.0.6",
|
86
86
|
"multicodec": "^3.2.1",
|
87
|
-
"pkijs": "^3.
|
87
|
+
"pkijs": "^3.2.4",
|
88
88
|
"uri-template-router": "^0.0.16",
|
89
89
|
"url-template": "^3.1.1",
|
90
90
|
"@deno/shim-deno": "~0.18.0",
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"_validate_binary_like.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/encoding/1.0.5/_validate_binary_like.ts"],"names":[],"mappings":"AAeA,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,OAAO,GAAG,UAAU,CAa9D"}
|
@@ -9,7 +9,7 @@
|
|
9
9
|
* @example Usage
|
10
10
|
* ```ts
|
11
11
|
* import { encodeBase64 } from "@std/encoding/base64";
|
12
|
-
* import { assertEquals } from "@std/assert
|
12
|
+
* import { assertEquals } from "@std/assert";
|
13
13
|
*
|
14
14
|
* assertEquals(encodeBase64("foobar"), "Zm9vYmFy");
|
15
15
|
* ```
|
@@ -26,7 +26,7 @@ export declare function encodeBase64(data: ArrayBuffer | Uint8Array | string): s
|
|
26
26
|
* @example Usage
|
27
27
|
* ```ts
|
28
28
|
* import { decodeBase64 } from "@std/encoding/base64";
|
29
|
-
* import { assertEquals } from "@std/assert
|
29
|
+
* import { assertEquals } from "@std/assert";
|
30
30
|
*
|
31
31
|
* assertEquals(
|
32
32
|
* decodeBase64("Zm9vYmFy"),
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"base64.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/encoding/1.0.5/base64.ts"],"names":[],"mappings":"AA6FA;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,WAAW,GAAG,UAAU,GAAG,MAAM,GAAG,MAAM,CAmC5E;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,UAAU,CAQpD"}
|
@@ -9,7 +9,7 @@
|
|
9
9
|
* @example Usage
|
10
10
|
* ```ts
|
11
11
|
* import { encodeBase64Url } from "@std/encoding/base64url";
|
12
|
-
* import { assertEquals } from "@std/assert
|
12
|
+
* import { assertEquals } from "@std/assert";
|
13
13
|
*
|
14
14
|
* assertEquals(encodeBase64Url("foobar"), "Zm9vYmFy");
|
15
15
|
* ```
|
@@ -26,7 +26,7 @@ export declare function encodeBase64Url(data: ArrayBuffer | Uint8Array | string)
|
|
26
26
|
* @example Usage
|
27
27
|
* ```ts
|
28
28
|
* import { decodeBase64Url } from "@std/encoding/base64url";
|
29
|
-
* import { assertEquals } from "@std/assert
|
29
|
+
* import { assertEquals } from "@std/assert";
|
30
30
|
*
|
31
31
|
* assertEquals(
|
32
32
|
* decodeBase64Url("Zm9vYmFy"),
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"base64url.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/encoding/1.0.5/base64url.ts"],"names":[],"mappings":"AA4CA;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,eAAe,CAC7B,IAAI,EAAE,WAAW,GAAG,UAAU,GAAG,MAAM,GACtC,MAAM,CAER;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,eAAe,CAAC,MAAM,EAAE,MAAM,GAAG,UAAU,CAE1D"}
|
@@ -8,7 +8,7 @@
|
|
8
8
|
* @example Usage
|
9
9
|
* ```ts
|
10
10
|
* import { encodeHex } from "@std/encoding/hex";
|
11
|
-
* import { assertEquals } from "@std/assert
|
11
|
+
* import { assertEquals } from "@std/assert";
|
12
12
|
*
|
13
13
|
* assertEquals(encodeHex("abc"), "616263");
|
14
14
|
* ```
|
@@ -25,7 +25,7 @@ export declare function encodeHex(src: string | Uint8Array | ArrayBuffer): strin
|
|
25
25
|
* @example Usage
|
26
26
|
* ```ts
|
27
27
|
* import { decodeHex } from "@std/encoding/hex";
|
28
|
-
* import { assertEquals } from "@std/assert
|
28
|
+
* import { assertEquals } from "@std/assert";
|
29
29
|
*
|
30
30
|
* assertEquals(
|
31
31
|
* decodeHex("616263"),
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"hex.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/encoding/1.0.5/hex.ts"],"names":[],"mappings":"AAwDA;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,SAAS,CAAC,GAAG,EAAE,MAAM,GAAG,UAAU,GAAG,WAAW,GAAG,MAAM,CAUxE;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,SAAS,CAAC,GAAG,EAAE,MAAM,GAAG,UAAU,CAiBjD"}
|
@@ -29,9 +29,9 @@
|
|
29
29
|
*/
|
30
30
|
export interface Specificity {
|
31
31
|
i: number;
|
32
|
-
o
|
32
|
+
o: number | undefined;
|
33
33
|
q: number;
|
34
|
-
s
|
34
|
+
s: number | undefined;
|
35
35
|
}
|
36
36
|
export declare function compareSpecs(a: Specificity, b: Specificity): number;
|
37
37
|
export declare function isQuality(spec: Specificity): boolean;
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/http/1.0.6/_negotiation/common.ts"],"names":[],"mappings":"AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAEH,MAAM,WAAW,WAAW;IAC1B,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACtB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACvB;AAED,wBAAgB,YAAY,CAAC,CAAC,EAAE,WAAW,EAAE,CAAC,EAAE,WAAW,GAAG,MAAM,CAQnE;AAED,wBAAgB,SAAS,CAAC,IAAI,EAAE,WAAW,GAAG,OAAO,CAEpD"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"encoding.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/http/1.0.6/_negotiation/encoding.ts"],"names":[],"mappings":"AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AA8GH;;qCAEqC;AACrC,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,MAAM,EACd,QAAQ,CAAC,EAAE,MAAM,EAAE,GAClB,MAAM,EAAE,CAkBV"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"language.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/http/1.0.6/_negotiation/language.ts"],"names":[],"mappings":"AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAkGH,wBAAgB,kBAAkB,CAChC,MAAM,SAAM,EACZ,QAAQ,CAAC,EAAE,MAAM,EAAE,GAClB,MAAM,EAAE,CAiBV"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"media_type.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/http/1.0.6/_negotiation/media_type.ts"],"names":[],"mappings":"AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAiJH,wBAAgB,mBAAmB,CACjC,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,EACtB,QAAQ,CAAC,EAAE,MAAM,EAAE,GAClB,MAAM,EAAE,CAkBV"}
|
@@ -1,9 +1,4 @@
|
|
1
|
-
|
2
|
-
export type Request = {
|
3
|
-
headers: {
|
4
|
-
get(key: string): string | null;
|
5
|
-
};
|
6
|
-
};
|
1
|
+
/// <reference types="node" />
|
7
2
|
/**
|
8
3
|
* Returns an array of media types accepted by the request, in order of
|
9
4
|
* preference. If there are no media types supplied in the request, then any
|
@@ -12,7 +7,7 @@ export type Request = {
|
|
12
7
|
* @example Usage
|
13
8
|
* ```ts
|
14
9
|
* import { accepts } from "@std/http/negotiation";
|
15
|
-
* import { assertEquals } from "@std/assert
|
10
|
+
* import { assertEquals } from "@std/assert";
|
16
11
|
*
|
17
12
|
* const request = new Request("https://example.com/", {
|
18
13
|
* headers: {
|
@@ -33,7 +28,7 @@ export type Request = {
|
|
33
28
|
* @param request The request to get the acceptable media types for.
|
34
29
|
* @returns An array of acceptable media types.
|
35
30
|
*/
|
36
|
-
export declare function accepts(request: Request): string[];
|
31
|
+
export declare function accepts(request: Pick<Request, "headers">): string[];
|
37
32
|
/**
|
38
33
|
* For a given set of media types, return the best match accepted in the
|
39
34
|
* request. If no media type matches, then the function returns `undefined`.
|
@@ -41,7 +36,7 @@ export declare function accepts(request: Request): string[];
|
|
41
36
|
* @example Usage
|
42
37
|
* ```ts
|
43
38
|
* import { accepts } from "@std/http/negotiation";
|
44
|
-
* import { assertEquals } from "@std/assert
|
39
|
+
* import { assertEquals } from "@std/assert";
|
45
40
|
*
|
46
41
|
* const request = new Request("https://example.com/", {
|
47
42
|
* headers: {
|
@@ -57,7 +52,7 @@ export declare function accepts(request: Request): string[];
|
|
57
52
|
* @param types An array of media types to find the best matching one from.
|
58
53
|
* @returns The best matching media type, if any match.
|
59
54
|
*/
|
60
|
-
export declare function accepts(request: Request, ...types: string[]): string | undefined;
|
55
|
+
export declare function accepts(request: Pick<Request, "headers">, ...types: string[]): string | undefined;
|
61
56
|
/**
|
62
57
|
* Returns an array of content encodings accepted by the request, in order of
|
63
58
|
* preference. If there are no encoding supplied in the request, then `["*"]`
|
@@ -66,7 +61,7 @@ export declare function accepts(request: Request, ...types: string[]): string |
|
|
66
61
|
* @example Usage
|
67
62
|
* ```ts
|
68
63
|
* import { acceptsEncodings } from "@std/http/negotiation";
|
69
|
-
* import { assertEquals } from "@std/assert
|
64
|
+
* import { assertEquals } from "@std/assert";
|
70
65
|
*
|
71
66
|
* const request = new Request("https://example.com/", {
|
72
67
|
* headers: { "accept-encoding": "deflate, gzip;q=1.0, *;q=0.5" },
|
@@ -78,7 +73,7 @@ export declare function accepts(request: Request, ...types: string[]): string |
|
|
78
73
|
* @param request The request to get the acceptable content encodings for.
|
79
74
|
* @returns An array of content encodings this request accepts.
|
80
75
|
*/
|
81
|
-
export declare function acceptsEncodings(request: Request): string[];
|
76
|
+
export declare function acceptsEncodings(request: Pick<Request, "headers">): string[];
|
82
77
|
/**
|
83
78
|
* For a given set of content encodings, return the best match accepted in the
|
84
79
|
* request. If no content encodings match, then the function returns
|
@@ -91,7 +86,7 @@ export declare function acceptsEncodings(request: Request): string[];
|
|
91
86
|
* @example Usage
|
92
87
|
* ```ts
|
93
88
|
* import { acceptsEncodings } from "@std/http/negotiation";
|
94
|
-
* import { assertEquals } from "@std/assert
|
89
|
+
* import { assertEquals } from "@std/assert";
|
95
90
|
*
|
96
91
|
* const request = new Request("https://example.com/", {
|
97
92
|
* headers: { "accept-encoding": "deflate, gzip;q=1.0, *;q=0.5" },
|
@@ -104,7 +99,7 @@ export declare function acceptsEncodings(request: Request): string[];
|
|
104
99
|
* @param encodings An array of encodings to find the best matching one from.
|
105
100
|
* @returns The best matching encoding, if any match.
|
106
101
|
*/
|
107
|
-
export declare function acceptsEncodings(request: Request, ...encodings: string[]): string | undefined;
|
102
|
+
export declare function acceptsEncodings(request: Pick<Request, "headers">, ...encodings: string[]): string | undefined;
|
108
103
|
/**
|
109
104
|
* Returns an array of languages accepted by the request, in order of
|
110
105
|
* preference. If there are no languages supplied in the request, then `["*"]`
|
@@ -113,7 +108,7 @@ export declare function acceptsEncodings(request: Request, ...encodings: string[
|
|
113
108
|
* @example Usage
|
114
109
|
* ```ts
|
115
110
|
* import { acceptsLanguages } from "@std/http/negotiation";
|
116
|
-
* import { assertEquals } from "@std/assert
|
111
|
+
* import { assertEquals } from "@std/assert";
|
117
112
|
*
|
118
113
|
* const request = new Request("https://example.com/", {
|
119
114
|
* headers: {
|
@@ -127,7 +122,7 @@ export declare function acceptsEncodings(request: Request, ...encodings: string[
|
|
127
122
|
* @param request The request to get the acceptable languages for.
|
128
123
|
* @returns An array of languages this request accepts.
|
129
124
|
*/
|
130
|
-
export declare function acceptsLanguages(request: Request): string[];
|
125
|
+
export declare function acceptsLanguages(request: Pick<Request, "headers">): string[];
|
131
126
|
/**
|
132
127
|
* For a given set of languages, return the best match accepted in the request.
|
133
128
|
* If no languages match, then the function returns `undefined`.
|
@@ -135,7 +130,7 @@ export declare function acceptsLanguages(request: Request): string[];
|
|
135
130
|
* @example Usage
|
136
131
|
* ```ts
|
137
132
|
* import { acceptsLanguages } from "@std/http/negotiation";
|
138
|
-
* import { assertEquals } from "@std/assert
|
133
|
+
* import { assertEquals } from "@std/assert";
|
139
134
|
*
|
140
135
|
* const request = new Request("https://example.com/", {
|
141
136
|
* headers: {
|
@@ -150,5 +145,5 @@ export declare function acceptsLanguages(request: Request): string[];
|
|
150
145
|
* @param langs An array of languages to find the best matching one from.
|
151
146
|
* @returns The best matching language, if any match.
|
152
147
|
*/
|
153
|
-
export declare function acceptsLanguages(request: Request, ...langs: string[]): string | undefined;
|
148
|
+
export declare function acceptsLanguages(request: Pick<Request, "headers">, ...langs: string[]): string | undefined;
|
154
149
|
//# sourceMappingURL=negotiation.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"negotiation.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/http/1.0.6/negotiation.ts"],"names":[],"mappings":";AAcA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,wBAAgB,OAAO,CAAC,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,SAAS,CAAC,GAAG,MAAM,EAAE,CAAC;AACrE;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,OAAO,CACrB,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,SAAS,CAAC,EACjC,GAAG,KAAK,EAAE,MAAM,EAAE,GACjB,MAAM,GAAG,SAAS,CAAC;AAatB;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,SAAS,CAAC,GAAG,MAAM,EAAE,CAAC;AAC9E;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAgB,gBAAgB,CAC9B,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,SAAS,CAAC,EACjC,GAAG,SAAS,EAAE,MAAM,EAAE,GACrB,MAAM,GAAG,SAAS,CAAC;AAetB;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,SAAS,CAAC,GAAG,MAAM,EAAE,CAAC;AAC9E;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,gBAAgB,CAC9B,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,SAAS,CAAC,EACjC,GAAG,KAAK,EAAE,MAAM,EAAE,GACjB,MAAM,GAAG,SAAS,CAAC"}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import type { Comparator, SemVer } from "./types.js";
|
2
|
+
/**
|
3
|
+
* The minimum valid SemVer object. Equivalent to `0.0.0`.
|
4
|
+
*/
|
5
|
+
export declare const MIN: SemVer;
|
6
|
+
/**
|
7
|
+
* ANY is a sentinel value used by some range calculations. It is not a valid
|
8
|
+
* SemVer object and should not be used directly.
|
9
|
+
*/
|
10
|
+
export declare const ANY: SemVer;
|
11
|
+
/**
|
12
|
+
* A comparator which will span all valid semantic versions
|
13
|
+
*/
|
14
|
+
export declare const ALL: Comparator;
|
15
|
+
export declare const OPERATORS: readonly [undefined, "=", "!=", ">", ">=", "<", "<="];
|
16
|
+
//# sourceMappingURL=_constants.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"_constants.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/semver/1.0.3/_constants.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AAErD;;GAEG;AACH,eAAO,MAAM,GAAG,EAAE,MAMjB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,GAAG,EAAE,MAMjB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,GAAG,EAAE,UAGjB,CAAC;AAEF,eAAO,MAAM,SAAS,uDAQZ,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"_shared.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/semver/1.0.3/_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,CAKZ;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"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"_test_comparator_set.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/semver/1.0.3/_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"}
|
@@ -10,8 +10,8 @@
|
|
10
10
|
* assertFalse(canParse("invalid"));
|
11
11
|
* ```
|
12
12
|
*
|
13
|
-
* @param
|
13
|
+
* @param value The version string to check
|
14
14
|
* @returns `true` if the string can be parsed as SemVer, `false` otherwise
|
15
15
|
*/
|
16
|
-
export declare function canParse(
|
16
|
+
export declare function canParse(value: string): boolean;
|
17
17
|
//# sourceMappingURL=can_parse.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"can_parse.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/semver/1.0.3/can_parse.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAO/C"}
|
@@ -0,0 +1,28 @@
|
|
1
|
+
import type { SemVer } from "./types.js";
|
2
|
+
/**
|
3
|
+
* Compare two SemVers.
|
4
|
+
*
|
5
|
+
* Returns `0` if `version1` equals `version2`, or `1` if `version1` is greater, or `-1` if `version2` is
|
6
|
+
* greater.
|
7
|
+
*
|
8
|
+
* Sorts in ascending order if passed to {@linkcode Array.sort}.
|
9
|
+
*
|
10
|
+
* @example Usage
|
11
|
+
* ```ts
|
12
|
+
* import { parse, compare } from "@std/semver";
|
13
|
+
* import { assertEquals } from "@std/assert";
|
14
|
+
*
|
15
|
+
* const version1 = parse("1.2.3");
|
16
|
+
* const version2 = parse("1.2.4");
|
17
|
+
*
|
18
|
+
* assertEquals(compare(version1, version2), -1);
|
19
|
+
* assertEquals(compare(version2, version1), 1);
|
20
|
+
* assertEquals(compare(version1, version1), 0);
|
21
|
+
* ```
|
22
|
+
*
|
23
|
+
* @param version1 The first SemVer to compare
|
24
|
+
* @param version2 The second SemVer to compare
|
25
|
+
* @returns `1` if `version1` is greater, `0` if equal, or `-1` if `version2` is greater
|
26
|
+
*/
|
27
|
+
export declare function compare(version1: SemVer, version2: SemVer): 1 | 0 | -1;
|
28
|
+
//# sourceMappingURL=compare.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"compare.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/semver/1.0.3/compare.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AAOzC;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAgB,OAAO,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAStE"}
|
@@ -0,0 +1,27 @@
|
|
1
|
+
import type { ReleaseType, SemVer } from "./types.js";
|
2
|
+
/**
|
3
|
+
* Returns difference between two SemVers by the release type,
|
4
|
+
* or `undefined` if the SemVers are the same.
|
5
|
+
*
|
6
|
+
* @example Usage
|
7
|
+
* ```ts
|
8
|
+
* import { parse, difference } from "@std/semver";
|
9
|
+
* import { assertEquals } from "@std/assert";
|
10
|
+
*
|
11
|
+
* const version1 = parse("1.2.3");
|
12
|
+
* const version2 = parse("1.2.4");
|
13
|
+
* const version3 = parse("1.3.0");
|
14
|
+
* const version4 = parse("2.0.0");
|
15
|
+
*
|
16
|
+
* assertEquals(difference(version1, version2), "patch");
|
17
|
+
* assertEquals(difference(version1, version3), "minor");
|
18
|
+
* assertEquals(difference(version1, version4), "major");
|
19
|
+
* assertEquals(difference(version1, version1), undefined);
|
20
|
+
* ```
|
21
|
+
*
|
22
|
+
* @param version1 The first SemVer to compare
|
23
|
+
* @param version2 The second SemVer to compare
|
24
|
+
* @returns The release type difference or `undefined` if the versions are the same
|
25
|
+
*/
|
26
|
+
export declare function difference(version1: SemVer, version2: SemVer): ReleaseType | undefined;
|
27
|
+
//# sourceMappingURL=difference.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"difference.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/semver/1.0.3/difference.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AAGtD;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,UAAU,CACxB,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,MAAM,GACf,WAAW,GAAG,SAAS,CAiBzB"}
|
@@ -0,0 +1,24 @@
|
|
1
|
+
import type { SemVer } from "./types.js";
|
2
|
+
/**
|
3
|
+
* Returns `true` if both SemVers are equivalent.
|
4
|
+
*
|
5
|
+
* This is equal to `compare(version1, version2) === 0`.
|
6
|
+
*
|
7
|
+
* @example Usage
|
8
|
+
* ```ts
|
9
|
+
* import { parse, equals } from "@std/semver";
|
10
|
+
* import { assert } from "@std/assert";
|
11
|
+
*
|
12
|
+
* const version1 = parse("1.2.3");
|
13
|
+
* const version2 = parse("1.2.3");
|
14
|
+
*
|
15
|
+
* assert(equals(version1, version2));
|
16
|
+
* assert(!equals(version1, parse("1.2.4")));
|
17
|
+
* ```
|
18
|
+
*
|
19
|
+
* @param version1 The first SemVer to compare
|
20
|
+
* @param version2 The second SemVer to compare
|
21
|
+
* @returns `true` if `version1` is equal to `version2`, `false` otherwise
|
22
|
+
*/
|
23
|
+
export declare function equals(version1: SemVer, version2: SemVer): boolean;
|
24
|
+
//# sourceMappingURL=equals.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"equals.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/semver/1.0.3/equals.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AAEzC;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,MAAM,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAElE"}
|
@@ -2,14 +2,10 @@ import type { SemVer } from "./types.js";
|
|
2
2
|
/**
|
3
3
|
* Format a SemVer object into a string.
|
4
4
|
*
|
5
|
-
* If any number is NaN then NaN will be printed.
|
6
|
-
*
|
7
|
-
* If any number is positive or negative infinity then '∞' or '⧞' will be printed instead.
|
8
|
-
*
|
9
5
|
* @example Usage
|
10
6
|
* ```ts
|
11
7
|
* import { format } from "@std/semver/format";
|
12
|
-
* import { assertEquals } from "@std/assert
|
8
|
+
* import { assertEquals } from "@std/assert";
|
13
9
|
*
|
14
10
|
* const semver = {
|
15
11
|
* major: 1,
|
@@ -19,8 +15,8 @@ import type { SemVer } from "./types.js";
|
|
19
15
|
* assertEquals(format(semver), "1.2.3");
|
20
16
|
* ```
|
21
17
|
*
|
22
|
-
* @param
|
18
|
+
* @param version The SemVer to format
|
23
19
|
* @returns The string representation of a semantic version.
|
24
20
|
*/
|
25
|
-
export declare function format(
|
21
|
+
export declare function format(version: SemVer): string;
|
26
22
|
//# sourceMappingURL=format.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"format.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/semver/1.0.3/format.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AAMzC;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,MAAM,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAU9C"}
|
@@ -1,6 +1,7 @@
|
|
1
1
|
import type { Range } from "./types.js";
|
2
2
|
/**
|
3
|
-
* Formats the
|
3
|
+
* Formats the SemVerrange into a string.
|
4
|
+
*
|
4
5
|
* @example Usage
|
5
6
|
* ```ts
|
6
7
|
* import { formatRange, parseRange } from "@std/semver";
|
@@ -11,7 +12,7 @@ import type { Range } from "./types.js";
|
|
11
12
|
* ```
|
12
13
|
*
|
13
14
|
* @param range The range to format
|
14
|
-
* @returns A string representation of the range
|
15
|
+
* @returns A string representation of the SemVer range
|
15
16
|
*/
|
16
17
|
export declare function formatRange(range: Range): string;
|
17
18
|
//# sourceMappingURL=format_range.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"format_range.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/semver/1.0.3/format_range.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAc,KAAK,EAAE,MAAM,YAAY,CAAC;AAUpD;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,KAAK,GAAG,MAAM,CAGhD"}
|
@@ -0,0 +1,25 @@
|
|
1
|
+
import type { SemVer } from "./types.js";
|
2
|
+
/**
|
3
|
+
* Greater than or equal to comparison for two SemVers.
|
4
|
+
*
|
5
|
+
* This is equal to `compare(version1, version2) >= 0`.
|
6
|
+
*
|
7
|
+
* @example Usage
|
8
|
+
* ```ts
|
9
|
+
* import { parse, greaterOrEqual } from "@std/semver";
|
10
|
+
* import { assert } from "@std/assert";
|
11
|
+
*
|
12
|
+
* const version1 = parse("1.2.3");
|
13
|
+
* const version2 = parse("1.2.4");
|
14
|
+
*
|
15
|
+
* assert(greaterOrEqual(version2, version1));
|
16
|
+
* assert(!greaterOrEqual(version1, version2));
|
17
|
+
* assert(greaterOrEqual(version1, version1));
|
18
|
+
* ```
|
19
|
+
*
|
20
|
+
* @param version1 The first version to compare
|
21
|
+
* @param version2 The second version to compare
|
22
|
+
* @returns `true` if `version1` is greater than or equal to `version2`, `false` otherwise
|
23
|
+
*/
|
24
|
+
export declare function greaterOrEqual(version1: SemVer, version2: SemVer): boolean;
|
25
|
+
//# sourceMappingURL=greater_or_equal.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"greater_or_equal.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/semver/1.0.3/greater_or_equal.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AAGzC;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,cAAc,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAE1E"}
|
@@ -0,0 +1,25 @@
|
|
1
|
+
import type { SemVer } from "./types.js";
|
2
|
+
/**
|
3
|
+
* Greater than comparison for two SemVers.
|
4
|
+
*
|
5
|
+
* This is equal to `compare(version1, version2) > 0`.
|
6
|
+
*
|
7
|
+
* @example Usage
|
8
|
+
* ```ts
|
9
|
+
* import { parse, greaterThan } from "@std/semver";
|
10
|
+
* import { assert } from "@std/assert";
|
11
|
+
*
|
12
|
+
* const version1 = parse("1.2.3");
|
13
|
+
* const version2 = parse("1.2.4");
|
14
|
+
*
|
15
|
+
* assert(greaterThan(version2, version1));
|
16
|
+
* assert(!greaterThan(version1, version2));
|
17
|
+
* assert(!greaterThan(version1, version1));
|
18
|
+
* ```
|
19
|
+
*
|
20
|
+
* @param version1 The first version to compare
|
21
|
+
* @param version2 The second version to compare
|
22
|
+
* @returns `true` if `version1` is greater than `version2`, `false` otherwise
|
23
|
+
*/
|
24
|
+
export declare function greaterThan(version1: SemVer, version2: SemVer): boolean;
|
25
|
+
//# sourceMappingURL=greater_than.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"greater_than.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/semver/1.0.3/greater_than.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AAGzC;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,WAAW,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAEvE"}
|