From 8981d2cf653d783efc6254d5fcbdec72d5bf4c04 Mon Sep 17 00:00:00 2001 From: tiagosiebler Date: Thu, 21 Jan 2021 08:52:33 +0000 Subject: [PATCH] fix exception parser scope --- package.json | 4 ++-- src/util/requestWrapper.ts | 2 +- tsconfig.json | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 87b27e7b..47ac72c1 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "bybit-api", - "version": "1.3.1", - "description": "A production-ready Node.js connector for the Bybit APIs and WebSockets", + "version": "1.3.2", + "description": "Node.js connector for the Bybit APIs and WebSockets", "main": "lib/index.js", "types": "lib/index.d.ts", "files": [ diff --git a/src/util/requestWrapper.ts b/src/util/requestWrapper.ts index 217c5ca0..cf5c71c2 100644 --- a/src/util/requestWrapper.ts +++ b/src/util/requestWrapper.ts @@ -101,7 +101,7 @@ export default class RequestUtil { } throw response; - }).catch(this.parseException); + }).catch(e => this.parseException(e)); } /** diff --git a/tsconfig.json b/tsconfig.json index 02c8de22..89baa3c5 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -6,12 +6,12 @@ "module": "commonjs", "moduleResolution": "node", "declaration": true, - "sourceMap": true, "removeComments": false, "noEmitOnError": true, "noImplicitAny": false, "strictNullChecks": true, "skipLibCheck": true, + "sourceMap": true, "esModuleInterop": true, "lib": ["es2017","dom"], "baseUrl": ".",