@unocss/autocomplete 0.32.1 → 0.32.7

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 CHANGED
@@ -163,6 +163,7 @@ function createAutocomplete(uno) {
163
163
  ...a2zd.map((j) => `${i}${j}`)
164
164
  ]);
165
165
  await Promise.all(keys.map((key) => suggest(key).then((i) => i.forEach((j) => matched.add(j)))));
166
+ await Promise.all([...matched].filter((i) => i.match(/^\w+$/) && i.length > 3).map((i) => suggest(`${i}-`).then((i2) => i2.forEach((j) => matched.add(j)))));
166
167
  return matched;
167
168
  }
168
169
  function getParsed(template) {
package/dist/index.mjs CHANGED
@@ -155,6 +155,7 @@ function createAutocomplete(uno) {
155
155
  ...a2zd.map((j) => `${i}${j}`)
156
156
  ]);
157
157
  await Promise.all(keys.map((key) => suggest(key).then((i) => i.forEach((j) => matched.add(j)))));
158
+ await Promise.all([...matched].filter((i) => i.match(/^\w+$/) && i.length > 3).map((i) => suggest(`${i}-`).then((i2) => i2.forEach((j) => matched.add(j)))));
158
159
  return matched;
159
160
  }
160
161
  function getParsed(template) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unocss/autocomplete",
3
- "version": "0.32.1",
3
+ "version": "0.32.7",
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.32.1"
39
+ "@unocss/core": "0.32.7"
40
40
  },
41
41
  "scripts": {
42
42
  "build": "unbuild",