@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/lits.iife.js CHANGED
@@ -14885,7 +14885,7 @@ var Lits = (function (exports) {
14885
14885
  if (!autoCompleteTokenTypes.includes(tokenType)) {
14886
14886
  return;
14887
14887
  }
14888
- this.searchPrefix = tokenValue.toLowerCase();
14888
+ this.searchPrefix = tokenValue;
14889
14889
  this.generateSuggestions(params);
14890
14890
  }
14891
14891
  AutoCompleter.prototype.getNextSuggestion = function () {
@@ -14935,25 +14935,25 @@ var Lits = (function (exports) {
14935
14935
  var _a, _b, _c, _d;
14936
14936
  var suggestions = new Set();
14937
14937
  litsCommands.forEach(function (name) {
14938
- if (name.toLowerCase().startsWith(_this.searchPrefix)) {
14938
+ if (name.startsWith(_this.searchPrefix)) {
14939
14939
  suggestions.add(name);
14940
14940
  }
14941
14941
  });
14942
14942
  Object.keys((_a = params.globalContext) !== null && _a !== void 0 ? _a : {})
14943
- .filter(function (name) { return name.toLowerCase().startsWith(_this.searchPrefix); })
14943
+ .filter(function (name) { return name.startsWith(_this.searchPrefix); })
14944
14944
  .forEach(function (name) { return suggestions.add(name); });
14945
14945
  (_b = params.contexts) === null || _b === void 0 ? void 0 : _b.forEach(function (context) {
14946
14946
  Object.keys(context)
14947
- .filter(function (name) { return name.toLowerCase().startsWith(_this.searchPrefix); })
14947
+ .filter(function (name) { return name.startsWith(_this.searchPrefix); })
14948
14948
  .forEach(function (name) { return suggestions.add(name); });
14949
14949
  });
14950
14950
  Object.keys((_c = params.jsFunctions) !== null && _c !== void 0 ? _c : {})
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
14953
  Object.keys((_d = params.values) !== null && _d !== void 0 ? _d : {})
14954
- .filter(function (name) { return name.toLowerCase().startsWith(_this.searchPrefix); })
14954
+ .filter(function (name) { return name.startsWith(_this.searchPrefix); })
14955
14955
  .forEach(function (name) { return suggestions.add(name); });
14956
- this.suggestions = __spreadArray([], __read(suggestions), false).sort(function (a, b) { return a.toLowerCase().localeCompare(b.toLowerCase()); });
14956
+ this.suggestions = __spreadArray([], __read(suggestions), false).sort(function (a, b) { return a.localeCompare(b); });
14957
14957
  };
14958
14958
  return AutoCompleter;
14959
14959
  }());