You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

@vue/language-service

Package Overview
Dependencies
Maintainers
2
Versions
106
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vue/language-service - npm Package Compare versions

Comparing version

to
3.0.0-beta.5

12

lib/nameCasing.js

@@ -19,13 +19,13 @@ "use strict";

const [attr, tag] = await Promise.all([
context.env.getConfiguration?.('vue.complete.casing.props', uri.toString()),
context.env.getConfiguration?.('vue.complete.casing.tags', uri.toString()),
context.env.getConfiguration?.('vue.suggest.propNameCasing', uri.toString()),
context.env.getConfiguration?.('vue.suggest.componentNameCasing', uri.toString()),
]);
const tagNameCasing = detected.tag.length === 1 && (tag === 'autoPascal' || tag === 'autoKebab')
const tagNameCasing = detected.tag.length === 1 && (tag === 'preferPascalCase' || tag === 'preferKebabCase')
? detected.tag[0]
: (tag === 'autoKebab' || tag === 'kebab')
: (tag === 'preferKebabCase' || tag === 'alwaysKebabCase')
? TagNameCasing.Kebab
: TagNameCasing.Pascal;
const attrNameCasing = detected.attr.length === 1 && (attr === 'autoCamel' || attr === 'autoKebab')
const attrNameCasing = detected.attr.length === 1 && (attr === 'preferCamelCase' || attr === 'preferKebabCase')
? detected.attr[0]
: (attr === 'autoCamel' || attr === 'camel')
: (attr === 'preferCamelCase' || attr === 'alwaysCamelCase')
? AttrNameCasing.Camel

@@ -32,0 +32,0 @@ : AttrNameCasing.Kebab;

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

}
const enabled = await context.env.getConfiguration?.('vue.complete.defineAssignment') ?? true;
const enabled = await context.env.getConfiguration?.('vue.suggest.defineAssignment') ?? true;
if (!enabled) {

@@ -23,0 +23,0 @@ return;

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

else if (attrText === 'v-model') {
attrText = 'modelValue'; // TODO: support for experimentalModelPropName?
attrText = context.project.vue.compilerOptions.target >= 3 ? 'modelValue' : 'value'; // TODO: support for experimentalModelPropName?
}

@@ -105,0 +105,0 @@ else if (attrText.startsWith('v-on:')) {

{
"name": "@vue/language-service",
"version": "3.0.0-beta.4",
"version": "3.0.0-beta.5",
"license": "MIT",

@@ -21,3 +21,3 @@ "files": [

"@volar/language-service": "2.4.15",
"@vue/language-core": "3.0.0-beta.4",
"@vue/language-core": "3.0.0-beta.5",
"@vue/shared": "^3.5.0",

@@ -42,6 +42,6 @@ "path-browserify": "^1.0.1",

"@vue/compiler-dom": "^3.5.0",
"@vue/typescript-plugin": "3.0.0-beta.4",
"@vue/typescript-plugin": "3.0.0-beta.5",
"vscode-css-languageservice": "^6.3.1"
},
"gitHead": "5cb41faacbfe2d9e2d64637c6c1ae8769d9cba3f"
"gitHead": "3a4648914c60c90444d939cf762a016a4318ca09"
}