pagean 16.2.0 → 16.2.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.
@@ -165,6 +165,7 @@ const checkExternalPageLink = async (page, link, shouldUseGet = false) => {
165
165
  // that should skip a retry (e.g. 429), and the request was head then retry
166
166
  // with get.
167
167
  if (!response.ok) {
168
+ // eslint-disable-next-line unicorn/prefer-simple-condition-first -- more efficient
168
169
  if (!noRetryResponses.has(response.status) && !shouldUseGet) {
169
170
  return checkExternalPageLink(page, link, true);
170
171
  }
package/lib/logger.js CHANGED
@@ -28,7 +28,7 @@ const nullFunction = () => {};
28
28
  * @static
29
29
  */
30
30
  // eslint-disable-next-line max-lines-per-function -- factory function with state
31
- export default function factory(config) {
31
+ const factory = (config) => {
32
32
  const cliReporter = {
33
33
  // If cli reporter is enabled, set console log function, otherwise null function
34
34
  log: config.reporters.includes(reporterTypes.cli)
@@ -134,4 +134,6 @@ export default function factory(config) {
134
134
  logTestResults,
135
135
  startUrlTests
136
136
  };
137
- }
137
+ };
138
+
139
+ export default factory;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pagean",
3
- "version": "16.2.0",
3
+ "version": "16.2.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",
@@ -9,7 +9,7 @@
9
9
  "type": "module",
10
10
  "scripts": {
11
11
  "hooks:pre-commit": "npm run lint && npm run prettier:check",
12
- "hooks:pre-push": "npm audit --audit-level=high && npm test",
12
+ "hooks:pre-push": "npm audit --audit-level=critical && npm test",
13
13
  "lint": "npm run lint:css && npm run lint:html && npm run lint:js && npm run lint:md",
14
14
  "lint:css": "stylelint ./lib/report-template.handlebars",
15
15
  "lint:html": "htmlhint ./lib/report-template.handlebars",
@@ -56,23 +56,23 @@
56
56
  },
57
57
  "homepage": "https://gitlab.com/gitlab-ci-utils/pagean",
58
58
  "devDependencies": {
59
- "@aarongoldenthal/eslint-config-standard": "47.0.0",
59
+ "@aarongoldenthal/eslint-config-standard": "48.0.0",
60
60
  "@aarongoldenthal/stylelint-config-standard": "24.0.0",
61
- "@vitest/coverage-v8": "4.1.9",
61
+ "@vitest/coverage-v8": "4.1.10",
62
62
  "bin-tester": "8.0.0",
63
- "c8": "11.0.0",
64
- "eslint": "10.6.0",
65
- "globals": "17.7.0",
66
- "markdownlint-cli2": "0.23.0",
63
+ "c8": "12.0.0",
64
+ "eslint": "10.8.0",
65
+ "globals": "17.8.0",
66
+ "markdownlint-cli2": "0.23.1",
67
67
  "nyc": "18.0.0",
68
- "prettier": "3.9.4",
69
- "stylelint": "17.14.0",
70
- "vitest": "4.1.9"
68
+ "prettier": "3.9.6",
69
+ "stylelint": "17.14.1",
70
+ "vitest": "4.1.10"
71
71
  },
72
72
  "dependencies": {
73
73
  "ajv": "8.20.0",
74
74
  "ajv-errors": "3.0.0",
75
- "ci-logger": "9.0.0",
75
+ "ci-logger": "9.0.1",
76
76
  "commander": "15.0.0",
77
77
  "cssesc": "3.0.0",
78
78
  "handlebars": "4.7.9",
@@ -80,7 +80,7 @@
80
80
  "normalize-url": "9.0.1",
81
81
  "protocolify": "4.0.0",
82
82
  "puppeteer": "25.3.0",
83
- "undici": "8.5.0",
83
+ "undici": "8.9.0",
84
84
  "xml2js": "0.6.2"
85
85
  }
86
86
  }