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 3.0.0-alpha.6 to 3.0.0-canary.5

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;
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

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