@swc/wasm-web 1.10.0 → 1.10.1
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 +11 -11
- package/wasm_bg.wasm +0 -0
package/package.json
CHANGED
package/wasm.d.ts
CHANGED
|
@@ -1,6 +1,42 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
|
|
4
|
+
export function minify(src: string, opts?: JsMinifyOptions): Promise<Output>;
|
|
5
|
+
export function minifySync(code: string, opts?: JsMinifyOptions): Output;
|
|
6
|
+
|
|
7
|
+
export function parse(src: string, options: ParseOptions & {
|
|
8
|
+
isModule: false;
|
|
9
|
+
}): Promise<Script>;
|
|
10
|
+
export function parse(src: string, options?: ParseOptions): Promise<Module>;
|
|
11
|
+
export function parseSync(src: string, options: ParseOptions & {
|
|
12
|
+
isModule: false;
|
|
13
|
+
}): Script;
|
|
14
|
+
export function parseSync(src: string, options?: ParseOptions): Module;
|
|
15
|
+
|
|
16
|
+
export function print(m: Program, options?: Options): Promise<Output>;
|
|
17
|
+
export function printSync(m: Program, options?: Options): Output
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Note: this interface currently does not do _actual_ async work, only provides
|
|
21
|
+
* a corresponding async interfaces to the `@swc/core`'s interface.
|
|
22
|
+
*/
|
|
23
|
+
export function transform(
|
|
24
|
+
code: string | Program,
|
|
25
|
+
options?: Options,
|
|
26
|
+
experimental_plugin_bytes_resolver?: any
|
|
27
|
+
): Promise<Output>;
|
|
28
|
+
/**
|
|
29
|
+
* @param {string} code
|
|
30
|
+
* @param {Options} opts
|
|
31
|
+
* @param {Record<string, ArrayBuffer>} experimental_plugin_bytes_resolver An object contains bytes array for the plugin
|
|
32
|
+
* specified in config. Key of record represents the name of the plugin specified in config. Note this is an experimental
|
|
33
|
+
* interface, likely will change.
|
|
34
|
+
* @returns {Output}
|
|
35
|
+
*/
|
|
36
|
+
export function transformSync(code: string | Program, opts?: Options, experimental_plugin_bytes_resolver?: any): Output;
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
4
40
|
export interface Plugin {
|
|
5
41
|
(module: Program): Program;
|
|
6
42
|
}
|
|
@@ -2795,42 +2831,6 @@ export interface Invalid extends Node, HasSpan {
|
|
|
2795
2831
|
|
|
2796
2832
|
|
|
2797
2833
|
|
|
2798
|
-
export function minify(src: string, opts?: JsMinifyOptions): Promise<Output>;
|
|
2799
|
-
export function minifySync(code: string, opts?: JsMinifyOptions): Output;
|
|
2800
|
-
|
|
2801
|
-
export function parse(src: string, options: ParseOptions & {
|
|
2802
|
-
isModule: false;
|
|
2803
|
-
}): Promise<Script>;
|
|
2804
|
-
export function parse(src: string, options?: ParseOptions): Promise<Module>;
|
|
2805
|
-
export function parseSync(src: string, options: ParseOptions & {
|
|
2806
|
-
isModule: false;
|
|
2807
|
-
}): Script;
|
|
2808
|
-
export function parseSync(src: string, options?: ParseOptions): Module;
|
|
2809
|
-
|
|
2810
|
-
export function print(m: Program, options?: Options): Promise<Output>;
|
|
2811
|
-
export function printSync(m: Program, options?: Options): Output
|
|
2812
|
-
|
|
2813
|
-
/**
|
|
2814
|
-
* Note: this interface currently does not do _actual_ async work, only provides
|
|
2815
|
-
* a corresponding async interfaces to the `@swc/core`'s interface.
|
|
2816
|
-
*/
|
|
2817
|
-
export function transform(
|
|
2818
|
-
code: string | Program,
|
|
2819
|
-
options?: Options,
|
|
2820
|
-
experimental_plugin_bytes_resolver?: any
|
|
2821
|
-
): Promise<Output>;
|
|
2822
|
-
/**
|
|
2823
|
-
* @param {string} code
|
|
2824
|
-
* @param {Options} opts
|
|
2825
|
-
* @param {Record<string, ArrayBuffer>} experimental_plugin_bytes_resolver An object contains bytes array for the plugin
|
|
2826
|
-
* specified in config. Key of record represents the name of the plugin specified in config. Note this is an experimental
|
|
2827
|
-
* interface, likely will change.
|
|
2828
|
-
* @returns {Output}
|
|
2829
|
-
*/
|
|
2830
|
-
export function transformSync(code: string | Program, opts?: Options, experimental_plugin_bytes_resolver?: any): Output;
|
|
2831
|
-
|
|
2832
|
-
|
|
2833
|
-
|
|
2834
2834
|
export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
|
|
2835
2835
|
|
|
2836
2836
|
export interface InitOutput {
|
package/wasm.js
CHANGED
|
@@ -529,14 +529,6 @@ function __wbg_get_imports() {
|
|
|
529
529
|
const ret = getObject(arg0).value;
|
|
530
530
|
return addHeapObject(ret);
|
|
531
531
|
};
|
|
532
|
-
imports.wbg.__wbg_call_3bfa248576352471 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
533
|
-
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
|
|
534
|
-
return addHeapObject(ret);
|
|
535
|
-
}, arguments) };
|
|
536
|
-
imports.wbg.__wbindgen_is_null = function(arg0) {
|
|
537
|
-
const ret = getObject(arg0) === null;
|
|
538
|
-
return ret;
|
|
539
|
-
};
|
|
540
532
|
imports.wbg.__wbg_new_1073970097e5a420 = function(arg0, arg1) {
|
|
541
533
|
try {
|
|
542
534
|
var state0 = {a: arg0, b: arg1};
|
|
@@ -555,13 +547,21 @@ function __wbg_get_imports() {
|
|
|
555
547
|
state0.a = state0.b = 0;
|
|
556
548
|
}
|
|
557
549
|
};
|
|
558
|
-
imports.wbg.
|
|
559
|
-
getObject(arg0)
|
|
550
|
+
imports.wbg.__wbindgen_is_null = function(arg0) {
|
|
551
|
+
const ret = getObject(arg0) === null;
|
|
552
|
+
return ret;
|
|
560
553
|
};
|
|
554
|
+
imports.wbg.__wbg_call_3bfa248576352471 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
555
|
+
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
|
|
556
|
+
return addHeapObject(ret);
|
|
557
|
+
}, arguments) };
|
|
561
558
|
imports.wbg.__wbindgen_error_new = function(arg0, arg1) {
|
|
562
559
|
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
563
560
|
return addHeapObject(ret);
|
|
564
561
|
};
|
|
562
|
+
imports.wbg.__wbg_set_f975102236d3c502 = function(arg0, arg1, arg2) {
|
|
563
|
+
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
564
|
+
};
|
|
565
565
|
imports.wbg.__wbg_new_abda76e883ba8a5f = function() {
|
|
566
566
|
const ret = new Error();
|
|
567
567
|
return addHeapObject(ret);
|
|
@@ -741,7 +741,7 @@ imports.wbg.__wbg_then_748f75edfb032440 = function(arg0, arg1) {
|
|
|
741
741
|
imports.wbg.__wbg_queueMicrotask_c5419c06eab41e73 = function(arg0) {
|
|
742
742
|
queueMicrotask(getObject(arg0));
|
|
743
743
|
};
|
|
744
|
-
imports.wbg.
|
|
744
|
+
imports.wbg.__wbindgen_closure_wrapper14468 = function(arg0, arg1, arg2) {
|
|
745
745
|
const ret = makeMutClosure(arg0, arg1, 987, __wbg_adapter_50);
|
|
746
746
|
return addHeapObject(ret);
|
|
747
747
|
};
|
package/wasm_bg.wasm
CHANGED
|
Binary file
|