Skip to content

Commit

Permalink
chore(deps): update (#3884)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-akait authored Sep 25, 2021
1 parent 8874d72 commit d8934ad
Show file tree
Hide file tree
Showing 3 changed files with 66 additions and 52 deletions.
8 changes: 4 additions & 4 deletions lib/Server.js
Original file line number Diff line number Diff line change
Expand Up @@ -1693,7 +1693,7 @@ class Server {
}

logStatus() {
const nanocolors = require("nanocolors");
const { isColorSupported, cyan, red } = require("colorette");

const getColorsOption = (compilerOptions) => {
let colorsEnabled;
Expand All @@ -1704,7 +1704,7 @@ class Server {
) {
colorsEnabled = compilerOptions.stats;
} else {
colorsEnabled = nanocolors.isColorSupported;
colorsEnabled = isColorSupported;
}

return colorsEnabled;
Expand All @@ -1713,14 +1713,14 @@ class Server {
const colors = {
info(useColor, msg) {
if (useColor) {
return nanocolors.cyan(msg);
return cyan(msg);
}

return msg;
},
error(useColor, msg) {
if (useColor) {
return nanocolors.red(msg);
return red(msg);
}

return msg;
Expand Down
104 changes: 59 additions & 45 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
"ansi-html-community": "^0.0.8",
"bonjour": "^3.5.0",
"chokidar": "^3.5.1",
"colorette": "^2.0.10",
"compression": "^1.7.4",
"connect-history-api-fallback": "^1.6.0",
"del": "^6.0.0",
Expand All @@ -44,7 +45,6 @@
"http-proxy-middleware": "^2.0.0",
"internal-ip": "^6.2.0",
"ipaddr.js": "^2.0.1",
"nanocolors": "^0.2.1",
"open": "^8.0.9",
"p-retry": "^4.5.0",
"portfinder": "^1.0.28",
Expand All @@ -55,7 +55,7 @@
"spdy": "^4.0.2",
"strip-ansi": "^7.0.0",
"url": "^0.11.0",
"webpack-dev-middleware": "^5.2.0",
"webpack-dev-middleware": "^5.2.1",
"ws": "^8.1.0"
},
"devDependencies": {
Expand Down Expand Up @@ -103,7 +103,7 @@
"tcp-port-used": "^1.0.2",
"typescript": "^4.2.4",
"url-loader": "^4.1.1",
"webpack": "^5.50.0",
"webpack": "^5.54.0",
"webpack-cli": "^4.7.2",
"webpack-merge": "^5.8.0"
},
Expand Down

0 comments on commit d8934ad

Please sign in to comment.