buildsight-collector 0.0.4 → 1.0.0

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/index.js +6 -0
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -17,6 +17,12 @@ async function main() {
17
17
  process.exit(1);
18
18
  }
19
19
 
20
+ if (typeof token === 'string' && token.length < 200) {
21
+ console.log(chalk.red("❌ Token inválido: tamanho menor que 200 caracteres."));
22
+ console.log(chalk.yellow("Uso: npx buildsight-collector <token>"));
23
+ process.exit(1);
24
+ }
25
+
20
26
  console.log(chalk.cyan.bold("\n🔗 Iniciando BuildSight Collector..."));
21
27
 
22
28
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "buildsight-collector",
3
- "version": "0.0.4",
3
+ "version": "1.0.0",
4
4
  "description": "CLI do BuildSight para coleta automatizada de commits e métricas de repositórios.",
5
5
  "main": "index.js",
6
6
  "bin": {