pagean 13.6.0 → 14.0.1

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/README.md CHANGED
@@ -372,15 +372,15 @@ values.
372
372
  }
373
373
  ```
374
374
 
375
- Numerous example config files used in the tests can be found
376
- [here](tests/fixtures/configs/).
375
+ Numerous example config files used in the tests can be found in the
376
+ [test fixtures](tests/fixtures/configs/).
377
377
 
378
378
  ## Container images
379
379
 
380
380
  Provided with the Pagean project are container images configured to run the
381
381
  tests. All available image tags can be found in the
382
- `registry.gitlab.com/gitlab-ci-utils/pagean` repository
383
- [here](https://gitlab.com/gitlab-ci-utils/pagean/container_registry).
382
+ `registry.gitlab.com/gitlab-ci-utils/pagean`
383
+ [repository](https://gitlab.com/gitlab-ci-utils/pagean/container_registry).
384
384
  Details on each release can be found on the
385
385
  [Releases](https://gitlab.com/gitlab-ci-utils/pagean/releases) page.
386
386
 
package/lib/utilities.js CHANGED
@@ -4,7 +4,6 @@
4
4
  * @module utilities
5
5
  */
6
6
 
7
- import { fileURLToPath } from 'node:url';
8
7
  import path from 'node:path';
9
8
  import { readFile } from 'node:fs/promises';
10
9
 
@@ -14,7 +13,7 @@ import { readFile } from 'node:fs/promises';
14
13
  * @type {string}
15
14
  */
16
15
  // eslint-disable-next-line no-underscore-dangle -- match CJS name
17
- const __filename = fileURLToPath(import.meta.url);
16
+ const __filename = import.meta.filename;
18
17
 
19
18
  /**
20
19
  * The directory containing the current module, using the CJS global name.
@@ -22,7 +21,7 @@ const __filename = fileURLToPath(import.meta.url);
22
21
  * @type {string}
23
22
  */
24
23
  // eslint-disable-next-line no-underscore-dangle -- match CJS name
25
- const __dirname = path.dirname(__filename);
24
+ const __dirname = import.meta.dirname;
26
25
 
27
26
  /**
28
27
  * Reads a JSON file and returns the parsed data.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pagean",
3
- "version": "13.6.0",
3
+ "version": "14.0.1",
4
4
  "description": "Pagean is a web page analysis tool designed to automate tests requiring web pages to be loaded in a browser window (e.g. horizontal scrollbar, console errors)",
5
5
  "bin": {
6
6
  "pagean": "./bin/pagean.js",
@@ -39,7 +39,7 @@
39
39
  "author": "Aaron Goldenthal <npm@aarongoldenthal.com>",
40
40
  "license": "MIT",
41
41
  "engines": {
42
- "node": "^18.12.0 || ^20.9.0 || >=22.0.0"
42
+ "node": "^20.11.0 || ^22.11.0 || >=24.0.0"
43
43
  },
44
44
  "files": [
45
45
  "index.js",
@@ -53,31 +53,31 @@
53
53
  },
54
54
  "homepage": "https://gitlab.com/gitlab-ci-utils/pagean",
55
55
  "devDependencies": {
56
- "@aarongoldenthal/eslint-config-standard": "^35.0.1",
56
+ "@aarongoldenthal/eslint-config-standard": "^36.0.0",
57
57
  "@aarongoldenthal/stylelint-config-standard": "^20.0.0",
58
- "@vitest/coverage-v8": "^3.1.2",
58
+ "@vitest/coverage-v8": "^3.1.3",
59
59
  "bin-tester": "^6.0.0",
60
- "eslint": "^9.26.0",
61
- "globals": "^16.0.0",
62
- "markdownlint-cli2": "^0.17.2",
60
+ "eslint": "^9.27.0",
61
+ "globals": "^16.1.0",
62
+ "markdownlint-cli2": "^0.18.1",
63
63
  "prettier": "^3.5.3",
64
64
  "strip-ansi": "^7.1.0",
65
65
  "stylelint": "^16.19.1",
66
- "vitest": "^3.1.2"
66
+ "vitest": "^3.1.3"
67
67
  },
68
68
  "dependencies": {
69
69
  "ajv": "^8.17.1",
70
70
  "ajv-errors": "^3.0.0",
71
71
  "axios": "^1.9.0",
72
72
  "ci-logger": "^7.0.0",
73
- "commander": "^13.1.0",
73
+ "commander": "^14.0.0",
74
74
  "cssesc": "^3.0.0",
75
75
  "handlebars": "^4.7.8",
76
76
  "htmlhint": "^1.1.4",
77
77
  "kleur": "^4.1.5",
78
78
  "normalize-url": "^8.0.1",
79
79
  "protocolify": "^4.0.0",
80
- "puppeteer": "^24.8.0",
80
+ "puppeteer": "^24.8.2",
81
81
  "xml2js": "^0.6.2"
82
82
  }
83
83
  }