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

@vue/language-service

Package Overview
Dependencies
Maintainers
1
Versions
83
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 1.8.22 to 1.8.24

out/ideFeatures/dragImport.d.ts

1

out/index.d.ts
export * from '@volar/language-service';
export * from '@vue/language-core';
export * from './ideFeatures/nameCasing';
export * from './ideFeatures/dragImport';
export * from './languageService';

@@ -5,0 +6,0 @@ export { TagNameCasing, AttrNameCasing } from './types';

@@ -21,2 +21,3 @@ "use strict";

__exportStar(require("./ideFeatures/nameCasing"), exports);
__exportStar(require("./ideFeatures/dragImport"), exports);
__exportStar(require("./languageService"), exports);

@@ -23,0 +24,0 @@ var types_1 = require("./types");

2

out/languageService.d.ts

@@ -8,3 +8,3 @@ import { Config } from '@volar/language-service';

}
export declare function resolveConfig(config: Config, compilerOptions?: ts.CompilerOptions, vueCompilerOptions?: Partial<VueCompilerOptions>, ts?: typeof import('typescript/lib/tsserverlibrary'), codegenStack?: boolean): Config;
export declare function resolveConfig(ts: typeof import('typescript/lib/tsserverlibrary'), config: Config, compilerOptions?: ts.CompilerOptions, vueCompilerOptions?: Partial<VueCompilerOptions>, codegenStack?: boolean): Config;
//# sourceMappingURL=languageService.d.ts.map

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

const VisualizeHiddenCallbackParamService = require("./plugins/vue-visualize-hidden-callback-param");
function resolveConfig(config, compilerOptions = {}, vueCompilerOptions = {}, ts = require('typescript'), codegenStack = false) {
function resolveConfig(ts, config, compilerOptions = {}, vueCompilerOptions = {}, codegenStack = false) {
const resolvedVueCompilerOptions = (0, language_core_1.resolveVueCompilerOptions)(vueCompilerOptions);
const vueLanguageModules = (0, language_core_1.createLanguages)(compilerOptions, resolvedVueCompilerOptions, ts, codegenStack);
const vueLanguageModules = (0, language_core_1.createLanguages)(ts, compilerOptions, resolvedVueCompilerOptions, codegenStack);
config.languages = Object.assign({}, vueLanguageModules, config.languages);

@@ -34,0 +34,0 @@ config.services = resolvePlugins(config.services, resolvedVueCompilerOptions);

import { Service } from '@volar/language-service';
import type * as ts from 'typescript/lib/tsserverlibrary';
export declare const create: () => Service;
export declare function getLastImportNode(ts: typeof import('typescript/lib/tsserverlibrary'), sourceFile: ts.SourceFile): ts.Node | undefined;
export declare function createAddComponentToOptionEdit(ts: typeof import('typescript/lib/tsserverlibrary'), ast: ts.SourceFile, componentName: string): {

@@ -5,0 +6,0 @@ range: import("@vue/language-core").TextRange;

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

@@ -59,3 +59,3 @@ const unicodeReg = /\\u/g;

const newUri = document.uri.substring(0, document.uri.lastIndexOf('/') + 1) + `${newName}.vue`;
const lastImportNode = getLastImportNode(script.ast);
const lastImportNode = getLastImportNode(ts, script.ast);
let newFileTags = [];

@@ -135,14 +135,2 @@ newFileTags.push(constructTag('template', [], initialIndentSetting.html, sfc.template.content.substring(templateCodeRange[0], templateCodeRange[1])));

};
function getLastImportNode(sourceFile) {
let lastImportNode;
for (const statement of sourceFile.statements) {
if (ts.isImportDeclaration(statement)) {
lastImportNode = statement;
}
else {
break;
}
}
return lastImportNode;
}
function collectExtractProps() {

@@ -258,2 +246,15 @@ const result = new Map();

}
function getLastImportNode(ts, sourceFile) {
let lastImportNode;
for (const statement of sourceFile.statements) {
if (ts.isImportDeclaration(statement)) {
lastImportNode = statement;
}
else {
break;
}
}
return lastImportNode;
}
exports.getLastImportNode = getLastImportNode;
function createAddComponentToOptionEdit(ts, ast, componentName) {

@@ -260,0 +261,0 @@ const exportDefault = language_core_1.scriptRanges.parseScriptRanges(ts, ast, false, true).exportDefault;

@@ -9,4 +9,4 @@ export declare enum TagNameCasing {

}
export * from '@volar/language-service/out/types';
export * from '@volar/language-service/lib/types';
export * from '@vue/language-core/out/types';
//# sourceMappingURL=types.d.ts.map

@@ -29,4 +29,4 @@ "use strict";

// only export types of depend packages
__exportStar(require("@volar/language-service/out/types"), exports);
__exportStar(require("@volar/language-service/lib/types"), exports);
__exportStar(require("@vue/language-core/out/types"), exports);
//# sourceMappingURL=types.js.map
{
"name": "@vue/language-service",
"version": "1.8.22",
"version": "1.8.24",
"main": "out/index.js",

@@ -20,17 +20,18 @@ "license": "MIT",

"dependencies": {
"@volar/language-core": "~1.10.5",
"@volar/language-service": "~1.10.5",
"@volar/typescript": "~1.10.5",
"@volar/language-core": "~1.11.1",
"@volar/language-service": "~1.11.1",
"@volar/typescript": "~1.11.1",
"@vue/compiler-dom": "^3.3.0",
"@vue/language-core": "1.8.22",
"@vue/language-core": "1.8.24",
"@vue/shared": "^3.3.0",
"computeds": "^0.0.1",
"volar-service-css": "0.0.15",
"volar-service-emmet": "0.0.15",
"volar-service-html": "0.0.15",
"volar-service-json": "0.0.15",
"volar-service-pug": "0.0.15",
"volar-service-pug-beautify": "0.0.15",
"volar-service-typescript": "0.0.15",
"volar-service-typescript-twoslash-queries": "0.0.15",
"path-browserify": "^1.0.1",
"volar-service-css": "0.0.17",
"volar-service-emmet": "0.0.17",
"volar-service-html": "0.0.17",
"volar-service-json": "0.0.17",
"volar-service-pug": "0.0.17",
"volar-service-pug-beautify": "0.0.17",
"volar-service-typescript": "0.0.17",
"volar-service-typescript-twoslash-queries": "0.0.17",
"vscode-html-languageservice": "^5.1.0",

@@ -40,7 +41,9 @@ "vscode-languageserver-textdocument": "^1.0.11"

"devDependencies": {
"@volar/kit": "~1.10.5",
"@types/node": "latest",
"@types/path-browserify": "latest",
"@volar/kit": "~1.11.1",
"vscode-languageserver-protocol": "^3.17.5",
"vscode-uri": "^3.0.8"
},
"gitHead": "1e8d09af0282c42dd816671ffcd5a2321276e3c3"
"gitHead": "6f850196d6b9cd1bee62104d3d92867cf0b6777e"
}

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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