@swc/wasm-web
Advanced tools
Comparing version 1.9.3 to 1.10.0-nightly-20241204.1
@@ -8,3 +8,3 @@ { | ||
"description": "wasm module for swc", | ||
"version": "1.9.3", | ||
"version": "1.10.0-nightly-20241204.1", | ||
"license": "Apache-2.0", | ||
@@ -11,0 +11,0 @@ "repository": { |
/* tslint:disable */ | ||
/* eslint-disable */ | ||
export function minify(src: string, opts?: JsMinifyOptions): Promise<Output>; | ||
export function minifySync(code: string, opts?: JsMinifyOptions): Output; | ||
export function parse(src: string, options: ParseOptions & { | ||
isModule: false; | ||
}): Promise<Script>; | ||
export function parse(src: string, options?: ParseOptions): Promise<Module>; | ||
export function parseSync(src: string, options: ParseOptions & { | ||
isModule: false; | ||
}): Script; | ||
export function parseSync(src: string, options?: ParseOptions): Module; | ||
export function print(m: Program, options?: Options): Promise<Output>; | ||
export function printSync(m: Program, options?: Options): Output | ||
/** | ||
* Note: this interface currently does not do _actual_ async work, only provides | ||
* a corresponding async interfaces to the `@swc/core`'s interface. | ||
*/ | ||
export function transform( | ||
code: string | Program, | ||
options?: Options, | ||
experimental_plugin_bytes_resolver?: any | ||
): Promise<Output>; | ||
/** | ||
* @param {string} code | ||
* @param {Options} opts | ||
* @param {Record<string, ArrayBuffer>} experimental_plugin_bytes_resolver An object contains bytes array for the plugin | ||
* specified in config. Key of record represents the name of the plugin specified in config. Note this is an experimental | ||
* interface, likely will change. | ||
* @returns {Output} | ||
*/ | ||
export function transformSync(code: string | Program, opts?: Options, experimental_plugin_bytes_resolver?: any): Output; | ||
export interface Plugin { | ||
@@ -2834,2 +2798,38 @@ (module: Program): Program; | ||
export function minify(src: string, opts?: JsMinifyOptions): Promise<Output>; | ||
export function minifySync(code: string, opts?: JsMinifyOptions): Output; | ||
export function parse(src: string, options: ParseOptions & { | ||
isModule: false; | ||
}): Promise<Script>; | ||
export function parse(src: string, options?: ParseOptions): Promise<Module>; | ||
export function parseSync(src: string, options: ParseOptions & { | ||
isModule: false; | ||
}): Script; | ||
export function parseSync(src: string, options?: ParseOptions): Module; | ||
export function print(m: Program, options?: Options): Promise<Output>; | ||
export function printSync(m: Program, options?: Options): Output | ||
/** | ||
* Note: this interface currently does not do _actual_ async work, only provides | ||
* a corresponding async interfaces to the `@swc/core`'s interface. | ||
*/ | ||
export function transform( | ||
code: string | Program, | ||
options?: Options, | ||
experimental_plugin_bytes_resolver?: any | ||
): Promise<Output>; | ||
/** | ||
* @param {string} code | ||
* @param {Options} opts | ||
* @param {Record<string, ArrayBuffer>} experimental_plugin_bytes_resolver An object contains bytes array for the plugin | ||
* specified in config. Key of record represents the name of the plugin specified in config. Note this is an experimental | ||
* interface, likely will change. | ||
* @returns {Output} | ||
*/ | ||
export function transformSync(code: string | Program, opts?: Options, experimental_plugin_bytes_resolver?: any): Output; | ||
export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module; | ||
@@ -2836,0 +2836,0 @@ |
52
wasm.js
@@ -475,10 +475,2 @@ let wasm; | ||
}; | ||
imports.wbg.__wbindgen_error_new = function(arg0, arg1) { | ||
const ret = new Error(getStringFromWasm0(arg0, arg1)); | ||
return addHeapObject(ret); | ||
}; | ||
imports.wbg.__wbg_call_3bfa248576352471 = function() { return handleError(function (arg0, arg1, arg2) { | ||
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2)); | ||
return addHeapObject(ret); | ||
}, arguments) }; | ||
imports.wbg.__wbindgen_boolean_get = function(arg0) { | ||
@@ -529,2 +521,22 @@ const v = getObject(arg0); | ||
}; | ||
imports.wbg.__wbg_next_b06e115d1b01e10b = function() { return handleError(function (arg0) { | ||
const ret = getObject(arg0).next(); | ||
return addHeapObject(ret); | ||
}, arguments) }; | ||
imports.wbg.__wbg_done_983b5ffcaec8c583 = function(arg0) { | ||
const ret = getObject(arg0).done; | ||
return ret; | ||
}; | ||
imports.wbg.__wbg_value_2ab8a198c834c26a = function(arg0) { | ||
const ret = getObject(arg0).value; | ||
return addHeapObject(ret); | ||
}; | ||
imports.wbg.__wbg_call_3bfa248576352471 = function() { return handleError(function (arg0, arg1, arg2) { | ||
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2)); | ||
return addHeapObject(ret); | ||
}, arguments) }; | ||
imports.wbg.__wbindgen_is_null = function(arg0) { | ||
const ret = getObject(arg0) === null; | ||
return ret; | ||
}; | ||
imports.wbg.__wbg_new_1073970097e5a420 = function(arg0, arg1) { | ||
@@ -548,21 +560,9 @@ try { | ||
}; | ||
imports.wbg.__wbindgen_is_null = function(arg0) { | ||
const ret = getObject(arg0) === null; | ||
return ret; | ||
imports.wbg.__wbg_set_f975102236d3c502 = function(arg0, arg1, arg2) { | ||
getObject(arg0)[takeObject(arg1)] = takeObject(arg2); | ||
}; | ||
imports.wbg.__wbg_next_b06e115d1b01e10b = function() { return handleError(function (arg0) { | ||
const ret = getObject(arg0).next(); | ||
imports.wbg.__wbindgen_error_new = function(arg0, arg1) { | ||
const ret = new Error(getStringFromWasm0(arg0, arg1)); | ||
return addHeapObject(ret); | ||
}, arguments) }; | ||
imports.wbg.__wbg_done_983b5ffcaec8c583 = function(arg0) { | ||
const ret = getObject(arg0).done; | ||
return ret; | ||
}; | ||
imports.wbg.__wbg_value_2ab8a198c834c26a = function(arg0) { | ||
const ret = getObject(arg0).value; | ||
return addHeapObject(ret); | ||
}; | ||
imports.wbg.__wbg_set_f975102236d3c502 = function(arg0, arg1, arg2) { | ||
getObject(arg0)[takeObject(arg1)] = takeObject(arg2); | ||
}; | ||
imports.wbg.__wbg_new_abda76e883ba8a5f = function() { | ||
@@ -747,4 +747,4 @@ const ret = new Error(); | ||
}; | ||
imports.wbg.__wbindgen_closure_wrapper14364 = function(arg0, arg1, arg2) { | ||
const ret = makeMutClosure(arg0, arg1, 988, __wbg_adapter_50); | ||
imports.wbg.__wbindgen_closure_wrapper14476 = function(arg0, arg1, arg2) { | ||
const ret = makeMutClosure(arg0, arg1, 987, __wbg_adapter_50); | ||
return addHeapObject(ret); | ||
@@ -751,0 +751,0 @@ }; |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
21324586
2