@next/swc-wasm-web 15.2.2-canary.7 → 15.2.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,7 +1,7 @@
1
1
  {
2
2
  "name": "@next/swc-wasm-web",
3
3
  "type": "module",
4
- "version": "15.2.2-canary.7",
4
+ "version": "15.2.2",
5
5
  "files": [
6
6
  "wasm_bg.wasm",
7
7
  "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,19 +36,31 @@ 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>;
51
51
 
52
52
  export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
53
53
 
54
54
  export interface InitOutput {
55
55
  readonly memory: WebAssembly.Memory;
56
- readonly mdxCompileSync: (a: number, b: number, c: number) => void;
57
- readonly mdxCompile: (a: number, b: number) => number;
58
56
  readonly minifySync: (a: number, b: number, c: number) => void;
59
57
  readonly minify: (a: number, b: number) => number;
60
58
  readonly transformSync: (a: number, b: number, c: number) => void;
61
59
  readonly transform: (a: number, b: number) => number;
62
60
  readonly parseSync: (a: number, b: number, c: number) => void;
63
61
  readonly parse: (a: number, b: number) => number;
62
+ readonly mdxCompileSync: (a: number, b: number, c: number) => void;
63
+ readonly mdxCompile: (a: number, b: number) => number;
64
64
  readonly __wbindgen_malloc: (a: number, b: number) => number;
65
65
  readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
66
66
  readonly __wbindgen_export_2: WebAssembly.Table;
package/wasm.js CHANGED
@@ -253,14 +253,14 @@ function __wbg_adapter_113(arg0, arg1, arg2, arg3) {
253
253
  }
254
254
 
255
255
  /**
256
- * @param {string} value
256
+ * @param {string} s
257
257
  * @param {any} opts
258
258
  * @returns {any}
259
259
  */
260
- export function mdxCompileSync(value, opts) {
260
+ export function minifySync(s, opts) {
261
261
  try {
262
262
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
263
- wasm.mdxCompileSync(retptr, addHeapObject(value), addHeapObject(opts));
263
+ wasm.minifySync(retptr, addHeapObject(s), addHeapObject(opts));
264
264
  var r0 = getInt32Memory0()[retptr / 4 + 0];
265
265
  var r1 = getInt32Memory0()[retptr / 4 + 1];
266
266
  var r2 = getInt32Memory0()[retptr / 4 + 2];
@@ -274,24 +274,24 @@ export function mdxCompileSync(value, opts) {
274
274
  }
275
275
 
276
276
  /**
277
- * @param {string} value
277
+ * @param {string} s
278
278
  * @param {any} opts
279
279
  * @returns {Promise<any>}
280
280
  */
281
- export function mdxCompile(value, opts) {
282
- const ret = wasm.mdxCompile(addHeapObject(value), addHeapObject(opts));
281
+ export function minify(s, opts) {
282
+ const ret = wasm.minify(addHeapObject(s), addHeapObject(opts));
283
283
  return takeObject(ret);
284
284
  }
285
285
 
286
286
  /**
287
- * @param {string} s
287
+ * @param {any} s
288
288
  * @param {any} opts
289
289
  * @returns {any}
290
290
  */
291
- export function minifySync(s, opts) {
291
+ export function transformSync(s, opts) {
292
292
  try {
293
293
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
294
- wasm.minifySync(retptr, addHeapObject(s), addHeapObject(opts));
294
+ wasm.transformSync(retptr, addHeapObject(s), addHeapObject(opts));
295
295
  var r0 = getInt32Memory0()[retptr / 4 + 0];
296
296
  var r1 = getInt32Memory0()[retptr / 4 + 1];
297
297
  var r2 = getInt32Memory0()[retptr / 4 + 2];
@@ -305,24 +305,24 @@ export function minifySync(s, opts) {
305
305
  }
306
306
 
307
307
  /**
308
- * @param {string} s
308
+ * @param {any} s
309
309
  * @param {any} opts
310
310
  * @returns {Promise<any>}
311
311
  */
312
- export function minify(s, opts) {
313
- const ret = wasm.minify(addHeapObject(s), addHeapObject(opts));
312
+ export function transform(s, opts) {
313
+ const ret = wasm.transform(addHeapObject(s), addHeapObject(opts));
314
314
  return takeObject(ret);
315
315
  }
316
316
 
317
317
  /**
318
- * @param {any} s
318
+ * @param {string} s
319
319
  * @param {any} opts
320
320
  * @returns {any}
321
321
  */
322
- export function transformSync(s, opts) {
322
+ export function parseSync(s, opts) {
323
323
  try {
324
324
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
325
- wasm.transformSync(retptr, addHeapObject(s), addHeapObject(opts));
325
+ wasm.parseSync(retptr, addHeapObject(s), addHeapObject(opts));
326
326
  var r0 = getInt32Memory0()[retptr / 4 + 0];
327
327
  var r1 = getInt32Memory0()[retptr / 4 + 1];
328
328
  var r2 = getInt32Memory0()[retptr / 4 + 2];
@@ -336,24 +336,24 @@ export function transformSync(s, opts) {
336
336
  }
337
337
 
338
338
  /**
339
- * @param {any} s
339
+ * @param {string} s
340
340
  * @param {any} opts
341
341
  * @returns {Promise<any>}
342
342
  */
343
- export function transform(s, opts) {
344
- const ret = wasm.transform(addHeapObject(s), addHeapObject(opts));
343
+ export function parse(s, opts) {
344
+ const ret = wasm.parse(addHeapObject(s), addHeapObject(opts));
345
345
  return takeObject(ret);
346
346
  }
347
347
 
348
348
  /**
349
- * @param {string} s
349
+ * @param {string} value
350
350
  * @param {any} opts
351
351
  * @returns {any}
352
352
  */
353
- export function parseSync(s, opts) {
353
+ export function mdxCompileSync(value, opts) {
354
354
  try {
355
355
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
356
- wasm.parseSync(retptr, addHeapObject(s), addHeapObject(opts));
356
+ wasm.mdxCompileSync(retptr, addHeapObject(value), addHeapObject(opts));
357
357
  var r0 = getInt32Memory0()[retptr / 4 + 0];
358
358
  var r1 = getInt32Memory0()[retptr / 4 + 1];
359
359
  var r2 = getInt32Memory0()[retptr / 4 + 2];
@@ -367,12 +367,12 @@ export function parseSync(s, opts) {
367
367
  }
368
368
 
369
369
  /**
370
- * @param {string} s
370
+ * @param {string} value
371
371
  * @param {any} opts
372
372
  * @returns {Promise<any>}
373
373
  */
374
- export function parse(s, opts) {
375
- const ret = wasm.parse(addHeapObject(s), addHeapObject(opts));
374
+ export function mdxCompile(value, opts) {
375
+ const ret = wasm.mdxCompile(addHeapObject(value), addHeapObject(opts));
376
376
  return takeObject(ret);
377
377
  }
378
378
 
@@ -685,6 +685,20 @@ imports.wbg.__wbg_getwithrefkey_15c62c2b8546208d = function(arg0, arg1) {
685
685
  const ret = getObject(arg0)[getObject(arg1)];
686
686
  return addHeapObject(ret);
687
687
  };
688
+ imports.wbg.__wbg_new_632630b5cec17f21 = function() {
689
+ const ret = new Object();
690
+ return addHeapObject(ret);
691
+ };
692
+ imports.wbg.__wbg_set_20cbc34131e76824 = function(arg0, arg1, arg2) {
693
+ getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
694
+ };
695
+ imports.wbg.__wbg_new_75208e29bddfd88c = function() {
696
+ const ret = new Array();
697
+ return addHeapObject(ret);
698
+ };
699
+ imports.wbg.__wbg_set_79c308ecd9a1d091 = function(arg0, arg1, arg2) {
700
+ getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
701
+ };
688
702
  imports.wbg.__wbg_new_70828a4353259d4b = function(arg0, arg1) {
689
703
  try {
690
704
  var state0 = {a: arg0, b: arg1};
@@ -703,20 +717,6 @@ imports.wbg.__wbg_new_70828a4353259d4b = function(arg0, arg1) {
703
717
  state0.a = state0.b = 0;
704
718
  }
705
719
  };
706
- imports.wbg.__wbg_new_632630b5cec17f21 = function() {
707
- const ret = new Object();
708
- return addHeapObject(ret);
709
- };
710
- imports.wbg.__wbg_set_20cbc34131e76824 = function(arg0, arg1, arg2) {
711
- getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
712
- };
713
- imports.wbg.__wbg_new_75208e29bddfd88c = function() {
714
- const ret = new Array();
715
- return addHeapObject(ret);
716
- };
717
- imports.wbg.__wbg_set_79c308ecd9a1d091 = function(arg0, arg1, arg2) {
718
- getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
719
- };
720
720
  imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
721
721
  const ret = debugString(getObject(arg1));
722
722
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
@@ -751,7 +751,7 @@ imports.wbg.__wbindgen_cb_drop = function(arg0) {
751
751
  const ret = false;
752
752
  return ret;
753
753
  };
754
- imports.wbg.__wbindgen_closure_wrapper23922 = function(arg0, arg1, arg2) {
754
+ imports.wbg.__wbindgen_closure_wrapper23919 = function(arg0, arg1, arg2) {
755
755
  const ret = makeMutClosure(arg0, arg1, 1277, __wbg_adapter_48);
756
756
  return addHeapObject(ret);
757
757
  };
package/wasm_bg.wasm CHANGED
Binary file