feat(v4.1.17): update dependencies and ESLint configuration, fix all linter errors

This commit is contained in:
JJ-Cro
2025-07-15 19:18:00 +02:00
parent d27eae3f0d
commit b21e8fb52a
16 changed files with 380 additions and 361 deletions

View File

@@ -7,13 +7,18 @@ import {
WsMarket,
WsTopic,
} from './types';
import {
Exact,
WSAPIOperation,
WsAPIOperationResponseMap,
WSAPIRequest,
WsAPITopicRequestParamMap,
WsAPIWsKeyTopicMap,
WsOperation,
WsRequestOperationBybit,
} from './types/websockets/ws-api';
import {
APIID,
WSConnectedResult,
WS_AUTH_ON_CONNECT_KEYS,
WS_KEY_MAP,
WS_LOGGER_CATEGORY,
WsTopicRequest,
getMaxTopicsPerSubscribeEvent,
getNormalisedTopicRequests,
getPromiseRefForWSAPIRequest,
@@ -26,22 +31,17 @@ import {
isWSAPIResponse,
isWsPong,
neverGuard,
WS_AUTH_ON_CONNECT_KEYS,
WS_KEY_MAP,
WS_LOGGER_CATEGORY,
WSConnectedResult,
WsTopicRequest,
} from './util';
import {
BaseWebsocketClient,
EmittableEvent,
MidflightWsRequestEvent,
} from './util/BaseWSClient';
import {
Exact,
WSAPIOperation,
WSAPIRequest,
WsAPIOperationResponseMap,
WsAPITopicRequestParamMap,
WsAPIWsKeyTopicMap,
WsOperation,
WsRequestOperationBybit,
} from './types/websockets/ws-api';
import { SignAlgorithm, signMessage } from './util/webCryptoAPI';
export class WebsocketClient extends BaseWebsocketClient<
@@ -773,6 +773,7 @@ export class WebsocketClient extends BaseWebsocketClient<
},
true,
);
// eslint-disable-next-line @typescript-eslint/no-unused-vars
} catch (e) {
this.logger.error('Exception trying to reject WSAPI promise', {
wsKey,
@@ -800,6 +801,7 @@ export class WebsocketClient extends BaseWebsocketClient<
},
true,
);
// eslint-disable-next-line @typescript-eslint/no-unused-vars
} catch (e) {
this.logger.error('Exception trying to resolve WSAPI promise', {
wsKey,