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.
- package/index.js +9 -3
- package/package.json +1 -1
- 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
|
-
|
|
1242
|
+
prcInner.reject(error);
|
|
1237
1243
|
wrapClearWSProcess(error.processID);
|
|
1238
1244
|
}
|
|
1239
1245
|
});
|
package/package.json
CHANGED