From 67a142271f6a590a4307d30ac5c5359632ff21c4 Mon Sep 17 00:00:00 2001 From: Alec Theriault Date: Wed, 24 Oct 2018 12:46:27 -0700 Subject: 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. --- haddock-api/resources/html/js-src/quick-jump.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'haddock-api/resources/html/js-src') 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 } class QuickJump extends Component { @@ -182,7 +182,7 @@ class QuickJump extends Component { updateResults() { const searchString = (this.input && this.input.value) || ''; - const results: FuseResult[] = this.state.fuse.search(searchString); + const results: FuseResult[] = this.state.fuse.search(searchString) as any as FuseResult[]; const resultsByModule: { [name: string]: FuseResult[] } = {}; -- cgit v1.2.3