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/typescript-plugin

Package Overview
Dependencies
Maintainers
2
Versions
60
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vue/typescript-plugin - npm Package Compare versions

Comparing version

to
3.0.0-beta.3

29

index.js

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

}, 50);
}
},
};

@@ -62,3 +62,12 @@ function getVueCompilerOptions() {

session.vueCommandsAdded = true;
session.addProtocolHandler('vue:collectExtractProps', ({ arguments: args }) => {
session.addProtocolHandler('_vue:projectInfo', ({ arguments: args }) => {
return session.handlers.get('projectInfo')?.({ arguments: args });
});
session.addProtocolHandler('_vue:documentHighlights-full', ({ arguments: args }) => {
return session.handlers.get('documentHighlights-full')?.({ arguments: args });
});
session.addProtocolHandler('_vue:quickinfo', ({ arguments: args }) => {
return session.handlers.get('quickinfo')?.({ arguments: args });
});
session.addProtocolHandler('_vue:collectExtractProps', ({ arguments: args }) => {
return {

@@ -68,3 +77,3 @@ response: collectExtractProps_1.collectExtractProps.apply(getRequestContext(args[0]), args),

});
session.addProtocolHandler('vue:getImportPathForFile', ({ arguments: args }) => {
session.addProtocolHandler('_vue:getImportPathForFile', ({ arguments: args }) => {
return {

@@ -74,3 +83,3 @@ response: getImportPathForFile_1.getImportPathForFile.apply(getRequestContext(args[0]), args),

});
session.addProtocolHandler('vue:getPropertiesAtLocation', ({ arguments: args }) => {
session.addProtocolHandler('_vue:getPropertiesAtLocation', ({ arguments: args }) => {
return {

@@ -80,3 +89,3 @@ response: getPropertiesAtLocation_1.getPropertiesAtLocation.apply(getRequestContext(args[0]), args),

});
session.addProtocolHandler('vue:getComponentNames', ({ arguments: args }) => {
session.addProtocolHandler('_vue:getComponentNames', ({ arguments: args }) => {
return {

@@ -86,3 +95,3 @@ response: getComponentNames_1.getComponentNames.apply(getRequestContext(args[0]), args) ?? [],

});
session.addProtocolHandler('vue:getComponentProps', ({ arguments: args }) => {
session.addProtocolHandler('_vue:getComponentProps', ({ arguments: args }) => {
return {

@@ -92,3 +101,3 @@ response: getComponentProps_1.getComponentProps.apply(getRequestContext(args[0]), args),

});
session.addProtocolHandler('vue:getComponentEvents', ({ arguments: args }) => {
session.addProtocolHandler('_vue:getComponentEvents', ({ arguments: args }) => {
return {

@@ -98,3 +107,3 @@ response: getComponentEvents_1.getComponentEvents.apply(getRequestContext(args[0]), args),

});
session.addProtocolHandler('vue:getComponentDirectives', ({ arguments: args }) => {
session.addProtocolHandler('_vue:getComponentDirectives', ({ arguments: args }) => {
return {

@@ -104,3 +113,3 @@ response: getComponentDirectives_1.getComponentDirectives.apply(getRequestContext(args[0]), args),

});
session.addProtocolHandler('vue:getElementAttrs', ({ arguments: args }) => {
session.addProtocolHandler('_vue:getElementAttrs', ({ arguments: args }) => {
return {

@@ -110,3 +119,3 @@ response: getElementAttrs_1.getElementAttrs.apply(getRequestContext(args[0]), args),

});
session.addProtocolHandler('vue:getElementNames', ({ arguments: args }) => {
session.addProtocolHandler('_vue:getElementNames', ({ arguments: args }) => {
return {

@@ -113,0 +122,0 @@ response: getElementNames_1.getElementNames.apply(getRequestContext(args[0]), args),

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

// @ts-expect-error
const { ext, suffix, originalName, newName } = args[6]?.__isComponentAutoImport;
const { originalName, newName } = args[6].__isComponentAutoImport;
for (const codeAction of details?.codeActions ?? []) {

@@ -128,3 +128,3 @@ for (const change of codeAction.changes) {

// @ts-expect-error
const { fileName } = args[6]?.__isAutoImport;
const { fileName } = args[6].__isAutoImport;
const sourceScript = language.scripts.get(asScriptId(fileName));

@@ -289,4 +289,3 @@ if (sourceScript?.generated?.root instanceof language_core_1.VueVirtualCode) {

})) {
result.spans.push(componentSpan.start + template.startTagEnd, componentSpan.length, 256 // class
);
result.spans.push(componentSpan.start + template.startTagEnd, componentSpan.length, 256);
}

@@ -293,0 +292,0 @@ }

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

content,
deprecated
deprecated,
};

@@ -97,0 +97,0 @@ }

{
"name": "@vue/typescript-plugin",
"version": "3.0.0-beta.2",
"version": "3.0.0-beta.3",
"license": "MIT",

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

"@volar/typescript": "2.4.14",
"@vue/language-core": "3.0.0-beta.2",
"@vue/language-core": "3.0.0-beta.3",
"@vue/shared": "^3.5.0",

@@ -26,3 +26,3 @@ "path-browserify": "^1.0.1"

},
"gitHead": "ea40288f6fceebb65346732b6de5859c300cf1ee"
"gitHead": "17e3beabc13e9eb59a82fb1a9f0252fd6685e444"
}