ws-process 0.3.43 → 0.3.45

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 (3) hide show
  1. package/index.js +9 -3
  2. package/package.json +1 -1
  3. package/reducer.js +2 -1
package/index.js CHANGED
@@ -628,6 +628,9 @@ function asyncSend(msg) {
628
628
  headers['bsg-support-stage'] = isPreviewMode() ? 'dev' : local.stage;
629
629
  headers['bsg-support-token'] = user.token;
630
630
  headers['bsg-support-session'] = user.session;
631
+ headers['bsg-support-ui-version'] = process.env.REACT_APP_RELEASE_VERSION
632
+ || process.env.REACT_APP_STAGING_VERSION
633
+ || '';
631
634
  headers['bsg-support-user-id'] = user.id;
632
635
  headers['bsg-support-system-external-id'] = user.pid;
633
636
  // headers['bsg-support-partner-id'] = user.partnerID;
@@ -718,7 +721,7 @@ function asyncSend(msg) {
718
721
  callback.afterFailed(newData);
719
722
  }
720
723
  if (callback.always) {
721
- callback.always();
724
+ callback.always(newData);
722
725
  }
723
726
  }
724
727
  if (cProcessItem.reject) {
@@ -758,6 +761,9 @@ function asyncSend(msg) {
758
761
 
759
762
  jsonMSG.headers['bsg-support-token'] = user.token;
760
763
  jsonMSG.headers['bsg-support-session'] = user.session;
764
+ jsonMSG.headers['bsg-support-ui-version'] = process.env.REACT_APP_RELEASE_VERSION
765
+ || process.env.REACT_APP_STAGING_VERSION
766
+ || '';
761
767
  jsonMSG.headers['bsg-support-user-id'] = user.id;
762
768
  jsonMSG.headers['bsg-support-userID'] = user.id;
763
769
  jsonMSG.headers['bsg-support-system-external-id'] = user.pid;
@@ -980,7 +986,7 @@ function asyncSend(msg) {
980
986
  callback.afterFailed(jsonResponse);
981
987
  }
982
988
  if (callback.always) {
983
- callback.always();
989
+ callback.always(jsonResponse);
984
990
  }
985
991
  }
986
992
  if (cProcessItem.reject) {
@@ -1233,7 +1239,7 @@ function runProcess(processID, data) {
1233
1239
  } else {
1234
1240
  local.afterEachProcess(prcInner, local.wsProcess.processes);
1235
1241
 
1236
- // prcInner.reject(error);
1242
+ prcInner.reject(error);
1237
1243
  wrapClearWSProcess(error.processID);
1238
1244
  }
1239
1245
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ws-process",
3
- "version": "0.3.43",
3
+ "version": "0.3.45",
4
4
  "description": "Process Management for Web Socket Client",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/reducer.js CHANGED
@@ -1,5 +1,6 @@
1
+ /* eslint-disable import/no-unresolved */
1
2
  /* eslint-disable no-param-reassign */
2
- import { tryit } from 'ui5-lib-rc';
3
+ import { tryit } from '@bsgp/lib-core';
3
4
  import produce from 'immer';
4
5
  import {
5
6
  ADD_WS_PROCESS,