ziptoweb 1.0.0 → 1.0.1

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