fix: revert changes to backoff import

This commit is contained in:
Paul
2021-12-24 23:06:01 +00:00
parent 02d350be65
commit 1d909304dd
4 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
{
"type": "module",
"name": "revolt.js",
"version": "5.2.1-patch.5",
"version": "5.2.1-patch.6",
"main": "dist/index.js",
"repository": "https://github.com/revoltchat/revolt.js",
"author": "Paul Makles <insrt.uk>",
+1 -1
View File
@@ -1,7 +1,7 @@
import Axios, { AxiosInstance, AxiosRequestConfig } from "axios";
import EventEmitter from "eventemitter3";
import defaultsDeep from "lodash.defaultsdeep";
import { action, makeObservable, observable, runInAction } from "mobx";
import { action, makeObservable, observable } from "mobx";
import type { Session } from "revolt-api/types/Auth";
import type { SizeOptions } from "revolt-api/types/Autumn";
import type { RevoltConfiguration } from "revolt-api/types/Core";
+1 -1
View File
@@ -1,4 +1,4 @@
export const LIBRARY_VERSION = "5.2.1-patch.5";
export const LIBRARY_VERSION = "5.2.1-patch.6";
export const defaultConfig = {
apiURL: "https://api.revolt.chat",
+2 -2
View File
@@ -1,4 +1,4 @@
import ExpBackoff from "@insertish/exponential-backoff";
import { backOff } from "@insertish/exponential-backoff";
import WebSocket from "@insertish/isomorphic-ws";
import { runInAction } from "mobx";
import { Role } from "revolt-api/types/Servers";
@@ -521,7 +521,7 @@ export class WebSocketClient {
});
if (!disallowReconnect && this.client.autoReconnect) {
ExpBackoff.backOff(() => this.connect(true)).catch(reject);
backOff(() => this.connect(true)).catch(reject);
}
};
});