postcss 8.4.28 → 8.4.29
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.
Potentially problematic release.
This version of postcss might be problematic. Click here for more details.
- package/lib/parser.js +6 -0
- package/lib/processor.js +1 -1
- package/package.json +1 -1
package/lib/parser.js
CHANGED
@@ -65,6 +65,7 @@ class Parser {
|
|
65
65
|
if (brackets.length === 0) {
|
66
66
|
if (type === ';') {
|
67
67
|
node.source.end = this.getPosition(token[2])
|
68
|
+
node.source.end.offset++
|
68
69
|
this.semicolon = true
|
69
70
|
break
|
70
71
|
} else if (type === '{') {
|
@@ -79,6 +80,7 @@ class Parser {
|
|
79
80
|
}
|
80
81
|
if (prev) {
|
81
82
|
node.source.end = this.getPosition(prev[3] || prev[2])
|
83
|
+
node.source.end.offset++
|
82
84
|
}
|
83
85
|
}
|
84
86
|
this.end(token)
|
@@ -103,6 +105,7 @@ class Parser {
|
|
103
105
|
if (last) {
|
104
106
|
token = params[params.length - 1]
|
105
107
|
node.source.end = this.getPosition(token[3] || token[2])
|
108
|
+
node.source.end.offset++
|
106
109
|
this.spaces = node.raws.between
|
107
110
|
node.raws.between = ''
|
108
111
|
}
|
@@ -171,6 +174,7 @@ class Parser {
|
|
171
174
|
let node = new Comment()
|
172
175
|
this.init(node, token[2])
|
173
176
|
node.source.end = this.getPosition(token[3] || token[2])
|
177
|
+
node.source.end.offset++
|
174
178
|
|
175
179
|
let text = token[1].slice(2, -2)
|
176
180
|
if (/^\s*$/.test(text)) {
|
@@ -202,6 +206,7 @@ class Parser {
|
|
202
206
|
node.source.end = this.getPosition(
|
203
207
|
last[3] || last[2] || findLastWithPosition(tokens)
|
204
208
|
)
|
209
|
+
node.source.end.offset++
|
205
210
|
|
206
211
|
while (tokens[0][0] !== 'word') {
|
207
212
|
if (tokens.length === 1) this.unknownWord(tokens)
|
@@ -320,6 +325,7 @@ class Parser {
|
|
320
325
|
|
321
326
|
if (this.current.parent) {
|
322
327
|
this.current.source.end = this.getPosition(token[2])
|
328
|
+
this.current.source.end.offset++
|
323
329
|
this.current = this.current.parent
|
324
330
|
} else {
|
325
331
|
this.unexpectedClose(token)
|
package/lib/processor.js
CHANGED