@blazediff/cli 2.1.4 → 3.0.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.
package/dist/index.d.ts CHANGED
@@ -3,32 +3,32 @@ interface Image {
3
3
  width: number;
4
4
  height: number;
5
5
  }
6
- interface Transformer {
6
+ interface Codec {
7
7
  read: (input: string | Buffer) => Promise<Image>;
8
8
  write: (image: Image, output: string | Buffer) => Promise<void>;
9
9
  }
10
10
  type ComparisonMode = "diff" | "gmsd" | "ssim" | "msssim";
11
11
  interface DiffModeOptions {
12
12
  outputPath?: string;
13
- transformer: Transformer;
13
+ codec: Codec;
14
14
  mode?: "diff";
15
15
  options?: Record<string, unknown>;
16
16
  }
17
17
  interface GmsdModeOptions {
18
18
  outputPath?: string;
19
- transformer: Transformer;
19
+ codec: Codec;
20
20
  mode: "gmsd";
21
21
  options?: Record<string, unknown>;
22
22
  }
23
23
  interface SsimModeOptions {
24
24
  outputPath?: string;
25
- transformer: Transformer;
25
+ codec: Codec;
26
26
  mode: "ssim";
27
27
  options?: Record<string, unknown>;
28
28
  }
29
29
  interface MsssimModeOptions {
30
30
  outputPath?: string;
31
- transformer: Transformer;
31
+ codec: Codec;
32
32
  mode: "msssim";
33
33
  options?: Record<string, unknown>;
34
34
  }
@@ -66,4 +66,4 @@ interface MsssimModeResult {
66
66
  }
67
67
  type BlazeDiffCoreNativeResult = DiffModeResult | GmsdModeResult | SsimModeResult | MsssimModeResult;
68
68
 
69
- export type { BlazeDiffCoreNativeResult, ComparisonMode, DiffModeOptions, DiffModeResult, GmsdModeOptions, GmsdModeResult, Image, MsssimModeOptions, MsssimModeResult, SsimModeOptions, SsimModeResult, Transformer };
69
+ export type { BlazeDiffCoreNativeResult, Codec, ComparisonMode, DiffModeOptions, DiffModeResult, GmsdModeOptions, GmsdModeResult, Image, MsssimModeOptions, MsssimModeResult, SsimModeOptions, SsimModeResult };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blazediff/cli",
3
- "version": "2.1.4",
3
+ "version": "3.0.0",
4
4
  "description": "Command-line interface for the blazediff image comparison library",
5
5
  "private": false,
6
6
  "publishConfig": {
@@ -42,6 +42,7 @@
42
42
  "@blazediff/gmsd": "1.7.1",
43
43
  "@blazediff/codec-pngjs": "3.0.0",
44
44
  "@blazediff/codec-sharp": "3.0.0",
45
+ "@blazediff/codec-jsquash-png": "0.0.1",
45
46
  "@blazediff/ssim": "1.7.1"
46
47
  },
47
48
  "devDependencies": {