diff options
author | Alec Theriault <alec.theriault@gmail.com> | 2018-10-24 12:46:27 -0700 |
---|---|---|
committer | Alec Theriault <alec.theriault@gmail.com> | 2018-10-24 12:47:47 -0700 |
commit | 67a142271f6a590a4307d30ac5c5359632ff21c4 (patch) | |
tree | 34ea6774cce3cc2548b1b71be4d81276340b159d /haddock-api/resources/html/js-src | |
parent | e2cd0a8095e6fe3c5081e73beff0d2e2a1cc00f8 (diff) |
Update JS dependencies
This was done via `npm audit fix`. I think this fixes #903 along with
some more serious vulnerabilities that nobody seems to have noticed.
Diffstat (limited to 'haddock-api/resources/html/js-src')
-rw-r--r-- | haddock-api/resources/html/js-src/quick-jump.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/haddock-api/resources/html/js-src/quick-jump.tsx b/haddock-api/resources/html/js-src/quick-jump.tsx index e64dae0b..20ff8e15 100644 --- a/haddock-api/resources/html/js-src/quick-jump.tsx +++ b/haddock-api/resources/html/js-src/quick-jump.tsx @@ -78,7 +78,7 @@ type QuickJumpState = { activeLinkIndex: number moduleResults: ResultsInModule[] failedLoading?: boolean - fuse: Fuse + fuse: Fuse<DocItem> } class QuickJump extends Component<QuickJumpProps, QuickJumpState> { @@ -182,7 +182,7 @@ class QuickJump extends Component<QuickJumpProps, QuickJumpState> { updateResults() { const searchString = (this.input && this.input.value) || ''; - const results: FuseResult<DocItem>[] = this.state.fuse.search(searchString); + const results: FuseResult<DocItem>[] = this.state.fuse.search(searchString) as any as FuseResult<DocItem>[]; const resultsByModule: { [name: string]: FuseResult<DocItem>[] } = {}; |