@fedify/fedify 1.6.0-dev.812 → 1.6.0-dev.814
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/esm/deno.js +1 -2
- package/esm/federation/handler.js +3 -2
- package/esm/{deps/jsr.io/@std/http/1.0.16/_negotiation/media_type.js → federation/negotiation.js} +14 -62
- package/esm/nodeinfo/client.js +2 -2
- package/esm/nodeinfo/mod.js +1 -1
- package/esm/nodeinfo/semver.js +150 -0
- package/esm/nodeinfo/types.js +2 -2
- package/esm/vocab/vocab.js +176 -176
- package/package.json +1 -1
- package/types/deno.d.ts +0 -1
- package/types/federation/handler.d.ts.map +1 -1
- package/types/{deps/jsr.io/@std/http/1.0.16/_negotiation/common.d.ts → federation/negotiation.d.ts} +2 -3
- package/types/federation/negotiation.d.ts.map +1 -0
- package/types/nodeinfo/client.d.ts.map +1 -1
- package/types/nodeinfo/mod.d.ts +1 -1
- package/types/nodeinfo/mod.d.ts.map +1 -1
- package/types/nodeinfo/semver.d.ts +71 -0
- package/types/nodeinfo/semver.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/http/1.0.16/_negotiation/common.js +0 -40
- package/esm/deps/jsr.io/@std/http/1.0.16/_negotiation/encoding.js +0 -123
- package/esm/deps/jsr.io/@std/http/1.0.16/_negotiation/language.js +0 -113
- package/esm/deps/jsr.io/@std/http/1.0.16/negotiation.js +0 -37
- package/esm/deps/jsr.io/@std/semver/1.0.5/_constants.js +0 -28
- package/esm/deps/jsr.io/@std/semver/1.0.5/_shared.js +0 -162
- package/esm/deps/jsr.io/@std/semver/1.0.5/_test_comparator_set.js +0 -58
- package/esm/deps/jsr.io/@std/semver/1.0.5/can_parse.js +0 -27
- package/esm/deps/jsr.io/@std/semver/1.0.5/compare.js +0 -35
- package/esm/deps/jsr.io/@std/semver/1.0.5/difference.js +0 -41
- package/esm/deps/jsr.io/@std/semver/1.0.5/equals.js +0 -27
- package/esm/deps/jsr.io/@std/semver/1.0.5/format.js +0 -32
- package/esm/deps/jsr.io/@std/semver/1.0.5/format_range.js +0 -27
- package/esm/deps/jsr.io/@std/semver/1.0.5/greater_or_equal.js +0 -26
- package/esm/deps/jsr.io/@std/semver/1.0.5/greater_than.js +0 -28
- package/esm/deps/jsr.io/@std/semver/1.0.5/greater_than_range.js +0 -58
- package/esm/deps/jsr.io/@std/semver/1.0.5/increment.js +0 -176
- package/esm/deps/jsr.io/@std/semver/1.0.5/is_range.js +0 -38
- package/esm/deps/jsr.io/@std/semver/1.0.5/is_semver.js +0 -53
- package/esm/deps/jsr.io/@std/semver/1.0.5/less_or_equal.js +0 -26
- package/esm/deps/jsr.io/@std/semver/1.0.5/less_than.js +0 -26
- package/esm/deps/jsr.io/@std/semver/1.0.5/less_than_range.js +0 -58
- package/esm/deps/jsr.io/@std/semver/1.0.5/max_satisfying.js +0 -30
- package/esm/deps/jsr.io/@std/semver/1.0.5/min_satisfying.js +0 -30
- package/esm/deps/jsr.io/@std/semver/1.0.5/mod.js +0 -300
- package/esm/deps/jsr.io/@std/semver/1.0.5/not_equals.js +0 -25
- package/esm/deps/jsr.io/@std/semver/1.0.5/parse.js +0 -44
- package/esm/deps/jsr.io/@std/semver/1.0.5/parse_range.js +0 -358
- package/esm/deps/jsr.io/@std/semver/1.0.5/range_intersects.js +0 -89
- package/esm/deps/jsr.io/@std/semver/1.0.5/satisfies.js +0 -27
- package/esm/deps/jsr.io/@std/semver/1.0.5/try_parse.js +0 -27
- package/esm/deps/jsr.io/@std/semver/1.0.5/try_parse_range.js +0 -33
- package/esm/deps/jsr.io/@std/semver/1.0.5/types.js +0 -3
- package/types/deps/jsr.io/@std/http/1.0.16/_negotiation/common.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/http/1.0.16/_negotiation/encoding.d.ts +0 -34
- package/types/deps/jsr.io/@std/http/1.0.16/_negotiation/encoding.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/http/1.0.16/_negotiation/language.d.ts +0 -31
- package/types/deps/jsr.io/@std/http/1.0.16/_negotiation/language.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/http/1.0.16/_negotiation/media_type.d.ts +0 -31
- package/types/deps/jsr.io/@std/http/1.0.16/_negotiation/media_type.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/http/1.0.16/negotiation.d.ts +0 -148
- package/types/deps/jsr.io/@std/http/1.0.16/negotiation.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/semver/1.0.5/_constants.d.ts +0 -12
- package/types/deps/jsr.io/@std/semver/1.0.5/_constants.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/semver/1.0.5/_shared.d.ts +0 -44
- package/types/deps/jsr.io/@std/semver/1.0.5/_shared.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/semver/1.0.5/_test_comparator_set.d.ts +0 -3
- package/types/deps/jsr.io/@std/semver/1.0.5/_test_comparator_set.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/semver/1.0.5/can_parse.d.ts +0 -17
- package/types/deps/jsr.io/@std/semver/1.0.5/can_parse.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/semver/1.0.5/compare.d.ts +0 -28
- package/types/deps/jsr.io/@std/semver/1.0.5/compare.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/semver/1.0.5/difference.d.ts +0 -27
- package/types/deps/jsr.io/@std/semver/1.0.5/difference.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/semver/1.0.5/equals.d.ts +0 -24
- package/types/deps/jsr.io/@std/semver/1.0.5/equals.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/semver/1.0.5/format.d.ts +0 -22
- package/types/deps/jsr.io/@std/semver/1.0.5/format.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/semver/1.0.5/format_range.d.ts +0 -18
- package/types/deps/jsr.io/@std/semver/1.0.5/format_range.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/semver/1.0.5/greater_or_equal.d.ts +0 -25
- package/types/deps/jsr.io/@std/semver/1.0.5/greater_or_equal.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/semver/1.0.5/greater_than.d.ts +0 -25
- package/types/deps/jsr.io/@std/semver/1.0.5/greater_than.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/semver/1.0.5/greater_than_range.d.ts +0 -23
- package/types/deps/jsr.io/@std/semver/1.0.5/greater_than_range.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/semver/1.0.5/increment.d.ts +0 -51
- package/types/deps/jsr.io/@std/semver/1.0.5/increment.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/semver/1.0.5/is_range.d.ts +0 -23
- package/types/deps/jsr.io/@std/semver/1.0.5/is_range.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/semver/1.0.5/is_semver.d.ts +0 -34
- package/types/deps/jsr.io/@std/semver/1.0.5/is_semver.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/semver/1.0.5/less_or_equal.d.ts +0 -25
- package/types/deps/jsr.io/@std/semver/1.0.5/less_or_equal.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/semver/1.0.5/less_than.d.ts +0 -25
- package/types/deps/jsr.io/@std/semver/1.0.5/less_than.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/semver/1.0.5/less_than_range.d.ts +0 -23
- package/types/deps/jsr.io/@std/semver/1.0.5/less_than_range.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/semver/1.0.5/max_satisfying.d.ts +0 -22
- package/types/deps/jsr.io/@std/semver/1.0.5/max_satisfying.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/semver/1.0.5/min_satisfying.d.ts +0 -22
- package/types/deps/jsr.io/@std/semver/1.0.5/min_satisfying.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/semver/1.0.5/mod.d.ts +0 -298
- package/types/deps/jsr.io/@std/semver/1.0.5/mod.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/semver/1.0.5/not_equals.d.ts +0 -24
- package/types/deps/jsr.io/@std/semver/1.0.5/not_equals.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/semver/1.0.5/parse.d.ts +0 -25
- package/types/deps/jsr.io/@std/semver/1.0.5/parse.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/semver/1.0.5/parse_range.d.ts +0 -27
- package/types/deps/jsr.io/@std/semver/1.0.5/parse_range.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/semver/1.0.5/range_intersects.d.ts +0 -25
- package/types/deps/jsr.io/@std/semver/1.0.5/range_intersects.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/semver/1.0.5/satisfies.d.ts +0 -24
- package/types/deps/jsr.io/@std/semver/1.0.5/satisfies.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/semver/1.0.5/try_parse.d.ts +0 -21
- package/types/deps/jsr.io/@std/semver/1.0.5/try_parse.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/semver/1.0.5/try_parse_range.d.ts +0 -23
- package/types/deps/jsr.io/@std/semver/1.0.5/try_parse_range.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/semver/1.0.5/types.d.ts +0 -58
- package/types/deps/jsr.io/@std/semver/1.0.5/types.d.ts.map +0 -1
@@ -1,148 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* Returns an array of media types accepted by the request, in order of
|
3
|
-
* preference. If there are no media types supplied in the request, then any
|
4
|
-
* media type selector will be returned.
|
5
|
-
*
|
6
|
-
* @example Usage
|
7
|
-
* ```ts
|
8
|
-
* import { accepts } from "@std/http/negotiation";
|
9
|
-
* import { assertEquals } from "@std/assert";
|
10
|
-
*
|
11
|
-
* const request = new Request("https://example.com/", {
|
12
|
-
* headers: {
|
13
|
-
* accept:
|
14
|
-
* "text/html, application/xhtml+xml, application/xml;q=0.9, image/webp, *\/*;q=0.8",
|
15
|
-
* },
|
16
|
-
* });
|
17
|
-
*
|
18
|
-
* assertEquals(accepts(request), [
|
19
|
-
* "text/html",
|
20
|
-
* "application/xhtml+xml",
|
21
|
-
* "image/webp",
|
22
|
-
* "application/xml",
|
23
|
-
* "*\/*",
|
24
|
-
* ]);
|
25
|
-
* ```
|
26
|
-
*
|
27
|
-
* @param request The request to get the acceptable media types for.
|
28
|
-
* @returns An array of acceptable media types.
|
29
|
-
*/
|
30
|
-
export declare function accepts(request: Pick<Request, "headers">): string[];
|
31
|
-
/**
|
32
|
-
* For a given set of media types, return the best match accepted in the
|
33
|
-
* request. If no media type matches, then the function returns `undefined`.
|
34
|
-
*
|
35
|
-
* @example Usage
|
36
|
-
* ```ts
|
37
|
-
* import { accepts } from "@std/http/negotiation";
|
38
|
-
* import { assertEquals } from "@std/assert";
|
39
|
-
*
|
40
|
-
* const request = new Request("https://example.com/", {
|
41
|
-
* headers: {
|
42
|
-
* accept:
|
43
|
-
* "text/html, application/xhtml+xml, application/xml;q=0.9, image/webp, *\/*;q=0.8",
|
44
|
-
* },
|
45
|
-
* });
|
46
|
-
*
|
47
|
-
* assertEquals(accepts(request, "text/html", "image/webp"), "text/html");
|
48
|
-
* ```
|
49
|
-
*
|
50
|
-
* @param request The request to get the acceptable media types for.
|
51
|
-
* @param types An array of media types to find the best matching one from.
|
52
|
-
* @returns The best matching media type, if any match.
|
53
|
-
*/
|
54
|
-
export declare function accepts(request: Pick<Request, "headers">, ...types: string[]): string | undefined;
|
55
|
-
/**
|
56
|
-
* Returns an array of content encodings accepted by the request, in order of
|
57
|
-
* preference. If there are no encoding supplied in the request, then `["*"]`
|
58
|
-
* is returned, implying any encoding is accepted.
|
59
|
-
*
|
60
|
-
* @example Usage
|
61
|
-
* ```ts
|
62
|
-
* import { acceptsEncodings } from "@std/http/negotiation";
|
63
|
-
* import { assertEquals } from "@std/assert";
|
64
|
-
*
|
65
|
-
* const request = new Request("https://example.com/", {
|
66
|
-
* headers: { "accept-encoding": "deflate, gzip;q=1.0, *;q=0.5" },
|
67
|
-
* });
|
68
|
-
*
|
69
|
-
* assertEquals(acceptsEncodings(request), ["deflate", "gzip", "*"]);
|
70
|
-
* ```
|
71
|
-
*
|
72
|
-
* @param request The request to get the acceptable content encodings for.
|
73
|
-
* @returns An array of content encodings this request accepts.
|
74
|
-
*/
|
75
|
-
export declare function acceptsEncodings(request: Pick<Request, "headers">): string[];
|
76
|
-
/**
|
77
|
-
* For a given set of content encodings, return the best match accepted in the
|
78
|
-
* request. If no content encodings match, then the function returns
|
79
|
-
* `undefined`.
|
80
|
-
*
|
81
|
-
* **NOTE:** You should always supply `identity` as one of the encodings
|
82
|
-
* to ensure that there is a match when the `Accept-Encoding` header is part
|
83
|
-
* of the request.
|
84
|
-
*
|
85
|
-
* @example Usage
|
86
|
-
* ```ts
|
87
|
-
* import { acceptsEncodings } from "@std/http/negotiation";
|
88
|
-
* import { assertEquals } from "@std/assert";
|
89
|
-
*
|
90
|
-
* const request = new Request("https://example.com/", {
|
91
|
-
* headers: { "accept-encoding": "deflate, gzip;q=1.0, *;q=0.5" },
|
92
|
-
* });
|
93
|
-
*
|
94
|
-
* assertEquals(acceptsEncodings(request, "gzip", "identity"), "gzip");
|
95
|
-
* ```
|
96
|
-
*
|
97
|
-
* @param request The request to get the acceptable content encodings for.
|
98
|
-
* @param encodings An array of encodings to find the best matching one from.
|
99
|
-
* @returns The best matching encoding, if any match.
|
100
|
-
*/
|
101
|
-
export declare function acceptsEncodings(request: Pick<Request, "headers">, ...encodings: string[]): string | undefined;
|
102
|
-
/**
|
103
|
-
* Returns an array of languages accepted by the request, in order of
|
104
|
-
* preference. If there are no languages supplied in the request, then `["*"]`
|
105
|
-
* is returned, imply any language is accepted.
|
106
|
-
*
|
107
|
-
* @example Usage
|
108
|
-
* ```ts
|
109
|
-
* import { acceptsLanguages } from "@std/http/negotiation";
|
110
|
-
* import { assertEquals } from "@std/assert";
|
111
|
-
*
|
112
|
-
* const request = new Request("https://example.com/", {
|
113
|
-
* headers: {
|
114
|
-
* "accept-language": "fr-CH, fr;q=0.9, en;q=0.8, de;q=0.7, *;q=0.5",
|
115
|
-
* },
|
116
|
-
* });
|
117
|
-
*
|
118
|
-
* assertEquals(acceptsLanguages(request), ["fr-CH", "fr", "en", "de", "*"]);
|
119
|
-
* ```
|
120
|
-
*
|
121
|
-
* @param request The request to get the acceptable languages for.
|
122
|
-
* @returns An array of languages this request accepts.
|
123
|
-
*/
|
124
|
-
export declare function acceptsLanguages(request: Pick<Request, "headers">): string[];
|
125
|
-
/**
|
126
|
-
* For a given set of languages, return the best match accepted in the request.
|
127
|
-
* If no languages match, then the function returns `undefined`.
|
128
|
-
*
|
129
|
-
* @example Usage
|
130
|
-
* ```ts
|
131
|
-
* import { acceptsLanguages } from "@std/http/negotiation";
|
132
|
-
* import { assertEquals } from "@std/assert";
|
133
|
-
*
|
134
|
-
* const request = new Request("https://example.com/", {
|
135
|
-
* headers: {
|
136
|
-
* "accept-language": "fr-CH, fr;q=0.9, en;q=0.8, de;q=0.7, *;q=0.5",
|
137
|
-
* },
|
138
|
-
* });
|
139
|
-
*
|
140
|
-
* assertEquals(acceptsLanguages(request, "en-gb", "en-us", "en"), "en");
|
141
|
-
* ```
|
142
|
-
*
|
143
|
-
* @param request The request to get the acceptable language for.
|
144
|
-
* @param langs An array of languages to find the best matching one from.
|
145
|
-
* @returns The best matching language, if any match.
|
146
|
-
*/
|
147
|
-
export declare function acceptsLanguages(request: Pick<Request, "headers">, ...langs: string[]): string | undefined;
|
148
|
-
//# sourceMappingURL=negotiation.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"negotiation.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/http/1.0.16/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"}
|
@@ -1,12 +0,0 @@
|
|
1
|
-
import type { Comparator, SemVer } from "./types.js";
|
2
|
-
/**
|
3
|
-
* ANY is a sentinel value used by some range calculations. It is not a valid
|
4
|
-
* SemVer object and should not be used directly.
|
5
|
-
*/
|
6
|
-
export declare const ANY: SemVer;
|
7
|
-
/**
|
8
|
-
* A comparator which will span all valid semantic versions
|
9
|
-
*/
|
10
|
-
export declare const ALL: Comparator;
|
11
|
-
export declare const OPERATORS: readonly [undefined, "=", "!=", ">", ">=", "<", "<="];
|
12
|
-
//# sourceMappingURL=_constants.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"_constants.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/semver/1.0.5/_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,UAGjB,CAAC;AAEF,eAAO,MAAM,SAAS,uDAQZ,CAAC"}
|
@@ -1,44 +0,0 @@
|
|
1
|
-
import type { Comparator } from "./types.js";
|
2
|
-
export declare function compareNumber(a: number, b: number): 1 | 0 | -1;
|
3
|
-
export declare function checkIdentifier(v1?: ReadonlyArray<string | number>, v2?: ReadonlyArray<string | number>): 1 | 0 | -1;
|
4
|
-
export declare function compareIdentifier(v1?: ReadonlyArray<string | number>, v2?: ReadonlyArray<string | number>): 1 | 0 | -1;
|
5
|
-
export declare const FULL_REGEXP: RegExp;
|
6
|
-
/**
|
7
|
-
* A version that can contain wildcards.
|
8
|
-
* @example "x", "1.x", "1.x.x", "1.2.x", "*", "1.*", "1.*.*", "1.2.*"
|
9
|
-
*/
|
10
|
-
export declare const XRANGE = "[v=\\s]*(?<major>0|[1-9]\\d*|x|X|\\*)(?:\\.(?<minor>0|[1-9]\\d*|x|X|\\*)(?:\\.(?<patch>0|[1-9]\\d*|x|X|\\*)(?:-(?<prerelease>(?:0|[1-9]\\d*|\\d*[a-zA-Z-][a-zA-Z0-9-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][a-zA-Z0-9-]*))*))?(?:\\+(?<buildmetadata>[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*))?)?)?";
|
11
|
-
/**
|
12
|
-
* An operator (`~`, `~>`, `^`, `=`, `<`, `<=`, `>`, or `>=`), followed by an x-range.
|
13
|
-
* @example "~1.x.x", "^1.2.*", ">=1.2.3"
|
14
|
-
*/
|
15
|
-
export declare const OPERATOR_XRANGE_REGEXP: RegExp;
|
16
|
-
/**
|
17
|
-
* An empty string or a comparator (`=`, `<`, `<=`, `>`, or `>=`), followed by a version.
|
18
|
-
* @example ">1.2.3"
|
19
|
-
*/
|
20
|
-
export declare const COMPARATOR_REGEXP: RegExp;
|
21
|
-
/**
|
22
|
-
* Returns true if the value is a valid SemVer number.
|
23
|
-
*
|
24
|
-
* Must be a number. Must not be NaN. Can be positive or negative infinity.
|
25
|
-
* Can be between 0 and MAX_SAFE_INTEGER.
|
26
|
-
* @param value The value to check
|
27
|
-
* @returns True if its a valid semver number
|
28
|
-
*/
|
29
|
-
export declare function isValidNumber(value: unknown): value is number;
|
30
|
-
export declare const MAX_LENGTH = 256;
|
31
|
-
/**
|
32
|
-
* Returns true if the value is a valid semver pre-release or build identifier.
|
33
|
-
*
|
34
|
-
* Must be a string. Must be between 1 and 256 characters long. Must match
|
35
|
-
* the regular expression /[0-9A-Za-z-]+/.
|
36
|
-
* @param value The value to check
|
37
|
-
* @returns True if the value is a valid semver string.
|
38
|
-
*/
|
39
|
-
export declare function isValidString(value: unknown): value is string;
|
40
|
-
export declare function parsePrerelease(prerelease: string): (string | number)[];
|
41
|
-
export declare function parseBuild(buildmetadata: string): string[];
|
42
|
-
export declare function parseNumber(input: string, errorMessage: string): number;
|
43
|
-
export declare function isWildcardComparator(c: Comparator): boolean;
|
44
|
-
//# sourceMappingURL=_shared.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"_shared.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/semver/1.0.5/_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"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"_test_comparator_set.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/semver/1.0.5/_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,17 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* Returns true if the string can be parsed as SemVer.
|
3
|
-
*
|
4
|
-
* @example Usage
|
5
|
-
* ```ts
|
6
|
-
* import { canParse } from "@std/semver/can-parse";
|
7
|
-
* import { assert, assertFalse } from "@std/assert";
|
8
|
-
*
|
9
|
-
* assert(canParse("1.2.3"));
|
10
|
-
* assertFalse(canParse("invalid"));
|
11
|
-
* ```
|
12
|
-
*
|
13
|
-
* @param value The version string to check
|
14
|
-
* @returns `true` if the string can be parsed as SemVer, `false` otherwise
|
15
|
-
*/
|
16
|
-
export declare function canParse(value: string): boolean;
|
17
|
-
//# sourceMappingURL=can_parse.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"can_parse.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/semver/1.0.5/can_parse.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAO/C"}
|
@@ -1,28 +0,0 @@
|
|
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
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"compare.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/semver/1.0.5/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"}
|
@@ -1,27 +0,0 @@
|
|
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
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"difference.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/semver/1.0.5/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"}
|
@@ -1,24 +0,0 @@
|
|
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
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"equals.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/semver/1.0.5/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"}
|
@@ -1,22 +0,0 @@
|
|
1
|
-
import type { SemVer } from "./types.js";
|
2
|
-
/**
|
3
|
-
* Format a SemVer object into a string.
|
4
|
-
*
|
5
|
-
* @example Usage
|
6
|
-
* ```ts
|
7
|
-
* import { format } from "@std/semver/format";
|
8
|
-
* import { assertEquals } from "@std/assert";
|
9
|
-
*
|
10
|
-
* const semver = {
|
11
|
-
* major: 1,
|
12
|
-
* minor: 2,
|
13
|
-
* patch: 3,
|
14
|
-
* };
|
15
|
-
* assertEquals(format(semver), "1.2.3");
|
16
|
-
* ```
|
17
|
-
*
|
18
|
-
* @param version The SemVer to format
|
19
|
-
* @returns The string representation of a semantic version.
|
20
|
-
*/
|
21
|
-
export declare function format(version: SemVer): string;
|
22
|
-
//# sourceMappingURL=format.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"format.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/semver/1.0.5/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,18 +0,0 @@
|
|
1
|
-
import type { Range } from "./types.js";
|
2
|
-
/**
|
3
|
-
* Formats the SemVerrange into a string.
|
4
|
-
*
|
5
|
-
* @example Usage
|
6
|
-
* ```ts
|
7
|
-
* import { formatRange, parseRange } from "@std/semver";
|
8
|
-
* import { assertEquals } from "@std/assert";
|
9
|
-
*
|
10
|
-
* const range = parseRange(">=1.2.3 <1.2.4");
|
11
|
-
* assertEquals(formatRange(range), ">=1.2.3 <1.2.4");
|
12
|
-
* ```
|
13
|
-
*
|
14
|
-
* @param range The range to format
|
15
|
-
* @returns A string representation of the SemVer range
|
16
|
-
*/
|
17
|
-
export declare function formatRange(range: Range): string;
|
18
|
-
//# sourceMappingURL=format_range.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"format_range.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/semver/1.0.5/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"}
|
@@ -1,25 +0,0 @@
|
|
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
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"greater_or_equal.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/semver/1.0.5/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"}
|
@@ -1,25 +0,0 @@
|
|
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
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"greater_than.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/semver/1.0.5/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"}
|
@@ -1,23 +0,0 @@
|
|
1
|
-
import type { Range, SemVer } from "./types.js";
|
2
|
-
/**
|
3
|
-
* Check if the SemVer is greater than the range.
|
4
|
-
*
|
5
|
-
* @example Usage
|
6
|
-
* ```ts
|
7
|
-
* import { parse, parseRange, greaterThanRange } from "@std/semver";
|
8
|
-
* import { assert } from "@std/assert";
|
9
|
-
*
|
10
|
-
* const version1 = parse("1.2.3");
|
11
|
-
* const version2 = parse("1.2.4");
|
12
|
-
* const range = parseRange(">=1.2.3 <1.2.4");
|
13
|
-
*
|
14
|
-
* assert(!greaterThanRange(version1, range));
|
15
|
-
* assert(greaterThanRange(version2, range));
|
16
|
-
* ```
|
17
|
-
*
|
18
|
-
* @param version The version to check.
|
19
|
-
* @param range The range to check against.
|
20
|
-
* @returns `true` if the semver is greater than the range, `false` otherwise.
|
21
|
-
*/
|
22
|
-
export declare function greaterThanRange(version: SemVer, range: Range): boolean;
|
23
|
-
//# sourceMappingURL=greater_than_range.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"greater_than_range.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/semver/1.0.5/greater_than_range.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAc,KAAK,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AAK5D;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,GAAG,OAAO,CAIvE"}
|
@@ -1,51 +0,0 @@
|
|
1
|
-
import type { ReleaseType, SemVer } from "./types.js";
|
2
|
-
/** Options for {@linkcode increment}. */
|
3
|
-
export interface IncrementOptions {
|
4
|
-
/** The pre-release metadata of the new version. */
|
5
|
-
prerelease?: string;
|
6
|
-
/** The build metadata of the new version. */
|
7
|
-
build?: string;
|
8
|
-
}
|
9
|
-
/**
|
10
|
-
* Returns the new SemVer resulting from an increment by release type.
|
11
|
-
*
|
12
|
-
* `premajor`, `preminor` and `prepatch` will bump the version up to the next version,
|
13
|
-
* based on the type, and will also add prerelease metadata.
|
14
|
-
*
|
15
|
-
* If called from a non-prerelease version, the `prerelease` will work the same as
|
16
|
-
* `prepatch`. The patch version is incremented and then is made into a prerelease. If
|
17
|
-
* the input version is already a prerelease it will simply increment the prerelease
|
18
|
-
* metadata.
|
19
|
-
*
|
20
|
-
* If a prerelease identifier is specified without a number then a number will be added.
|
21
|
-
* For example `pre` will result in `pre.0`. If the existing version already has a
|
22
|
-
* prerelease with a number and its the same prerelease identifier then the number
|
23
|
-
* will be incremented. If the identifier differs from the new identifier then the new
|
24
|
-
* identifier is applied and the number is reset to `0`.
|
25
|
-
*
|
26
|
-
* If the input version has build metadata it will be preserved on the resulting version
|
27
|
-
* unless a new build parameter is specified. Specifying `""` will unset existing build
|
28
|
-
* metadata.
|
29
|
-
*
|
30
|
-
* @example Usage
|
31
|
-
* ```ts
|
32
|
-
* import { increment, parse } from "@std/semver";
|
33
|
-
* import { assertEquals } from "@std/assert";
|
34
|
-
*
|
35
|
-
* const version = parse("1.2.3");
|
36
|
-
* assertEquals(increment(version, "major"), parse("2.0.0"));
|
37
|
-
* assertEquals(increment(version, "minor"), parse("1.3.0"));
|
38
|
-
* assertEquals(increment(version, "patch"), parse("1.2.4"));
|
39
|
-
* assertEquals(increment(version, "prerelease"), parse("1.2.4-0"));
|
40
|
-
*
|
41
|
-
* const prerelease = parse("1.2.3-beta.0");
|
42
|
-
* assertEquals(increment(prerelease, "prerelease"), parse("1.2.3-beta.1"));
|
43
|
-
* ```
|
44
|
-
*
|
45
|
-
* @param version The version to increment
|
46
|
-
* @param release The type of increment to perform
|
47
|
-
* @param options Additional options
|
48
|
-
* @returns The new version
|
49
|
-
*/
|
50
|
-
export declare function increment(version: SemVer, release: ReleaseType, options?: IncrementOptions): SemVer;
|
51
|
-
//# sourceMappingURL=increment.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"increment.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/semver/1.0.5/increment.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AAkCtD,yCAAyC;AACzC,MAAM,WAAW,gBAAgB;IAC/B,mDAAmD;IACnD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,6CAA6C;IAC7C,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AACH,wBAAgB,SAAS,CACvB,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,WAAW,EACpB,OAAO,GAAE,gBAAqB,GAC7B,MAAM,CA2GR"}
|
@@ -1,23 +0,0 @@
|
|
1
|
-
import type { Range } from "./types.js";
|
2
|
-
/**
|
3
|
-
* Does a deep check on the object to determine if its a valid range.
|
4
|
-
*
|
5
|
-
* Objects with extra fields are still considered valid if they have at
|
6
|
-
* least the correct fields.
|
7
|
-
*
|
8
|
-
* Adds a type assertion if true.
|
9
|
-
*
|
10
|
-
* @example Usage
|
11
|
-
* ```ts
|
12
|
-
* import { isRange } from "@std/semver/is-range";
|
13
|
-
* import { assert } from "@std/assert";
|
14
|
-
*
|
15
|
-
* const range = [[{ major: 1, minor: 2, patch: 3 }]];
|
16
|
-
* assert(isRange(range));
|
17
|
-
* assert(!isRange({}));
|
18
|
-
* ```
|
19
|
-
* @param value The value to check if its a valid Range
|
20
|
-
* @returns True if its a valid Range otherwise false.
|
21
|
-
*/
|
22
|
-
export declare function isRange(value: unknown): value is Range;
|
23
|
-
//# sourceMappingURL=is_range.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"is_range.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/semver/1.0.5/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,34 +0,0 @@
|
|
1
|
-
import type { SemVer } from "./types.js";
|
2
|
-
/**
|
3
|
-
* Checks to see if value is a valid SemVer object. It does a check
|
4
|
-
* into each field including prerelease and build.
|
5
|
-
*
|
6
|
-
* Some invalid SemVer sentinels can still return true such as ANY and INVALID.
|
7
|
-
* An object which has the same value as a sentinel but isn't reference equal
|
8
|
-
* will still fail.
|
9
|
-
*
|
10
|
-
* Objects which are valid SemVer objects but have _extra_ fields are still
|
11
|
-
* considered SemVer objects and this will return true.
|
12
|
-
*
|
13
|
-
* A type assertion is added to the value.
|
14
|
-
*
|
15
|
-
* @example Usage
|
16
|
-
* ```ts
|
17
|
-
* import { isSemVer } from "@std/semver/is-semver";
|
18
|
-
* import { assert } from "@std/assert";
|
19
|
-
*
|
20
|
-
* const value = {
|
21
|
-
* major: 1,
|
22
|
-
* minor: 2,
|
23
|
-
* patch: 3,
|
24
|
-
* };
|
25
|
-
*
|
26
|
-
* assert(isSemVer(value));
|
27
|
-
* assert(!isSemVer({ major: 1, minor: 2 }));
|
28
|
-
* ```
|
29
|
-
*
|
30
|
-
* @param value The value to check to see if its a valid SemVer object
|
31
|
-
* @returns True if value is a valid SemVer otherwise false
|
32
|
-
*/
|
33
|
-
export declare function isSemVer(value: unknown): value is SemVer;
|
34
|
-
//# sourceMappingURL=is_semver.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"is_semver.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/semver/1.0.5/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,CAsBxD"}
|
@@ -1,25 +0,0 @@
|
|
1
|
-
import type { SemVer } from "./types.js";
|
2
|
-
/**
|
3
|
-
* Less 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, lessOrEqual } 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(lessOrEqual(version1, version2));
|
16
|
-
* assert(!lessOrEqual(version2, version1));
|
17
|
-
* assert(lessOrEqual(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 less than or equal to `version2`, `false` otherwise
|
23
|
-
*/
|
24
|
-
export declare function lessOrEqual(version1: SemVer, version2: SemVer): boolean;
|
25
|
-
//# sourceMappingURL=less_or_equal.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"less_or_equal.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/semver/1.0.5/less_or_equal.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AAGzC;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,WAAW,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAEvE"}
|