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.2.2 to 1.2.3

10

lib/service/completion.js

@@ -20,9 +20,13 @@ "use strict";

return [];
const prevOffsetNode = checker_1.findNodeAtOffset(g, offset - 1, true);
const parent = node.parent;
const prevOffsetNodeParent = prevOffsetNode ? prevOffsetNode.parent : undefined;
if ((parent && parent.parent && checker_1.isEdgeStatement(parent.parent)
||
(prevOffsetNodeParent && prevOffsetNodeParent.parent && checker_1.isEdgeStatement(prevOffsetNodeParent.parent)))) {
return getNodeCompletions(symbols);
}
const prevNode = checker_1.findNodeAtOffset(g, node.pos - 1, true);
if (!prevNode)
return [];
if (parent && parent.parent && checker_1.isEdgeStatement(parent.parent)) {
return getNodeCompletions(symbols);
}
if (__1.isIdentifierNode(prevNode)) {

@@ -29,0 +33,0 @@ const p = prevNode.parent;

{
"name": "dot-language-support",
"version": "1.2.2",
"version": "1.2.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