Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@volar/typescript

Package Overview
Dependencies
Maintainers
1
Versions
222
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@volar/typescript - npm Package Compare versions

Comparing version 1.0.24 to 1.1.0-alpha.0

12

out/index.js

@@ -6,4 +6,8 @@ Object.defineProperty(exports, "__esModule", { value: true });

function createLanguageService(host, mods) {
var _a;
const core = embedded.createLanguageContext(host, mods);
const ts = host.getTypeScriptModule();
const ts = (_a = host.getTypeScriptModule) === null || _a === void 0 ? void 0 : _a.call(host);
if (!ts) {
throw new Error('TypeScript module not provided.');
}
const ls = ts.createLanguageService(core.typescript.languageServiceHost);

@@ -50,5 +54,5 @@ return new Proxy({

if (file) {
embedded.forEachEmbeddedFile(file, embedded => {
if (embedded.kind && embedded.capabilities.codeAction) {
edits = edits.concat(ls.organizeImports(Object.assign(Object.assign({}, args), { fileName: embedded.fileName }), formatOptions, preferences));
embedded.forEachEmbeddedFile(file, embeddedFile => {
if (embeddedFile.kind === embedded.FileKind.TypeScriptHostFile && embeddedFile.capabilities.codeAction) {
edits = edits.concat(ls.organizeImports(Object.assign(Object.assign({}, args), { fileName: embeddedFile.fileName }), formatOptions, preferences));
}

@@ -55,0 +59,0 @@ });

{
"name": "@volar/typescript",
"version": "1.0.24",
"version": "1.1.0-alpha.0",
"main": "out/index.js",

@@ -12,9 +12,9 @@ "license": "MIT",

"type": "git",
"url": "https://github.com/johnsoncodehk/volar.git",
"url": "https://github.com/volarjs/framework.git",
"directory": "packages/typescript"
},
"dependencies": {
"@volar/language-core": "1.0.24"
"@volar/language-core": "1.1.0-alpha.0"
},
"gitHead": "46da609e8914e29642f4707dec31507ad51b03fc"
"gitHead": "1cb85f17f5b90e40633e26710be7ecd4fd2994fb"
}
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