socket-function 1.1.22 → 1.1.23

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "socket-function",
3
- "version": "1.1.22",
3
+ "version": "1.1.23",
4
4
  "main": "index.js",
5
5
  "license": "MIT",
6
6
  "dependencies": {
@@ -59,18 +59,18 @@ function connectPromiseToCallbackObj(promise: any, callbackObj: any) {
59
59
  // We need to delete the callback lists once on finally happens. Because we only connect to the promise once, And so it'll only trigger us once. So removing it is the only way to get it to trigger us again if someone subscribes to a finished promise.
60
60
  promiseCallbacks.delete(promise);
61
61
  for (let fnc of callbackObj.onResolve.slice()) {
62
- try { fnc(value); } finally { }
62
+ try { fnc(value); } catch { }
63
63
  }
64
64
  },
65
65
  (value: any) => {
66
66
  promiseCallbacks.delete(promise);
67
67
  for (let fnc of callbackObj.onReject.slice()) {
68
- try { fnc(value); } finally { }
68
+ try { fnc(value); } catch { }
69
69
  }
70
70
  }
71
71
  ).finally(() => {
72
72
  for (let fnc of callbackObj.onFinally.slice()) {
73
- try { fnc(); } finally { }
73
+ try { fnc(); } catch { }
74
74
  }
75
75
  });
76
76
  }