@next/swc-wasm-nodejs 14.2.0-canary.9 → 14.2.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.
Files changed (3) hide show
  1. package/package.json +1 -1
  2. package/wasm.js +33 -33
  3. package/wasm_bg.wasm +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@next/swc-wasm-nodejs",
3
- "version": "14.2.0-canary.9",
3
+ "version": "14.2.0",
4
4
  "files": [
5
5
  "wasm_bg.wasm",
6
6
  "wasm.js",
package/wasm.js CHANGED
@@ -101,15 +101,6 @@ function getInt32Memory0() {
101
101
  return cachedInt32Memory0;
102
102
  }
103
103
 
104
- function addHeapObject(obj) {
105
- if (heap_next === heap.length) heap.push(heap.length + 1);
106
- const idx = heap_next;
107
- heap_next = heap[idx];
108
-
109
- heap[idx] = obj;
110
- return idx;
111
- }
112
-
113
104
  let cachedFloat64Memory0 = null;
114
105
 
115
106
  function getFloat64Memory0() {
@@ -119,6 +110,15 @@ function getFloat64Memory0() {
119
110
  return cachedFloat64Memory0;
120
111
  }
121
112
 
113
+ function addHeapObject(obj) {
114
+ if (heap_next === heap.length) heap.push(heap.length + 1);
115
+ const idx = heap_next;
116
+ heap_next = heap[idx];
117
+
118
+ heap[idx] = obj;
119
+ return idx;
120
+ }
121
+
122
122
  let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
123
123
 
124
124
  cachedTextDecoder.decode();
@@ -233,7 +233,7 @@ function makeMutClosure(arg0, arg1, dtor, f) {
233
233
  return real;
234
234
  }
235
235
  function __wbg_adapter_48(arg0, arg1, arg2) {
236
- wasm._dyn_core_80dd73c7ef3d55e5___ops__function__FnMut_______Output______as_wasm_bindgen_19194eebc680be5___closure__WasmClosure___describe__invoke___wasm_bindgen_19194eebc680be5___JsValue_____(arg0, arg1, addHeapObject(arg2));
236
+ wasm._dyn_core_6b630c532df341d7___ops__function__FnMut_______Output______as_wasm_bindgen_954504bb14301dbb___closure__WasmClosure___describe__invoke___wasm_bindgen_954504bb14301dbb___JsValue_____(arg0, arg1, addHeapObject(arg2));
237
237
  }
238
238
 
239
239
  /**
@@ -376,7 +376,7 @@ function handleError(f, args) {
376
376
  }
377
377
  }
378
378
  function __wbg_adapter_125(arg0, arg1, arg2, arg3) {
379
- wasm.wasm_bindgen_19194eebc680be5___convert__closures__invoke2_mut___wasm_bindgen_19194eebc680be5___JsValue__wasm_bindgen_19194eebc680be5___JsValue_____(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
379
+ wasm.wasm_bindgen_954504bb14301dbb___convert__closures__invoke2_mut___wasm_bindgen_954504bb14301dbb___JsValue__wasm_bindgen_954504bb14301dbb___JsValue_____(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
380
380
  }
381
381
 
382
382
  module.exports.__wbindgen_object_drop_ref = function(arg0) {
@@ -403,21 +403,6 @@ module.exports.__wbindgen_is_bigint = function(arg0) {
403
403
  return ret;
404
404
  };
405
405
 
406
- module.exports.__wbindgen_bigint_from_i64 = function(arg0) {
407
- const ret = arg0;
408
- return addHeapObject(ret);
409
- };
410
-
411
- module.exports.__wbindgen_jsval_eq = function(arg0, arg1) {
412
- const ret = getObject(arg0) === getObject(arg1);
413
- return ret;
414
- };
415
-
416
- module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
417
- const ret = BigInt.asUintN(64, arg0);
418
- return addHeapObject(ret);
419
- };
420
-
421
406
  module.exports.__wbindgen_number_get = function(arg0, arg1) {
422
407
  const obj = getObject(arg1);
423
408
  const ret = typeof(obj) === 'number' ? obj : undefined;
@@ -436,6 +421,21 @@ module.exports.__wbindgen_in = function(arg0, arg1) {
436
421
  return ret;
437
422
  };
438
423
 
424
+ module.exports.__wbindgen_bigint_from_i64 = function(arg0) {
425
+ const ret = arg0;
426
+ return addHeapObject(ret);
427
+ };
428
+
429
+ module.exports.__wbindgen_jsval_eq = function(arg0, arg1) {
430
+ const ret = getObject(arg0) === getObject(arg1);
431
+ return ret;
432
+ };
433
+
434
+ module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
435
+ const ret = BigInt.asUintN(64, arg0);
436
+ return addHeapObject(ret);
437
+ };
438
+
439
439
  module.exports.__wbindgen_is_string = function(arg0) {
440
440
  const ret = typeof(getObject(arg0)) === 'string';
441
441
  return ret;
@@ -543,16 +543,16 @@ module.exports.__wbg_node_1cd7a5d853dbea79 = function(arg0) {
543
543
  return addHeapObject(ret);
544
544
  };
545
545
 
546
- module.exports.__wbg_msCrypto_bcb970640f50a1e8 = function(arg0) {
547
- const ret = getObject(arg0).msCrypto;
548
- return addHeapObject(ret);
549
- };
550
-
551
546
  module.exports.__wbg_require_8f08ceecec0f4fee = function() { return handleError(function () {
552
547
  const ret = module.require;
553
548
  return addHeapObject(ret);
554
549
  }, arguments) };
555
550
 
551
+ module.exports.__wbg_msCrypto_bcb970640f50a1e8 = function(arg0) {
552
+ const ret = getObject(arg0).msCrypto;
553
+ return addHeapObject(ret);
554
+ };
555
+
556
556
  module.exports.__wbg_randomFillSync_dc1e9a60c158336d = function() { return handleError(function (arg0, arg1) {
557
557
  getObject(arg0).randomFillSync(takeObject(arg1));
558
558
  }, arguments) };
@@ -786,8 +786,8 @@ module.exports.__wbindgen_memory = function() {
786
786
  return addHeapObject(ret);
787
787
  };
788
788
 
789
- module.exports.__wbindgen_closure_wrapper15349 = function(arg0, arg1, arg2) {
790
- const ret = makeMutClosure(arg0, arg1, 3583, __wbg_adapter_48);
789
+ module.exports.__wbindgen_closure_wrapper15653 = function(arg0, arg1, arg2) {
790
+ const ret = makeMutClosure(arg0, arg1, 3545, __wbg_adapter_48);
791
791
  return addHeapObject(ret);
792
792
  };
793
793
 
package/wasm_bg.wasm CHANGED
Binary file