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 +3 -3
- package/package.json +1 -1
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:
|
490
|
+
var send = (0, class_transformer_1.serialize)({ op: others_1.UserOperation[op], data: data });
|
491
491
|
console.log(send);
|
492
|
-
return
|
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