Skip to content

Commit 1f2cbe6

Browse files
committed
Update dependencies and bump version
1 parent c3d410b commit 1f2cbe6

File tree

3 files changed

+292
-168
lines changed

3 files changed

+292
-168
lines changed

package.json

+19-16
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "typescript-plugin-css-modules",
3-
"version": "2.1.0",
3+
"version": "2.1.1",
44
"main": "lib/index.js",
55
"author": "Brody McKee <[email protected]>",
66
"license": "MIT",
@@ -62,39 +62,42 @@
6262
"singleQuote": true,
6363
"trailingComma": "all"
6464
},
65+
"resolutions": {
66+
"postcss": "7.0.23"
67+
},
6568
"dependencies": {
6669
"dotenv": "^8.2.0",
6770
"icss-utils": "^4.1.1",
6871
"less": "^3.9.0",
6972
"lodash.camelcase": "^4.3.0",
70-
"postcss": "^7.0.17",
73+
"postcss": "^7.0.23",
7174
"postcss-filter-plugins": "^3.0.1",
7275
"postcss-icss-selectors": "^2.0.3",
7376
"postcss-load-config": "^2.1.0",
7477
"reserved-words": "^0.1.2",
75-
"sass": "^1.22.4"
78+
"sass": "^1.23.7"
7679
},
7780
"devDependencies": {
7881
"@types/icss-utils": "^4.1.0",
79-
"@types/jest": "^24.0.15",
80-
"@types/less": "^3.0.0",
82+
"@types/jest": "^24.0.23",
83+
"@types/less": "^3.0.1",
8184
"@types/lodash.camelcase": "^4.3.6",
82-
"@types/node": "^12.11.1",
83-
"@types/postcss-load-config": "^2.0.0",
85+
"@types/node": "^12.12.14",
86+
"@types/postcss-load-config": "^2.0.1",
8487
"@types/postcss-nested": "^4.1.0",
8588
"@types/reserved-words": "^0.1.0",
8689
"@types/sass": "^1.16.0",
87-
"@typescript-eslint/eslint-plugin": "^2.4.0",
88-
"@typescript-eslint/parser": "^2.4.0",
89-
"eslint": "^6.5.1",
90-
"eslint-config-prettier": "^6.4.0",
91-
"husky": "^3.0.9",
90+
"@typescript-eslint/eslint-plugin": "^2.9.0",
91+
"@typescript-eslint/parser": "^2.9.0",
92+
"eslint": "^6.7.2",
93+
"eslint-config-prettier": "^6.7.0",
94+
"husky": "^3.1.0",
9295
"jest": "^24.8.0",
93-
"lint-staged": "^9.4.2",
96+
"lint-staged": "^9.5.0",
9497
"postcss-import-sync2": "^1.1.0",
95-
"prettier": "^1.18.2",
96-
"ts-jest": "^24.0.2",
97-
"typescript": "^3.6.4"
98+
"prettier": "^1.19.1",
99+
"ts-jest": "^24.2.0",
100+
"typescript": "^3.7.2"
98101
},
99102
"peerDependencies": {
100103
"typescript": "^3.0.0"

src/helpers/getClasses.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export const getClasses = (
4646
...(rendererOptions.less || {}),
4747
} as Less.Options,
4848
(error, output) => {
49-
if (error) throw error;
49+
if (error || output === undefined) throw error;
5050
transformedCss = output.css.toString();
5151
},
5252
);

0 commit comments

Comments
 (0)