postcss
Advanced tools
Comparing version 8.4.33 to 8.4.34
@@ -84,4 +84,4 @@ import Container, { ContainerProps } from './container.js' | ||
* const root = postcss.parse('@media print {}') | ||
* const media = root.first | ||
* media.name //=> 'media' | ||
* const media = root.first | ||
* ``` | ||
@@ -91,2 +91,21 @@ */ | ||
/** | ||
* An array containing the layer’s children. | ||
* | ||
* ```js | ||
* const root = postcss.parse('@layer example { a { color: black } }') | ||
* const layer = root.first | ||
* layer.nodes.length //=> 1 | ||
* layer.nodes[0].selector //=> 'a' | ||
* ``` | ||
* | ||
* Can be `undefinded` if the at-rule has no body. | ||
* | ||
* ```js | ||
* const root = postcss.parse('@layer a, b, c;') | ||
* const layer = root.first | ||
* layer.nodes //=> undefined | ||
* ``` | ||
*/ | ||
nodes: Container['nodes'] | ||
/** | ||
* The at-rule’s parameters, the values that follow the at-rule’s name | ||
@@ -93,0 +112,0 @@ * but precede any `{}` block. |
@@ -46,3 +46,3 @@ import AtRule from './at-rule.js' | ||
*/ | ||
nodes: Child[] | ||
nodes: Child[] | undefined | ||
@@ -49,0 +49,0 @@ /** |
@@ -38,2 +38,3 @@ import Container, { ContainerProps } from './container.js' | ||
declare class Document_ extends Container<Root> { | ||
nodes: Root[] | ||
parent: undefined | ||
@@ -40,0 +41,0 @@ type: 'document' |
@@ -55,3 +55,3 @@ 'use strict' | ||
if (map.sourcesContent) { | ||
map.sourcesContent = map.sourcesContent.map(() => null) | ||
map.sourcesContent = null | ||
} | ||
@@ -58,0 +58,0 @@ } else { |
@@ -41,4 +41,4 @@ 'use strict' | ||
} else { | ||
map.clearAnnotation(); | ||
this.result.css = map.css; | ||
map.clearAnnotation() | ||
this.result.css = map.css | ||
} | ||
@@ -45,0 +45,0 @@ } |
@@ -31,3 +31,2 @@ 'use strict' | ||
this.semicolon = false | ||
this.customProperty = false | ||
@@ -34,0 +33,0 @@ this.createTokenizer() |
@@ -10,3 +10,3 @@ 'use strict' | ||
constructor(plugins = []) { | ||
this.version = '8.4.33' | ||
this.version = '8.4.34' | ||
this.plugins = this.normalize(plugins) | ||
@@ -13,0 +13,0 @@ } |
@@ -57,2 +57,3 @@ import Container, { ContainerProps } from './container.js' | ||
declare class Root_ extends Container { | ||
nodes: NonNullable<Container['nodes']> | ||
parent: Document | undefined | ||
@@ -59,0 +60,0 @@ raws: Root.RootRaws |
@@ -72,2 +72,3 @@ import Container, { ContainerProps } from './container.js' | ||
declare class Rule_ extends Container { | ||
nodes: NonNullable<Container['nodes']> | ||
parent: Container | undefined | ||
@@ -74,0 +75,0 @@ raws: Rule.RuleRaws |
{ | ||
"name": "postcss", | ||
"version": "8.4.33", | ||
"version": "8.4.34", | ||
"description": "Tool for transforming styles with JS plugins", | ||
@@ -5,0 +5,0 @@ "engines": { |
197124
6770