@unocss/autocomplete 65.4.3 → 66.0.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.mjs +2 -2
- package/package.json +4 -4
package/dist/index.mjs
CHANGED
|
@@ -225,7 +225,7 @@ function getValuesFromPartTemplate(part) {
|
|
|
225
225
|
const keys = Object.keys(i).filter((i2) => i2 && i2[0] !== "_");
|
|
226
226
|
for (const key in i) {
|
|
227
227
|
const value = i[key];
|
|
228
|
-
if (value === null || value ===
|
|
228
|
+
if (value === null || value === void 0)
|
|
229
229
|
continue;
|
|
230
230
|
if (typeof value === "object" && !Array.isArray(value)) {
|
|
231
231
|
const subKeys = getValuesFromPartTemplate({
|
|
@@ -328,7 +328,7 @@ function createAutocomplete(_uno, options = {}) {
|
|
|
328
328
|
}
|
|
329
329
|
async function suggestInFile(content, cursor) {
|
|
330
330
|
await ready;
|
|
331
|
-
const isInsideAttrValue = searchAttrKey(content, cursor) !==
|
|
331
|
+
const isInsideAttrValue = searchAttrKey(content, cursor) !== void 0;
|
|
332
332
|
const byExtractor = await searchUsageByExtractor(content, cursor);
|
|
333
333
|
if (byExtractor) {
|
|
334
334
|
const suggestions2 = await suggest(byExtractor.extracted, isInsideAttrValue);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unocss/autocomplete",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "66.0.0",
|
|
5
5
|
"description": "Autocomplete utils for UnoCSS",
|
|
6
6
|
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"homepage": "https://unocss.dev",
|
|
10
10
|
"repository": {
|
|
11
11
|
"type": "git",
|
|
12
|
-
"url": "https://github.com/unocss/unocss",
|
|
12
|
+
"url": "git+https://github.com/unocss/unocss",
|
|
13
13
|
"directory": "packages-engine/autocomplete"
|
|
14
14
|
},
|
|
15
15
|
"bugs": {
|
|
@@ -34,10 +34,10 @@
|
|
|
34
34
|
],
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"fzf": "^0.5.2",
|
|
37
|
-
"lru-cache": "^
|
|
37
|
+
"lru-cache": "^11.0.2"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@unocss/core": "
|
|
40
|
+
"@unocss/core": "66.0.0"
|
|
41
41
|
},
|
|
42
42
|
"scripts": {
|
|
43
43
|
"build": "unbuild",
|