postcss 8.3.9 → 8.3.10
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/previous-map.js +11 -13
- package/lib/processor.js +1 -1
- package/package.json +3 -3
package/lib/previous-map.js
CHANGED
|
@@ -48,23 +48,21 @@ class PreviousMap {
|
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
getAnnotationURL(sourceMapString) {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
.trim()
|
|
51
|
+
console.log(sourceMapString)
|
|
52
|
+
return sourceMapString.replace(/^\/\*\s*# sourceMappingURL=/, '').trim()
|
|
54
53
|
}
|
|
55
54
|
|
|
56
55
|
loadAnnotation(css) {
|
|
57
|
-
let
|
|
58
|
-
|
|
59
|
-
)
|
|
56
|
+
let comments = css.match(/\/\*\s*# sourceMappingURL=/gm)
|
|
57
|
+
if (!comments) return
|
|
60
58
|
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
59
|
+
// sourceMappingURLs from comments, strings, etc.
|
|
60
|
+
let start = css.lastIndexOf(comments.pop())
|
|
61
|
+
let end = css.indexOf('*/', start)
|
|
62
|
+
|
|
63
|
+
if (start > -1 && end > -1) {
|
|
64
|
+
// Locate the last sourceMappingURL to avoid pickin
|
|
65
|
+
this.annotation = this.getAnnotationURL(css.substring(start, end))
|
|
68
66
|
}
|
|
69
67
|
}
|
|
70
68
|
|
package/lib/processor.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "postcss",
|
|
3
|
-
"version": "8.3.
|
|
3
|
+
"version": "8.3.10",
|
|
4
4
|
"description": "Tool for transforming styles with JS plugins",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": "^10 || ^12 || >=14"
|
|
@@ -64,8 +64,8 @@
|
|
|
64
64
|
"url": "https://github.com/postcss/postcss/issues"
|
|
65
65
|
},
|
|
66
66
|
"dependencies": {
|
|
67
|
-
"nanoid": "^3.1.
|
|
68
|
-
"picocolors": "^0.
|
|
67
|
+
"nanoid": "^3.1.30",
|
|
68
|
+
"picocolors": "^1.0.0",
|
|
69
69
|
"source-map-js": "^0.6.2"
|
|
70
70
|
},
|
|
71
71
|
"browser": {
|