@next/swc-wasm-nodejs 13.4.20-canary.0 → 13.4.20-canary.2

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": "13.4.20-canary.0",
3
+ "version": "13.4.20-canary.2",
4
4
  "files": [
5
5
  "wasm_bg.wasm",
6
6
  "wasm.js",
package/wasm.d.ts CHANGED
@@ -7,18 +7,6 @@
7
7
  */
8
8
  export function browserslist(query: string, opts: any): any;
9
9
  /**
10
- * @param {string} value
11
- * @param {any} opts
12
- * @returns {any}
13
- */
14
- export function mdxCompileSync(value: string, opts: any): any;
15
- /**
16
- * @param {string} value
17
- * @param {any} opts
18
- * @returns {Promise<any>}
19
- */
20
- export function mdxCompile(value: string, opts: any): Promise<any>;
21
- /**
22
10
  * @param {string} s
23
11
  * @param {any} opts
24
12
  * @returns {any}
@@ -54,3 +42,15 @@ export function parseSync(s: string, opts: any): any;
54
42
  * @returns {Promise<any>}
55
43
  */
56
44
  export function parse(s: string, opts: any): Promise<any>;
45
+ /**
46
+ * @param {string} value
47
+ * @param {any} opts
48
+ * @returns {any}
49
+ */
50
+ export function mdxCompileSync(value: string, opts: any): any;
51
+ /**
52
+ * @param {string} value
53
+ * @param {any} opts
54
+ * @returns {Promise<any>}
55
+ */
56
+ export function mdxCompile(value: string, opts: any): Promise<any>;
package/wasm.js CHANGED
@@ -271,14 +271,14 @@ function __wbg_adapter_110(arg0, arg1, arg2, arg3) {
271
271
  }
272
272
 
273
273
  /**
274
- * @param {string} value
274
+ * @param {string} s
275
275
  * @param {any} opts
276
276
  * @returns {any}
277
277
  */
278
- module.exports.mdxCompileSync = function(value, opts) {
278
+ module.exports.minifySync = function(s, opts) {
279
279
  try {
280
280
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
281
- wasm.mdxCompileSync(retptr, addHeapObject(value), addHeapObject(opts));
281
+ wasm.minifySync(retptr, addHeapObject(s), addHeapObject(opts));
282
282
  var r0 = getInt32Memory0()[retptr / 4 + 0];
283
283
  var r1 = getInt32Memory0()[retptr / 4 + 1];
284
284
  var r2 = getInt32Memory0()[retptr / 4 + 2];
@@ -292,24 +292,24 @@ module.exports.mdxCompileSync = function(value, opts) {
292
292
  };
293
293
 
294
294
  /**
295
- * @param {string} value
295
+ * @param {string} s
296
296
  * @param {any} opts
297
297
  * @returns {Promise<any>}
298
298
  */
299
- module.exports.mdxCompile = function(value, opts) {
300
- const ret = wasm.mdxCompile(addHeapObject(value), addHeapObject(opts));
299
+ module.exports.minify = function(s, opts) {
300
+ const ret = wasm.minify(addHeapObject(s), addHeapObject(opts));
301
301
  return takeObject(ret);
302
302
  };
303
303
 
304
304
  /**
305
- * @param {string} s
305
+ * @param {any} s
306
306
  * @param {any} opts
307
307
  * @returns {any}
308
308
  */
309
- module.exports.minifySync = function(s, opts) {
309
+ module.exports.transformSync = function(s, opts) {
310
310
  try {
311
311
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
312
- wasm.minifySync(retptr, addHeapObject(s), addHeapObject(opts));
312
+ wasm.transformSync(retptr, addHeapObject(s), addHeapObject(opts));
313
313
  var r0 = getInt32Memory0()[retptr / 4 + 0];
314
314
  var r1 = getInt32Memory0()[retptr / 4 + 1];
315
315
  var r2 = getInt32Memory0()[retptr / 4 + 2];
@@ -323,24 +323,24 @@ module.exports.minifySync = function(s, opts) {
323
323
  };
324
324
 
325
325
  /**
326
- * @param {string} s
326
+ * @param {any} s
327
327
  * @param {any} opts
328
328
  * @returns {Promise<any>}
329
329
  */
330
- module.exports.minify = function(s, opts) {
331
- const ret = wasm.minify(addHeapObject(s), addHeapObject(opts));
330
+ module.exports.transform = function(s, opts) {
331
+ const ret = wasm.transform(addHeapObject(s), addHeapObject(opts));
332
332
  return takeObject(ret);
333
333
  };
334
334
 
335
335
  /**
336
- * @param {any} s
336
+ * @param {string} s
337
337
  * @param {any} opts
338
338
  * @returns {any}
339
339
  */
340
- module.exports.transformSync = function(s, opts) {
340
+ module.exports.parseSync = function(s, opts) {
341
341
  try {
342
342
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
343
- wasm.transformSync(retptr, addHeapObject(s), addHeapObject(opts));
343
+ wasm.parseSync(retptr, addHeapObject(s), addHeapObject(opts));
344
344
  var r0 = getInt32Memory0()[retptr / 4 + 0];
345
345
  var r1 = getInt32Memory0()[retptr / 4 + 1];
346
346
  var r2 = getInt32Memory0()[retptr / 4 + 2];
@@ -354,24 +354,24 @@ module.exports.transformSync = function(s, opts) {
354
354
  };
355
355
 
356
356
  /**
357
- * @param {any} s
357
+ * @param {string} s
358
358
  * @param {any} opts
359
359
  * @returns {Promise<any>}
360
360
  */
361
- module.exports.transform = function(s, opts) {
362
- const ret = wasm.transform(addHeapObject(s), addHeapObject(opts));
361
+ module.exports.parse = function(s, opts) {
362
+ const ret = wasm.parse(addHeapObject(s), addHeapObject(opts));
363
363
  return takeObject(ret);
364
364
  };
365
365
 
366
366
  /**
367
- * @param {string} s
367
+ * @param {string} value
368
368
  * @param {any} opts
369
369
  * @returns {any}
370
370
  */
371
- module.exports.parseSync = function(s, opts) {
371
+ module.exports.mdxCompileSync = function(value, opts) {
372
372
  try {
373
373
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
374
- wasm.parseSync(retptr, addHeapObject(s), addHeapObject(opts));
374
+ wasm.mdxCompileSync(retptr, addHeapObject(value), addHeapObject(opts));
375
375
  var r0 = getInt32Memory0()[retptr / 4 + 0];
376
376
  var r1 = getInt32Memory0()[retptr / 4 + 1];
377
377
  var r2 = getInt32Memory0()[retptr / 4 + 2];
@@ -385,12 +385,12 @@ module.exports.parseSync = function(s, opts) {
385
385
  };
386
386
 
387
387
  /**
388
- * @param {string} s
388
+ * @param {string} value
389
389
  * @param {any} opts
390
390
  * @returns {Promise<any>}
391
391
  */
392
- module.exports.parse = function(s, opts) {
393
- const ret = wasm.parse(addHeapObject(s), addHeapObject(opts));
392
+ module.exports.mdxCompile = function(value, opts) {
393
+ const ret = wasm.mdxCompile(addHeapObject(value), addHeapObject(opts));
394
394
  return takeObject(ret);
395
395
  };
396
396
 
package/wasm_bg.wasm CHANGED
Binary file