diff --git a/lib/webProxyHandler.ts b/lib/webProxyHandler.ts index b4967566..2c17893b 100644 --- a/lib/webProxyHandler.ts +++ b/lib/webProxyHandler.ts @@ -38,7 +38,7 @@ export function createWebProxyHandler( callback?: WebErrorCallback, ) { const requestOptions = - typeof optionsOrCallback === 'function' ? {} : optionsOrCallback ?? {}; + typeof optionsOrCallback === 'function' ? {} : (optionsOrCallback ?? {}); const errorCallback = typeof optionsOrCallback === 'function' ? optionsOrCallback : callback; diff --git a/lib/websocketProxyHandler.ts b/lib/websocketProxyHandler.ts index b51dc94f..b9cfdd33 100644 --- a/lib/websocketProxyHandler.ts +++ b/lib/websocketProxyHandler.ts @@ -42,7 +42,7 @@ export function createWebSocketProxyHandler( callback?: WebSocketErrorCallback, ) { const requestOptions = - typeof optionsOrCallback === 'function' ? {} : optionsOrCallback ?? {}; + typeof optionsOrCallback === 'function' ? {} : (optionsOrCallback ?? {}); const errorCallback = typeof optionsOrCallback === 'function' ? optionsOrCallback : callback; diff --git a/package-lock.json b/package-lock.json index a0d7e48c..59980891 100644 --- a/package-lock.json +++ b/package-lock.json @@ -24,7 +24,7 @@ "concat-stream": "^2.0.0", "eslint": "^8.21.0", "eslint-config-prettier": "^9.1.0", - "prettier": "^2.7.1", + "prettier": "^3.3.3", "semver": "^7.0.0", "socket.io": "^4.0.0", "socket.io-client": "^4.0.0", @@ -3314,15 +3314,15 @@ } }, "node_modules/prettier": { - "version": "2.8.8", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.8.8.tgz", - "integrity": "sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q==", + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.3.3.tgz", + "integrity": "sha512-i2tDNA0O5IrMO757lfrdQZCc2jPNDVntV0m/+4whiDfWaTKfMNgR7Qz0NAeGz/nRqF4m5/6CLzbP4/liHt12Ew==", "dev": true, "bin": { - "prettier": "bin-prettier.js" + "prettier": "bin/prettier.cjs" }, "engines": { - "node": ">=10.13.0" + "node": ">=14" }, "funding": { "url": "https://github.com/prettier/prettier?sponsor=1" diff --git a/package.json b/package.json index efeb9bfa..044bb15b 100644 --- a/package.json +++ b/package.json @@ -49,7 +49,7 @@ "concat-stream": "^2.0.0", "eslint": "^8.21.0", "eslint-config-prettier": "^9.1.0", - "prettier": "^2.7.1", + "prettier": "^3.3.3", "semver": "^7.0.0", "socket.io": "^4.0.0", "socket.io-client": "^4.0.0",