ziptoweb 1.0.0 → 1.0.2

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/bin/cli.js +8 -0
  2. package/package.json +1 -1
package/bin/cli.js CHANGED
@@ -353,6 +353,14 @@ program
353
353
  } else if (error.response?.status === 401) {
354
354
  console.error(chalk.red(' Токен недействителен. Выполните: ziptoweb login'));
355
355
  if (fs.existsSync(TOKEN_FILE)) fs.unlinkSync(TOKEN_FILE);
356
+ } else if (error.response?.status === 429) {
357
+ console.error(chalk.hex('#e67e4d')('\n ⚠ Превышен лимит загрузок'));
358
+ console.error(chalk.white(' ' + (error.response?.data?.error || 'Слишком много запросов')));
359
+ console.error(chalk.gray(' Лимит: 10 загрузок в час\n'));
360
+ } else if (error.response?.status === 403 && error.response?.data?.needsUpgrade) {
361
+ console.error(chalk.hex('#e67e4d')('\n ⚠ Достигнут лимит сайтов'));
362
+ console.error(chalk.white(' Бесплатный план: максимум 5 сайтов'));
363
+ console.error(chalk.white(' Купите Pro на https://ziptoweb.ru для безлимитных сайтов\n'));
356
364
  } else if (error.response?.status === 413) {
357
365
  console.error(chalk.red(' Файл слишком большой для сервера'));
358
366
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ziptoweb",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "CLI для деплоя статических сайтов на ZipToWeb за 30 секунд",
5
5
  "main": "index.js",
6
6
  "bin": {