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 2.0.6 to 2.0.9

.github/dependabot.yml

2

lib/cjs/scanner.d.ts

@@ -20,3 +20,3 @@ import { SyntaxKind, TokenFlags, DiagnosticCategory, ScanError } from "./types.js";

export declare function getTextAsToken(token: string): SyntaxKind | undefined;
export declare type ErrorCallback = (message: string, category: DiagnosticCategory, sub: ScanError, length: number) => void;
export type ErrorCallback = (message: string, category: DiagnosticCategory, sub: ScanError, length: number) => void;
export declare class DefaultScanner implements Scanner {

@@ -23,0 +23,0 @@ end: number;

@@ -9,19 +9,19 @@ import { TextEdit, type Position } from "vscode-languageserver-types";

}
export declare type ExecutableCommand = {
export type ExecutableCommand = {
command: CommandIds;
arguments?: any[];
};
export declare type EdgeOpStr = "--" | "->";
export type EdgeOpStr = "--" | "->";
export declare function getEdgeStr(op: SyntaxKind.UndirectedEdgeOp): "--";
export declare function getEdgeStr(op: SyntaxKind.DirectedEdgeOp): "->";
export declare function getEdgeStr(op: SyntaxKind.DirectedEdgeOp | SyntaxKind.UndirectedEdgeOp): "->" | "--";
export declare type GraphTypeStr = "graph" | "digraph";
export type GraphTypeStr = "graph" | "digraph";
export declare function getGraphKeywordStr(g: SyntaxKind.GraphKeyword): "graph";
export declare function getGraphKeywordStr(g: SyntaxKind.DigraphKeyword): "digraph";
export declare function getGraphKeywordStr(g: GraphType): "digraph" | "graph";
export declare type GraphType = SyntaxKind.DigraphKeyword | SyntaxKind.GraphKeyword;
export type GraphType = SyntaxKind.DigraphKeyword | SyntaxKind.GraphKeyword;
export declare function getOppositeKind(g: SyntaxKind.DigraphKeyword): SyntaxKind.GraphKeyword;
export declare function getOppositeKind(g: SyntaxKind.GraphKeyword): SyntaxKind.DigraphKeyword;
export declare function getOppositeKind(g: GraphType): GraphType;
export declare type EdgeType = SyntaxKind.DirectedEdgeOp | SyntaxKind.UndirectedEdgeOp;
export type EdgeType = SyntaxKind.DirectedEdgeOp | SyntaxKind.UndirectedEdgeOp;
export declare function getOppositeEdgeOp(g: SyntaxKind.DirectedEdgeOp): SyntaxKind.UndirectedEdgeOp;

@@ -28,0 +28,0 @@ export declare function getOppositeEdgeOp(g: SyntaxKind.UndirectedEdgeOp): SyntaxKind.DirectedEdgeOp;

@@ -6,3 +6,3 @@ export declare const enum ErrorSource {

}
export declare type ErrorCode = ParseErrorCode | ScanErrorCode | CheckErrorCode;
export type ErrorCode = ParseErrorCode | ScanErrorCode | CheckErrorCode;
export interface ParseErrorCode {

@@ -45,3 +45,3 @@ source: ErrorSource.Parse;

}
export declare type ID = string;
export type ID = string;
export interface SourceFile {

@@ -77,3 +77,3 @@ content: string;

}
export declare type Identifier = TextIdentifier | QuotedTextIdentifier | HtmlIdentifier | NumericIdentifier;
export type Identifier = TextIdentifier | QuotedTextIdentifier | HtmlIdentifier | NumericIdentifier;
export interface Graph extends SyntaxNode {

@@ -89,4 +89,4 @@ kind: SyntaxKind.DirectedGraph | SyntaxKind.UndirectedGraph;

}
export declare type StatementSeparator = Token<SyntaxKind.SemicolonToken>;
export declare type Statement = NodeStatement | EdgeStatement | AttributeStatement | IdEqualsIdStatement | SubGraphStatement;
export type StatementSeparator = Token<SyntaxKind.SemicolonToken>;
export type Statement = NodeStatement | EdgeStatement | AttributeStatement | IdEqualsIdStatement | SubGraphStatement;
export interface NodeStatement extends SyntaxNode, StatementBase {

@@ -102,3 +102,3 @@ kind: SyntaxKind.NodeStatement;

}
export declare type EdgeSourceOrTarget = NodeId | SubGraph;
export type EdgeSourceOrTarget = NodeId | SubGraph;
export interface EdgeStatement extends SyntaxNode, StatementBase {

@@ -146,4 +146,4 @@ kind: SyntaxKind.EdgeStatement;

}
export declare type AssignmentSeparator = Token<SyntaxKind.SemicolonToken> | Token<SyntaxKind.CommaToken>;
export declare type PortDeclaration = NormalPortDeclaration | CompassPortDeclaration;
export type AssignmentSeparator = Token<SyntaxKind.SemicolonToken> | Token<SyntaxKind.CommaToken>;
export type PortDeclaration = NormalPortDeclaration | CompassPortDeclaration;
export interface NormalPortDeclaration extends SyntaxNode {

@@ -160,4 +160,4 @@ kind: SyntaxKind.NormalPortDeclaration;

}
export declare type CompassPort = Token<SyntaxKind.CompassNorthToken> | Token<SyntaxKind.CompassNorthEastToken> | Token<SyntaxKind.CompassEastToken> | Token<SyntaxKind.CompassSouthEastToken> | Token<SyntaxKind.CompassSouthToken> | Token<SyntaxKind.CompassSouthWestToken> | Token<SyntaxKind.CompassWestToken> | Token<SyntaxKind.CompassNorthWestToken> | Token<SyntaxKind.CompassCenterToken> | Token<SyntaxKind.UnderscoreToken>;
export declare type EdgeOp = Token<SyntaxKind.DirectedEdgeOp> | Token<SyntaxKind.UndirectedEdgeOp>;
export type CompassPort = Token<SyntaxKind.CompassNorthToken> | Token<SyntaxKind.CompassNorthEastToken> | Token<SyntaxKind.CompassEastToken> | Token<SyntaxKind.CompassSouthEastToken> | Token<SyntaxKind.CompassSouthToken> | Token<SyntaxKind.CompassSouthWestToken> | Token<SyntaxKind.CompassWestToken> | Token<SyntaxKind.CompassNorthWestToken> | Token<SyntaxKind.CompassCenterToken> | Token<SyntaxKind.UnderscoreToken>;
export type EdgeOp = Token<SyntaxKind.DirectedEdgeOp> | Token<SyntaxKind.UndirectedEdgeOp>;
export interface TextRange {

@@ -242,3 +242,3 @@ pos: number;

}
export declare type MutableSyntaxNodeArray<T extends SyntaxNode> = SyntaxNodeArray<T> & T[];
export type MutableSyntaxNodeArray<T extends SyntaxNode> = SyntaxNodeArray<T> & T[];
export declare const enum SyntaxNodeFlags {

@@ -386,4 +386,4 @@ None = 0,

}
export declare type SymbolTable = Map<string, TypeSymbol>;
export declare type ColorTable = Map<string, ColorInfo>;
export type SymbolTable = Map<string, TypeSymbol>;
export type ColorTable = Map<string, ColorInfo>;
export interface TypeSymbol {

@@ -404,3 +404,3 @@ name: string;

}
export declare type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
export declare type StatementOf<T extends Statement["kind"]> = T extends SyntaxKind.SubGraphStatement ? SubGraphStatement : T extends SyntaxKind.AttributeStatement ? AttributeStatement : T extends SyntaxKind.EdgeStatement ? EdgeStatement : T extends SyntaxKind.IdEqualsIdStatement ? IdEqualsIdStatement : T extends SyntaxKind.NodeStatement ? NodeStatement : never;
export type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
export type StatementOf<T extends Statement["kind"]> = T extends SyntaxKind.SubGraphStatement ? SubGraphStatement : T extends SyntaxKind.AttributeStatement ? AttributeStatement : T extends SyntaxKind.EdgeStatement ? EdgeStatement : T extends SyntaxKind.IdEqualsIdStatement ? IdEqualsIdStatement : T extends SyntaxKind.NodeStatement ? NodeStatement : never;

@@ -20,3 +20,3 @@ import { SyntaxKind, TokenFlags, DiagnosticCategory, ScanError } from "./types.js";

export declare function getTextAsToken(token: string): SyntaxKind | undefined;
export declare type ErrorCallback = (message: string, category: DiagnosticCategory, sub: ScanError, length: number) => void;
export type ErrorCallback = (message: string, category: DiagnosticCategory, sub: ScanError, length: number) => void;
export declare class DefaultScanner implements Scanner {

@@ -23,0 +23,0 @@ end: number;

@@ -9,19 +9,19 @@ import { TextEdit, type Position } from "vscode-languageserver-types";

}
export declare type ExecutableCommand = {
export type ExecutableCommand = {
command: CommandIds;
arguments?: any[];
};
export declare type EdgeOpStr = "--" | "->";
export type EdgeOpStr = "--" | "->";
export declare function getEdgeStr(op: SyntaxKind.UndirectedEdgeOp): "--";
export declare function getEdgeStr(op: SyntaxKind.DirectedEdgeOp): "->";
export declare function getEdgeStr(op: SyntaxKind.DirectedEdgeOp | SyntaxKind.UndirectedEdgeOp): "->" | "--";
export declare type GraphTypeStr = "graph" | "digraph";
export type GraphTypeStr = "graph" | "digraph";
export declare function getGraphKeywordStr(g: SyntaxKind.GraphKeyword): "graph";
export declare function getGraphKeywordStr(g: SyntaxKind.DigraphKeyword): "digraph";
export declare function getGraphKeywordStr(g: GraphType): "digraph" | "graph";
export declare type GraphType = SyntaxKind.DigraphKeyword | SyntaxKind.GraphKeyword;
export type GraphType = SyntaxKind.DigraphKeyword | SyntaxKind.GraphKeyword;
export declare function getOppositeKind(g: SyntaxKind.DigraphKeyword): SyntaxKind.GraphKeyword;
export declare function getOppositeKind(g: SyntaxKind.GraphKeyword): SyntaxKind.DigraphKeyword;
export declare function getOppositeKind(g: GraphType): GraphType;
export declare type EdgeType = SyntaxKind.DirectedEdgeOp | SyntaxKind.UndirectedEdgeOp;
export type EdgeType = SyntaxKind.DirectedEdgeOp | SyntaxKind.UndirectedEdgeOp;
export declare function getOppositeEdgeOp(g: SyntaxKind.DirectedEdgeOp): SyntaxKind.UndirectedEdgeOp;

@@ -28,0 +28,0 @@ export declare function getOppositeEdgeOp(g: SyntaxKind.UndirectedEdgeOp): SyntaxKind.DirectedEdgeOp;

@@ -6,3 +6,3 @@ export declare const enum ErrorSource {

}
export declare type ErrorCode = ParseErrorCode | ScanErrorCode | CheckErrorCode;
export type ErrorCode = ParseErrorCode | ScanErrorCode | CheckErrorCode;
export interface ParseErrorCode {

@@ -45,3 +45,3 @@ source: ErrorSource.Parse;

}
export declare type ID = string;
export type ID = string;
export interface SourceFile {

@@ -77,3 +77,3 @@ content: string;

}
export declare type Identifier = TextIdentifier | QuotedTextIdentifier | HtmlIdentifier | NumericIdentifier;
export type Identifier = TextIdentifier | QuotedTextIdentifier | HtmlIdentifier | NumericIdentifier;
export interface Graph extends SyntaxNode {

@@ -89,4 +89,4 @@ kind: SyntaxKind.DirectedGraph | SyntaxKind.UndirectedGraph;

}
export declare type StatementSeparator = Token<SyntaxKind.SemicolonToken>;
export declare type Statement = NodeStatement | EdgeStatement | AttributeStatement | IdEqualsIdStatement | SubGraphStatement;
export type StatementSeparator = Token<SyntaxKind.SemicolonToken>;
export type Statement = NodeStatement | EdgeStatement | AttributeStatement | IdEqualsIdStatement | SubGraphStatement;
export interface NodeStatement extends SyntaxNode, StatementBase {

@@ -102,3 +102,3 @@ kind: SyntaxKind.NodeStatement;

}
export declare type EdgeSourceOrTarget = NodeId | SubGraph;
export type EdgeSourceOrTarget = NodeId | SubGraph;
export interface EdgeStatement extends SyntaxNode, StatementBase {

@@ -146,4 +146,4 @@ kind: SyntaxKind.EdgeStatement;

}
export declare type AssignmentSeparator = Token<SyntaxKind.SemicolonToken> | Token<SyntaxKind.CommaToken>;
export declare type PortDeclaration = NormalPortDeclaration | CompassPortDeclaration;
export type AssignmentSeparator = Token<SyntaxKind.SemicolonToken> | Token<SyntaxKind.CommaToken>;
export type PortDeclaration = NormalPortDeclaration | CompassPortDeclaration;
export interface NormalPortDeclaration extends SyntaxNode {

@@ -160,4 +160,4 @@ kind: SyntaxKind.NormalPortDeclaration;

}
export declare type CompassPort = Token<SyntaxKind.CompassNorthToken> | Token<SyntaxKind.CompassNorthEastToken> | Token<SyntaxKind.CompassEastToken> | Token<SyntaxKind.CompassSouthEastToken> | Token<SyntaxKind.CompassSouthToken> | Token<SyntaxKind.CompassSouthWestToken> | Token<SyntaxKind.CompassWestToken> | Token<SyntaxKind.CompassNorthWestToken> | Token<SyntaxKind.CompassCenterToken> | Token<SyntaxKind.UnderscoreToken>;
export declare type EdgeOp = Token<SyntaxKind.DirectedEdgeOp> | Token<SyntaxKind.UndirectedEdgeOp>;
export type CompassPort = Token<SyntaxKind.CompassNorthToken> | Token<SyntaxKind.CompassNorthEastToken> | Token<SyntaxKind.CompassEastToken> | Token<SyntaxKind.CompassSouthEastToken> | Token<SyntaxKind.CompassSouthToken> | Token<SyntaxKind.CompassSouthWestToken> | Token<SyntaxKind.CompassWestToken> | Token<SyntaxKind.CompassNorthWestToken> | Token<SyntaxKind.CompassCenterToken> | Token<SyntaxKind.UnderscoreToken>;
export type EdgeOp = Token<SyntaxKind.DirectedEdgeOp> | Token<SyntaxKind.UndirectedEdgeOp>;
export interface TextRange {

@@ -242,3 +242,3 @@ pos: number;

}
export declare type MutableSyntaxNodeArray<T extends SyntaxNode> = SyntaxNodeArray<T> & T[];
export type MutableSyntaxNodeArray<T extends SyntaxNode> = SyntaxNodeArray<T> & T[];
export declare const enum SyntaxNodeFlags {

@@ -386,4 +386,4 @@ None = 0,

}
export declare type SymbolTable = Map<string, TypeSymbol>;
export declare type ColorTable = Map<string, ColorInfo>;
export type SymbolTable = Map<string, TypeSymbol>;
export type ColorTable = Map<string, ColorInfo>;
export interface TypeSymbol {

@@ -404,3 +404,3 @@ name: string;

}
export declare type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
export declare type StatementOf<T extends Statement["kind"]> = T extends SyntaxKind.SubGraphStatement ? SubGraphStatement : T extends SyntaxKind.AttributeStatement ? AttributeStatement : T extends SyntaxKind.EdgeStatement ? EdgeStatement : T extends SyntaxKind.IdEqualsIdStatement ? IdEqualsIdStatement : T extends SyntaxKind.NodeStatement ? NodeStatement : never;
export type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
export type StatementOf<T extends Statement["kind"]> = T extends SyntaxKind.SubGraphStatement ? SubGraphStatement : T extends SyntaxKind.AttributeStatement ? AttributeStatement : T extends SyntaxKind.EdgeStatement ? EdgeStatement : T extends SyntaxKind.IdEqualsIdStatement ? IdEqualsIdStatement : T extends SyntaxKind.NodeStatement ? NodeStatement : never;
{
"name": "dot-language-support",
"version": "2.0.6",
"version": "2.0.9",
"description": "Parser and language service for graphviz (dot) files",

@@ -11,3 +11,4 @@ "author": "Niklas Mollenhauer",

"scripts": {
"test": "jest --rootDir=tests",
"test": "tsc --noEmit && vitest run",
"test:coverage": "vitest run --coverage",
"clean": "rimraf lib",

@@ -32,15 +33,14 @@ "compile:esm": "tsc --target esnext --module esnext --outDir lib/esm",

"dependencies": {
"vscode-languageserver-textdocument": "^1.0.7",
"vscode-languageserver-types": "^3.17.2"
"vscode-languageserver-textdocument": "^1.0.8",
"vscode-languageserver-types": "^3.17.3"
},
"devDependencies": {
"@types/jest": "^29.1.2",
"jest": "^29.2.0",
"rimraf": "^3.0.2",
"ts-jest": "^29.0.3",
"typescript": "^4.8.4"
"@vitest/coverage-c8": "^0.29.7",
"rimraf": "^4.4.1",
"typescript": "^5.0.2",
"vitest": "^0.29.7"
},
"engines": {
"node": ">=16"
"node": ">=18"
}
}

Sorry, the diff of this file is not supported yet

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