postcss 8.4.38 → 8.4.40
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 -1
- package/lib/at-rule.d.ts +5 -2
- package/lib/comment.d.ts +2 -1
- package/lib/container.js +8 -4
- package/lib/css-syntax-error.d.ts +1 -1
- package/lib/declaration.d.ts +8 -4
- package/lib/processor.js +1 -1
- package/lib/rule.d.ts +4 -2
- package/package.json +2 -2
package/README.md
CHANGED
@@ -13,7 +13,7 @@ and JetBrains. The [Autoprefixer] and [Stylelint] PostCSS plugins is one of
|
|
13
13
|
|
14
14
|
---
|
15
15
|
|
16
|
-
<img src="https://cdn.evilmartians.com/badges/logo-no-label.svg" alt="" width="22" height="16" /> Made
|
16
|
+
<img src="https://cdn.evilmartians.com/badges/logo-no-label.svg" alt="" width="22" height="16" /> Made at <b><a href="https://evilmartians.com/devtools?utm_source=postcss&utm_campaign=devtools-button&utm_medium=github">Evil Martians</a></b>, product consulting for <b>developer tools</b>.
|
17
17
|
|
18
18
|
---
|
19
19
|
|
package/lib/at-rule.d.ts
CHANGED
@@ -88,7 +88,9 @@ declare class AtRule_ extends Container {
|
|
88
88
|
* media.name //=> 'media'
|
89
89
|
* ```
|
90
90
|
*/
|
91
|
-
name: string
|
91
|
+
get name(): string
|
92
|
+
set name(value: string)
|
93
|
+
|
92
94
|
/**
|
93
95
|
* An array containing the layer’s children.
|
94
96
|
*
|
@@ -118,7 +120,8 @@ declare class AtRule_ extends Container {
|
|
118
120
|
* media.params //=> 'print, screen'
|
119
121
|
* ```
|
120
122
|
*/
|
121
|
-
params: string
|
123
|
+
get params(): string
|
124
|
+
set params(value: string)
|
122
125
|
parent: ContainerWithChildren | undefined
|
123
126
|
|
124
127
|
raws: AtRule.AtRuleRaws
|
package/lib/comment.d.ts
CHANGED
package/lib/container.js
CHANGED
@@ -15,11 +15,11 @@ function cleanSource(nodes) {
|
|
15
15
|
})
|
16
16
|
}
|
17
17
|
|
18
|
-
function
|
18
|
+
function markTreeDirty(node) {
|
19
19
|
node[isClean] = false
|
20
20
|
if (node.proxyOf.nodes) {
|
21
21
|
for (let i of node.proxyOf.nodes) {
|
22
|
-
|
22
|
+
markTreeDirty(i)
|
23
23
|
}
|
24
24
|
}
|
25
25
|
}
|
@@ -153,7 +153,11 @@ class Container extends Node {
|
|
153
153
|
insertBefore(exist, add) {
|
154
154
|
let existIndex = this.index(exist)
|
155
155
|
let type = existIndex === 0 ? 'prepend' : false
|
156
|
-
let nodes = this.normalize(
|
156
|
+
let nodes = this.normalize(
|
157
|
+
add,
|
158
|
+
this.proxyOf.nodes[existIndex],
|
159
|
+
type
|
160
|
+
).reverse()
|
157
161
|
existIndex = this.index(exist)
|
158
162
|
for (let node of nodes) this.proxyOf.nodes.splice(existIndex, 0, node)
|
159
163
|
|
@@ -209,7 +213,7 @@ class Container extends Node {
|
|
209
213
|
if (!i[my]) Container.rebuild(i)
|
210
214
|
i = i.proxyOf
|
211
215
|
if (i.parent) i.parent.removeChild(i)
|
212
|
-
if (i[isClean])
|
216
|
+
if (i[isClean]) markTreeDirty(i)
|
213
217
|
if (typeof i.raws.before === 'undefined') {
|
214
218
|
if (sample && typeof sample.raws.before !== 'undefined') {
|
215
219
|
i.raws.before = sample.raws.before.replace(/\S/g, '')
|
package/lib/declaration.d.ts
CHANGED
@@ -77,7 +77,8 @@ declare class Declaration_ extends Node {
|
|
77
77
|
* root.first.last.important //=> undefined
|
78
78
|
* ```
|
79
79
|
*/
|
80
|
-
important: boolean
|
80
|
+
get important(): boolean
|
81
|
+
set important(value: boolean)
|
81
82
|
|
82
83
|
parent: ContainerWithChildren | undefined
|
83
84
|
|
@@ -91,7 +92,8 @@ declare class Declaration_ extends Node {
|
|
91
92
|
* decl.prop //=> 'color'
|
92
93
|
* ```
|
93
94
|
*/
|
94
|
-
prop: string
|
95
|
+
get prop(): string
|
96
|
+
set prop(value: string)
|
95
97
|
|
96
98
|
raws: Declaration.DeclarationRaws
|
97
99
|
|
@@ -114,7 +116,8 @@ declare class Declaration_ extends Node {
|
|
114
116
|
* decl.value //=> 'black'
|
115
117
|
* ```
|
116
118
|
*/
|
117
|
-
value: string
|
119
|
+
get value(): string
|
120
|
+
set value(value: string)
|
118
121
|
|
119
122
|
/**
|
120
123
|
* It represents a getter that returns `true` if a declaration starts with
|
@@ -134,7 +137,8 @@ declare class Declaration_ extends Node {
|
|
134
137
|
* one.variable //=> true
|
135
138
|
* ```
|
136
139
|
*/
|
137
|
-
variable: boolean
|
140
|
+
get variable(): boolean
|
141
|
+
set varaible(value: string)
|
138
142
|
|
139
143
|
constructor(defaults?: Declaration.DeclarationProps)
|
140
144
|
assign(overrides: Declaration.DeclarationProps | object): this
|
package/lib/processor.js
CHANGED
package/lib/rule.d.ts
CHANGED
@@ -84,7 +84,8 @@ declare class Rule_ extends Container {
|
|
84
84
|
* rule.selector //=> 'a, b'
|
85
85
|
* ```
|
86
86
|
*/
|
87
|
-
selector: string
|
87
|
+
get selector(): string
|
88
|
+
set selector(value: string);
|
88
89
|
|
89
90
|
/**
|
90
91
|
* An array containing the rule’s individual selectors.
|
@@ -101,7 +102,8 @@ declare class Rule_ extends Container {
|
|
101
102
|
* rule.selector //=> 'a, strong'
|
102
103
|
* ```
|
103
104
|
*/
|
104
|
-
selectors: string[]
|
105
|
+
get selectors(): string[]
|
106
|
+
set selectors(values: string[]);
|
105
107
|
|
106
108
|
type: 'rule'
|
107
109
|
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "postcss",
|
3
|
-
"version": "8.4.
|
3
|
+
"version": "8.4.40",
|
4
4
|
"description": "Tool for transforming styles with JS plugins",
|
5
5
|
"engines": {
|
6
6
|
"node": "^10 || ^12 || >=14"
|
@@ -75,7 +75,7 @@
|
|
75
75
|
},
|
76
76
|
"dependencies": {
|
77
77
|
"nanoid": "^3.3.7",
|
78
|
-
"picocolors": "^1.0.
|
78
|
+
"picocolors": "^1.0.1",
|
79
79
|
"source-map-js": "^1.2.0"
|
80
80
|
},
|
81
81
|
"browser": {
|