core-3nweb-client-lib 0.31.3 → 0.31.4

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.
@@ -26,6 +26,7 @@ function exposeLogger(fn) {
26
26
  }
27
27
  function makeLogCaller(caller, path) {
28
28
  const log = (0, caller_side_wrap_1.makeReqRepFuncCaller)(caller, path);
29
- return (type, msg, err) => log(type, msg, (0, error_1.stringifyErr)(err));
29
+ return (type, msg, err) => log(type, msg, (0, error_1.stringifyErr)(err)).catch(noop);
30
30
  }
31
+ function noop() { }
31
32
  Object.freeze(exports);
@@ -192,12 +192,12 @@ class ClientsSideImpl {
192
192
  const fnCallNum = reqEnv.headers.fnCallNum.value;
193
193
  try {
194
194
  this.startCall(reqEnv);
195
- return deferred.promise;
196
195
  }
197
196
  catch (err) {
198
197
  this.fnCalls.delete(fnCallNum);
199
- throw err;
198
+ deferred.reject(err);
200
199
  }
200
+ return deferred.promise;
201
201
  }
202
202
  startObservableCall(path, req, obs) {
203
203
  const reqEnv = this.setupFnCall(path, req, undefined, obs);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "core-3nweb-client-lib",
3
- "version": "0.31.3",
3
+ "version": "0.31.4",
4
4
  "description": "3NWeb client core library, embeddable into different environments",
5
5
  "main": "build/lib-index.js",
6
6
  "types": "build/lib-index.d.ts",