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

vscode-html-languageservice

Package Overview
Dependencies
Maintainers
6
Versions
141
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vscode-html-languageservice - npm Package Compare versions

Comparing version 2.1.11-next.4 to 2.1.11-next.5

9

lib/esm/services/htmlSelectionRange.js

@@ -16,3 +16,3 @@ /**

}
export function getApplicableRanges(document, position) {
function getApplicableRanges(document, position) {
var htmlDoc = parse(document.getText());

@@ -22,2 +22,9 @@ var currOffset = document.offsetAt(position);

var result = getAllParentTagRanges(currNode);
// Self-closing tags
if (currNode.startTagEnd && !currNode.endTagStart) {
result.unshift([currNode.start + 1, currNode.startTagEnd - 2]);
var attributeLevelRanges = getAttributeLevelRanges(document, currNode, currOffset);
result = attributeLevelRanges.concat(result);
return result;
}
if (!currNode.startTagEnd || !currNode.endTagStart) {

@@ -24,0 +31,0 @@ return result;

@@ -33,2 +33,9 @@ (function (factory) {

var result = getAllParentTagRanges(currNode);
// Self-closing tags
if (currNode.startTagEnd && !currNode.endTagStart) {
result.unshift([currNode.start + 1, currNode.startTagEnd - 2]);
var attributeLevelRanges = getAttributeLevelRanges(document, currNode, currOffset);
result = attributeLevelRanges.concat(result);
return result;
}
if (!currNode.startTagEnd || !currNode.endTagStart) {

@@ -68,3 +75,2 @@ return result;

}
exports.getApplicableRanges = getApplicableRanges;
function getAllParentTagRanges(initialNode) {

@@ -71,0 +77,0 @@ var currNode = initialNode;

2

package.json
{
"name": "vscode-html-languageservice",
"version": "2.1.11-next.4",
"version": "2.1.11-next.5",
"description": "Language service for HTML",

@@ -5,0 +5,0 @@ "main": "./lib/umd/htmlLanguageService.js",

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