@swc/wasm
Advanced tools
Comparing version 1.2.66 to 1.2.67
@@ -7,3 +7,3 @@ { | ||
"description": "wasm module for swc", | ||
"version": "1.2.66", | ||
"version": "1.2.67", | ||
"license": "Apache-2.0 AND MIT", | ||
@@ -10,0 +10,0 @@ "repository": { |
@@ -8,2 +8,8 @@ /* tslint:disable */ | ||
*/ | ||
export function minifySync(s: string, opts: any): any; | ||
/** | ||
* @param {string} s | ||
* @param {any} opts | ||
* @returns {any} | ||
*/ | ||
export function parseSync(s: string, opts: any): any; | ||
@@ -10,0 +16,0 @@ /** |
22
wasm.js
@@ -118,4 +118,16 @@ let imports = {}; | ||
*/ | ||
module.exports.minifySync = function(s, opts) { | ||
var ptr0 = passStringToWasm0(s, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); | ||
var len0 = WASM_VECTOR_LEN; | ||
var ret = wasm.minifySync(ptr0, len0, addHeapObject(opts)); | ||
return takeObject(ret); | ||
}; | ||
/** | ||
* @param {string} s | ||
* @param {any} opts | ||
* @returns {any} | ||
*/ | ||
module.exports.parseSync = function(s, opts) { | ||
var ptr0 = passStringToWasm0(s, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1); | ||
var ptr0 = passStringToWasm0(s, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); | ||
var len0 = WASM_VECTOR_LEN; | ||
@@ -142,3 +154,3 @@ var ret = wasm.parseSync(ptr0, len0, addHeapObject(opts)); | ||
module.exports.transformSync = function(s, opts) { | ||
var ptr0 = passStringToWasm0(s, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1); | ||
var ptr0 = passStringToWasm0(s, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); | ||
var len0 = WASM_VECTOR_LEN; | ||
@@ -157,3 +169,3 @@ var ret = wasm.transformSync(ptr0, len0, addHeapObject(opts)); | ||
var ret = JSON.stringify(obj === undefined ? null : obj); | ||
var ptr0 = passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1); | ||
var ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); | ||
var len0 = WASM_VECTOR_LEN; | ||
@@ -180,3 +192,3 @@ getInt32Memory0()[arg0 / 4 + 1] = len0; | ||
var ret = getObject(arg1).stack; | ||
var ptr0 = passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1); | ||
var ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); | ||
var len0 = WASM_VECTOR_LEN; | ||
@@ -191,3 +203,3 @@ getInt32Memory0()[arg0 / 4 + 1] = len0; | ||
} finally { | ||
wasm.__wbindgen_export_2(arg0, arg1); | ||
wasm.__wbindgen_free(arg0, arg1); | ||
} | ||
@@ -194,0 +206,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
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
16951640
201