lemmy-js-client 0.17.0-rc.24 → 0.17.0-rc.27

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/dist/websocket.js CHANGED
@@ -487,9 +487,9 @@ var LemmyWebsocket = /** @class */ (function () {
487
487
  }());
488
488
  exports.LemmyWebsocket = LemmyWebsocket;
489
489
  function wrapper(op, data) {
490
- var send = { op: others_1.UserOperation[op], data: (0, class_transformer_1.serialize)(data) };
490
+ var send = (0, class_transformer_1.serialize)({ op: others_1.UserOperation[op], data: data });
491
491
  console.log(send);
492
- return JSON.stringify(send);
492
+ return send;
493
493
  }
494
494
  /**
495
495
  * A websocket JSON response that includes the errors.
@@ -514,6 +514,6 @@ exports.wsUserOp = wsUserOp;
514
514
  * Converts a websocket string response to a usable result
515
515
  */
516
516
  function wsJsonToRes(msg, responseClass) {
517
- return (0, class_transformer_1.deserialize)(responseClass, msg.data);
517
+ return (0, class_transformer_1.deserialize)(responseClass, (0, class_transformer_1.serialize)(msg.data));
518
518
  }
519
519
  exports.wsJsonToRes = wsJsonToRes;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "lemmy-js-client",
3
3
  "description": "A javascript / typescript client for Lemmy",
4
- "version": "0.17.0-rc.24",
4
+ "version": "0.17.0-rc.27",
5
5
  "author": "Dessalines <tyhou13@gmx.com>",
6
6
  "license": "AGPL-3.0",
7
7
  "main": "./dist/index.js",