ws-process 0.3.27 → 0.3.28

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.
package/Loading-esm.js CHANGED
File without changes
File without changes
package/Loading.css CHANGED
File without changes
package/Loading.js CHANGED
File without changes
package/index.js CHANGED
@@ -480,7 +480,16 @@ function asyncSend(msg) {
480
480
  // return 'api-dev';
481
481
  // }
482
482
  // });
483
- url = ['https://api.bsg.support', msg.url.replace(/^\/{0,}/, '')].join('/');
483
+
484
+ const currentState = getState();
485
+ const {
486
+ AltDomain: altDomain
487
+ } = tryit(() => currentState["api-Configuration"].merged.ui.result) || {};
488
+ if(altDomain){
489
+ url = [altDomain, msg.url.replace(/^\/{0,}/, '')].join('/');
490
+ }else{
491
+ url = ['https://api.bsg.support', msg.url.replace(/^\/{0,}/, '')].join('/');
492
+ }
484
493
  }
485
494
  const user = getState().user.currentUser;
486
495
  const headers = {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ws-process",
3
- "version": "0.3.27",
3
+ "version": "0.3.28",
4
4
  "description": "Process Management for Web Socket Client",
5
5
  "main": "index.js",
6
6
  "scripts": {