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.5.1 to 4.6.0

2

lib/debugger.js

@@ -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"
}
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