bkper 2.6.0 → 2.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -98,8 +98,9 @@ class HttpApiRequest {
98
98
  });
99
99
  }
100
100
  catch (e) {
101
- if (HttpApiRequest.config.requestErrorHandler) {
102
- throw HttpApiRequest.config.requestErrorHandler(e);
101
+ const customError = HttpApiRequest.config.requestErrorHandler ? HttpApiRequest.config.requestErrorHandler(e) : undefined;
102
+ if (customError) {
103
+ throw customError;
103
104
  }
104
105
  else {
105
106
  //Default error handler
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bkper",
3
- "version": "2.6.0",
3
+ "version": "2.6.1",
4
4
  "description": "Node.js client for Bkper REST API",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",