@influxdata/flux-lsp-node
Advanced tools
Comparing version 0.5.24 to 0.5.25
@@ -6,16 +6,16 @@ /* tslint:disable */ | ||
* the MonoType, it returns a JsValue。 | ||
* @param {string} source | ||
* @param {string} file_name | ||
* @param {string} var_name | ||
* @returns {any} | ||
* @param {string} source | ||
* @param {string} file_name | ||
* @param {string} var_name | ||
* @returns {any} | ||
*/ | ||
export function wasm_find_var_type(source: string, file_name: string, var_name: string): any; | ||
/** | ||
* @param {any} js_file | ||
* @returns {string} | ||
* @param {any} js_file | ||
* @returns {string} | ||
*/ | ||
export function format_from_js_file(js_file: any): string; | ||
/** | ||
* @param {string} s | ||
* @returns {any} | ||
* @param {string} s | ||
* @returns {any} | ||
*/ | ||
@@ -33,25 +33,25 @@ export function parse(s: string): any; | ||
/** | ||
* @param {boolean} disable_folding | ||
* @param {boolean} support_multiple_files | ||
* @param {boolean} disable_folding | ||
* @param {boolean} support_multiple_files | ||
*/ | ||
constructor(disable_folding: boolean, support_multiple_files: boolean); | ||
/** | ||
* @param {Function} f | ||
* @param {Function} f | ||
*/ | ||
register_buckets_callback(f: Function): void; | ||
/** | ||
* @param {Function} f | ||
* @param {Function} f | ||
*/ | ||
register_measurements_callback(f: Function): void; | ||
/** | ||
* @param {Function} f | ||
* @param {Function} f | ||
*/ | ||
register_tag_keys_callback(f: Function): void; | ||
/** | ||
* @param {Function} f | ||
* @param {Function} f | ||
*/ | ||
register_tag_values_callback(f: Function): void; | ||
/** | ||
* @param {string} msg | ||
* @returns {Promise<any>} | ||
* @param {string} msg | ||
* @returns {Promise<any>} | ||
*/ | ||
@@ -65,9 +65,9 @@ process(msg: string): Promise<any>; | ||
/** | ||
* @returns {string | undefined} | ||
* @returns {string | undefined} | ||
*/ | ||
get_message(): string | undefined; | ||
/** | ||
* @returns {string | undefined} | ||
* @returns {string | undefined} | ||
*/ | ||
get_error(): string | undefined; | ||
} |
let imports = {}; | ||
imports['__wbindgen_placeholder__'] = module.exports; | ||
let wasm; | ||
const { TextDecoder } = require(String.raw`util`); | ||
const { TextEncoder, TextDecoder } = require(String.raw`util`); | ||
@@ -28,16 +28,60 @@ const heap = new Array(32).fill(undefined); | ||
let cachegetNodeBufferMemory0 = null; | ||
function getNodeBufferMemory0() { | ||
if (cachegetNodeBufferMemory0 === null || cachegetNodeBufferMemory0.buffer !== wasm.memory.buffer) { | ||
cachegetNodeBufferMemory0 = Buffer.from(wasm.memory.buffer); | ||
let cachegetUint8Memory0 = null; | ||
function getUint8Memory0() { | ||
if (cachegetUint8Memory0 === null || cachegetUint8Memory0.buffer !== wasm.memory.buffer) { | ||
cachegetUint8Memory0 = new Uint8Array(wasm.memory.buffer); | ||
} | ||
return cachegetNodeBufferMemory0; | ||
return cachegetUint8Memory0; | ||
} | ||
function passStringToWasm0(arg, malloc) { | ||
let cachedTextEncoder = new TextEncoder('utf-8'); | ||
const len = Buffer.byteLength(arg); | ||
const ptr = malloc(len); | ||
getNodeBufferMemory0().write(arg, ptr, len); | ||
WASM_VECTOR_LEN = len; | ||
const encodeString = (typeof cachedTextEncoder.encodeInto === 'function' | ||
? function (arg, view) { | ||
return cachedTextEncoder.encodeInto(arg, view); | ||
} | ||
: function (arg, view) { | ||
const buf = cachedTextEncoder.encode(arg); | ||
view.set(buf); | ||
return { | ||
read: arg.length, | ||
written: buf.length | ||
}; | ||
}); | ||
function passStringToWasm0(arg, malloc, realloc) { | ||
if (realloc === undefined) { | ||
const buf = cachedTextEncoder.encode(arg); | ||
const ptr = malloc(buf.length); | ||
getUint8Memory0().subarray(ptr, ptr + buf.length).set(buf); | ||
WASM_VECTOR_LEN = buf.length; | ||
return ptr; | ||
} | ||
let len = arg.length; | ||
let ptr = malloc(len); | ||
const mem = getUint8Memory0(); | ||
let offset = 0; | ||
for (; offset < len; offset++) { | ||
const code = arg.charCodeAt(offset); | ||
if (code > 0x7F) break; | ||
mem[ptr + offset] = code; | ||
} | ||
if (offset !== len) { | ||
if (offset !== 0) { | ||
arg = arg.slice(offset); | ||
} | ||
ptr = realloc(ptr, len, len = offset + arg.length * 3); | ||
const view = getUint8Memory0().subarray(ptr + offset, ptr + len); | ||
const ret = encodeString(arg, view); | ||
offset += ret.written; | ||
} | ||
WASM_VECTOR_LEN = offset; | ||
return ptr; | ||
@@ -67,10 +111,2 @@ } | ||
let cachegetUint8Memory0 = null; | ||
function getUint8Memory0() { | ||
if (cachegetUint8Memory0 === null || cachegetUint8Memory0.buffer !== wasm.memory.buffer) { | ||
cachegetUint8Memory0 = new Uint8Array(wasm.memory.buffer); | ||
} | ||
return cachegetUint8Memory0; | ||
} | ||
function getStringFromWasm0(ptr, len) { | ||
@@ -81,3 +117,3 @@ return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len)); | ||
function makeMutClosure(arg0, arg1, dtor, f) { | ||
const state = { a: arg0, b: arg1, cnt: 1 }; | ||
const state = { a: arg0, b: arg1, cnt: 1, dtor }; | ||
const real = (...args) => { | ||
@@ -93,11 +129,16 @@ // First up with a closure we increment the internal reference | ||
} finally { | ||
if (--state.cnt === 0) wasm.__wbindgen_export_2.get(dtor)(a, state.b); | ||
else state.a = a; | ||
if (--state.cnt === 0) { | ||
wasm.__wbindgen_export_2.get(state.dtor)(a, state.b); | ||
} else { | ||
state.a = a; | ||
} | ||
} | ||
}; | ||
real.original = state; | ||
return real; | ||
} | ||
function __wbg_adapter_16(arg0, arg1, arg2) { | ||
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h9c194cd60b5fa114(arg0, arg1, addHeapObject(arg2)); | ||
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__ha5e3fdf0ff601e6e(arg0, arg1, addHeapObject(arg2)); | ||
} | ||
@@ -116,3 +157,3 @@ | ||
function __wbg_adapter_33(arg0, arg1, arg2, arg3) { | ||
wasm.wasm_bindgen__convert__closures__invoke2_mut__h71d1d4aefcd7e230(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3)); | ||
wasm.wasm_bindgen__convert__closures__invoke2_mut__h8dba0667676e2b1b(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3)); | ||
} | ||
@@ -145,7 +186,10 @@ | ||
try { | ||
wasm.format_from_js_file(8, addHeapObject(js_file)); | ||
var r0 = getInt32Memory0()[8 / 4 + 0]; | ||
var r1 = getInt32Memory0()[8 / 4 + 1]; | ||
const retptr = wasm.__wbindgen_export_4.value - 16; | ||
wasm.__wbindgen_export_4.value = retptr; | ||
wasm.format_from_js_file(retptr, addHeapObject(js_file)); | ||
var r0 = getInt32Memory0()[retptr / 4 + 0]; | ||
var r1 = getInt32Memory0()[retptr / 4 + 1]; | ||
return getStringFromWasm0(r0, r1); | ||
} finally { | ||
wasm.__wbindgen_export_4.value += 16; | ||
wasm.__wbindgen_free(r0, r1); | ||
@@ -260,11 +304,17 @@ } | ||
get_message() { | ||
wasm.serverresponse_get_message(8, this.ptr); | ||
var r0 = getInt32Memory0()[8 / 4 + 0]; | ||
var r1 = getInt32Memory0()[8 / 4 + 1]; | ||
let v0; | ||
if (r0 !== 0) { | ||
v0 = getStringFromWasm0(r0, r1).slice(); | ||
wasm.__wbindgen_free(r0, r1 * 1); | ||
try { | ||
const retptr = wasm.__wbindgen_export_4.value - 16; | ||
wasm.__wbindgen_export_4.value = retptr; | ||
wasm.serverresponse_get_message(retptr, this.ptr); | ||
var r0 = getInt32Memory0()[retptr / 4 + 0]; | ||
var r1 = getInt32Memory0()[retptr / 4 + 1]; | ||
let v0; | ||
if (r0 !== 0) { | ||
v0 = getStringFromWasm0(r0, r1).slice(); | ||
wasm.__wbindgen_free(r0, r1 * 1); | ||
} | ||
return v0; | ||
} finally { | ||
wasm.__wbindgen_export_4.value += 16; | ||
} | ||
return v0; | ||
} | ||
@@ -275,11 +325,17 @@ /** | ||
get_error() { | ||
wasm.serverresponse_get_error(8, this.ptr); | ||
var r0 = getInt32Memory0()[8 / 4 + 0]; | ||
var r1 = getInt32Memory0()[8 / 4 + 1]; | ||
let v0; | ||
if (r0 !== 0) { | ||
v0 = getStringFromWasm0(r0, r1).slice(); | ||
wasm.__wbindgen_free(r0, r1 * 1); | ||
try { | ||
const retptr = wasm.__wbindgen_export_4.value - 16; | ||
wasm.__wbindgen_export_4.value = retptr; | ||
wasm.serverresponse_get_error(retptr, this.ptr); | ||
var r0 = getInt32Memory0()[retptr / 4 + 0]; | ||
var r1 = getInt32Memory0()[retptr / 4 + 1]; | ||
let v0; | ||
if (r0 !== 0) { | ||
v0 = getStringFromWasm0(r0, r1).slice(); | ||
wasm.__wbindgen_free(r0, r1 * 1); | ||
} | ||
return v0; | ||
} finally { | ||
wasm.__wbindgen_export_4.value += 16; | ||
} | ||
return v0; | ||
} | ||
@@ -327,3 +383,3 @@ } | ||
module.exports.__wbg_call_1f85aaa5836dfb23 = handleError(function(arg0, arg1) { | ||
module.exports.__wbg_call_951bd0c6d815d6f1 = handleError(function(arg0, arg1) { | ||
var ret = getObject(arg0).call(getObject(arg1)); | ||
@@ -333,3 +389,3 @@ return addHeapObject(ret); | ||
module.exports.__wbg_call_0246f1c8ff252fb6 = handleError(function(arg0, arg1, arg2) { | ||
module.exports.__wbg_call_bf745b1758bb6693 = handleError(function(arg0, arg1, arg2) { | ||
var ret = getObject(arg0).call(getObject(arg1), getObject(arg2)); | ||
@@ -339,3 +395,3 @@ return addHeapObject(ret); | ||
module.exports.__wbg_call_740b86f47a550a76 = handleError(function(arg0, arg1, arg2, arg3) { | ||
module.exports.__wbg_call_f9e90601fa9f7222 = handleError(function(arg0, arg1, arg2, arg3) { | ||
var ret = getObject(arg0).call(getObject(arg1), getObject(arg2), getObject(arg3)); | ||
@@ -345,3 +401,3 @@ return addHeapObject(ret); | ||
module.exports.__wbg_new_09f2ad087112acf0 = function(arg0, arg1) { | ||
module.exports.__wbg_new_bb4e44ef089e45b4 = function(arg0, arg1) { | ||
try { | ||
@@ -365,3 +421,3 @@ var state0 = {a: arg0, b: arg1}; | ||
module.exports.__wbg_resolve_708df7651c8929b8 = function(arg0) { | ||
module.exports.__wbg_resolve_6e61e640925a0db9 = function(arg0) { | ||
var ret = Promise.resolve(getObject(arg0)); | ||
@@ -371,3 +427,3 @@ return addHeapObject(ret); | ||
module.exports.__wbg_then_8c23dce80c84c8fb = function(arg0, arg1) { | ||
module.exports.__wbg_then_dd3785597974798a = function(arg0, arg1) { | ||
var ret = getObject(arg0).then(getObject(arg1)); | ||
@@ -377,3 +433,3 @@ return addHeapObject(ret); | ||
module.exports.__wbg_then_300153bb889a5b4b = function(arg0, arg1, arg2) { | ||
module.exports.__wbg_then_0f957e0f4c3e537a = function(arg0, arg1, arg2) { | ||
var ret = getObject(arg0).then(getObject(arg1), getObject(arg2)); | ||
@@ -392,3 +448,3 @@ return addHeapObject(ret); | ||
module.exports.__wbindgen_closure_wrapper810 = function(arg0, arg1, arg2) { | ||
module.exports.__wbindgen_closure_wrapper831 = function(arg0, arg1, arg2) { | ||
var ret = makeMutClosure(arg0, arg1, 157, __wbg_adapter_16); | ||
@@ -395,0 +451,0 @@ return addHeapObject(ret); |
@@ -7,3 +7,3 @@ { | ||
"description": "LSP support for the flux language", | ||
"version": "0.5.24", | ||
"version": "0.5.25", | ||
"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
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
3711293
452