@swc/wasm 1.3.80 → 1.3.81
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 +36 -36
- package/wasm.js +21 -21
- package/wasm_bg.wasm +0 -0
package/package.json
CHANGED
package/wasm.d.ts
CHANGED
|
@@ -7,6 +7,42 @@
|
|
|
7
7
|
*/
|
|
8
8
|
export function browserslist(query: string, opts: any): any;
|
|
9
9
|
|
|
10
|
+
export function minify(src: string, opts?: JsMinifyOptions): Promise<Output>;
|
|
11
|
+
export function minifySync(code: string, opts?: JsMinifyOptions): Output;
|
|
12
|
+
|
|
13
|
+
export function parse(src: string, options: ParseOptions & {
|
|
14
|
+
isModule: false;
|
|
15
|
+
}): Promise<Script>;
|
|
16
|
+
export function parse(src: string, options?: ParseOptions): Promise<Module>;
|
|
17
|
+
export function parseSync(src: string, options: ParseOptions & {
|
|
18
|
+
isModule: false;
|
|
19
|
+
}): Script;
|
|
20
|
+
export function parseSync(src: string, options?: ParseOptions): Module;
|
|
21
|
+
|
|
22
|
+
export function print(m: Program, options?: Options): Promise<Output>;
|
|
23
|
+
export function printSync(m: Program, options?: Options): Output
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Note: this interface currently does not do _actual_ async work, only provides
|
|
27
|
+
* a corresponding async interfaces to the `@swc/core`'s interface.
|
|
28
|
+
*/
|
|
29
|
+
export function transform(
|
|
30
|
+
code: string | Program,
|
|
31
|
+
options?: Options,
|
|
32
|
+
experimental_plugin_bytes_resolver?: any
|
|
33
|
+
): Promise<Output>;
|
|
34
|
+
/**
|
|
35
|
+
* @param {string} code
|
|
36
|
+
* @param {Options} opts
|
|
37
|
+
* @param {Record<string, ArrayBuffer>} experimental_plugin_bytes_resolver An object contains bytes array for the plugin
|
|
38
|
+
* specified in config. Key of record represents the name of the plugin specified in config. Note this is an experimental
|
|
39
|
+
* interface, likely will change.
|
|
40
|
+
* @returns {Output}
|
|
41
|
+
*/
|
|
42
|
+
export function transformSync(code: string | Program, opts?: Options, experimental_plugin_bytes_resolver?: any): Output;
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
10
46
|
export interface Plugin {
|
|
11
47
|
(module: Program): Program;
|
|
12
48
|
}
|
|
@@ -2809,39 +2845,3 @@ export interface Invalid extends Node, HasSpan {
|
|
|
2809
2845
|
}
|
|
2810
2846
|
|
|
2811
2847
|
|
|
2812
|
-
|
|
2813
|
-
export function minify(src: string, opts?: JsMinifyOptions): Promise<Output>;
|
|
2814
|
-
export function minifySync(code: string, opts?: JsMinifyOptions): Output;
|
|
2815
|
-
|
|
2816
|
-
export function parse(src: string, options: ParseOptions & {
|
|
2817
|
-
isModule: false;
|
|
2818
|
-
}): Promise<Script>;
|
|
2819
|
-
export function parse(src: string, options?: ParseOptions): Promise<Module>;
|
|
2820
|
-
export function parseSync(src: string, options: ParseOptions & {
|
|
2821
|
-
isModule: false;
|
|
2822
|
-
}): Script;
|
|
2823
|
-
export function parseSync(src: string, options?: ParseOptions): Module;
|
|
2824
|
-
|
|
2825
|
-
export function print(m: Program, options?: Options): Promise<Output>;
|
|
2826
|
-
export function printSync(m: Program, options?: Options): Output
|
|
2827
|
-
|
|
2828
|
-
/**
|
|
2829
|
-
* Note: this interface currently does not do _actual_ async work, only provides
|
|
2830
|
-
* a corresponding async interfaces to the `@swc/core`'s interface.
|
|
2831
|
-
*/
|
|
2832
|
-
export function transform(
|
|
2833
|
-
code: string | Program,
|
|
2834
|
-
options?: Options,
|
|
2835
|
-
experimental_plugin_bytes_resolver?: any
|
|
2836
|
-
): Promise<Output>;
|
|
2837
|
-
/**
|
|
2838
|
-
* @param {string} code
|
|
2839
|
-
* @param {Options} opts
|
|
2840
|
-
* @param {Record<string, ArrayBuffer>} experimental_plugin_bytes_resolver An object contains bytes array for the plugin
|
|
2841
|
-
* specified in config. Key of record represents the name of the plugin specified in config. Note this is an experimental
|
|
2842
|
-
* interface, likely will change.
|
|
2843
|
-
* @returns {Output}
|
|
2844
|
-
*/
|
|
2845
|
-
export function transformSync(code: string | Program, opts?: Options, experimental_plugin_bytes_resolver?: any): Output;
|
|
2846
|
-
|
|
2847
|
-
|
package/wasm.js
CHANGED
|
@@ -400,11 +400,6 @@ module.exports.__wbindgen_object_drop_ref = function(arg0) {
|
|
|
400
400
|
takeObject(arg0);
|
|
401
401
|
};
|
|
402
402
|
|
|
403
|
-
module.exports.__wbg_get_27fe3dac1c4d0224 = function(arg0, arg1) {
|
|
404
|
-
const ret = getObject(arg0)[arg1 >>> 0];
|
|
405
|
-
return addHeapObject(ret);
|
|
406
|
-
};
|
|
407
|
-
|
|
408
403
|
module.exports.__wbg_next_88560ec06a094dea = function() { return handleError(function (arg0) {
|
|
409
404
|
const ret = getObject(arg0).next();
|
|
410
405
|
return addHeapObject(ret);
|
|
@@ -420,6 +415,11 @@ module.exports.__wbg_value_6ac8da5cc5b3efda = function(arg0) {
|
|
|
420
415
|
return addHeapObject(ret);
|
|
421
416
|
};
|
|
422
417
|
|
|
418
|
+
module.exports.__wbg_get_27fe3dac1c4d0224 = function(arg0, arg1) {
|
|
419
|
+
const ret = getObject(arg0)[arg1 >>> 0];
|
|
420
|
+
return addHeapObject(ret);
|
|
421
|
+
};
|
|
422
|
+
|
|
423
423
|
module.exports.__wbg_new_f9876326328f45ed = function() {
|
|
424
424
|
const ret = new Object();
|
|
425
425
|
return addHeapObject(ret);
|
|
@@ -553,6 +553,16 @@ module.exports.__wbg_iterator_55f114446221aa5a = function() {
|
|
|
553
553
|
return addHeapObject(ret);
|
|
554
554
|
};
|
|
555
555
|
|
|
556
|
+
module.exports.__wbindgen_number_new = function(arg0) {
|
|
557
|
+
const ret = arg0;
|
|
558
|
+
return addHeapObject(ret);
|
|
559
|
+
};
|
|
560
|
+
|
|
561
|
+
module.exports.__wbg_call_9495de66fdbe016b = function() { return handleError(function (arg0, arg1, arg2) {
|
|
562
|
+
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
|
|
563
|
+
return addHeapObject(ret);
|
|
564
|
+
}, arguments) };
|
|
565
|
+
|
|
556
566
|
module.exports.__wbg_set_388c4c6422704173 = function(arg0, arg1, arg2) {
|
|
557
567
|
const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
|
|
558
568
|
return addHeapObject(ret);
|
|
@@ -587,31 +597,21 @@ module.exports.__wbg_new_9d3a9ce4282a18a8 = function(arg0, arg1) {
|
|
|
587
597
|
}
|
|
588
598
|
};
|
|
589
599
|
|
|
590
|
-
module.exports.
|
|
591
|
-
const ret =
|
|
600
|
+
module.exports.__wbg_new0_25059e40b1c02766 = function() {
|
|
601
|
+
const ret = new Date();
|
|
592
602
|
return addHeapObject(ret);
|
|
593
603
|
};
|
|
594
604
|
|
|
595
|
-
module.exports.
|
|
596
|
-
const ret =
|
|
605
|
+
module.exports.__wbg_get_baf4855f9a986186 = function() { return handleError(function (arg0, arg1) {
|
|
606
|
+
const ret = Reflect.get(getObject(arg0), getObject(arg1));
|
|
597
607
|
return addHeapObject(ret);
|
|
598
608
|
}, arguments) };
|
|
599
609
|
|
|
600
|
-
module.exports.__wbg_new0_25059e40b1c02766 = function() {
|
|
601
|
-
const ret = new Date();
|
|
602
|
-
return addHeapObject(ret);
|
|
603
|
-
};
|
|
604
|
-
|
|
605
610
|
module.exports.__wbg_getTimezoneOffset_2a6b27fb18493a56 = function(arg0) {
|
|
606
611
|
const ret = getObject(arg0).getTimezoneOffset();
|
|
607
612
|
return ret;
|
|
608
613
|
};
|
|
609
614
|
|
|
610
|
-
module.exports.__wbg_get_baf4855f9a986186 = function() { return handleError(function (arg0, arg1) {
|
|
611
|
-
const ret = Reflect.get(getObject(arg0), getObject(arg1));
|
|
612
|
-
return addHeapObject(ret);
|
|
613
|
-
}, arguments) };
|
|
614
|
-
|
|
615
615
|
module.exports.__wbg_getTime_7c59072d1651a3cf = function(arg0) {
|
|
616
616
|
const ret = getObject(arg0).getTime();
|
|
617
617
|
return ret;
|
|
@@ -821,8 +821,8 @@ module.exports.__wbg_then_ec5db6d509eb475f = function(arg0, arg1) {
|
|
|
821
821
|
return addHeapObject(ret);
|
|
822
822
|
};
|
|
823
823
|
|
|
824
|
-
module.exports.
|
|
825
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
824
|
+
module.exports.__wbindgen_closure_wrapper15377 = function(arg0, arg1, arg2) {
|
|
825
|
+
const ret = makeMutClosure(arg0, arg1, 224, __wbg_adapter_50);
|
|
826
826
|
return addHeapObject(ret);
|
|
827
827
|
};
|
|
828
828
|
|
package/wasm_bg.wasm
CHANGED
|
Binary file
|