postcss 8.4.44 → 8.4.45
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/container.js +1 -1
- package/lib/node.js +12 -8
- package/lib/processor.js +1 -1
- package/package.json +1 -1
package/lib/container.js
CHANGED
@@ -210,7 +210,7 @@ class Container extends Node {
|
|
210
210
|
|
211
211
|
let processed = nodes.map(i => {
|
212
212
|
/* c8 ignore next */
|
213
|
-
if (!i[my]
|
213
|
+
if (!i[my]) Container.rebuild(i)
|
214
214
|
i = i.proxyOf
|
215
215
|
if (i.parent) i.parent.removeChild(i)
|
216
216
|
if (i[isClean]) markTreeDirty(i)
|
package/lib/node.js
CHANGED
@@ -153,8 +153,9 @@ class Node {
|
|
153
153
|
}
|
154
154
|
}
|
155
155
|
|
156
|
+
/* c8 ignore next 3 */
|
156
157
|
markClean() {
|
157
|
-
this[isClean] = true
|
158
|
+
this[isClean] = true
|
158
159
|
}
|
159
160
|
|
160
161
|
markDirty() {
|
@@ -215,20 +216,23 @@ class Node {
|
|
215
216
|
}
|
216
217
|
let end = this.source.end
|
217
218
|
? {
|
218
|
-
|
219
|
-
|
220
|
-
|
219
|
+
column: this.source.end.column + 1,
|
220
|
+
line: this.source.end.line
|
221
|
+
}
|
221
222
|
: {
|
222
|
-
|
223
|
-
|
224
|
-
|
223
|
+
column: start.column + 1,
|
224
|
+
line: start.line
|
225
|
+
}
|
225
226
|
|
226
227
|
if (opts.word) {
|
227
228
|
let stringRepresentation = this.toString()
|
228
229
|
let index = stringRepresentation.indexOf(opts.word)
|
229
230
|
if (index !== -1) {
|
230
231
|
start = this.positionInside(index, stringRepresentation)
|
231
|
-
end = this.positionInside(
|
232
|
+
end = this.positionInside(
|
233
|
+
index + opts.word.length,
|
234
|
+
stringRepresentation
|
235
|
+
)
|
232
236
|
}
|
233
237
|
} else {
|
234
238
|
if (opts.start) {
|
package/lib/processor.js
CHANGED