@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.
@@ -14,11 +14,8 @@ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
14
14
  reject(error);
15
15
  return;
16
16
  }
17
- if (info.done) {
18
- resolve(value);
19
- } else {
20
- Promise.resolve(value).then(_next, _throw);
21
- }
17
+ if (info.done) resolve(value);
18
+ else Promise.resolve(value).then(_next, _throw);
22
19
  }
23
20
  function _async_to_generator(fn) {
24
21
  return function() {
@@ -36,33 +33,22 @@ function _async_to_generator(fn) {
36
33
  };
37
34
  }
38
35
  function _instanceof(left, right) {
36
+ "@swc/helpers - instanceof";
39
37
  if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
40
38
  return !!right[Symbol.hasInstance](left);
41
- } else {
42
- return left instanceof right;
43
- }
39
+ } else return left instanceof right;
44
40
  }
45
41
  function _iterable_to_array(iter) {
46
- if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
42
+ if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) {
43
+ return Array.from(iter);
44
+ }
47
45
  }
48
46
  function _non_iterable_spread() {
49
- throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
47
+ throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
50
48
  }
51
49
  function _to_consumable_array(arr) {
52
50
  return _array_without_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array(arr) || _non_iterable_spread();
53
51
  }
54
- function _type_of(obj) {
55
- "@swc/helpers - typeof";
56
- return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
57
- }
58
- function _unsupported_iterable_to_array(o, minLen) {
59
- if (!o) return;
60
- if (typeof o === "string") return _array_like_to_array(o, minLen);
61
- var n = Object.prototype.toString.call(o).slice(8, -1);
62
- if (n === "Object" && o.constructor) n = o.constructor.name;
63
- if (n === "Map" || n === "Set") return Array.from(n);
64
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
65
- }
66
52
  function _ts_generator(thisArg, body) {
67
53
  var f, y, t, _ = {
68
54
  label: 0,
@@ -162,6 +148,18 @@ function _ts_generator(thisArg, body) {
162
148
  };
163
149
  }
164
150
  }
151
+ function _type_of(obj) {
152
+ "@swc/helpers - typeof";
153
+ return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
154
+ }
155
+ function _unsupported_iterable_to_array(o, minLen) {
156
+ if (!o) return;
157
+ if (typeof o === "string") return _array_like_to_array(o, minLen);
158
+ var n = Object.prototype.toString.call(o).slice(8, -1);
159
+ if (n === "Object" && o.constructor) n = o.constructor.name;
160
+ if (n === "Map" || n === "Set") return Array.from(o);
161
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
162
+ }
165
163
  /* @ts-self-types="./chopsticks_executor.d.ts" */ /**
166
164
  * @param {any} entries
167
165
  * @param {any} trie_version