@detiq/crawler 1.0.3 → 1.0.5

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/types/phash.d.ts CHANGED
@@ -12,6 +12,18 @@ export declare function applyMask(imagePath: string, ignoredRegions: Array<{
12
12
  width: number;
13
13
  height: number;
14
14
  }>): Promise<Buffer>;
15
+ /**
16
+ * Generates a pixelmatch diff image highlighting changed pixels in red.
17
+ * Applies the same ignoredRegions mask as screenshotDiffPercent so masked
18
+ * zones don't show as "changed" in the visual output.
19
+ * Returns a PNG Buffer suitable for upload to S3.
20
+ */
21
+ export declare function generatePixelmatchDiff(pathA: string, pathB: string, ignoredRegions?: Array<{
22
+ x: number;
23
+ y: number;
24
+ width: number;
25
+ height: number;
26
+ }>): Promise<Buffer>;
15
27
  export declare function screenshotDiffPercent(pathA: string, pathB: string, ignoredRegions?: Array<{
16
28
  x: number;
17
29
  y: number;