@next/swc-wasm-nodejs 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-nodejs",
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,11 +1,11 @@
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;
package/wasm.js CHANGED
@@ -216,15 +216,6 @@ function debugString(val) {
216
216
  // TODO we could test for more things here, like `Set`s and `Map`s.
217
217
  return className;
218
218
  }
219
- /**
220
- * @param {string} value
221
- * @param {any} opts
222
- * @returns {Promise<any>}
223
- */
224
- module.exports.mdxCompile = function(value, opts) {
225
- const ret = wasm.mdxCompile(value, opts);
226
- return ret;
227
- };
228
219
 
229
220
  function takeFromExternrefTable0(idx) {
230
221
  const value = wasm.__wbindgen_export_4.get(idx);
@@ -244,6 +235,26 @@ module.exports.mdxCompileSync = function(value, opts) {
244
235
  return takeFromExternrefTable0(ret[0]);
245
236
  };
246
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
+ /**
249
+ * @param {string} s
250
+ * @param {any} opts
251
+ * @returns {Promise<any>}
252
+ */
253
+ module.exports.parse = function(s, opts) {
254
+ const ret = wasm.parse(s, opts);
255
+ return ret;
256
+ };
257
+
247
258
  /**
248
259
  * @param {string} s
249
260
  * @param {any} opts
@@ -285,29 +296,6 @@ module.exports.expandNextJsTemplate = function(content, template_path, next_pack
285
296
  return v4;
286
297
  };
287
298
 
288
- /**
289
- * @param {string} s
290
- * @param {any} opts
291
- * @returns {any}
292
- */
293
- module.exports.parseSync = function(s, opts) {
294
- const ret = wasm.parseSync(s, opts);
295
- if (ret[2]) {
296
- throw takeFromExternrefTable0(ret[1]);
297
- }
298
- return takeFromExternrefTable0(ret[0]);
299
- };
300
-
301
- /**
302
- * @param {string} s
303
- * @param {any} opts
304
- * @returns {Promise<any>}
305
- */
306
- module.exports.parse = function(s, opts) {
307
- const ret = wasm.parse(s, opts);
308
- return ret;
309
- };
310
-
311
299
  /**
312
300
  * @param {any} s
313
301
  * @param {any} opts
@@ -344,8 +332,21 @@ module.exports.transformSync = function(s, opts) {
344
332
  return takeFromExternrefTable0(ret[0]);
345
333
  };
346
334
 
335
+ /**
336
+ * @param {string} s
337
+ * @param {any} opts
338
+ * @returns {any}
339
+ */
340
+ module.exports.parseSync = function(s, opts) {
341
+ const ret = wasm.parseSync(s, opts);
342
+ if (ret[2]) {
343
+ throw takeFromExternrefTable0(ret[1]);
344
+ }
345
+ return takeFromExternrefTable0(ret[0]);
346
+ };
347
+
347
348
  function __wbg_adapter_50(arg0, arg1, arg2) {
348
- wasm.closure1164_externref_shim(arg0, arg1, arg2);
349
+ wasm.closure1159_externref_shim(arg0, arg1, arg2);
349
350
  }
350
351
 
351
352
  function __wbg_adapter_79(arg0, arg1, arg2, arg3) {
@@ -629,8 +630,8 @@ module.exports.__wbindgen_cb_drop = function(arg0) {
629
630
  return ret;
630
631
  };
631
632
 
632
- module.exports.__wbindgen_closure_wrapper23626 = function(arg0, arg1, arg2) {
633
- const ret = makeMutClosure(arg0, arg1, 1165, __wbg_adapter_50);
633
+ module.exports.__wbindgen_closure_wrapper23586 = function(arg0, arg1, arg2) {
634
+ const ret = makeMutClosure(arg0, arg1, 1160, __wbg_adapter_50);
634
635
  return ret;
635
636
  };
636
637
 
package/wasm_bg.wasm CHANGED
Binary file