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

@markuplint/parser-utils

Package Overview
Dependencies
Maintainers
0
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.4 to 4.6.5

10

CHANGELOG.md

@@ -6,3 +6,3 @@ # Change Log

## [4.6.4](https://github.com/markuplint/markuplint/compare/@markuplint/parser-utils@4.6.3...@markuplint/parser-utils@4.6.4) (2024-06-09)
## [4.6.5](https://github.com/markuplint/markuplint/compare/@markuplint/parser-utils@4.6.4...@markuplint/parser-utils@4.6.5) (2024-06-25)

@@ -12,3 +12,3 @@

* fix to export type files ([eff4bbf](https://github.com/markuplint/markuplint/commit/eff4bbfd127574809dc5e15d7cafe87699758ee0))
* **parser-utils:** modify to treat attrs start with `script` type quotation marks as spread attr ([617b6d0](https://github.com/markuplint/markuplint/commit/617b6d0fbba1d245ca21360908b643f123818037))

@@ -19,2 +19,8 @@

## [4.6.4](https://github.com/markuplint/markuplint/compare/@markuplint/parser-utils@4.6.3...@markuplint/parser-utils@4.6.4) (2024-06-09)
### Bug Fixes
- fix to export type files ([eff4bbf](https://github.com/markuplint/markuplint/commit/eff4bbfd127574809dc5e15d7cafe87699758ee0))
## [4.6.3](https://github.com/markuplint/markuplint/compare/@markuplint/parser-utils@4.6.2...@markuplint/parser-utils@4.6.3) (2024-05-28)

@@ -21,0 +27,0 @@

8

lib/attr-tokenizer.js

@@ -28,3 +28,9 @@ import { defaultSpaces } from './const.js';

let quoteEnd = '';
const isBeforeValueStarted = startState === AttrState.BeforeValue;
// If the `quoteSet` contains a `script` type quotation mark and an attribute starts with that quotation mark,
// the attribute name and equals sign are considered omitted.
const scriptStartChars = quoteSet.filter(quote => quote.type === 'script').map(quote => quote.start);
if (scriptStartChars.some(scriptStartChar => raw.trim().startsWith(scriptStartChar))) {
state = AttrState.BeforeValue;
}
const isBeforeValueStarted = state === AttrState.BeforeValue;
const chars = [...raw];

@@ -31,0 +37,0 @@ while (chars.length > 0) {

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

parseError(error: any): ParserError;
traverse(originNodes: readonly Node[], parentNode: MLASTParentNode | null | undefined, depth: number): {
traverse(originNodes: readonly Node[], parentNode: (MLASTParentNode | null) | undefined, depth: number): {
childNodes: readonly MLASTChildNode[];

@@ -39,0 +39,0 @@ siblings: readonly MLASTNodeTreeItem[];

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

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

"dependencies": {
"@markuplint/ml-ast": "4.4.1",
"@markuplint/ml-spec": "4.6.2",
"@markuplint/types": "4.5.2",
"@types/uuid": "9.0.8",
"@markuplint/ml-ast": "4.4.2",
"@markuplint/ml-spec": "4.6.3",
"@markuplint/types": "4.5.3",
"@types/uuid": "10.0.0",
"debug": "4.3.5",
"espree": "10.0.1",
"type-fest": "4.20.0",
"uuid": "9.0.1"
"espree": "10.1.0",
"type-fest": "4.20.1",
"uuid": "10.0.0"
},
"devDependencies": {
"@typescript-eslint/typescript-estree": "7.12.0"
"@typescript-eslint/typescript-estree": "7.14.1"
},
"gitHead": "0200dc1f7b1ffa7455b889696153e25dbae8241f"
"gitHead": "05fdca254661ec335ff0cae4c6a11db164b032b9"
}
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