@swc/wasm-web 1.3.6 → 1.3.8
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-web.d.ts +36 -36
- package/wasm-web.js +9 -9
- package/wasm-web_bg.wasm +0 -0
package/package.json
CHANGED
package/wasm-web.d.ts
CHANGED
|
@@ -1,42 +1,6 @@
|
|
|
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
|
-
|
|
40
4
|
export interface Plugin {
|
|
41
5
|
(module: Program): Program;
|
|
42
6
|
}
|
|
@@ -2826,6 +2790,42 @@ export interface Invalid extends Node, HasSpan {
|
|
|
2826
2790
|
|
|
2827
2791
|
|
|
2828
2792
|
|
|
2793
|
+
export function minify(src: string, opts?: JsMinifyOptions): Promise<Output>;
|
|
2794
|
+
export function minifySync(code: string, opts?: JsMinifyOptions): Output;
|
|
2795
|
+
|
|
2796
|
+
export function parse(src: string, options: ParseOptions & {
|
|
2797
|
+
isModule: false;
|
|
2798
|
+
}): Promise<Script>;
|
|
2799
|
+
export function parse(src: string, options?: ParseOptions): Promise<Module>;
|
|
2800
|
+
export function parseSync(src: string, options: ParseOptions & {
|
|
2801
|
+
isModule: false;
|
|
2802
|
+
}): Script;
|
|
2803
|
+
export function parseSync(src: string, options?: ParseOptions): Module;
|
|
2804
|
+
|
|
2805
|
+
export function print(m: Program, options?: Options): Promise<Output>;
|
|
2806
|
+
export function printSync(m: Program, options?: Options): Output
|
|
2807
|
+
|
|
2808
|
+
/**
|
|
2809
|
+
* Note: this interface currently does not do _actual_ async work, only provides
|
|
2810
|
+
* a corresponding async interfaces to the `@swc/core`'s interface.
|
|
2811
|
+
*/
|
|
2812
|
+
export function transform(
|
|
2813
|
+
code: string | Program,
|
|
2814
|
+
options?: Options,
|
|
2815
|
+
experimental_plugin_bytes_resolver?: any
|
|
2816
|
+
): Promise<Output>;
|
|
2817
|
+
/**
|
|
2818
|
+
* @param {string} code
|
|
2819
|
+
* @param {Options} opts
|
|
2820
|
+
* @param {Record<string, ArrayBuffer>} experimental_plugin_bytes_resolver An object contains bytes array for the plugin
|
|
2821
|
+
* specified in config. Key of record represents the name of the plugin specified in config. Note this is an experimental
|
|
2822
|
+
* interface, likely will change.
|
|
2823
|
+
* @returns {Output}
|
|
2824
|
+
*/
|
|
2825
|
+
export function transformSync(code: string | Program, opts?: Options, experimental_plugin_bytes_resolver?: any): Output;
|
|
2826
|
+
|
|
2827
|
+
|
|
2828
|
+
|
|
2829
2829
|
export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
|
|
2830
2830
|
|
|
2831
2831
|
export interface InitOutput {
|
package/wasm-web.js
CHANGED
|
@@ -363,14 +363,6 @@ function getImports() {
|
|
|
363
363
|
getInt32Memory0()[arg0 / 4 + 1] = len0;
|
|
364
364
|
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
|
365
365
|
};
|
|
366
|
-
imports.wbg.__wbg_call_168da88779e35f61 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
367
|
-
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
|
|
368
|
-
return addHeapObject(ret);
|
|
369
|
-
}, arguments) };
|
|
370
|
-
imports.wbg.__wbindgen_json_parse = function(arg0, arg1) {
|
|
371
|
-
const ret = JSON.parse(getStringFromWasm0(arg0, arg1));
|
|
372
|
-
return addHeapObject(ret);
|
|
373
|
-
};
|
|
374
366
|
imports.wbg.__wbindgen_json_serialize = function(arg0, arg1) {
|
|
375
367
|
const obj = getObject(arg1);
|
|
376
368
|
const ret = JSON.stringify(obj === undefined ? null : obj);
|
|
@@ -379,6 +371,14 @@ function getImports() {
|
|
|
379
371
|
getInt32Memory0()[arg0 / 4 + 1] = len0;
|
|
380
372
|
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
|
381
373
|
};
|
|
374
|
+
imports.wbg.__wbindgen_json_parse = function(arg0, arg1) {
|
|
375
|
+
const ret = JSON.parse(getStringFromWasm0(arg0, arg1));
|
|
376
|
+
return addHeapObject(ret);
|
|
377
|
+
};
|
|
378
|
+
imports.wbg.__wbg_call_168da88779e35f61 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
379
|
+
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
|
|
380
|
+
return addHeapObject(ret);
|
|
381
|
+
}, arguments) };
|
|
382
382
|
imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
|
|
383
383
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
384
384
|
return addHeapObject(ret);
|
|
@@ -431,7 +431,7 @@ imports.wbg.__wbg_then_11f7a54d67b4bfad = function(arg0, arg1) {
|
|
|
431
431
|
const ret = getObject(arg0).then(getObject(arg1));
|
|
432
432
|
return addHeapObject(ret);
|
|
433
433
|
};
|
|
434
|
-
imports.wbg.
|
|
434
|
+
imports.wbg.__wbindgen_closure_wrapper19198 = function(arg0, arg1, arg2) {
|
|
435
435
|
const ret = makeMutClosure(arg0, arg1, 222, __wbg_adapter_22);
|
|
436
436
|
return addHeapObject(ret);
|
|
437
437
|
};
|
package/wasm-web_bg.wasm
CHANGED
|
Binary file
|