@fedify/uri-template 2.5.0-dev.2664 → 2.5.0-dev.2710
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/mod.d.cts +3 -3
- package/dist/mod.d.ts +3 -3
- package/package.json +15 -2
package/dist/mod.d.cts
CHANGED
|
@@ -171,7 +171,7 @@ declare const OPERATORS: readonly ["", "+", ".", "/", ";", "?", "&", "#"];
|
|
|
171
171
|
/**
|
|
172
172
|
* Union of supported URI Template operators.
|
|
173
173
|
*/
|
|
174
|
-
type Operator = typeof OPERATORS[number];
|
|
174
|
+
type Operator = (typeof OPERATORS)[number];
|
|
175
175
|
//#endregion
|
|
176
176
|
//#region src/types.d.ts
|
|
177
177
|
/**
|
|
@@ -632,11 +632,11 @@ interface MinimalConstraint {
|
|
|
632
632
|
* The trailing `extends infer R ? R : never` is an identity that forces
|
|
633
633
|
* TypeScript to evaluate the conditional union eagerly.
|
|
634
634
|
*/
|
|
635
|
-
type ConstraintValue<C extends MinimalConstraint> = (
|
|
635
|
+
type ConstraintValue<C extends MinimalConstraint> = (C extends {
|
|
636
636
|
multiple: true;
|
|
637
637
|
} ? readonly string[] : string) | (C extends {
|
|
638
638
|
nullable: true;
|
|
639
|
-
} ? null : never)
|
|
639
|
+
} ? null : never) extends infer R ? R : never;
|
|
640
640
|
/**
|
|
641
641
|
* Computes the `values` record type from a map of variable constraints. An
|
|
642
642
|
* empty map (the default) widens to `Record<string, string>` because the
|
package/dist/mod.d.ts
CHANGED
|
@@ -171,7 +171,7 @@ declare const OPERATORS: readonly ["", "+", ".", "/", ";", "?", "&", "#"];
|
|
|
171
171
|
/**
|
|
172
172
|
* Union of supported URI Template operators.
|
|
173
173
|
*/
|
|
174
|
-
type Operator = typeof OPERATORS[number];
|
|
174
|
+
type Operator = (typeof OPERATORS)[number];
|
|
175
175
|
//#endregion
|
|
176
176
|
//#region src/types.d.ts
|
|
177
177
|
/**
|
|
@@ -632,11 +632,11 @@ interface MinimalConstraint {
|
|
|
632
632
|
* The trailing `extends infer R ? R : never` is an identity that forces
|
|
633
633
|
* TypeScript to evaluate the conditional union eagerly.
|
|
634
634
|
*/
|
|
635
|
-
type ConstraintValue<C extends MinimalConstraint> = (
|
|
635
|
+
type ConstraintValue<C extends MinimalConstraint> = (C extends {
|
|
636
636
|
multiple: true;
|
|
637
637
|
} ? readonly string[] : string) | (C extends {
|
|
638
638
|
nullable: true;
|
|
639
|
-
} ? null : never)
|
|
639
|
+
} ? null : never) extends infer R ? R : never;
|
|
640
640
|
/**
|
|
641
641
|
* Computes the `values` record type from a map of variable constraints. An
|
|
642
642
|
* empty map (the default) widens to `Record<string, string>` because the
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fedify/uri-template",
|
|
3
|
-
"version": "2.5.0-dev.
|
|
3
|
+
"version": "2.5.0-dev.2710+c394b8f2",
|
|
4
4
|
"homepage": "https://fedify.dev/",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -37,7 +37,20 @@
|
|
|
37
37
|
"files": [
|
|
38
38
|
"dist",
|
|
39
39
|
"package.json",
|
|
40
|
-
"README.md"
|
|
40
|
+
"README.md",
|
|
41
|
+
"!dist/**/*.test.{js,cjs,mjs,ts,cts,mts}",
|
|
42
|
+
"!dist/**/*.test.d.{ts,cts,mts}",
|
|
43
|
+
"!dist/**/*.test.*.map",
|
|
44
|
+
"!dist/**/*.bench.{js,cjs,mjs,ts,cts,mts}",
|
|
45
|
+
"!dist/**/*.bench.d.{ts,cts,mts}",
|
|
46
|
+
"!dist/**/*.bench.*.map",
|
|
47
|
+
"!dist/**/*.snap",
|
|
48
|
+
"!dist/**/__snapshots__/**",
|
|
49
|
+
"!dist/**/__fixtures__/**",
|
|
50
|
+
"!dist/**/test/**",
|
|
51
|
+
"!dist/**/tests/**",
|
|
52
|
+
"!dist/**/testdata/**",
|
|
53
|
+
"!dist/**/fixtures/**"
|
|
41
54
|
],
|
|
42
55
|
"keywords": [
|
|
43
56
|
"Fedify",
|