deps: chalk@5.4.1 · npm/cli@215ebe4 · GitHub
Skip to content

Commit 215ebe4

Browse files
committed
deps: chalk@5.4.1
1 parent f1af61f commit 215ebe4

5 files changed

Lines changed: 16 additions & 12 deletions

File tree

node_modules/chalk/package.json

Lines changed: 3 additions & 3 deletions

node_modules/chalk/source/vendor/supports-color/browser.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
11
/* eslint-env browser */
22

33
const level = (() => {
4-
if (navigator.userAgentData) {
4+
if (!('navigator' in globalThis)) {
5+
return 0;
6+
}
7+
8+
if (globalThis.navigator.userAgentData) {
59
const brand = navigator.userAgentData.brands.find(({brand}) => brand === 'Chromium');
610
if (brand && brand.version > 93) {
711
return 3;
812
}
913
}
1014

11-
if (/\b(Chrome|Chromium)\//.test(navigator.userAgent)) {
15+
if (/\b(Chrome|Chromium)\//.test(globalThis.navigator.userAgent)) {
1216
return 1;
1317
}
1418

node_modules/chalk/source/vendor/supports-color/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,11 +112,11 @@ function _supportsColor(haveStream, {streamIsTTY, sniffFlags = true} = {}) {
112112
}
113113

114114
if ('CI' in env) {
115-
if ('GITHUB_ACTIONS' in env || 'GITEA_ACTIONS' in env) {
115+
if (['GITHUB_ACTIONS', 'GITEA_ACTIONS', 'CIRCLECI'].some(key => key in env)) {
116116
return 3;
117117
}
118118

119-
if (['TRAVIS', 'CIRCLECI', 'APPVEYOR', 'GITLAB_CI', 'BUILDKITE', 'DRONE'].some(sign => sign in env) || env.CI_NAME === 'codeship') {
119+
if (['TRAVIS', 'APPVEYOR', 'GITLAB_CI', 'BUILDKITE', 'DRONE'].some(sign => sign in env) || env.CI_NAME === 'codeship') {
120120
return 1;
121121
}
122122

package-lock.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@
9797
"abbrev": "^3.0.0",
9898
"archy": "~1.0.0",
9999
"cacache": "^19.0.1",
100-
"chalk": "^5.3.0",
100+
"chalk": "^5.4.1",
101101
"ci-info": "^4.1.0",
102102
"cli-columns": "^4.0.0",
103103
"fastest-levenshtein": "^1.0.16",
@@ -5887,9 +5887,9 @@
58875887
}
58885888
},
58895889
"node_modules/chalk": {
5890-
"version": "5.3.0",
5891-
"resolved": "https://registry.npmjs.org/chalk/-/chalk-5.3.0.tgz",
5892-
"integrity": "sha512-dLitG79d+GV1Nb/VYcCDFivJeK1hiukt9QjRNVOsUtTy1rR1YJsmpGGTZ3qJos+uw7WmWF4wUwBd9jxjocFC2w==",
5890+
"version": "5.4.1",
5891+
"resolved": "https://registry.npmjs.org/chalk/-/chalk-5.4.1.tgz",
5892+
"integrity": "sha512-zgVZuo2WcZgfUEmsn6eO3kINexW8RAE4maiQ8QNs8CtpPCSyMiYsULR3HQYkm3w8FIA3SberyMJMSldGsW+U3w==",
58935893
"inBundle": true,
58945894
"license": "MIT",
58955895
"engines": {

package.json

Lines changed: 1 addition & 1 deletion

0 commit comments

Comments
 (0)