@next/swc-wasm-nodejs 16.2.0-canary.4 → 16.2.0-canary.41

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-nodejs",
3
- "version": "16.2.0-canary.4",
3
+ "version": "16.2.0-canary.41",
4
4
  "files": [
5
5
  "wasm_bg.wasm",
6
6
  "wasm.js",
package/wasm.d.ts CHANGED
@@ -1,5 +1,7 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
+ export function mdxCompileSync(value: string, opts: any): any;
4
+ export function mdxCompile(value: string, opts: any): Promise<any>;
3
5
  export function minifySync(s: string, opts: any): any;
4
6
  export function minify(s: string, opts: any): Promise<any>;
5
7
  export function transformSync(s: any, opts: any): any;
@@ -7,5 +9,3 @@ export function transform(s: any, opts: any): Promise<any>;
7
9
  export function parseSync(s: string, opts: any): any;
8
10
  export function parse(s: string, opts: any): Promise<any>;
9
11
  export function expandNextJsTemplate(content: Uint8Array, template_path: string, next_package_dir_path: string, replacements: any, injections: any, imports: any): string;
10
- export function mdxCompileSync(value: string, opts: any): any;
11
- export function mdxCompile(value: string, opts: any): Promise<any>;
package/wasm.js CHANGED
@@ -222,6 +222,29 @@ function takeFromExternrefTable0(idx) {
222
222
  wasm.__externref_table_dealloc(idx);
223
223
  return value;
224
224
  }
225
+ /**
226
+ * @param {string} value
227
+ * @param {any} opts
228
+ * @returns {any}
229
+ */
230
+ module.exports.mdxCompileSync = function(value, opts) {
231
+ const ret = wasm.mdxCompileSync(value, opts);
232
+ if (ret[2]) {
233
+ throw takeFromExternrefTable0(ret[1]);
234
+ }
235
+ return takeFromExternrefTable0(ret[0]);
236
+ };
237
+
238
+ /**
239
+ * @param {string} value
240
+ * @param {any} opts
241
+ * @returns {Promise<any>}
242
+ */
243
+ module.exports.mdxCompile = function(value, opts) {
244
+ const ret = wasm.mdxCompile(value, opts);
245
+ return ret;
246
+ };
247
+
225
248
  /**
226
249
  * @param {string} s
227
250
  * @param {any} opts
@@ -322,35 +345,12 @@ module.exports.expandNextJsTemplate = function(content, template_path, next_pack
322
345
  return v4;
323
346
  };
324
347
 
325
- /**
326
- * @param {string} value
327
- * @param {any} opts
328
- * @returns {any}
329
- */
330
- module.exports.mdxCompileSync = function(value, opts) {
331
- const ret = wasm.mdxCompileSync(value, opts);
332
- if (ret[2]) {
333
- throw takeFromExternrefTable0(ret[1]);
334
- }
335
- return takeFromExternrefTable0(ret[0]);
336
- };
337
-
338
- /**
339
- * @param {string} value
340
- * @param {any} opts
341
- * @returns {Promise<any>}
342
- */
343
- module.exports.mdxCompile = function(value, opts) {
344
- const ret = wasm.mdxCompile(value, opts);
345
- return ret;
346
- };
347
-
348
348
  function __wbg_adapter_50(arg0, arg1, arg2) {
349
- wasm.closure1211_externref_shim(arg0, arg1, arg2);
349
+ wasm.closure1218_externref_shim(arg0, arg1, arg2);
350
350
  }
351
351
 
352
352
  function __wbg_adapter_89(arg0, arg1, arg2, arg3) {
353
- wasm.closure124_externref_shim(arg0, arg1, arg2, arg3);
353
+ wasm.closure125_externref_shim(arg0, arg1, arg2, arg3);
354
354
  }
355
355
 
356
356
  module.exports.__wbg_String_fed4d24b68977888 = function(arg0, arg1) {
@@ -630,8 +630,8 @@ module.exports.__wbindgen_cb_drop = function(arg0) {
630
630
  return ret;
631
631
  };
632
632
 
633
- module.exports.__wbindgen_closure_wrapper25309 = function(arg0, arg1, arg2) {
634
- const ret = makeMutClosure(arg0, arg1, 1212, __wbg_adapter_50);
633
+ module.exports.__wbindgen_closure_wrapper24905 = function(arg0, arg1, arg2) {
634
+ const ret = makeMutClosure(arg0, arg1, 1219, __wbg_adapter_50);
635
635
  return ret;
636
636
  };
637
637
 
package/wasm_bg.wasm CHANGED
Binary file