@siteimprove/alfa-dom 0.107.0 → 0.108.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/CHANGELOG.md +2 -0
- package/dist/node/attribute/autocomplete.js +3 -3
- package/package.json +29 -29
package/CHANGELOG.md
CHANGED
|
@@ -3,7 +3,7 @@ import { Parser } from "@siteimprove/alfa-parser";
|
|
|
3
3
|
import { Slice } from "@siteimprove/alfa-slice";
|
|
4
4
|
import { Array } from "@siteimprove/alfa-array";
|
|
5
5
|
import { Err, Ok } from "@siteimprove/alfa-result";
|
|
6
|
-
const { either, end, option, right
|
|
6
|
+
const { either, end, filter, option, right } = Parser;
|
|
7
7
|
/**
|
|
8
8
|
* @public
|
|
9
9
|
*/
|
|
@@ -99,11 +99,11 @@ export var Autocomplete;
|
|
|
99
99
|
.map((token) => Ok.of([input.rest(), token]))
|
|
100
100
|
.getOr(Err.of("No token left"));
|
|
101
101
|
function parserOf(tokens) {
|
|
102
|
-
return
|
|
102
|
+
return filter(parseFirst, (token) => tokens.includes(token), (token) => `Expected valid token, but got ${token}`);
|
|
103
103
|
}
|
|
104
104
|
const addressType = parserOf(AutofillDetailTokens.addressTypes);
|
|
105
105
|
const unmodifiable = parserOf(AutofillDetailTokens.unmodifiables);
|
|
106
|
-
const section =
|
|
106
|
+
const section = filter(parseFirst, (token) => token.startsWith("section-"), (token) => `Expected token beginning with \`section-\`, but got ${token}`);
|
|
107
107
|
const modifiable = parserOf(AutofillDetailTokens.modifiables);
|
|
108
108
|
const modifier = parserOf(AutofillDetailTokens.modifiers);
|
|
109
109
|
const webauthn = parserOf([AutofillDetailTokens.webauthn]);
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"$schema": "http://json.schemastore.org/package",
|
|
3
3
|
"name": "@siteimprove/alfa-dom",
|
|
4
4
|
"homepage": "https://alfa.siteimprove.com",
|
|
5
|
-
"version": "0.
|
|
5
|
+
"version": "0.108.0",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"description": "Implementations of the core DOM and CSSOM node types",
|
|
8
8
|
"repository": {
|
|
@@ -35,37 +35,37 @@
|
|
|
35
35
|
"dist/**/*.d.ts"
|
|
36
36
|
],
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@siteimprove/alfa-array": "^0.
|
|
39
|
-
"@siteimprove/alfa-cache": "^0.
|
|
40
|
-
"@siteimprove/alfa-comparable": "^0.
|
|
41
|
-
"@siteimprove/alfa-css": "^0.
|
|
42
|
-
"@siteimprove/alfa-css-feature": "^0.
|
|
43
|
-
"@siteimprove/alfa-device": "^0.
|
|
44
|
-
"@siteimprove/alfa-earl": "^0.
|
|
45
|
-
"@siteimprove/alfa-equatable": "^0.
|
|
46
|
-
"@siteimprove/alfa-flags": "^0.
|
|
47
|
-
"@siteimprove/alfa-iterable": "^0.
|
|
48
|
-
"@siteimprove/alfa-json": "^0.
|
|
49
|
-
"@siteimprove/alfa-lazy": "^0.
|
|
50
|
-
"@siteimprove/alfa-map": "^0.
|
|
51
|
-
"@siteimprove/alfa-option": "^0.
|
|
52
|
-
"@siteimprove/alfa-parser": "^0.
|
|
53
|
-
"@siteimprove/alfa-predicate": "^0.
|
|
54
|
-
"@siteimprove/alfa-rectangle": "^0.
|
|
55
|
-
"@siteimprove/alfa-refinement": "^0.
|
|
56
|
-
"@siteimprove/alfa-result": "^0.
|
|
57
|
-
"@siteimprove/alfa-sarif": "^0.
|
|
58
|
-
"@siteimprove/alfa-selective": "^0.
|
|
59
|
-
"@siteimprove/alfa-sequence": "^0.
|
|
60
|
-
"@siteimprove/alfa-slice": "^0.
|
|
61
|
-
"@siteimprove/alfa-string": "^0.
|
|
62
|
-
"@siteimprove/alfa-trampoline": "^0.
|
|
63
|
-
"@siteimprove/alfa-tree": "^0.
|
|
38
|
+
"@siteimprove/alfa-array": "^0.108.0",
|
|
39
|
+
"@siteimprove/alfa-cache": "^0.108.0",
|
|
40
|
+
"@siteimprove/alfa-comparable": "^0.108.0",
|
|
41
|
+
"@siteimprove/alfa-css": "^0.108.0",
|
|
42
|
+
"@siteimprove/alfa-css-feature": "^0.108.0",
|
|
43
|
+
"@siteimprove/alfa-device": "^0.108.0",
|
|
44
|
+
"@siteimprove/alfa-earl": "^0.108.0",
|
|
45
|
+
"@siteimprove/alfa-equatable": "^0.108.0",
|
|
46
|
+
"@siteimprove/alfa-flags": "^0.108.0",
|
|
47
|
+
"@siteimprove/alfa-iterable": "^0.108.0",
|
|
48
|
+
"@siteimprove/alfa-json": "^0.108.0",
|
|
49
|
+
"@siteimprove/alfa-lazy": "^0.108.0",
|
|
50
|
+
"@siteimprove/alfa-map": "^0.108.0",
|
|
51
|
+
"@siteimprove/alfa-option": "^0.108.0",
|
|
52
|
+
"@siteimprove/alfa-parser": "^0.108.0",
|
|
53
|
+
"@siteimprove/alfa-predicate": "^0.108.0",
|
|
54
|
+
"@siteimprove/alfa-rectangle": "^0.108.0",
|
|
55
|
+
"@siteimprove/alfa-refinement": "^0.108.0",
|
|
56
|
+
"@siteimprove/alfa-result": "^0.108.0",
|
|
57
|
+
"@siteimprove/alfa-sarif": "^0.108.0",
|
|
58
|
+
"@siteimprove/alfa-selective": "^0.108.0",
|
|
59
|
+
"@siteimprove/alfa-sequence": "^0.108.0",
|
|
60
|
+
"@siteimprove/alfa-slice": "^0.108.0",
|
|
61
|
+
"@siteimprove/alfa-string": "^0.108.0",
|
|
62
|
+
"@siteimprove/alfa-trampoline": "^0.108.0",
|
|
63
|
+
"@siteimprove/alfa-tree": "^0.108.0"
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|
|
66
|
-
"@siteimprove/alfa-test": "^0.
|
|
66
|
+
"@siteimprove/alfa-test": "^0.108.0",
|
|
67
67
|
"@types/jsdom": "^27.0.0",
|
|
68
|
-
"jsdom": "^27.0
|
|
68
|
+
"jsdom": "^27.2.0"
|
|
69
69
|
},
|
|
70
70
|
"publishConfig": {
|
|
71
71
|
"access": "public",
|