@next/swc-wasm-nodejs 15.0.0-canary.16 → 15.0.0-canary.161

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.16",
3
+ "version": "15.0.0-canary.161",
4
4
  "files": [
5
5
  "wasm_bg.wasm",
6
6
  "wasm.js",
@@ -11,6 +11,6 @@
11
11
  "repository": {
12
12
  "type": "git",
13
13
  "url": "https://github.com/vercel/next.js",
14
- "directory": "packages/next-swc/crates/wasm"
14
+ "directory": "crates/wasm"
15
15
  }
16
16
  }
package/wasm.d.ts CHANGED
@@ -1,6 +1,18 @@
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
+ /**
4
16
  * @param {string} s
5
17
  * @param {any} opts
6
18
  * @returns {any}
@@ -36,15 +48,3 @@ export function parseSync(s: string, opts: any): any;
36
48
  * @returns {Promise<any>}
37
49
  */
38
50
  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,7 +233,7 @@ 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_aeabf9a32a3a1d83___ops__function__FnMut_______Output______as_wasm_bindgen_7b2e5aa333beae7a___closure__WasmClosure___describe__invoke___wasm_bindgen_7b2e5aa333beae7a___JsValue_____(arg0, arg1, addHeapObject(arg2));
236
+ wasm._dyn_core_b87cc866e879cbcf___ops__function__FnMut_______Output______as_wasm_bindgen_29bbf21a0ebc1aba___closure__WasmClosure___describe__invoke___wasm_bindgen_29bbf21a0ebc1aba___JsValue_____(arg0, arg1, addHeapObject(arg2));
237
237
  }
238
238
 
239
239
  function getCachedStringFromWasm0(ptr, len) {
@@ -252,18 +252,18 @@ function handleError(f, args) {
252
252
  }
253
253
  }
254
254
  function __wbg_adapter_109(arg0, arg1, arg2, arg3) {
255
- wasm.wasm_bindgen_7b2e5aa333beae7a___convert__closures__invoke2_mut___wasm_bindgen_7b2e5aa333beae7a___JsValue__wasm_bindgen_7b2e5aa333beae7a___JsValue_____(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
255
+ wasm.wasm_bindgen_29bbf21a0ebc1aba___convert__closures__invoke2_mut___wasm_bindgen_29bbf21a0ebc1aba___JsValue__wasm_bindgen_29bbf21a0ebc1aba___JsValue_____(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
256
256
  }
257
257
 
258
258
  /**
259
- * @param {string} s
259
+ * @param {string} value
260
260
  * @param {any} opts
261
261
  * @returns {any}
262
262
  */
263
- module.exports.minifySync = function(s, opts) {
263
+ module.exports.mdxCompileSync = function(value, opts) {
264
264
  try {
265
265
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
266
- wasm.minifySync(retptr, addHeapObject(s), addHeapObject(opts));
266
+ wasm.mdxCompileSync(retptr, addHeapObject(value), addHeapObject(opts));
267
267
  var r0 = getInt32Memory0()[retptr / 4 + 0];
268
268
  var r1 = getInt32Memory0()[retptr / 4 + 1];
269
269
  var r2 = getInt32Memory0()[retptr / 4 + 2];
@@ -277,24 +277,24 @@ module.exports.minifySync = function(s, opts) {
277
277
  };
278
278
 
279
279
  /**
280
- * @param {string} s
280
+ * @param {string} value
281
281
  * @param {any} opts
282
282
  * @returns {Promise<any>}
283
283
  */
284
- module.exports.minify = function(s, opts) {
285
- const ret = wasm.minify(addHeapObject(s), addHeapObject(opts));
284
+ module.exports.mdxCompile = function(value, opts) {
285
+ const ret = wasm.mdxCompile(addHeapObject(value), addHeapObject(opts));
286
286
  return takeObject(ret);
287
287
  };
288
288
 
289
289
  /**
290
- * @param {any} s
290
+ * @param {string} s
291
291
  * @param {any} opts
292
292
  * @returns {any}
293
293
  */
294
- module.exports.transformSync = function(s, opts) {
294
+ module.exports.minifySync = function(s, opts) {
295
295
  try {
296
296
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
297
- wasm.transformSync(retptr, addHeapObject(s), addHeapObject(opts));
297
+ wasm.minifySync(retptr, addHeapObject(s), addHeapObject(opts));
298
298
  var r0 = getInt32Memory0()[retptr / 4 + 0];
299
299
  var r1 = getInt32Memory0()[retptr / 4 + 1];
300
300
  var r2 = getInt32Memory0()[retptr / 4 + 2];
@@ -308,24 +308,24 @@ module.exports.transformSync = function(s, opts) {
308
308
  };
309
309
 
310
310
  /**
311
- * @param {any} s
311
+ * @param {string} s
312
312
  * @param {any} opts
313
313
  * @returns {Promise<any>}
314
314
  */
315
- module.exports.transform = function(s, opts) {
316
- const ret = wasm.transform(addHeapObject(s), addHeapObject(opts));
315
+ module.exports.minify = function(s, opts) {
316
+ const ret = wasm.minify(addHeapObject(s), addHeapObject(opts));
317
317
  return takeObject(ret);
318
318
  };
319
319
 
320
320
  /**
321
- * @param {string} s
321
+ * @param {any} s
322
322
  * @param {any} opts
323
323
  * @returns {any}
324
324
  */
325
- module.exports.parseSync = function(s, opts) {
325
+ module.exports.transformSync = function(s, opts) {
326
326
  try {
327
327
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
328
- wasm.parseSync(retptr, addHeapObject(s), addHeapObject(opts));
328
+ wasm.transformSync(retptr, addHeapObject(s), addHeapObject(opts));
329
329
  var r0 = getInt32Memory0()[retptr / 4 + 0];
330
330
  var r1 = getInt32Memory0()[retptr / 4 + 1];
331
331
  var r2 = getInt32Memory0()[retptr / 4 + 2];
@@ -339,24 +339,24 @@ module.exports.parseSync = function(s, opts) {
339
339
  };
340
340
 
341
341
  /**
342
- * @param {string} s
342
+ * @param {any} s
343
343
  * @param {any} opts
344
344
  * @returns {Promise<any>}
345
345
  */
346
- module.exports.parse = function(s, opts) {
347
- const ret = wasm.parse(addHeapObject(s), addHeapObject(opts));
346
+ module.exports.transform = function(s, opts) {
347
+ const ret = wasm.transform(addHeapObject(s), addHeapObject(opts));
348
348
  return takeObject(ret);
349
349
  };
350
350
 
351
351
  /**
352
- * @param {string} value
352
+ * @param {string} s
353
353
  * @param {any} opts
354
354
  * @returns {any}
355
355
  */
356
- module.exports.mdxCompileSync = function(value, opts) {
356
+ module.exports.parseSync = function(s, opts) {
357
357
  try {
358
358
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
359
- wasm.mdxCompileSync(retptr, addHeapObject(value), addHeapObject(opts));
359
+ wasm.parseSync(retptr, addHeapObject(s), addHeapObject(opts));
360
360
  var r0 = getInt32Memory0()[retptr / 4 + 0];
361
361
  var r1 = getInt32Memory0()[retptr / 4 + 1];
362
362
  var r2 = getInt32Memory0()[retptr / 4 + 2];
@@ -370,24 +370,24 @@ module.exports.mdxCompileSync = function(value, opts) {
370
370
  };
371
371
 
372
372
  /**
373
- * @param {string} value
373
+ * @param {string} s
374
374
  * @param {any} opts
375
375
  * @returns {Promise<any>}
376
376
  */
377
- module.exports.mdxCompile = function(value, opts) {
378
- const ret = wasm.mdxCompile(addHeapObject(value), addHeapObject(opts));
377
+ module.exports.parse = function(s, opts) {
378
+ const ret = wasm.parse(addHeapObject(s), addHeapObject(opts));
379
379
  return takeObject(ret);
380
380
  };
381
381
 
382
+ module.exports.__wbindgen_object_drop_ref = function(arg0) {
383
+ takeObject(arg0);
384
+ };
385
+
382
386
  module.exports.__wbg_new0_7a6141101f2206da = function() {
383
387
  const ret = new Date();
384
388
  return addHeapObject(ret);
385
389
  };
386
390
 
387
- module.exports.__wbindgen_object_drop_ref = function(arg0) {
388
- takeObject(arg0);
389
- };
390
-
391
391
  module.exports.__wbindgen_number_new = function(arg0) {
392
392
  const ret = arg0;
393
393
  return addHeapObject(ret);
@@ -432,7 +432,7 @@ module.exports.__wbindgen_object_clone_ref = function(arg0) {
432
432
  return addHeapObject(ret);
433
433
  };
434
434
 
435
- module.exports.__wbg_crypto_c48a774b022d20ac = function(arg0) {
435
+ module.exports.__wbg_crypto_1d1f22824a6a080c = function(arg0) {
436
436
  const ret = getObject(arg0).crypto;
437
437
  return addHeapObject(ret);
438
438
  };
@@ -443,17 +443,17 @@ module.exports.__wbindgen_is_object = function(arg0) {
443
443
  return ret;
444
444
  };
445
445
 
446
- module.exports.__wbg_process_298734cf255a885d = function(arg0) {
446
+ module.exports.__wbg_process_4a72847cc503995b = function(arg0) {
447
447
  const ret = getObject(arg0).process;
448
448
  return addHeapObject(ret);
449
449
  };
450
450
 
451
- module.exports.__wbg_versions_e2e78e134e3e5d01 = function(arg0) {
451
+ module.exports.__wbg_versions_f686565e586dd935 = function(arg0) {
452
452
  const ret = getObject(arg0).versions;
453
453
  return addHeapObject(ret);
454
454
  };
455
455
 
456
- module.exports.__wbg_node_1cd7a5d853dbea79 = function(arg0) {
456
+ module.exports.__wbg_node_104a2ff8d6ea03a2 = function(arg0) {
457
457
  const ret = getObject(arg0).node;
458
458
  return addHeapObject(ret);
459
459
  };
@@ -463,7 +463,7 @@ module.exports.__wbindgen_is_string = function(arg0) {
463
463
  return ret;
464
464
  };
465
465
 
466
- module.exports.__wbg_require_8f08ceecec0f4fee = function() { return handleError(function () {
466
+ module.exports.__wbg_require_cca90b1a94a0255b = function() { return handleError(function () {
467
467
  const ret = module.require;
468
468
  return addHeapObject(ret);
469
469
  }, arguments) };
@@ -483,7 +483,7 @@ module.exports.__wbg_call_67f2111acd2dfdb6 = function() { return handleError(fun
483
483
  return addHeapObject(ret);
484
484
  }, arguments) };
485
485
 
486
- module.exports.__wbg_msCrypto_bcb970640f50a1e8 = function(arg0) {
486
+ module.exports.__wbg_msCrypto_eb05e62b530a1508 = function(arg0) {
487
487
  const ret = getObject(arg0).msCrypto;
488
488
  return addHeapObject(ret);
489
489
  };
@@ -508,7 +508,7 @@ module.exports.__wbg_newwithbyteoffsetandlength_0de9ee56e9f6ee6e = function(arg0
508
508
  return addHeapObject(ret);
509
509
  };
510
510
 
511
- module.exports.__wbg_randomFillSync_dc1e9a60c158336d = function() { return handleError(function (arg0, arg1) {
511
+ module.exports.__wbg_randomFillSync_5c9c955aa56b6049 = function() { return handleError(function (arg0, arg1) {
512
512
  getObject(arg0).randomFillSync(takeObject(arg1));
513
513
  }, arguments) };
514
514
 
@@ -517,7 +517,7 @@ module.exports.__wbg_subarray_adc418253d76e2f1 = function(arg0, arg1, arg2) {
517
517
  return addHeapObject(ret);
518
518
  };
519
519
 
520
- module.exports.__wbg_getRandomValues_37fa2ca9e4e07fab = function() { return handleError(function (arg0, arg1) {
520
+ module.exports.__wbg_getRandomValues_3aa56aa6edec874c = function() { return handleError(function (arg0, arg1) {
521
521
  getObject(arg0).getRandomValues(getObject(arg1));
522
522
  }, arguments) };
523
523
 
@@ -786,8 +786,8 @@ module.exports.__wbg_queueMicrotask_f61ee94ee663068b = function(arg0) {
786
786
  queueMicrotask(getObject(arg0));
787
787
  };
788
788
 
789
- module.exports.__wbindgen_closure_wrapper26830 = function(arg0, arg1, arg2) {
790
- const ret = makeMutClosure(arg0, arg1, 442, __wbg_adapter_48);
789
+ module.exports.__wbindgen_closure_wrapper24193 = function(arg0, arg1, arg2) {
790
+ const ret = makeMutClosure(arg0, arg1, 1810, __wbg_adapter_48);
791
791
  return addHeapObject(ret);
792
792
  };
793
793
 
package/wasm_bg.wasm CHANGED
Binary file