mirror of
https://github.com/stoatchat/javascript-client-sdk.git
synced 2026-07-19 17:13:31 -04:00
fix: revert changes to backoff import
This commit is contained in:
+1
-1
@@ -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
@@ -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
@@ -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",
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
};
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user