@influxdata/flux-lsp-node
Advanced tools
Comparing version 0.6.3 to 0.6.4
/* tslint:disable */ | ||
/* eslint-disable */ | ||
/** | ||
* Parses a string representation of a json file and returns the corresponding JsValue representation | ||
* @param {string} s | ||
* @returns {any} | ||
*/ | ||
export function parse(s: string): any; | ||
/** | ||
* Format a JS file. | ||
* @param {any} js_file | ||
* @returns {string} | ||
*/ | ||
export function format_from_js_file(js_file: any): string; | ||
/** | ||
* Gets json docs for the entire stdlib | ||
* @returns {any} | ||
*/ | ||
export function get_all_docs(): any; | ||
/** | ||
* Gets json docs from a Flux identifier | ||
* @param {string} flux_path | ||
* @returns {any} | ||
*/ | ||
export function get_json_documentation(flux_path: string): any; | ||
/** | ||
*/ | ||
export class Server { | ||
@@ -6,0 +29,0 @@ free(): void; |
let imports = {}; | ||
imports['__wbindgen_placeholder__'] = module.exports; | ||
let wasm; | ||
const { TextEncoder, TextDecoder } = require(`util`); | ||
const { TextDecoder, TextEncoder } = require(`util`); | ||
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }); | ||
cachedTextDecoder.decode(); | ||
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) { | ||
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len)); | ||
} | ||
const heap = new Array(32).fill(undefined); | ||
@@ -10,18 +26,4 @@ | ||
function getObject(idx) { return heap[idx]; } | ||
let heap_next = heap.length; | ||
function dropObject(idx) { | ||
if (idx < 36) return; | ||
heap[idx] = heap_next; | ||
heap_next = idx; | ||
} | ||
function takeObject(idx) { | ||
const ret = getObject(idx); | ||
dropObject(idx); | ||
return ret; | ||
} | ||
function addHeapObject(obj) { | ||
@@ -36,12 +38,6 @@ if (heap_next === heap.length) heap.push(heap.length + 1); | ||
function getObject(idx) { return heap[idx]; } | ||
let WASM_VECTOR_LEN = 0; | ||
let cachegetUint8Memory0 = null; | ||
function getUint8Memory0() { | ||
if (cachegetUint8Memory0 === null || cachegetUint8Memory0.buffer !== wasm.memory.buffer) { | ||
cachegetUint8Memory0 = new Uint8Array(wasm.memory.buffer); | ||
} | ||
return cachegetUint8Memory0; | ||
} | ||
let cachedTextEncoder = new TextEncoder('utf-8'); | ||
@@ -108,8 +104,16 @@ | ||
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }); | ||
function dropObject(idx) { | ||
if (idx < 36) return; | ||
heap[idx] = heap_next; | ||
heap_next = idx; | ||
} | ||
cachedTextDecoder.decode(); | ||
function takeObject(idx) { | ||
const ret = getObject(idx); | ||
dropObject(idx); | ||
return ret; | ||
} | ||
function getStringFromWasm0(ptr, len) { | ||
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len)); | ||
function isLikeNone(x) { | ||
return x === undefined || x === null; | ||
} | ||
@@ -141,6 +145,57 @@ | ||
} | ||
function __wbg_adapter_12(arg0, arg1, arg2) { | ||
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h85df2328d2f5c28c(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__heb88c0c007a02a04(arg0, arg1, addHeapObject(arg2)); | ||
} | ||
/** | ||
* Parses a string representation of a json file and returns the corresponding JsValue representation | ||
* @param {string} s | ||
* @returns {any} | ||
*/ | ||
module.exports.parse = function(s) { | ||
var ptr0 = passStringToWasm0(s, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); | ||
var len0 = WASM_VECTOR_LEN; | ||
var ret = wasm.parse(ptr0, len0); | ||
return takeObject(ret); | ||
}; | ||
/** | ||
* Format a JS file. | ||
* @param {any} js_file | ||
* @returns {string} | ||
*/ | ||
module.exports.format_from_js_file = function(js_file) { | ||
try { | ||
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); | ||
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_add_to_stack_pointer(16); | ||
wasm.__wbindgen_free(r0, r1); | ||
} | ||
}; | ||
/** | ||
* Gets json docs for the entire stdlib | ||
* @returns {any} | ||
*/ | ||
module.exports.get_all_docs = function() { | ||
var ret = wasm.get_all_docs(); | ||
return takeObject(ret); | ||
}; | ||
/** | ||
* Gets json docs from a Flux identifier | ||
* @param {string} flux_path | ||
* @returns {any} | ||
*/ | ||
module.exports.get_json_documentation = function(flux_path) { | ||
var ptr0 = passStringToWasm0(flux_path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); | ||
var len0 = WASM_VECTOR_LEN; | ||
var ret = wasm.get_json_documentation(ptr0, len0); | ||
return takeObject(ret); | ||
}; | ||
function handleError(f, args) { | ||
@@ -153,4 +208,4 @@ try { | ||
} | ||
function __wbg_adapter_27(arg0, arg1, arg2, arg3) { | ||
wasm.wasm_bindgen__convert__closures__invoke2_mut__h7f17ca076f1f0367(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3)); | ||
function __wbg_adapter_35(arg0, arg1, arg2, arg3) { | ||
wasm.wasm_bindgen__convert__closures__invoke2_mut__h99e89a5ccaddee92(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3)); | ||
} | ||
@@ -287,14 +342,18 @@ | ||
module.exports.__wbindgen_object_drop_ref = function(arg0) { | ||
takeObject(arg0); | ||
module.exports.__wbindgen_json_parse = function(arg0, arg1) { | ||
var ret = JSON.parse(getStringFromWasm0(arg0, arg1)); | ||
return addHeapObject(ret); | ||
}; | ||
module.exports.__wbindgen_object_clone_ref = function(arg0) { | ||
var ret = getObject(arg0); | ||
return addHeapObject(ret); | ||
module.exports.__wbindgen_json_serialize = function(arg0, arg1) { | ||
const obj = getObject(arg1); | ||
var ret = JSON.stringify(obj === undefined ? null : obj); | ||
var ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); | ||
var len0 = WASM_VECTOR_LEN; | ||
getInt32Memory0()[arg0 / 4 + 1] = len0; | ||
getInt32Memory0()[arg0 / 4 + 0] = ptr0; | ||
}; | ||
module.exports.__wbg_serverresponse_new = function(arg0) { | ||
var ret = ServerResponse.__wrap(arg0); | ||
return addHeapObject(ret); | ||
module.exports.__wbindgen_object_drop_ref = function(arg0) { | ||
takeObject(arg0); | ||
}; | ||
@@ -312,6 +371,16 @@ | ||
module.exports.__wbindgen_json_serialize = function(arg0, arg1) { | ||
module.exports.__wbg_serverresponse_new = function(arg0) { | ||
var ret = ServerResponse.__wrap(arg0); | ||
return addHeapObject(ret); | ||
}; | ||
module.exports.__wbindgen_object_clone_ref = function(arg0) { | ||
var ret = getObject(arg0); | ||
return addHeapObject(ret); | ||
}; | ||
module.exports.__wbindgen_string_get = function(arg0, arg1) { | ||
const obj = getObject(arg1); | ||
var ret = JSON.stringify(obj === undefined ? null : obj); | ||
var ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); | ||
var ret = typeof(obj) === 'string' ? obj : undefined; | ||
var ptr0 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); | ||
var len0 = WASM_VECTOR_LEN; | ||
@@ -322,3 +391,3 @@ getInt32Memory0()[arg0 / 4 + 1] = len0; | ||
module.exports.__wbg_call_e91f71ddf1f45cff = function() { return handleError(function (arg0, arg1) { | ||
module.exports.__wbg_call_888d259a5fefc347 = function() { return handleError(function (arg0, arg1) { | ||
var ret = getObject(arg0).call(getObject(arg1)); | ||
@@ -328,3 +397,3 @@ return addHeapObject(ret); | ||
module.exports.__wbg_call_e3c72355d091d5d4 = function() { return handleError(function (arg0, arg1, arg2) { | ||
module.exports.__wbg_call_346669c262382ad7 = function() { return handleError(function (arg0, arg1, arg2) { | ||
var ret = getObject(arg0).call(getObject(arg1), getObject(arg2)); | ||
@@ -334,3 +403,3 @@ return addHeapObject(ret); | ||
module.exports.__wbg_new_119f8177d8717c43 = function(arg0, arg1) { | ||
module.exports.__wbg_new_b1d61b5687f5e73a = function(arg0, arg1) { | ||
try { | ||
@@ -342,3 +411,3 @@ var state0 = {a: arg0, b: arg1}; | ||
try { | ||
return __wbg_adapter_27(a, state0.b, arg0, arg1); | ||
return __wbg_adapter_35(a, state0.b, arg0, arg1); | ||
} finally { | ||
@@ -355,3 +424,3 @@ state0.a = a; | ||
module.exports.__wbg_resolve_7161ec6fd5b1cd29 = function(arg0) { | ||
module.exports.__wbg_resolve_d23068002f584f22 = function(arg0) { | ||
var ret = Promise.resolve(getObject(arg0)); | ||
@@ -361,3 +430,3 @@ return addHeapObject(ret); | ||
module.exports.__wbg_then_6d5072fec3fdb237 = function(arg0, arg1) { | ||
module.exports.__wbg_then_2fcac196782070cc = function(arg0, arg1) { | ||
var ret = getObject(arg0).then(getObject(arg1)); | ||
@@ -367,3 +436,3 @@ return addHeapObject(ret); | ||
module.exports.__wbg_then_4f3c7f6f3d36634a = function(arg0, arg1, arg2) { | ||
module.exports.__wbg_then_8c2d62e8ae5978f7 = function(arg0, arg1, arg2) { | ||
var ret = getObject(arg0).then(getObject(arg1), getObject(arg2)); | ||
@@ -377,4 +446,4 @@ return addHeapObject(ret); | ||
module.exports.__wbindgen_closure_wrapper2189 = function(arg0, arg1, arg2) { | ||
var ret = makeMutClosure(arg0, arg1, 631, __wbg_adapter_12); | ||
module.exports.__wbindgen_closure_wrapper2899 = function(arg0, arg1, arg2) { | ||
var ret = makeMutClosure(arg0, arg1, 775, __wbg_adapter_16); | ||
return addHeapObject(ret); | ||
@@ -381,0 +450,0 @@ }; |
@@ -7,3 +7,3 @@ { | ||
"description": "LSP support for the flux language", | ||
"version": "0.6.3", | ||
"version": "0.6.4", | ||
"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
5466940
450