postcss 8.4.33 → 8.4.34
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/lib/at-rule.d.ts +20 -1
- package/lib/container.d.ts +1 -1
- package/lib/document.d.ts +1 -0
- package/lib/map-generator.js +1 -1
- package/lib/no-work-result.js +2 -2
- package/lib/parser.js +0 -1
- package/lib/processor.js +1 -1
- package/lib/root.d.ts +1 -0
- package/lib/rule.d.ts +1 -0
- package/package.json +1 -1
package/lib/at-rule.d.ts
CHANGED
@@ -81,11 +81,30 @@ declare class AtRule_ extends Container {
|
|
81
81
|
*
|
82
82
|
* ```js
|
83
83
|
* const root = postcss.parse('@media print {}')
|
84
|
-
* media.name //=> 'media'
|
85
84
|
* const media = root.first
|
85
|
+
* media.name //=> 'media'
|
86
86
|
* ```
|
87
87
|
*/
|
88
88
|
name: string
|
89
|
+
/**
|
90
|
+
* An array containing the layer’s children.
|
91
|
+
*
|
92
|
+
* ```js
|
93
|
+
* const root = postcss.parse('@layer example { a { color: black } }')
|
94
|
+
* const layer = root.first
|
95
|
+
* layer.nodes.length //=> 1
|
96
|
+
* layer.nodes[0].selector //=> 'a'
|
97
|
+
* ```
|
98
|
+
*
|
99
|
+
* Can be `undefinded` if the at-rule has no body.
|
100
|
+
*
|
101
|
+
* ```js
|
102
|
+
* const root = postcss.parse('@layer a, b, c;')
|
103
|
+
* const layer = root.first
|
104
|
+
* layer.nodes //=> undefined
|
105
|
+
* ```
|
106
|
+
*/
|
107
|
+
nodes: Container['nodes']
|
89
108
|
/**
|
90
109
|
* The at-rule’s parameters, the values that follow the at-rule’s name
|
91
110
|
* but precede any `{}` block.
|
package/lib/container.d.ts
CHANGED
package/lib/document.d.ts
CHANGED
package/lib/map-generator.js
CHANGED
@@ -52,7 +52,7 @@ class MapGenerator {
|
|
52
52
|
if (this.mapOpts.sourcesContent === false) {
|
53
53
|
map = new SourceMapConsumer(prev.text)
|
54
54
|
if (map.sourcesContent) {
|
55
|
-
map.sourcesContent =
|
55
|
+
map.sourcesContent = null
|
56
56
|
}
|
57
57
|
} else {
|
58
58
|
map = prev.consumer()
|
package/lib/no-work-result.js
CHANGED
package/lib/parser.js
CHANGED
package/lib/processor.js
CHANGED
package/lib/root.d.ts
CHANGED
package/lib/rule.d.ts
CHANGED