@next/swc-wasm-web 16.1.0-canary.13 → 16.1.0-canary.15

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@next/swc-wasm-web",
3
- "version": "16.1.0-canary.13",
3
+ "version": "16.1.0-canary.15",
4
4
  "files": [
5
5
  "wasm_bg.wasm",
6
6
  "wasm.js",
package/wasm.d.ts CHANGED
@@ -1,14 +1,14 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
- export function mdxCompile(value: string, opts: any): Promise<any>;
4
3
  export function mdxCompileSync(value: string, opts: any): any;
4
+ export function mdxCompile(value: string, opts: any): Promise<any>;
5
+ export function parse(s: string, opts: any): Promise<any>;
5
6
  export function minify(s: string, opts: any): Promise<any>;
6
7
  export function expandNextJsTemplate(content: Uint8Array, template_path: string, next_package_dir_path: string, replacements: any, injections: any, imports: any): string;
7
- export function parseSync(s: string, opts: any): any;
8
- export function parse(s: string, opts: any): Promise<any>;
9
8
  export function transform(s: any, opts: any): Promise<any>;
10
9
  export function minifySync(s: string, opts: any): any;
11
10
  export function transformSync(s: any, opts: any): any;
11
+ export function parseSync(s: string, opts: any): any;
12
12
 
13
13
  export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
14
14
 
@@ -31,7 +31,7 @@ export interface InitOutput {
31
31
  readonly __wbindgen_free: (a: number, b: number, c: number) => void;
32
32
  readonly __wbindgen_export_6: WebAssembly.Table;
33
33
  readonly __externref_table_dealloc: (a: number) => void;
34
- readonly closure1164_externref_shim: (a: number, b: number, c: any) => void;
34
+ readonly closure1159_externref_shim: (a: number, b: number, c: any) => void;
35
35
  readonly closure126_externref_shim: (a: number, b: number, c: any, d: any) => void;
36
36
  readonly __wbindgen_start: () => void;
37
37
  }
package/wasm.js CHANGED
@@ -212,15 +212,6 @@ function debugString(val) {
212
212
  // TODO we could test for more things here, like `Set`s and `Map`s.
213
213
  return className;
214
214
  }
215
- /**
216
- * @param {string} value
217
- * @param {any} opts
218
- * @returns {Promise<any>}
219
- */
220
- export function mdxCompile(value, opts) {
221
- const ret = wasm.mdxCompile(value, opts);
222
- return ret;
223
- }
224
215
 
225
216
  function takeFromExternrefTable0(idx) {
226
217
  const value = wasm.__wbindgen_export_4.get(idx);
@@ -240,6 +231,26 @@ export function mdxCompileSync(value, opts) {
240
231
  return takeFromExternrefTable0(ret[0]);
241
232
  }
242
233
 
234
+ /**
235
+ * @param {string} value
236
+ * @param {any} opts
237
+ * @returns {Promise<any>}
238
+ */
239
+ export function mdxCompile(value, opts) {
240
+ const ret = wasm.mdxCompile(value, opts);
241
+ return ret;
242
+ }
243
+
244
+ /**
245
+ * @param {string} s
246
+ * @param {any} opts
247
+ * @returns {Promise<any>}
248
+ */
249
+ export function parse(s, opts) {
250
+ const ret = wasm.parse(s, opts);
251
+ return ret;
252
+ }
253
+
243
254
  /**
244
255
  * @param {string} s
245
256
  * @param {any} opts
@@ -281,29 +292,6 @@ export function expandNextJsTemplate(content, template_path, next_package_dir_pa
281
292
  return v4;
282
293
  }
283
294
 
284
- /**
285
- * @param {string} s
286
- * @param {any} opts
287
- * @returns {any}
288
- */
289
- export function parseSync(s, opts) {
290
- const ret = wasm.parseSync(s, opts);
291
- if (ret[2]) {
292
- throw takeFromExternrefTable0(ret[1]);
293
- }
294
- return takeFromExternrefTable0(ret[0]);
295
- }
296
-
297
- /**
298
- * @param {string} s
299
- * @param {any} opts
300
- * @returns {Promise<any>}
301
- */
302
- export function parse(s, opts) {
303
- const ret = wasm.parse(s, opts);
304
- return ret;
305
- }
306
-
307
295
  /**
308
296
  * @param {any} s
309
297
  * @param {any} opts
@@ -340,8 +328,21 @@ export function transformSync(s, opts) {
340
328
  return takeFromExternrefTable0(ret[0]);
341
329
  }
342
330
 
331
+ /**
332
+ * @param {string} s
333
+ * @param {any} opts
334
+ * @returns {any}
335
+ */
336
+ export function parseSync(s, opts) {
337
+ const ret = wasm.parseSync(s, opts);
338
+ if (ret[2]) {
339
+ throw takeFromExternrefTable0(ret[1]);
340
+ }
341
+ return takeFromExternrefTable0(ret[0]);
342
+ }
343
+
343
344
  function __wbg_adapter_50(arg0, arg1, arg2) {
344
- wasm.closure1164_externref_shim(arg0, arg1, arg2);
345
+ wasm.closure1159_externref_shim(arg0, arg1, arg2);
345
346
  }
346
347
 
347
348
  function __wbg_adapter_79(arg0, arg1, arg2, arg3) {
@@ -611,8 +612,8 @@ function __wbg_get_imports() {
611
612
  const ret = false;
612
613
  return ret;
613
614
  };
614
- imports.wbg.__wbindgen_closure_wrapper23626 = function(arg0, arg1, arg2) {
615
- const ret = makeMutClosure(arg0, arg1, 1165, __wbg_adapter_50);
615
+ imports.wbg.__wbindgen_closure_wrapper23586 = function(arg0, arg1, arg2) {
616
+ const ret = makeMutClosure(arg0, arg1, 1160, __wbg_adapter_50);
616
617
  return ret;
617
618
  };
618
619
  imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
package/wasm_bg.wasm CHANGED
Binary file