@unocss/autocomplete 0.53.4 → 0.53.5
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/index.cjs +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -339,8 +339,8 @@ function createAutocomplete(uno, options = {}) {
|
|
|
339
339
|
}
|
|
340
340
|
function processSuggestions(suggestions, prefix = "", suffix = "") {
|
|
341
341
|
return core.uniq(suggestions.flat()).filter((i) => !!(i && !i.match(/-$/) && !uno.isBlocked(i))).sort((a, b) => {
|
|
342
|
-
const numA = +(a.match(/\d+$/)?.[0] || NaN);
|
|
343
|
-
const numB = +(b.match(/\d+$/)?.[0] || NaN);
|
|
342
|
+
const numA = +(a.match(/\d+$/)?.[0] || Number.NaN);
|
|
343
|
+
const numB = +(b.match(/\d+$/)?.[0] || Number.NaN);
|
|
344
344
|
if (!Number.isNaN(numA) && !Number.isNaN(numB))
|
|
345
345
|
return numA - numB;
|
|
346
346
|
return a.localeCompare(b);
|
package/dist/index.mjs
CHANGED
|
@@ -335,8 +335,8 @@ function createAutocomplete(uno, options = {}) {
|
|
|
335
335
|
}
|
|
336
336
|
function processSuggestions(suggestions, prefix = "", suffix = "") {
|
|
337
337
|
return uniq(suggestions.flat()).filter((i) => !!(i && !i.match(/-$/) && !uno.isBlocked(i))).sort((a, b) => {
|
|
338
|
-
const numA = +(a.match(/\d+$/)?.[0] || NaN);
|
|
339
|
-
const numB = +(b.match(/\d+$/)?.[0] || NaN);
|
|
338
|
+
const numA = +(a.match(/\d+$/)?.[0] || Number.NaN);
|
|
339
|
+
const numB = +(b.match(/\d+$/)?.[0] || Number.NaN);
|
|
340
340
|
if (!Number.isNaN(numA) && !Number.isNaN(numB))
|
|
341
341
|
return numA - numB;
|
|
342
342
|
return a.localeCompare(b);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unocss/autocomplete",
|
|
3
|
-
"version": "0.53.
|
|
3
|
+
"version": "0.53.5",
|
|
4
4
|
"description": "Autocomplete utils for UnoCSS",
|
|
5
5
|
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"lru-cache": "^10.0.0"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@unocss/core": "0.53.
|
|
40
|
+
"@unocss/core": "0.53.5"
|
|
41
41
|
},
|
|
42
42
|
"scripts": {
|
|
43
43
|
"build": "unbuild",
|