@next/swc-wasm-nodejs 16.3.0-canary.3 → 16.3.0-canary.30

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 +21 -21
  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": "16.3.0-canary.3",
3
+ "version": "16.3.0-canary.30",
4
4
  "files": [
5
5
  "wasm_bg.wasm",
6
6
  "wasm.js",
package/wasm.js CHANGED
@@ -7,14 +7,14 @@
7
7
  * @returns {string}
8
8
  */
9
9
  function codeFrameColumns(source, location, options) {
10
- const ptr0 = passArray8ToWasm0(source, wasm.__wbindgen_malloc_command_export);
10
+ const ptr0 = passArray8ToWasm0(source, wasm.__wbindgen_malloc);
11
11
  const len0 = WASM_VECTOR_LEN;
12
12
  const ret = wasm.codeFrameColumns(ptr0, len0, location, options);
13
13
  if (ret[3]) {
14
14
  throw takeFromExternrefTable0(ret[2]);
15
15
  }
16
16
  var v2 = getCachedStringFromWasm0(ret[0], ret[1]);
17
- if (ret[0] !== 0) { wasm.__wbindgen_free_command_export(ret[0], ret[1], 1); }
17
+ if (ret[0] !== 0) { wasm.__wbindgen_free(ret[0], ret[1], 1); }
18
18
  return v2;
19
19
  }
20
20
  exports.codeFrameColumns = codeFrameColumns;
@@ -29,18 +29,18 @@ exports.codeFrameColumns = codeFrameColumns;
29
29
  * @returns {string}
30
30
  */
31
31
  function expandNextJsTemplate(content, template_path, next_package_dir_path, replacements, injections, imports) {
32
- const ptr0 = passArray8ToWasm0(content, wasm.__wbindgen_malloc_command_export);
32
+ const ptr0 = passArray8ToWasm0(content, wasm.__wbindgen_malloc);
33
33
  const len0 = WASM_VECTOR_LEN;
34
- const ptr1 = passStringToWasm0(template_path, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
34
+ const ptr1 = passStringToWasm0(template_path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
35
35
  const len1 = WASM_VECTOR_LEN;
36
- const ptr2 = passStringToWasm0(next_package_dir_path, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
36
+ const ptr2 = passStringToWasm0(next_package_dir_path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
37
37
  const len2 = WASM_VECTOR_LEN;
38
38
  const ret = wasm.expandNextJsTemplate(ptr0, len0, ptr1, len1, ptr2, len2, replacements, injections, imports);
39
39
  if (ret[3]) {
40
40
  throw takeFromExternrefTable0(ret[2]);
41
41
  }
42
42
  var v4 = getCachedStringFromWasm0(ret[0], ret[1]);
43
- if (ret[0] !== 0) { wasm.__wbindgen_free_command_export(ret[0], ret[1], 1); }
43
+ if (ret[0] !== 0) { wasm.__wbindgen_free(ret[0], ret[1], 1); }
44
44
  return v4;
45
45
  }
46
46
  exports.expandNextJsTemplate = expandNextJsTemplate;
@@ -155,7 +155,7 @@ function __wbg_get_imports() {
155
155
  },
156
156
  __wbg_String_11905339415cf58e: function(arg0, arg1) {
157
157
  const ret = String(arg1);
158
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
158
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
159
159
  const len1 = WASM_VECTOR_LEN;
160
160
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
161
161
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
@@ -173,7 +173,7 @@ function __wbg_get_imports() {
173
173
  },
174
174
  __wbg___wbindgen_debug_string_5398f5bb970e0daa: function(arg0, arg1) {
175
175
  const ret = debugString(arg1);
176
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
176
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
177
177
  const len1 = WASM_VECTOR_LEN;
178
178
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
179
179
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
@@ -220,7 +220,7 @@ function __wbg_get_imports() {
220
220
  __wbg___wbindgen_string_get_395e606bd0ee4427: function(arg0, arg1) {
221
221
  const obj = arg1;
222
222
  const ret = typeof(obj) === 'string' ? obj : undefined;
223
- var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
223
+ var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
224
224
  var len1 = WASM_VECTOR_LEN;
225
225
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
226
226
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
@@ -250,7 +250,7 @@ function __wbg_get_imports() {
250
250
  },
251
251
  __wbg_error_a6fa202b58aa1cd3: function(arg0, arg1) {
252
252
  var v0 = getCachedStringFromWasm0(arg0, arg1);
253
- if (arg0 !== 0) { wasm.__wbindgen_free_command_export(arg0, arg1, 1); }
253
+ if (arg0 !== 0) { wasm.__wbindgen_free(arg0, arg1, 1); }
254
254
  console.error(v0);
255
255
  },
256
256
  __wbg_getRandomValues_6f269dae5feacb57: function() { return handleError(function (arg0, arg1) {
@@ -351,7 +351,7 @@ function __wbg_get_imports() {
351
351
  const a = state0.a;
352
352
  state0.a = 0;
353
353
  try {
354
- return wasm_bindgen_2eab34b7dade483a___convert__closures_____invoke___js_sys_d6e382c71287af20___Function_fn_wasm_bindgen_2eab34b7dade483a___JsValue_____wasm_bindgen_2eab34b7dade483a___sys__Undefined___js_sys_d6e382c71287af20___Function_fn_wasm_bindgen_2eab34b7dade483a___JsValue_____wasm_bindgen_2eab34b7dade483a___sys__Undefined_______true_(a, state0.b, arg0, arg1);
354
+ return wasm_bindgen_545584c59f9599e___convert__closures_____invoke___js_sys_c209d563cf0eab7f___Function_fn_wasm_bindgen_545584c59f9599e___JsValue_____wasm_bindgen_545584c59f9599e___sys__Undefined___js_sys_c209d563cf0eab7f___Function_fn_wasm_bindgen_545584c59f9599e___JsValue_____wasm_bindgen_545584c59f9599e___sys__Undefined_______true_(a, state0.b, arg0, arg1);
355
355
  } finally {
356
356
  state0.a = a;
357
357
  }
@@ -392,7 +392,7 @@ function __wbg_get_imports() {
392
392
  },
393
393
  __wbg_stack_3b0d974bbf31e44f: function(arg0, arg1) {
394
394
  const ret = arg1.stack;
395
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
395
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
396
396
  const len1 = WASM_VECTOR_LEN;
397
397
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
398
398
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
@@ -422,8 +422,8 @@ function __wbg_get_imports() {
422
422
  return ret;
423
423
  },
424
424
  __wbindgen_cast_0000000000000001: function(arg0, arg1) {
425
- // Cast intrinsic for `Closure(Closure { dtor_idx: 4334, function: Function { arguments: [Externref], shim_idx: 421, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
426
- const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen_2eab34b7dade483a___closure__destroy___dyn_core_4b0d4602549cae5f___ops__function__FnMut__wasm_bindgen_2eab34b7dade483a___JsValue____Output___core_4b0d4602549cae5f___result__Result_____wasm_bindgen_2eab34b7dade483a___JsError___, wasm_bindgen_2eab34b7dade483a___convert__closures_____invoke___wasm_bindgen_2eab34b7dade483a___JsValue__core_4b0d4602549cae5f___result__Result_____wasm_bindgen_2eab34b7dade483a___JsError___true_);
425
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 4330, function: Function { arguments: [Externref], shim_idx: 419, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
426
+ const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen_545584c59f9599e___closure__destroy___dyn_core_6a186237ead2e71d___ops__function__FnMut__wasm_bindgen_545584c59f9599e___JsValue____Output___core_6a186237ead2e71d___result__Result_____wasm_bindgen_545584c59f9599e___JsError___, wasm_bindgen_545584c59f9599e___convert__closures_____invoke___wasm_bindgen_545584c59f9599e___JsValue__core_6a186237ead2e71d___result__Result_____wasm_bindgen_545584c59f9599e___JsError___true_);
427
427
  return ret;
428
428
  },
429
429
  __wbindgen_cast_0000000000000002: function(arg0) {
@@ -463,19 +463,19 @@ function __wbg_get_imports() {
463
463
  };
464
464
  }
465
465
 
466
- function wasm_bindgen_2eab34b7dade483a___convert__closures_____invoke___wasm_bindgen_2eab34b7dade483a___JsValue__core_4b0d4602549cae5f___result__Result_____wasm_bindgen_2eab34b7dade483a___JsError___true_(arg0, arg1, arg2) {
467
- const ret = wasm.wasm_bindgen_2eab34b7dade483a___convert__closures_____invoke___wasm_bindgen_2eab34b7dade483a___JsValue__core_4b0d4602549cae5f___result__Result_____wasm_bindgen_2eab34b7dade483a___JsError___true_(arg0, arg1, arg2);
466
+ function wasm_bindgen_545584c59f9599e___convert__closures_____invoke___wasm_bindgen_545584c59f9599e___JsValue__core_6a186237ead2e71d___result__Result_____wasm_bindgen_545584c59f9599e___JsError___true_(arg0, arg1, arg2) {
467
+ const ret = wasm.wasm_bindgen_545584c59f9599e___convert__closures_____invoke___wasm_bindgen_545584c59f9599e___JsValue__core_6a186237ead2e71d___result__Result_____wasm_bindgen_545584c59f9599e___JsError___true_(arg0, arg1, arg2);
468
468
  if (ret[1]) {
469
469
  throw takeFromExternrefTable0(ret[0]);
470
470
  }
471
471
  }
472
472
 
473
- function wasm_bindgen_2eab34b7dade483a___convert__closures_____invoke___js_sys_d6e382c71287af20___Function_fn_wasm_bindgen_2eab34b7dade483a___JsValue_____wasm_bindgen_2eab34b7dade483a___sys__Undefined___js_sys_d6e382c71287af20___Function_fn_wasm_bindgen_2eab34b7dade483a___JsValue_____wasm_bindgen_2eab34b7dade483a___sys__Undefined_______true_(arg0, arg1, arg2, arg3) {
474
- wasm.wasm_bindgen_2eab34b7dade483a___convert__closures_____invoke___js_sys_d6e382c71287af20___Function_fn_wasm_bindgen_2eab34b7dade483a___JsValue_____wasm_bindgen_2eab34b7dade483a___sys__Undefined___js_sys_d6e382c71287af20___Function_fn_wasm_bindgen_2eab34b7dade483a___JsValue_____wasm_bindgen_2eab34b7dade483a___sys__Undefined_______true_(arg0, arg1, arg2, arg3);
473
+ function wasm_bindgen_545584c59f9599e___convert__closures_____invoke___js_sys_c209d563cf0eab7f___Function_fn_wasm_bindgen_545584c59f9599e___JsValue_____wasm_bindgen_545584c59f9599e___sys__Undefined___js_sys_c209d563cf0eab7f___Function_fn_wasm_bindgen_545584c59f9599e___JsValue_____wasm_bindgen_545584c59f9599e___sys__Undefined_______true_(arg0, arg1, arg2, arg3) {
474
+ wasm.wasm_bindgen_545584c59f9599e___convert__closures_____invoke___js_sys_c209d563cf0eab7f___Function_fn_wasm_bindgen_545584c59f9599e___JsValue_____wasm_bindgen_545584c59f9599e___sys__Undefined___js_sys_c209d563cf0eab7f___Function_fn_wasm_bindgen_545584c59f9599e___JsValue_____wasm_bindgen_545584c59f9599e___sys__Undefined_______true_(arg0, arg1, arg2, arg3);
475
475
  }
476
476
 
477
477
  function addToExternrefTable0(obj) {
478
- const idx = wasm.__externref_table_alloc_command_export();
478
+ const idx = wasm.__externref_table_alloc();
479
479
  wasm.__wbindgen_externrefs.set(idx, obj);
480
480
  return idx;
481
481
  }
@@ -590,7 +590,7 @@ function handleError(f, args) {
590
590
  return f.apply(this, args);
591
591
  } catch (e) {
592
592
  const idx = addToExternrefTable0(e);
593
- wasm.__wbindgen_exn_store_command_export(idx);
593
+ wasm.__wbindgen_exn_store(idx);
594
594
  }
595
595
  }
596
596
 
@@ -672,7 +672,7 @@ function passStringToWasm0(arg, malloc, realloc) {
672
672
 
673
673
  function takeFromExternrefTable0(idx) {
674
674
  const value = wasm.__wbindgen_externrefs.get(idx);
675
- wasm.__externref_table_dealloc_command_export(idx);
675
+ wasm.__externref_table_dealloc(idx);
676
676
  return value;
677
677
  }
678
678
 
package/wasm_bg.wasm CHANGED
Binary file