@influxdata/flux-lsp-browser
Advanced tools
Comparing version 0.5.99 to 0.6.0
@@ -9,16 +9,2 @@ import * as wasm from './flux-lsp-browser_bg.wasm'; | ||
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; | ||
} | ||
let WASM_VECTOR_LEN = 0; | ||
@@ -97,10 +83,14 @@ | ||
const lTextDecoder = typeof TextDecoder === 'undefined' ? (0, module.require)('util').TextDecoder : TextDecoder; | ||
let heap_next = heap.length; | ||
let cachedTextDecoder = new lTextDecoder('utf-8', { ignoreBOM: true, fatal: true }); | ||
function dropObject(idx) { | ||
if (idx < 36) return; | ||
heap[idx] = heap_next; | ||
heap_next = idx; | ||
} | ||
cachedTextDecoder.decode(); | ||
function getStringFromWasm0(ptr, len) { | ||
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len)); | ||
function takeObject(idx) { | ||
const ret = getObject(idx); | ||
dropObject(idx); | ||
return ret; | ||
} | ||
@@ -117,2 +107,12 @@ | ||
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 makeMutClosure(arg0, arg1, dtor, f) { | ||
@@ -142,3 +142,3 @@ const state = { a: arg0, b: arg1, cnt: 1, dtor }; | ||
} | ||
function __wbg_adapter_16(arg0, arg1, arg2) { | ||
function __wbg_adapter_14(arg0, arg1, arg2) { | ||
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hf7a2f9b1a37f6d9b(arg0, arg1, addHeapObject(arg2)); | ||
@@ -154,3 +154,3 @@ } | ||
} | ||
function __wbg_adapter_33(arg0, arg1, arg2, arg3) { | ||
function __wbg_adapter_29(arg0, arg1, arg2, arg3) { | ||
wasm.wasm_bindgen__convert__closures__invoke2_mut__h07498e7d2b43ceb3(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3)); | ||
@@ -260,41 +260,41 @@ } | ||
* @param {boolean} disable_folding | ||
* @param {boolean} support_multiple_files | ||
* @param {boolean} _support_multiple_files | ||
*/ | ||
constructor(disable_folding, support_multiple_files) { | ||
var ret = wasm.server_new(disable_folding, support_multiple_files); | ||
constructor(disable_folding, _support_multiple_files) { | ||
var ret = wasm.server_new(disable_folding, _support_multiple_files); | ||
return Server.__wrap(ret); | ||
} | ||
/** | ||
* @param {Function} f | ||
* @param {string} msg | ||
* @returns {Promise<any>} | ||
*/ | ||
register_buckets_callback(f) { | ||
wasm.server_register_buckets_callback(this.ptr, addHeapObject(f)); | ||
process(msg) { | ||
var ptr0 = passStringToWasm0(msg, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); | ||
var len0 = WASM_VECTOR_LEN; | ||
var ret = wasm.server_process(this.ptr, ptr0, len0); | ||
return takeObject(ret); | ||
} | ||
/** | ||
* @param {Function} f | ||
* @param {Function} _f | ||
*/ | ||
register_measurements_callback(f) { | ||
wasm.server_register_measurements_callback(this.ptr, addHeapObject(f)); | ||
register_buckets_callback(_f) { | ||
wasm.server_register_buckets_callback(this.ptr, addHeapObject(_f)); | ||
} | ||
/** | ||
* @param {Function} f | ||
* @param {Function} _f | ||
*/ | ||
register_tag_keys_callback(f) { | ||
wasm.server_register_tag_keys_callback(this.ptr, addHeapObject(f)); | ||
register_measurements_callback(_f) { | ||
wasm.server_register_buckets_callback(this.ptr, addHeapObject(_f)); | ||
} | ||
/** | ||
* @param {Function} f | ||
* @param {Function} _f | ||
*/ | ||
register_tag_values_callback(f) { | ||
wasm.server_register_tag_values_callback(this.ptr, addHeapObject(f)); | ||
register_tag_keys_callback(_f) { | ||
wasm.server_register_buckets_callback(this.ptr, addHeapObject(_f)); | ||
} | ||
/** | ||
* @param {string} msg | ||
* @returns {Promise<any>} | ||
* @param {Function} _f | ||
*/ | ||
process(msg) { | ||
var ptr0 = passStringToWasm0(msg, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); | ||
var len0 = WASM_VECTOR_LEN; | ||
var ret = wasm.server_process(this.ptr, ptr0, len0); | ||
return takeObject(ret); | ||
register_tag_values_callback(_f) { | ||
wasm.server_register_buckets_callback(this.ptr, addHeapObject(_f)); | ||
} | ||
@@ -364,6 +364,2 @@ } | ||
export function __wbindgen_object_drop_ref(arg0) { | ||
takeObject(arg0); | ||
}; | ||
export function __wbindgen_json_serialize(arg0, arg1) { | ||
@@ -378,9 +374,13 @@ const obj = getObject(arg1); | ||
export function __wbg_serverresponse_new(arg0) { | ||
var ret = ServerResponse.__wrap(arg0); | ||
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_string_new(arg0, arg1) { | ||
var ret = getStringFromWasm0(arg0, arg1); | ||
export function __wbg_serverresponse_new(arg0) { | ||
var ret = ServerResponse.__wrap(arg0); | ||
return addHeapObject(ret); | ||
@@ -399,7 +399,2 @@ }; | ||
export function __wbindgen_object_clone_ref(arg0) { | ||
var ret = getObject(arg0); | ||
return addHeapObject(ret); | ||
}; | ||
export function __wbg_call_9698e9b9c4668ae0() { return handleError(function (arg0, arg1) { | ||
@@ -415,7 +410,2 @@ var ret = getObject(arg0).call(getObject(arg1)); | ||
export function __wbg_call_f325895c60cbae4d() { return handleError(function (arg0, arg1, arg2, arg3) { | ||
var ret = getObject(arg0).call(getObject(arg1), getObject(arg2), getObject(arg3)); | ||
return addHeapObject(ret); | ||
}, arguments) }; | ||
export function __wbg_new_ae366b99da42660b(arg0, arg1) { | ||
@@ -428,3 +418,3 @@ try { | ||
try { | ||
return __wbg_adapter_33(a, state0.b, arg0, arg1); | ||
return __wbg_adapter_29(a, state0.b, arg0, arg1); | ||
} finally { | ||
@@ -465,6 +455,6 @@ state0.a = a; | ||
export function __wbindgen_closure_wrapper1364(arg0, arg1, arg2) { | ||
var ret = makeMutClosure(arg0, arg1, 266, __wbg_adapter_16); | ||
export function __wbindgen_closure_wrapper2180(arg0, arg1, arg2) { | ||
var ret = makeMutClosure(arg0, arg1, 635, __wbg_adapter_14); | ||
return addHeapObject(ret); | ||
}; | ||
@@ -41,26 +41,26 @@ /* tslint:disable */ | ||
* @param {boolean} disable_folding | ||
* @param {boolean} support_multiple_files | ||
* @param {boolean} _support_multiple_files | ||
*/ | ||
constructor(disable_folding: boolean, support_multiple_files: boolean); | ||
constructor(disable_folding: boolean, _support_multiple_files: boolean); | ||
/** | ||
* @param {Function} f | ||
* @param {string} msg | ||
* @returns {Promise<any>} | ||
*/ | ||
register_buckets_callback(f: Function): void; | ||
process(msg: string): Promise<any>; | ||
/** | ||
* @param {Function} f | ||
* @param {Function} _f | ||
*/ | ||
register_measurements_callback(f: Function): void; | ||
register_buckets_callback(_f: Function): void; | ||
/** | ||
* @param {Function} f | ||
* @param {Function} _f | ||
*/ | ||
register_tag_keys_callback(f: Function): void; | ||
register_measurements_callback(_f: Function): void; | ||
/** | ||
* @param {Function} f | ||
* @param {Function} _f | ||
*/ | ||
register_tag_values_callback(f: Function): void; | ||
register_tag_keys_callback(_f: Function): void; | ||
/** | ||
* @param {string} msg | ||
* @returns {Promise<any>} | ||
* @param {Function} _f | ||
*/ | ||
process(msg: string): Promise<any>; | ||
register_tag_values_callback(_f: Function): void; | ||
} | ||
@@ -67,0 +67,0 @@ /** |
@@ -7,3 +7,3 @@ { | ||
"description": "LSP support for the flux language", | ||
"version": "0.5.99", | ||
"version": "0.6.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
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
4953054
463