@markuplint/parser-utils
Advanced tools
Comparing version 4.6.4 to 4.6.5
@@ -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 @@ |
@@ -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" | ||
} |
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
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
105741
2683
+ Added@markuplint/ml-ast@4.4.2(transitive)
+ Added@markuplint/ml-spec@4.6.3(transitive)
+ Added@markuplint/shared@4.4.3(transitive)
+ Added@markuplint/types@4.5.3(transitive)
+ Added@types/css-tree@2.3.8(transitive)
+ Added@types/uuid@10.0.0(transitive)
+ Addedespree@10.1.0(transitive)
+ Addedtype-fest@4.20.1(transitive)
+ Addeduuid@10.0.0(transitive)
- Removed@markuplint/ml-ast@4.4.1(transitive)
- Removed@markuplint/ml-spec@4.6.2(transitive)
- Removed@markuplint/shared@4.4.2(transitive)
- Removed@markuplint/types@4.5.2(transitive)
- Removed@types/css-tree@2.3.7(transitive)
- Removed@types/uuid@9.0.8(transitive)
- Removedespree@10.0.1(transitive)
- Removedtype-fest@4.20.0(transitive)
- Removeduuid@9.0.1(transitive)
Updated@markuplint/ml-ast@4.4.2
Updated@markuplint/ml-spec@4.6.3
Updated@markuplint/types@4.5.3
Updated@types/uuid@10.0.0
Updatedespree@10.1.0
Updatedtype-fest@4.20.1
Updateduuid@10.0.0