sedum-cli 0.1.0-alpha.6 → 0.1.0-alpha.7
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.
|
@@ -664,7 +664,7 @@ async function runCli(args, version, runtime = {}) {
|
|
|
664
664
|
const writeOut = (value) => rawOut(withCommand(value, command));
|
|
665
665
|
const writeErr = (value) => rawErr(withCommand(value, command));
|
|
666
666
|
const capabilities = runtime.capabilities ?? plainOutput;
|
|
667
|
-
const executeRun = runtime.executeRun ?? (async (options) => (await import("./run-command-
|
|
667
|
+
const executeRun = runtime.executeRun ?? (async (options) => (await import("./run-command-GQN53UWF.js")).executeRunCommand(options));
|
|
668
668
|
const cwd = runtime.cwd ?? process.cwd();
|
|
669
669
|
let exitCode = 3;
|
|
670
670
|
const program = new Command().name("sedum").description(
|
package/dist/cli.js
CHANGED
package/dist/index.js
CHANGED
|
@@ -421,6 +421,11 @@ var SUPPORTED_REPORTERS = [
|
|
|
421
421
|
"markdown",
|
|
422
422
|
"junit"
|
|
423
423
|
];
|
|
424
|
+
function verifyGraceMs(value) {
|
|
425
|
+
if (value === void 0) return 5e3;
|
|
426
|
+
const parsed = Number(value);
|
|
427
|
+
return Number.isFinite(parsed) && parsed >= 0 && parsed <= 12e4 ? parsed : 5e3;
|
|
428
|
+
}
|
|
424
429
|
function strayRejectionDiagnostic(strays, config) {
|
|
425
430
|
const stray = strays[0];
|
|
426
431
|
const where = stray.source ? `${path3.relative(config.projectRoot, stray.source.file).split(path3.sep).join("/")}:${stray.source.line}: ` : "";
|
|
@@ -1113,6 +1118,7 @@ async function executeRunCommand(options) {
|
|
|
1113
1118
|
browserKind: config.browser,
|
|
1114
1119
|
viewport: config.viewport,
|
|
1115
1120
|
verifyPolicy: config.thresholds,
|
|
1121
|
+
verifyGraceMs: verifyGraceMs(process.env.SEDUM_VERIFY_GRACE_MS),
|
|
1116
1122
|
...config.baseUrl ? { baseUrl: config.baseUrl } : {},
|
|
1117
1123
|
...options.urlOverride ? { urlOverride: options.urlOverride } : {},
|
|
1118
1124
|
...options.headed ? { headless: false } : {},
|
|
@@ -1256,5 +1262,6 @@ async function executeRunCommand(options) {
|
|
|
1256
1262
|
}
|
|
1257
1263
|
export {
|
|
1258
1264
|
executeRunCommand,
|
|
1259
|
-
strayRejectionDiagnostic
|
|
1265
|
+
strayRejectionDiagnostic,
|
|
1266
|
+
verifyGraceMs
|
|
1260
1267
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sedum-cli",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.7",
|
|
4
4
|
"repository": "https://github.com/sedum-dev/sedum",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -25,9 +25,9 @@
|
|
|
25
25
|
"commander": "14.0.2",
|
|
26
26
|
"minimatch": "10.2.6",
|
|
27
27
|
"yaml": "2.9.1",
|
|
28
|
-
"@sedum-dev/core": "0.1.0-alpha.
|
|
29
|
-
"@sedum-dev/
|
|
30
|
-
"@sedum-dev/
|
|
28
|
+
"@sedum-dev/core": "0.1.0-alpha.7",
|
|
29
|
+
"@sedum-dev/provider-typesafe": "0.1.0-alpha.7",
|
|
30
|
+
"@sedum-dev/reporters": "0.1.0-alpha.7"
|
|
31
31
|
},
|
|
32
32
|
"scripts": {
|
|
33
33
|
"build": "tsup src/index.ts src/cli.ts --format esm --dts --clean --out-dir dist",
|