+16
-12
lines changedFilter options
+16
-12
lines changed Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
1
1
{
2
2
"name": "chalk",
3
-
"version": "5.3.0",
3
+
"version": "5.4.1",
4
4
"description": "Terminal string styling done right",
5
5
"license": "MIT",
6
6
"repository": "chalk/chalk",
@@ -16,6 +16,7 @@
16
16
}
17
17
},
18
18
"types": "./source/index.d.ts",
19
+
"sideEffects": false,
19
20
"engines": {
20
21
"node": "^12.17.0 || ^14.13 || >=16.0.0"
21
22
},
@@ -58,10 +59,9 @@
58
59
"log-update": "^5.0.0",
59
60
"matcha": "^0.7.0",
60
61
"tsd": "^0.19.0",
61
-
"xo": "^0.53.0",
62
+
"xo": "^0.57.0",
62
63
"yoctodelay": "^2.0.0"
63
64
},
64
-
"sideEffects": false,
65
65
"xo": {
66
66
"rules": {
67
67
"unicorn/prefer-string-slice": "off",
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
1
1
/* eslint-env browser */
2
2
3
3
const level = (() => {
4
-
if (navigator.userAgentData) {
4
+
if (!('navigator' in globalThis)) {
5
+
return 0;
6
+
}
7
+
8
+
if (globalThis.navigator.userAgentData) {
5
9
const brand = navigator.userAgentData.brands.find(({brand}) => brand === 'Chromium');
6
10
if (brand && brand.version > 93) {
7
11
return 3;
8
12
}
9
13
}
10
14
11
-
if (/\b(Chrome|Chromium)\//.test(navigator.userAgent)) {
15
+
if (/\b(Chrome|Chromium)\//.test(globalThis.navigator.userAgent)) {
12
16
return 1;
13
17
}
14
18
Original file line number Diff line number Diff line change
@@ -112,11 +112,11 @@ function _supportsColor(haveStream, {streamIsTTY, sniffFlags = true} = {}) {
112
112
}
113
113
114
114
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)) {
116
116
return 3;
117
117
}
118
118
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') {
120
120
return 1;
121
121
}
122
122
Original file line number Diff line number Diff line change
@@ -97,7 +97,7 @@
97
97
"abbrev": "^3.0.0",
98
98
"archy": "~1.0.0",
99
99
"cacache": "^19.0.1",
100
-
"chalk": "^5.3.0",
100
+
"chalk": "^5.4.1",
101
101
"ci-info": "^4.1.0",
102
102
"cli-columns": "^4.0.0",
103
103
"fastest-levenshtein": "^1.0.16",
@@ -5887,9 +5887,9 @@
5887
5887
}
5888
5888
},
5889
5889
"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==",
5893
5893
"inBundle": true,
5894
5894
"license": "MIT",
5895
5895
"engines": {
Original file line number Diff line number Diff line change
@@ -64,7 +64,7 @@
64
64
"abbrev": "^3.0.0",
65
65
"archy": "~1.0.0",
66
66
"cacache": "^19.0.1",
67
-
"chalk": "^5.3.0",
67
+
"chalk": "^5.4.1",
68
68
"ci-info": "^4.1.0",
69
69
"cli-columns": "^4.0.0",
70
70
"fastest-levenshtein": "^1.0.16",
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4