reffy 11.0.0 → 11.0.2
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,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "reffy",
|
|
3
|
-
"version": "11.0.
|
|
3
|
+
"version": "11.0.2",
|
|
4
4
|
"description": "W3C/WHATWG spec dependencies exploration companion. Features a short set of tools to study spec references as well as WebIDL term definitions and references found in W3C specifications.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
package/schemas/common.json
CHANGED
|
@@ -43,11 +43,11 @@
|
|
|
43
43
|
"type": "array",
|
|
44
44
|
"items": {
|
|
45
45
|
"type": "object",
|
|
46
|
-
"required": ["name", "type"
|
|
46
|
+
"required": ["name", "type"],
|
|
47
47
|
"additionalProperties": false,
|
|
48
48
|
"properties": {
|
|
49
49
|
"name": { "$ref": "#/$defs/cssValue" },
|
|
50
|
-
"type": { "type": "string", "enum": ["type", "function", "value"] },
|
|
50
|
+
"type": { "type": "string", "enum": ["type", "function", "value", "selector"] },
|
|
51
51
|
"prose": { "type": "string" },
|
|
52
52
|
"value": { "$ref": "#/$defs/cssValue" },
|
|
53
53
|
"legacyValue": { "$ref": "#/$defs/cssValue" },
|
|
@@ -4,11 +4,13 @@
|
|
|
4
4
|
|
|
5
5
|
"type": "object",
|
|
6
6
|
"additionalProperties": false,
|
|
7
|
-
"required": ["spec", "properties", "atrules", "
|
|
7
|
+
"required": ["spec", "properties", "atrules", "selectors", "values"],
|
|
8
8
|
"properties": {
|
|
9
9
|
"spec": { "$ref": "../../common.json#/$defs/specInExtract" },
|
|
10
10
|
"properties": { "$ref": "../../browserlib/extract-cssdfn.json#/properties/properties" },
|
|
11
11
|
"atrules": { "$ref": "../../browserlib/extract-cssdfn.json#/properties/atrules" },
|
|
12
|
-
"
|
|
12
|
+
"selectors": { "$ref": "../../browserlib/extract-cssdfn.json#/properties/selectors" },
|
|
13
|
+
"values": { "$ref": "../../browserlib/extract-cssdfn.json#/properties/values" },
|
|
14
|
+
"warnings": { "$ref": "../../browserlib/extract-cssdfn.json#/properties/warnings" }
|
|
13
15
|
}
|
|
14
16
|
}
|
|
@@ -36,7 +36,9 @@ export default function () {
|
|
|
36
36
|
warnings
|
|
37
37
|
}),
|
|
38
38
|
selectors: extractDfns({
|
|
39
|
-
selector: 'dfn[data-dfn-type=selector][data-export]',
|
|
39
|
+
selector: ['dfn[data-dfn-type=selector][data-export]:not([data-dfn-for])',
|
|
40
|
+
'dfn[data-dfn-type=selector][data-export][data-dfn-for=""]'
|
|
41
|
+
].join(','),
|
|
40
42
|
extractor: extractTypedDfn,
|
|
41
43
|
duplicates: 'reject',
|
|
42
44
|
warnings
|
|
@@ -125,7 +127,8 @@ export default function () {
|
|
|
125
127
|
const values = extractDfns({
|
|
126
128
|
selector: ['dfn[data-dfn-type=value][data-dfn-for]:not([data-dfn-for=""])',
|
|
127
129
|
'dfn[data-dfn-type=function][data-dfn-for]:not([data-dfn-for=""])',
|
|
128
|
-
'dfn[data-dfn-type=type][data-dfn-for]:not([data-dfn-for=""])'
|
|
130
|
+
'dfn[data-dfn-type=type][data-dfn-for]:not([data-dfn-for=""])',
|
|
131
|
+
'dfn[data-dfn-type=selector][data-dfn-for]:not([data-dfn-for=""])'
|
|
129
132
|
].join(','),
|
|
130
133
|
extractor: extractTypedDfn,
|
|
131
134
|
duplicates: 'push',
|