kitstore-cli 1.0.17 → 1.0.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.
@@ -63,7 +63,8 @@ async function installCommand(options) {
63
63
  options.type, // type
64
64
  undefined // authorId
65
65
  );
66
- const rules = response.data;
66
+ // Ensure response.data is an array before using array methods
67
+ const rules = Array.isArray(response.data) ? response.data : [];
67
68
  if (!rules || rules.length === 0) {
68
69
  console.log('📭 No rules found matching the criteria.');
69
70
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kitstore-cli",
3
- "version": "1.0.17",
3
+ "version": "1.0.19",
4
4
  "description": "CLI tool for Cursor Kit",
5
5
  "main": "dist/index.js",
6
6
  "bin": {