@unocss/autocomplete 0.31.17 → 0.32.0
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 +7 -8
- package/dist/index.mjs +7 -8
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -156,14 +156,13 @@ function createAutocomplete(uno) {
|
|
|
156
156
|
};
|
|
157
157
|
async function enumerate() {
|
|
158
158
|
const matched = /* @__PURE__ */ new Set();
|
|
159
|
-
const a2z = "abcdefghijklmnopqrstuvwxyz";
|
|
160
|
-
const
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
await Promise.all(p);
|
|
159
|
+
const a2z = Array.from("abcdefghijklmnopqrstuvwxyz");
|
|
160
|
+
const a2zd = [...a2z, "-"];
|
|
161
|
+
const keys = a2z.flatMap((i) => [
|
|
162
|
+
i,
|
|
163
|
+
...a2zd.map((j) => `${i}${j}`)
|
|
164
|
+
]);
|
|
165
|
+
await Promise.all(keys.map((key) => suggest(key).then((i) => i.forEach((j) => matched.add(j)))));
|
|
167
166
|
return matched;
|
|
168
167
|
}
|
|
169
168
|
function getParsed(template) {
|
package/dist/index.mjs
CHANGED
|
@@ -148,14 +148,13 @@ function createAutocomplete(uno) {
|
|
|
148
148
|
};
|
|
149
149
|
async function enumerate() {
|
|
150
150
|
const matched = /* @__PURE__ */ new Set();
|
|
151
|
-
const a2z = "abcdefghijklmnopqrstuvwxyz";
|
|
152
|
-
const
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
await Promise.all(p);
|
|
151
|
+
const a2z = Array.from("abcdefghijklmnopqrstuvwxyz");
|
|
152
|
+
const a2zd = [...a2z, "-"];
|
|
153
|
+
const keys = a2z.flatMap((i) => [
|
|
154
|
+
i,
|
|
155
|
+
...a2zd.map((j) => `${i}${j}`)
|
|
156
|
+
]);
|
|
157
|
+
await Promise.all(keys.map((key) => suggest(key).then((i) => i.forEach((j) => matched.add(j)))));
|
|
159
158
|
return matched;
|
|
160
159
|
}
|
|
161
160
|
function getParsed(template) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unocss/autocomplete",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.32.0",
|
|
4
4
|
"description": "Autocomplete utils for UnoCSS",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"unocss",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@types/lru-cache": "^7.6.1",
|
|
39
|
-
"@unocss/core": "0.
|
|
39
|
+
"@unocss/core": "0.32.0"
|
|
40
40
|
},
|
|
41
41
|
"scripts": {
|
|
42
42
|
"build": "unbuild",
|