Skip to content

Commit 0a5f2ff

Browse files
committed
1 parent 7912c9c commit 0a5f2ff

File tree

5 files changed

+16
-12
lines changed

5 files changed

+16
-12
lines changed

node_modules/chalk/package.json

Lines changed: 3 additions & 3 deletions
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

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
@@ -99,7 +99,7 @@
9999
"abbrev": "^3.0.1",
100100
"archy": "~1.0.0",
101101
"cacache": "^19.0.1",
102-
"chalk": "^5.3.0",
102+
"chalk": "^5.4.1",
103103
"ci-info": "^4.1.0",
104104
"cli-columns": "^4.0.0",
105105
"fastest-levenshtein": "^1.0.16",
@@ -4179,9 +4179,9 @@
41794179
}
41804180
},
41814181
"node_modules/chalk": {
4182-
"version": "5.3.0",
4183-
"resolved": "https://registry.npmjs.org/chalk/-/chalk-5.3.0.tgz",
4184-
"integrity": "sha512-dLitG79d+GV1Nb/VYcCDFivJeK1hiukt9QjRNVOsUtTy1rR1YJsmpGGTZ3qJos+uw7WmWF4wUwBd9jxjocFC2w==",
4182+
"version": "5.4.1",
4183+
"resolved": "https://registry.npmjs.org/chalk/-/chalk-5.4.1.tgz",
4184+
"integrity": "sha512-zgVZuo2WcZgfUEmsn6eO3kINexW8RAE4maiQ8QNs8CtpPCSyMiYsULR3HQYkm3w8FIA3SberyMJMSldGsW+U3w==",
41854185
"inBundle": true,
41864186
"license": "MIT",
41874187
"engines": {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
"abbrev": "^3.0.1",
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)