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 4.6.5 to 4.6.6

9

CHANGELOG.md

@@ -6,13 +6,16 @@ # Change Log

## [4.6.5](https://github.com/markuplint/markuplint/compare/@markuplint/parser-utils@4.6.4...@markuplint/parser-utils@4.6.5) (2024-06-25)
## [4.6.6](https://github.com/markuplint/markuplint/compare/@markuplint/parser-utils@4.6.5...@markuplint/parser-utils@4.6.6) (2024-09-02)
**Note:** Version bump only for package @markuplint/parser-utils
### Bug Fixes
* **parser-utils:** modify to treat attrs start with `script` type quotation marks as spread attr ([617b6d0](https://github.com/markuplint/markuplint/commit/617b6d0fbba1d245ca21360908b643f123818037))
## [4.6.5](https://github.com/markuplint/markuplint/compare/@markuplint/parser-utils@4.6.4...@markuplint/parser-utils@4.6.5) (2024-06-25)
### Bug Fixes
- **parser-utils:** modify to treat attrs start with `script` type quotation marks as spread attr ([617b6d0](https://github.com/markuplint/markuplint/commit/617b6d0fbba1d245ca21360908b643f123818037))
## [4.6.4](https://github.com/markuplint/markuplint/compare/@markuplint/parser-utils@4.6.3...@markuplint/parser-utils@4.6.4) (2024-06-09)

@@ -19,0 +22,0 @@

@@ -423,5 +423,5 @@ /**

? [name.toLowerCase(), name.toLowerCase()]
: list.find(([idlPropName, contentAttrName]) => idlPropName.toLowerCase() === camelizedName.toLowerCase() ||
: (list.find(([idlPropName, contentAttrName]) => idlPropName.toLowerCase() === camelizedName.toLowerCase() ||
contentAttrName.toLowerCase() === name.toLowerCase() ||
hyphenize(idlPropName) === name.toLowerCase()) ?? [];
hyphenize(idlPropName) === name.toLowerCase()) ?? []);
return {

@@ -428,0 +428,0 @@ idlPropName,

@@ -8,2 +8,3 @@ import type { Token, ChildToken, QuoteSet, ParseOptions, ParserOptions, Tokenized, ValueType } from './types.js';

state: State;
constructor(options?: ParserOptions, defaultState?: State);
get authoredElementName(): ParserAuthoredElementNameDistinguishing | undefined;

@@ -31,3 +32,2 @@ /**

get tagNameCaseSensitive(): boolean;
constructor(options?: ParserOptions, defaultState?: State);
tokenize(options?: ParseOptions): Tokenized<Node, State>;

@@ -34,0 +34,0 @@ beforeParse(rawCode: string, options?: ParseOptions): string;

@@ -26,2 +26,29 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {

export class Parser {
constructor(options, defaultState) {
_Parser_instances.add(this);
_Parser_booleanish.set(this, false);
_Parser_defaultState.set(this, void 0);
_Parser_endTagType.set(this, 'omittable');
_Parser_ignoreTags.set(this, []);
_Parser_maskChar.set(this, void 0);
_Parser_tagNameCaseSensitive.set(this, false);
_Parser_selfCloseType.set(this, 'html');
_Parser_spaceChars.set(this, defaultSpaces);
_Parser_rawTextElements.set(this, ['style', 'script']);
_Parser_authoredElementName.set(this, void 0);
_Parser_originalRawCode.set(this, '');
_Parser_rawCode.set(this, '');
_Parser_defaultDepth.set(this, 0);
_Parser_walkMethodSequentailPrevNode.set(this, null);
__classPrivateFieldSet(this, _Parser_booleanish, options?.booleanish ?? __classPrivateFieldGet(this, _Parser_booleanish, "f"), "f");
__classPrivateFieldSet(this, _Parser_endTagType, options?.endTagType ?? __classPrivateFieldGet(this, _Parser_endTagType, "f"), "f");
__classPrivateFieldSet(this, _Parser_ignoreTags, options?.ignoreTags ?? __classPrivateFieldGet(this, _Parser_ignoreTags, "f"), "f");
__classPrivateFieldSet(this, _Parser_maskChar, options?.maskChar ?? __classPrivateFieldGet(this, _Parser_maskChar, "f"), "f");
__classPrivateFieldSet(this, _Parser_tagNameCaseSensitive, options?.tagNameCaseSensitive ?? __classPrivateFieldGet(this, _Parser_tagNameCaseSensitive, "f"), "f");
__classPrivateFieldSet(this, _Parser_selfCloseType, options?.selfCloseType ?? __classPrivateFieldGet(this, _Parser_selfCloseType, "f"), "f");
__classPrivateFieldSet(this, _Parser_spaceChars, options?.spaceChars ?? __classPrivateFieldGet(this, _Parser_spaceChars, "f"), "f");
__classPrivateFieldSet(this, _Parser_rawTextElements, options?.rawTextElements ?? __classPrivateFieldGet(this, _Parser_rawTextElements, "f"), "f");
__classPrivateFieldSet(this, _Parser_defaultState, defaultState ?? null, "f");
this.state = structuredClone(__classPrivateFieldGet(this, _Parser_defaultState, "f"));
}
get authoredElementName() {

@@ -59,29 +86,2 @@ return __classPrivateFieldGet(this, _Parser_authoredElementName, "f");

}
constructor(options, defaultState) {
_Parser_instances.add(this);
_Parser_booleanish.set(this, false);
_Parser_defaultState.set(this, void 0);
_Parser_endTagType.set(this, 'omittable');
_Parser_ignoreTags.set(this, []);
_Parser_maskChar.set(this, void 0);
_Parser_tagNameCaseSensitive.set(this, false);
_Parser_selfCloseType.set(this, 'html');
_Parser_spaceChars.set(this, defaultSpaces);
_Parser_rawTextElements.set(this, ['style', 'script']);
_Parser_authoredElementName.set(this, void 0);
_Parser_originalRawCode.set(this, '');
_Parser_rawCode.set(this, '');
_Parser_defaultDepth.set(this, 0);
_Parser_walkMethodSequentailPrevNode.set(this, null);
__classPrivateFieldSet(this, _Parser_booleanish, options?.booleanish ?? __classPrivateFieldGet(this, _Parser_booleanish, "f"), "f");
__classPrivateFieldSet(this, _Parser_endTagType, options?.endTagType ?? __classPrivateFieldGet(this, _Parser_endTagType, "f"), "f");
__classPrivateFieldSet(this, _Parser_ignoreTags, options?.ignoreTags ?? __classPrivateFieldGet(this, _Parser_ignoreTags, "f"), "f");
__classPrivateFieldSet(this, _Parser_maskChar, options?.maskChar ?? __classPrivateFieldGet(this, _Parser_maskChar, "f"), "f");
__classPrivateFieldSet(this, _Parser_tagNameCaseSensitive, options?.tagNameCaseSensitive ?? __classPrivateFieldGet(this, _Parser_tagNameCaseSensitive, "f"), "f");
__classPrivateFieldSet(this, _Parser_selfCloseType, options?.selfCloseType ?? __classPrivateFieldGet(this, _Parser_selfCloseType, "f"), "f");
__classPrivateFieldSet(this, _Parser_spaceChars, options?.spaceChars ?? __classPrivateFieldGet(this, _Parser_spaceChars, "f"), "f");
__classPrivateFieldSet(this, _Parser_rawTextElements, options?.rawTextElements ?? __classPrivateFieldGet(this, _Parser_rawTextElements, "f"), "f");
__classPrivateFieldSet(this, _Parser_defaultState, defaultState ?? null, "f");
this.state = structuredClone(__classPrivateFieldGet(this, _Parser_defaultState, "f"));
}
tokenize(options) {

@@ -88,0 +88,0 @@ return {

{
"name": "@markuplint/parser-utils",
"version": "4.6.5",
"version": "4.6.6",
"description": "Utility module for markuplint parser plugin",

@@ -31,15 +31,15 @@ "repository": "git@github.com:markuplint/markuplint.git",

"dependencies": {
"@markuplint/ml-ast": "4.4.2",
"@markuplint/ml-spec": "4.6.3",
"@markuplint/types": "4.5.3",
"@markuplint/ml-ast": "4.4.3",
"@markuplint/ml-spec": "4.6.4",
"@markuplint/types": "4.5.4",
"@types/uuid": "10.0.0",
"debug": "4.3.5",
"debug": "4.3.6",
"espree": "10.1.0",
"type-fest": "4.20.1",
"type-fest": "4.26.0",
"uuid": "10.0.0"
},
"devDependencies": {
"@typescript-eslint/typescript-estree": "7.14.1"
"@typescript-eslint/typescript-estree": "8.3.0"
},
"gitHead": "05fdca254661ec335ff0cae4c6a11db164b032b9"
"gitHead": "77cd5a25d5cf28c83253b7bfe02cd25b54e236b0"
}
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