Skip to content

Commit 7b594f1

Browse files
chore(deps): update (#512)
1 parent deac978 commit 7b594f1

File tree

7 files changed

+918
-1210
lines changed

7 files changed

+918
-1210
lines changed

package-lock.json

Lines changed: 891 additions & 1176 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -46,45 +46,45 @@
4646
"klona": "^2.0.4",
4747
"loader-utils": "^2.0.0",
4848
"schema-utils": "^3.0.0",
49-
"semver": "^7.3.2"
49+
"semver": "^7.3.4"
5050
},
5151
"devDependencies": {
52-
"@babel/cli": "^7.12.8",
53-
"@babel/core": "^7.12.8",
54-
"@babel/preset-env": "^7.12.7",
52+
"@babel/cli": "^7.12.10",
53+
"@babel/core": "^7.12.10",
54+
"@babel/preset-env": "^7.12.11",
5555
"@commitlint/cli": "^11.0.0",
5656
"@commitlint/config-conventional": "^11.0.0",
5757
"@webpack-contrib/defaults": "^6.3.0",
5858
"@webpack-contrib/eslint-config-webpack": "^3.0.0",
5959
"babel-jest": "^26.6.3",
60-
"cross-env": "^7.0.2",
60+
"cross-env": "^7.0.3",
6161
"cssnano": "^4.1.10",
6262
"del": "^6.0.0",
6363
"del-cli": "^3.0.1",
64-
"eslint": "^7.14.0",
65-
"eslint-config-prettier": "^6.15.0",
64+
"eslint": "^7.18.0",
65+
"eslint-config-prettier": "^7.2.0",
6666
"eslint-plugin-import": "^2.22.1",
67-
"husky": "^4.3.0",
67+
"husky": "^4.3.8",
6868
"jest": "^26.6.3",
69-
"less": "^3.12.2",
70-
"less-loader": "^7.1.0",
71-
"lint-staged": "^10.5.2",
69+
"less": "^4.1.0",
70+
"less-loader": "^7.2.1",
71+
"lint-staged": "^10.5.3",
7272
"memfs": "^3.2.0",
7373
"midas": "^2.0.3",
7474
"npm-run-all": "^4.1.5",
75-
"postcss": "^8.1.7",
75+
"postcss": "^8.2.4",
7676
"postcss-dark-theme-class": "^0.5.1",
77-
"postcss-import": "^13.0.0",
77+
"postcss-import": "^14.0.0",
7878
"postcss-js": "^3.0.3",
79-
"postcss-nested": "^5.0.1",
79+
"postcss-nested": "^5.0.3",
8080
"postcss-short": "^5.0.0",
8181
"prettier": "^2.2.0",
82-
"sass": "^1.29.0",
83-
"sass-loader": "^10.1.0",
84-
"standard-version": "^9.0.0",
82+
"sass": "^1.32.5",
83+
"sass-loader": "^10.1.1",
84+
"standard-version": "^9.1.0",
8585
"strip-ansi": "^6.0.0",
8686
"sugarss": "^3.0.3",
87-
"webpack": "^5.6.0"
87+
"webpack": "^5.16.0"
8888
},
8989
"keywords": [
9090
"css",

test/__snapshots__/postcssOptins.test.js.snap

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -816,8 +816,7 @@ a {
816816
}
817817
818818
@media (max-width: 500px) {
819-
820-
.phone_title {
819+
.phone_title {
821820
width: 100px
822821
}
823822
}
@@ -1078,8 +1077,7 @@ a {
10781077
}
10791078
10801079
@media (max-width: 500px) {
1081-
1082-
.phone_title {
1080+
.phone_title {
10831081
width: auto
10841082
}
10851083
}

test/helpers/compile.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
export default (compiler) => {
2-
return new Promise((resolve, reject) => {
1+
export default (compiler) =>
2+
new Promise((resolve, reject) => {
33
compiler.run((error, stats) => {
44
if (error) {
55
return reject(error);
@@ -8,4 +8,3 @@ export default (compiler) => {
88
return resolve(stats);
99
});
1010
});
11-
};

test/helpers/getErrors.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import normalizeErrors from "./normalizeErrors";
22

3-
export default (stats, shortError) => {
4-
return normalizeErrors(stats.compilation.errors, shortError).sort();
5-
};
3+
export default (stats, shortError) =>
4+
normalizeErrors(stats.compilation.errors, shortError).sort();

test/helpers/getWarnings.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
import normalizeErrors from "./normalizeErrors";
22

3-
export default (stats) => {
4-
return normalizeErrors(stats.compilation.warnings).sort();
5-
};
3+
export default (stats) => normalizeErrors(stats.compilation.warnings).sort();

test/helpers/normalizeErrors.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ function removeCWD(str) {
1616
.replace(new RegExp(cwd, "g"), "");
1717
}
1818

19-
export default (errors, shortError) => {
20-
return errors.map((error) => {
19+
export default (errors, shortError) =>
20+
errors.map((error) => {
2121
let errorMessage = error.toString();
2222

2323
if (shortError) {
@@ -26,4 +26,3 @@ export default (errors, shortError) => {
2626

2727
return removeCWD(errorMessage.split("\n").slice(0, 12).join("\n"));
2828
});
29-
};

0 commit comments

Comments
 (0)