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

@markuplint/parser-utils

Package Overview
Dependencies
Maintainers
1
Versions
139
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@markuplint/parser-utils - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1-dev.20220307.0

2

lib/const.d.ts

@@ -1,2 +0,2 @@

export declare const MASK_CHAR = '\uE000';
export declare const MASK_CHAR = "\uE000";
/**

@@ -3,0 +3,0 @@ * SVG Element list

import type { MLToken } from '@markuplint/ml-ast';
export declare function tokenizer(
raw: string | null,
startLine: number,
startCol: number,
startOffset: number,
): MLToken;
export declare function tokenizer(raw: string | null, startLine: number, startCol: number, startOffset: number): MLToken;
export declare function createTokenFromRawCode(raw: string | null, startOffset: number, rawCode: string): MLToken;
export declare function uuid(): string;

@@ -5,14 +5,10 @@ export declare function getLine(html: string, startOffset: number): number;

export declare function getEndCol(html: string, col: number): number;
export declare function sliceFragment(
rawHtml: string,
start: number,
end: number,
): {
startOffset: number;
endOffset: number;
startLine: number;
endLine: number;
startCol: number;
endCol: number;
raw: string;
export declare function sliceFragment(rawHtml: string, start: number, end: number): {
startOffset: number;
endOffset: number;
startLine: number;
endLine: number;
startCol: number;
endCol: number;
raw: string;
};
export declare function searchIDLAttribute(name: string): {
idlPropName: string | undefined;
contentAttrName: string | undefined;
idlPropName: string | undefined;
contentAttrName: string | undefined;
};
export declare class ParserError extends Error {
name: string;
readonly line: number;
readonly col: number;
readonly raw: string;
readonly nodeName: string | null;
constructor(
message: string,
{
line,
col,
raw,
nodeName,
}: {
line?: number;
col?: number;
raw?: string;
nodeName?: string | null;
},
);
name: string;
readonly line: number;
readonly col: number;
readonly raw: string;
readonly nodeName: string | null;
constructor(message: string, { line, col, raw, nodeName, }: {
line?: number;
col?: number;
raw?: string;
nodeName?: string | null;
});
}
export declare type Code = {
type: string;
index: number;
startTag: string;
taggedCode: string;
endTag: string | null;
type: string;
index: number;
startTag: string;
taggedCode: string;
endTag: string | null;
};
export declare type IgnoreTag = {
type: string;
start: RegExp;
end: RegExp;
type: string;
start: RegExp;
end: RegExp;
};
export declare type IgnoreBlock = {
source: string;
replaced: string;
stack: Code[];
source: string;
replaced: string;
stack: Code[];
};
{
"name": "@markuplint/parser-utils",
"version": "2.0.0",
"version": "2.0.1-dev.20220307.0",
"description": "Utility module for markuplint parser plugin",

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

"dependencies": {
"@markuplint/ml-ast": "2.0.0",
"@markuplint/types": "2.0.0",
"@markuplint/ml-ast": "2.0.1-dev.20220307.0",
"@markuplint/types": "2.0.1-dev.20220307.0",
"tslib": "^2.3.1",
"uuid": "^8.3.2"
},
"gitHead": "de81fc514acdf472f87184e3499e9364258f9b66"
"gitHead": "c0a9d36c32ae278bd2fdb9ec9434fd4af46918c3"
}
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