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

@markuplint/ml-ast

Package Overview
Dependencies
Maintainers
1
Versions
120
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@markuplint/ml-ast - npm Package Compare versions

Comparing version 3.0.0 to 3.1.0

58

lib/types.d.ts
export interface MLToken {
uuid: string;
readonly uuid: string;
raw: string;

@@ -15,3 +15,3 @@ startOffset: number;

export interface MLASTAbstractNode extends MLToken {
type: MLASTNodeType;
readonly type: MLASTNodeType;
nodeName: string;

@@ -25,9 +25,9 @@ parentNode: MLASTParentNode | null;

export interface MLASTDoctype extends MLASTAbstractNode {
type: 'doctype';
readonly type: 'doctype';
name: string;
publicId: string;
systemId: string;
readonly publicId: string;
readonly systemId: string;
}
export interface MLASTElement extends MLASTAbstractNode {
type: 'starttag';
readonly type: 'starttag';
namespace: string;

@@ -39,6 +39,6 @@ elementType: ElementType;

pearNode: MLASTElementCloseTag | null;
selfClosingSolidus?: MLToken;
endSpace?: MLToken;
tagOpenChar: string;
tagCloseChar: string;
readonly selfClosingSolidus?: MLToken;
readonly endSpace?: MLToken;
readonly tagOpenChar: string;
readonly tagCloseChar: string;
}

@@ -54,12 +54,12 @@ /**

export interface MLASTElementCloseTag extends MLASTAbstractNode {
type: 'endtag';
namespace: string;
readonly type: 'endtag';
readonly namespace: string;
attributes: MLASTAttr[];
childNodes?: MLASTNode[];
pearNode: MLASTTag | null;
tagOpenChar: string;
tagCloseChar: string;
readonly tagOpenChar: string;
readonly tagCloseChar: string;
}
export interface MLASTPreprocessorSpecificBlock extends MLASTAbstractNode {
type: 'psblock';
readonly type: 'psblock';
nodeName: string;

@@ -75,10 +75,10 @@ parentNode: MLASTParentNode | null;

export interface MLASTComment extends MLASTAbstractNode {
type: 'comment';
readonly type: 'comment';
}
export interface MLASTText extends MLASTAbstractNode {
type: 'text';
readonly type: 'text';
}
export type MLASTAttr = MLASTHTMLAttr | MLASTPreprocessorSpecificAttr;
export interface MLASTHTMLAttr extends MLASTAbstractNode {
type: 'html-attr';
readonly type: 'html-attr';
spacesBeforeName: MLToken;

@@ -104,6 +104,6 @@ name: MLToken;

export interface MLASTPreprocessorSpecificAttr extends MLASTAbstractNode {
type: 'ps-attr';
potentialName: string;
potentialValue: string;
valueType: 'string' | 'number' | 'boolean' | 'code';
readonly type: 'ps-attr';
readonly potentialName: string;
readonly potentialValue: string;
readonly valueType: 'string' | 'number' | 'boolean' | 'code';
isDuplicatable: boolean;

@@ -113,3 +113,3 @@ }

nodeList: MLASTNode[];
isFragment: boolean;
readonly isFragment: boolean;
unknownParseError?: string;

@@ -119,5 +119,5 @@ }

parse(sourceCode: string, options?: ParserOptions & {
offsetOffset?: number;
offsetLine?: number;
offsetColumn?: number;
readonly offsetOffset?: number;
readonly offsetLine?: number;
readonly offsetColumn?: number;
}): MLASTDocument;

@@ -149,6 +149,6 @@ /**

export type ParserOptions = {
ignoreFrontMatter?: boolean;
authoredElementName?: ParserAuthoredElementNameDistinguishing;
readonly ignoreFrontMatter?: boolean;
readonly authoredElementName?: ParserAuthoredElementNameDistinguishing;
};
export type ParserAuthoredElementNameDistinguishing = string | RegExp | ParserAuthoredElementNameDistinguishingFunction | (string | RegExp | ParserAuthoredElementNameDistinguishingFunction)[];
export type ParserAuthoredElementNameDistinguishing = string | Readonly<RegExp> | Readonly<ParserAuthoredElementNameDistinguishingFunction> | readonly (string | Readonly<RegExp> | ParserAuthoredElementNameDistinguishingFunction)[];
export type ParserAuthoredElementNameDistinguishingFunction = (name: string) => boolean;

@@ -155,0 +155,0 @@ export type Parse = MLMarkupLanguageParser['parse'];

{
"name": "@markuplint/ml-ast",
"version": "3.0.0",
"version": "3.1.0",
"description": "The markuplint AST types.",

@@ -21,3 +21,3 @@ "repository": "git@github.com:markuplint/markuplint.git",

},
"gitHead": "791fb22a4df7acb985ced3808923fba0cd95c28a"
"gitHead": "0c47b2c2722f6823a17f36edbab98486275f8ab4"
}
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