afterbefore 0.1.14 → 0.1.15

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/dist/cli.js CHANGED
@@ -116,16 +116,15 @@ var Logger = class {
116
116
  this.log("info", `Pipeline ${finished ? "completed" : "stopped"}`);
117
117
  if (this.spinner) {
118
118
  if (finished) {
119
- this.spinner.stop();
120
119
  const bar = "\u2588".repeat(BAR_WIDTH);
121
- console.log(`${chalk.green("\u2714")} ${bar}`);
120
+ this.spinner.succeed(` ${bar}`);
122
121
  } else {
123
122
  this.spinner.stop();
124
123
  }
125
124
  this.spinner = null;
126
125
  } else if (finished) {
127
126
  const bar = "\u2588".repeat(BAR_WIDTH);
128
- console.log(`${chalk.green("\u2714")} ${bar}`);
127
+ console.error(`${chalk.green("\u2714")} ${bar}`);
129
128
  }
130
129
  this.pipelineTotal = 0;
131
130
  this.lastStep = 0;
@@ -1942,7 +1941,7 @@ async function runPipeline(options) {
1942
1941
  const outputDir = resolve4(cwd, output, sessionName);
1943
1942
  const startTime = Date.now();
1944
1943
  try {
1945
- const version = true ? "0.1.14" : "dev";
1944
+ const version = true ? "0.1.15" : "dev";
1946
1945
  console.log(`
1947
1946
  afterbefore v${version} \xB7 Comparing against ${base}
1948
1947
  `);
@@ -2087,7 +2086,7 @@ afterbefore v${version} \xB7 Comparing against ${base}
2087
2086
  var program = new Command();
2088
2087
  program.name("afterbefore").description(
2089
2088
  "Automatic before/after screenshot capture for PRs. Git diff is the config."
2090
- ).version("0.1.14").option("--base <ref>", "Base branch or ref to compare against", "main").option("--output <dir>", "Output directory for screenshots", ".afterbefore").option("--post", "Post results as a PR comment via gh CLI", false).option(
2089
+ ).version("0.1.15").option("--base <ref>", "Base branch or ref to compare against", "main").option("--output <dir>", "Output directory for screenshots", ".afterbefore").option("--post", "Post results as a PR comment via gh CLI", false).option(
2091
2090
  "--threshold <percent>",
2092
2091
  "Diff threshold percentage (changes below this are ignored)",
2093
2092
  "0.1"