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 1.6.0 to 1.6.1

9

lib/ignore-block.js

@@ -32,3 +32,4 @@ "use strict";

const_1.MASK_CHAR.repeat((endTag || '').length);
replaced = above + mask + (below || '');
const taggedMask = `<!${mask.slice(2).slice(0, -1)}>`;
replaced = above + taggedMask + (below || '');
}

@@ -48,3 +49,3 @@ stack.sort((a, b) => a.index - b.index);

for (const node of nodeList) {
if (node.type === ml_ast_1.MLASTNodeType.Text) {
if (node.type === ml_ast_1.MLASTNodeType.Comment) {
if (!hasIgnoreBlock(node.raw)) {

@@ -67,3 +68,3 @@ continue;

const { raw, startOffset, endOffset, startLine, endLine, startCol, endCol } = utils_1.sliceFragment(source, offset, offset + above.length);
const textNode = Object.assign(Object.assign({}, node), { uuid: utils_1.uuid(), raw,
const textNode = Object.assign(Object.assign({}, node), { uuid: utils_1.uuid(), type: ml_ast_1.MLASTNodeType.Text, raw,
startOffset,

@@ -106,3 +107,3 @@ endOffset,

const { raw, startOffset, endOffset, startLine, endLine, startCol, endCol } = utils_1.sliceFragment(source, offset, offset + text.length);
const textNode = Object.assign(Object.assign({}, node), { uuid: utils_1.uuid(), raw,
const textNode = Object.assign(Object.assign({}, node), { uuid: utils_1.uuid(), type: ml_ast_1.MLASTNodeType.Text, raw,
startOffset,

@@ -109,0 +110,0 @@ endOffset,

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

@@ -26,3 +26,3 @@ "repository": "git@github.com:markuplint/markuplint.git",

},
"gitHead": "ffef90a8232a7cdd0f4eb12b11c071c184042500"
"gitHead": "26df7acd93a28fa331773cbe895a234a17fc63b6"
}

Sorry, the diff of this file is not supported yet

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