@d-zero/a11y-check-axe-scenario 0.3.1 → 0.4.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/dist/axe.js CHANGED
@@ -7,6 +7,7 @@ export default createScenario((options) => {
7
7
  const cache = new Cache(scenarioId, options?.cacheDir);
8
8
  return {
9
9
  modulePath: import.meta.url,
10
+ moduleParams: JSON.stringify(options ?? {}),
10
11
  id: scenarioId,
11
12
  async exec(page, sizeName, log) {
12
13
  if (options?.cache === false) {
@@ -1,7 +1,7 @@
1
1
  import { convertResultsFromNode } from './convert-results-from-node.js';
2
2
  import { detectLevel } from './detect-level.js';
3
3
  import { inferExplanation } from './infer-explanation.js';
4
- import { p } from './pargraph.js';
4
+ import { p } from './paragraph.js';
5
5
  import { tagsToSCs } from './tags-to-scs.js';
6
6
  /**
7
7
  *
@@ -1,5 +1,5 @@
1
1
  import { colorContrastCheck, ColorContrastError } from '@d-zero/a11y-check-core';
2
- import { br, p } from './pargraph.js';
2
+ import { br, p } from './paragraph.js';
3
3
  /**
4
4
  *
5
5
  * @param id
@@ -132,7 +132,7 @@ export function inferExplanation(id, node, style) {
132
132
  }
133
133
  case ColorContrastError.DOES_NOT_DETERMINE_BACKGROUND: {
134
134
  needCheck = 'WARNING';
135
- message = '背景色が判定できないかったので#FFFFFFとして判定しています。';
135
+ message = '背景色が判定できなかったので#FFFFFFとして判定しています。';
136
136
  contrastResult = style
137
137
  ? colorContrastCheck({
138
138
  ...style,
@@ -0,0 +1,10 @@
1
+ /**
2
+ *
3
+ * @param {...any} texts
4
+ */
5
+ export declare function p(...texts: (string | null | undefined)[]): string;
6
+ /**
7
+ *
8
+ * @param {...any} texts
9
+ */
10
+ export declare function br(...texts: (string | null | undefined)[]): string;
@@ -0,0 +1,14 @@
1
+ /**
2
+ *
3
+ * @param {...any} texts
4
+ */
5
+ export function p(...texts) {
6
+ return texts.filter(Boolean).join('\n\n');
7
+ }
8
+ /**
9
+ *
10
+ * @param {...any} texts
11
+ */
12
+ export function br(...texts) {
13
+ return texts.filter(Boolean).join('\n');
14
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@d-zero/a11y-check-axe-scenario",
3
- "version": "0.3.1",
3
+ "version": "0.4.0",
4
4
  "description": "Accessibility Checker Axe Scenario",
5
5
  "author": "D-ZERO",
6
6
  "license": "MIT",
@@ -24,18 +24,18 @@
24
24
  "clean": "tsc --build --clean"
25
25
  },
26
26
  "dependencies": {
27
- "@axe-core/puppeteer": "4.10.1",
28
- "@d-zero/a11y-check-core": "0.4.0",
27
+ "@axe-core/puppeteer": "4.10.2",
28
+ "@d-zero/a11y-check-core": "0.5.0",
29
29
  "@d-zero/db-wcag": "1.0.0-alpha.1",
30
- "@d-zero/shared": "0.8.0"
30
+ "@d-zero/shared": "0.9.0"
31
31
  },
32
32
  "devDependencies": {
33
33
  "axe-core": "4.10.3",
34
- "puppeteer": "24.9.0"
34
+ "puppeteer": "24.10.1"
35
35
  },
36
36
  "peerDependencies": {
37
37
  "axe-core": "4.10.3",
38
- "puppeteer": "24.8.2"
38
+ "puppeteer": "24.10.1"
39
39
  },
40
- "gitHead": "4e9cc7b87e0fef91b6f2d4edfb66ca9134b2491b"
40
+ "gitHead": "04c6969564182c36ee38ef41e78130936dfa4863"
41
41
  }