@ethereansos/interfaces-core 0.4.133 → 0.4.135

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
@@ -23766,22 +23766,18 @@ function instrumentProvider(_x, _x2) {
23766
23766
 
23767
23767
  function _instrumentProvider() {
23768
23768
  _instrumentProvider = _asyncToGenerator$1( /*#__PURE__*/regeneratorRuntime.mark(function _callee(provider, method) {
23769
- var _instrumentableMethod2;
23770
-
23771
- var instrumentableMethods, _instrumentableMethod, entry, chainId, _ref, chainProvider;
23769
+ var instrumentableMethods, entry, chainId, _ref, chainProvider;
23772
23770
 
23773
23771
  return regeneratorRuntime.wrap(function _callee$(_context) {
23774
23772
  while (1) {
23775
23773
  switch (_context.prev = _context.next) {
23776
23774
  case 0:
23777
- instrumentableMethods = [];
23775
+ instrumentableMethods = [].concat(defaultInstrumentableMethods);
23778
23776
 
23779
23777
  try {
23780
- (_instrumentableMethod = instrumentableMethods).push.apply(_instrumentableMethod, _toConsumableArray(sendAsync.context.providerInstrumentableMethods || []));
23778
+ instrumentableMethods = _toConsumableArray(sendAsync.context.providerInstrumentableMethods || []);
23781
23779
  } catch (e) {}
23782
23780
 
23783
- (_instrumentableMethod2 = instrumentableMethods).push.apply(_instrumentableMethod2, defaultInstrumentableMethods);
23784
-
23785
23781
  instrumentableMethods = instrumentableMethods.map(function (it) {
23786
23782
  return it.toLowerCase();
23787
23783
  }).filter(function (it, i, arr) {
@@ -23789,30 +23785,30 @@ function _instrumentProvider() {
23789
23785
  });
23790
23786
 
23791
23787
  if (!(instrumentableMethods.indexOf(method.toLowerCase()) === -1)) {
23792
- _context.next = 6;
23788
+ _context.next = 5;
23793
23789
  break;
23794
23790
  }
23795
23791
 
23796
23792
  return _context.abrupt("return", provider);
23797
23793
 
23798
- case 6:
23794
+ case 5:
23799
23795
  entry = sendAsync.instrumentedProviders.filter(function (it) {
23800
23796
  return it.provider === provider;
23801
23797
  })[0];
23802
23798
 
23803
23799
  if (!entry) {
23804
- _context.next = 9;
23800
+ _context.next = 8;
23805
23801
  break;
23806
23802
  }
23807
23803
 
23808
23804
  return _context.abrupt("return", entry.instrumentedProvider);
23809
23805
 
23810
- case 9:
23806
+ case 8:
23811
23807
  _context.t0 = parseInt;
23812
- _context.next = 12;
23808
+ _context.next = 11;
23813
23809
  return sendAsync(provider, 'eth_chainId');
23814
23810
 
23815
- case 12:
23811
+ case 11:
23816
23812
  _context.t1 = _context.sent;
23817
23813
  chainId = (0, _context.t0)(_context.t1);
23818
23814
  entry = {
@@ -23826,7 +23822,7 @@ function _instrumentProvider() {
23826
23822
  }, chainProvider = _ref.chainProvider;
23827
23823
  return _context.abrupt("return", entry.instrumentedProvider = chainId !== 1 && chainProvider[chainId] ? new Web3__default["default"].providers.HttpProvider(chainProvider[chainId]) : provider);
23828
23824
 
23829
- case 18:
23825
+ case 17:
23830
23826
  case "end":
23831
23827
  return _context.stop();
23832
23828
  }