Merge pull request #127 from hexbear-collective/remove-bigint

Remove BigInt
This commit is contained in:
SleeplessOne1917 2023-06-05 01:48:13 +00:00 committed by GitHub
commit 18777c5be2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 1 additions and 11 deletions

View file

@ -1,6 +1,6 @@
{
"name": "lemmy-js-client",
"version": "0.17.2-rc.20",
"version": "0.17.2-rc.21",
"description": "A javascript / typescript client for Lemmy",
"repository": "https://github.com/LemmyNet/lemmy-js-client",
"license": "AGPL-3.0",

View file

@ -135,11 +135,6 @@ import { VerifyEmail } from "./types/VerifyEmail";
import { VerifyEmailResponse } from "./types/VerifyEmailResponse";
import { UploadImage, UploadImageResponse, VERSION } from "./types/others";
// @ts-ignore
BigInt.prototype["toJSON"] = function () {
return parseInt(this.toString());
};
enum HttpType {
Get = "GET",
Post = "POST",

View file

@ -87,11 +87,6 @@ import { TransferCommunity } from "./types/TransferCommunity";
import { UserJoin } from "./types/UserJoin";
import { VerifyEmail } from "./types/VerifyEmail";
// @ts-ignore
BigInt.prototype["toJSON"] = function () {
return parseInt(this.toString());
};
/**
* Helps build lemmy websocket message requests, that you can use in your Websocket sends.
*