@d-zero/a11y-check 0.10.16 → 0.11.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/spreadsheet.d.ts +13 -0
- package/dist/spreadsheet.js +17 -0
- package/package.json +14 -11
package/dist/spreadsheet.d.ts
CHANGED
|
@@ -2,6 +2,19 @@ import type { Violation } from '@d-zero/a11y-check-core';
|
|
|
2
2
|
export declare class SpreadsheetReporter {
|
|
3
3
|
#private;
|
|
4
4
|
private constructor();
|
|
5
|
+
/**
|
|
6
|
+
* `await using` 宣言のスコープ脱出時に呼ばれ、内部の {@link SheetTable} を
|
|
7
|
+
* フラッシュする。バッファに未送信行が残ったままスコープを抜けてデータが
|
|
8
|
+
* 欠損するのを防ぐ。
|
|
9
|
+
* @example
|
|
10
|
+
* ```ts
|
|
11
|
+
* {
|
|
12
|
+
* await using reporter = await SpreadsheetReporter.setup(sheetUrl, sheetName);
|
|
13
|
+
* await reporter.report(violations);
|
|
14
|
+
* } // スコープ脱出時に自動で内部 SheetTable の未送信バッファが flush される
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
[Symbol.asyncDispose](): Promise<void>;
|
|
5
18
|
report(results: readonly Violation[]): Promise<void>;
|
|
6
19
|
static setup(sheetUrl: string, sheetName: string, credentialFilePath?: string): Promise<SpreadsheetReporter>;
|
|
7
20
|
}
|
package/dist/spreadsheet.js
CHANGED
|
@@ -6,6 +6,23 @@ export class SpreadsheetReporter {
|
|
|
6
6
|
#table = null;
|
|
7
7
|
// eslint-disable-next-line no-restricted-syntax
|
|
8
8
|
constructor() { }
|
|
9
|
+
/**
|
|
10
|
+
* `await using` 宣言のスコープ脱出時に呼ばれ、内部の {@link SheetTable} を
|
|
11
|
+
* フラッシュする。バッファに未送信行が残ったままスコープを抜けてデータが
|
|
12
|
+
* 欠損するのを防ぐ。
|
|
13
|
+
* @example
|
|
14
|
+
* ```ts
|
|
15
|
+
* {
|
|
16
|
+
* await using reporter = await SpreadsheetReporter.setup(sheetUrl, sheetName);
|
|
17
|
+
* await reporter.report(violations);
|
|
18
|
+
* } // スコープ脱出時に自動で内部 SheetTable の未送信バッファが flush される
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
async [Symbol.asyncDispose]() {
|
|
22
|
+
if (this.#table) {
|
|
23
|
+
await this.#table[Symbol.asyncDispose]();
|
|
24
|
+
}
|
|
25
|
+
}
|
|
9
26
|
async report(results) {
|
|
10
27
|
if (!this.#table) {
|
|
11
28
|
throw new Error('Table is not created');
|
package/package.json
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@d-zero/a11y-check",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.0",
|
|
4
4
|
"description": "Accessibility Checker CLI",
|
|
5
5
|
"author": "D-ZERO",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"publishConfig": {
|
|
8
8
|
"access": "public"
|
|
9
9
|
},
|
|
10
|
+
"engines": {
|
|
11
|
+
"node": ">=24.11.0"
|
|
12
|
+
},
|
|
10
13
|
"type": "module",
|
|
11
14
|
"exports": {
|
|
12
15
|
".": {
|
|
@@ -24,15 +27,15 @@
|
|
|
24
27
|
"clean": "tsc --build --clean"
|
|
25
28
|
},
|
|
26
29
|
"dependencies": {
|
|
27
|
-
"@d-zero/a11y-check-axe-scenario": "0.5.
|
|
28
|
-
"@d-zero/a11y-check-core": "0.7.
|
|
29
|
-
"@d-zero/a11y-check-scenarios": "0.4.
|
|
30
|
-
"@d-zero/cli-core": "1.
|
|
31
|
-
"@d-zero/google-auth": "0.7.
|
|
32
|
-
"@d-zero/google-sheets": "0.
|
|
33
|
-
"@d-zero/puppeteer-page-scan": "4.6.
|
|
34
|
-
"@d-zero/readtext": "1.2.
|
|
35
|
-
"@d-zero/shared": "0.
|
|
30
|
+
"@d-zero/a11y-check-axe-scenario": "0.5.38",
|
|
31
|
+
"@d-zero/a11y-check-core": "0.7.15",
|
|
32
|
+
"@d-zero/a11y-check-scenarios": "0.4.51",
|
|
33
|
+
"@d-zero/cli-core": "1.4.0",
|
|
34
|
+
"@d-zero/google-auth": "0.7.6",
|
|
35
|
+
"@d-zero/google-sheets": "0.10.0",
|
|
36
|
+
"@d-zero/puppeteer-page-scan": "4.6.9",
|
|
37
|
+
"@d-zero/readtext": "1.2.1",
|
|
38
|
+
"@d-zero/shared": "0.23.0",
|
|
36
39
|
"ansi-colors": "4.1.3",
|
|
37
40
|
"dayjs": "1.11.21",
|
|
38
41
|
"dotenv": "17.4.2",
|
|
@@ -44,5 +47,5 @@
|
|
|
44
47
|
"url": "https://github.com/d-zero-dev/tools.git",
|
|
45
48
|
"directory": "packages/@d-zero/a11y-check"
|
|
46
49
|
},
|
|
47
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "d48a3ed9c01d32f0ca1a5b00e4abc36c376ce880"
|
|
48
51
|
}
|