@kinkai.cloud/vibecheck 0.1.4 → 0.1.5

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/dist/cli.js +8 -6
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -15418,11 +15418,6 @@ async function main(argv) {
15418
15418
  authorization: `Bearer ${cred.token}`,
15419
15419
  "content-type": "application/json"
15420
15420
  };
15421
- const post = fetch(`${base}/api/cli/scan`, {
15422
- method: "POST",
15423
- headers,
15424
- body: JSON.stringify({ url: url2 })
15425
- });
15426
15421
  const grafo = await extrairGrafo(raiz);
15427
15422
  const avancado = scanEhAvancado(grafo);
15428
15423
  if (!avancado) {
@@ -15430,7 +15425,14 @@ async function main(argv) {
15430
15425
  "Sem grafo extra\xEDvel (nem graphify, nem JS/TS). O HTTP roda, mas isto n\xE3o \xE9 scan avan\xE7ado."
15431
15426
  );
15432
15427
  }
15433
- const criado = await post;
15428
+ const criado = await fetch(`${base}/api/cli/scan`, {
15429
+ method: "POST",
15430
+ headers,
15431
+ body: JSON.stringify({
15432
+ url: url2,
15433
+ ...grafo === null ? {} : { graph: grafo }
15434
+ })
15435
+ });
15434
15436
  const corpo = await criado.json();
15435
15437
  if (!criado.ok || corpo.scanId === void 0) {
15436
15438
  console.error(corpo.error ?? "n\xE3o foi poss\xEDvel abrir o scan");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kinkai.cloud/vibecheck",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "bin": {