pagean 13.6.0 → 14.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/README.md +4 -4
- package/lib/utilities.js +2 -3
- package/package.json +8 -8
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
|
-
[
|
|
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`
|
|
383
|
-
[
|
|
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 =
|
|
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 =
|
|
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": "
|
|
3
|
+
"version": "14.0.0",
|
|
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": "^
|
|
42
|
+
"node": "^20.11.0 || ^22.11.0 || >=24.0.0"
|
|
43
43
|
},
|
|
44
44
|
"files": [
|
|
45
45
|
"index.js",
|
|
@@ -53,17 +53,17 @@
|
|
|
53
53
|
},
|
|
54
54
|
"homepage": "https://gitlab.com/gitlab-ci-utils/pagean",
|
|
55
55
|
"devDependencies": {
|
|
56
|
-
"@aarongoldenthal/eslint-config-standard": "^
|
|
56
|
+
"@aarongoldenthal/eslint-config-standard": "^36.0.0",
|
|
57
57
|
"@aarongoldenthal/stylelint-config-standard": "^20.0.0",
|
|
58
|
-
"@vitest/coverage-v8": "^3.1.
|
|
58
|
+
"@vitest/coverage-v8": "^3.1.3",
|
|
59
59
|
"bin-tester": "^6.0.0",
|
|
60
60
|
"eslint": "^9.26.0",
|
|
61
|
-
"globals": "^16.
|
|
62
|
-
"markdownlint-cli2": "^0.
|
|
61
|
+
"globals": "^16.1.0",
|
|
62
|
+
"markdownlint-cli2": "^0.18.0",
|
|
63
63
|
"prettier": "^3.5.3",
|
|
64
64
|
"strip-ansi": "^7.1.0",
|
|
65
65
|
"stylelint": "^16.19.1",
|
|
66
|
-
"vitest": "^3.1.
|
|
66
|
+
"vitest": "^3.1.3"
|
|
67
67
|
},
|
|
68
68
|
"dependencies": {
|
|
69
69
|
"ajv": "^8.17.1",
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
"kleur": "^4.1.5",
|
|
78
78
|
"normalize-url": "^8.0.1",
|
|
79
79
|
"protocolify": "^4.0.0",
|
|
80
|
-
"puppeteer": "^24.8.
|
|
80
|
+
"puppeteer": "^24.8.2",
|
|
81
81
|
"xml2js": "^0.6.2"
|
|
82
82
|
}
|
|
83
83
|
}
|