@markuplint/parser-utils
Advanced tools
Comparing version 4.5.1 to 4.6.0
@@ -65,3 +65,3 @@ export function nodeListToDebugMaps(nodeList, withAttr = false) { | ||
// @ts-ignore | ||
n.potentialName ?? n.nodeName ?? n.name ?? n.type ?? type}${'isGhost' in n && n.isGhost ? '(👻)' : ''}${'isBogus' in n && n.isBogus ? '(👿)' : ''}: ${visibleWhiteSpace(n.raw)}`; | ||
n.potentialName ?? n.nodeName ?? n.name ?? n.type ?? type}${'isGhost' in n && n.isGhost ? '(👻)' : ''}${'isBogus' in n && n.isBogus ? '(👿)' : ''}${'conditionalType' in n && n.conditionalType ? ` (${n.conditionalType})` : ''}: ${visibleWhiteSpace(n.raw)}`; | ||
} | ||
@@ -68,0 +68,0 @@ function visibleWhiteSpace(chars) { |
@@ -76,2 +76,3 @@ import { MASK_CHAR } from './const.js'; | ||
type: 'psblock', | ||
conditionalType: null, | ||
depth: node.depth, | ||
@@ -106,2 +107,3 @@ nodeName: `#ps:${tag.type}`, | ||
type: 'psblock', | ||
conditionalType: null, | ||
depth: node.depth, | ||
@@ -108,0 +110,0 @@ nodeName: `#ps:${tag.type}`, |
import type { Token, ChildToken, QuoteSet, ParseOptions, ParserOptions, Tokenized, ValueType } from './types.js'; | ||
import type { EndTagType, MLASTDocument, MLASTParentNode, MLParser, ParserAuthoredElementNameDistinguishing, MLASTElement, MLASTElementCloseTag, MLASTToken, MLASTNodeTreeItem, MLASTTag, MLASTText, MLASTAttr, MLASTChildNode, MLASTSpreadAttr, ElementType, Walker, MLASTHTMLAttr } from '@markuplint/ml-ast'; | ||
import type { EndTagType, MLASTDocument, MLASTParentNode, MLParser, ParserAuthoredElementNameDistinguishing, MLASTElement, MLASTElementCloseTag, MLASTToken, MLASTNodeTreeItem, MLASTTag, MLASTText, MLASTAttr, MLASTChildNode, MLASTSpreadAttr, ElementType, Walker, MLASTHTMLAttr, MLASTPreprocessorSpecificBlockConditionalType } from '@markuplint/ml-ast'; | ||
import { AttrState } from './enums.js'; | ||
@@ -74,3 +74,3 @@ import { ParserError } from './parser-error.js'; | ||
readonly nodeName: string; | ||
}, childNodes?: readonly Node[], originBlockNode?: Node): readonly MLASTNodeTreeItem[]; | ||
}, childNodes?: readonly Node[], conditionalType?: MLASTPreprocessorSpecificBlockConditionalType, originBlockNode?: Node): readonly MLASTNodeTreeItem[]; | ||
visitChildren(children: readonly Node[], parentNode: MLASTParentNode | null): readonly MLASTNodeTreeItem[]; | ||
@@ -77,0 +77,0 @@ visitSpreadAttr(token: Token): MLASTSpreadAttr | null; |
@@ -311,3 +311,3 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) { | ||
} | ||
visitPsBlock(token, childNodes = [], originBlockNode) { | ||
visitPsBlock(token, childNodes = [], conditionalType = null, originBlockNode) { | ||
const block = { | ||
@@ -317,2 +317,3 @@ ...token, | ||
type: 'psblock', | ||
conditionalType, | ||
nodeName: `#ps:${token.nodeName}`, | ||
@@ -319,0 +320,0 @@ childNodes: [], |
{ | ||
"name": "@markuplint/parser-utils", | ||
"version": "4.5.1", | ||
"version": "4.6.0", | ||
"description": "Utility module for markuplint parser plugin", | ||
@@ -30,15 +30,15 @@ "repository": "git@github.com:markuplint/markuplint.git", | ||
"dependencies": { | ||
"@markuplint/ml-ast": "4.2.0", | ||
"@markuplint/ml-spec": "4.4.1", | ||
"@markuplint/types": "4.3.0", | ||
"@markuplint/ml-ast": "4.3.0", | ||
"@markuplint/ml-spec": "4.5.0", | ||
"@markuplint/types": "4.4.0", | ||
"@types/uuid": "9.0.8", | ||
"debug": "4.3.4", | ||
"espree": "10.0.1", | ||
"type-fest": "4.15.0", | ||
"type-fest": "4.18.1", | ||
"uuid": "9.0.1" | ||
}, | ||
"devDependencies": { | ||
"@typescript-eslint/typescript-estree": "7.7.0" | ||
"@typescript-eslint/typescript-estree": "7.8.0" | ||
}, | ||
"gitHead": "b029c86a6b3a9ea8189d2e5535e3023aaea753fd" | ||
"gitHead": "b8d7bae9bdcdad63ff79abe21b88be12abde3633" | ||
} |
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
103137
2669
+ Added@markuplint/ml-ast@4.3.0(transitive)
+ Added@markuplint/ml-spec@4.5.0(transitive)
+ Added@markuplint/types@4.4.0(transitive)
+ Addedtype-fest@4.18.1(transitive)
- Removed@markuplint/ml-ast@4.2.0(transitive)
- Removed@markuplint/ml-spec@4.4.1(transitive)
- Removed@markuplint/types@4.3.0(transitive)
- Removedtype-fest@4.15.0(transitive)
Updated@markuplint/ml-ast@4.3.0
Updated@markuplint/ml-spec@4.5.0
Updated@markuplint/types@4.4.0
Updatedtype-fest@4.18.1