@fimbul/wotan
Advanced tools
Comparing version 0.7.0 to 0.8.0-dev.20180410
{ | ||
"name": "@fimbul/wotan", | ||
"version": "0.7.0", | ||
"version": "0.8.0-dev.20180410", | ||
"description": "Pluggable TypeScript and JavaScript linter", | ||
@@ -48,4 +48,4 @@ "bin": "bin/main.js", | ||
"dependencies": { | ||
"@fimbul/mimir": "^0.7.0", | ||
"@fimbul/ymir": "^0.6.0", | ||
"@fimbul/mimir": "0.8.0-dev.20180410", | ||
"@fimbul/ymir": "0.6.0", | ||
"bind-decorator": "^1.0.11", | ||
@@ -52,0 +52,0 @@ "chalk": "^2.3.0", |
@@ -41,3 +41,3 @@ import * as ts from 'typescript'; | ||
getDirectories(dir: string): string[]; | ||
getSourceFile(fileName: string, languageVersion: ts.ScriptTarget): ts.SourceFile; | ||
getSourceFile(fileName: string, languageVersion: ts.ScriptTarget): ts.SourceFile | undefined; | ||
updateSourceFile(sourceFile: ts.SourceFile, program: ts.Program, newContent: string, changeRange: ts.TextChangeRange): { | ||
@@ -44,0 +44,0 @@ sourceFile: ts.SourceFile; |
@@ -118,2 +118,4 @@ "use strict"; | ||
const realFile = this.getFileSystemFile(file); | ||
if (realFile === undefined) | ||
return; | ||
let content = this.fs.readFile(realFile); | ||
@@ -158,3 +160,6 @@ const config = this.config || this.tryFindConfig(realFile); | ||
getSourceFile(fileName, languageVersion) { | ||
return utils_1.resolveCachedResult(this.sourceFileCache, fileName, () => ts.createSourceFile(fileName, this.readProcessedFile(fileName), languageVersion, true)); | ||
return utils_1.resolveCachedResult(this.sourceFileCache, fileName, () => { | ||
const content = this.readProcessedFile(fileName); | ||
return content !== undefined ? ts.createSourceFile(fileName, content, languageVersion, true) : undefined; | ||
}); | ||
} | ||
@@ -161,0 +166,0 @@ updateSourceFile(sourceFile, program, newContent, changeRange) { |
Sorry, the diff of this file is not supported yet
247167
3133
+ Added@fimbul/mimir@0.8.0-dev.20180410(transitive)
- Removed@fimbul/mimir@0.7.0(transitive)
Updated@fimbul/ymir@0.6.0