git-shots-cli 0.5.3 → 0.5.4

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.
Files changed (2) hide show
  1. package/dist/index.js +8 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -138,7 +138,14 @@ async function compare(config, options) {
138
138
  return;
139
139
  }
140
140
  for (const d of data.diffs) {
141
- console.log(chalk3.yellow(` changed: ${d.screen}`));
141
+ const type = d.changeType ?? "changed";
142
+ if (type === "new") {
143
+ console.log(chalk3.green(` + new: ${d.screen}`));
144
+ } else if (type === "removed") {
145
+ console.log(chalk3.red(` - removed: ${d.screen}`));
146
+ } else {
147
+ console.log(chalk3.yellow(` ~ changed: ${d.screen}`));
148
+ }
142
149
  }
143
150
  } catch (err) {
144
151
  console.error(chalk3.red(`Request failed: ${err}`));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "git-shots-cli",
3
- "version": "0.5.3",
3
+ "version": "0.5.4",
4
4
  "description": "CLI for git-shots visual regression platform",
5
5
  "type": "module",
6
6
  "bin": {