@wilm-ai/wilma-cli 0.0.4 → 0.0.5

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.
Files changed (2) hide show
  1. package/dist/index.js +5 -4
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -258,15 +258,16 @@ function tenantMatches(search, tenant) {
258
258
  }
259
259
  function fuzzyIncludes(target, needle) {
260
260
  const hay = (target ?? "").toLowerCase();
261
- if (!needle)
261
+ const search = (needle ?? "").toLowerCase();
262
+ if (!search)
262
263
  return true;
263
- if (hay.includes(needle))
264
+ if (hay.includes(search))
264
265
  return true;
265
266
  let i = 0;
266
267
  for (const ch of hay) {
267
- if (ch === needle[i]) {
268
+ if (ch === search[i]) {
268
269
  i += 1;
269
- if (i >= needle.length)
270
+ if (i >= search.length)
270
271
  return true;
271
272
  }
272
273
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wilm-ai/wilma-cli",
3
- "version": "0.0.4",
3
+ "version": "0.0.5",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -18,7 +18,7 @@
18
18
  },
19
19
  "dependencies": {
20
20
  "@inquirer/prompts": "^5.3.8",
21
- "@wilm-ai/wilma-client": "^0.0.1"
21
+ "@wilm-ai/wilma-client": "workspace:^"
22
22
  },
23
23
  "devDependencies": {
24
24
  "typescript": "^5.6.3"