Skip to content

Commit c75b7b2

Browse files
authored
Merge pull request #74 from tiagosiebler/exceptionFix
fix exception parser scope
2 parents a6dad12 + 8981d2c commit c75b7b2

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "bybit-api",
3-
"version": "1.3.1",
4-
"description": "A production-ready Node.js connector for the Bybit APIs and WebSockets",
3+
"version": "1.3.2",
4+
"description": "Node.js connector for the Bybit APIs and WebSockets",
55
"main": "lib/index.js",
66
"types": "lib/index.d.ts",
77
"files": [

src/util/requestWrapper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ export default class RequestUtil {
101101
}
102102

103103
throw response;
104-
}).catch(this.parseException);
104+
}).catch(e => this.parseException(e));
105105
}
106106

107107
/**

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66
"module": "commonjs",
77
"moduleResolution": "node",
88
"declaration": true,
9-
"sourceMap": true,
109
"removeComments": false,
1110
"noEmitOnError": true,
1211
"noImplicitAny": false,
1312
"strictNullChecks": true,
1413
"skipLibCheck": true,
14+
"sourceMap": true,
1515
"esModuleInterop": true,
1616
"lib": ["es2017","dom"],
1717
"baseUrl": ".",

0 commit comments

Comments
 (0)