@fimbul/wotan
Advanced tools
Comparing version 0.23.0 to 0.24.0-dev.20210120
{ | ||
"name": "@fimbul/wotan", | ||
"version": "0.23.0", | ||
"version": "0.24.0-dev.20210120", | ||
"description": "Pluggable TypeScript and JavaScript linter", | ||
@@ -43,4 +43,4 @@ "bin": "bin/main.js", | ||
"dependencies": { | ||
"@fimbul/mimir": "^0.23.0", | ||
"@fimbul/ymir": "^0.22.0", | ||
"@fimbul/mimir": "0.24.0-dev.20210120", | ||
"@fimbul/ymir": "0.22.0", | ||
"bind-decorator": "^1.0.11", | ||
@@ -47,0 +47,0 @@ "chalk": "^4.0.0", |
@@ -100,5 +100,4 @@ "use strict"; | ||
getFindings(sourceFile, config, programFactory, processor, options) { | ||
if (programFactory !== undefined) | ||
// make sure that all rules get the same Program and CompilerOptions for this run | ||
programFactory = new CachedProgramFactory(programFactory); | ||
// make sure that all rules get the same Program and CompilerOptions for this run | ||
programFactory && (programFactory = new CachedProgramFactory(programFactory)); | ||
let suppressMissingTypeInfoWarning = false; | ||
@@ -181,4 +180,3 @@ log('Linting file %s', sourceFile.fileName); | ||
const getFindingFilter = () => { | ||
return findingFilter || | ||
(findingFilter = this.filterFactory.create({ sourceFile, getWrappedAst, ruleNames: rules.map((r) => r.ruleName) })); | ||
return findingFilter !== null && findingFilter !== void 0 ? findingFilter : (findingFilter = this.filterFactory.create({ sourceFile, getWrappedAst, ruleNames: rules.map((r) => r.ruleName) })); | ||
}; | ||
@@ -213,4 +211,4 @@ const addFinding = (pos, end, message, fix) => { | ||
getWrappedAst, | ||
get program() { return programFactory && programFactory.getProgram(); }, | ||
get compilerOptions() { return programFactory && programFactory.getCompilerOptions(); }, | ||
get program() { return programFactory === null || programFactory === void 0 ? void 0 : programFactory.getProgram(); }, | ||
get compilerOptions() { return programFactory === null || programFactory === void 0 ? void 0 : programFactory.getCompilerOptions(); }, | ||
sourceFile, | ||
@@ -217,0 +215,0 @@ settings, |
@@ -55,4 +55,4 @@ "use strict"; | ||
isOutputOfReferencedProject(fileName) { | ||
if (this.outputsOfReferencedProjects === undefined) | ||
this.outputsOfReferencedProjects = utils_1.flatMap(utils_1.iterateProjectReferences(this.program.getResolvedProjectReferences()), utils_1.getOutputFileNamesOfProjectReference); | ||
var _a; | ||
(_a = this.outputsOfReferencedProjects) !== null && _a !== void 0 ? _a : (this.outputsOfReferencedProjects = utils_1.flatMap(utils_1.iterateProjectReferences(this.program.getResolvedProjectReferences()), utils_1.getOutputFileNamesOfProjectReference)); | ||
return this.outputsOfReferencedProjects.includes(fileName); | ||
@@ -59,0 +59,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
336813
4206
+ Added@fimbul/mimir@0.24.0-dev.20210120(transitive)
- Removed@fimbul/mimir@0.23.0(transitive)
Updated@fimbul/ymir@0.22.0