Skip to content

Commit ff4aaef

Browse files
committed
build: update dependency supports-color to v10
1 parent 289aa64 commit ff4aaef

File tree

5 files changed

+43
-27
lines changed

5 files changed

+43
-27
lines changed

.github/local-actions/branch-manager/main.js

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -58191,15 +58191,23 @@ if (hasFlag2("no-color") || hasFlag2("no-colors") || hasFlag2("color=false") ||
5819158191
flagForceColor2 = 1;
5819258192
}
5819358193
function envForceColor2() {
58194-
if ("FORCE_COLOR" in env2) {
58195-
if (env2.FORCE_COLOR === "true") {
58196-
return 1;
58197-
}
58198-
if (env2.FORCE_COLOR === "false") {
58199-
return 0;
58200-
}
58201-
return env2.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(env2.FORCE_COLOR, 10), 3);
58194+
if (!("FORCE_COLOR" in env2)) {
58195+
return;
58196+
}
58197+
if (env2.FORCE_COLOR === "true") {
58198+
return 1;
58199+
}
58200+
if (env2.FORCE_COLOR === "false") {
58201+
return 0;
58202+
}
58203+
if (env2.FORCE_COLOR.length === 0) {
58204+
return 1;
58205+
}
58206+
const level = Math.min(Number.parseInt(env2.FORCE_COLOR, 10), 3);
58207+
if (![0, 1, 2, 3].includes(level)) {
58208+
return;
5820258209
}
58210+
return level;
5820358211
}
5820458212
function translateLevel2(level) {
5820558213
if (level === 0) {
@@ -58247,10 +58255,10 @@ function _supportsColor2(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
5824758255
return 1;
5824858256
}
5824958257
if ("CI" in env2) {
58250-
if ("GITHUB_ACTIONS" in env2 || "GITEA_ACTIONS" in env2) {
58258+
if (["GITHUB_ACTIONS", "GITEA_ACTIONS", "CIRCLECI"].some((key) => key in env2)) {
5825158259
return 3;
5825258260
}
58253-
if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "BUILDKITE", "DRONE"].some((sign) => sign in env2) || env2.CI_NAME === "codeship") {
58261+
if (["TRAVIS", "APPVEYOR", "GITLAB_CI", "BUILDKITE", "DRONE"].some((sign) => sign in env2) || env2.CI_NAME === "codeship") {
5825458262
return 1;
5825558263
}
5825658264
return min;

github-actions/create-pr-for-changes/main.js

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -43000,15 +43000,23 @@ if (hasFlag2("no-color") || hasFlag2("no-colors") || hasFlag2("color=false") ||
4300043000
flagForceColor2 = 1;
4300143001
}
4300243002
function envForceColor2() {
43003-
if ("FORCE_COLOR" in env2) {
43004-
if (env2.FORCE_COLOR === "true") {
43005-
return 1;
43006-
}
43007-
if (env2.FORCE_COLOR === "false") {
43008-
return 0;
43009-
}
43010-
return env2.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(env2.FORCE_COLOR, 10), 3);
43003+
if (!("FORCE_COLOR" in env2)) {
43004+
return;
43005+
}
43006+
if (env2.FORCE_COLOR === "true") {
43007+
return 1;
43008+
}
43009+
if (env2.FORCE_COLOR === "false") {
43010+
return 0;
43011+
}
43012+
if (env2.FORCE_COLOR.length === 0) {
43013+
return 1;
43014+
}
43015+
const level = Math.min(Number.parseInt(env2.FORCE_COLOR, 10), 3);
43016+
if (![0, 1, 2, 3].includes(level)) {
43017+
return;
4301143018
}
43019+
return level;
4301243020
}
4301343021
function translateLevel2(level) {
4301443022
if (level === 0) {
@@ -43056,10 +43064,10 @@ function _supportsColor2(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
4305643064
return 1;
4305743065
}
4305843066
if ("CI" in env2) {
43059-
if ("GITHUB_ACTIONS" in env2 || "GITEA_ACTIONS" in env2) {
43067+
if (["GITHUB_ACTIONS", "GITEA_ACTIONS", "CIRCLECI"].some((key) => key in env2)) {
4306043068
return 3;
4306143069
}
43062-
if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "BUILDKITE", "DRONE"].some((sign) => sign in env2) || env2.CI_NAME === "codeship") {
43070+
if (["TRAVIS", "APPVEYOR", "GITLAB_CI", "BUILDKITE", "DRONE"].some((sign) => sign in env2) || env2.CI_NAME === "codeship") {
4306343071
return 1;
4306443072
}
4306543073
return min;

ng-dev/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"@yarnpkg/lockfile": "^1.1.0",
2323
"chalk": "^5.0.1",
2424
"semver": "^7.5.4",
25-
"supports-color": "9.4.0",
25+
"supports-color": "10.0.0",
2626
"typed-graphqlify": "^3.1.1",
2727
"typescript": "~4.9.0",
2828
"yaml": "2.6.1"

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@
148148
"semver": "^7.5.4",
149149
"spdx-satisfies": "^5.0.1",
150150
"stylelint": "^16.0.0",
151-
"supports-color": "9.4.0",
151+
"supports-color": "10.0.0",
152152
"terser": "5.37.0",
153153
"ts-node": "^10.9.2",
154154
"tslint": "^6.1.3",

yarn.lock

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ __metadata:
370370
source-map: "npm:^0.7.4"
371371
spdx-satisfies: "npm:^5.0.1"
372372
stylelint: "npm:^16.0.0"
373-
supports-color: "npm:9.4.0"
373+
supports-color: "npm:10.0.0"
374374
terser: "npm:5.37.0"
375375
tmp: "npm:^0.2.1"
376376
true-case-path: "npm:^2.2.1"
@@ -14240,10 +14240,10 @@ __metadata:
1424014240
languageName: node
1424114241
linkType: hard
1424214242

14243-
"supports-color@npm:9.4.0":
14244-
version: 9.4.0
14245-
resolution: "supports-color@npm:9.4.0"
14246-
checksum: 10c0/6c24e6b2b64c6a60e5248490cfa50de5924da32cf09ae357ad8ebbf305cc5d2717ba705a9d4cb397d80bbf39417e8fdc8d7a0ce18bd0041bf7b5b456229164e4
14243+
"supports-color@npm:10.0.0":
14244+
version: 10.0.0
14245+
resolution: "supports-color@npm:10.0.0"
14246+
checksum: 10c0/0e7884dfd02a07b3c6e0b235346f58c19f0201f1e44f7807583581761b354688c8577378785b5a4e3b03110809786c4c808e0e086cd91911f7b8bc59132703a8
1424714247
languageName: node
1424814248
linkType: hard
1424914249

0 commit comments

Comments
 (0)