@swc/wasm-web 1.5.29 → 1.6.0
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 -45
- package/wasm-web.js +14 -14
- package/wasm-web_bg.wasm +0 -0
package/package.json
CHANGED
package/wasm-web.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
|
}
|
|
@@ -2365,37 +2401,28 @@ export interface TsPropertySignature extends Node, HasSpan {
|
|
|
2365
2401
|
computed: boolean;
|
|
2366
2402
|
optional: boolean;
|
|
2367
2403
|
|
|
2368
|
-
init?: Expression;
|
|
2369
|
-
params: TsFnParameter[];
|
|
2370
|
-
|
|
2371
2404
|
typeAnnotation?: TsTypeAnnotation;
|
|
2372
|
-
typeParams?: TsTypeParameterDeclaration;
|
|
2373
2405
|
}
|
|
2374
2406
|
|
|
2375
2407
|
export interface TsGetterSignature extends Node, HasSpan {
|
|
2376
2408
|
type: "TsGetterSignature";
|
|
2377
2409
|
|
|
2378
|
-
readonly: boolean;
|
|
2379
2410
|
key: Expression;
|
|
2380
2411
|
computed: boolean;
|
|
2381
|
-
optional: boolean;
|
|
2382
2412
|
typeAnnotation?: TsTypeAnnotation;
|
|
2383
2413
|
}
|
|
2384
2414
|
|
|
2385
2415
|
export interface TsSetterSignature extends Node, HasSpan {
|
|
2386
2416
|
type: "TsSetterSignature";
|
|
2387
2417
|
|
|
2388
|
-
readonly: boolean;
|
|
2389
2418
|
key: Expression;
|
|
2390
2419
|
computed: boolean;
|
|
2391
|
-
optional: boolean;
|
|
2392
2420
|
param: TsFnParameter;
|
|
2393
2421
|
}
|
|
2394
2422
|
|
|
2395
2423
|
export interface TsMethodSignature extends Node, HasSpan {
|
|
2396
2424
|
type: "TsMethodSignature";
|
|
2397
2425
|
|
|
2398
|
-
readonly: boolean;
|
|
2399
2426
|
key: Expression;
|
|
2400
2427
|
computed: boolean;
|
|
2401
2428
|
optional: boolean;
|
|
@@ -2804,42 +2831,6 @@ export interface Invalid extends Node, HasSpan {
|
|
|
2804
2831
|
|
|
2805
2832
|
|
|
2806
2833
|
|
|
2807
|
-
export function minify(src: string, opts?: JsMinifyOptions): Promise<Output>;
|
|
2808
|
-
export function minifySync(code: string, opts?: JsMinifyOptions): Output;
|
|
2809
|
-
|
|
2810
|
-
export function parse(src: string, options: ParseOptions & {
|
|
2811
|
-
isModule: false;
|
|
2812
|
-
}): Promise<Script>;
|
|
2813
|
-
export function parse(src: string, options?: ParseOptions): Promise<Module>;
|
|
2814
|
-
export function parseSync(src: string, options: ParseOptions & {
|
|
2815
|
-
isModule: false;
|
|
2816
|
-
}): Script;
|
|
2817
|
-
export function parseSync(src: string, options?: ParseOptions): Module;
|
|
2818
|
-
|
|
2819
|
-
export function print(m: Program, options?: Options): Promise<Output>;
|
|
2820
|
-
export function printSync(m: Program, options?: Options): Output
|
|
2821
|
-
|
|
2822
|
-
/**
|
|
2823
|
-
* Note: this interface currently does not do _actual_ async work, only provides
|
|
2824
|
-
* a corresponding async interfaces to the `@swc/core`'s interface.
|
|
2825
|
-
*/
|
|
2826
|
-
export function transform(
|
|
2827
|
-
code: string | Program,
|
|
2828
|
-
options?: Options,
|
|
2829
|
-
experimental_plugin_bytes_resolver?: any
|
|
2830
|
-
): Promise<Output>;
|
|
2831
|
-
/**
|
|
2832
|
-
* @param {string} code
|
|
2833
|
-
* @param {Options} opts
|
|
2834
|
-
* @param {Record<string, ArrayBuffer>} experimental_plugin_bytes_resolver An object contains bytes array for the plugin
|
|
2835
|
-
* specified in config. Key of record represents the name of the plugin specified in config. Note this is an experimental
|
|
2836
|
-
* interface, likely will change.
|
|
2837
|
-
* @returns {Output}
|
|
2838
|
-
*/
|
|
2839
|
-
export function transformSync(code: string | Program, opts?: Options, experimental_plugin_bytes_resolver?: any): Output;
|
|
2840
|
-
|
|
2841
|
-
|
|
2842
|
-
|
|
2843
2834
|
export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
|
|
2844
2835
|
|
|
2845
2836
|
export interface InitOutput {
|
package/wasm-web.js
CHANGED
|
@@ -486,6 +486,10 @@ function __wbg_get_imports() {
|
|
|
486
486
|
const ret = getObject(arg0) in getObject(arg1);
|
|
487
487
|
return ret;
|
|
488
488
|
};
|
|
489
|
+
imports.wbg.__wbindgen_number_new = function(arg0) {
|
|
490
|
+
const ret = arg0;
|
|
491
|
+
return addHeapObject(ret);
|
|
492
|
+
};
|
|
489
493
|
imports.wbg.__wbindgen_boolean_get = function(arg0) {
|
|
490
494
|
const v = getObject(arg0);
|
|
491
495
|
const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
|
|
@@ -543,18 +547,6 @@ function __wbg_get_imports() {
|
|
|
543
547
|
const ret = getObject(arg0).value;
|
|
544
548
|
return addHeapObject(ret);
|
|
545
549
|
};
|
|
546
|
-
imports.wbg.__wbindgen_number_new = function(arg0) {
|
|
547
|
-
const ret = arg0;
|
|
548
|
-
return addHeapObject(ret);
|
|
549
|
-
};
|
|
550
|
-
imports.wbg.__wbindgen_error_new = function(arg0, arg1) {
|
|
551
|
-
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
552
|
-
return addHeapObject(ret);
|
|
553
|
-
};
|
|
554
|
-
imports.wbg.__wbindgen_is_null = function(arg0) {
|
|
555
|
-
const ret = getObject(arg0) === null;
|
|
556
|
-
return ret;
|
|
557
|
-
};
|
|
558
550
|
imports.wbg.__wbg_new_70828a4353259d4b = function(arg0, arg1) {
|
|
559
551
|
try {
|
|
560
552
|
var state0 = {a: arg0, b: arg1};
|
|
@@ -573,6 +565,14 @@ function __wbg_get_imports() {
|
|
|
573
565
|
state0.a = state0.b = 0;
|
|
574
566
|
}
|
|
575
567
|
};
|
|
568
|
+
imports.wbg.__wbindgen_is_null = function(arg0) {
|
|
569
|
+
const ret = getObject(arg0) === null;
|
|
570
|
+
return ret;
|
|
571
|
+
};
|
|
572
|
+
imports.wbg.__wbindgen_error_new = function(arg0, arg1) {
|
|
573
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
574
|
+
return addHeapObject(ret);
|
|
575
|
+
};
|
|
576
576
|
imports.wbg.__wbg_call_67f2111acd2dfdb6 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
577
577
|
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
|
|
578
578
|
return addHeapObject(ret);
|
|
@@ -756,8 +756,8 @@ imports.wbg.__wbindgen_cb_drop = function(arg0) {
|
|
|
756
756
|
const ret = false;
|
|
757
757
|
return ret;
|
|
758
758
|
};
|
|
759
|
-
imports.wbg.
|
|
760
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
759
|
+
imports.wbg.__wbindgen_closure_wrapper17981 = function(arg0, arg1, arg2) {
|
|
760
|
+
const ret = makeMutClosure(arg0, arg1, 281, __wbg_adapter_50);
|
|
761
761
|
return addHeapObject(ret);
|
|
762
762
|
};
|
|
763
763
|
|
package/wasm-web_bg.wasm
CHANGED
|
Binary file
|