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

@volar/language-core

Package Overview
Dependencies
Maintainers
1
Versions
234
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@volar/language-core - npm Package Compare versions

Comparing version 1.0.19 to 1.0.20

21

out/languageContext.js

@@ -73,12 +73,15 @@ Object.defineProperty(exports, "__esModule", { value: true });

getScriptKind(fileName) {
if (virtualFiles.hasSourceFile(fileName))
return ts.ScriptKind.Deferred;
switch (path_1.posix.extname(fileName)) {
case '.js': return ts.ScriptKind.JS;
case '.jsx': return ts.ScriptKind.JSX;
case '.ts': return ts.ScriptKind.TS;
case '.tsx': return ts.ScriptKind.TSX;
case '.json': return ts.ScriptKind.JSON;
default: return ts.ScriptKind.Unknown;
if (ts) {
if (virtualFiles.hasSourceFile(fileName))
return ts.ScriptKind.Deferred;
switch (path_1.posix.extname(fileName)) {
case '.js': return ts.ScriptKind.JS;
case '.jsx': return ts.ScriptKind.JSX;
case '.ts': return ts.ScriptKind.TS;
case '.tsx': return ts.ScriptKind.TSX;
case '.json': return ts.ScriptKind.JSON;
default: return ts.ScriptKind.Unknown;
}
}
return 0;
},

@@ -85,0 +88,0 @@ };

@@ -55,4 +55,4 @@ import { Mapping } from '@volar/source-map';

export interface LanguageServiceHost extends ts.LanguageServiceHost {
getTypeScriptModule(): typeof import('typescript/lib/tsserverlibrary');
getTypeScriptModule(): typeof import('typescript/lib/tsserverlibrary') | undefined;
isTsc?: boolean;
}
{
"name": "@volar/language-core",
"version": "1.0.19",
"version": "1.0.20",
"main": "out/index.js",

@@ -16,6 +16,6 @@ "license": "MIT",

"dependencies": {
"@volar/source-map": "1.0.19",
"@volar/source-map": "1.0.20",
"muggle-string": "^0.1.0"
},
"gitHead": "02267fe83a5567b1cae7025e834cf084c8248546"
"gitHead": "e00f068e812677791c93efe9cf20995764350ec6"
}
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