@volar/typescript
Advanced tools
@@ -33,9 +33,6 @@ "use strict"; | ||
| const resolveModuleName = (0, resolveModuleName_1.createResolveModuleName)(ts, ts.sys.getFileSize, languageServiceHost, language.plugins, fileName => language.scripts.get(fileName)); | ||
| const getCanonicalFileName = languageServiceHost.useCaseSensitiveFileNames?.() | ||
| ? (fileName) => fileName | ||
| : (fileName) => fileName.toLowerCase(); | ||
| const moduleResolutionCache = ts.createModuleResolutionCache(languageServiceHost.getCurrentDirectory(), getCanonicalFileName, languageServiceHost.getCompilationSettings()); | ||
| const moduleResolutionCache = languageServiceHost.getModuleResolutionCache?.(); | ||
| if (resolveModuleNameLiterals) { | ||
| languageServiceHost.resolveModuleNameLiterals = (moduleLiterals, containingFile, redirectedReference, options, containingSourceFile, ...rest) => { | ||
| const disposeFixup = (0, utils_1.fixupImpliedNodeFormatForFile)(ts, pluginExtensions, containingSourceFile, moduleResolutionCache.getPackageJsonInfoCache(), languageServiceHost, options); | ||
| const disposeFixup = (0, utils_1.fixupImpliedNodeFormatForFile)(ts, pluginExtensions, containingSourceFile, moduleResolutionCache?.getPackageJsonInfoCache(), languageServiceHost, options); | ||
| try { | ||
@@ -42,0 +39,0 @@ if (moduleLiterals.every(name => !pluginExtensions.some(ext => name.text.endsWith(ext)))) { |
@@ -5,2 +5,2 @@ import type { Language, SourceScript } from '@volar/language-core'; | ||
| export declare function getServiceScript(language: Language<string>, fileName: string): [serviceScript: TypeScriptServiceScript, targetScript: SourceScript<string>, sourceScript: SourceScript<string>] | [serviceScript: undefined, sourceScript: SourceScript<string>, sourceScript: SourceScript<string>] | [serviceScript: undefined, sourceScript: undefined, targetScript: undefined]; | ||
| export declare function fixupImpliedNodeFormatForFile(ts: typeof import('typescript'), pluginExtensions: string[], sourceFile: ts.SourceFile, packageJsonInfoCache: ts.PackageJsonInfoCache, host: ts.ModuleResolutionHost, options: ts.CompilerOptions): (() => undefined) | undefined; | ||
| export declare function fixupImpliedNodeFormatForFile(ts: typeof import('typescript'), pluginExtensions: string[], sourceFile: ts.SourceFile, packageJsonInfoCache: ts.PackageJsonInfoCache | undefined, host: ts.ModuleResolutionHost, options: ts.CompilerOptions): (() => undefined) | undefined; |
+4
-5
| { | ||
| "name": "@volar/typescript", | ||
| "version": "2.4.26", | ||
| "version": "2.4.27", | ||
| "license": "MIT", | ||
@@ -15,3 +15,3 @@ "files": [ | ||
| "dependencies": { | ||
| "@volar/language-core": "2.4.26", | ||
| "@volar/language-core": "2.4.27", | ||
| "path-browserify": "^1.0.1", | ||
@@ -22,5 +22,4 @@ "vscode-uri": "^3.0.8" | ||
| "@types/path-browserify": "latest", | ||
| "@volar/language-service": "2.4.26" | ||
| }, | ||
| "gitHead": "4a9d25d797d08d9c149bebf0f52ac5e172f4757d" | ||
| "@volar/language-service": "2.4.27" | ||
| } | ||
| } |
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
216301
-0.14%4626
-0.06%+ Added
+ Added
- Removed
- Removed
Updated