Skip to content

Commit b727b79

Browse files
committed
fix: upd deps and lint
1 parent 4bc4281 commit b727b79

File tree

2 files changed

+24
-24
lines changed

2 files changed

+24
-24
lines changed

package.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -69,19 +69,19 @@
6969
"watch": "nr build -- --watch src"
7070
},
7171
"devDependencies": {
72-
"@antfu/eslint-config": "^3.8",
73-
"@antfu/ni": "^0.23.0",
74-
"@types/node": "^22.9.0",
75-
"@vitejs/plugin-vue": "^5.1.4",
76-
"@vitest/browser": "^2.1.4",
77-
"@vitest/coverage-v8": "^2.1.4",
72+
"@antfu/eslint-config": "^3.11",
73+
"@antfu/ni": "^0.23.1",
74+
"@types/node": "^22.10.1",
75+
"@vitejs/plugin-vue": "^5.2.1",
76+
"@vitest/browser": "^2.1.8",
77+
"@vitest/coverage-v8": "^2.1.8",
7878
"esbuild": "^0.24.0",
79-
"eslint": "^9",
80-
"playwright": "^1.48.2",
79+
"eslint": "^9.16.0",
80+
"playwright": "^1.49.0",
8181
"tsup": "^8.3.5",
82-
"typescript": "^5.6.3",
83-
"vite": "^5.4.10",
84-
"vitest": "^2.1.4"
82+
"typescript": "^5.7.2",
83+
"vite": "^6.0.2",
84+
"vitest": "^2.1.8"
8585
},
8686
"pnpm": {
8787
"overrides": {

src/browser/log/log-colors.ts

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -33,23 +33,23 @@ export function browserSupportsColors(): boolean {
3333
// @ts-expect-error xxx
3434
&& document.documentElement.style.WebkitAppearance)
3535
// Is firebug? http://stackoverflow.com/a/398120/376773
36-
|| (typeof window !== 'undefined'
37-
&& window.console
36+
|| (typeof window !== 'undefined'
37+
&& window.console
38+
// @ts-expect-error xxx
39+
&& (window.console.firebug
3840
// @ts-expect-error xxx
39-
&& (window.console.firebug
40-
// @ts-expect-error xxx
4141

42-
|| (window.console.exception && window.console.table)))
42+
|| (window.console.exception && window.console.table)))
4343
// Is firefox >= v31?
4444
// https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages
45-
|| (typeof navigator !== 'undefined'
46-
&& navigator.userAgent
47-
&& navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)
48-
// eslint-disable-next-line regexp/no-legacy-features
49-
&& Number.parseInt(RegExp.$1, 10) >= 31)
45+
|| (typeof navigator !== 'undefined'
46+
&& navigator.userAgent
47+
&& navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)
48+
// eslint-disable-next-line regexp/no-legacy-features
49+
&& Number.parseInt(RegExp.$1, 10) >= 31)
5050
// Double check webkit in userAgent just in case we are in a worker
51-
|| (typeof navigator !== 'undefined'
52-
&& navigator.userAgent
53-
&& navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))
51+
|| (typeof navigator !== 'undefined'
52+
&& navigator.userAgent
53+
&& navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))
5454
)
5555
}

0 commit comments

Comments
 (0)