@unocss/autocomplete 0.49.8 → 0.50.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 CHANGED
@@ -190,7 +190,7 @@ function createAutocomplete(uno) {
190
190
  return [];
191
191
  if (cache.has(input))
192
192
  return cache.get(input);
193
- const [, processed, , variants] = uno.matchVariants(input);
193
+ const [, processed, , variants] = await uno.matchVariants(input);
194
194
  let idx = processed ? input.search(core.escapeRegExp(processed)) : input.length;
195
195
  if (idx === -1)
196
196
  idx = 0;
package/dist/index.mjs CHANGED
@@ -182,7 +182,7 @@ function createAutocomplete(uno) {
182
182
  return [];
183
183
  if (cache.has(input))
184
184
  return cache.get(input);
185
- const [, processed, , variants] = uno.matchVariants(input);
185
+ const [, processed, , variants] = await uno.matchVariants(input);
186
186
  let idx = processed ? input.search(escapeRegExp(processed)) : input.length;
187
187
  if (idx === -1)
188
188
  idx = 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unocss/autocomplete",
3
- "version": "0.49.8",
3
+ "version": "0.50.0",
4
4
  "description": "Autocomplete utils for UnoCSS",
5
5
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
6
6
  "license": "MIT",
@@ -33,10 +33,10 @@
33
33
  "dist"
34
34
  ],
35
35
  "dependencies": {
36
- "lru-cache": "^7.15.0"
36
+ "lru-cache": "^7.17.0"
37
37
  },
38
38
  "devDependencies": {
39
- "@unocss/core": "0.49.8"
39
+ "@unocss/core": "0.50.0"
40
40
  },
41
41
  "scripts": {
42
42
  "build": "unbuild",