@unocss/autocomplete 65.4.0 → 65.4.3

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/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @unocss/autocomplete
2
2
 
3
- Autocomplete utils for UnoCSS. This is embedded in [the playground](https://uno.antfu.me/play/) and [the VS Code extension](https://github.com/unocss/unocss/tree/main/packages/vscode).
3
+ Autocomplete utils for UnoCSS. This is embedded in [the playground](https://uno.antfu.me/play/) and [the VS Code extension](https://github.com/unocss/unocss/tree/main/packages-integrations/vscode).
4
4
 
5
5
  ## Documentation
6
6
 
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 === void 0)
228
+ if (value === null || value === undefined)
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) !== void 0;
331
+ const isInsideAttrValue = searchAttrKey(content, cursor) !== undefined;
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,16 +1,16 @@
1
1
  {
2
2
  "name": "@unocss/autocomplete",
3
3
  "type": "module",
4
- "version": "65.4.0",
4
+ "version": "65.4.3",
5
5
  "description": "Autocomplete utils for UnoCSS",
6
6
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",
8
8
  "funding": "https://github.com/sponsors/antfu",
9
- "homepage": "https://github.com/unocss/unocss/tree/main/packages/autocomplete#readme",
9
+ "homepage": "https://unocss.dev",
10
10
  "repository": {
11
11
  "type": "git",
12
12
  "url": "https://github.com/unocss/unocss",
13
- "directory": "packages/autocomplete"
13
+ "directory": "packages-engine/autocomplete"
14
14
  },
15
15
  "bugs": {
16
16
  "url": "https://github.com/unocss/unocss/issues"
@@ -37,7 +37,7 @@
37
37
  "lru-cache": "^10.4.3"
38
38
  },
39
39
  "devDependencies": {
40
- "@unocss/core": "65.4.0"
40
+ "@unocss/core": "65.4.3"
41
41
  },
42
42
  "scripts": {
43
43
  "build": "unbuild",