@next/swc-wasm-nodejs 13.4.20-canary.12 → 13.4.20-canary.13
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 +1 -1
- package/wasm.d.ts +12 -12
- package/wasm.js +49 -49
- package/wasm_bg.wasm +0 -0
package/package.json
CHANGED
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}
|
|
274
|
+
* @param {string} s
|
|
275
275
|
* @param {any} opts
|
|
276
276
|
* @returns {any}
|
|
277
277
|
*/
|
|
278
|
-
module.exports.
|
|
278
|
+
module.exports.minifySync = function(s, opts) {
|
|
279
279
|
try {
|
|
280
280
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
281
|
-
wasm.
|
|
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}
|
|
295
|
+
* @param {string} s
|
|
296
296
|
* @param {any} opts
|
|
297
297
|
* @returns {Promise<any>}
|
|
298
298
|
*/
|
|
299
|
-
module.exports.
|
|
300
|
-
const ret = wasm.
|
|
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 {
|
|
305
|
+
* @param {any} s
|
|
306
306
|
* @param {any} opts
|
|
307
307
|
* @returns {any}
|
|
308
308
|
*/
|
|
309
|
-
module.exports.
|
|
309
|
+
module.exports.transformSync = function(s, opts) {
|
|
310
310
|
try {
|
|
311
311
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
312
|
-
wasm.
|
|
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 {
|
|
326
|
+
* @param {any} s
|
|
327
327
|
* @param {any} opts
|
|
328
328
|
* @returns {Promise<any>}
|
|
329
329
|
*/
|
|
330
|
-
module.exports.
|
|
331
|
-
const ret = wasm.
|
|
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 {
|
|
336
|
+
* @param {string} s
|
|
337
337
|
* @param {any} opts
|
|
338
338
|
* @returns {any}
|
|
339
339
|
*/
|
|
340
|
-
module.exports.
|
|
340
|
+
module.exports.parseSync = function(s, opts) {
|
|
341
341
|
try {
|
|
342
342
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
343
|
-
wasm.
|
|
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 {
|
|
357
|
+
* @param {string} s
|
|
358
358
|
* @param {any} opts
|
|
359
359
|
* @returns {Promise<any>}
|
|
360
360
|
*/
|
|
361
|
-
module.exports.
|
|
362
|
-
const ret = wasm.
|
|
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}
|
|
367
|
+
* @param {string} value
|
|
368
368
|
* @param {any} opts
|
|
369
369
|
* @returns {any}
|
|
370
370
|
*/
|
|
371
|
-
module.exports.
|
|
371
|
+
module.exports.mdxCompileSync = function(value, opts) {
|
|
372
372
|
try {
|
|
373
373
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
374
|
-
wasm.
|
|
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}
|
|
388
|
+
* @param {string} value
|
|
389
389
|
* @param {any} opts
|
|
390
390
|
* @returns {Promise<any>}
|
|
391
391
|
*/
|
|
392
|
-
module.exports.
|
|
393
|
-
const ret = wasm.
|
|
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
|
|
|
@@ -697,11 +697,6 @@ module.exports.__wbg_instanceof_ArrayBuffer_a69f02ee4c4f5065 = function(arg0) {
|
|
|
697
697
|
return ret;
|
|
698
698
|
};
|
|
699
699
|
|
|
700
|
-
module.exports.__wbg_length_e498fbc24f9c1d4f = function(arg0) {
|
|
701
|
-
const ret = getObject(arg0).length;
|
|
702
|
-
return ret;
|
|
703
|
-
};
|
|
704
|
-
|
|
705
700
|
module.exports.__wbg_new_f9876326328f45ed = function() {
|
|
706
701
|
const ret = new Object();
|
|
707
702
|
return addHeapObject(ret);
|
|
@@ -716,6 +711,30 @@ module.exports.__wbg_isArray_39d28997bf6b96b4 = function(arg0) {
|
|
|
716
711
|
return ret;
|
|
717
712
|
};
|
|
718
713
|
|
|
714
|
+
module.exports.__wbg_length_e498fbc24f9c1d4f = function(arg0) {
|
|
715
|
+
const ret = getObject(arg0).length;
|
|
716
|
+
return ret;
|
|
717
|
+
};
|
|
718
|
+
|
|
719
|
+
module.exports.__wbg_new_9d3a9ce4282a18a8 = function(arg0, arg1) {
|
|
720
|
+
try {
|
|
721
|
+
var state0 = {a: arg0, b: arg1};
|
|
722
|
+
var cb0 = (arg0, arg1) => {
|
|
723
|
+
const a = state0.a;
|
|
724
|
+
state0.a = 0;
|
|
725
|
+
try {
|
|
726
|
+
return __wbg_adapter_110(a, state0.b, arg0, arg1);
|
|
727
|
+
} finally {
|
|
728
|
+
state0.a = a;
|
|
729
|
+
}
|
|
730
|
+
};
|
|
731
|
+
const ret = new Promise(cb0);
|
|
732
|
+
return addHeapObject(ret);
|
|
733
|
+
} finally {
|
|
734
|
+
state0.a = state0.b = 0;
|
|
735
|
+
}
|
|
736
|
+
};
|
|
737
|
+
|
|
719
738
|
module.exports.__wbindgen_is_bigint = function(arg0) {
|
|
720
739
|
const ret = typeof(getObject(arg0)) === 'bigint';
|
|
721
740
|
return ret;
|
|
@@ -748,25 +767,6 @@ module.exports.__wbg_isSafeInteger_8c4789029e885159 = function(arg0) {
|
|
|
748
767
|
return ret;
|
|
749
768
|
};
|
|
750
769
|
|
|
751
|
-
module.exports.__wbg_new_9d3a9ce4282a18a8 = function(arg0, arg1) {
|
|
752
|
-
try {
|
|
753
|
-
var state0 = {a: arg0, b: arg1};
|
|
754
|
-
var cb0 = (arg0, arg1) => {
|
|
755
|
-
const a = state0.a;
|
|
756
|
-
state0.a = 0;
|
|
757
|
-
try {
|
|
758
|
-
return __wbg_adapter_110(a, state0.b, arg0, arg1);
|
|
759
|
-
} finally {
|
|
760
|
-
state0.a = a;
|
|
761
|
-
}
|
|
762
|
-
};
|
|
763
|
-
const ret = new Promise(cb0);
|
|
764
|
-
return addHeapObject(ret);
|
|
765
|
-
} finally {
|
|
766
|
-
state0.a = state0.b = 0;
|
|
767
|
-
}
|
|
768
|
-
};
|
|
769
|
-
|
|
770
770
|
module.exports.__wbindgen_throw = function(arg0, arg1) {
|
|
771
771
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
772
772
|
};
|
|
@@ -791,7 +791,7 @@ module.exports.__wbg_then_ec5db6d509eb475f = function(arg0, arg1) {
|
|
|
791
791
|
return addHeapObject(ret);
|
|
792
792
|
};
|
|
793
793
|
|
|
794
|
-
module.exports.
|
|
794
|
+
module.exports.__wbindgen_closure_wrapper18122 = function(arg0, arg1, arg2) {
|
|
795
795
|
const ret = makeMutClosure(arg0, arg1, 257, __wbg_adapter_46);
|
|
796
796
|
return addHeapObject(ret);
|
|
797
797
|
};
|
package/wasm_bg.wasm
CHANGED
|
Binary file
|