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

@html-eslint/parser

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@html-eslint/parser - npm Package Compare versions

Comparing version 0.1.0 to 0.2.0

LICENSE

12

lib/ast-converter/node-converter.js

@@ -8,2 +8,3 @@ const utils = require("./utils");

nodeName,
attrs,
sourceCodeLocation,

@@ -17,2 +18,3 @@ ...extra

...utils.toESLocation(sourceCodeLocation, childNodes),
// start tag
startTag:

@@ -24,2 +26,3 @@ sourceCodeLocation && sourceCodeLocation.startTag

: null,
// end tag
endTag:

@@ -31,2 +34,11 @@ sourceCodeLocation && sourceCodeLocation.endTag

: null,
// attributes
attrs: attrs
? attrs.map((attr) => ({
...attr,
...(sourceCodeLocation && sourceCodeLocation.attrs
? utils.getAttrLocation(sourceCodeLocation, attr.name)
: null),
}))
: [],
...(type === "Program"

@@ -33,0 +45,0 @@ ? {

@@ -71,2 +71,8 @@ function getLocFromChildNodes(childNodes) {

},
getAttrLocation(sourceCodeLocation, attrName) {
if (sourceCodeLocation && sourceCodeLocation.attrs) {
return this.toESLocation(sourceCodeLocation.attrs[attrName]);
}
return null;
},
};

4

package.json
{
"name": "@html-eslint/parser",
"version": "0.1.0",
"version": "0.2.0",
"description": "Parser for @html-eslint/eslint-plugin",

@@ -32,3 +32,3 @@ "author": "yeonjuan",

},
"gitHead": "a3fc97c0e25cffef20b3c1295998bbbab635fe5d"
"gitHead": "1bac029775d06cac9f8f4a3c1d606295ef13913d"
}
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