@opra/socketio 1.22.1 → 1.22.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opra/socketio",
3
- "version": "1.22.1",
3
+ "version": "1.22.3",
4
4
  "description": "Opra Socket.IO adapter",
5
5
  "author": "Panates",
6
6
  "license": "MIT",
@@ -14,8 +14,8 @@
14
14
  "valgen": "^5.18.2"
15
15
  },
16
16
  "peerDependencies": {
17
- "@opra/common": "^1.22.1",
18
- "@opra/core": "^1.22.1",
17
+ "@opra/common": "^1.22.3",
18
+ "@opra/core": "^1.22.3",
19
19
  "socket.io": ">=4.0.0"
20
20
  },
21
21
  "type": "module",
@@ -150,8 +150,6 @@ export class SocketioAdapter extends PlatformAdapter {
150
150
  let x = await reg.handler.apply(reg.contDef.instance, callArgs);
151
151
  if (reg.encoder)
152
152
  x = reg.encoder(x);
153
- if (x != null && typeof x !== 'string')
154
- x = JSON.stringify(x);
155
153
  callback(x);
156
154
  }
157
155
  catch (err) {