@next/swc-wasm-nodejs 15.0.0-canary.2 → 15.0.0-canary.20

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": "15.0.0-canary.2",
3
+ "version": "15.0.0-canary.20",
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
@@ -233,18 +233,18 @@ function makeMutClosure(arg0, arg1, dtor, f) {
233
233
  return real;
234
234
  }
235
235
  function __wbg_adapter_48(arg0, arg1, arg2) {
236
- wasm._dyn_core_6b630c532df341d7___ops__function__FnMut_______Output______as_wasm_bindgen_954504bb14301dbb___closure__WasmClosure___describe__invoke___wasm_bindgen_954504bb14301dbb___JsValue_____(arg0, arg1, addHeapObject(arg2));
236
+ wasm._dyn_core_aeabf9a32a3a1d83___ops__function__FnMut_______Output______as_wasm_bindgen_d80982d5510bb6b2___closure__WasmClosure___describe__invoke___wasm_bindgen_d80982d5510bb6b2___JsValue_____(arg0, arg1, addHeapObject(arg2));
237
237
  }
238
238
 
239
239
  /**
240
- * @param {string} value
240
+ * @param {string} s
241
241
  * @param {any} opts
242
242
  * @returns {any}
243
243
  */
244
- module.exports.mdxCompileSync = function(value, opts) {
244
+ module.exports.minifySync = function(s, opts) {
245
245
  try {
246
246
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
247
- wasm.mdxCompileSync(retptr, addHeapObject(value), addHeapObject(opts));
247
+ wasm.minifySync(retptr, addHeapObject(s), addHeapObject(opts));
248
248
  var r0 = getInt32Memory0()[retptr / 4 + 0];
249
249
  var r1 = getInt32Memory0()[retptr / 4 + 1];
250
250
  var r2 = getInt32Memory0()[retptr / 4 + 2];
@@ -258,24 +258,24 @@ module.exports.mdxCompileSync = function(value, opts) {
258
258
  };
259
259
 
260
260
  /**
261
- * @param {string} value
261
+ * @param {string} s
262
262
  * @param {any} opts
263
263
  * @returns {Promise<any>}
264
264
  */
265
- module.exports.mdxCompile = function(value, opts) {
266
- const ret = wasm.mdxCompile(addHeapObject(value), addHeapObject(opts));
265
+ module.exports.minify = function(s, opts) {
266
+ const ret = wasm.minify(addHeapObject(s), addHeapObject(opts));
267
267
  return takeObject(ret);
268
268
  };
269
269
 
270
270
  /**
271
- * @param {string} s
271
+ * @param {any} s
272
272
  * @param {any} opts
273
273
  * @returns {any}
274
274
  */
275
- module.exports.minifySync = function(s, opts) {
275
+ module.exports.transformSync = function(s, opts) {
276
276
  try {
277
277
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
278
- wasm.minifySync(retptr, addHeapObject(s), addHeapObject(opts));
278
+ wasm.transformSync(retptr, addHeapObject(s), addHeapObject(opts));
279
279
  var r0 = getInt32Memory0()[retptr / 4 + 0];
280
280
  var r1 = getInt32Memory0()[retptr / 4 + 1];
281
281
  var r2 = getInt32Memory0()[retptr / 4 + 2];
@@ -289,24 +289,24 @@ module.exports.minifySync = function(s, opts) {
289
289
  };
290
290
 
291
291
  /**
292
- * @param {string} s
292
+ * @param {any} s
293
293
  * @param {any} opts
294
294
  * @returns {Promise<any>}
295
295
  */
296
- module.exports.minify = function(s, opts) {
297
- const ret = wasm.minify(addHeapObject(s), addHeapObject(opts));
296
+ module.exports.transform = function(s, opts) {
297
+ const ret = wasm.transform(addHeapObject(s), addHeapObject(opts));
298
298
  return takeObject(ret);
299
299
  };
300
300
 
301
301
  /**
302
- * @param {any} s
302
+ * @param {string} s
303
303
  * @param {any} opts
304
304
  * @returns {any}
305
305
  */
306
- module.exports.transformSync = function(s, opts) {
306
+ module.exports.parseSync = function(s, opts) {
307
307
  try {
308
308
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
309
- wasm.transformSync(retptr, addHeapObject(s), addHeapObject(opts));
309
+ wasm.parseSync(retptr, addHeapObject(s), addHeapObject(opts));
310
310
  var r0 = getInt32Memory0()[retptr / 4 + 0];
311
311
  var r1 = getInt32Memory0()[retptr / 4 + 1];
312
312
  var r2 = getInt32Memory0()[retptr / 4 + 2];
@@ -320,24 +320,24 @@ module.exports.transformSync = function(s, opts) {
320
320
  };
321
321
 
322
322
  /**
323
- * @param {any} s
323
+ * @param {string} s
324
324
  * @param {any} opts
325
325
  * @returns {Promise<any>}
326
326
  */
327
- module.exports.transform = function(s, opts) {
328
- const ret = wasm.transform(addHeapObject(s), addHeapObject(opts));
327
+ module.exports.parse = function(s, opts) {
328
+ const ret = wasm.parse(addHeapObject(s), addHeapObject(opts));
329
329
  return takeObject(ret);
330
330
  };
331
331
 
332
332
  /**
333
- * @param {string} s
333
+ * @param {string} value
334
334
  * @param {any} opts
335
335
  * @returns {any}
336
336
  */
337
- module.exports.parseSync = function(s, opts) {
337
+ module.exports.mdxCompileSync = function(value, opts) {
338
338
  try {
339
339
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
340
- wasm.parseSync(retptr, addHeapObject(s), addHeapObject(opts));
340
+ wasm.mdxCompileSync(retptr, addHeapObject(value), addHeapObject(opts));
341
341
  var r0 = getInt32Memory0()[retptr / 4 + 0];
342
342
  var r1 = getInt32Memory0()[retptr / 4 + 1];
343
343
  var r2 = getInt32Memory0()[retptr / 4 + 2];
@@ -351,12 +351,12 @@ module.exports.parseSync = function(s, opts) {
351
351
  };
352
352
 
353
353
  /**
354
- * @param {string} s
354
+ * @param {string} value
355
355
  * @param {any} opts
356
356
  * @returns {Promise<any>}
357
357
  */
358
- module.exports.parse = function(s, opts) {
359
- const ret = wasm.parse(addHeapObject(s), addHeapObject(opts));
358
+ module.exports.mdxCompile = function(value, opts) {
359
+ const ret = wasm.mdxCompile(addHeapObject(value), addHeapObject(opts));
360
360
  return takeObject(ret);
361
361
  };
362
362
 
@@ -376,7 +376,7 @@ function handleError(f, args) {
376
376
  }
377
377
  }
378
378
  function __wbg_adapter_125(arg0, arg1, arg2, arg3) {
379
- wasm.wasm_bindgen_954504bb14301dbb___convert__closures__invoke2_mut___wasm_bindgen_954504bb14301dbb___JsValue__wasm_bindgen_954504bb14301dbb___JsValue_____(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
379
+ wasm.wasm_bindgen_d80982d5510bb6b2___convert__closures__invoke2_mut___wasm_bindgen_d80982d5510bb6b2___JsValue__wasm_bindgen_d80982d5510bb6b2___JsValue_____(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
380
380
  }
381
381
 
382
382
  module.exports.__wbindgen_object_drop_ref = function(arg0) {
@@ -446,13 +446,13 @@ module.exports.__wbindgen_is_undefined = function(arg0) {
446
446
  return ret;
447
447
  };
448
448
 
449
- module.exports.__wbindgen_error_new = function(arg0, arg1) {
450
- const ret = new Error(getStringFromWasm0(arg0, arg1));
449
+ module.exports.__wbindgen_string_new = function(arg0, arg1) {
450
+ const ret = getStringFromWasm0(arg0, arg1);
451
451
  return addHeapObject(ret);
452
452
  };
453
453
 
454
- module.exports.__wbindgen_string_new = function(arg0, arg1) {
455
- const ret = getStringFromWasm0(arg0, arg1);
454
+ module.exports.__wbindgen_error_new = function(arg0, arg1) {
455
+ const ret = new Error(getStringFromWasm0(arg0, arg1));
456
456
  return addHeapObject(ret);
457
457
  };
458
458
 
@@ -475,16 +475,6 @@ if (arg0 !== 0) { wasm.__wbindgen_free(arg0, arg1, 1); }
475
475
  console.error(v0);
476
476
  };
477
477
 
478
- module.exports.__wbg_queueMicrotask_f82fc5d1e8f816ae = function(arg0) {
479
- const ret = getObject(arg0).queueMicrotask;
480
- return addHeapObject(ret);
481
- };
482
-
483
- module.exports.__wbindgen_is_function = function(arg0) {
484
- const ret = typeof(getObject(arg0)) === 'function';
485
- return ret;
486
- };
487
-
488
478
  module.exports.__wbindgen_cb_drop = function(arg0) {
489
479
  const obj = takeObject(arg0).original;
490
480
  if (obj.cnt-- == 1) {
@@ -499,6 +489,16 @@ module.exports.__wbg_queueMicrotask_f61ee94ee663068b = function(arg0) {
499
489
  queueMicrotask(getObject(arg0));
500
490
  };
501
491
 
492
+ module.exports.__wbg_queueMicrotask_f82fc5d1e8f816ae = function(arg0) {
493
+ const ret = getObject(arg0).queueMicrotask;
494
+ return addHeapObject(ret);
495
+ };
496
+
497
+ module.exports.__wbindgen_is_function = function(arg0) {
498
+ const ret = typeof(getObject(arg0)) === 'function';
499
+ return ret;
500
+ };
501
+
502
502
  module.exports.__wbindgen_object_clone_ref = function(arg0) {
503
503
  const ret = getObject(arg0);
504
504
  return addHeapObject(ret);
@@ -523,6 +523,14 @@ module.exports.__wbg_set_20cbc34131e76824 = function(arg0, arg1, arg2) {
523
523
  getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
524
524
  };
525
525
 
526
+ module.exports.__wbg_randomFillSync_dc1e9a60c158336d = function() { return handleError(function (arg0, arg1) {
527
+ getObject(arg0).randomFillSync(takeObject(arg1));
528
+ }, arguments) };
529
+
530
+ module.exports.__wbg_getRandomValues_37fa2ca9e4e07fab = function() { return handleError(function (arg0, arg1) {
531
+ getObject(arg0).getRandomValues(getObject(arg1));
532
+ }, arguments) };
533
+
526
534
  module.exports.__wbg_crypto_c48a774b022d20ac = function(arg0) {
527
535
  const ret = getObject(arg0).crypto;
528
536
  return addHeapObject(ret);
@@ -553,14 +561,6 @@ module.exports.__wbg_msCrypto_bcb970640f50a1e8 = function(arg0) {
553
561
  return addHeapObject(ret);
554
562
  };
555
563
 
556
- module.exports.__wbg_randomFillSync_dc1e9a60c158336d = function() { return handleError(function (arg0, arg1) {
557
- getObject(arg0).randomFillSync(takeObject(arg1));
558
- }, arguments) };
559
-
560
- module.exports.__wbg_getRandomValues_37fa2ca9e4e07fab = function() { return handleError(function (arg0, arg1) {
561
- getObject(arg0).getRandomValues(getObject(arg1));
562
- }, arguments) };
563
-
564
564
  module.exports.__wbg_get_0ee8ea3c7c984c45 = function(arg0, arg1) {
565
565
  const ret = getObject(arg0)[arg1 >>> 0];
566
566
  return addHeapObject(ret);
@@ -786,8 +786,8 @@ module.exports.__wbindgen_memory = function() {
786
786
  return addHeapObject(ret);
787
787
  };
788
788
 
789
- module.exports.__wbindgen_closure_wrapper15564 = function(arg0, arg1, arg2) {
790
- const ret = makeMutClosure(arg0, arg1, 3542, __wbg_adapter_48);
789
+ module.exports.__wbindgen_closure_wrapper15549 = function(arg0, arg1, arg2) {
790
+ const ret = makeMutClosure(arg0, arg1, 3369, __wbg_adapter_48);
791
791
  return addHeapObject(ret);
792
792
  };
793
793
 
package/wasm_bg.wasm CHANGED
Binary file