@markuplint/types
Advanced tools
Comparing version 4.5.3 to 4.5.4
@@ -6,3 +6,3 @@ # Change Log | ||
## [4.5.3](https://github.com/markuplint/markuplint/compare/@markuplint/types@4.5.2...@markuplint/types@4.5.3) (2024-06-25) | ||
## [4.5.4](https://github.com/markuplint/markuplint/compare/@markuplint/types@4.5.3...@markuplint/types@4.5.4) (2024-09-02) | ||
@@ -15,2 +15,6 @@ **Note:** Version bump only for package @markuplint/types | ||
## [4.5.3](https://github.com/markuplint/markuplint/compare/@markuplint/types@4.5.2...@markuplint/types@4.5.3) (2024-06-25) | ||
**Note:** Version bump only for package @markuplint/types | ||
## [4.5.2](https://github.com/markuplint/markuplint/compare/@markuplint/types@4.5.1...@markuplint/types@4.5.2) (2024-06-09) | ||
@@ -17,0 +21,0 @@ |
import leven from 'leven'; | ||
const FLAT_DEPTH = 2; | ||
export function getCandidate(value, ...candidates) { | ||
@@ -6,3 +7,3 @@ if (!value) { | ||
} | ||
const list = candidates.flat(2).filter((s) => !!s); | ||
const list = candidates.flat(FLAT_DEPTH).filter((s) => !!s); | ||
let candidate; | ||
@@ -9,0 +10,0 @@ let maxRatio = 0; |
{ | ||
"name": "@markuplint/types", | ||
"version": "4.5.3", | ||
"version": "4.5.4", | ||
"description": "Type declaration and value checker", | ||
@@ -32,3 +32,3 @@ "repository": "git@github.com:markuplint/markuplint.git", | ||
"dependencies": { | ||
"@markuplint/shared": "4.4.3", | ||
"@markuplint/shared": "4.4.4", | ||
"@types/css-tree": "2.3.8", | ||
@@ -39,8 +39,8 @@ "@types/debug": "4.1.12", | ||
"css-tree": "2.3.1", | ||
"debug": "4.3.5", | ||
"debug": "4.3.6", | ||
"leven": "4.0.0", | ||
"type-fest": "4.20.1", | ||
"type-fest": "4.26.0", | ||
"whatwg-mimetype": "4.0.0" | ||
}, | ||
"gitHead": "05fdca254661ec335ff0cae4c6a11db164b032b9" | ||
"gitHead": "77cd5a25d5cf28c83253b7bfe02cd25b54e236b0" | ||
} |
234084
5857
+ Added@markuplint/shared@4.4.4(transitive)
+ Addeddebug@4.3.6(transitive)
+ Addedtype-fest@4.26.0(transitive)
- Removed@markuplint/shared@4.4.3(transitive)
- Removeddebug@4.3.5(transitive)
- Removedtype-fest@4.20.1(transitive)
Updated@markuplint/shared@4.4.4
Updateddebug@4.3.6
Updatedtype-fest@4.26.0