ws-process 0.3.32 → 0.3.34
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 +2 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -527,7 +527,7 @@ function asyncSend(msg) {
|
|
|
527
527
|
const user = getState().user.currentUser;
|
|
528
528
|
const headers = {};
|
|
529
529
|
headers['bsg-support-process-id'] = msg.processID;
|
|
530
|
-
headers['bsg-support-api-key'] = user.apiKey ||
|
|
530
|
+
headers['bsg-support-api-key'] = user.apiKey || undefined;
|
|
531
531
|
headers['bsg-support-stage'] = local.stage;
|
|
532
532
|
headers['bsg-support-token'] = user.token;
|
|
533
533
|
headers['bsg-support-session'] = user.session;
|
|
@@ -1049,7 +1049,7 @@ function runProcess(processID, data) {
|
|
|
1049
1049
|
: prcItem.reqParameters;
|
|
1050
1050
|
if (!reqParameters) {
|
|
1051
1051
|
local.afterEachProcess(prc, local.wsProcess.processes);
|
|
1052
|
-
prc.reject('No request to send, process is stopped');
|
|
1052
|
+
prc.reject({ requestIsFalsy: true, message: 'No request to send, process is stopped' });
|
|
1053
1053
|
wrapClearWSProcess(processID);
|
|
1054
1054
|
return;
|
|
1055
1055
|
}
|