pagean 8.0.0 → 8.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.
@@ -25,7 +25,7 @@ const logError = (message, exitOnError = true) => {
25
25
  const outputJsonResults = (configFileName, lintResults) => {
26
26
  // Log JSON to stdout for consistency, and eliminates extraneous stderr
27
27
  // output in PowerShell which produces invalid JSON if piped to file.
28
- // eslint-disable-next-line no-magic-numbers
28
+ // eslint-disable-next-line no-magic-numbers -- index
29
29
  log({ message: JSON.stringify(lintResults.errors, undefined, 2) });
30
30
  if (!lintResults.isValid) {
31
31
  logError(`Errors found in file ${configFileName}`);
package/index.js CHANGED
@@ -60,7 +60,7 @@ const executeAllTests = async (config) => {
60
60
 
61
61
  if (testResults.summary.failed > 0) {
62
62
  // For test harness want process to exit with error code
63
- // eslint-disable-next-line unicorn/no-process-exit, no-process-exit, no-magic-numbers
63
+ // eslint-disable-next-line unicorn/no-process-exit, no-process-exit, no-magic-numbers -- exit code
64
64
  process.exit(2);
65
65
  }
66
66
  };
package/lib/link-utils.js CHANGED
@@ -141,7 +141,11 @@ const checkExternalPageLink = async (page, link, useGet = false) => {
141
141
  try {
142
142
  const options = {
143
143
  headers: { 'User-Agent': userAgent },
144
- timeout: timeoutSeconds * msPerSec
144
+ timeout: timeoutSeconds * msPerSec,
145
+ // Axios can generate an error trying to decompress an empty compressed
146
+ // HEAD response, see https://github.com/axios/axios/issues/5102.
147
+ // The response body is also not used, so more efficient to skip.
148
+ decompress: false
145
149
  };
146
150
  // Using internal browser property since not exposed
147
151
  // eslint-disable-next-line no-underscore-dangle
package/lib/reporter.js CHANGED
@@ -14,7 +14,7 @@ const htmlReportFileName = './pagean-results.html';
14
14
  const jsonReportFileName = './pagean-results.json';
15
15
 
16
16
  handlebars.registerHelper('json', (context) => {
17
- // eslint-disable-next-line no-magic-numbers
17
+ // eslint-disable-next-line no-magic-numbers -- count
18
18
  return JSON.stringify(context, undefined, 2);
19
19
  });
20
20
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pagean",
3
- "version": "8.0.0",
3
+ "version": "8.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",
@@ -60,7 +60,7 @@
60
60
  "markdownlint-cli": "^0.32.2",
61
61
  "prettier": "^2.7.1",
62
62
  "strip-ansi": "^6.0.1",
63
- "stylelint": "^14.14.0"
63
+ "stylelint": "^14.14.1"
64
64
  },
65
65
  "dependencies": {
66
66
  "ajv": "^8.11.0",
@@ -73,6 +73,6 @@
73
73
  "kleur": "^4.1.5",
74
74
  "normalize-url": "^6.1.0",
75
75
  "protocolify": "^3.0.0",
76
- "puppeteer": "^19.2.0"
76
+ "puppeteer": "^19.2.2"
77
77
  }
78
78
  }