pagean 6.0.8 → 6.0.9

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/package.json CHANGED
@@ -1,22 +1,25 @@
1
1
  {
2
2
  "name": "pagean",
3
- "version": "6.0.8",
3
+ "version": "6.0.9",
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",
7
7
  "pageanrc-lint": "./bin/pageanrc-lint.js"
8
8
  },
9
9
  "scripts": {
10
- "start": "node ./bin/pagean.js",
11
- "start-lint": "node ./bin/pageanrc-lint.js",
12
- "start-lint-all": "npm run start-lint && npm run start-lint -c static-server.pageanrc.json && npm run start-lint -c ./lib/default-config.json",
13
- "test": "jest --ci --config jest.config.json",
10
+ "hooks-pre-commit": "npm run lint && npm run prettier-check",
11
+ "hooks-pre-push": "npm audit --audit-level=high && npm test",
12
+ "lint": "npm run lint-css && npm run lint-html && npm run lint-js && npm run lint-md",
14
13
  "lint-css": "stylelint ./lib/report-template.handlebars",
15
14
  "lint-html": "htmlhint ./lib/report-template.handlebars",
16
15
  "lint-js": "eslint \"**/*.js\"",
17
16
  "lint-md": "markdownlint **/*.md --ignore node_modules",
18
- "lint": "npm run lint-css && npm run lint-html && npm run lint-js && npm run lint-md",
19
- "push": "npm run start-lint-all && npm audit --audit-level=critical"
17
+ "prettier-check": "prettier --check .",
18
+ "prettier-fix": "prettier --write .",
19
+ "start": "node ./bin/pagean.js",
20
+ "start-lint": "node ./bin/pageanrc-lint.js",
21
+ "start-lint-all": "npm run start-lint && npm run start-lint -c static-server.pageanrc.json && npm run start-lint -c ./lib/default-config.json",
22
+ "test": "jest --ci --config jest.config.json"
20
23
  },
21
24
  "repository": {
22
25
  "type": "git",
@@ -48,27 +51,28 @@
48
51
  },
49
52
  "homepage": "https://gitlab.com/gitlab-ci-utils/pagean",
50
53
  "devDependencies": {
51
- "@aarongoldenthal/eslint-config-standard": "^12.0.2",
52
- "@aarongoldenthal/stylelint-config-standard": "^7.0.0",
54
+ "@aarongoldenthal/eslint-config-standard": "^14.0.0",
55
+ "@aarongoldenthal/stylelint-config-standard": "^8.0.0",
53
56
  "bin-tester": "^2.0.1",
54
- "eslint": "^8.12.0",
55
- "jest": "^27.5.1",
56
- "jest-junit": "^13.0.0",
57
+ "eslint": "^8.14.0",
58
+ "jest": "^28.0.2",
59
+ "jest-junit": "^13.2.0",
57
60
  "markdownlint-cli": "^0.31.1",
61
+ "prettier": "^2.6.2",
58
62
  "strip-ansi": "^6.0.1",
59
- "stylelint": "^14.6.1"
63
+ "stylelint": "^14.8.0"
60
64
  },
61
65
  "dependencies": {
62
66
  "ajv": "^8.11.0",
63
67
  "ajv-errors": "^3.0.0",
64
- "axios": "^0.26.1",
65
- "ci-logger": "^4.0.1",
66
- "commander": "^9.1.0",
68
+ "axios": "^0.27.2",
69
+ "ci-logger": "^4.0.2",
70
+ "commander": "^9.2.0",
67
71
  "handlebars": "^4.7.7",
68
- "htmlhint": "^1.1.3",
72
+ "htmlhint": "^1.1.4",
69
73
  "kleur": "^4.1.4",
70
74
  "normalize-url": "^6.1.0",
71
75
  "protocolify": "^3.0.0",
72
- "puppeteer": "^13.5.1"
76
+ "puppeteer": "^13.6.0"
73
77
  }
74
78
  }
@@ -22,11 +22,7 @@
22
22
  "description": "Reporters to use when returning the results of the Pagean tests.",
23
23
  "type": "array",
24
24
  "items": {
25
- "enum": [
26
- "cli",
27
- "html",
28
- "json"
29
- ]
25
+ "enum": ["cli", "html", "json"]
30
26
  },
31
27
  "minItems": 1
32
28
  },
@@ -60,9 +56,7 @@
60
56
  "not": true,
61
57
  "errorMessage": "must NOT contain additional properties: ${0#}"
62
58
  },
63
- "required": [
64
- "url"
65
- ],
59
+ "required": ["url"],
66
60
  "errorMessage": {
67
61
  "required": "must have required property 'url'"
68
62
  }
@@ -77,9 +71,7 @@
77
71
  "not": true,
78
72
  "errorMessage": "must NOT contain additional properties: ${0#}"
79
73
  },
80
- "required": [
81
- "urls"
82
- ],
74
+ "required": ["urls"],
83
75
  "definitions": {
84
76
  "detailedSetting": {
85
77
  "description": "The complete set of test-specific settings for most tests.",