Skip to content

Commit

Permalink
chore(deps): update dependency postcss to v8.4.29 (#15345)
Browse files Browse the repository at this point in the history
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com>
  • Loading branch information
renovate[bot] and fisker committed Sep 7, 2023
1 parent 98ae581 commit c0d464f
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 13 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
"outdent": "0.8.0",
"parse-json": "7.1.0",
"please-upgrade-node": "3.2.0",
"postcss": "8.4.28",
"postcss": "8.4.29",
"postcss-less": "6.0.0",
"postcss-media-query-parser": "0.2.3",
"postcss-scss": "4.0.7",
Expand Down
6 changes: 0 additions & 6 deletions src/language-css/loc.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,6 @@ function calculateLocEnd(node, text) {
return skipEverythingButNewLine(text, node.source.startOffset);
}

// `postcss>=8`
if (typeof node.source?.end?.offset === "number") {
// https://github.com/postcss/postcss/issues/1450
return node.source.end.offset + 1;
}

if (node.source) {
if (node.source.end) {
return lineColumnToIndex(node.source.end, text);
Expand Down
2 changes: 1 addition & 1 deletion src/language-css/parser-postcss.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ function parseNestedCSS(node, options) {
"a".repeat(node.prop.length) +
options.originalText.slice(
node.source.start.offset + node.prop.length,
node.source.end.offset + 1,
node.source.end.offset,
);
const fakeContent = textBefore.replaceAll(/[^\n]/g, " ") + nodeText;
let parse;
Expand Down
10 changes: 5 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7109,14 +7109,14 @@ __metadata:
languageName: node
linkType: hard

"postcss@npm:8.4.28":
version: 8.4.28
resolution: "postcss@npm:8.4.28"
"postcss@npm:8.4.29":
version: 8.4.29
resolution: "postcss@npm:8.4.29"
dependencies:
nanoid: ^3.3.6
picocolors: ^1.0.0
source-map-js: ^1.0.2
checksum: f605c24a36f7e400bad379735fbfc893ccb8d293ad6d419bb824db77cdcb69f43d614ef35f9f7091f32ca588d130ec60dbcf53b366e6bf88a8a64bbeb3c05f6d
checksum: dd6daa25e781db9ae5b651d9b7bfde0ec6e60e86a37da69a18eb4773d5ddd51e28fc4ff054fbdc04636a31462e6bf09a1e50986f69ac52b10d46b7457cd36d12
languageName: node
linkType: hard

Expand Down Expand Up @@ -7234,7 +7234,7 @@ __metadata:
parse-json: 7.1.0
path-browserify: 1.0.1
please-upgrade-node: 3.2.0
postcss: 8.4.28
postcss: 8.4.29
postcss-less: 6.0.0
postcss-media-query-parser: 0.2.3
postcss-scss: 4.0.7
Expand Down

0 comments on commit c0d464f

Please sign in to comment.