lemmy-js-client 0.17.2-rc.14 → 0.17.2-rc.16

Sign up to get free protection for your applications and to get access to all the features.
package/dist/http.js CHANGED
@@ -54,6 +54,10 @@ exports.LemmyHttp = void 0;
54
54
  var cross_fetch_1 = __importDefault(require("cross-fetch"));
55
55
  var form_data_1 = __importDefault(require("form-data"));
56
56
  var others_1 = require("./types/others");
57
+ // @ts-ignore
58
+ BigInt.prototype["toJSON"] = function () {
59
+ return parseInt(this.toString());
60
+ };
57
61
  var HttpType;
58
62
  (function (HttpType) {
59
63
  HttpType["Get"] = "GET";
package/dist/websocket.js CHANGED
@@ -2,6 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.wsJsonToRes = exports.wsUserOp = exports.LemmyWebsocket = void 0;
4
4
  var others_1 = require("./types/others");
5
+ // @ts-ignore
6
+ BigInt.prototype["toJSON"] = function () {
7
+ return parseInt(this.toString());
8
+ };
5
9
  /**
6
10
  * Helps build lemmy websocket message requests, that you can use in your Websocket sends.
7
11
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lemmy-js-client",
3
- "version": "0.17.2-rc.14",
3
+ "version": "0.17.2-rc.16",
4
4
  "description": "A javascript / typescript client for Lemmy",
5
5
  "repository": "https://github.com/LemmyNet/lemmy-js-client",
6
6
  "license": "AGPL-3.0",