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

@swc/wasm

Package Overview
Dependencies
Maintainers
2
Versions
623
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.9.3 to 1.10.0-nightly-20241204.1

2

package.json

@@ -7,3 +7,3 @@ {

"description": "wasm module for swc",
"version": "1.9.3",
"version": "1.10.0-nightly-20241204.1",
"license": "Apache-2.0",

@@ -10,0 +10,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 {

@@ -2833,1 +2797,37 @@ (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;

@@ -464,12 +464,2 @@

module.exports.__wbindgen_error_new = function(arg0, arg1) {
const ret = new Error(getStringFromWasm0(arg0, arg1));
return addHeapObject(ret);
};
module.exports.__wbg_call_3bfa248576352471 = function() { return handleError(function (arg0, arg1, arg2) {
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
return addHeapObject(ret);
}, arguments) };
module.exports.__wbindgen_boolean_get = function(arg0) {

@@ -530,2 +520,27 @@ const v = getObject(arg0);

module.exports.__wbg_next_b06e115d1b01e10b = function() { return handleError(function (arg0) {
const ret = getObject(arg0).next();
return addHeapObject(ret);
}, arguments) };
module.exports.__wbg_done_983b5ffcaec8c583 = function(arg0) {
const ret = getObject(arg0).done;
return ret;
};
module.exports.__wbg_value_2ab8a198c834c26a = function(arg0) {
const ret = getObject(arg0).value;
return addHeapObject(ret);
};
module.exports.__wbg_call_3bfa248576352471 = function() { return handleError(function (arg0, arg1, arg2) {
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
return addHeapObject(ret);
}, arguments) };
module.exports.__wbindgen_is_null = function(arg0) {
const ret = getObject(arg0) === null;
return ret;
};
module.exports.__wbg_new_1073970097e5a420 = function(arg0, arg1) {

@@ -550,26 +565,11 @@ try {

module.exports.__wbindgen_is_null = function(arg0) {
const ret = getObject(arg0) === null;
return ret;
module.exports.__wbg_set_f975102236d3c502 = function(arg0, arg1, arg2) {
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
};
module.exports.__wbg_next_b06e115d1b01e10b = function() { return handleError(function (arg0) {
const ret = getObject(arg0).next();
module.exports.__wbindgen_error_new = function(arg0, arg1) {
const ret = new Error(getStringFromWasm0(arg0, arg1));
return addHeapObject(ret);
}, arguments) };
module.exports.__wbg_done_983b5ffcaec8c583 = function(arg0) {
const ret = getObject(arg0).done;
return ret;
};
module.exports.__wbg_value_2ab8a198c834c26a = function(arg0) {
const ret = getObject(arg0).value;
return addHeapObject(ret);
};
module.exports.__wbg_set_f975102236d3c502 = function(arg0, arg1, arg2) {
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
};
module.exports.__wbg_new_abda76e883ba8a5f = function() {

@@ -793,4 +793,4 @@ const ret = new Error();

module.exports.__wbindgen_closure_wrapper14364 = function(arg0, arg1, arg2) {
const ret = makeMutClosure(arg0, arg1, 988, __wbg_adapter_50);
module.exports.__wbindgen_closure_wrapper14476 = function(arg0, arg1, arg2) {
const ret = makeMutClosure(arg0, arg1, 987, __wbg_adapter_50);
return addHeapObject(ret);

@@ -797,0 +797,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