@acala-network/chopsticks-executor 1.5.2 → 1.6.0

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.
@@ -54,11 +54,8 @@ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
54
54
  reject(error);
55
55
  return;
56
56
  }
57
- if (info.done) {
58
- resolve(value);
59
- } else {
60
- Promise.resolve(value).then(_next, _throw);
61
- }
57
+ if (info.done) resolve(value);
58
+ else Promise.resolve(value).then(_next, _throw);
62
59
  }
63
60
  function _async_to_generator(fn) {
64
61
  return function() {
@@ -76,33 +73,22 @@ function _async_to_generator(fn) {
76
73
  };
77
74
  }
78
75
  function _instanceof(left, right) {
76
+ "@swc/helpers - instanceof";
79
77
  if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
80
78
  return !!right[Symbol.hasInstance](left);
81
- } else {
82
- return left instanceof right;
83
- }
79
+ } else return left instanceof right;
84
80
  }
85
81
  function _iterable_to_array(iter) {
86
- if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
82
+ if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) {
83
+ return Array.from(iter);
84
+ }
87
85
  }
88
86
  function _non_iterable_spread() {
89
- throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
87
+ throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
90
88
  }
91
89
  function _to_consumable_array(arr) {
92
90
  return _array_without_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array(arr) || _non_iterable_spread();
93
91
  }
94
- function _type_of(obj) {
95
- "@swc/helpers - typeof";
96
- return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
97
- }
98
- function _unsupported_iterable_to_array(o, minLen) {
99
- if (!o) return;
100
- if (typeof o === "string") return _array_like_to_array(o, minLen);
101
- var n = Object.prototype.toString.call(o).slice(8, -1);
102
- if (n === "Object" && o.constructor) n = o.constructor.name;
103
- if (n === "Map" || n === "Set") return Array.from(n);
104
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
105
- }
106
92
  function _ts_generator(thisArg, body) {
107
93
  var f, y, t, _ = {
108
94
  label: 0,
@@ -202,6 +188,18 @@ function _ts_generator(thisArg, body) {
202
188
  };
203
189
  }
204
190
  }
191
+ function _type_of(obj) {
192
+ "@swc/helpers - typeof";
193
+ return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
194
+ }
195
+ function _unsupported_iterable_to_array(o, minLen) {
196
+ if (!o) return;
197
+ if (typeof o === "string") return _array_like_to_array(o, minLen);
198
+ var n = Object.prototype.toString.call(o).slice(8, -1);
199
+ if (n === "Object" && o.constructor) n = o.constructor.name;
200
+ if (n === "Map" || n === "Set") return Array.from(o);
201
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
202
+ }
205
203
  function calculate_state_root(entries, trie_version) {
206
204
  var ret = wasm.calculate_state_root(entries, trie_version);
207
205
  return ret;