From 1f80df68cc6ac46f49c51150a00a870057b94df7 Mon Sep 17 00:00:00 2001 From: Bart Onstee Date: Wed, 20 Nov 2024 13:35:54 +0000 Subject: [PATCH] Update cli.js --- bin/cli.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/bin/cli.js b/bin/cli.js index 7065869..c60e5be 100755 --- a/bin/cli.js +++ b/bin/cli.js @@ -261,7 +261,7 @@ var setCcVersion = (v) => { }; var cypressPkg = require2("cypress/package.json"); -var pkg = require2("@krivega/cc/package.json"); +var pkg = require2("@bart/cc/package.json"); initCapture(); setCypressVersion(cypressPkg.version); setCcVersion(pkg.version); @@ -479,7 +479,7 @@ var bootCypress = async (params) => { try { const f = import_fs.default.readFileSync(tempFilePath, "utf-8"); if (!f) { - throw new Error("Is @krivega/cc/plugin installed?"); + throw new Error("Is @bart/cc/plugin installed?"); } debug5("cypress config '%s': '%s'", tempFilePath, f); return JSON.parse(f); @@ -488,7 +488,7 @@ var bootCypress = async (params) => { info(bold("Cypress stdout:\n"), stdout2); info(bold("Cypress stderr:\n"), stderr); throw new ValidationError(`Unable to resolve cypress configuration -- make sure that '@krivega/cc/plugin' is installed +- make sure that '@bart/cc/plugin' is installed - report the issue together with cypress stdout and stderr `); } @@ -815,7 +815,7 @@ async function getClient() { "x-cypress-request-attempt": config["axios-retry"]?.retryCount ?? 0, "x-cypress-version": _cypressVersion ?? "0.0.0", "x-ccy-version": ccyVerson, - "User-Agent": `@krivega/cc/${ccyVerson}` + "User-Agent": `@bart/cc/${ccyVerson}` }; if (_runId) { headers["x-cypress-run-id"] = _runId; @@ -1540,7 +1540,7 @@ var SpecAfterResult = class _SpecAfterResult { static getDummyTestAttemptError(attemptState) { return (0, import_ts_pattern4.match)(attemptState).with("failed", () => ({ name: "Error", - message: "[@krivega/cc] Could not get cypress attempt error details", + message: "[@bart/cc] Could not get cypress attempt error details", stack: "", codeFrame: null })).with("skipped", () => ({ @@ -3344,7 +3344,7 @@ async function run(params = {}) { config, browser: validatedParams.browser }); - info(`@krivega/cc version: ${dim(_ccVersion)}`); + info(`@bart/cc version: ${dim(_ccVersion)}`); info(`Cypress version: ${dim(_cypressVersion)}`); info("Discovered %d spec files", specs.length); info( @@ -3497,7 +3497,7 @@ var toBoolean = (value) => { init_cjs_shims(); var import_extra_typings = __toESM(require_extra_typings()); -var createProgram = (command = new import_extra_typings.Command()) => command.name("@krivega/cc").description( +var createProgram = (command = new import_extra_typings.Command()) => command.name("@bart/cc").description( ` Run Cypress tests on CI using https://cc.dev or https://sorry-cypress.dev as an orchestration and reporting service @@ -3569,12 +3569,12 @@ ${getLegalNotice()} ).addOption( new import_extra_typings.Option( "--cloud-config-file ", - "Specify the config file for @krivega/cc, defaults to 'cc.config.js' and will be searched in the project root, unless an aboslue path is provided" + "Specify the config file for @bart/cc, defaults to 'cc.config.js' and will be searched in the project root, unless an aboslue path is provided" ).default(void 0) ).addOption( new import_extra_typings.Option( `--cloud-debug [true | string]`, - `Enable debug mode for @krivega/cc, this will print out logs for troubleshooting. Values: [true | ${Object.values( + `Enable debug mode for @bart/cc, this will print out logs for troubleshooting. Values: [true | ${Object.values( DebugMode ).join( " | "