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.3.1 to 1.3.2

16

lib/service/completion.js

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

|| (node.kind == types_1.SyntaxKind.CommaToken && parent && parent.kind === types_1.SyntaxKind.Assignment)) {
return getAttributeCompletions();
return getAttributeCompletions(position);
}

@@ -90,7 +90,15 @@ const prevNode = checker_1.findNodeAtOffset(g, node.pos - 1, true);

}
function getAttributeCompletions() {
function getAttributeCompletions(posistion) {
const kind = lst.CompletionItemKind.Property;
return languageFacts.attributes.map(a => ({
const range = {
start: posistion,
end: posistion,
};
return languageFacts.attributes.map(label => ({
kind,
label: util_1.escapeIdentifierText(a),
label,
textEdit: {
range,
newText: util_1.escapeIdentifierText(label) + "=",
}
}));

@@ -97,0 +105,0 @@ }

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