@acala-network/chopsticks-executor 0.12.2 → 0.13.1

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.
@@ -1 +1 @@
1
- {"type": "commonjs"}
1
+ { "type": "commonjs" }
@@ -172,12 +172,12 @@ function getUint8Memory0() {
172
172
  }
173
173
  return cachedUint8Memory0;
174
174
  }
175
- var cachedTextEncoder = typeof TextEncoder !== "undefined" ? new TextEncoder("utf-8") : {
175
+ var cachedTextEncoder = typeof TextEncoder !== 'undefined' ? new TextEncoder('utf-8') : {
176
176
  encode: function() {
177
- throw Error("TextEncoder not available");
177
+ throw Error('TextEncoder not available');
178
178
  }
179
179
  };
180
- var encodeString = typeof cachedTextEncoder.encodeInto === "function" ? function encodeString(arg, view) {
180
+ var encodeString = typeof cachedTextEncoder.encodeInto === 'function' ? function encodeString(arg, view) {
181
181
  return cachedTextEncoder.encodeInto(arg, view);
182
182
  } : function(arg, view) {
183
183
  var buf = cachedTextEncoder.encode(arg);
@@ -238,15 +238,15 @@ function takeObject(idx) {
238
238
  dropObject(idx);
239
239
  return ret;
240
240
  }
241
- var cachedTextDecoder = typeof TextDecoder !== "undefined" ? new TextDecoder("utf-8", {
241
+ var cachedTextDecoder = typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', {
242
242
  ignoreBOM: true,
243
243
  fatal: true
244
244
  }) : {
245
245
  decode: function() {
246
- throw Error("TextDecoder not available");
246
+ throw Error('TextDecoder not available');
247
247
  }
248
248
  };
249
- if (typeof TextDecoder !== "undefined") {
249
+ if (typeof TextDecoder !== 'undefined') {
250
250
  cachedTextDecoder.decode();
251
251
  }
252
252
  ;
@@ -278,39 +278,39 @@ function getFloat64Memory0() {
278
278
  function debugString(val) {
279
279
  // primitive types
280
280
  var type = typeof val === "undefined" ? "undefined" : _type_of(val);
281
- if (type == "number" || type == "boolean" || val == null) {
281
+ if (type == 'number' || type == 'boolean' || val == null) {
282
282
  return "".concat(val);
283
283
  }
284
- if (type == "string") {
284
+ if (type == 'string') {
285
285
  return '"'.concat(val, '"');
286
286
  }
287
- if (type == "symbol") {
287
+ if (type == 'symbol') {
288
288
  var description = val.description;
289
289
  if (description == null) {
290
- return "Symbol";
290
+ return 'Symbol';
291
291
  } else {
292
292
  return "Symbol(".concat(description, ")");
293
293
  }
294
294
  }
295
- if (type == "function") {
295
+ if (type == 'function') {
296
296
  var name = val.name;
297
- if (typeof name == "string" && name.length > 0) {
297
+ if (typeof name == 'string' && name.length > 0) {
298
298
  return "Function(".concat(name, ")");
299
299
  } else {
300
- return "Function";
300
+ return 'Function';
301
301
  }
302
302
  }
303
303
  // objects
304
304
  if (Array.isArray(val)) {
305
305
  var length = val.length;
306
- var debug = "[";
306
+ var debug = '[';
307
307
  if (length > 0) {
308
308
  debug += debugString(val[0]);
309
309
  }
310
310
  for(var i = 1; i < length; i++){
311
- debug += ", " + debugString(val[i]);
311
+ debug += ', ' + debugString(val[i]);
312
312
  }
313
- debug += "]";
313
+ debug += ']';
314
314
  return debug;
315
315
  }
316
316
  // Test for built-in
@@ -322,14 +322,14 @@ function debugString(val) {
322
322
  // Failed to match the standard '[object ClassName]'
323
323
  return toString.call(val);
324
324
  }
325
- if (className == "Object") {
325
+ if (className == 'Object') {
326
326
  // we're a user defined class or Object
327
327
  // JSON.stringify avoids problems with cycles, and is generally much
328
328
  // easier than looping through ownProperties of `val`.
329
329
  try {
330
- return "Object(" + JSON.stringify(val) + ")";
330
+ return 'Object(' + JSON.stringify(val) + ')';
331
331
  } catch (_) {
332
- return "Object";
332
+ return 'Object';
333
333
  }
334
334
  }
335
335
  // errors
@@ -339,7 +339,7 @@ function debugString(val) {
339
339
  // TODO we could test for more things here, like `Set`s and `Map`s.
340
340
  return className;
341
341
  }
342
- var CLOSURE_DTORS = typeof FinalizationRegistry === "undefined" ? {
342
+ var CLOSURE_DTORS = typeof FinalizationRegistry === 'undefined' ? {
343
343
  register: function() {},
344
344
  unregister: function() {}
345
345
  } : new FinalizationRegistry(function(state) {
@@ -449,11 +449,11 @@ function ___wbg_load() {
449
449
  return _ts_generator(this, function(_state) {
450
450
  switch(_state.label){
451
451
  case 0:
452
- if (!(typeof Response === "function" && _instanceof(module, Response))) return [
452
+ if (!(typeof Response === 'function' && _instanceof(module, Response))) return [
453
453
  3,
454
454
  7
455
455
  ];
456
- if (!(typeof WebAssembly.instantiateStreaming === "function")) return [
456
+ if (!(typeof WebAssembly.instantiateStreaming === 'function')) return [
457
457
  3,
458
458
  4
459
459
  ];
@@ -476,7 +476,7 @@ function ___wbg_load() {
476
476
  ];
477
477
  case 3:
478
478
  e = _state.sent();
479
- if (module.headers.get("Content-Type") != "application/wasm") {
479
+ if (module.headers.get('Content-Type') != 'application/wasm') {
480
480
  console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n", e);
481
481
  } else {
482
482
  throw e;
@@ -537,7 +537,7 @@ function __wbg_get_imports() {
537
537
  imports.wbg = {};
538
538
  imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
539
539
  var obj = getObject(arg1);
540
- var ret = typeof obj === "string" ? obj : undefined;
540
+ var ret = typeof obj === 'string' ? obj : undefined;
541
541
  var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
542
542
  var len1 = WASM_VECTOR_LEN;
543
543
  getInt32Memory0()[arg0 / 4 + 1] = len1;
@@ -565,7 +565,7 @@ function __wbg_get_imports() {
565
565
  };
566
566
  imports.wbg.__wbindgen_is_object = function(arg0) {
567
567
  var val = getObject(arg0);
568
- var ret = typeof val === "object" && val !== null;
568
+ var ret = (typeof val === "undefined" ? "undefined" : _type_of(val)) === 'object' && val !== null;
569
569
  return ret;
570
570
  };
571
571
  imports.wbg.__wbg_getwithrefkey_edc2c8960f0f1191 = function(arg0, arg1) {
@@ -608,7 +608,7 @@ function __wbg_get_imports() {
608
608
  };
609
609
  imports.wbg.__wbindgen_boolean_get = function(arg0) {
610
610
  var v = getObject(arg0);
611
- var ret = typeof v === "boolean" ? v ? 1 : 0 : 2;
611
+ var ret = typeof v === 'boolean' ? v ? 1 : 0 : 2;
612
612
  return ret;
613
613
  };
614
614
  imports.wbg.__wbg_isSafeInteger_f7b04ef02296c4d2 = function(arg0) {
@@ -650,12 +650,12 @@ function __wbg_get_imports() {
650
650
  return ret;
651
651
  };
652
652
  imports.wbg.__wbindgen_is_bigint = function(arg0) {
653
- var ret = _type_of(getObject(arg0)) === "bigint";
653
+ var ret = _type_of(getObject(arg0)) === 'bigint';
654
654
  return ret;
655
655
  };
656
656
  imports.wbg.__wbindgen_bigint_get_as_i64 = function(arg0, arg1) {
657
657
  var v = getObject(arg1);
658
- var ret = (typeof v === "undefined" ? "undefined" : _type_of(v)) === "bigint" ? v : undefined;
658
+ var ret = (typeof v === "undefined" ? "undefined" : _type_of(v)) === 'bigint' ? v : undefined;
659
659
  getBigInt64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? BigInt(0) : ret;
660
660
  getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
661
661
  };
@@ -709,7 +709,7 @@ function __wbg_get_imports() {
709
709
  }, arguments);
710
710
  };
711
711
  imports.wbg.__wbindgen_is_string = function(arg0) {
712
- var ret = typeof getObject(arg0) === "string";
712
+ var ret = typeof getObject(arg0) === 'string';
713
713
  return ret;
714
714
  };
715
715
  imports.wbg.__wbg_new_81740750da40724f = function(arg0, arg1) {
@@ -766,7 +766,7 @@ function __wbg_get_imports() {
766
766
  }, arguments);
767
767
  };
768
768
  imports.wbg.__wbindgen_is_function = function(arg0) {
769
- var ret = typeof getObject(arg0) === "function";
769
+ var ret = typeof getObject(arg0) === 'function';
770
770
  return ret;
771
771
  };
772
772
  imports.wbg.__wbg_call_27c0f87801dedf93 = function() {
@@ -800,7 +800,7 @@ function __wbg_get_imports() {
800
800
  };
801
801
  imports.wbg.__wbindgen_number_get = function(arg0, arg1) {
802
802
  var obj = getObject(arg1);
803
- var ret = typeof obj === "number" ? obj : undefined;
803
+ var ret = typeof obj === 'number' ? obj : undefined;
804
804
  getFloat64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? 0 : ret;
805
805
  getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
806
806
  };
@@ -939,11 +939,11 @@ function ___wbg_init() {
939
939
  2,
940
940
  wasm
941
941
  ];
942
- if (typeof input === "undefined") {
943
- input = new URL("chopsticks_executor_bg.wasm", import.meta.url);
942
+ if (typeof input === 'undefined') {
943
+ input = new URL('chopsticks_executor_bg.wasm', import.meta.url);
944
944
  }
945
945
  imports = __wbg_get_imports();
946
- if (typeof input === "string" || typeof Request === "function" && _instanceof(input, Request) || typeof URL === "function" && _instanceof(input, URL)) {
946
+ if (typeof input === 'string' || typeof Request === 'function' && _instanceof(input, Request) || typeof URL === 'function' && _instanceof(input, URL)) {
947
947
  input = fetch(input);
948
948
  }
949
949
  __wbg_init_memory(imports);