@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.
@@ -208,12 +208,12 @@ function getUint8Memory0() {
208
208
  }
209
209
  return cachedUint8Memory0;
210
210
  }
211
- var cachedTextEncoder = typeof TextEncoder !== "undefined" ? new TextEncoder("utf-8") : {
211
+ var cachedTextEncoder = typeof TextEncoder !== 'undefined' ? new TextEncoder('utf-8') : {
212
212
  encode: function() {
213
- throw Error("TextEncoder not available");
213
+ throw Error('TextEncoder not available');
214
214
  }
215
215
  };
216
- var encodeString = typeof cachedTextEncoder.encodeInto === "function" ? function encodeString(arg, view) {
216
+ var encodeString = typeof cachedTextEncoder.encodeInto === 'function' ? function encodeString(arg, view) {
217
217
  return cachedTextEncoder.encodeInto(arg, view);
218
218
  } : function(arg, view) {
219
219
  var buf = cachedTextEncoder.encode(arg);
@@ -274,15 +274,15 @@ function takeObject(idx) {
274
274
  dropObject(idx);
275
275
  return ret;
276
276
  }
277
- var cachedTextDecoder = typeof TextDecoder !== "undefined" ? new TextDecoder("utf-8", {
277
+ var cachedTextDecoder = typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', {
278
278
  ignoreBOM: true,
279
279
  fatal: true
280
280
  }) : {
281
281
  decode: function() {
282
- throw Error("TextDecoder not available");
282
+ throw Error('TextDecoder not available');
283
283
  }
284
284
  };
285
- if (typeof TextDecoder !== "undefined") {
285
+ if (typeof TextDecoder !== 'undefined') {
286
286
  cachedTextDecoder.decode();
287
287
  }
288
288
  function getStringFromWasm0(ptr, len) {
@@ -313,39 +313,39 @@ function getFloat64Memory0() {
313
313
  function debugString(val) {
314
314
  // primitive types
315
315
  var type = typeof val === "undefined" ? "undefined" : _type_of(val);
316
- if (type == "number" || type == "boolean" || val == null) {
316
+ if (type == 'number' || type == 'boolean' || val == null) {
317
317
  return "".concat(val);
318
318
  }
319
- if (type == "string") {
319
+ if (type == 'string') {
320
320
  return '"'.concat(val, '"');
321
321
  }
322
- if (type == "symbol") {
322
+ if (type == 'symbol') {
323
323
  var description = val.description;
324
324
  if (description == null) {
325
- return "Symbol";
325
+ return 'Symbol';
326
326
  } else {
327
327
  return "Symbol(".concat(description, ")");
328
328
  }
329
329
  }
330
- if (type == "function") {
330
+ if (type == 'function') {
331
331
  var name = val.name;
332
- if (typeof name == "string" && name.length > 0) {
332
+ if (typeof name == 'string' && name.length > 0) {
333
333
  return "Function(".concat(name, ")");
334
334
  } else {
335
- return "Function";
335
+ return 'Function';
336
336
  }
337
337
  }
338
338
  // objects
339
339
  if (Array.isArray(val)) {
340
340
  var length = val.length;
341
- var debug = "[";
341
+ var debug = '[';
342
342
  if (length > 0) {
343
343
  debug += debugString(val[0]);
344
344
  }
345
345
  for(var i = 1; i < length; i++){
346
- debug += ", " + debugString(val[i]);
346
+ debug += ', ' + debugString(val[i]);
347
347
  }
348
- debug += "]";
348
+ debug += ']';
349
349
  return debug;
350
350
  }
351
351
  // Test for built-in
@@ -357,14 +357,14 @@ function debugString(val) {
357
357
  // Failed to match the standard '[object ClassName]'
358
358
  return toString.call(val);
359
359
  }
360
- if (className == "Object") {
360
+ if (className == 'Object') {
361
361
  // we're a user defined class or Object
362
362
  // JSON.stringify avoids problems with cycles, and is generally much
363
363
  // easier than looping through ownProperties of `val`.
364
364
  try {
365
- return "Object(" + JSON.stringify(val) + ")";
365
+ return 'Object(' + JSON.stringify(val) + ')';
366
366
  } catch (_) {
367
- return "Object";
367
+ return 'Object';
368
368
  }
369
369
  }
370
370
  // errors
@@ -374,7 +374,7 @@ function debugString(val) {
374
374
  // TODO we could test for more things here, like `Set`s and `Map`s.
375
375
  return className;
376
376
  }
377
- var CLOSURE_DTORS = typeof FinalizationRegistry === "undefined" ? {
377
+ var CLOSURE_DTORS = typeof FinalizationRegistry === 'undefined' ? {
378
378
  register: function() {},
379
379
  unregister: function() {}
380
380
  } : new FinalizationRegistry(function(state) {
@@ -461,11 +461,11 @@ function ___wbg_load() {
461
461
  return _ts_generator(this, function(_state) {
462
462
  switch(_state.label){
463
463
  case 0:
464
- if (!(typeof Response === "function" && _instanceof(module, Response))) return [
464
+ if (!(typeof Response === 'function' && _instanceof(module, Response))) return [
465
465
  3,
466
466
  7
467
467
  ];
468
- if (!(typeof WebAssembly.instantiateStreaming === "function")) return [
468
+ if (!(typeof WebAssembly.instantiateStreaming === 'function')) return [
469
469
  3,
470
470
  4
471
471
  ];
@@ -488,7 +488,7 @@ function ___wbg_load() {
488
488
  ];
489
489
  case 3:
490
490
  e = _state.sent();
491
- if (module.headers.get("Content-Type") != "application/wasm") {
491
+ if (module.headers.get('Content-Type') != 'application/wasm') {
492
492
  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);
493
493
  } else {
494
494
  throw e;
@@ -549,7 +549,7 @@ function __wbg_get_imports() {
549
549
  imports.wbg = {};
550
550
  imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
551
551
  var obj = getObject(arg1);
552
- var ret = typeof obj === "string" ? obj : undefined;
552
+ var ret = typeof obj === 'string' ? obj : undefined;
553
553
  var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
554
554
  var len1 = WASM_VECTOR_LEN;
555
555
  getInt32Memory0()[arg0 / 4 + 1] = len1;
@@ -577,7 +577,7 @@ function __wbg_get_imports() {
577
577
  };
578
578
  imports.wbg.__wbindgen_is_object = function(arg0) {
579
579
  var val = getObject(arg0);
580
- var ret = typeof val === "object" && val !== null;
580
+ var ret = (typeof val === "undefined" ? "undefined" : _type_of(val)) === 'object' && val !== null;
581
581
  return ret;
582
582
  };
583
583
  imports.wbg.__wbg_getwithrefkey_edc2c8960f0f1191 = function(arg0, arg1) {
@@ -620,7 +620,7 @@ function __wbg_get_imports() {
620
620
  };
621
621
  imports.wbg.__wbindgen_boolean_get = function(arg0) {
622
622
  var v = getObject(arg0);
623
- var ret = typeof v === "boolean" ? v ? 1 : 0 : 2;
623
+ var ret = typeof v === 'boolean' ? v ? 1 : 0 : 2;
624
624
  return ret;
625
625
  };
626
626
  imports.wbg.__wbg_isSafeInteger_f7b04ef02296c4d2 = function(arg0) {
@@ -662,12 +662,12 @@ function __wbg_get_imports() {
662
662
  return ret;
663
663
  };
664
664
  imports.wbg.__wbindgen_is_bigint = function(arg0) {
665
- var ret = _type_of(getObject(arg0)) === "bigint";
665
+ var ret = _type_of(getObject(arg0)) === 'bigint';
666
666
  return ret;
667
667
  };
668
668
  imports.wbg.__wbindgen_bigint_get_as_i64 = function(arg0, arg1) {
669
669
  var v = getObject(arg1);
670
- var ret = (typeof v === "undefined" ? "undefined" : _type_of(v)) === "bigint" ? v : undefined;
670
+ var ret = (typeof v === "undefined" ? "undefined" : _type_of(v)) === 'bigint' ? v : undefined;
671
671
  getBigInt64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? BigInt(0) : ret;
672
672
  getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
673
673
  };
@@ -721,7 +721,7 @@ function __wbg_get_imports() {
721
721
  }, arguments);
722
722
  };
723
723
  imports.wbg.__wbindgen_is_string = function(arg0) {
724
- var ret = typeof getObject(arg0) === "string";
724
+ var ret = typeof getObject(arg0) === 'string';
725
725
  return ret;
726
726
  };
727
727
  imports.wbg.__wbg_new_81740750da40724f = function(arg0, arg1) {
@@ -778,7 +778,7 @@ function __wbg_get_imports() {
778
778
  }, arguments);
779
779
  };
780
780
  imports.wbg.__wbindgen_is_function = function(arg0) {
781
- var ret = typeof getObject(arg0) === "function";
781
+ var ret = typeof getObject(arg0) === 'function';
782
782
  return ret;
783
783
  };
784
784
  imports.wbg.__wbg_call_27c0f87801dedf93 = function() {
@@ -812,7 +812,7 @@ function __wbg_get_imports() {
812
812
  };
813
813
  imports.wbg.__wbindgen_number_get = function(arg0, arg1) {
814
814
  var obj = getObject(arg1);
815
- var ret = typeof obj === "number" ? obj : undefined;
815
+ var ret = typeof obj === 'number' ? obj : undefined;
816
816
  getFloat64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? 0 : ret;
817
817
  getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
818
818
  };
@@ -951,11 +951,11 @@ function ___wbg_init() {
951
951
  2,
952
952
  wasm
953
953
  ];
954
- if (typeof input === "undefined") {
955
- input = new URL("chopsticks_executor_bg.wasm", require("url").pathToFileURL(__filename).toString());
954
+ if (typeof input === 'undefined') {
955
+ input = new URL('chopsticks_executor_bg.wasm', require("url").pathToFileURL(__filename).toString());
956
956
  }
957
957
  imports = __wbg_get_imports();
958
- if (typeof input === "string" || typeof Request === "function" && _instanceof(input, Request) || typeof URL === "function" && _instanceof(input, URL)) {
958
+ if (typeof input === 'string' || typeof Request === 'function' && _instanceof(input, Request) || typeof URL === 'function' && _instanceof(input, URL)) {
959
959
  input = fetch(input);
960
960
  }
961
961
  __wbg_init_memory(imports);