From 1d909304dd0e04171fe49629deefcda863531da5 Mon Sep 17 00:00:00 2001 From: Paul Date: Fri, 24 Dec 2021 23:06:01 +0000 Subject: [PATCH] fix: revert changes to backoff import --- package.json | 2 +- src/Client.ts | 2 +- src/config.ts | 2 +- src/websocket/client.ts | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index d6061f41..5afe3aad 100644 --- a/package.json +++ b/package.json @@ -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 ", diff --git a/src/Client.ts b/src/Client.ts index ea4084a4..38493dda 100644 --- a/src/Client.ts +++ b/src/Client.ts @@ -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"; diff --git a/src/config.ts b/src/config.ts index dcbbd3e5..046c3a77 100644 --- a/src/config.ts +++ b/src/config.ts @@ -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", diff --git a/src/websocket/client.ts b/src/websocket/client.ts index 0aed4a32..efe6f31d 100644 --- a/src/websocket/client.ts +++ b/src/websocket/client.ts @@ -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); } }; });