@webref/css 7.0.6-alpha → 7.0.7-alpha
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 +1 -2
- package/css.json +3059 -2067
- package/index.js +9 -0
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -24,6 +24,15 @@ async function index({folder = __dirname} = {}) {
|
|
|
24
24
|
id += ' for ' + feature.for[0];
|
|
25
25
|
}
|
|
26
26
|
indexed[category][id] = feature;
|
|
27
|
+
|
|
28
|
+
// For at-rules, convert descriptors array into an indexed object too
|
|
29
|
+
if (feature.descriptors) {
|
|
30
|
+
const descriptors = feature.descriptors;
|
|
31
|
+
feature.descriptors = {};
|
|
32
|
+
for (const descriptor of descriptors) {
|
|
33
|
+
feature.descriptors[descriptor.name] = descriptor;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
27
36
|
}
|
|
28
37
|
}
|
|
29
38
|
return indexed;
|