@ethereansos/interfaces-core 0.4.136 → 0.4.137

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/dist/index.cjs.js CHANGED
@@ -23832,26 +23832,17 @@ function _instrumentProvider() {
23832
23832
  return _instrumentProvider.apply(this, arguments);
23833
23833
  }
23834
23834
 
23835
- function sendAsync(_x3, _x4) {
23836
- return _sendAsync.apply(this, arguments);
23835
+ function sendAsyncInternal(_x3, _x4, _x5) {
23836
+ return _sendAsyncInternal.apply(this, arguments);
23837
23837
  }
23838
23838
 
23839
- function _sendAsync() {
23840
- _sendAsync = _asyncToGenerator$1( /*#__PURE__*/regeneratorRuntime.mark(function _callee3(inputProvider, method) {
23841
- var provider,
23842
- params,
23843
- _args3 = arguments;
23839
+ function _sendAsyncInternal() {
23840
+ _sendAsyncInternal = _asyncToGenerator$1( /*#__PURE__*/regeneratorRuntime.mark(function _callee3(provider, method, params) {
23844
23841
  return regeneratorRuntime.wrap(function _callee3$(_context3) {
23845
23842
  while (1) {
23846
23843
  switch (_context3.prev = _context3.next) {
23847
23844
  case 0:
23848
23845
  _context3.next = 2;
23849
- return instrumentProvider(inputProvider, method);
23850
-
23851
- case 2:
23852
- provider = _context3.sent;
23853
- params = Array.prototype.slice.call(_args3).slice(2) || [];
23854
- _context3.next = 6;
23855
23846
  return new Promise( /*#__PURE__*/function () {
23856
23847
  var _ref2 = _asyncToGenerator$1( /*#__PURE__*/regeneratorRuntime.mark(function _callee2(ok, ko) {
23857
23848
  return regeneratorRuntime.wrap(function _callee2$(_context2) {
@@ -23886,21 +23877,75 @@ function _sendAsync() {
23886
23877
  }, _callee2, null, [[0, 5]]);
23887
23878
  }));
23888
23879
 
23889
- return function (_x5, _x6) {
23880
+ return function (_x8, _x9) {
23890
23881
  return _ref2.apply(this, arguments);
23891
23882
  };
23892
23883
  }());
23893
23884
 
23894
- case 6:
23885
+ case 2:
23895
23886
  return _context3.abrupt("return", _context3.sent);
23896
23887
 
23897
- case 7:
23888
+ case 3:
23898
23889
  case "end":
23899
23890
  return _context3.stop();
23900
23891
  }
23901
23892
  }
23902
23893
  }, _callee3);
23903
23894
  }));
23895
+ return _sendAsyncInternal.apply(this, arguments);
23896
+ }
23897
+
23898
+ function sendAsync(_x6, _x7) {
23899
+ return _sendAsync.apply(this, arguments);
23900
+ }
23901
+
23902
+ function _sendAsync() {
23903
+ _sendAsync = _asyncToGenerator$1( /*#__PURE__*/regeneratorRuntime.mark(function _callee4(provider, method) {
23904
+ var params,
23905
+ instrumentedProvider,
23906
+ _args4 = arguments;
23907
+ return regeneratorRuntime.wrap(function _callee4$(_context4) {
23908
+ while (1) {
23909
+ switch (_context4.prev = _context4.next) {
23910
+ case 0:
23911
+ params = Array.prototype.slice.call(_args4).slice(2) || [];
23912
+ _context4.prev = 1;
23913
+ _context4.next = 4;
23914
+ return sendAsyncInternal(provider, method, params);
23915
+
23916
+ case 4:
23917
+ return _context4.abrupt("return", _context4.sent);
23918
+
23919
+ case 7:
23920
+ _context4.prev = 7;
23921
+ _context4.t0 = _context4["catch"](1);
23922
+ _context4.next = 11;
23923
+ return instrumentProvider(provider, method);
23924
+
23925
+ case 11:
23926
+ instrumentedProvider = _context4.sent;
23927
+
23928
+ if (!(provider === instrumentedProvider)) {
23929
+ _context4.next = 14;
23930
+ break;
23931
+ }
23932
+
23933
+ throw _context4.t0;
23934
+
23935
+ case 14:
23936
+ _context4.next = 16;
23937
+ return sendAsyncInternal(instrumentedProvider, method, params);
23938
+
23939
+ case 16:
23940
+ return _context4.abrupt("return", _context4.sent);
23941
+
23942
+ case 17:
23943
+ case "end":
23944
+ return _context4.stop();
23945
+ }
23946
+ }
23947
+ }, _callee4, null, [[1, 7]]);
23948
+ }));
23904
23949
  return _sendAsync.apply(this, arguments);
23905
23950
  }
23906
23951