pagean 12.1.1 → 12.1.3

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/lib/config.js CHANGED
@@ -80,7 +80,7 @@ const addSitemapUrls = (config, sitemapUrls) => {
80
80
  for (const url of config.urls) {
81
81
  const { rawUrl } = getUrl(url);
82
82
  const index = sitemapUrls.indexOf(rawUrl);
83
- index > -1 && sitemapUrls.splice(index, 1);
83
+ index !== -1 && sitemapUrls.splice(index, 1);
84
84
  }
85
85
  config.urls.push(...sitemapUrls);
86
86
  } else {
package/lib/tests.js CHANGED
@@ -156,7 +156,7 @@ const pageLoadTimeTest = async (context) => {
156
156
  const performanceTiming = JSON.parse(
157
157
  await context.page.evaluate(() =>
158
158
  /* v8 ignore next: executed in browser */
159
- JSON.stringify(window.performance)
159
+ JSON.stringify(globalThis.performance)
160
160
  )
161
161
  );
162
162
  const loadTimeSec =
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pagean",
3
- "version": "12.1.1",
3
+ "version": "12.1.3",
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",
@@ -53,17 +53,17 @@
53
53
  },
54
54
  "homepage": "https://gitlab.com/gitlab-ci-utils/pagean",
55
55
  "devDependencies": {
56
- "@aarongoldenthal/eslint-config-standard": "^31.1.0",
56
+ "@aarongoldenthal/eslint-config-standard": "^32.0.0",
57
57
  "@aarongoldenthal/stylelint-config-standard": "^18.0.1",
58
- "@vitest/coverage-v8": "^2.1.1",
58
+ "@vitest/coverage-v8": "^2.1.2",
59
59
  "bin-tester": "^6.0.0",
60
- "eslint": "^9.11.1",
61
- "globals": "^15.9.0",
60
+ "eslint": "^9.12.0",
61
+ "globals": "^15.11.0",
62
62
  "markdownlint-cli2": "^0.14.0",
63
63
  "prettier": "^3.3.3",
64
64
  "strip-ansi": "^7.1.0",
65
65
  "stylelint": "^16.9.0",
66
- "vitest": "^2.1.1"
66
+ "vitest": "^2.1.2"
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": "^23.4.1",
80
+ "puppeteer": "^23.5.2",
81
81
  "xml2js": "^0.6.2"
82
82
  }
83
83
  }