@code-pushup/core 0.53.1 → 0.54.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.
- package/index.js +4 -4
- package/package.json +3 -3
package/index.js
CHANGED
|
@@ -106,7 +106,6 @@ var fileNameSchema = z.string().trim().regex(filenameRegex, {
|
|
|
106
106
|
message: `The filename has to be valid`
|
|
107
107
|
}).min(1, { message: "file name is invalid" });
|
|
108
108
|
var positiveIntSchema = z.number().int().positive();
|
|
109
|
-
var nonnegativeIntSchema = z.number().int().nonnegative();
|
|
110
109
|
var nonnegativeNumberSchema = z.number().nonnegative();
|
|
111
110
|
function packageVersionSchema(options) {
|
|
112
111
|
const { versionDescription = "NPM version of the package", required } = options ?? {};
|
|
@@ -654,7 +653,7 @@ var auditDiffSchema = scorableWithPluginDiffSchema.merge(
|
|
|
654
653
|
z16.object({
|
|
655
654
|
values: makeComparisonSchema(auditValueSchema).merge(
|
|
656
655
|
z16.object({
|
|
657
|
-
diff: z16.number().
|
|
656
|
+
diff: z16.number().describe("Value change (`values.after - values.before`)")
|
|
658
657
|
})
|
|
659
658
|
).describe("Audit `value` comparison"),
|
|
660
659
|
displayValues: makeComparisonSchema(auditDisplayValueSchema).describe(
|
|
@@ -1000,6 +999,7 @@ function executeProcess(cfg) {
|
|
|
1000
999
|
return new Promise((resolve, reject) => {
|
|
1001
1000
|
const spawnedProcess = spawn(command, args ?? [], {
|
|
1002
1001
|
shell: true,
|
|
1002
|
+
windowsHide: true,
|
|
1003
1003
|
...options
|
|
1004
1004
|
});
|
|
1005
1005
|
let stdout = "";
|
|
@@ -2265,7 +2265,7 @@ function reportToHeaderSection(report) {
|
|
|
2265
2265
|
function logPlugins(plugins, verbose) {
|
|
2266
2266
|
plugins.forEach((plugin) => {
|
|
2267
2267
|
const { title, audits } = plugin;
|
|
2268
|
-
const filteredAudits = verbose ? audits : audits.filter(({ score }) => score !== 1);
|
|
2268
|
+
const filteredAudits = verbose || audits.length === 1 ? audits : audits.filter(({ score }) => score !== 1);
|
|
2269
2269
|
const diff = audits.length - filteredAudits.length;
|
|
2270
2270
|
logAudits(title, filteredAudits);
|
|
2271
2271
|
if (diff > 0) {
|
|
@@ -2450,7 +2450,7 @@ var verboseUtils = (verbose = false) => ({
|
|
|
2450
2450
|
|
|
2451
2451
|
// packages/core/package.json
|
|
2452
2452
|
var name = "@code-pushup/core";
|
|
2453
|
-
var version = "0.
|
|
2453
|
+
var version = "0.54.0";
|
|
2454
2454
|
|
|
2455
2455
|
// packages/core/src/lib/implementation/execute-plugin.ts
|
|
2456
2456
|
import { bold as bold5 } from "ansis";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@code-pushup/core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.54.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Core business logic for the used by the Code PushUp CLI",
|
|
6
6
|
"homepage": "https://github.com/code-pushup/cli/tree/main/packages/core#readme",
|
|
@@ -41,8 +41,8 @@
|
|
|
41
41
|
"main": "./index.js",
|
|
42
42
|
"types": "./src/index.d.ts",
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@code-pushup/models": "0.
|
|
45
|
-
"@code-pushup/utils": "0.
|
|
44
|
+
"@code-pushup/models": "0.54.0",
|
|
45
|
+
"@code-pushup/utils": "0.54.0",
|
|
46
46
|
"ansis": "^3.3.0"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|