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 2.0.2 to 2.0.3

9

lib/protocol/createProject.js

@@ -65,4 +65,5 @@ "use strict";

fileExists(fileName) {
if (extraFileExtension && fileName.endsWith('.d.ts')) {
const patchResult = languageServiceHost.fileExists(fileName.slice(0, -5));
if (extraFileExtension && fileName.endsWith(`.d.${extraFileExtension}.ts`)) {
const patchResult = languageServiceHost.fileExists(fileName.slice(0, -`.d.${extraFileExtension}.ts`.length)
+ `.${extraFileExtension}`);
if (patchResult) {

@@ -77,3 +78,5 @@ isPatchResult = true;

if (isPatchResult && result.resolvedModule) {
result.resolvedModule.resolvedFileName = result.resolvedModule.resolvedFileName.slice(0, -5);
result.resolvedModule.resolvedFileName = result.resolvedModule.resolvedFileName
.slice(0, -`.d.${extraFileExtension}.ts`.length)
+ `.${extraFileExtension}`;
const sourceFile = files.get(fileNameToFileId(result.resolvedModule.resolvedFileName));

@@ -80,0 +83,0 @@ if (sourceFile?.generated) {

{
"name": "@volar/typescript",
"version": "2.0.2",
"version": "2.0.3",
"license": "MIT",

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

"dependencies": {
"@volar/language-core": "2.0.2",
"@volar/language-core": "2.0.3",
"path-browserify": "^1.0.1"

@@ -22,5 +22,5 @@ },

"@types/path-browserify": "latest",
"@volar/language-service": "2.0.2"
"@volar/language-service": "2.0.3"
},
"gitHead": "ae8bccc570e6ee752693b1bfd9e815668b5f32b9"
"gitHead": "d8a6dc056d37779ff6486f545f45bc57b22c02e4"
}
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