@vibgrate/cli 1.0.4 → 1.0.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.
|
@@ -943,13 +943,14 @@ import * as path3 from "path";
|
|
|
943
943
|
import { Command as Command2 } from "commander";
|
|
944
944
|
import chalk3 from "chalk";
|
|
945
945
|
function parseDsn(dsn) {
|
|
946
|
-
const match = dsn.match(/^vibgrate\+https
|
|
946
|
+
const match = dsn.match(/^vibgrate\+(https?):?\/\/([^:]+):([^@]+)@([^/]+)\/(.+)$/);
|
|
947
947
|
if (!match) return null;
|
|
948
948
|
return {
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
949
|
+
scheme: match[1],
|
|
950
|
+
keyId: match[2],
|
|
951
|
+
secret: match[3],
|
|
952
|
+
host: match[4],
|
|
953
|
+
workspaceId: match[5]
|
|
953
954
|
};
|
|
954
955
|
}
|
|
955
956
|
function computeHmac(body, secret) {
|
|
@@ -990,7 +991,7 @@ var pushCommand = new Command2("push").description("Push scan results to Vibgrat
|
|
|
990
991
|
return;
|
|
991
992
|
}
|
|
992
993
|
}
|
|
993
|
-
const url =
|
|
994
|
+
const url = `${parsed.scheme}://${host}/v1/ingest/scan`;
|
|
994
995
|
console.log(chalk3.dim(`Uploading to ${host}...`));
|
|
995
996
|
try {
|
|
996
997
|
const response = await fetch(url, {
|
|
@@ -4213,7 +4214,7 @@ async function autoPush(artifact, rootDir, opts) {
|
|
|
4213
4214
|
return;
|
|
4214
4215
|
}
|
|
4215
4216
|
}
|
|
4216
|
-
const url =
|
|
4217
|
+
const url = `${parsed.scheme}://${host}/v1/ingest/scan`;
|
|
4217
4218
|
console.log(chalk5.dim(`Uploading to ${host}...`));
|
|
4218
4219
|
try {
|
|
4219
4220
|
const response = await fetch(url, {
|
package/dist/cli.js
CHANGED
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./chunk-VXZT34Y5.js";
|
|
5
5
|
import {
|
|
6
6
|
baselineCommand
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-NN6FOOGN.js";
|
|
8
8
|
import {
|
|
9
9
|
VERSION,
|
|
10
10
|
dsnCommand,
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
readJsonFile,
|
|
16
16
|
scanCommand,
|
|
17
17
|
writeDefaultConfig
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-RML3WBN7.js";
|
|
19
19
|
|
|
20
20
|
// src/cli.ts
|
|
21
21
|
import { Command as Command4 } from "commander";
|
|
@@ -38,7 +38,7 @@ var initCommand = new Command("init").description("Initialize vibgrate in a proj
|
|
|
38
38
|
console.log(chalk.green("\u2714") + ` Created ${chalk.bold("vibgrate.config.ts")}`);
|
|
39
39
|
}
|
|
40
40
|
if (opts.baseline) {
|
|
41
|
-
const { runBaseline } = await import("./baseline-
|
|
41
|
+
const { runBaseline } = await import("./baseline-EIZTM3MX.js");
|
|
42
42
|
await runBaseline(rootDir);
|
|
43
43
|
}
|
|
44
44
|
console.log("");
|
package/dist/index.js
CHANGED