Skip to content

Commit 215ebe4

Browse files
committedJan 21, 2025
1 parent f1af61f commit 215ebe4

File tree

5 files changed

+16
-12
lines changed

5 files changed

+16
-12
lines changed
 

‎node_modules/chalk/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "chalk",
3-
"version": "5.3.0",
3+
"version": "5.4.1",
44
"description": "Terminal string styling done right",
55
"license": "MIT",
66
"repository": "chalk/chalk",
@@ -16,6 +16,7 @@
1616
}
1717
},
1818
"types": "./source/index.d.ts",
19+
"sideEffects": false,
1920
"engines": {
2021
"node": "^12.17.0 || ^14.13 || >=16.0.0"
2122
},
@@ -58,10 +59,9 @@
5859
"log-update": "^5.0.0",
5960
"matcha": "^0.7.0",
6061
"tsd": "^0.19.0",
61-
"xo": "^0.53.0",
62+
"xo": "^0.57.0",
6263
"yoctodelay": "^2.0.0"
6364
},
64-
"sideEffects": false,
6565
"xo": {
6666
"rules": {
6767
"unicorn/prefer-string-slice": "off",

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

+6-2
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

+2-2
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

+4-4
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

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
"abbrev": "^3.0.0",
6565
"archy": "~1.0.0",
6666
"cacache": "^19.0.1",
67-
"chalk": "^5.3.0",
67+
"chalk": "^5.4.1",
6868
"ci-info": "^4.1.0",
6969
"cli-columns": "^4.0.0",
7070
"fastest-levenshtein": "^1.0.16",

0 commit comments

Comments
 (0)
Please sign in to comment.