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

@swc/wasm-web

Package Overview
Dependencies
Maintainers
2
Versions
595
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@swc/wasm-web - npm Package Compare versions

Comparing version 1.7.25 to 1.7.26-nightly-20240911.1

2

package.json

@@ -8,3 +8,3 @@ {

"description": "wasm module for swc",
"version": "1.7.25",
"version": "1.7.26-nightly-20240911.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 {

@@ -2798,38 +2834,2 @@ (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 @@

@@ -532,13 +532,2 @@ let wasm;

};
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_call_89af060b4e1523f2 = function() { return handleError(function (arg0, arg1, arg2) {
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
return addHeapObject(ret);
}, arguments) };
imports.wbg.__wbg_new_b85e72ed1bfd57f9 = function(arg0, arg1) {

@@ -562,2 +551,13 @@ 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_call_89af060b4e1523f2 = function() { return handleError(function (arg0, arg1, arg2) {
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
return addHeapObject(ret);
}, arguments) };
imports.wbg.__wbindgen_error_new = function(arg0, arg1) {

@@ -746,3 +746,3 @@ const ret = new Error(getStringFromWasm0(arg0, arg1));

};
imports.wbg.__wbindgen_closure_wrapper16759 = function(arg0, arg1, arg2) {
imports.wbg.__wbindgen_closure_wrapper16748 = function(arg0, arg1, arg2) {
const ret = makeMutClosure(arg0, arg1, 985, __wbg_adapter_50);

@@ -749,0 +749,0 @@ return addHeapObject(ret);

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