ws-process 0.3.43 → 0.3.44

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 +3 -3
  2. package/package.json +1 -1
  3. package/reducer.js +2 -1
package/index.js CHANGED
@@ -718,7 +718,7 @@ function asyncSend(msg) {
718
718
  callback.afterFailed(newData);
719
719
  }
720
720
  if (callback.always) {
721
- callback.always();
721
+ callback.always(newData);
722
722
  }
723
723
  }
724
724
  if (cProcessItem.reject) {
@@ -980,7 +980,7 @@ function asyncSend(msg) {
980
980
  callback.afterFailed(jsonResponse);
981
981
  }
982
982
  if (callback.always) {
983
- callback.always();
983
+ callback.always(jsonResponse);
984
984
  }
985
985
  }
986
986
  if (cProcessItem.reject) {
@@ -1233,7 +1233,7 @@ function runProcess(processID, data) {
1233
1233
  } else {
1234
1234
  local.afterEachProcess(prcInner, local.wsProcess.processes);
1235
1235
 
1236
- // prcInner.reject(error);
1236
+ prcInner.reject(error);
1237
1237
  wrapClearWSProcess(error.processID);
1238
1238
  }
1239
1239
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ws-process",
3
- "version": "0.3.43",
3
+ "version": "0.3.44",
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,