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

@swc/wasm-web

Package Overview
Dependencies
Maintainers
0
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.40 to 1.7.41-nightly-20241031.1

2

package.json

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

"description": "wasm module for swc",
"version": "1.7.40",
"version": "1.7.41-nightly-20241031.1",
"license": "Apache-2.0",

@@ -11,0 +11,0 @@ "repository": {

@@ -219,6 +219,6 @@ let wasm;

/**
* @param {string} s
* @param {any} opts
* @returns {any}
*/
* @param {string} s
* @param {any} opts
* @returns {any}
*/
export function minifySync(s, opts) {

@@ -241,6 +241,6 @@ try {

/**
* @param {string} s
* @param {any} opts
* @returns {Promise<any>}
*/
* @param {string} s
* @param {any} opts
* @returns {Promise<any>}
*/
export function minify(s, opts) {

@@ -252,6 +252,6 @@ const ret = wasm.minify(addHeapObject(s), addHeapObject(opts));

/**
* @param {string} s
* @param {any} opts
* @returns {any}
*/
* @param {string} s
* @param {any} opts
* @returns {any}
*/
export function parseSync(s, opts) {

@@ -274,6 +274,6 @@ try {

/**
* @param {string} s
* @param {any} opts
* @returns {Promise<any>}
*/
* @param {string} s
* @param {any} opts
* @returns {Promise<any>}
*/
export function parse(s, opts) {

@@ -285,6 +285,6 @@ const ret = wasm.parse(addHeapObject(s), addHeapObject(opts));

/**
* @param {any} s
* @param {any} opts
* @returns {any}
*/
* @param {any} s
* @param {any} opts
* @returns {any}
*/
export function printSync(s, opts) {

@@ -307,6 +307,6 @@ try {

/**
* @param {any} s
* @param {any} opts
* @returns {Promise<any>}
*/
* @param {any} s
* @param {any} opts
* @returns {Promise<any>}
*/
export function print(s, opts) {

@@ -318,7 +318,7 @@ const ret = wasm.print(addHeapObject(s), addHeapObject(opts));

/**
* @param {any} s
* @param {any} opts
* @param {any} experimental_plugin_bytes_resolver
* @returns {any}
*/
* @param {any} s
* @param {any} opts
* @param {any} experimental_plugin_bytes_resolver
* @returns {any}
*/
export function transformSync(s, opts, experimental_plugin_bytes_resolver) {

@@ -341,7 +341,7 @@ try {

/**
* @param {any} s
* @param {any} opts
* @param {any} experimental_plugin_bytes_resolver
* @returns {Promise<any>}
*/
* @param {any} s
* @param {any} opts
* @param {any} experimental_plugin_bytes_resolver
* @returns {Promise<any>}
*/
export function transform(s, opts, experimental_plugin_bytes_resolver) {

@@ -379,3 +379,3 @@ const ret = wasm.transform(addHeapObject(s), addHeapObject(opts), addHeapObject(experimental_plugin_bytes_resolver));

if (module.headers.get('Content-Type') != 'application/wasm') {
console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n", e);
console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n", e);

@@ -417,6 +417,24 @@ } else {

};
imports.wbg.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
const ret = getObject(arg0) == getObject(arg1);
return ret;
imports.wbg.__wbg_new_e69b5f66fda8f13c = function() {
const ret = new Object();
return addHeapObject(ret);
};
imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
const ret = getStringFromWasm0(arg0, arg1);
return addHeapObject(ret);
};
imports.wbg.__wbg_set_20cbc34131e76824 = function(arg0, arg1, arg2) {
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
};
imports.wbg.__wbg_new_034f913e7636e987 = function() {
const ret = new Array();
return addHeapObject(ret);
};
imports.wbg.__wbg_set_425e70f7c64ac962 = function(arg0, arg1, arg2) {
getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
};
imports.wbg.__wbg_set_277a63e77c89279f = function(arg0, arg1, arg2) {
const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
return addHeapObject(ret);
};
imports.wbg.__wbindgen_is_string = function(arg0) {

@@ -426,2 +444,14 @@ const ret = typeof(getObject(arg0)) === 'string';

};
imports.wbg.__wbindgen_number_new = function(arg0) {
const ret = arg0;
return addHeapObject(ret);
};
imports.wbg.__wbg_new_7a87a0376e40533b = function() {
const ret = new Map();
return addHeapObject(ret);
};
imports.wbg.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
const ret = getObject(arg0) == getObject(arg1);
return ret;
};
imports.wbg.__wbindgen_is_object = function(arg0) {

@@ -432,11 +462,11 @@ const val = getObject(arg0);

};
imports.wbg.__wbg_entries_7a0e06255456ebcd = function(arg0) {
imports.wbg.__wbg_entries_c02034de337d3ee2 = function(arg0) {
const ret = Object.entries(getObject(arg0));
return addHeapObject(ret);
};
imports.wbg.__wbg_length_ae22078168b726f5 = function(arg0) {
imports.wbg.__wbg_length_f217bbbf7e8e4df4 = function(arg0) {
const ret = getObject(arg0).length;
return ret;
};
imports.wbg.__wbg_get_3baa728f9d58d3f6 = function(arg0, arg1) {
imports.wbg.__wbg_get_5419cf6b954aa11d = function(arg0, arg1) {
const ret = getObject(arg0)[arg1 >>> 0];

@@ -457,32 +487,2 @@ return addHeapObject(ret);

};
imports.wbg.__wbg_new_525245e2b9901204 = function() {
const ret = new Object();
return addHeapObject(ret);
};
imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
const ret = getStringFromWasm0(arg0, arg1);
return addHeapObject(ret);
};
imports.wbg.__wbg_set_20cbc34131e76824 = function(arg0, arg1, arg2) {
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
};
imports.wbg.__wbg_new_a220cf903aa02ca2 = function() {
const ret = new Array();
return addHeapObject(ret);
};
imports.wbg.__wbg_set_673dda6c73d19609 = function(arg0, arg1, arg2) {
getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
};
imports.wbg.__wbg_set_49185437f0ab06f8 = function(arg0, arg1, arg2) {
const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
return addHeapObject(ret);
};
imports.wbg.__wbindgen_number_new = function(arg0) {
const ret = arg0;
return addHeapObject(ret);
};
imports.wbg.__wbg_new_8608a2b51a5f6737 = function() {
const ret = new Map();
return addHeapObject(ret);
};
imports.wbg.__wbindgen_error_new = function(arg0, arg1) {

@@ -507,11 +507,11 @@ const ret = new Error(getStringFromWasm0(arg0, arg1));

};
imports.wbg.__wbg_isArray_8364a5371e9737d8 = function(arg0) {
imports.wbg.__wbg_isArray_6f3b47f09adb61b5 = function(arg0) {
const ret = Array.isArray(getObject(arg0));
return ret;
};
imports.wbg.__wbg_isSafeInteger_7f1ed56200d90674 = function(arg0) {
imports.wbg.__wbg_isSafeInteger_b9dff570f01a9100 = function(arg0) {
const ret = Number.isSafeInteger(getObject(arg0));
return ret;
};
imports.wbg.__wbg_iterator_888179a48810a9fe = function() {
imports.wbg.__wbg_iterator_695d699a44d6234c = function() {
const ret = Symbol.iterator;

@@ -538,3 +538,3 @@ return addHeapObject(ret);

};
imports.wbg.__wbg_new_b85e72ed1bfd57f9 = function(arg0, arg1) {
imports.wbg.__wbg_new_1073970097e5a420 = function(arg0, arg1) {
try {

@@ -557,3 +557,3 @@ var state0 = {a: arg0, b: arg1};

};
imports.wbg.__wbg_call_89af060b4e1523f2 = function() { return handleError(function (arg0, arg1, arg2) {
imports.wbg.__wbg_call_3bfa248576352471 = function() { return handleError(function (arg0, arg1, arg2) {
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));

@@ -566,11 +566,11 @@ return addHeapObject(ret);

};
imports.wbg.__wbg_next_f9cb570345655b9a = function() { return handleError(function (arg0) {
imports.wbg.__wbg_next_b06e115d1b01e10b = function() { return handleError(function (arg0) {
const ret = getObject(arg0).next();
return addHeapObject(ret);
}, arguments) };
imports.wbg.__wbg_done_bfda7aa8f252b39f = function(arg0) {
imports.wbg.__wbg_done_983b5ffcaec8c583 = function(arg0) {
const ret = getObject(arg0).done;
return ret;
};
imports.wbg.__wbg_value_6d39332ab4788d86 = function(arg0) {
imports.wbg.__wbg_value_2ab8a198c834c26a = function(arg0) {
const ret = getObject(arg0).value;

@@ -630,3 +630,3 @@ return addHeapObject(ret);

};
imports.wbg.__wbg_newwithlength_ec548f448387c968 = function(arg0) {
imports.wbg.__wbg_newwithlength_76462a666eca145f = function(arg0) {
const ret = new Uint8Array(arg0 >>> 0);

@@ -639,7 +639,7 @@ return addHeapObject(ret);

};
imports.wbg.__wbg_buffer_b7b08af79b0b0974 = function(arg0) {
imports.wbg.__wbg_buffer_ccaed51a635d8a2d = function(arg0) {
const ret = getObject(arg0).buffer;
return addHeapObject(ret);
};
imports.wbg.__wbg_newwithbyteoffsetandlength_8a2cb9ca96b27ec9 = function(arg0, arg1, arg2) {
imports.wbg.__wbg_newwithbyteoffsetandlength_7e3eb787208af730 = function(arg0, arg1, arg2) {
const ret = new Uint8Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0);

@@ -651,3 +651,3 @@ return addHeapObject(ret);

}, arguments) };
imports.wbg.__wbg_subarray_7c2e3576afe181d1 = function(arg0, arg1, arg2) {
imports.wbg.__wbg_subarray_975a06f9dbd16995 = function(arg0, arg1, arg2) {
const ret = getObject(arg0).subarray(arg1 >>> 0, arg2 >>> 0);

@@ -659,42 +659,42 @@ return addHeapObject(ret);

}, arguments) };
imports.wbg.__wbg_new_ea1883e1e5e86686 = function(arg0) {
imports.wbg.__wbg_new_fec2611eb9180f95 = function(arg0) {
const ret = new Uint8Array(getObject(arg0));
return addHeapObject(ret);
};
imports.wbg.__wbg_set_d1e79e2388520f18 = function(arg0, arg1, arg2) {
imports.wbg.__wbg_set_ec2fcf81bc573fd9 = function(arg0, arg1, arg2) {
getObject(arg0).set(getObject(arg1), arg2 >>> 0);
};
imports.wbg.__wbg_get_224d16597dbbfd96 = function() { return handleError(function (arg0, arg1) {
imports.wbg.__wbg_get_ef828680c64da212 = function() { return handleError(function (arg0, arg1) {
const ret = Reflect.get(getObject(arg0), getObject(arg1));
return addHeapObject(ret);
}, arguments) };
imports.wbg.__wbg_call_1084a111329e68ce = function() { return handleError(function (arg0, arg1) {
imports.wbg.__wbg_call_a9ef466721e824f2 = function() { return handleError(function (arg0, arg1) {
const ret = getObject(arg0).call(getObject(arg1));
return addHeapObject(ret);
}, arguments) };
imports.wbg.__wbg_next_de3e9db4440638b2 = function(arg0) {
imports.wbg.__wbg_next_13b477da1eaa3897 = function(arg0) {
const ret = getObject(arg0).next;
return addHeapObject(ret);
};
imports.wbg.__wbg_length_8339fcf5d8ecd12e = function(arg0) {
imports.wbg.__wbg_length_9254c4bd3b9f23c4 = function(arg0) {
const ret = getObject(arg0).length;
return ret;
};
imports.wbg.__wbg_self_3093d5d1f7bcb682 = function() { return handleError(function () {
imports.wbg.__wbg_self_bf91bf94d9e04084 = function() { return handleError(function () {
const ret = self.self;
return addHeapObject(ret);
}, arguments) };
imports.wbg.__wbg_window_3bcfc4d31bc012f8 = function() { return handleError(function () {
imports.wbg.__wbg_window_52dd9f07d03fd5f8 = function() { return handleError(function () {
const ret = window.window;
return addHeapObject(ret);
}, arguments) };
imports.wbg.__wbg_globalThis_86b222e13bdf32ed = function() { return handleError(function () {
imports.wbg.__wbg_globalThis_05c129bf37fcf1be = function() { return handleError(function () {
const ret = globalThis.globalThis;
return addHeapObject(ret);
}, arguments) };
imports.wbg.__wbg_global_e5a3fe56f8be9485 = function() { return handleError(function () {
imports.wbg.__wbg_global_3eca19bb09e9c484 = function() { return handleError(function () {
const ret = global.global;
return addHeapObject(ret);
}, arguments) };
imports.wbg.__wbg_newnoargs_76313bd6ff35d0f2 = function(arg0, arg1) {
imports.wbg.__wbg_newnoargs_1ede4bf2ebbaaf43 = function(arg0, arg1) {
var v0 = getCachedStringFromWasm0(arg0, arg1);

@@ -704,3 +704,3 @@ const ret = new Function(v0);

};
imports.wbg.__wbg_instanceof_Uint8Array_247a91427532499e = function(arg0) {
imports.wbg.__wbg_instanceof_Uint8Array_df0761410414ef36 = function(arg0) {
let result;

@@ -715,3 +715,3 @@ try {

};
imports.wbg.__wbg_instanceof_ArrayBuffer_61dfc3198373c902 = function(arg0) {
imports.wbg.__wbg_instanceof_ArrayBuffer_74945570b4a62ec7 = function(arg0) {
let result;

@@ -743,7 +743,7 @@ try {

};
imports.wbg.__wbg_queueMicrotask_48421b3cc9052b68 = function(arg0) {
imports.wbg.__wbg_queueMicrotask_848aa4969108a57e = function(arg0) {
const ret = getObject(arg0).queueMicrotask;
return addHeapObject(ret);
};
imports.wbg.__wbg_resolve_570458cb99d56a43 = function(arg0) {
imports.wbg.__wbg_resolve_0aad7c1484731c99 = function(arg0) {
const ret = Promise.resolve(getObject(arg0));

@@ -761,10 +761,10 @@ return addHeapObject(ret);

};
imports.wbg.__wbg_then_95e6edc0f89b73b1 = function(arg0, arg1) {
imports.wbg.__wbg_then_748f75edfb032440 = function(arg0, arg1) {
const ret = getObject(arg0).then(getObject(arg1));
return addHeapObject(ret);
};
imports.wbg.__wbg_queueMicrotask_12a30234db4045d3 = function(arg0) {
imports.wbg.__wbg_queueMicrotask_c5419c06eab41e73 = function(arg0) {
queueMicrotask(getObject(arg0));
};
imports.wbg.__wbindgen_closure_wrapper16902 = function(arg0, arg1, arg2) {
imports.wbg.__wbindgen_closure_wrapper14354 = function(arg0, arg1, arg2) {
const ret = makeMutClosure(arg0, arg1, 988, __wbg_adapter_50);

@@ -796,6 +796,9 @@ return addHeapObject(ret);

if (typeof module !== 'undefined' && Object.getPrototypeOf(module) === Object.prototype)
({module} = module)
else
console.warn('using deprecated parameters for `initSync()`; pass a single object instead')
if (typeof module !== 'undefined') {
if (Object.getPrototypeOf(module) === Object.prototype) {
({module} = module)
} else {
console.warn('using deprecated parameters for `initSync()`; pass a single object instead')
}
}

@@ -819,6 +822,9 @@ const imports = __wbg_get_imports();

if (typeof module_or_path !== 'undefined' && Object.getPrototypeOf(module_or_path) === Object.prototype)
({module_or_path} = module_or_path)
else
console.warn('using deprecated parameters for the initialization function; pass a single object instead')
if (typeof module_or_path !== 'undefined') {
if (Object.getPrototypeOf(module_or_path) === Object.prototype) {
({module_or_path} = module_or_path)
} else {
console.warn('using deprecated parameters for the initialization function; pass a single object instead')
}
}

@@ -825,0 +831,0 @@ if (typeof module_or_path === 'undefined') {

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