reffy 20.0.0 → 20.0.1

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": "20.0.0",
3
+ "version": "20.0.1",
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",
@@ -106,9 +106,13 @@ export default {
106
106
  ...values.filter(v => v.type === 'type'));
107
107
  }
108
108
  if (feature.descriptors) {
109
- // Note: at-rule descriptors already have a "for" attribute
110
- categorized.atrules.push(
111
- ...feature.descriptors.filter(v => v.type === 'at-rule'));
109
+ // Note: at-rule descriptors already have a "for" attribute but
110
+ // nested at-rules typically don't have "descriptors" themselves
111
+ // while schema requires the property for consistency
112
+ const atrules = feature.descriptors
113
+ .filter(v => v.type === 'at-rule')
114
+ .map(v => Object.assign({ descriptors: [] }, v));
115
+ categorized.atrules.push(...atrules);
112
116
  feature.descriptors = feature.descriptors
113
117
  .filter(d => d.type !== 'at-rule');
114
118
  }