@unocss/autocomplete 0.65.0 → 0.65.2
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 +12 -1
- package/package.json +4 -3
package/dist/index.mjs
CHANGED
|
@@ -20,7 +20,18 @@ function searchUsageBoundary(line, index, attributify = true) {
|
|
|
20
20
|
let temp = start - 1;
|
|
21
21
|
const matchClassText = "class";
|
|
22
22
|
const matchClassNameText = "className";
|
|
23
|
-
|
|
23
|
+
const applyText = "@apply";
|
|
24
|
+
while (temp > matchClassText.length && !/[="'{}><@;]/.test(line[temp--])) {
|
|
25
|
+
}
|
|
26
|
+
if (line[temp + 1] === "@") {
|
|
27
|
+
const data = line.slice(temp + 1, temp + applyText.length + 1);
|
|
28
|
+
if (data === applyText) {
|
|
29
|
+
return {
|
|
30
|
+
content: line.slice(start, end),
|
|
31
|
+
start,
|
|
32
|
+
end
|
|
33
|
+
};
|
|
34
|
+
}
|
|
24
35
|
}
|
|
25
36
|
if (line[temp] !== "=")
|
|
26
37
|
return;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unocss/autocomplete",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.65.
|
|
4
|
+
"version": "0.65.2",
|
|
5
5
|
"description": "Autocomplete utils for UnoCSS",
|
|
6
6
|
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -37,10 +37,11 @@
|
|
|
37
37
|
"lru-cache": "^10.4.3"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@unocss/core": "0.65.
|
|
40
|
+
"@unocss/core": "0.65.2"
|
|
41
41
|
},
|
|
42
42
|
"scripts": {
|
|
43
43
|
"build": "unbuild",
|
|
44
|
-
"stub": "unbuild --stub"
|
|
44
|
+
"stub": "unbuild --stub",
|
|
45
|
+
"test:attw": "attw --pack --config-path ../../.attw-esm-only.json"
|
|
45
46
|
}
|
|
46
47
|
}
|