tokenami 0.0.94 → 0.0.95

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/cli.js CHANGED
@@ -1141,7 +1141,7 @@ function parseSelectorList(selector) {
1141
1141
 
1142
1142
  // package.json
1143
1143
  var package_default = {
1144
- version: "0.0.93"};
1144
+ version: "0.0.94"};
1145
1145
 
1146
1146
  // src/ts-plugin/error-codes.ts
1147
1147
  var INVALID_PROPERTY = 2353;
package/dist/index.cjs CHANGED
@@ -1051,6 +1051,10 @@ var TokenamiPlugin = class {
1051
1051
  } else {
1052
1052
  const result = original();
1053
1053
  const results = completions.valueSearch(result?.entries ?? []);
1054
+ if (Object.keys(results).length === 0) {
1055
+ this.#completionsForPosition = null;
1056
+ return result;
1057
+ }
1054
1058
  this.#completionsForPosition = results;
1055
1059
  return {
1056
1060
  entries: Object.values(results),
package/dist/index.js CHANGED
@@ -1028,6 +1028,10 @@ var TokenamiPlugin = class {
1028
1028
  } else {
1029
1029
  const result = original();
1030
1030
  const results = completions.valueSearch(result?.entries ?? []);
1031
+ if (Object.keys(results).length === 0) {
1032
+ this.#completionsForPosition = null;
1033
+ return result;
1034
+ }
1031
1035
  this.#completionsForPosition = results;
1032
1036
  return {
1033
1037
  entries: Object.values(results),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tokenami",
3
- "version": "0.0.94",
3
+ "version": "0.0.95",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -51,8 +51,8 @@
51
51
  },
52
52
  "dependencies": {
53
53
  "@stitches/stringify": "^1.2.8",
54
- "@tokenami/config": "0.0.94",
55
- "@tokenami/ds": "0.0.94",
54
+ "@tokenami/config": "0.0.95",
55
+ "@tokenami/ds": "0.0.95",
56
56
  "acorn": "^8.11.3",
57
57
  "acorn-walk": "^8.3.2",
58
58
  "browserslist": "^4.26.3",
@@ -72,5 +72,5 @@
72
72
  "peerDependencies": {
73
73
  "typescript": ">= 5"
74
74
  },
75
- "gitHead": "fad40df871e8f71613b2ee0837fe7f0f81100977"
75
+ "gitHead": "250e2a1b994ea9b7305ced7b87169cc9c22bb715"
76
76
  }