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

vscode-vue-languageservice

Package Overview
Dependencies
Maintainers
1
Versions
119
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vscode-vue-languageservice - npm Package Compare versions

Comparing version 0.27.5 to 0.27.6

18

out/parsers/cssBinds.js

@@ -10,8 +10,14 @@ "use strict";

const nodeText = docText.substring(node.offset, node.end);
const reg = /^v-bind\s*\(\s*(\S*)\s*\)$/;
const match = nodeText.match(reg);
if (match) {
const matchText = match[1];
const offset = node.offset + nodeText.lastIndexOf(matchText);
result.push({ start: offset, end: offset + matchText.length });
const reg = /v-bind\s*\(\s*([^\s\)]*)\s*\)/g;
const matchs = nodeText.matchAll(reg);
for (const match of matchs) {
if (match.index !== undefined) {
let matchText = match[1];
if (matchText.startsWith('"') && matchText.endsWith('"')
|| matchText.startsWith("'") && matchText.endsWith("'")) {
matchText = matchText.substring(1, matchText.length - 1);
}
const offset = node.offset + match.index + nodeText.substr(match.index).indexOf(matchText);
result.push({ start: offset, end: offset + matchText.length });
}
}

@@ -18,0 +24,0 @@ }

@@ -59,3 +59,3 @@ "use strict";

title: referencesCount === 1 ? '1 reference' : `${referencesCount} references`,
command: commands_1.Commands.SHOW_REFERENCES,
command: canShowReferences ? commands_1.Commands.SHOW_REFERENCES : '',
arguments: [uri, codeLens.range.start, vueReferences],

@@ -62,0 +62,0 @@ };

@@ -299,5 +299,5 @@ "use strict";

};
function parseMappingSourceRange(data, range) {
function parseMappingSourceRange(data /* TODO */, range) {
var _a, _b;
if (data.vueTag === 'style' && data.vueTagIndex !== undefined) {
if ((data === null || data === void 0 ? void 0 : data.vueTag) === 'style' && (data === null || data === void 0 ? void 0 : data.vueTagIndex) !== undefined) {
return {

@@ -304,0 +304,0 @@ start: styles.value[data.vueTagIndex].loc.start + range.start,

{
"name": "vscode-vue-languageservice",
"version": "0.27.5",
"version": "0.27.6",
"main": "out/index.js",

@@ -19,7 +19,7 @@ "license": "MIT",

"dependencies": {
"@volar/code-gen": "^0.27.5",
"@volar/html2pug": "^0.27.5",
"@volar/shared": "^0.27.5",
"@volar/source-map": "^0.27.5",
"@volar/transforms": "^0.27.5",
"@volar/code-gen": "^0.27.6",
"@volar/html2pug": "^0.27.6",
"@volar/shared": "^0.27.6",
"@volar/source-map": "^0.27.6",
"@volar/transforms": "^0.27.6",
"@vscode/emmet-helper": "^2.7.0",

@@ -37,6 +37,6 @@ "@vue/compiler-dom": "^3.2.4",

"vscode-languageserver-textdocument": "^1.0.1",
"vscode-pug-languageservice": "^0.27.5",
"vscode-typescript-languageservice": "^0.27.5"
"vscode-pug-languageservice": "^0.27.6",
"vscode-typescript-languageservice": "^0.27.6"
},
"gitHead": "4cd2177431ecc6b163efc9021104413b244339d7"
"gitHead": "f67034fead23f07a4bc3d6bfbc53b006ae1e9a40"
}
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