@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 +61 -16
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +61 -16
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
@@ -23820,26 +23820,17 @@ function _instrumentProvider() {
|
|
23820
23820
|
return _instrumentProvider.apply(this, arguments);
|
23821
23821
|
}
|
23822
23822
|
|
23823
|
-
function
|
23824
|
-
return
|
23823
|
+
function sendAsyncInternal(_x3, _x4, _x5) {
|
23824
|
+
return _sendAsyncInternal.apply(this, arguments);
|
23825
23825
|
}
|
23826
23826
|
|
23827
|
-
function
|
23828
|
-
|
23829
|
-
var provider,
|
23830
|
-
params,
|
23831
|
-
_args3 = arguments;
|
23827
|
+
function _sendAsyncInternal() {
|
23828
|
+
_sendAsyncInternal = _asyncToGenerator$1( /*#__PURE__*/regeneratorRuntime.mark(function _callee3(provider, method, params) {
|
23832
23829
|
return regeneratorRuntime.wrap(function _callee3$(_context3) {
|
23833
23830
|
while (1) {
|
23834
23831
|
switch (_context3.prev = _context3.next) {
|
23835
23832
|
case 0:
|
23836
23833
|
_context3.next = 2;
|
23837
|
-
return instrumentProvider(inputProvider, method);
|
23838
|
-
|
23839
|
-
case 2:
|
23840
|
-
provider = _context3.sent;
|
23841
|
-
params = Array.prototype.slice.call(_args3).slice(2) || [];
|
23842
|
-
_context3.next = 6;
|
23843
23834
|
return new Promise( /*#__PURE__*/function () {
|
23844
23835
|
var _ref2 = _asyncToGenerator$1( /*#__PURE__*/regeneratorRuntime.mark(function _callee2(ok, ko) {
|
23845
23836
|
return regeneratorRuntime.wrap(function _callee2$(_context2) {
|
@@ -23874,21 +23865,75 @@ function _sendAsync() {
|
|
23874
23865
|
}, _callee2, null, [[0, 5]]);
|
23875
23866
|
}));
|
23876
23867
|
|
23877
|
-
return function (
|
23868
|
+
return function (_x8, _x9) {
|
23878
23869
|
return _ref2.apply(this, arguments);
|
23879
23870
|
};
|
23880
23871
|
}());
|
23881
23872
|
|
23882
|
-
case
|
23873
|
+
case 2:
|
23883
23874
|
return _context3.abrupt("return", _context3.sent);
|
23884
23875
|
|
23885
|
-
case
|
23876
|
+
case 3:
|
23886
23877
|
case "end":
|
23887
23878
|
return _context3.stop();
|
23888
23879
|
}
|
23889
23880
|
}
|
23890
23881
|
}, _callee3);
|
23891
23882
|
}));
|
23883
|
+
return _sendAsyncInternal.apply(this, arguments);
|
23884
|
+
}
|
23885
|
+
|
23886
|
+
function sendAsync(_x6, _x7) {
|
23887
|
+
return _sendAsync.apply(this, arguments);
|
23888
|
+
}
|
23889
|
+
|
23890
|
+
function _sendAsync() {
|
23891
|
+
_sendAsync = _asyncToGenerator$1( /*#__PURE__*/regeneratorRuntime.mark(function _callee4(provider, method) {
|
23892
|
+
var params,
|
23893
|
+
instrumentedProvider,
|
23894
|
+
_args4 = arguments;
|
23895
|
+
return regeneratorRuntime.wrap(function _callee4$(_context4) {
|
23896
|
+
while (1) {
|
23897
|
+
switch (_context4.prev = _context4.next) {
|
23898
|
+
case 0:
|
23899
|
+
params = Array.prototype.slice.call(_args4).slice(2) || [];
|
23900
|
+
_context4.prev = 1;
|
23901
|
+
_context4.next = 4;
|
23902
|
+
return sendAsyncInternal(provider, method, params);
|
23903
|
+
|
23904
|
+
case 4:
|
23905
|
+
return _context4.abrupt("return", _context4.sent);
|
23906
|
+
|
23907
|
+
case 7:
|
23908
|
+
_context4.prev = 7;
|
23909
|
+
_context4.t0 = _context4["catch"](1);
|
23910
|
+
_context4.next = 11;
|
23911
|
+
return instrumentProvider(provider, method);
|
23912
|
+
|
23913
|
+
case 11:
|
23914
|
+
instrumentedProvider = _context4.sent;
|
23915
|
+
|
23916
|
+
if (!(provider === instrumentedProvider)) {
|
23917
|
+
_context4.next = 14;
|
23918
|
+
break;
|
23919
|
+
}
|
23920
|
+
|
23921
|
+
throw _context4.t0;
|
23922
|
+
|
23923
|
+
case 14:
|
23924
|
+
_context4.next = 16;
|
23925
|
+
return sendAsyncInternal(instrumentedProvider, method, params);
|
23926
|
+
|
23927
|
+
case 16:
|
23928
|
+
return _context4.abrupt("return", _context4.sent);
|
23929
|
+
|
23930
|
+
case 17:
|
23931
|
+
case "end":
|
23932
|
+
return _context4.stop();
|
23933
|
+
}
|
23934
|
+
}
|
23935
|
+
}, _callee4, null, [[1, 7]]);
|
23936
|
+
}));
|
23892
23937
|
return _sendAsync.apply(this, arguments);
|
23893
23938
|
}
|
23894
23939
|
|