Skip to content

Commit eee3e04

Browse files
committed
Update PostCSS
1 parent 12709f4 commit eee3e04

3 files changed

Lines changed: 218 additions & 137 deletions

File tree

lib/safe-parser.js

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,15 @@ class SafeParser extends Parser {
99

1010
comment (token) {
1111
let node = new Comment()
12-
this.init(node, token[2], token[3])
13-
node.source.end = { line: token[4], column: token[5] }
12+
this.init(node, token[2])
13+
let pos =
14+
this.finder.fromIndex(token[3]) ||
15+
this.finder.fromIndex(this.input.css.length - 1)
16+
node.source.end = {
17+
offset: token[3],
18+
line: pos.line,
19+
column: pos.col
20+
}
1421

1522
let text = token[1].slice(2)
1623
if (text.slice(-2) === '*/') text = text.slice(0, -2)

package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,30 +20,30 @@
2020
},
2121
"main": "lib/safe-parse",
2222
"dependencies": {
23-
"postcss": "postcss/postcss#ose"
23+
"postcss": "postcss/postcss"
2424
},
2525
"devDependencies": {
26-
"@logux/eslint-config": "^40.0.3",
26+
"@logux/eslint-config": "^40.0.4",
2727
"ci-job-number": "^1.2.2",
2828
"clean-publish": "^1.1.8",
29-
"eslint": "^7.7.0",
29+
"eslint": "^7.8.1",
3030
"eslint-ci": "^1.0.0",
3131
"eslint-config-standard": "^14.1.1",
3232
"eslint-plugin-import": "^2.22.0",
33-
"eslint-plugin-jest": "^23.20.0",
33+
"eslint-plugin-jest": "^24.0.0",
3434
"eslint-plugin-node": "^11.1.0",
3535
"eslint-plugin-prefer-let": "^1.0.2",
3636
"eslint-plugin-prettierx": "^0.14.0",
3737
"eslint-plugin-promise": "^4.2.1",
3838
"eslint-plugin-security": "^1.4.0",
3939
"eslint-plugin-standard": "^4.0.1",
4040
"eslint-plugin-unicorn": "^21.0.0",
41-
"husky": "^4.2.5",
41+
"husky": "^4.3.0",
4242
"jest": "^26.4.2",
4343
"jest-ci": "^0.1.1",
44-
"lint-staged": "^10.2.13",
45-
"postcss-parser-tests": "postcss/postcss-parser-tests",
46-
"postcss-sharec-config": "^0.1.3"
44+
"lint-staged": "^10.3.0",
45+
"postcss-parser-tests": "^8.3.0",
46+
"postcss-sharec-config": "^0.1.5"
4747
},
4848
"husky": {
4949
"hooks": {
@@ -66,6 +66,6 @@
6666
},
6767
"sharec": {
6868
"config": "postcss-sharec-config",
69-
"version": "0.1.3"
69+
"version": "0.1.5"
7070
}
7171
}

0 commit comments

Comments
 (0)