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.2 to 1.4.3

12

lib/service/completion.js

@@ -10,3 +10,3 @@ "use strict";

function getCompletions(doc, sourceFile, position) {
var _a, _b, _c, _d, _e;
var _a, _b, _c, _d, _e, _f;
const symbols = sourceFile.symbols;

@@ -34,8 +34,14 @@ if (!symbols)

? [prevOffsetNode.symbol.name]
: [];
: undefined;
return getNodeCompletions(symbols, exclusions);
}
}
if (node.kind === types_1.SyntaxKind.TextIdentifier && ((_e = parent) === null || _e === void 0 ? void 0 : _e.kind) === types_1.SyntaxKind.NodeId) {
const exclusions = node.symbol
? [node.symbol.name]
: undefined;
return getNodeCompletions(symbols, exclusions);
}
if (node.kind === types_1.SyntaxKind.AttributeContainer
|| (node.kind == types_1.SyntaxKind.CommaToken && ((_e = parent) === null || _e === void 0 ? void 0 : _e.kind) === types_1.SyntaxKind.Assignment)) {
|| (node.kind == types_1.SyntaxKind.CommaToken && ((_f = parent) === null || _f === void 0 ? void 0 : _f.kind) === types_1.SyntaxKind.Assignment)) {
return getAttributeCompletions(position);

@@ -42,0 +48,0 @@ }

{
"name": "dot-language-support",
"version": "1.4.2",
"version": "1.4.3",
"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