@influxdata/flux-lsp-node
Advanced tools
Comparing version 0.4.2 to 0.5.0
@@ -8,3 +8,8 @@ /* tslint:disable */ | ||
export function parse(s: string): any; | ||
export class Handler { | ||
/** | ||
* @param {any} js_file | ||
* @returns {string} | ||
*/ | ||
export function format_from_js_file(js_file: any): string; | ||
export class Router { | ||
free(): void; | ||
@@ -24,2 +29,6 @@ } | ||
/** | ||
* @param {Function} f | ||
*/ | ||
register_measurements_callback(f: Function): void; | ||
/** | ||
* @param {string} msg | ||
@@ -26,0 +35,0 @@ * @returns {Promise<any>} |
@@ -97,4 +97,4 @@ let imports = {}; | ||
} | ||
function __wbg_adapter_14(arg0, arg1, arg2) { | ||
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h4bf7c47f644e7843(arg0, arg1, addHeapObject(arg2)); | ||
function __wbg_adapter_16(arg0, arg1, arg2) { | ||
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h5e7b4029b8eaa406(arg0, arg1, addHeapObject(arg2)); | ||
} | ||
@@ -105,4 +105,4 @@ | ||
} | ||
function __wbg_adapter_26(arg0, arg1, arg2, arg3) { | ||
wasm.wasm_bindgen__convert__closures__invoke2_mut__h5418373c40fa0211(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3)); | ||
function __wbg_adapter_29(arg0, arg1, arg2, arg3) { | ||
wasm.wasm_bindgen__convert__closures__invoke2_mut__h036630290f2b9db5(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3)); | ||
} | ||
@@ -122,5 +122,20 @@ | ||
/** | ||
* @param {any} js_file | ||
* @returns {string} | ||
*/ | ||
class Handler { | ||
module.exports.format_from_js_file = function(js_file) { | ||
try { | ||
wasm.format_from_js_file(8, addHeapObject(js_file)); | ||
var r0 = getInt32Memory0()[8 / 4 + 0]; | ||
var r1 = getInt32Memory0()[8 / 4 + 1]; | ||
return getStringFromWasm0(r0, r1); | ||
} finally { | ||
wasm.__wbindgen_free(r0, r1); | ||
} | ||
}; | ||
/** | ||
*/ | ||
class Router { | ||
free() { | ||
@@ -130,6 +145,6 @@ const ptr = this.ptr; | ||
wasm.__wbg_handler_free(ptr); | ||
wasm.__wbg_router_free(ptr); | ||
} | ||
} | ||
module.exports.Handler = Handler; | ||
module.exports.Router = Router; | ||
/** | ||
@@ -167,2 +182,8 @@ */ | ||
/** | ||
* @param {Function} f | ||
*/ | ||
register_measurements_callback(f) { | ||
wasm.server_register_measurements_callback(this.ptr, addHeapObject(f)); | ||
} | ||
/** | ||
* @param {string} msg | ||
@@ -236,7 +257,2 @@ * @returns {Promise<any>} | ||
module.exports.__wbg_serverresponse_new = function(arg0) { | ||
var ret = ServerResponse.__wrap(arg0); | ||
return addHeapObject(ret); | ||
}; | ||
module.exports.__wbindgen_json_serialize = function(arg0, arg1) { | ||
@@ -251,2 +267,12 @@ const obj = getObject(arg1); | ||
module.exports.__wbg_serverresponse_new = function(arg0) { | ||
var ret = ServerResponse.__wrap(arg0); | ||
return addHeapObject(ret); | ||
}; | ||
module.exports.__wbindgen_string_new = function(arg0, arg1) { | ||
var ret = getStringFromWasm0(arg0, arg1); | ||
return addHeapObject(ret); | ||
}; | ||
module.exports.__wbindgen_cb_drop = function(arg0) { | ||
@@ -287,3 +313,3 @@ const obj = takeObject(arg0).original; | ||
try { | ||
return __wbg_adapter_26(a, state0.b, arg0, arg1); | ||
return __wbg_adapter_29(a, state0.b, arg0, arg1); | ||
} finally { | ||
@@ -324,4 +350,4 @@ state0.a = a; | ||
module.exports.__wbindgen_closure_wrapper752 = function(arg0, arg1, arg2) { | ||
var ret = makeMutClosure(arg0, arg1, 160, __wbg_adapter_14); | ||
module.exports.__wbindgen_closure_wrapper804 = function(arg0, arg1, arg2) { | ||
var ret = makeMutClosure(arg0, arg1, 166, __wbg_adapter_16); | ||
return addHeapObject(ret); | ||
@@ -328,0 +354,0 @@ }; |
@@ -7,3 +7,3 @@ { | ||
"description": "LSP support for the flux language", | ||
"version": "0.4.2", | ||
"version": "0.5.0", | ||
"license": "MIT", | ||
@@ -10,0 +10,0 @@ "repository": { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2860003
351
1