@swc/wasm 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.d.ts +36 -45
- package/wasm.js +17 -17
- 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
|
}
|
|
@@ -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;
|
|
@@ -2803,39 +2830,3 @@ export interface Invalid extends Node, HasSpan {
|
|
|
2803
2830
|
}
|
|
2804
2831
|
|
|
2805
2832
|
|
|
2806
|
-
|
|
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
|
-
|
package/wasm.js
CHANGED
|
@@ -473,6 +473,11 @@ module.exports.__wbindgen_in = function(arg0, arg1) {
|
|
|
473
473
|
return ret;
|
|
474
474
|
};
|
|
475
475
|
|
|
476
|
+
module.exports.__wbindgen_number_new = function(arg0) {
|
|
477
|
+
const ret = arg0;
|
|
478
|
+
return addHeapObject(ret);
|
|
479
|
+
};
|
|
480
|
+
|
|
476
481
|
module.exports.__wbindgen_boolean_get = function(arg0) {
|
|
477
482
|
const v = getObject(arg0);
|
|
478
483
|
const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
|
|
@@ -543,21 +548,6 @@ module.exports.__wbg_value_3158be908c80a75e = function(arg0) {
|
|
|
543
548
|
return addHeapObject(ret);
|
|
544
549
|
};
|
|
545
550
|
|
|
546
|
-
module.exports.__wbindgen_number_new = function(arg0) {
|
|
547
|
-
const ret = arg0;
|
|
548
|
-
return addHeapObject(ret);
|
|
549
|
-
};
|
|
550
|
-
|
|
551
|
-
module.exports.__wbindgen_error_new = function(arg0, arg1) {
|
|
552
|
-
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
553
|
-
return addHeapObject(ret);
|
|
554
|
-
};
|
|
555
|
-
|
|
556
|
-
module.exports.__wbindgen_is_null = function(arg0) {
|
|
557
|
-
const ret = getObject(arg0) === null;
|
|
558
|
-
return ret;
|
|
559
|
-
};
|
|
560
|
-
|
|
561
551
|
module.exports.__wbg_new_70828a4353259d4b = function(arg0, arg1) {
|
|
562
552
|
try {
|
|
563
553
|
var state0 = {a: arg0, b: arg1};
|
|
@@ -577,6 +567,16 @@ module.exports.__wbg_new_70828a4353259d4b = function(arg0, arg1) {
|
|
|
577
567
|
}
|
|
578
568
|
};
|
|
579
569
|
|
|
570
|
+
module.exports.__wbindgen_is_null = function(arg0) {
|
|
571
|
+
const ret = getObject(arg0) === null;
|
|
572
|
+
return ret;
|
|
573
|
+
};
|
|
574
|
+
|
|
575
|
+
module.exports.__wbindgen_error_new = function(arg0, arg1) {
|
|
576
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
577
|
+
return addHeapObject(ret);
|
|
578
|
+
};
|
|
579
|
+
|
|
580
580
|
module.exports.__wbg_call_67f2111acd2dfdb6 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
581
581
|
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
|
|
582
582
|
return addHeapObject(ret);
|
|
@@ -800,8 +800,8 @@ module.exports.__wbindgen_cb_drop = function(arg0) {
|
|
|
800
800
|
return ret;
|
|
801
801
|
};
|
|
802
802
|
|
|
803
|
-
module.exports.
|
|
804
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
803
|
+
module.exports.__wbindgen_closure_wrapper17981 = function(arg0, arg1, arg2) {
|
|
804
|
+
const ret = makeMutClosure(arg0, arg1, 281, __wbg_adapter_50);
|
|
805
805
|
return addHeapObject(ret);
|
|
806
806
|
};
|
|
807
807
|
|
package/wasm_bg.wasm
CHANGED
|
Binary file
|