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
140
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.1 to 2.1.2

4

lib/esm/parser/htmlTags.js

@@ -297,3 +297,3 @@ /*---------------------------------------------------------------------------------------------

};
var globalAttributes = ['ng-app', 'ng-bind', 'ng-bind-html', 'ng-bind-template', 'ng-blur', 'ng-change', 'ng-checked', 'ng-class', 'ng-class-even', 'ng-class-odd',
var globalAttributes = ['ng-app', 'ng-strict-di', 'ng-bind', 'ng-bind-html', 'ng-bind-template', 'ng-blur', 'ng-change', 'ng-checked', 'ng-class', 'ng-class-even', 'ng-class-odd',
'ng-click', 'ng-cloak', 'ng-controller', 'ng-copy', 'ng-csp', 'ng-cut', 'ng-dblclick', 'ng-disabled', 'ng-focus', 'ng-form', 'ng-hide', 'ng-href', 'ng-if',

@@ -428,3 +428,3 @@ 'ng-include', 'ng-init', 'ng-jq', 'ng-keydown', 'ng-keypress', 'ng-keyup', 'ng-list', 'ng-model-options', 'ng-mousedown', 'ng-mouseenter', 'ng-mouseleave',

END THIRD PARTY
*/
*/
//# sourceMappingURL=htmlTags.js.map

@@ -150,4 +150,9 @@ /*---------------------------------------------------------------------------------------------

var tag = currentTag.toLowerCase();
var seenAttributes = Object.create(null);
tagProviders.forEach(function (provider) {
provider.collectAttributes(tag, function (attribute, type) {
if (seenAttributes[attribute]) {
return;
}
seenAttributes[attribute] = true;
var codeSnippet = attribute;

@@ -173,6 +178,6 @@ var command;

});
collectDataAttributesSuggestions(range);
collectDataAttributesSuggestions(range, seenAttributes);
return result;
}
function collectDataAttributesSuggestions(range) {
function collectDataAttributesSuggestions(range, seenAttributes) {
var dataAttr = 'data-';

@@ -183,3 +188,3 @@ var dataAttributes = {};

node.attributeNames.forEach(function (attr) {
if (startsWith(attr, dataAttr) && !dataAttributes[attr]) {
if (startsWith(attr, dataAttr) && !dataAttributes[attr] && !seenAttributes[attr]) {
dataAttributes[attr] = attr + '="$1"';

@@ -186,0 +191,0 @@ }

@@ -310,3 +310,3 @@ /*---------------------------------------------------------------------------------------------

};
var globalAttributes = ['ng-app', 'ng-bind', 'ng-bind-html', 'ng-bind-template', 'ng-blur', 'ng-change', 'ng-checked', 'ng-class', 'ng-class-even', 'ng-class-odd',
var globalAttributes = ['ng-app', 'ng-strict-di', 'ng-bind', 'ng-bind-html', 'ng-bind-template', 'ng-blur', 'ng-change', 'ng-checked', 'ng-class', 'ng-class-even', 'ng-class-odd',
'ng-click', 'ng-cloak', 'ng-controller', 'ng-copy', 'ng-csp', 'ng-cut', 'ng-dblclick', 'ng-disabled', 'ng-focus', 'ng-form', 'ng-hide', 'ng-href', 'ng-if',

@@ -444,3 +444,3 @@ 'ng-include', 'ng-init', 'ng-jq', 'ng-keydown', 'ng-keypress', 'ng-keyup', 'ng-list', 'ng-model-options', 'ng-mousedown', 'ng-mouseenter', 'ng-mouseleave',

END THIRD PARTY
*/
*/
//# sourceMappingURL=htmlTags.js.map

@@ -160,4 +160,9 @@ (function (factory) {

var tag = currentTag.toLowerCase();
var seenAttributes = Object.create(null);
tagProviders.forEach(function (provider) {
provider.collectAttributes(tag, function (attribute, type) {
if (seenAttributes[attribute]) {
return;
}
seenAttributes[attribute] = true;
var codeSnippet = attribute;

@@ -183,6 +188,6 @@ var command;

});
collectDataAttributesSuggestions(range);
collectDataAttributesSuggestions(range, seenAttributes);
return result;
}
function collectDataAttributesSuggestions(range) {
function collectDataAttributesSuggestions(range, seenAttributes) {
var dataAttr = 'data-';

@@ -193,3 +198,3 @@ var dataAttributes = {};

node.attributeNames.forEach(function (attr) {
if (strings_1.startsWith(attr, dataAttr) && !dataAttributes[attr]) {
if (strings_1.startsWith(attr, dataAttr) && !dataAttributes[attr] && !seenAttributes[attr]) {
dataAttributes[attr] = attr + '="$1"';

@@ -196,0 +201,0 @@ }

{
"name": "vscode-html-languageservice",
"version": "2.1.1",
"version": "2.1.2",
"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