@fedify/fedify 1.6.0-dev.811 → 1.6.0-dev.813
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/CHANGES.md +2 -0
- package/esm/deno.js +2 -3
- package/esm/federation/collection.js +1 -1
- 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/runtime/key.js +4 -4
- package/esm/sig/http.js +2 -2
- package/esm/sig/ld.js +2 -2
- package/esm/sig/proof.js +1 -1
- package/esm/vocab/vocab.js +176 -176
- package/package.json +3 -2
- package/types/deno.d.ts +1 -2
- 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/encoding/1.0.7/_types.js +0 -2
- package/esm/deps/jsr.io/@std/encoding/1.0.7/_validate_binary_like.js +0 -26
- package/esm/deps/jsr.io/@std/encoding/1.0.7/base64.js +0 -163
- package/esm/deps/jsr.io/@std/encoding/1.0.7/base64url.js +0 -81
- package/esm/deps/jsr.io/@std/encoding/1.0.7/hex.js +0 -109
- 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/encoding/1.0.7/_types.d.ts +0 -9
- package/types/deps/jsr.io/@std/encoding/1.0.7/_types.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/encoding/1.0.7/_validate_binary_like.d.ts +0 -2
- package/types/deps/jsr.io/@std/encoding/1.0.7/_validate_binary_like.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/encoding/1.0.7/base64.d.ts +0 -40
- package/types/deps/jsr.io/@std/encoding/1.0.7/base64.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/encoding/1.0.7/base64url.d.ts +0 -40
- package/types/deps/jsr.io/@std/encoding/1.0.7/base64url.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/encoding/1.0.7/hex.d.ts +0 -39
- package/types/deps/jsr.io/@std/encoding/1.0.7/hex.d.ts.map +0 -1
- 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,39 +0,0 @@
|
|
1
|
-
import type { Uint8Array_ } from "./_types.js";
|
2
|
-
export type { Uint8Array_ };
|
3
|
-
/**
|
4
|
-
* Converts data into a hex-encoded string.
|
5
|
-
*
|
6
|
-
* @param src The data to encode.
|
7
|
-
*
|
8
|
-
* @returns The hex-encoded string.
|
9
|
-
*
|
10
|
-
* @example Usage
|
11
|
-
* ```ts
|
12
|
-
* import { encodeHex } from "@std/encoding/hex";
|
13
|
-
* import { assertEquals } from "@std/assert";
|
14
|
-
*
|
15
|
-
* assertEquals(encodeHex("abc"), "616263");
|
16
|
-
* ```
|
17
|
-
*/
|
18
|
-
export declare function encodeHex(src: string | Uint8Array | ArrayBuffer): string;
|
19
|
-
/**
|
20
|
-
* Decodes the given hex-encoded string. If the input is malformed, an error is
|
21
|
-
* thrown.
|
22
|
-
*
|
23
|
-
* @param src The hex-encoded string to decode.
|
24
|
-
*
|
25
|
-
* @returns The decoded data.
|
26
|
-
*
|
27
|
-
* @example Usage
|
28
|
-
* ```ts
|
29
|
-
* import { decodeHex } from "@std/encoding/hex";
|
30
|
-
* import { assertEquals } from "@std/assert";
|
31
|
-
*
|
32
|
-
* assertEquals(
|
33
|
-
* decodeHex("616263"),
|
34
|
-
* new TextEncoder().encode("abc"),
|
35
|
-
* );
|
36
|
-
* ```
|
37
|
-
*/
|
38
|
-
export declare function decodeHex(src: string): Uint8Array_;
|
39
|
-
//# sourceMappingURL=hex.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"hex.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/encoding/1.0.7/hex.ts"],"names":[],"mappings":"AA6BA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC/C,YAAY,EAAE,WAAW,EAAE,CAAC;AA4B5B;;;;;;;;;;;;;;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,WAAW,CAiBlD"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/http/1.0.16/_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"}
|
@@ -1,34 +0,0 @@
|
|
1
|
-
/*!
|
2
|
-
* Adapted directly from negotiator at https://github.com/jshttp/negotiator/
|
3
|
-
* which is licensed as follows:
|
4
|
-
*
|
5
|
-
* (The MIT License)
|
6
|
-
*
|
7
|
-
* Copyright (c) 2012-2014 Federico Romero
|
8
|
-
* Copyright (c) 2012-2014 Isaac Z. Schlueter
|
9
|
-
* Copyright (c) 2014-2015 Douglas Christopher Wilson
|
10
|
-
*
|
11
|
-
* Permission is hereby granted, free of charge, to any person obtaining
|
12
|
-
* a copy of this software and associated documentation files (the
|
13
|
-
* 'Software'), to deal in the Software without restriction, including
|
14
|
-
* without limitation the rights to use, copy, modify, merge, publish,
|
15
|
-
* distribute, sublicense, and/or sell copies of the Software, and to
|
16
|
-
* permit persons to whom the Software is furnished to do so, subject to
|
17
|
-
* the following conditions:
|
18
|
-
*
|
19
|
-
* The above copyright notice and this permission notice shall be
|
20
|
-
* included in all copies or substantial portions of the Software.
|
21
|
-
*
|
22
|
-
* THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
23
|
-
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
24
|
-
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
25
|
-
* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
26
|
-
* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
27
|
-
* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
28
|
-
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
29
|
-
*/
|
30
|
-
/** Given an `Accept-Encoding` string, parse out the encoding returning a
|
31
|
-
* negotiated encoding based on the `provided` encodings otherwise just a
|
32
|
-
* prioritized array of encodings. */
|
33
|
-
export declare function preferredEncodings(accept: string, provided?: string[]): string[];
|
34
|
-
//# sourceMappingURL=encoding.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"encoding.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/http/1.0.16/_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"}
|
@@ -1,31 +0,0 @@
|
|
1
|
-
/*!
|
2
|
-
* Adapted directly from negotiator at https://github.com/jshttp/negotiator/
|
3
|
-
* which is licensed as follows:
|
4
|
-
*
|
5
|
-
* (The MIT License)
|
6
|
-
*
|
7
|
-
* Copyright (c) 2012-2014 Federico Romero
|
8
|
-
* Copyright (c) 2012-2014 Isaac Z. Schlueter
|
9
|
-
* Copyright (c) 2014-2015 Douglas Christopher Wilson
|
10
|
-
*
|
11
|
-
* Permission is hereby granted, free of charge, to any person obtaining
|
12
|
-
* a copy of this software and associated documentation files (the
|
13
|
-
* 'Software'), to deal in the Software without restriction, including
|
14
|
-
* without limitation the rights to use, copy, modify, merge, publish,
|
15
|
-
* distribute, sublicense, and/or sell copies of the Software, and to
|
16
|
-
* permit persons to whom the Software is furnished to do so, subject to
|
17
|
-
* the following conditions:
|
18
|
-
*
|
19
|
-
* The above copyright notice and this permission notice shall be
|
20
|
-
* included in all copies or substantial portions of the Software.
|
21
|
-
*
|
22
|
-
* THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
23
|
-
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
24
|
-
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
25
|
-
* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
26
|
-
* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
27
|
-
* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
28
|
-
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
29
|
-
*/
|
30
|
-
export declare function preferredLanguages(accept?: string, provided?: string[]): string[];
|
31
|
-
//# sourceMappingURL=language.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"language.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/http/1.0.16/_negotiation/language.ts"],"names":[],"mappings":"AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAkGH,wBAAgB,kBAAkB,CAChC,MAAM,SAAM,EACZ,QAAQ,CAAC,EAAE,MAAM,EAAE,GAClB,MAAM,EAAE,CAiBV"}
|
@@ -1,31 +0,0 @@
|
|
1
|
-
/*!
|
2
|
-
* Adapted directly from negotiator at https://github.com/jshttp/negotiator/
|
3
|
-
* which is licensed as follows:
|
4
|
-
*
|
5
|
-
* (The MIT License)
|
6
|
-
*
|
7
|
-
* Copyright (c) 2012-2014 Federico Romero
|
8
|
-
* Copyright (c) 2012-2014 Isaac Z. Schlueter
|
9
|
-
* Copyright (c) 2014-2015 Douglas Christopher Wilson
|
10
|
-
*
|
11
|
-
* Permission is hereby granted, free of charge, to any person obtaining
|
12
|
-
* a copy of this software and associated documentation files (the
|
13
|
-
* 'Software'), to deal in the Software without restriction, including
|
14
|
-
* without limitation the rights to use, copy, modify, merge, publish,
|
15
|
-
* distribute, sublicense, and/or sell copies of the Software, and to
|
16
|
-
* permit persons to whom the Software is furnished to do so, subject to
|
17
|
-
* the following conditions:
|
18
|
-
*
|
19
|
-
* The above copyright notice and this permission notice shall be
|
20
|
-
* included in all copies or substantial portions of the Software.
|
21
|
-
*
|
22
|
-
* THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
23
|
-
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
24
|
-
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
25
|
-
* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
26
|
-
* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
27
|
-
* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
28
|
-
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
29
|
-
*/
|
30
|
-
export declare function preferredMediaTypes(accept?: string | null, provided?: string[]): string[];
|
31
|
-
//# sourceMappingURL=media_type.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"media_type.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/http/1.0.16/_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,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"}
|