alemonjs 2.1.71 → 2.1.72

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.
@@ -143,12 +143,9 @@ function getLookupCandidates(event, keyPolicy) {
143
143
  const maxWords = keyPolicy?.maxWords ?? 2;
144
144
  const candidates = maxWords === 1
145
145
  ? [{ key: oneKey, keyLength: 1 }]
146
- : [
147
- ...(twoKey ? [{ key: twoKey, keyLength: 2 }] : []),
148
- { key: oneKey, keyLength: 1 }
149
- ];
146
+ : [...(twoKey ? [{ key: twoKey, keyLength: 2 }] : []), { key: oneKey, keyLength: 1 }];
150
147
  return {
151
- normalizedCommand: parsed?.normalized,
148
+ normalizedCommand: parsed.normalizedText,
152
149
  rawArgs: parsed.tokens,
153
150
  candidates
154
151
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "alemonjs",
3
- "version": "2.1.71",
3
+ "version": "2.1.72",
4
4
  "description": "bot script",
5
5
  "author": "lemonade",
6
6
  "license": "MIT",