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

@markuplint/html-parser

Package Overview
Dependencies
Maintainers
1
Versions
170
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@markuplint/html-parser - npm Package Compare versions

Comparing version 3.0.0-rc.4 to 3.0.0-rc.5

8

lib/create-tree.d.ts
import type { MLASTNode } from '@markuplint/ml-ast';
export declare function createTree(
rawCode: string,
isFragment: boolean,
offsetOffset: number,
offsetLine: number,
offsetColumn: number,
): MLASTNode[];
export declare function createTree(rawCode: string, isFragment: boolean, offsetOffset: number, offsetLine: number, offsetColumn: number): MLASTNode[];

11

lib/optimize-starts-head-or-body.d.ts
import type { MLASTNode } from '@markuplint/ml-ast';
export declare function isStartsHeadTagOrBodyTag(rawCode: string): boolean;
export declare function optimizeStartsHeadTagOrBodyTagSetup(rawCode: string): {
code: string;
heads: string[];
bodies: string[];
code: string;
heads: string[];
bodies: string[];
};
export declare function optimizeStartsHeadTagOrBodyTagResume(
nodeList: MLASTNode[],
replacements: ReturnType<typeof optimizeStartsHeadTagOrBodyTagSetup>,
): void;
export declare function optimizeStartsHeadTagOrBodyTagResume(nodeList: MLASTNode[], replacements: ReturnType<typeof optimizeStartsHeadTagOrBodyTagSetup>): void;
import type { MLASTAttr, MLToken } from '@markuplint/ml-ast';
type TagTokens = {
tagName: string;
attrs: MLASTAttr[];
selfClosingSolidus: MLToken;
endSpace: MLToken;
tagName: string;
attrs: MLASTAttr[];
selfClosingSolidus: MLToken;
endSpace: MLToken;
};
export default function parseRawTag(
raw: string,
startLine: number,
startCol: number,
startOffset: number,
offsetOffset?: number,
offsetLine?: number,
offsetColumn?: number,
): TagTokens;
export default function parseRawTag(raw: string, startLine: number, startCol: number, startOffset: number, offsetOffset?: number, offsetLine?: number, offsetColumn?: number): TagTokens;
export {};
export interface N {
type: 'text' | 'starttag' | 'endtag' | 'comment' | 'boguscomment';
raw: string;
line: number;
col: number;
type: 'text' | 'starttag' | 'endtag' | 'comment' | 'boguscomment';
raw: string;
line: number;
col: number;
}
export default function tagSplitter(raw: string, line: number, col: number): N[];
{
"name": "@markuplint/html-parser",
"version": "3.0.0-rc.4",
"version": "3.0.0-rc.5",
"description": "HTML parser for markuplint",

@@ -20,8 +20,8 @@ "repository": "git@github.com:markuplint/markuplint.git",

"dependencies": {
"@markuplint/ml-ast": "3.0.0-rc.4",
"@markuplint/parser-utils": "3.0.0-rc.4",
"@markuplint/ml-ast": "3.0.0-rc.5",
"@markuplint/parser-utils": "3.0.0-rc.5",
"parse5": "7.1.2",
"tslib": "^2.4.1"
},
"gitHead": "6187135f1c3522eee13cc1e7e1e8501b0fbfa876"
"gitHead": "fb0cde3550b1c9df1279da8019146f9a495216e7"
}
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