@influxdata/flux-lsp-browser
Advanced tools
Comparing version 0.5.53 to 0.5.99
@@ -23,17 +23,4 @@ import * as wasm from './flux-lsp-browser_bg.wasm'; | ||
function addHeapObject(obj) { | ||
if (heap_next === heap.length) heap.push(heap.length + 1); | ||
const idx = heap_next; | ||
heap_next = heap[idx]; | ||
let WASM_VECTOR_LEN = 0; | ||
heap[idx] = obj; | ||
return idx; | ||
} | ||
const lTextDecoder = typeof TextDecoder === 'undefined' ? (0, module.require)('util').TextDecoder : TextDecoder; | ||
let cachedTextDecoder = new lTextDecoder('utf-8', { ignoreBOM: true, fatal: true }); | ||
cachedTextDecoder.decode(); | ||
let cachegetUint8Memory0 = null; | ||
@@ -47,8 +34,2 @@ function getUint8Memory0() { | ||
function getStringFromWasm0(ptr, len) { | ||
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len)); | ||
} | ||
let WASM_VECTOR_LEN = 0; | ||
const lTextEncoder = typeof TextEncoder === 'undefined' ? (0, module.require)('util').TextEncoder : TextEncoder; | ||
@@ -117,2 +98,21 @@ | ||
const lTextDecoder = typeof TextDecoder === 'undefined' ? (0, module.require)('util').TextDecoder : TextDecoder; | ||
let cachedTextDecoder = new lTextDecoder('utf-8', { ignoreBOM: true, fatal: true }); | ||
cachedTextDecoder.decode(); | ||
function getStringFromWasm0(ptr, len) { | ||
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len)); | ||
} | ||
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 makeMutClosure(arg0, arg1, dtor, f) { | ||
@@ -143,3 +143,3 @@ const state = { a: arg0, b: arg1, cnt: 1, dtor }; | ||
function __wbg_adapter_16(arg0, arg1, arg2) { | ||
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h96b5e1f25b53223b(arg0, arg1, addHeapObject(arg2)); | ||
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hf7a2f9b1a37f6d9b(arg0, arg1, addHeapObject(arg2)); | ||
} | ||
@@ -155,3 +155,3 @@ | ||
function __wbg_adapter_33(arg0, arg1, arg2, arg3) { | ||
wasm.wasm_bindgen__convert__closures__invoke2_mut__haa69260c24e5afff(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3)); | ||
wasm.wasm_bindgen__convert__closures__invoke2_mut__h07498e7d2b43ceb3(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3)); | ||
} | ||
@@ -209,3 +209,15 @@ | ||
/** | ||
* Gets json docs from a Flux identifier | ||
* @param {string} flux_identifier | ||
* @returns {any} | ||
*/ | ||
export function get_json_documentation(flux_identifier) { | ||
var ptr0 = passStringToWasm0(flux_identifier, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); | ||
var len0 = WASM_VECTOR_LEN; | ||
var ret = wasm.get_json_documentation(ptr0, len0); | ||
return takeObject(ret); | ||
} | ||
/** | ||
*/ | ||
export class Router { | ||
@@ -356,12 +368,2 @@ | ||
export function __wbindgen_object_clone_ref(arg0) { | ||
var ret = getObject(arg0); | ||
return addHeapObject(ret); | ||
}; | ||
export function __wbindgen_string_new(arg0, arg1) { | ||
var ret = getStringFromWasm0(arg0, arg1); | ||
return addHeapObject(ret); | ||
}; | ||
export function __wbindgen_json_serialize(arg0, arg1) { | ||
@@ -381,2 +383,7 @@ const obj = getObject(arg1); | ||
export function __wbindgen_string_new(arg0, arg1) { | ||
var ret = getStringFromWasm0(arg0, arg1); | ||
return addHeapObject(ret); | ||
}; | ||
export function __wbindgen_cb_drop(arg0) { | ||
@@ -392,3 +399,8 @@ const obj = takeObject(arg0).original; | ||
export function __wbg_call_ba36642bd901572b() { return handleError(function (arg0, arg1) { | ||
export function __wbindgen_object_clone_ref(arg0) { | ||
var ret = getObject(arg0); | ||
return addHeapObject(ret); | ||
}; | ||
export function __wbg_call_9698e9b9c4668ae0() { return handleError(function (arg0, arg1) { | ||
var ret = getObject(arg0).call(getObject(arg1)); | ||
@@ -398,3 +410,3 @@ return addHeapObject(ret); | ||
export function __wbg_call_3fc07b7d5fc9022d() { return handleError(function (arg0, arg1, arg2) { | ||
export function __wbg_call_4438b4bab9ab5268() { return handleError(function (arg0, arg1, arg2) { | ||
var ret = getObject(arg0).call(getObject(arg1), getObject(arg2)); | ||
@@ -404,3 +416,3 @@ return addHeapObject(ret); | ||
export function __wbg_call_2c06c503c0d359bd() { return handleError(function (arg0, arg1, arg2, arg3) { | ||
export function __wbg_call_f325895c60cbae4d() { return handleError(function (arg0, arg1, arg2, arg3) { | ||
var ret = getObject(arg0).call(getObject(arg1), getObject(arg2), getObject(arg3)); | ||
@@ -410,3 +422,3 @@ return addHeapObject(ret); | ||
export function __wbg_new_c143a4f563f78c4e(arg0, arg1) { | ||
export function __wbg_new_ae366b99da42660b(arg0, arg1) { | ||
try { | ||
@@ -430,3 +442,3 @@ var state0 = {a: arg0, b: arg1}; | ||
export function __wbg_resolve_cae3d8f752f5db88(arg0) { | ||
export function __wbg_resolve_84f06d050082a771(arg0) { | ||
var ret = Promise.resolve(getObject(arg0)); | ||
@@ -436,3 +448,3 @@ return addHeapObject(ret); | ||
export function __wbg_then_c2361a9d5c9a4fcb(arg0, arg1) { | ||
export function __wbg_then_fd35af33296a58d7(arg0, arg1) { | ||
var ret = getObject(arg0).then(getObject(arg1)); | ||
@@ -442,3 +454,3 @@ return addHeapObject(ret); | ||
export function __wbg_then_6c9a4bf55755f9b8(arg0, arg1, arg2) { | ||
export function __wbg_then_c919ca41618a24c2(arg0, arg1, arg2) { | ||
var ret = getObject(arg0).then(getObject(arg1), getObject(arg2)); | ||
@@ -457,6 +469,6 @@ return addHeapObject(ret); | ||
export function __wbindgen_closure_wrapper830(arg0, arg1, arg2) { | ||
var ret = makeMutClosure(arg0, arg1, 180, __wbg_adapter_16); | ||
export function __wbindgen_closure_wrapper1364(arg0, arg1, arg2) { | ||
var ret = makeMutClosure(arg0, arg1, 266, __wbg_adapter_16); | ||
return addHeapObject(ret); | ||
}; | ||
@@ -25,3 +25,9 @@ /* tslint:disable */ | ||
/** | ||
* Gets json docs from a Flux identifier | ||
* @param {string} flux_identifier | ||
* @returns {any} | ||
*/ | ||
export function get_json_documentation(flux_identifier: string): any; | ||
/** | ||
*/ | ||
export class Router { | ||
@@ -28,0 +34,0 @@ free(): void; |
@@ -7,3 +7,3 @@ { | ||
"description": "LSP support for the flux language", | ||
"version": "0.5.53", | ||
"version": "0.5.99", | ||
"license": "MIT", | ||
@@ -18,2 +18,3 @@ "repository": { | ||
"flux-lsp-browser.js", | ||
"flux-lsp-browser_bg.js", | ||
"flux-lsp-browser.d.ts" | ||
@@ -20,0 +21,0 @@ ], |
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
4193883
471