@influxdata/flux-lsp-browser
Advanced tools
Comparing version 0.5.19 to 0.5.20
@@ -23,11 +23,2 @@ 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]; | ||
heap[idx] = obj; | ||
return idx; | ||
} | ||
let WASM_VECTOR_LEN = 0; | ||
@@ -106,2 +97,11 @@ | ||
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; | ||
@@ -137,3 +137,3 @@ | ||
function __wbg_adapter_16(arg0, arg1, arg2) { | ||
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h5d832446ac46780e(arg0, arg1, addHeapObject(arg2)); | ||
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__he22e5f59632b770b(arg0, arg1, addHeapObject(arg2)); | ||
} | ||
@@ -152,6 +152,25 @@ | ||
function __wbg_adapter_33(arg0, arg1, arg2, arg3) { | ||
wasm.wasm_bindgen__convert__closures__invoke2_mut__h68baa182ce9f772d(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3)); | ||
wasm.wasm_bindgen__convert__closures__invoke2_mut__h1929b75737cdcfdd(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3)); | ||
} | ||
/** | ||
* wasm version of the flux_find_var_type() API. Instead of returning a flat buffer that contains | ||
* the MonoType, it returns a JsValue。 | ||
* @param {string} source | ||
* @param {string} file_name | ||
* @param {string} var_name | ||
* @returns {any} | ||
*/ | ||
export function wasm_find_var_type(source, file_name, var_name) { | ||
var ptr0 = passStringToWasm0(source, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); | ||
var len0 = WASM_VECTOR_LEN; | ||
var ptr1 = passStringToWasm0(file_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); | ||
var len1 = WASM_VECTOR_LEN; | ||
var ptr2 = passStringToWasm0(var_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); | ||
var len2 = WASM_VECTOR_LEN; | ||
var ret = wasm.wasm_find_var_type(ptr0, len0, ptr1, len1, ptr2, len2); | ||
return takeObject(ret); | ||
} | ||
/** | ||
* @param {any} js_file | ||
@@ -304,7 +323,2 @@ * @returns {string} | ||
export const __wbindgen_object_clone_ref = function(arg0) { | ||
var ret = getObject(arg0); | ||
return addHeapObject(ret); | ||
}; | ||
export const __wbindgen_json_serialize = function(arg0, arg1) { | ||
@@ -319,4 +333,4 @@ const obj = getObject(arg1); | ||
export const __wbindgen_string_new = function(arg0, arg1) { | ||
var ret = getStringFromWasm0(arg0, arg1); | ||
export const __wbindgen_object_clone_ref = function(arg0) { | ||
var ret = getObject(arg0); | ||
return addHeapObject(ret); | ||
@@ -330,2 +344,7 @@ }; | ||
export const __wbindgen_string_new = function(arg0, arg1) { | ||
var ret = getStringFromWasm0(arg0, arg1); | ||
return addHeapObject(ret); | ||
}; | ||
export const __wbindgen_cb_drop = function(arg0) { | ||
@@ -399,6 +418,6 @@ const obj = takeObject(arg0).original; | ||
export const __wbindgen_closure_wrapper836 = function(arg0, arg1, arg2) { | ||
var ret = makeMutClosure(arg0, arg1, 160, __wbg_adapter_16); | ||
export const __wbindgen_closure_wrapper815 = function(arg0, arg1, arg2) { | ||
var ret = makeMutClosure(arg0, arg1, 157, __wbg_adapter_16); | ||
return addHeapObject(ret); | ||
}; | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
/** | ||
* wasm version of the flux_find_var_type() API. Instead of returning a flat buffer that contains | ||
* the MonoType, it returns a JsValue。 | ||
* @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 | ||
@@ -5,0 +14,0 @@ * @returns {string} |
{ | ||
"name": "@influxdata/flux-lsp-browser", | ||
"collaborators": [ | ||
"Brandon Farmer <bthesorceror@gmail.com>" | ||
"Flux Developers <flux-developers@influxdata.com>" | ||
], | ||
"description": "LSP support for the flux language", | ||
"version": "0.5.19", | ||
"version": "0.5.20", | ||
"license": "MIT", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/influxdata/flux-lsp-browser" | ||
"url": "https://github.com/influxdata/flux-lsp" | ||
}, | ||
@@ -13,0 +13,0 @@ "files": [ |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
3677707
425
2