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.9 to 2.1.10

11

lib/esm/services/htmlFormatter.js

@@ -40,2 +40,13 @@ /*---------------------------------------------------------------------------------------------

range = Range.create(document.positionAt(startOffset), document.positionAt(endOffset));
//Do not modify if substring in inside an element
var firstHalf = value.substring(0, startOffset);
var secondHalf = value.substring(endOffset, value.length);
if (new RegExp(/.*[<][^>]*$/).test(firstHalf) && new RegExp(/^[^<]*[>].*/).test(secondHalf)) {
//return without modification
value = value.substring(startOffset, endOffset);
return [{
range: range,
newText: value
}];
}
includesEnd = endOffset === value.length;

@@ -42,0 +53,0 @@ value = value.substring(startOffset, endOffset);

@@ -50,2 +50,13 @@ (function (factory) {

range = vscode_languageserver_types_1.Range.create(document.positionAt(startOffset), document.positionAt(endOffset));
//Do not modify if substring in inside an element
var firstHalf = value.substring(0, startOffset);
var secondHalf = value.substring(endOffset, value.length);
if (new RegExp(/.*[<][^>]*$/).test(firstHalf) && new RegExp(/^[^<]*[>].*/).test(secondHalf)) {
//return without modification
value = value.substring(startOffset, endOffset);
return [{
range: range,
newText: value
}];
}
includesEnd = endOffset === value.length;

@@ -52,0 +63,0 @@ value = value.substring(startOffset, endOffset);

2

package.json
{
"name": "vscode-html-languageservice",
"version": "2.1.9",
"version": "2.1.10",
"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