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 1.1.0 to 1.2.0

7

lib/parse.js

@@ -9,2 +9,3 @@ "use strict";

const flatten_nodes_1 = require("./flatten-nodes");
const parser_utils_1 = require("@markuplint/parser-utils");
const is_document_fragment_1 = __importDefault(require("./is-document-fragment"));

@@ -14,3 +15,6 @@ const parse5_1 = __importDefault(require("parse5"));

const P5_OPTIONS = { sourceCodeLocationInfo: true };
exports.parse = (rawCode, offsetOffset = 0, offsetLine = 0, offsetColumn = 0) => {
const parse = (rawCode, offsetOffset = 0, offsetLine = 0, offsetColumn = 0, isIgnoringFrontMatter) => {
if (isIgnoringFrontMatter) {
rawCode = parser_utils_1.ignoreFrontMatter(rawCode);
}
const isFragment = is_document_fragment_1.default(rawCode);

@@ -26,2 +30,3 @@ const doc = isFragment

};
exports.parse = parse;
function traverse(rootNode, parentNode, rawHtml, offsetOffset, offsetLine, offsetColumn) {

@@ -28,0 +33,0 @@ const nodeList = [];

7

package.json
{
"name": "@markuplint/html-parser",
"version": "1.1.0",
"version": "1.2.0",
"description": "HTML parser for markuplint",

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

"dependencies": {
"@markuplint/ml-ast": "^1.1.0",
"@markuplint/ml-ast": "^1.2.0",
"@markuplint/parser-utils": "^1.1.0",
"parse5": "^6.0.1"
},
"gitHead": "90b7f86d6708e2003cc33ca7aa7da327d590f6b4"
"gitHead": "1806f99b6429b73ce498f6ecf641efc2400f47dd"
}

@@ -9,2 +9,5 @@ {

"path": "../ml-ast"
},
{
"path": "../parser-utils"
}

@@ -11,0 +14,0 @@ ],

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