@blazediff/bin 0.3.0 → 0.4.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.
Files changed (2) hide show
  1. package/dist/cli.js +6 -1
  2. package/package.json +5 -5
package/dist/cli.js CHANGED
@@ -77,6 +77,7 @@ Options:
77
77
  --include-aa Include anti-aliasing detection
78
78
  --diff-mask Draw diff over transparent background
79
79
  --transformer <name> Specify transformer to use (e.g. pngjs, sharp)
80
+ --yiq Use YIQ color space (default: false)
80
81
  -h, --help Show this help message
81
82
 
82
83
  Examples:
@@ -175,6 +176,9 @@ function parseArgs() {
175
176
  i++;
176
177
  }
177
178
  break;
179
+ case "--yiq":
180
+ options.yiq = true;
181
+ break;
178
182
  default:
179
183
  console.error(`Unknown option: ${arg}`);
180
184
  printUsage();
@@ -208,7 +212,8 @@ async function main() {
208
212
  diffColor: options.diffColor,
209
213
  diffColorAlt: options.diffColorAlt,
210
214
  includeAA: options.includeAA,
211
- diffMask: options.diffMask
215
+ diffMask: options.diffMask,
216
+ yiq: options.yiq
212
217
  }
213
218
  });
214
219
  console.log(`matched in: ${result.duration.toFixed(2)}ms`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blazediff/bin",
3
- "version": "0.3.0",
3
+ "version": "0.4.0",
4
4
  "description": "Command-line interface for the blazediff image comparison library",
5
5
  "private": false,
6
6
  "publishConfig": {
@@ -37,15 +37,15 @@
37
37
  "homepage": "https://github.com/teimurjan/blazediff",
38
38
  "license": "MIT",
39
39
  "dependencies": {
40
- "@blazediff/core": "0.3.0",
41
- "@blazediff/pngjs-transformer": "0.3.0",
42
- "@blazediff/sharp-transformer": "0.3.0"
40
+ "@blazediff/core": "0.4.0",
41
+ "@blazediff/pngjs-transformer": "0.4.0",
42
+ "@blazediff/sharp-transformer": "0.4.0"
43
43
  },
44
44
  "devDependencies": {
45
45
  "@types/node": "^24.3.0",
46
46
  "tsup": "8.5.0",
47
47
  "typescript": "5.9.2",
48
- "@blazediff/types": "0.3.0"
48
+ "@blazediff/types": "0.4.0"
49
49
  },
50
50
  "scripts": {
51
51
  "build": "tsup",