@d-zero/a11y-check 0.9.9 → 0.10.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/README.md +2 -0
- package/dist/read-config.d.ts +2 -1
- package/dist/read-config.js +4 -3
- package/package.json +9 -9
package/README.md
CHANGED
|
@@ -117,6 +117,8 @@ export default async function (page, { name, width, resolution, log }) {
|
|
|
117
117
|
}
|
|
118
118
|
```
|
|
119
119
|
|
|
120
|
+
> **挙動変更のお知らせ:** これまでのバージョンでは、内部のプロセス間通信の制約により設定ファイルの `hooks` が無視されていました。本リリース(次回 minor)から正しく実行されます。詳細は [MIGRATION-page-hooks.md](../../../MIGRATION-page-hooks.md) を参照してください。
|
|
121
|
+
|
|
120
122
|
## Googleスプレッドシート出力
|
|
121
123
|
|
|
122
124
|
`-o`オプションでGoogleスプレッドシートのURLを指定すると、詳細なレポートが出力されます。
|
package/dist/read-config.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { PageHookSource } from '@d-zero/puppeteer-page-scan';
|
|
1
2
|
/**
|
|
2
3
|
*
|
|
3
4
|
* @param filePath
|
|
@@ -7,5 +8,5 @@ export declare function readConfig(filePath: string): Promise<{
|
|
|
7
8
|
id: string | null;
|
|
8
9
|
url: string;
|
|
9
10
|
}[];
|
|
10
|
-
hooks:
|
|
11
|
+
hooks: PageHookSource;
|
|
11
12
|
}>;
|
package/dist/read-config.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { readPageHooks } from '@d-zero/puppeteer-page-scan';
|
|
2
1
|
import { toKvList } from '@d-zero/readtext/list';
|
|
3
2
|
import { readConfigFile } from '@d-zero/shared/config-reader';
|
|
4
3
|
/**
|
|
@@ -11,9 +10,11 @@ export async function readConfig(filePath) {
|
|
|
11
10
|
id: kv.value ? kv.key : null,
|
|
12
11
|
url: kv.value || kv.key,
|
|
13
12
|
}));
|
|
14
|
-
const hooks = await readPageHooks(content.attributes?.hooks ?? [], baseDir);
|
|
15
13
|
return {
|
|
16
14
|
urlList,
|
|
17
|
-
hooks
|
|
15
|
+
hooks: {
|
|
16
|
+
paths: content.attributes?.hooks ?? [],
|
|
17
|
+
baseDir,
|
|
18
|
+
},
|
|
18
19
|
};
|
|
19
20
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@d-zero/a11y-check",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.0",
|
|
4
4
|
"description": "Accessibility Checker CLI",
|
|
5
5
|
"author": "D-ZERO",
|
|
6
6
|
"license": "MIT",
|
|
@@ -24,15 +24,15 @@
|
|
|
24
24
|
"clean": "tsc --build --clean"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@d-zero/a11y-check-axe-scenario": "0.5.
|
|
28
|
-
"@d-zero/a11y-check-core": "0.
|
|
29
|
-
"@d-zero/a11y-check-scenarios": "0.4.
|
|
30
|
-
"@d-zero/cli-core": "1.3.
|
|
27
|
+
"@d-zero/a11y-check-axe-scenario": "0.5.22",
|
|
28
|
+
"@d-zero/a11y-check-core": "0.7.0",
|
|
29
|
+
"@d-zero/a11y-check-scenarios": "0.4.36",
|
|
30
|
+
"@d-zero/cli-core": "1.3.9",
|
|
31
31
|
"@d-zero/google-auth": "0.7.1",
|
|
32
|
-
"@d-zero/google-sheets": "0.
|
|
33
|
-
"@d-zero/puppeteer-page-scan": "4.
|
|
32
|
+
"@d-zero/google-sheets": "0.9.0",
|
|
33
|
+
"@d-zero/puppeteer-page-scan": "4.5.0",
|
|
34
34
|
"@d-zero/readtext": "1.1.21",
|
|
35
|
-
"@d-zero/shared": "0.
|
|
35
|
+
"@d-zero/shared": "0.22.0",
|
|
36
36
|
"ansi-colors": "4.1.3",
|
|
37
37
|
"dayjs": "1.11.19",
|
|
38
38
|
"dotenv": "17.3.1",
|
|
@@ -44,5 +44,5 @@
|
|
|
44
44
|
"url": "https://github.com/d-zero-dev/tools.git",
|
|
45
45
|
"directory": "packages/@d-zero/a11y-check"
|
|
46
46
|
},
|
|
47
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "2d24e08c0cb516b7ea9d07a4301eb991193cca11"
|
|
48
48
|
}
|