Skip to content

Commit d8934ad

Browse files
chore(deps): update (#3884)
1 parent 8874d72 commit d8934ad

File tree

3 files changed

+66
-52
lines changed

3 files changed

+66
-52
lines changed

lib/Server.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1693,7 +1693,7 @@ class Server {
16931693
}
16941694

16951695
logStatus() {
1696-
const nanocolors = require("nanocolors");
1696+
const { isColorSupported, cyan, red } = require("colorette");
16971697

16981698
const getColorsOption = (compilerOptions) => {
16991699
let colorsEnabled;
@@ -1704,7 +1704,7 @@ class Server {
17041704
) {
17051705
colorsEnabled = compilerOptions.stats;
17061706
} else {
1707-
colorsEnabled = nanocolors.isColorSupported;
1707+
colorsEnabled = isColorSupported;
17081708
}
17091709

17101710
return colorsEnabled;
@@ -1713,14 +1713,14 @@ class Server {
17131713
const colors = {
17141714
info(useColor, msg) {
17151715
if (useColor) {
1716-
return nanocolors.cyan(msg);
1716+
return cyan(msg);
17171717
}
17181718

17191719
return msg;
17201720
},
17211721
error(useColor, msg) {
17221722
if (useColor) {
1723-
return nanocolors.red(msg);
1723+
return red(msg);
17241724
}
17251725

17261726
return msg;

package-lock.json

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

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
"ansi-html-community": "^0.0.8",
3636
"bonjour": "^3.5.0",
3737
"chokidar": "^3.5.1",
38+
"colorette": "^2.0.10",
3839
"compression": "^1.7.4",
3940
"connect-history-api-fallback": "^1.6.0",
4041
"del": "^6.0.0",
@@ -44,7 +45,6 @@
4445
"http-proxy-middleware": "^2.0.0",
4546
"internal-ip": "^6.2.0",
4647
"ipaddr.js": "^2.0.1",
47-
"nanocolors": "^0.2.1",
4848
"open": "^8.0.9",
4949
"p-retry": "^4.5.0",
5050
"portfinder": "^1.0.28",
@@ -55,7 +55,7 @@
5555
"spdy": "^4.0.2",
5656
"strip-ansi": "^7.0.0",
5757
"url": "^0.11.0",
58-
"webpack-dev-middleware": "^5.2.0",
58+
"webpack-dev-middleware": "^5.2.1",
5959
"ws": "^8.1.0"
6060
},
6161
"devDependencies": {
@@ -103,7 +103,7 @@
103103
"tcp-port-used": "^1.0.2",
104104
"typescript": "^4.2.4",
105105
"url-loader": "^4.1.1",
106-
"webpack": "^5.50.0",
106+
"webpack": "^5.54.0",
107107
"webpack-cli": "^4.7.2",
108108
"webpack-merge": "^5.8.0"
109109
},

0 commit comments

Comments
 (0)