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

@markuplint/html-parser

Package Overview
Dependencies
Maintainers
1
Versions
170
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@markuplint/html-parser - npm Package Compare versions

Comparing version 2.2.1 to 3.0.0-alpha.0

17

lib/attr-tokenizer.js

@@ -20,6 +20,2 @@ "use strict";

let offset = startOffset;
const attrToken = (0, parser_utils_1.tokenizer)(raw, line, col, offset);
line = attrToken.startLine;
col = attrToken.startCol;
offset = attrToken.startOffset;
const spacesBeforeName = (0, parser_utils_1.tokenizer)(spacesBeforeAttrString, line, col, offset);

@@ -54,2 +50,9 @@ line = spacesBeforeName.endLine;

const endQuote = (0, parser_utils_1.tokenizer)(quoteChars, line, col, offset);
const attrToken = (0, parser_utils_1.tokenizer)(nameChars +
spacesBeforeEqualChars +
(equalChars || '') +
spacesAfterEqualChars +
(quoteChars || '') +
(valueChars || '') +
(quoteChars || ''), name.startLine, name.startCol, name.startOffset);
return {

@@ -74,4 +77,10 @@ type: 'html-attr',

isDuplicatable: false,
nodeName: name.raw,
parentNode: null,
prevNode: null,
nextNode: null,
isFragment: false,
isGhost: false,
};
}
exports.default = attrTokenizer;

@@ -57,4 +57,9 @@ "use strict";

nodeName: originNode.nodeName,
type: 'omittedtag',
type: 'starttag',
namespace: getNamespace(originNode),
attributes: [],
hasSpreadAttr: false,
pearNode: null,
tagCloseChar: '',
tagOpenChar: '',
parentNode,

@@ -61,0 +66,0 @@ prevNode,

{
"name": "@markuplint/html-parser",
"version": "2.2.1",
"version": "3.0.0-alpha.0",
"description": "HTML parser for markuplint",

@@ -23,8 +23,8 @@ "repository": "git@github.com:markuplint/markuplint.git",

"dependencies": {
"@markuplint/ml-ast": "2.0.1-dev.20220307.0",
"@markuplint/parser-utils": "2.2.0",
"@markuplint/ml-ast": "3.0.0-alpha.0",
"@markuplint/parser-utils": "3.0.0-alpha.0",
"parse5": "^6.0.1",
"tslib": "^2.3.1"
},
"gitHead": "0c774ce046ebc8a9c494e9884a4bfcd72a66250d"
"gitHead": "d32c522e016888e20bcbb5f09352c006b964f193"
}

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