@markuplint/parser-utils
Advanced tools
Comparing version 3.0.0-alpha.6 to 3.0.0-canary.5
@@ -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; |
import type { ElementType, ParserAuthoredElementNameDistinguishing } from '@markuplint/ml-ast'; | ||
export declare function detectElementType( | ||
name: string, | ||
option?: ParserAuthoredElementNameDistinguishing, | ||
defaultPattern?: ParserAuthoredElementNameDistinguishing, | ||
): ElementType; | ||
export declare function detectElementType(name: string, option?: ParserAuthoredElementNameDistinguishing, defaultPattern?: ParserAuthoredElementNameDistinguishing): ElementType; |
@@ -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 { | ||
readonly col: number; | ||
readonly line: number; | ||
name: string; | ||
readonly nodeName: string | null; | ||
readonly raw: string; | ||
constructor( | ||
message: string, | ||
{ | ||
line, | ||
col, | ||
raw, | ||
nodeName, | ||
}: { | ||
line?: number; | ||
col?: number; | ||
raw?: string; | ||
nodeName?: string | null; | ||
}, | ||
); | ||
readonly col: number; | ||
readonly line: number; | ||
name: string; | ||
readonly nodeName: string | null; | ||
readonly raw: string; | ||
constructor(message: string, { line, col, raw, nodeName, }: { | ||
line?: number; | ||
col?: number; | ||
raw?: string; | ||
nodeName?: string | null; | ||
}); | ||
} |
export 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 type IgnoreTag = { | ||
type: string; | ||
start: RegExp; | ||
end: RegExp; | ||
type: string; | ||
start: RegExp; | ||
end: RegExp; | ||
}; | ||
export type IgnoreBlock = { | ||
source: string; | ||
replaced: string; | ||
stack: Code[]; | ||
maskChar: string; | ||
source: string; | ||
replaced: string; | ||
stack: Code[]; | ||
maskChar: string; | ||
}; |
{ | ||
"name": "@markuplint/parser-utils", | ||
"version": "3.0.0-alpha.6", | ||
"version": "3.0.0-canary.5+382d1365", | ||
"description": "Utility module for markuplint parser plugin", | ||
@@ -22,8 +22,8 @@ "repository": "git@github.com:markuplint/markuplint.git", | ||
"dependencies": { | ||
"@markuplint/ml-ast": "3.0.0-alpha.6", | ||
"@markuplint/types": "3.0.0-alpha.6", | ||
"@markuplint/ml-ast": "3.0.0-canary.69+382d1365", | ||
"@markuplint/types": "3.0.0-canary.5+382d1365", | ||
"tslib": "^2.4.0", | ||
"uuid": "8" | ||
}, | ||
"gitHead": "b185a06d4ea09a1bf32458f7be4abe510eb57b89" | ||
"gitHead": "382d13653071bd02210d5430403d1a87c840398c" | ||
} |
# @markuplint/parser-utils | ||
[![npm version](https://badge.fury.io/js/%40markuplint%2Fparser-utils.svg)](https://www.npmjs.com/package/@markuplint/parser-utils) | ||
[![Build Status](https://travis-ci.org/markuplint/markuplint.svg?branch=main)](https://travis-ci.org/markuplint/markuplint) | ||
[![Coverage Status](https://coveralls.io/repos/github/markuplint/markuplint/badge.svg?branch=main)](https://coveralls.io/github/markuplint/markuplint?branch=main) | ||
## Install | ||
[`markuplint`](https://www.npmjs.com/package/markuplint) package includes this package. | ||
<details> | ||
<summary>If you are installing purposely, how below:</summary> | ||
```sh | ||
@@ -14,1 +17,3 @@ $ npm install @markuplint/parser-utils | ||
``` | ||
</details> |
Sorry, the diff of this file is not supported yet
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
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
19
101424
1139
1
- Removed@markuplint/ml-ast@3.0.0-alpha.6(transitive)
- Removed@markuplint/types@3.0.0-alpha.6(transitive)
- Removedbcp-47@1.0.8(transitive)
- Removedcss-tree@1.1.3(transitive)
- Removeddebug@4.4.0(transitive)
- Removedis-alphabetical@1.0.4(transitive)
- Removedis-alphanumerical@1.0.4(transitive)
- Removedis-decimal@1.0.4(transitive)
- Removedleven@3.1.0(transitive)
- Removedmdn-data@2.0.14(transitive)
- Removedms@2.1.3(transitive)
- Removedsource-map@0.6.1(transitive)
- Removedwhatwg-mimetype@2.3.0(transitive)