@vibgrate/cli 1.0.6 → 1.0.8
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.
|
@@ -171,10 +171,10 @@ function computeDriftScore(projects) {
|
|
|
171
171
|
score: 100,
|
|
172
172
|
riskLevel: "low",
|
|
173
173
|
components: {
|
|
174
|
-
runtimeScore: rs ?? 100,
|
|
175
|
-
frameworkScore: fs5 ?? 100,
|
|
176
|
-
dependencyScore: ds ?? 100,
|
|
177
|
-
eolScore: es ?? 100
|
|
174
|
+
runtimeScore: Math.round(rs ?? 100),
|
|
175
|
+
frameworkScore: Math.round(fs5 ?? 100),
|
|
176
|
+
dependencyScore: Math.round(ds ?? 100),
|
|
177
|
+
eolScore: Math.round(es ?? 100)
|
|
178
178
|
}
|
|
179
179
|
};
|
|
180
180
|
}
|
|
@@ -197,10 +197,10 @@ function computeDriftScore(projects) {
|
|
|
197
197
|
score,
|
|
198
198
|
riskLevel,
|
|
199
199
|
components: {
|
|
200
|
-
runtimeScore: rs ?? 100,
|
|
201
|
-
frameworkScore: fs5 ?? 100,
|
|
202
|
-
dependencyScore: ds ?? 100,
|
|
203
|
-
eolScore: es ?? 100
|
|
200
|
+
runtimeScore: Math.round(rs ?? 100),
|
|
201
|
+
frameworkScore: Math.round(fs5 ?? 100),
|
|
202
|
+
dependencyScore: Math.round(ds ?? 100),
|
|
203
|
+
eolScore: Math.round(es ?? 100)
|
|
204
204
|
},
|
|
205
205
|
measured
|
|
206
206
|
};
|
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-TQMVPV2O.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-7AHASIDR.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-D4ATDVOG.js");
|
|
42
42
|
await runBaseline(rootDir);
|
|
43
43
|
}
|
|
44
44
|
console.log("");
|
package/dist/index.js
CHANGED