@l4yercak3/cli 1.1.11 → 1.1.12

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@l4yercak3/cli",
3
- "version": "1.1.11",
3
+ "version": "1.1.12",
4
4
  "description": "Icing on the L4yercak3 - The sweet finishing touch for your Layer Cake integration",
5
5
  "main": "src/index.js",
6
6
  "bin": {
@@ -220,9 +220,9 @@ async function handleSpread() {
220
220
  console.log(chalk.gray(' Could not check existing keys, attempting to generate...'));
221
221
  }
222
222
 
223
- if (existingKeys && existingKeys.keys && existingKeys.keys.length > 0 && !existingKeys.canCreateMore) {
224
- // At API key limit - inform user and exit
225
- console.log(chalk.yellow(` ⚠️ You've reached your API key limit (${existingKeys.keys.length} key(s))`));
223
+ if (existingKeys && existingKeys.canCreateMore === false) {
224
+ // At API key limit - inform user and exit (only if explicitly false, not undefined)
225
+ console.log(chalk.yellow(` ⚠️ You've reached your API key limit (${existingKeys.keys?.length || 0} key(s))`));
226
226
  if (existingKeys.limitDescription) {
227
227
  console.log(chalk.gray(` ${existingKeys.limitDescription}`));
228
228
  }