Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@influxdata/flux-lsp-node

Package Overview
Dependencies
Maintainers
23
Versions
111
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@influxdata/flux-lsp-node - npm Package Compare versions

Comparing version 0.6.7 to 0.6.8

12

flux-lsp-node.d.ts
/* tslint:disable */
/* eslint-disable */
/**
* Parses a string representation of a json file and returns the corresponding JsValue representation
* @param {string} s
* Parse flux into an AST representation. The AST will be generated regardless
* of valid flux. As such, no error handling is needed.
* @param {string} script
* @returns {any}
*/
export function parse(s: string): any;
export function parse(script: string): any;
/**
* Format a JS file.
* Format a flux script from AST.
*
* In the event that the flux is invalid syntax, an Err will be returned,
* which will translate into a JavaScript exception being thrown.
* @param {any} js_file

@@ -12,0 +16,0 @@ * @returns {string}

@@ -6,2 +6,22 @@ let imports = {};

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;
}
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });

@@ -23,8 +43,2 @@

const heap = new Array(32).fill(undefined);
heap.push(undefined, null, true, false);
let heap_next = heap.length;
function addHeapObject(obj) {

@@ -39,4 +53,2 @@ if (heap_next === heap.length) heap.push(heap.length + 1);

function getObject(idx) { return heap[idx]; }
let WASM_VECTOR_LEN = 0;

@@ -105,18 +117,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) {
return x === undefined || x === null;
}
function makeMutClosure(arg0, arg1, dtor, f) {

@@ -146,13 +142,14 @@ 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__h2ac29b0b725d1223(arg0, arg1, addHeapObject(arg2));
function __wbg_adapter_18(arg0, arg1, arg2) {
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h62e79821aebc1a05(arg0, arg1, addHeapObject(arg2));
}
/**
* Parses a string representation of a json file and returns the corresponding JsValue representation
* @param {string} s
* Parse flux into an AST representation. The AST will be generated regardless
* of valid flux. As such, no error handling is needed.
* @param {string} script
* @returns {any}
*/
module.exports.parse = function(s) {
var ptr0 = passStringToWasm0(s, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
module.exports.parse = function(script) {
var ptr0 = passStringToWasm0(script, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
var len0 = WASM_VECTOR_LEN;

@@ -164,3 +161,6 @@ var ret = wasm.parse(ptr0, len0);

/**
* Format a JS file.
* Format a flux script from AST.
*
* In the event that the flux is invalid syntax, an Err will be returned,
* which will translate into a JavaScript exception being thrown.
* @param {any} js_file

@@ -189,4 +189,4 @@ * @returns {string}

}
function __wbg_adapter_39(arg0, arg1, arg2, arg3) {
wasm.wasm_bindgen__convert__closures__invoke2_mut__h85a439292e5266e6(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
function __wbg_adapter_41(arg0, arg1, arg2, arg3) {
wasm.wasm_bindgen__convert__closures__invoke2_mut__hcecb2ef704413fb0(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
}

@@ -323,2 +323,6 @@

module.exports.__wbindgen_object_drop_ref = function(arg0) {
takeObject(arg0);
};
module.exports.__wbindgen_json_parse = function(arg0, arg1) {

@@ -338,6 +342,2 @@ var ret = JSON.parse(getStringFromWasm0(arg0, arg1));

module.exports.__wbindgen_object_drop_ref = function(arg0) {
takeObject(arg0);
};
module.exports.__wbindgen_object_clone_ref = function(arg0) {

@@ -353,9 +353,5 @@ var ret = getObject(arg0);

module.exports.__wbindgen_string_get = function(arg0, arg1) {
const obj = getObject(arg1);
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;
getInt32Memory0()[arg0 / 4 + 1] = len0;
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
module.exports.__wbindgen_string_new = function(arg0, arg1) {
var ret = getStringFromWasm0(arg0, arg1);
return addHeapObject(ret);
};

@@ -411,3 +407,3 @@

try {
return __wbg_adapter_39(a, state0.b, arg0, arg1);
return __wbg_adapter_41(a, state0.b, arg0, arg1);
} finally {

@@ -443,4 +439,8 @@ state0.a = a;

module.exports.__wbindgen_closure_wrapper8077 = function(arg0, arg1, arg2) {
var ret = makeMutClosure(arg0, arg1, 1150, __wbg_adapter_16);
module.exports.__wbindgen_rethrow = function(arg0) {
throw takeObject(arg0);
};
module.exports.__wbindgen_closure_wrapper8095 = function(arg0, arg1, arg2) {
var ret = makeMutClosure(arg0, arg1, 1148, __wbg_adapter_18);
return addHeapObject(ret);

@@ -447,0 +447,0 @@ };

@@ -7,3 +7,3 @@ {

"description": "LSP support for the flux language",
"version": "0.6.7",
"version": "0.6.8",
"license": "MIT",

@@ -10,0 +10,0 @@ "repository": {

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc