@osimatic/helpers-js 1.1.2 → 1.1.3

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.
Files changed (2) hide show
  1. package/http_client.js +3 -1
  2. package/package.json +1 -1
package/http_client.js CHANGED
@@ -366,7 +366,9 @@ class HTTPClient {
366
366
  },
367
367
  () => {
368
368
  JwtSession.expireSession(HTTPClient.onInvalidRefreshTokenRedirectUrl, HTTPClient.onInvalidRefreshTokenCallback);
369
- errorCallback();
369
+ if (typeof errorCallback != 'undefined' && errorCallback != null) {
370
+ errorCallback();
371
+ }
370
372
  }
371
373
  );
372
374
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@osimatic/helpers-js",
3
- "version": "1.1.2",
3
+ "version": "1.1.3",
4
4
  "main": "main.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"