@next/swc-wasm-nodejs 14.1.1-canary.5 → 14.1.1-canary.50

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": "14.1.1-canary.5",
3
+ "version": "14.1.1-canary.50",
4
4
  "files": [
5
5
  "wasm_bg.wasm",
6
6
  "wasm.js",
package/wasm.d.ts CHANGED
@@ -1,18 +1,6 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  /**
4
- * @param {string} value
5
- * @param {any} opts
6
- * @returns {any}
7
- */
8
- export function mdxCompileSync(value: string, opts: any): any;
9
- /**
10
- * @param {string} value
11
- * @param {any} opts
12
- * @returns {Promise<any>}
13
- */
14
- export function mdxCompile(value: string, opts: any): Promise<any>;
15
- /**
16
4
  * @param {string} s
17
5
  * @param {any} opts
18
6
  * @returns {any}
@@ -48,3 +36,15 @@ export function parseSync(s: string, opts: any): any;
48
36
  * @returns {Promise<any>}
49
37
  */
50
38
  export function parse(s: string, opts: any): Promise<any>;
39
+ /**
40
+ * @param {string} value
41
+ * @param {any} opts
42
+ * @returns {any}
43
+ */
44
+ export function mdxCompileSync(value: string, opts: any): any;
45
+ /**
46
+ * @param {string} value
47
+ * @param {any} opts
48
+ * @returns {Promise<any>}
49
+ */
50
+ export function mdxCompile(value: string, opts: any): Promise<any>;
package/wasm.js CHANGED
@@ -225,18 +225,18 @@ function makeMutClosure(arg0, arg1, dtor, f) {
225
225
  return real;
226
226
  }
227
227
  function __wbg_adapter_48(arg0, arg1, arg2) {
228
- wasm.wasm_bindgen_3fb300003f18f35c___convert__closures__invoke1_mut___wasm_bindgen_3fb300003f18f35c___JsValue_____(arg0, arg1, addHeapObject(arg2));
228
+ wasm.wasm_bindgen_242df20baf80e22a___convert__closures__invoke1_mut___wasm_bindgen_242df20baf80e22a___JsValue_____(arg0, arg1, addHeapObject(arg2));
229
229
  }
230
230
 
231
231
  /**
232
- * @param {string} value
232
+ * @param {string} s
233
233
  * @param {any} opts
234
234
  * @returns {any}
235
235
  */
236
- module.exports.mdxCompileSync = function(value, opts) {
236
+ module.exports.minifySync = function(s, opts) {
237
237
  try {
238
238
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
239
- wasm.mdxCompileSync(retptr, addHeapObject(value), addHeapObject(opts));
239
+ wasm.minifySync(retptr, addHeapObject(s), addHeapObject(opts));
240
240
  var r0 = getInt32Memory0()[retptr / 4 + 0];
241
241
  var r1 = getInt32Memory0()[retptr / 4 + 1];
242
242
  var r2 = getInt32Memory0()[retptr / 4 + 2];
@@ -250,24 +250,24 @@ module.exports.mdxCompileSync = function(value, opts) {
250
250
  };
251
251
 
252
252
  /**
253
- * @param {string} value
253
+ * @param {string} s
254
254
  * @param {any} opts
255
255
  * @returns {Promise<any>}
256
256
  */
257
- module.exports.mdxCompile = function(value, opts) {
258
- const ret = wasm.mdxCompile(addHeapObject(value), addHeapObject(opts));
257
+ module.exports.minify = function(s, opts) {
258
+ const ret = wasm.minify(addHeapObject(s), addHeapObject(opts));
259
259
  return takeObject(ret);
260
260
  };
261
261
 
262
262
  /**
263
- * @param {string} s
263
+ * @param {any} s
264
264
  * @param {any} opts
265
265
  * @returns {any}
266
266
  */
267
- module.exports.minifySync = function(s, opts) {
267
+ module.exports.transformSync = function(s, opts) {
268
268
  try {
269
269
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
270
- wasm.minifySync(retptr, addHeapObject(s), addHeapObject(opts));
270
+ wasm.transformSync(retptr, addHeapObject(s), addHeapObject(opts));
271
271
  var r0 = getInt32Memory0()[retptr / 4 + 0];
272
272
  var r1 = getInt32Memory0()[retptr / 4 + 1];
273
273
  var r2 = getInt32Memory0()[retptr / 4 + 2];
@@ -281,24 +281,24 @@ module.exports.minifySync = function(s, opts) {
281
281
  };
282
282
 
283
283
  /**
284
- * @param {string} s
284
+ * @param {any} s
285
285
  * @param {any} opts
286
286
  * @returns {Promise<any>}
287
287
  */
288
- module.exports.minify = function(s, opts) {
289
- const ret = wasm.minify(addHeapObject(s), addHeapObject(opts));
288
+ module.exports.transform = function(s, opts) {
289
+ const ret = wasm.transform(addHeapObject(s), addHeapObject(opts));
290
290
  return takeObject(ret);
291
291
  };
292
292
 
293
293
  /**
294
- * @param {any} s
294
+ * @param {string} s
295
295
  * @param {any} opts
296
296
  * @returns {any}
297
297
  */
298
- module.exports.transformSync = function(s, opts) {
298
+ module.exports.parseSync = function(s, opts) {
299
299
  try {
300
300
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
301
- wasm.transformSync(retptr, addHeapObject(s), addHeapObject(opts));
301
+ wasm.parseSync(retptr, addHeapObject(s), addHeapObject(opts));
302
302
  var r0 = getInt32Memory0()[retptr / 4 + 0];
303
303
  var r1 = getInt32Memory0()[retptr / 4 + 1];
304
304
  var r2 = getInt32Memory0()[retptr / 4 + 2];
@@ -312,24 +312,24 @@ module.exports.transformSync = function(s, opts) {
312
312
  };
313
313
 
314
314
  /**
315
- * @param {any} s
315
+ * @param {string} s
316
316
  * @param {any} opts
317
317
  * @returns {Promise<any>}
318
318
  */
319
- module.exports.transform = function(s, opts) {
320
- const ret = wasm.transform(addHeapObject(s), addHeapObject(opts));
319
+ module.exports.parse = function(s, opts) {
320
+ const ret = wasm.parse(addHeapObject(s), addHeapObject(opts));
321
321
  return takeObject(ret);
322
322
  };
323
323
 
324
324
  /**
325
- * @param {string} s
325
+ * @param {string} value
326
326
  * @param {any} opts
327
327
  * @returns {any}
328
328
  */
329
- module.exports.parseSync = function(s, opts) {
329
+ module.exports.mdxCompileSync = function(value, opts) {
330
330
  try {
331
331
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
332
- wasm.parseSync(retptr, addHeapObject(s), addHeapObject(opts));
332
+ wasm.mdxCompileSync(retptr, addHeapObject(value), addHeapObject(opts));
333
333
  var r0 = getInt32Memory0()[retptr / 4 + 0];
334
334
  var r1 = getInt32Memory0()[retptr / 4 + 1];
335
335
  var r2 = getInt32Memory0()[retptr / 4 + 2];
@@ -343,12 +343,12 @@ module.exports.parseSync = function(s, opts) {
343
343
  };
344
344
 
345
345
  /**
346
- * @param {string} s
346
+ * @param {string} value
347
347
  * @param {any} opts
348
348
  * @returns {Promise<any>}
349
349
  */
350
- module.exports.parse = function(s, opts) {
351
- const ret = wasm.parse(addHeapObject(s), addHeapObject(opts));
350
+ module.exports.mdxCompile = function(value, opts) {
351
+ const ret = wasm.mdxCompile(addHeapObject(value), addHeapObject(opts));
352
352
  return takeObject(ret);
353
353
  };
354
354
 
@@ -368,7 +368,7 @@ function handleError(f, args) {
368
368
  }
369
369
  }
370
370
  function __wbg_adapter_121(arg0, arg1, arg2, arg3) {
371
- wasm.wasm_bindgen_3fb300003f18f35c___convert__closures__invoke2_mut___wasm_bindgen_3fb300003f18f35c___JsValue__wasm_bindgen_3fb300003f18f35c___JsValue_____(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
371
+ wasm.wasm_bindgen_242df20baf80e22a___convert__closures__invoke2_mut___wasm_bindgen_242df20baf80e22a___JsValue__wasm_bindgen_242df20baf80e22a___JsValue_____(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
372
372
  }
373
373
 
374
374
  module.exports.__wbindgen_object_drop_ref = function(arg0) {
@@ -769,8 +769,8 @@ module.exports.__wbindgen_memory = function() {
769
769
  return addHeapObject(ret);
770
770
  };
771
771
 
772
- module.exports.__wbindgen_closure_wrapper14478 = function(arg0, arg1, arg2) {
773
- const ret = makeMutClosure(arg0, arg1, 3211, __wbg_adapter_48);
772
+ module.exports.__wbindgen_closure_wrapper14566 = function(arg0, arg1, arg2) {
773
+ const ret = makeMutClosure(arg0, arg1, 3253, __wbg_adapter_48);
774
774
  return addHeapObject(ret);
775
775
  };
776
776
 
package/wasm_bg.wasm CHANGED
Binary file