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

dot-language-support

Package Overview
Dependencies
Maintainers
1
Versions
66
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dot-language-support - npm Package Compare versions

Comparing version 1.4.1 to 1.4.2

12

lib/service/completion.js

@@ -28,6 +28,9 @@ "use strict";

}
if (node.kind === types_1.SyntaxKind.AttributeContainer && ((_d = prevOffsetNodeParent) === null || _d === void 0 ? void 0 : _d.kind) === types_1.SyntaxKind.EdgeStatement) {
if (node.kind === types_1.SyntaxKind.AttributeContainer) {
const openingBracket = node.openBracket;
if (openingBracket.end - 1 > offset - 1) {
return getNodeCompletions(symbols);
const exclusions = ((_d = prevOffsetNode) === null || _d === void 0 ? void 0 : _d.kind) === types_1.SyntaxKind.TextIdentifier && prevOffsetNode.symbol
? [prevOffsetNode.symbol.name]
: [];
return getNodeCompletions(symbols, exclusions);
}

@@ -111,5 +114,8 @@ }

}
function getNodeCompletions(symbols) {
function getNodeCompletions(symbols, exlucdedSymbols) {
var _a;
const res = new Array();
for (const [key, value] of symbols) {
if ((_a = exlucdedSymbols) === null || _a === void 0 ? void 0 : _a.includes(key))
continue;
let kind = lst.CompletionItemKind.Variable;

@@ -116,0 +122,0 @@ const a = value.firstMention.parent;

{
"name": "dot-language-support",
"version": "1.4.1",
"version": "1.4.2",
"description": "Parser and language service for graphviz (dot) files",

@@ -5,0 +5,0 @@ "author": "Niklas Mollenhauer",

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