Update dependencies (#20)
All checks were successful
Lint / pre-commit Linting (push) Successful in 29s

- @actions/core
- glob
- screeps-api

Reviewed-on: #20
Co-authored-by: Philipp Horstenkamp <philipp@horstenkamp.de>
Co-committed-by: Philipp Horstenkamp <philipp@horstenkamp.de>
This commit is contained in:
2025-04-12 13:43:45 +02:00
committed by Philipp Horstenkamp
parent 1aa7be2b73
commit 318515b9c4
634 changed files with 49143 additions and 4925 deletions

View File

@ -161,11 +161,13 @@ class WebSocketServer extends EventEmitter {
handleUpgrade (req, socket, head, cb) {
socket.on('error', socketOnError);
const upgrade = req.headers.upgrade;
const version = +req.headers['sec-websocket-version'];
const extensions = {};
if (
req.method !== 'GET' || req.headers.upgrade.toLowerCase() !== 'websocket' ||
req.method !== 'GET' || upgrade === undefined ||
upgrade.toLowerCase() !== 'websocket' ||
!req.headers['sec-websocket-key'] || (version !== 8 && version !== 13) ||
!this.shouldHandle(req)
) {
@ -364,6 +366,6 @@ function abortHandshake (socket, code, message, headers) {
* characters from both its beginning and end
* @private
*/
function trim(str) {
function trim (str) {
return str.trim();
}

2
node_modules/ws/package.json generated vendored
View File

@ -1,6 +1,6 @@
{
"name": "ws",
"version": "5.2.3",
"version": "5.2.4",
"description": "Simple to use, blazing fast and thoroughly tested websocket client and server for Node.js",
"keywords": [
"HyBi",