@vue/typescript
Advanced tools
Comparing version 1.8.4 to 1.8.5
import * as vue from '@vue/language-core'; | ||
import type * as ts from 'typescript/lib/tsserverlibrary'; | ||
export { getProgram, decorateLanguageServiceHost } from '@volar/typescript'; | ||
export { getProgram, decorateLanguageServiceHost, getExternalFiles } from '@volar/typescript'; | ||
export declare function createLanguageService(host: vue.TypeScriptLanguageHost, vueCompilerOptions: Partial<vue.VueCompilerOptions>, ts: typeof import('typescript/lib/tsserverlibrary'), sys: ts.System): { | ||
@@ -5,0 +5,0 @@ __internal__: { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.decorateLanguageService = exports.createLanguageService = exports.decorateLanguageServiceHost = exports.getProgram = void 0; | ||
exports.decorateLanguageService = exports.createLanguageService = exports.getExternalFiles = exports.decorateLanguageServiceHost = exports.getProgram = void 0; | ||
const typescript_1 = require("@volar/typescript"); | ||
@@ -9,6 +9,7 @@ const vue = require("@vue/language-core"); | ||
Object.defineProperty(exports, "decorateLanguageServiceHost", { enumerable: true, get: function () { return typescript_2.decorateLanguageServiceHost; } }); | ||
Object.defineProperty(exports, "getExternalFiles", { enumerable: true, get: function () { return typescript_2.getExternalFiles; } }); | ||
function createLanguageService(host, vueCompilerOptions, ts, sys) { | ||
const languageContext = vue.createLanguageContext(host, vue.createLanguages(host.getCompilationSettings(), vueCompilerOptions, ts)); | ||
const languageServiceHost = (0, typescript_1.createLanguageServiceHost)(languageContext, ts, sys); | ||
const languageService = ts.createLanguageService(languageServiceHost, (0, typescript_1.getDocumentRegistry)(ts, sys.useCaseSensitiveFileNames, host.getCurrentDirectory())); | ||
const languageService = ts.createLanguageService(languageServiceHost, (0, typescript_1.getDocumentRegistry)(ts, sys.useCaseSensitiveFileNames, host.workspacePath)); | ||
decorateLanguageService(languageContext.virtualFiles, languageService, false); | ||
@@ -15,0 +16,0 @@ return { |
{ | ||
"name": "@vue/typescript", | ||
"version": "1.8.4", | ||
"version": "1.8.5", | ||
"main": "out/index.js", | ||
@@ -16,6 +16,6 @@ "license": "MIT", | ||
"dependencies": { | ||
"@volar/typescript": "~1.8.0", | ||
"@vue/language-core": "1.8.4" | ||
"@volar/typescript": "~1.9.0", | ||
"@vue/language-core": "1.8.5" | ||
}, | ||
"gitHead": "a62aa882911de149ae65f4c28eddfd93e1dee99d" | ||
"gitHead": "971820b55ea42cb7e8c8ba7c35c8998d5572b420" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
13385
121
+ Added@volar/language-core@1.9.2(transitive)
+ Added@volar/source-map@1.9.2(transitive)
+ Added@volar/typescript@1.9.2(transitive)
+ Added@vue/language-core@1.8.5(transitive)
- Removed@volar/language-core@1.8.3(transitive)
- Removed@volar/source-map@1.8.3(transitive)
- Removed@volar/typescript@1.8.3(transitive)
- Removed@vue/language-core@1.8.4(transitive)
Updated@volar/typescript@~1.9.0
Updated@vue/language-core@1.8.5