Skip to content

Commit df82a28

Browse files
authored
Update deps. (#35)
1 parent 1b5b86e commit df82a28

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "postcss-styled",
3-
"version": "0.32.0",
3+
"version": "0.33.0",
44
"description": "PostCSS syntax for parsing styled components",
55
"repository": {
66
"type": "git",
@@ -34,15 +34,15 @@
3434
},
3535
"peerDependencies": {
3636
"postcss": ">=5.0.0",
37-
"postcss-syntax": ">=0.32.0"
37+
"postcss-syntax": ">=0.33.0"
3838
},
3939
"devDependencies": {
4040
"chai": "^4.1.2",
4141
"codecov": "^3.0.4",
4242
"mocha": "^5.2.0",
4343
"nyc": "^12.0.2",
44-
"postcss": "^7.0.1",
44+
"postcss": "^7.0.2",
4545
"postcss-safe-parser": "^4.0.1",
46-
"postcss-syntax": ">=0.32.0"
46+
"postcss-syntax": ">=0.33.0"
4747
}
4848
}

test/styled-components.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,16 @@ describe("styled-components", () => {
5656
expect(document.nodes).to.have.lengthOf(0);
5757
});
5858

59+
it("skip @babel/traverse error", () => {
60+
const code = "let a;let a";
61+
const document = syntax.parse(code, {
62+
from: "traverse_error.js",
63+
});
64+
expect(document.toString()).to.equal(code);
65+
expect(document.source).to.haveOwnProperty("lang", "jsx");
66+
expect(document.nodes).to.have.lengthOf(0);
67+
});
68+
5969
it("illegal template literal", () => {
6070
const code = [
6171
"const styled = require(\"styled-components\");",

0 commit comments

Comments
 (0)