@mojir/lits 2.1.17 → 2.1.19

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/cli.js CHANGED
@@ -92,7 +92,7 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
92
92
  return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
93
93
  };
94
94
 
95
- var version = "2.1.17";
95
+ var version = "2.1.19";
96
96
 
97
97
  function getCodeMarker(sourceCodeInfo) {
98
98
  if (!sourceCodeInfo.position || !sourceCodeInfo.code)
@@ -14845,7 +14845,7 @@ var AutoCompleter = /** @class */ (function () {
14845
14845
  if (!autoCompleteTokenTypes.includes(tokenType)) {
14846
14846
  return;
14847
14847
  }
14848
- this.searchPrefix = tokenValue.toLowerCase();
14848
+ this.searchPrefix = tokenValue;
14849
14849
  this.generateSuggestions(params);
14850
14850
  }
14851
14851
  AutoCompleter.prototype.getNextSuggestion = function () {
@@ -14895,25 +14895,25 @@ var AutoCompleter = /** @class */ (function () {
14895
14895
  var _a, _b, _c, _d;
14896
14896
  var suggestions = new Set();
14897
14897
  litsCommands.forEach(function (name) {
14898
- if (name.toLowerCase().startsWith(_this.searchPrefix)) {
14898
+ if (name.startsWith(_this.searchPrefix)) {
14899
14899
  suggestions.add(name);
14900
14900
  }
14901
14901
  });
14902
14902
  Object.keys((_a = params.globalContext) !== null && _a !== void 0 ? _a : {})
14903
- .filter(function (name) { return name.toLowerCase().startsWith(_this.searchPrefix); })
14903
+ .filter(function (name) { return name.startsWith(_this.searchPrefix); })
14904
14904
  .forEach(function (name) { return suggestions.add(name); });
14905
14905
  (_b = params.contexts) === null || _b === void 0 ? void 0 : _b.forEach(function (context) {
14906
14906
  Object.keys(context)
14907
- .filter(function (name) { return name.toLowerCase().startsWith(_this.searchPrefix); })
14907
+ .filter(function (name) { return name.startsWith(_this.searchPrefix); })
14908
14908
  .forEach(function (name) { return suggestions.add(name); });
14909
14909
  });
14910
14910
  Object.keys((_c = params.jsFunctions) !== null && _c !== void 0 ? _c : {})
14911
- .filter(function (name) { return name.toLowerCase().startsWith(_this.searchPrefix); })
14911
+ .filter(function (name) { return name.startsWith(_this.searchPrefix); })
14912
14912
  .forEach(function (name) { return suggestions.add(name); });
14913
14913
  Object.keys((_d = params.values) !== null && _d !== void 0 ? _d : {})
14914
- .filter(function (name) { return name.toLowerCase().startsWith(_this.searchPrefix); })
14914
+ .filter(function (name) { return name.startsWith(_this.searchPrefix); })
14915
14915
  .forEach(function (name) { return suggestions.add(name); });
14916
- this.suggestions = __spreadArray([], __read(suggestions), false).sort(function (a, b) { return a.toLowerCase().localeCompare(b.toLowerCase()); });
14916
+ this.suggestions = __spreadArray([], __read(suggestions), false).sort(function (a, b) { return a.localeCompare(b); });
14917
14917
  };
14918
14918
  return AutoCompleter;
14919
14919
  }());
package/dist/index.esm.js CHANGED
@@ -14882,7 +14882,7 @@ var AutoCompleter = /** @class */ (function () {
14882
14882
  if (!autoCompleteTokenTypes.includes(tokenType)) {
14883
14883
  return;
14884
14884
  }
14885
- this.searchPrefix = tokenValue.toLowerCase();
14885
+ this.searchPrefix = tokenValue;
14886
14886
  this.generateSuggestions(params);
14887
14887
  }
14888
14888
  AutoCompleter.prototype.getNextSuggestion = function () {
@@ -14932,25 +14932,25 @@ var AutoCompleter = /** @class */ (function () {
14932
14932
  var _a, _b, _c, _d;
14933
14933
  var suggestions = new Set();
14934
14934
  litsCommands.forEach(function (name) {
14935
- if (name.toLowerCase().startsWith(_this.searchPrefix)) {
14935
+ if (name.startsWith(_this.searchPrefix)) {
14936
14936
  suggestions.add(name);
14937
14937
  }
14938
14938
  });
14939
14939
  Object.keys((_a = params.globalContext) !== null && _a !== void 0 ? _a : {})
14940
- .filter(function (name) { return name.toLowerCase().startsWith(_this.searchPrefix); })
14940
+ .filter(function (name) { return name.startsWith(_this.searchPrefix); })
14941
14941
  .forEach(function (name) { return suggestions.add(name); });
14942
14942
  (_b = params.contexts) === null || _b === void 0 ? void 0 : _b.forEach(function (context) {
14943
14943
  Object.keys(context)
14944
- .filter(function (name) { return name.toLowerCase().startsWith(_this.searchPrefix); })
14944
+ .filter(function (name) { return name.startsWith(_this.searchPrefix); })
14945
14945
  .forEach(function (name) { return suggestions.add(name); });
14946
14946
  });
14947
14947
  Object.keys((_c = params.jsFunctions) !== null && _c !== void 0 ? _c : {})
14948
- .filter(function (name) { return name.toLowerCase().startsWith(_this.searchPrefix); })
14948
+ .filter(function (name) { return name.startsWith(_this.searchPrefix); })
14949
14949
  .forEach(function (name) { return suggestions.add(name); });
14950
14950
  Object.keys((_d = params.values) !== null && _d !== void 0 ? _d : {})
14951
- .filter(function (name) { return name.toLowerCase().startsWith(_this.searchPrefix); })
14951
+ .filter(function (name) { return name.startsWith(_this.searchPrefix); })
14952
14952
  .forEach(function (name) { return suggestions.add(name); });
14953
- this.suggestions = __spreadArray([], __read(suggestions), false).sort(function (a, b) { return a.toLowerCase().localeCompare(b.toLowerCase()); });
14953
+ this.suggestions = __spreadArray([], __read(suggestions), false).sort(function (a, b) { return a.localeCompare(b); });
14954
14954
  };
14955
14955
  return AutoCompleter;
14956
14956
  }());