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 1.0.0-next.9 to 1.0.0

0

lib/beautify/beautify.js

@@ -0,0 +0,0 @@ (function (factory) {

@@ -0,0 +0,0 @@ import { TextDocument, Position, CompletionItem, CompletionList, Hover, Range, SymbolInformation, Diagnostic, TextEdit, DocumentHighlight, FormattingOptions, MarkedString, DocumentLink } from 'vscode-languageserver-types';

@@ -0,0 +0,0 @@ (function (factory) {

7

lib/parser/htmlParser.js

@@ -24,2 +24,5 @@ (function (factory) {

}
Node.prototype.isSameTag = function (tagInLowerCase) {
return this.tag && tagInLowerCase && this.tag.length === tagInLowerCase.length && this.tag.toLowerCase() === tagInLowerCase;
};
Object.defineProperty(Node.prototype, "firstChild", {

@@ -79,3 +82,3 @@ get: function () { return this.children[0]; },

case htmlScanner_1.TokenType.StartTag:
curr.tag = scanner.getTokenText().toLowerCase();
curr.tag = scanner.getTokenText();
break;

@@ -94,3 +97,3 @@ case htmlScanner_1.TokenType.StartTagClose:

var closeTag = scanner.getTokenText().toLowerCase();
while (!htmlTags_1.isSameTag(curr.tag, closeTag) && curr !== htmlDocument) {
while (!curr.isSameTag(closeTag) && curr !== htmlDocument) {
curr.end = endTagStart;

@@ -97,0 +100,0 @@ curr.closed = false;

@@ -0,0 +0,0 @@ export declare enum TokenType {

@@ -0,0 +0,0 @@ (function (factory) {

@@ -54,6 +54,2 @@ /*---------------------------------------------------------------------------------------------

exports.isEmptyElement = isEmptyElement;
function isSameTag(t1, t2) {
return t1 && t2 && t1 === t2;
}
exports.isSameTag = isSameTag;
var HTMLTagSpecification = (function () {

@@ -60,0 +56,0 @@ function HTMLTagSpecification(label, attributes) {

@@ -0,0 +0,0 @@ (function (factory) {

@@ -0,0 +0,0 @@ (function (factory) {

@@ -0,0 +0,0 @@ (function (factory) {

@@ -0,0 +0,0 @@ (function (factory) {

@@ -25,2 +25,3 @@ (function (factory) {

function getTagHover(tag, range, open) {
tag = tag.toLowerCase();
var _loop_1 = function(provider) {

@@ -27,0 +28,0 @@ var hover;

@@ -23,3 +23,3 @@ (function (factory) {

function getWorkspaceUrl(modelAbsoluteUri, tokenContent, documentContext) {
if (/^\s*javascript\:/i.test(tokenContent) || /^\s*\#/i.test(tokenContent)) {
if (/^\s*javascript\:/i.test(tokenContent) || /^\s*\#/i.test(tokenContent) || /[\n\r]/.test(tokenContent)) {
return null;

@@ -26,0 +26,0 @@ }

@@ -0,0 +0,0 @@ (function (factory) {

@@ -313,3 +313,4 @@ (function (factory) {

items: [
{ label: '/li', resultText: '<LI></li>' }
{ label: '/LI', resultText: '<LI></LI>' },
{ label: '/li', notAvailable: true }
]

@@ -319,3 +320,3 @@ }),

items: [
{ label: '/li', resultText: '<lI></li>' }
{ label: '/lI', resultText: '<lI></lI>' }
]

@@ -322,0 +323,0 @@ }),

@@ -0,0 +0,0 @@ (function (factory) {

@@ -0,0 +0,0 @@ (function (factory) {

@@ -71,2 +71,3 @@ (function (factory) {

testLinkDetection('<LINK HREF="a.html">', [12]);
testLinkDetection('<LINK HREF="a.html\n>\n', []);
});

@@ -73,0 +74,0 @@ });

@@ -0,0 +0,0 @@ (function (factory) {

@@ -0,0 +0,0 @@ (function (factory) {

@@ -0,0 +0,0 @@ (function (factory) {

@@ -0,0 +0,0 @@ (function (factory) {

@@ -0,0 +0,0 @@ (function (factory) {

@@ -0,0 +0,0 @@ (function (factory) {

{
"name": "vscode-html-languageservice",
"version": "1.0.0-next.9",
"version": "1.0.0",
"description": "Language service for HTML",

@@ -18,8 +18,5 @@ "main": "./lib/htmlLanguageService.js",

"mocha": "^2.4.5",
"typescript": "^1.8.10",
"gulp": "^3.9.1",
"gulp-tsb": "^1.10.4",
"merge-stream": "^1.0.0",
"object-assign": "^4.1.0",
"rimraf": "^2.5.2"
"typescript": "^2.0.8",
"@types/node": "^6.0.46",
"@types/mocha": "^2.2.32"
},

@@ -32,7 +29,7 @@ "dependencies": {

"scripts": {
"prepublish": "gulp compile",
"compile": "gulp compile",
"watch": "gulp watch",
"test": "gulp compile && mocha"
"prepublish": "npm run compile",
"compile": "tsc -p ./src && cp ./src/beautify/*.js ./lib/beautify",
"watch": "cp ./src/beautify/*.js ./lib/beautify && tsc -w -p ./src",
"test": "npm run compile && mocha"
}
}
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