-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(vulnerability): issue with xml2js #25
- Loading branch information
1 parent
521eead
commit b0fb0e1
Showing
6 changed files
with
1,131 additions
and
1,029 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,12 @@ | ||
import { BlameResult } from './blame-result.interface'; | ||
import { git } from './vcs/git'; | ||
import { svn } from './vcs/svn'; | ||
|
||
type VCSType = 'git' | 'svn'; | ||
|
||
export class Blamer { | ||
private readonly type: VCSType = 'git'; | ||
|
||
constructor(type: VCSType = 'git') { | ||
this.type = type; | ||
} | ||
|
||
public async blameByFile(path: string): Promise<BlameResult> { | ||
return this.getVCSBlamer()(path); | ||
} | ||
|
||
private getVCSBlamer(): (path: string) => {} { | ||
if (this.type === 'svn') { | ||
return svn; | ||
} | ||
return git; | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.