fix exception parser scope

This commit is contained in:
tiagosiebler
2021-01-21 08:52:33 +00:00
parent a6dad12e95
commit 8981d2cf65
3 changed files with 4 additions and 4 deletions

View File

@@ -1,7 +1,7 @@
{ {
"name": "bybit-api", "name": "bybit-api",
"version": "1.3.1", "version": "1.3.2",
"description": "A production-ready Node.js connector for the Bybit APIs and WebSockets", "description": "Node.js connector for the Bybit APIs and WebSockets",
"main": "lib/index.js", "main": "lib/index.js",
"types": "lib/index.d.ts", "types": "lib/index.d.ts",
"files": [ "files": [

View File

@@ -101,7 +101,7 @@ export default class RequestUtil {
} }
throw response; throw response;
}).catch(this.parseException); }).catch(e => this.parseException(e));
} }
/** /**

View File

@@ -6,12 +6,12 @@
"module": "commonjs", "module": "commonjs",
"moduleResolution": "node", "moduleResolution": "node",
"declaration": true, "declaration": true,
"sourceMap": true,
"removeComments": false, "removeComments": false,
"noEmitOnError": true, "noEmitOnError": true,
"noImplicitAny": false, "noImplicitAny": false,
"strictNullChecks": true, "strictNullChecks": true,
"skipLibCheck": true, "skipLibCheck": true,
"sourceMap": true,
"esModuleInterop": true, "esModuleInterop": true,
"lib": ["es2017","dom"], "lib": ["es2017","dom"],
"baseUrl": ".", "baseUrl": ".",