Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@swc/wasm

Package Overview
Dependencies
Maintainers
1
Versions
630
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@swc/wasm - npm Package Compare versions

Comparing version 1.2.66 to 1.2.67

2

package.json

@@ -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 @@ /**

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc