New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@vue/typescript-plugin

Package Overview
Dependencies
Maintainers
0
Versions
38
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 2.0.21 to 2.0.22

19

lib/client.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getElementAttrs = exports.getComponentNames = exports.getTemplateContextProps = exports.getComponentEvents = exports.getComponentProps = exports.getQuickInfoAtPosition = exports.getPropertiesAtLocation = exports.getImportPathForFile = exports.collectExtractProps = void 0;
exports.collectExtractProps = collectExtractProps;
exports.getImportPathForFile = getImportPathForFile;
exports.getPropertiesAtLocation = getPropertiesAtLocation;
exports.getQuickInfoAtPosition = getQuickInfoAtPosition;
exports.getComponentProps = getComponentProps;
exports.getComponentEvents = getComponentEvents;
exports.getTemplateContextProps = getTemplateContextProps;
exports.getComponentNames = getComponentNames;
exports.getElementAttrs = getElementAttrs;
const utils_1 = require("./utils");

@@ -11,3 +19,2 @@ function collectExtractProps(...args) {

}
exports.collectExtractProps = collectExtractProps;
async function getImportPathForFile(...args) {

@@ -19,3 +26,2 @@ return await sendRequest({

}
exports.getImportPathForFile = getImportPathForFile;
async function getPropertiesAtLocation(...args) {

@@ -27,3 +33,2 @@ return await sendRequest({

}
exports.getPropertiesAtLocation = getPropertiesAtLocation;
function getQuickInfoAtPosition(...args) {

@@ -35,3 +40,2 @@ return sendRequest({

}
exports.getQuickInfoAtPosition = getQuickInfoAtPosition;
// Component Infos

@@ -44,3 +48,2 @@ function getComponentProps(...args) {

}
exports.getComponentProps = getComponentProps;
function getComponentEvents(...args) {

@@ -52,3 +55,2 @@ return sendRequest({

}
exports.getComponentEvents = getComponentEvents;
function getTemplateContextProps(...args) {

@@ -60,3 +62,2 @@ return sendRequest({

}
exports.getTemplateContextProps = getTemplateContextProps;
function getComponentNames(...args) {

@@ -68,3 +69,2 @@ return sendRequest({

}
exports.getComponentNames = getComponentNames;
function getElementAttrs(...args) {

@@ -76,3 +76,2 @@ return sendRequest({

}
exports.getElementAttrs = getElementAttrs;
async function sendRequest(request) {

@@ -79,0 +78,0 @@ const server = (await (0, utils_1.searchNamedPipeServerForFile)(request.args[0]))?.server;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getComponentSpans = exports.decorateLanguageServiceForVue = void 0;
exports.decorateLanguageServiceForVue = decorateLanguageServiceForVue;
exports.getComponentSpans = getComponentSpans;
const vue = require("@vue/language-core");

@@ -150,3 +151,2 @@ const shared_1 = require("@vue/shared");

}
exports.decorateLanguageServiceForVue = decorateLanguageServiceForVue;
function getComponentSpans(vueCode, template, spanTemplateRange) {

@@ -185,3 +185,2 @@ const { typescript: ts, languageService } = this;

}
exports.getComponentSpans = getComponentSpans;
//# sourceMappingURL=common.js.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.collectExtractProps = void 0;
exports.collectExtractProps = collectExtractProps;
const language_core_1 = require("@vue/language-core");

@@ -19,3 +19,3 @@ function collectExtractProps(fileName, templateCodeRange) {

const script = volarFile.generated?.languagePlugin.typescript?.getServiceScript(volarFile.generated.root);
const maps = script ? [...language.maps.forEach(script.code)].map(([_1, _2, map]) => map) : [];
const maps = script ? [...language.maps.forEach(script.code)].map(([_sourceScript, map]) => map) : [];
const sfc = volarFile.generated.root.sfc;

@@ -30,3 +30,3 @@ sourceFile.forEachChild(function visit(node) {

let mapped = false;
for (const source of map.getSourceOffsets(name.getEnd() - (isTsPlugin ? volarFile.snapshot.getLength() : 0))) {
for (const source of map.toSourceLocation(name.getEnd() - (isTsPlugin ? volarFile.snapshot.getLength() : 0))) {
if (source[0] >= sfc.template.startTagEnd + templateCodeRange[0]

@@ -61,3 +61,2 @@ && source[0] <= sfc.template.startTagEnd + templateCodeRange[1]

}
exports.collectExtractProps = collectExtractProps;
//# sourceMappingURL=collectExtractProps.js.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getElementAttrs = exports._getComponentNames = exports.getComponentNames = exports.getTemplateContextProps = exports.getComponentEvents = exports.getComponentProps = void 0;
exports.getComponentProps = getComponentProps;
exports.getComponentEvents = getComponentEvents;
exports.getTemplateContextProps = getTemplateContextProps;
exports.getComponentNames = getComponentNames;
exports._getComponentNames = _getComponentNames;
exports.getElementAttrs = getElementAttrs;
const vue = require("@vue/language-core");

@@ -72,3 +77,2 @@ const shared_1 = require("@vue/shared");

}
exports.getComponentProps = getComponentProps;
function getComponentEvents(fileName, tag) {

@@ -134,3 +138,2 @@ const { typescript: ts, language, languageService, getFileId } = this;

}
exports.getComponentEvents = getComponentEvents;
function getTemplateContextProps(fileName) {

@@ -148,3 +151,2 @@ const { typescript: ts, language, languageService, getFileId } = this;

}
exports.getTemplateContextProps = getTemplateContextProps;
function getComponentNames(fileName) {

@@ -164,3 +166,2 @@ const { typescript: ts, language, languageService, getFileId } = this;

}
exports.getComponentNames = getComponentNames;
function _getComponentNames(ts, tsLs, vueCode) {

@@ -174,3 +175,2 @@ return getVariableType(ts, tsLs, vueCode, '__VLS_components')

}
exports._getComponentNames = _getComponentNames;
function getElementAttrs(fileName, tagName) {

@@ -201,3 +201,2 @@ const { typescript: ts, language, languageService, getFileId } = this;

}
exports.getElementAttrs = getElementAttrs;
function getVariableType(ts, tsLs, vueCode, name) {

@@ -204,0 +203,0 @@ const program = tsLs.getCurrentProgram();

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getImportPathForFile = void 0;
exports.getImportPathForFile = getImportPathForFile;
function getImportPathForFile(fileName, incomingFileName, preferences) {

@@ -19,3 +19,2 @@ const { typescript: ts, languageService, languageServiceHost } = this;

}
exports.getImportPathForFile = getImportPathForFile;
//# sourceMappingURL=getImportPathForFile.js.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getPropertiesAtLocation = void 0;
exports.getPropertiesAtLocation = getPropertiesAtLocation;
const language_core_1 = require("@vue/language-core");

@@ -15,4 +15,4 @@ function getPropertiesAtLocation(fileName, position) {

let mapped = false;
for (const [_1, _2, map] of language.maps.forEach(virtualScript.code)) {
for (const [position2, mapping] of map.getGeneratedOffsets(position)) {
for (const [_sourceScript, map] of language.maps.forEach(virtualScript.code)) {
for (const [position2, mapping] of map.toGeneratedLocation(position)) {
if ((0, language_core_1.isCompletionEnabled)(mapping.data)) {

@@ -66,3 +66,2 @@ position = position2;

}
exports.getPropertiesAtLocation = getPropertiesAtLocation;
//# sourceMappingURL=getPropertiesAtLocation.js.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getQuickInfoAtPosition = void 0;
exports.getQuickInfoAtPosition = getQuickInfoAtPosition;
function getQuickInfoAtPosition(fileName, position) {

@@ -8,3 +8,2 @@ const { languageService } = this;

}
exports.getQuickInfoAtPosition = getQuickInfoAtPosition;
//# sourceMappingURL=getQuickInfoAtPosition.js.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.projects = exports.startNamedPipeServer = void 0;
exports.projects = void 0;
exports.startNamedPipeServer = startNamedPipeServer;
const fs = require("fs");

@@ -106,3 +107,2 @@ const net = require("net");

}
exports.startNamedPipeServer = startNamedPipeServer;
function cleanupPipeTable() {

@@ -109,0 +109,0 @@ for (const server of (0, utils_1.readPipeTable)()) {

@@ -1,2 +0,1 @@

/// <reference types="node" />
import * as net from 'net';

@@ -3,0 +2,0 @@ import type * as ts from 'typescript';

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.sendRequestWorker = exports.searchNamedPipeServerForFile = exports.connect = exports.updatePipeTable = exports.readPipeTable = void 0;
exports.readPipeTable = readPipeTable;
exports.updatePipeTable = updatePipeTable;
exports.connect = connect;
exports.searchNamedPipeServerForFile = searchNamedPipeServerForFile;
exports.sendRequestWorker = sendRequestWorker;
const os = require("os");

@@ -8,3 +12,2 @@ const net = require("net");

const fs = require("fs");
var typescript_1 = require("@volar/typescript");
const { version } = require('../package.json');

@@ -25,3 +28,2 @@ const pipeTableFile = path.join(os.tmpdir(), `vue-tsp-table-${version}.json`);

}
exports.readPipeTable = readPipeTable;
function updatePipeTable(servers) {

@@ -35,3 +37,2 @@ if (servers.length === 0) {

}
exports.updatePipeTable = updatePipeTable;
function connect(path) {

@@ -52,3 +53,2 @@ return new Promise(resolve => {

}
exports.connect = connect;
async function searchNamedPipeServerForFile(fileName) {

@@ -85,3 +85,2 @@ const servers = readPipeTable();

}
exports.searchNamedPipeServerForFile = searchNamedPipeServerForFile;
function sortTSConfigs(file, a, b) {

@@ -140,3 +139,2 @@ const inA = isFileInDir(file, path.dirname(a));

}
exports.sendRequestWorker = sendRequestWorker;
//# sourceMappingURL=utils.js.map
{
"name": "@vue/typescript-plugin",
"version": "2.0.21",
"version": "2.0.22",
"license": "MIT",

@@ -15,4 +15,4 @@ "files": [

"dependencies": {
"@volar/typescript": "~2.3.0-alpha.15",
"@vue/language-core": "2.0.21",
"@volar/typescript": "~2.3.1",
"@vue/language-core": "2.0.22",
"@vue/shared": "^3.4.0"

@@ -23,3 +23,3 @@ },

},
"gitHead": "a5af80e3939a39694abd9dd09a5496bc5fbf6e06"
"gitHead": "884c8a553d4fd240167fcb97c6a738564f9d697a"
}
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