Skip to content

Commit 8e8bf8f

Browse files
angular-robotjosephperrott
authored andcommitted
build: update dependency supports-color to v10 (#2509)
PR Close #2509
1 parent 87eee1c commit 8e8bf8f

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
@@ -58409,15 +58409,23 @@ if (hasFlag2("no-color") || hasFlag2("no-colors") || hasFlag2("color=false") ||
5840958409
flagForceColor2 = 1;
5841058410
}
5841158411
function envForceColor2() {
58412-
if ("FORCE_COLOR" in env2) {
58413-
if (env2.FORCE_COLOR === "true") {
58414-
return 1;
58415-
}
58416-
if (env2.FORCE_COLOR === "false") {
58417-
return 0;
58418-
}
58419-
return env2.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(env2.FORCE_COLOR, 10), 3);
58412+
if (!("FORCE_COLOR" in env2)) {
58413+
return;
58414+
}
58415+
if (env2.FORCE_COLOR === "true") {
58416+
return 1;
58417+
}
58418+
if (env2.FORCE_COLOR === "false") {
58419+
return 0;
58420+
}
58421+
if (env2.FORCE_COLOR.length === 0) {
58422+
return 1;
58423+
}
58424+
const level = Math.min(Number.parseInt(env2.FORCE_COLOR, 10), 3);
58425+
if (![0, 1, 2, 3].includes(level)) {
58426+
return;
5842058427
}
58428+
return level;
5842158429
}
5842258430
function translateLevel2(level) {
5842358431
if (level === 0) {
@@ -58465,10 +58473,10 @@ function _supportsColor2(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
5846558473
return 1;
5846658474
}
5846758475
if ("CI" in env2) {
58468-
if ("GITHUB_ACTIONS" in env2 || "GITEA_ACTIONS" in env2) {
58476+
if (["GITHUB_ACTIONS", "GITEA_ACTIONS", "CIRCLECI"].some((key) => key in env2)) {
5846958477
return 3;
5847058478
}
58471-
if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "BUILDKITE", "DRONE"].some((sign) => sign in env2) || env2.CI_NAME === "codeship") {
58479+
if (["TRAVIS", "APPVEYOR", "GITLAB_CI", "BUILDKITE", "DRONE"].some((sign) => sign in env2) || env2.CI_NAME === "codeship") {
5847258480
return 1;
5847358481
}
5847458482
return min;

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

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -43218,15 +43218,23 @@ if (hasFlag2("no-color") || hasFlag2("no-colors") || hasFlag2("color=false") ||
4321843218
flagForceColor2 = 1;
4321943219
}
4322043220
function envForceColor2() {
43221-
if ("FORCE_COLOR" in env2) {
43222-
if (env2.FORCE_COLOR === "true") {
43223-
return 1;
43224-
}
43225-
if (env2.FORCE_COLOR === "false") {
43226-
return 0;
43227-
}
43228-
return env2.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(env2.FORCE_COLOR, 10), 3);
43221+
if (!("FORCE_COLOR" in env2)) {
43222+
return;
43223+
}
43224+
if (env2.FORCE_COLOR === "true") {
43225+
return 1;
43226+
}
43227+
if (env2.FORCE_COLOR === "false") {
43228+
return 0;
43229+
}
43230+
if (env2.FORCE_COLOR.length === 0) {
43231+
return 1;
43232+
}
43233+
const level = Math.min(Number.parseInt(env2.FORCE_COLOR, 10), 3);
43234+
if (![0, 1, 2, 3].includes(level)) {
43235+
return;
4322943236
}
43237+
return level;
4323043238
}
4323143239
function translateLevel2(level) {
4323243240
if (level === 0) {
@@ -43274,10 +43282,10 @@ function _supportsColor2(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
4327443282
return 1;
4327543283
}
4327643284
if ("CI" in env2) {
43277-
if ("GITHUB_ACTIONS" in env2 || "GITEA_ACTIONS" in env2) {
43285+
if (["GITHUB_ACTIONS", "GITEA_ACTIONS", "CIRCLECI"].some((key) => key in env2)) {
4327843286
return 3;
4327943287
}
43280-
if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "BUILDKITE", "DRONE"].some((sign) => sign in env2) || env2.CI_NAME === "codeship") {
43288+
if (["TRAVIS", "APPVEYOR", "GITLAB_CI", "BUILDKITE", "DRONE"].some((sign) => sign in env2) || env2.CI_NAME === "codeship") {
4328143289
return 1;
4328243290
}
4328343291
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"
@@ -14158,10 +14158,10 @@ __metadata:
1415814158
languageName: node
1415914159
linkType: hard
1416014160

14161-
"supports-color@npm:9.4.0":
14162-
version: 9.4.0
14163-
resolution: "supports-color@npm:9.4.0"
14164-
checksum: 10c0/6c24e6b2b64c6a60e5248490cfa50de5924da32cf09ae357ad8ebbf305cc5d2717ba705a9d4cb397d80bbf39417e8fdc8d7a0ce18bd0041bf7b5b456229164e4
14161+
"supports-color@npm:10.0.0":
14162+
version: 10.0.0
14163+
resolution: "supports-color@npm:10.0.0"
14164+
checksum: 10c0/0e7884dfd02a07b3c6e0b235346f58c19f0201f1e44f7807583581761b354688c8577378785b5a4e3b03110809786c4c808e0e086cd91911f7b8bc59132703a8
1416514165
languageName: node
1416614166
linkType: hard
1416714167

0 commit comments

Comments
 (0)