@next/swc-wasm-web 16.3.0-canary.2 → 16.3.0-canary.63

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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@next/swc-wasm-web",
3
3
  "type": "module",
4
- "version": "16.3.0-canary.2",
4
+ "version": "16.3.0-canary.63",
5
5
  "files": [
6
6
  "wasm_bg.wasm",
7
7
  "wasm.js",
package/wasm.d.ts CHANGED
@@ -35,16 +35,16 @@ export interface InitOutput {
35
35
  readonly parseSync: (a: any, b: any) => [number, number, number];
36
36
  readonly transform: (a: any, b: any) => any;
37
37
  readonly transformSync: (a: any, b: any) => [number, number, number];
38
- readonly wasm_bindgen_235020ff9ac9cf73___closure__destroy___dyn_core_4b0d4602549cae5f___ops__function__FnMut__wasm_bindgen_235020ff9ac9cf73___JsValue____Output___core_4b0d4602549cae5f___result__Result_____wasm_bindgen_235020ff9ac9cf73___JsError___: (a: number, b: number) => void;
39
- readonly wasm_bindgen_235020ff9ac9cf73___convert__closures_____invoke___wasm_bindgen_235020ff9ac9cf73___JsValue__core_4b0d4602549cae5f___result__Result_____wasm_bindgen_235020ff9ac9cf73___JsError___true_: (a: number, b: number, c: any) => [number, number];
40
- readonly wasm_bindgen_235020ff9ac9cf73___convert__closures_____invoke___js_sys_89f358efc19b5c75___Function_fn_wasm_bindgen_235020ff9ac9cf73___JsValue_____wasm_bindgen_235020ff9ac9cf73___sys__Undefined___js_sys_89f358efc19b5c75___Function_fn_wasm_bindgen_235020ff9ac9cf73___JsValue_____wasm_bindgen_235020ff9ac9cf73___sys__Undefined_______true_: (a: number, b: number, c: any, d: any) => void;
38
+ readonly wasm_bindgen_545584c59f9599e___closure__destroy___dyn_core_6a186237ead2e71d___ops__function__FnMut__wasm_bindgen_545584c59f9599e___JsValue____Output___core_6a186237ead2e71d___result__Result_____wasm_bindgen_545584c59f9599e___JsError___: (a: number, b: number) => void;
39
+ readonly wasm_bindgen_545584c59f9599e___convert__closures_____invoke___wasm_bindgen_545584c59f9599e___JsValue__core_6a186237ead2e71d___result__Result_____wasm_bindgen_545584c59f9599e___JsError___true_: (a: number, b: number, c: any) => [number, number];
40
+ readonly 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: number, b: number, c: any, d: any) => void;
41
41
  readonly __wbindgen_externrefs: WebAssembly.Table;
42
- readonly __wbindgen_malloc_command_export: (a: number, b: number) => number;
43
- readonly __wbindgen_realloc_command_export: (a: number, b: number, c: number, d: number) => number;
44
- readonly __wbindgen_exn_store_command_export: (a: number) => void;
45
- readonly __externref_table_alloc_command_export: () => number;
46
- readonly __wbindgen_free_command_export: (a: number, b: number, c: number) => void;
47
- readonly __externref_table_dealloc_command_export: (a: number) => void;
42
+ readonly __wbindgen_malloc: (a: number, b: number) => number;
43
+ readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
44
+ readonly __wbindgen_exn_store: (a: number) => void;
45
+ readonly __externref_table_alloc: () => number;
46
+ readonly __wbindgen_free: (a: number, b: number, c: number) => void;
47
+ readonly __externref_table_dealloc: (a: number) => void;
48
48
  readonly __wbindgen_start: () => void;
49
49
  }
50
50
 
package/wasm.js CHANGED
@@ -7,14 +7,14 @@
7
7
  * @returns {string}
8
8
  */
9
9
  export 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
 
@@ -28,18 +28,18 @@ export function codeFrameColumns(source, location, options) {
28
28
  * @returns {string}
29
29
  */
30
30
  export function expandNextJsTemplate(content, template_path, next_package_dir_path, replacements, injections, imports) {
31
- const ptr0 = passArray8ToWasm0(content, wasm.__wbindgen_malloc_command_export);
31
+ const ptr0 = passArray8ToWasm0(content, wasm.__wbindgen_malloc);
32
32
  const len0 = WASM_VECTOR_LEN;
33
- const ptr1 = passStringToWasm0(template_path, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
33
+ const ptr1 = passStringToWasm0(template_path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
34
34
  const len1 = WASM_VECTOR_LEN;
35
- const ptr2 = passStringToWasm0(next_package_dir_path, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
35
+ const ptr2 = passStringToWasm0(next_package_dir_path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
36
36
  const len2 = WASM_VECTOR_LEN;
37
37
  const ret = wasm.expandNextJsTemplate(ptr0, len0, ptr1, len1, ptr2, len2, replacements, injections, imports);
38
38
  if (ret[3]) {
39
39
  throw takeFromExternrefTable0(ret[2]);
40
40
  }
41
41
  var v4 = getCachedStringFromWasm0(ret[0], ret[1]);
42
- if (ret[0] !== 0) { wasm.__wbindgen_free_command_export(ret[0], ret[1], 1); }
42
+ if (ret[0] !== 0) { wasm.__wbindgen_free(ret[0], ret[1], 1); }
43
43
  return v4;
44
44
  }
45
45
 
@@ -145,7 +145,7 @@ function __wbg_get_imports() {
145
145
  },
146
146
  __wbg_String_11905339415cf58e: function(arg0, arg1) {
147
147
  const ret = String(arg1);
148
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
148
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
149
149
  const len1 = WASM_VECTOR_LEN;
150
150
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
151
151
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
@@ -163,7 +163,7 @@ function __wbg_get_imports() {
163
163
  },
164
164
  __wbg___wbindgen_debug_string_5398f5bb970e0daa: function(arg0, arg1) {
165
165
  const ret = debugString(arg1);
166
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
166
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
167
167
  const len1 = WASM_VECTOR_LEN;
168
168
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
169
169
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
@@ -210,7 +210,7 @@ function __wbg_get_imports() {
210
210
  __wbg___wbindgen_string_get_395e606bd0ee4427: function(arg0, arg1) {
211
211
  const obj = arg1;
212
212
  const ret = typeof(obj) === 'string' ? obj : undefined;
213
- var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
213
+ var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
214
214
  var len1 = WASM_VECTOR_LEN;
215
215
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
216
216
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
@@ -240,7 +240,7 @@ function __wbg_get_imports() {
240
240
  },
241
241
  __wbg_error_a6fa202b58aa1cd3: function(arg0, arg1) {
242
242
  var v0 = getCachedStringFromWasm0(arg0, arg1);
243
- if (arg0 !== 0) { wasm.__wbindgen_free_command_export(arg0, arg1, 1); }
243
+ if (arg0 !== 0) { wasm.__wbindgen_free(arg0, arg1, 1); }
244
244
  console.error(v0);
245
245
  },
246
246
  __wbg_getRandomValues_6f269dae5feacb57: function() { return handleError(function (arg0, arg1) {
@@ -341,7 +341,7 @@ function __wbg_get_imports() {
341
341
  const a = state0.a;
342
342
  state0.a = 0;
343
343
  try {
344
- return wasm_bindgen_235020ff9ac9cf73___convert__closures_____invoke___js_sys_89f358efc19b5c75___Function_fn_wasm_bindgen_235020ff9ac9cf73___JsValue_____wasm_bindgen_235020ff9ac9cf73___sys__Undefined___js_sys_89f358efc19b5c75___Function_fn_wasm_bindgen_235020ff9ac9cf73___JsValue_____wasm_bindgen_235020ff9ac9cf73___sys__Undefined_______true_(a, state0.b, arg0, arg1);
344
+ 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);
345
345
  } finally {
346
346
  state0.a = a;
347
347
  }
@@ -382,7 +382,7 @@ function __wbg_get_imports() {
382
382
  },
383
383
  __wbg_stack_3b0d974bbf31e44f: function(arg0, arg1) {
384
384
  const ret = arg1.stack;
385
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
385
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
386
386
  const len1 = WASM_VECTOR_LEN;
387
387
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
388
388
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
@@ -412,8 +412,8 @@ function __wbg_get_imports() {
412
412
  return ret;
413
413
  },
414
414
  __wbindgen_cast_0000000000000001: function(arg0, arg1) {
415
- // Cast intrinsic for `Closure(Closure { dtor_idx: 4328, function: Function { arguments: [Externref], shim_idx: 420, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
416
- const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen_235020ff9ac9cf73___closure__destroy___dyn_core_4b0d4602549cae5f___ops__function__FnMut__wasm_bindgen_235020ff9ac9cf73___JsValue____Output___core_4b0d4602549cae5f___result__Result_____wasm_bindgen_235020ff9ac9cf73___JsError___, wasm_bindgen_235020ff9ac9cf73___convert__closures_____invoke___wasm_bindgen_235020ff9ac9cf73___JsValue__core_4b0d4602549cae5f___result__Result_____wasm_bindgen_235020ff9ac9cf73___JsError___true_);
415
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 4308, function: Function { arguments: [Externref], shim_idx: 421, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
416
+ 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_);
417
417
  return ret;
418
418
  },
419
419
  __wbindgen_cast_0000000000000002: function(arg0) {
@@ -453,19 +453,19 @@ function __wbg_get_imports() {
453
453
  };
454
454
  }
455
455
 
456
- function wasm_bindgen_235020ff9ac9cf73___convert__closures_____invoke___wasm_bindgen_235020ff9ac9cf73___JsValue__core_4b0d4602549cae5f___result__Result_____wasm_bindgen_235020ff9ac9cf73___JsError___true_(arg0, arg1, arg2) {
457
- const ret = wasm.wasm_bindgen_235020ff9ac9cf73___convert__closures_____invoke___wasm_bindgen_235020ff9ac9cf73___JsValue__core_4b0d4602549cae5f___result__Result_____wasm_bindgen_235020ff9ac9cf73___JsError___true_(arg0, arg1, arg2);
456
+ function wasm_bindgen_545584c59f9599e___convert__closures_____invoke___wasm_bindgen_545584c59f9599e___JsValue__core_6a186237ead2e71d___result__Result_____wasm_bindgen_545584c59f9599e___JsError___true_(arg0, arg1, arg2) {
457
+ 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);
458
458
  if (ret[1]) {
459
459
  throw takeFromExternrefTable0(ret[0]);
460
460
  }
461
461
  }
462
462
 
463
- function wasm_bindgen_235020ff9ac9cf73___convert__closures_____invoke___js_sys_89f358efc19b5c75___Function_fn_wasm_bindgen_235020ff9ac9cf73___JsValue_____wasm_bindgen_235020ff9ac9cf73___sys__Undefined___js_sys_89f358efc19b5c75___Function_fn_wasm_bindgen_235020ff9ac9cf73___JsValue_____wasm_bindgen_235020ff9ac9cf73___sys__Undefined_______true_(arg0, arg1, arg2, arg3) {
464
- wasm.wasm_bindgen_235020ff9ac9cf73___convert__closures_____invoke___js_sys_89f358efc19b5c75___Function_fn_wasm_bindgen_235020ff9ac9cf73___JsValue_____wasm_bindgen_235020ff9ac9cf73___sys__Undefined___js_sys_89f358efc19b5c75___Function_fn_wasm_bindgen_235020ff9ac9cf73___JsValue_____wasm_bindgen_235020ff9ac9cf73___sys__Undefined_______true_(arg0, arg1, arg2, arg3);
463
+ 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) {
464
+ 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);
465
465
  }
466
466
 
467
467
  function addToExternrefTable0(obj) {
468
- const idx = wasm.__externref_table_alloc_command_export();
468
+ const idx = wasm.__externref_table_alloc();
469
469
  wasm.__wbindgen_externrefs.set(idx, obj);
470
470
  return idx;
471
471
  }
@@ -580,7 +580,7 @@ function handleError(f, args) {
580
580
  return f.apply(this, args);
581
581
  } catch (e) {
582
582
  const idx = addToExternrefTable0(e);
583
- wasm.__wbindgen_exn_store_command_export(idx);
583
+ wasm.__wbindgen_exn_store(idx);
584
584
  }
585
585
  }
586
586
 
@@ -662,7 +662,7 @@ function passStringToWasm0(arg, malloc, realloc) {
662
662
 
663
663
  function takeFromExternrefTable0(idx) {
664
664
  const value = wasm.__wbindgen_externrefs.get(idx);
665
- wasm.__externref_table_dealloc_command_export(idx);
665
+ wasm.__externref_table_dealloc(idx);
666
666
  return value;
667
667
  }
668
668
 
package/wasm_bg.wasm CHANGED
Binary file