@influxdata/flux-lsp-browser
Advanced tools
Comparing version 0.6.4 to 0.6.6
import * as wasm from './flux-lsp-browser_bg.wasm'; | ||
const heap = new Array(32).fill(undefined); | ||
heap.push(undefined, null, true, false); | ||
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) { | ||
if (heap_next === heap.length) heap.push(heap.length + 1); | ||
const idx = heap_next; | ||
heap_next = heap[idx]; | ||
heap[idx] = obj; | ||
return idx; | ||
} | ||
const lTextDecoder = typeof TextDecoder === 'undefined' ? (0, module.require)('util').TextDecoder : TextDecoder; | ||
@@ -21,19 +50,2 @@ | ||
const heap = new Array(32).fill(undefined); | ||
heap.push(undefined, null, true, false); | ||
let heap_next = heap.length; | ||
function addHeapObject(obj) { | ||
if (heap_next === heap.length) heap.push(heap.length + 1); | ||
const idx = heap_next; | ||
heap_next = heap[idx]; | ||
heap[idx] = obj; | ||
return idx; | ||
} | ||
function getObject(idx) { return heap[idx]; } | ||
let WASM_VECTOR_LEN = 0; | ||
@@ -104,14 +116,2 @@ | ||
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 isLikeNone(x) { | ||
@@ -146,3 +146,3 @@ return x === undefined || x === null; | ||
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)); | ||
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hd575a1d644fa6802(arg0, arg1, addHeapObject(arg2)); | ||
} | ||
@@ -180,23 +180,2 @@ | ||
/** | ||
* Gets json docs for the entire stdlib | ||
* @returns {any} | ||
*/ | ||
export function get_all_docs() { | ||
var ret = wasm.get_all_docs(); | ||
return takeObject(ret); | ||
} | ||
/** | ||
* Gets json docs from a Flux identifier | ||
* @param {string} flux_path | ||
* @returns {any} | ||
*/ | ||
export function get_json_documentation(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) { | ||
@@ -209,4 +188,4 @@ try { | ||
} | ||
function __wbg_adapter_35(arg0, arg1, arg2, arg3) { | ||
wasm.wasm_bindgen__convert__closures__invoke2_mut__h99e89a5ccaddee92(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3)); | ||
function __wbg_adapter_33(arg0, arg1, arg2, arg3) { | ||
wasm.wasm_bindgen__convert__closures__invoke2_mut__h25ca7b67f857e6a6(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3)); | ||
} | ||
@@ -341,2 +320,21 @@ | ||
export function __wbindgen_cb_drop(arg0) { | ||
const obj = takeObject(arg0).original; | ||
if (obj.cnt-- == 1) { | ||
obj.a = 0; | ||
return true; | ||
} | ||
var ret = false; | ||
return ret; | ||
}; | ||
export function __wbindgen_object_drop_ref(arg0) { | ||
takeObject(arg0); | ||
}; | ||
export function __wbindgen_object_clone_ref(arg0) { | ||
var ret = getObject(arg0); | ||
return addHeapObject(ret); | ||
}; | ||
export function __wbindgen_json_parse(arg0, arg1) { | ||
@@ -356,16 +354,2 @@ var ret = JSON.parse(getStringFromWasm0(arg0, arg1)); | ||
export function __wbindgen_object_drop_ref(arg0) { | ||
takeObject(arg0); | ||
}; | ||
export function __wbindgen_cb_drop(arg0) { | ||
const obj = takeObject(arg0).original; | ||
if (obj.cnt-- == 1) { | ||
obj.a = 0; | ||
return true; | ||
} | ||
var ret = false; | ||
return ret; | ||
}; | ||
export function __wbg_serverresponse_new(arg0) { | ||
@@ -376,7 +360,2 @@ var ret = ServerResponse.__wrap(arg0); | ||
export function __wbindgen_object_clone_ref(arg0) { | ||
var ret = getObject(arg0); | ||
return addHeapObject(ret); | ||
}; | ||
export function __wbindgen_string_get(arg0, arg1) { | ||
@@ -408,3 +387,3 @@ const obj = getObject(arg1); | ||
try { | ||
return __wbg_adapter_35(a, state0.b, arg0, arg1); | ||
return __wbg_adapter_33(a, state0.b, arg0, arg1); | ||
} finally { | ||
@@ -440,6 +419,6 @@ state0.a = a; | ||
export function __wbindgen_closure_wrapper2899(arg0, arg1, arg2) { | ||
var ret = makeMutClosure(arg0, arg1, 775, __wbg_adapter_16); | ||
export function __wbindgen_closure_wrapper2921(arg0, arg1, arg2) { | ||
var ret = makeMutClosure(arg0, arg1, 795, __wbg_adapter_16); | ||
return addHeapObject(ret); | ||
}; | ||
@@ -16,14 +16,3 @@ /* tslint:disable */ | ||
/** | ||
* 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 { | ||
@@ -30,0 +19,0 @@ free(): void; |
@@ -7,3 +7,3 @@ { | ||
"description": "LSP support for the flux language", | ||
"version": "0.6.4", | ||
"version": "0.6.6", | ||
"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
5190944
412