From cb5c18d28d592f54d01e75fcecc7c25bc3b27868 Mon Sep 17 00:00:00 2001 From: Andrey Alekseenko Date: Sun, 19 Apr 2020 23:21:40 -0400 Subject: [PATCH] Bump socket.io juuust a bit This solves a minor, but nasty UTF-8 encoding-deconding problem, solved by https://github.com/socketio/engine.io-parser/pull/81 and released since socket.io v2.0.0. Maybe the newer version would work too, but I'm too lazy to check right now. --- browser/package.json | 2 +- browser/require.config.js | 4 ++-- server/package.json | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/browser/package.json b/browser/package.json index 6b29727..1b84d08 100644 --- a/browser/package.json +++ b/browser/package.json @@ -20,7 +20,7 @@ "almond": "~0.3.3", "raven-js": "^1.1.15", "requirejs": "~2.3.6", - "socket.io-client": "~1.0.6", + "socket.io-client": "^2.0.0", "require-handlebars-plugin": "^0.8.1", "jquery": "~2.1.0", "backbone": "1.1.2", diff --git a/browser/require.config.js b/browser/require.config.js index d9f760c..932c7f9 100644 --- a/browser/require.config.js +++ b/browser/require.config.js @@ -12,7 +12,7 @@ require.config({ 'json': 'node_modules/requirejs-json/json', 'text': 'node_modules/requirejs-text/text', 'underscore': 'node_modules/underscore/underscore', - 'socket.io-client': 'node_modules/socket.io-client/socket.io' + 'socket.io-client': 'node_modules/socket.io-client/dist/socket.io' }, hbs: { disableI18n: true @@ -24,6 +24,6 @@ require.config({ }, 'underscore': { exports: '_' - }, + } } }); diff --git a/server/package.json b/server/package.json index 5b61d2c..9e63515 100644 --- a/server/package.json +++ b/server/package.json @@ -11,7 +11,7 @@ "dependencies": { "engine.io": "^3.4.0", "mongoose": "^5.9.9", - "socket.io": "^1.0.6", + "socket.io": "^2.0.0", "winston": "^3.2.1", "express": "^4.17.1", "@types/node": "^13.13.0",