@markuplint/parser-utils
Advanced tools
Comparing version 2.0.0 to 2.0.1-dev.20220307.0
@@ -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" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
78566
1079
2
+ Added@markuplint/ml-ast@2.0.1-dev.20220307.0(transitive)
+ Added@markuplint/types@2.0.1-dev.20220307.0(transitive)
- Removed@markuplint/ml-ast@2.0.0(transitive)
- Removed@markuplint/types@2.0.0(transitive)