@d-zero/archaeologist 3.2.6 → 3.3.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/cli.js CHANGED
@@ -22,6 +22,8 @@ const { options, hasConfigFile } = createCLI({
22
22
  '\t-i, --ignore <ignore> CSS selector for elements to ignore',
23
23
  '\t--freeze <file> Freeze mode: capture reference screenshots',
24
24
  '\t--limit <number> Limit concurrent processes',
25
+ '\t--interval <ms> Interval between parallel executions (default: none)',
26
+ '\t Format: number or "min-max" for random range',
25
27
  '\t--debug Enable debug mode',
26
28
  '\t--verbose Enable verbose logging',
27
29
  '',
@@ -59,6 +61,7 @@ if (hasConfigFile) {
59
61
  limit: options.limit,
60
62
  debug: options.debug,
61
63
  verbose: options.verbose,
64
+ interval: options.interval,
62
65
  });
63
66
  process.exit(0);
64
67
  }
@@ -69,6 +72,7 @@ if (options.freeze) {
69
72
  hooks,
70
73
  limit: options.limit,
71
74
  debug: options.debug,
75
+ interval: options.interval,
72
76
  });
73
77
  process.exit(0);
74
78
  }
@@ -1,7 +1,8 @@
1
1
  import type { FreezeOptions } from './types.js';
2
+ import type { DealOptions } from '@d-zero/dealer';
2
3
  /**
3
4
  *
4
5
  * @param list
5
6
  * @param options
6
7
  */
7
- export declare function freeze(list: readonly string[], options?: FreezeOptions): Promise<string>;
8
+ export declare function freeze(list: readonly string[], options?: FreezeOptions & DealOptions): Promise<string>;
@@ -25,6 +25,8 @@ export async function freeze(list, options) {
25
25
  ...options,
26
26
  headless: useOldMode ? 'shell' : true,
27
27
  });
28
+ }, {
29
+ ...options,
28
30
  });
29
31
  const urlListPath = path.resolve(dir, '_URL_LIST.json');
30
32
  await writeFile(urlListPath, JSON.stringify(list, null, '\t'), 'utf8');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@d-zero/archaeologist",
3
- "version": "3.2.6",
3
+ "version": "3.3.0",
4
4
  "description": "Uncover visual and HTML differences in web pages with precision",
5
5
  "author": "D-ZERO",
6
6
  "license": "MIT",
@@ -24,14 +24,14 @@
24
24
  "clean": "tsc --build --clean"
25
25
  },
26
26
  "dependencies": {
27
- "@d-zero/cli-core": "1.1.3",
27
+ "@d-zero/cli-core": "1.2.0",
28
28
  "@d-zero/fs": "0.2.2",
29
29
  "@d-zero/html-distiller": "2.0.1",
30
- "@d-zero/puppeteer-dealer": "0.5.9",
31
- "@d-zero/puppeteer-page-scan": "4.2.5",
32
- "@d-zero/puppeteer-screenshot": "3.2.5",
30
+ "@d-zero/puppeteer-dealer": "0.5.10",
31
+ "@d-zero/puppeteer-page-scan": "4.2.6",
32
+ "@d-zero/puppeteer-screenshot": "3.2.6",
33
33
  "@d-zero/readtext": "1.1.12",
34
- "@d-zero/shared": "0.12.0",
34
+ "@d-zero/shared": "0.13.0",
35
35
  "ansi-colors": "4.1.3",
36
36
  "diff": "8.0.2",
37
37
  "front-matter": "4.0.2",
@@ -41,7 +41,7 @@
41
41
  "parse-diff": "0.11.1",
42
42
  "pixelmatch": "7.1.0",
43
43
  "pngjs": "7.0.0",
44
- "puppeteer": "24.26.1",
44
+ "puppeteer": "24.27.0",
45
45
  "strip-ansi": "7.1.2"
46
46
  },
47
47
  "devDependencies": {
@@ -49,5 +49,5 @@
49
49
  "@types/pixelmatch": "5.2.6",
50
50
  "@types/pngjs": "6.0.5"
51
51
  },
52
- "gitHead": "fe6d98ee0108b0e53848f28a74e4e08875e31a78"
52
+ "gitHead": "85abd39686d2ce02c7b8db071437464d212dd982"
53
53
  }