@next/swc-wasm-nodejs
Advanced tools
Comparing version 15.2.0-canary.3 to 15.2.0-canary.4
{ | ||
"name": "@next/swc-wasm-nodejs", | ||
"version": "15.2.0-canary.3", | ||
"version": "15.2.0-canary.4", | ||
"files": [ | ||
@@ -5,0 +5,0 @@ "wasm_bg.wasm", |
/* tslint:disable */ | ||
/* eslint-disable */ | ||
/** | ||
* @param {string} value | ||
* @param {any} opts | ||
* @returns {any} | ||
*/ | ||
export function mdxCompileSync(value: string, opts: any): any; | ||
/** | ||
* @param {string} value | ||
* @param {any} opts | ||
* @returns {Promise<any>} | ||
*/ | ||
export function mdxCompile(value: string, opts: any): Promise<any>; | ||
/** | ||
* @param {string} s | ||
@@ -39,13 +51,1 @@ * @param {any} opts | ||
export function parse(s: string, opts: any): Promise<any>; | ||
/** | ||
* @param {string} value | ||
* @param {any} opts | ||
* @returns {any} | ||
*/ | ||
export function mdxCompileSync(value: string, opts: any): any; | ||
/** | ||
* @param {string} value | ||
* @param {any} opts | ||
* @returns {Promise<any>} | ||
*/ | ||
export function mdxCompile(value: string, opts: any): Promise<any>; |
86
wasm.js
@@ -236,3 +236,3 @@ let imports = {}; | ||
function __wbg_adapter_48(arg0, arg1, arg2) { | ||
wasm._dyn_core_cc82749279eddcb3___ops__function__FnMut_______Output______as_wasm_bindgen_8badfcf26bceba65___closure__WasmClosure___describe__invoke___wasm_bindgen_8badfcf26bceba65___JsValue_____(arg0, arg1, addHeapObject(arg2)); | ||
wasm._dyn_core_cc82749279eddcb3___ops__function__FnMut_______Output______as_wasm_bindgen_b480478ecac8399___closure__WasmClosure___describe__invoke___wasm_bindgen_b480478ecac8399___JsValue_____(arg0, arg1, addHeapObject(arg2)); | ||
} | ||
@@ -256,14 +256,14 @@ | ||
function __wbg_adapter_109(arg0, arg1, arg2, arg3) { | ||
wasm.wasm_bindgen_8badfcf26bceba65___convert__closures__invoke2_mut___wasm_bindgen_8badfcf26bceba65___JsValue__wasm_bindgen_8badfcf26bceba65___JsValue_____(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3)); | ||
wasm.wasm_bindgen_b480478ecac8399___convert__closures__invoke2_mut___wasm_bindgen_b480478ecac8399___JsValue__wasm_bindgen_b480478ecac8399___JsValue_____(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3)); | ||
} | ||
/** | ||
* @param {string} s | ||
* @param {string} value | ||
* @param {any} opts | ||
* @returns {any} | ||
*/ | ||
module.exports.minifySync = function(s, opts) { | ||
module.exports.mdxCompileSync = function(value, opts) { | ||
try { | ||
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); | ||
wasm.minifySync(retptr, addHeapObject(s), addHeapObject(opts)); | ||
wasm.mdxCompileSync(retptr, addHeapObject(value), addHeapObject(opts)); | ||
var r0 = getInt32Memory0()[retptr / 4 + 0]; | ||
@@ -282,8 +282,8 @@ var r1 = getInt32Memory0()[retptr / 4 + 1]; | ||
/** | ||
* @param {string} s | ||
* @param {string} value | ||
* @param {any} opts | ||
* @returns {Promise<any>} | ||
*/ | ||
module.exports.minify = function(s, opts) { | ||
const ret = wasm.minify(addHeapObject(s), addHeapObject(opts)); | ||
module.exports.mdxCompile = function(value, opts) { | ||
const ret = wasm.mdxCompile(addHeapObject(value), addHeapObject(opts)); | ||
return takeObject(ret); | ||
@@ -293,10 +293,10 @@ }; | ||
/** | ||
* @param {any} s | ||
* @param {string} s | ||
* @param {any} opts | ||
* @returns {any} | ||
*/ | ||
module.exports.transformSync = function(s, opts) { | ||
module.exports.minifySync = function(s, opts) { | ||
try { | ||
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); | ||
wasm.transformSync(retptr, addHeapObject(s), addHeapObject(opts)); | ||
wasm.minifySync(retptr, addHeapObject(s), addHeapObject(opts)); | ||
var r0 = getInt32Memory0()[retptr / 4 + 0]; | ||
@@ -315,8 +315,8 @@ var r1 = getInt32Memory0()[retptr / 4 + 1]; | ||
/** | ||
* @param {any} s | ||
* @param {string} s | ||
* @param {any} opts | ||
* @returns {Promise<any>} | ||
*/ | ||
module.exports.transform = function(s, opts) { | ||
const ret = wasm.transform(addHeapObject(s), addHeapObject(opts)); | ||
module.exports.minify = function(s, opts) { | ||
const ret = wasm.minify(addHeapObject(s), addHeapObject(opts)); | ||
return takeObject(ret); | ||
@@ -326,10 +326,10 @@ }; | ||
/** | ||
* @param {string} s | ||
* @param {any} s | ||
* @param {any} opts | ||
* @returns {any} | ||
*/ | ||
module.exports.parseSync = function(s, opts) { | ||
module.exports.transformSync = function(s, opts) { | ||
try { | ||
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); | ||
wasm.parseSync(retptr, addHeapObject(s), addHeapObject(opts)); | ||
wasm.transformSync(retptr, addHeapObject(s), addHeapObject(opts)); | ||
var r0 = getInt32Memory0()[retptr / 4 + 0]; | ||
@@ -348,8 +348,8 @@ var r1 = getInt32Memory0()[retptr / 4 + 1]; | ||
/** | ||
* @param {string} s | ||
* @param {any} s | ||
* @param {any} opts | ||
* @returns {Promise<any>} | ||
*/ | ||
module.exports.parse = function(s, opts) { | ||
const ret = wasm.parse(addHeapObject(s), addHeapObject(opts)); | ||
module.exports.transform = function(s, opts) { | ||
const ret = wasm.transform(addHeapObject(s), addHeapObject(opts)); | ||
return takeObject(ret); | ||
@@ -359,10 +359,10 @@ }; | ||
/** | ||
* @param {string} value | ||
* @param {string} s | ||
* @param {any} opts | ||
* @returns {any} | ||
*/ | ||
module.exports.mdxCompileSync = function(value, opts) { | ||
module.exports.parseSync = function(s, opts) { | ||
try { | ||
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); | ||
wasm.mdxCompileSync(retptr, addHeapObject(value), addHeapObject(opts)); | ||
wasm.parseSync(retptr, addHeapObject(s), addHeapObject(opts)); | ||
var r0 = getInt32Memory0()[retptr / 4 + 0]; | ||
@@ -381,8 +381,8 @@ var r1 = getInt32Memory0()[retptr / 4 + 1]; | ||
/** | ||
* @param {string} value | ||
* @param {string} s | ||
* @param {any} opts | ||
* @returns {Promise<any>} | ||
*/ | ||
module.exports.mdxCompile = function(value, opts) { | ||
const ret = wasm.mdxCompile(addHeapObject(value), addHeapObject(opts)); | ||
module.exports.parse = function(s, opts) { | ||
const ret = wasm.parse(addHeapObject(s), addHeapObject(opts)); | ||
return takeObject(ret); | ||
@@ -667,7 +667,2 @@ }; | ||
module.exports.__wbg_length_161c0d89c6535c1d = function(arg0) { | ||
const ret = getObject(arg0).length; | ||
return ret; | ||
}; | ||
module.exports.__wbg_isSafeInteger_a23a66ee7c41b273 = function(arg0) { | ||
@@ -683,7 +678,2 @@ const ret = Number.isSafeInteger(getObject(arg0)); | ||
module.exports.__wbg_entries_488960b196cfb6a5 = function(arg0) { | ||
const ret = Object.entries(getObject(arg0)); | ||
return addHeapObject(ret); | ||
}; | ||
module.exports.__wbindgen_bigint_get_as_i64 = function(arg0, arg1) { | ||
@@ -711,2 +701,7 @@ const v = getObject(arg1); | ||
module.exports.__wbg_length_161c0d89c6535c1d = function(arg0) { | ||
const ret = getObject(arg0).length; | ||
return ret; | ||
}; | ||
module.exports.__wbg_next_b2d3366343a208b3 = function() { return handleError(function (arg0) { | ||
@@ -727,2 +722,12 @@ const ret = getObject(arg0).next(); | ||
module.exports.__wbg_entries_488960b196cfb6a5 = function(arg0) { | ||
const ret = Object.entries(getObject(arg0)); | ||
return addHeapObject(ret); | ||
}; | ||
module.exports.__wbg_getwithrefkey_15c62c2b8546208d = function(arg0, arg1) { | ||
const ret = getObject(arg0)[getObject(arg1)]; | ||
return addHeapObject(ret); | ||
}; | ||
module.exports.__wbg_new_70828a4353259d4b = function(arg0, arg1) { | ||
@@ -747,7 +752,2 @@ try { | ||
module.exports.__wbg_getwithrefkey_15c62c2b8546208d = function(arg0, arg1) { | ||
const ret = getObject(arg0)[getObject(arg1)]; | ||
return addHeapObject(ret); | ||
}; | ||
module.exports.__wbg_new_632630b5cec17f21 = function() { | ||
@@ -803,4 +803,4 @@ const ret = new Object(); | ||
module.exports.__wbindgen_closure_wrapper21634 = function(arg0, arg1, arg2) { | ||
const ret = makeMutClosure(arg0, arg1, 934, __wbg_adapter_48); | ||
module.exports.__wbindgen_closure_wrapper21877 = function(arg0, arg1, arg2) { | ||
const ret = makeMutClosure(arg0, arg1, 937, __wbg_adapter_48); | ||
return addHeapObject(ret); | ||
@@ -807,0 +807,0 @@ }; |
Sorry, the diff of this file is not supported yet
36065946