From d866cae6860f6a521c5345415339ee8bf9b16596 Mon Sep 17 00:00:00 2001 From: Anon Date: Sun, 4 Jun 2023 20:46:09 -0500 Subject: [PATCH] Remove BigInt --- package.json | 2 +- src/http.ts | 5 ----- src/websocket.ts | 5 ----- 3 files changed, 1 insertion(+), 11 deletions(-) diff --git a/package.json b/package.json index bb05eaa..81c6b18 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/http.ts b/src/http.ts index 57f739f..5a7e71a 100644 --- a/src/http.ts +++ b/src/http.ts @@ -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", diff --git a/src/websocket.ts b/src/websocket.ts index cbb3779..a33add4 100644 --- a/src/websocket.ts +++ b/src/websocket.ts @@ -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. *