@next/swc-wasm-nodejs 16.2.1-canary.0 → 16.2.1-canary.10

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.1-canary.0",
3
+ "version": "16.2.1-canary.10",
4
4
  "files": [
5
5
  "wasm_bg.wasm",
6
6
  "wasm.js",
package/wasm.d.ts CHANGED
@@ -1,7 +1,5 @@
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>;
5
3
  export function minifySync(s: string, opts: any): any;
6
4
  export function minify(s: string, opts: any): Promise<any>;
7
5
  export function transformSync(s: any, opts: any): any;
@@ -10,3 +8,5 @@ export function parseSync(s: string, opts: any): any;
10
8
  export function parse(s: string, opts: any): Promise<any>;
11
9
  export function expandNextJsTemplate(content: Uint8Array, template_path: string, next_package_dir_path: string, replacements: any, injections: any, imports: any): string;
12
10
  export function codeFrameColumns(source: Uint8Array, location: any, options: any): string;
11
+ export function mdxCompileSync(value: string, opts: any): any;
12
+ export function mdxCompile(value: string, opts: any): Promise<any>;
package/wasm.js CHANGED
@@ -222,29 +222,6 @@ 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
-
248
225
  /**
249
226
  * @param {string} s
250
227
  * @param {any} opts
@@ -363,12 +340,35 @@ module.exports.codeFrameColumns = function(source, location, options) {
363
340
  return v2;
364
341
  };
365
342
 
343
+ /**
344
+ * @param {string} value
345
+ * @param {any} opts
346
+ * @returns {any}
347
+ */
348
+ module.exports.mdxCompileSync = function(value, opts) {
349
+ const ret = wasm.mdxCompileSync(value, opts);
350
+ if (ret[2]) {
351
+ throw takeFromExternrefTable0(ret[1]);
352
+ }
353
+ return takeFromExternrefTable0(ret[0]);
354
+ };
355
+
356
+ /**
357
+ * @param {string} value
358
+ * @param {any} opts
359
+ * @returns {Promise<any>}
360
+ */
361
+ module.exports.mdxCompile = function(value, opts) {
362
+ const ret = wasm.mdxCompile(value, opts);
363
+ return ret;
364
+ };
365
+
366
366
  function __wbg_adapter_50(arg0, arg1, arg2) {
367
- wasm.closure5233_externref_shim(arg0, arg1, arg2);
367
+ wasm.closure4296_externref_shim(arg0, arg1, arg2);
368
368
  }
369
369
 
370
370
  function __wbg_adapter_89(arg0, arg1, arg2, arg3) {
371
- wasm.closure457_externref_shim(arg0, arg1, arg2, arg3);
371
+ wasm.closure402_externref_shim(arg0, arg1, arg2, arg3);
372
372
  }
373
373
 
374
374
  module.exports.__wbg_String_fed4d24b68977888 = function(arg0, arg1) {
@@ -648,8 +648,8 @@ module.exports.__wbindgen_cb_drop = function(arg0) {
648
648
  return ret;
649
649
  };
650
650
 
651
- module.exports.__wbindgen_closure_wrapper37407 = function(arg0, arg1, arg2) {
652
- const ret = makeMutClosure(arg0, arg1, 5234, __wbg_adapter_50);
651
+ module.exports.__wbindgen_closure_wrapper29727 = function(arg0, arg1, arg2) {
652
+ const ret = makeMutClosure(arg0, arg1, 4297, __wbg_adapter_50);
653
653
  return ret;
654
654
  };
655
655
 
package/wasm_bg.wasm CHANGED
Binary file