diff --git a/web/package-lock.json b/web/package-lock.json index a6f781f48..a0975344a 100644 --- a/web/package-lock.json +++ b/web/package-lock.json @@ -34,7 +34,7 @@ "construct-style-sheets-polyfill": "^3.1.0", "core-js": "^3.33.1", "country-flag-icons": "^1.5.7", - "fuse.js": "^6.6.2", + "fuse.js": "^7.0.0", "lit": "^2.8.0", "mermaid": "^10.6.0", "rapidoc": "^9.3.4", @@ -14493,9 +14493,9 @@ } }, "node_modules/fuse.js": { - "version": "6.6.2", - "resolved": "https://registry.npmjs.org/fuse.js/-/fuse.js-6.6.2.tgz", - "integrity": "sha512-cJaJkxCCxC8qIIcPBF9yGxY0W/tVZS3uEISDxhYIdtk8OL93pe+6Zj7LjCqVV4dzbqcriOZ+kQ/NE4RXZHsIGA==", + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/fuse.js/-/fuse.js-7.0.0.tgz", + "integrity": "sha512-14F4hBIxqKvD4Zz/XjDc3y94mNZN6pRv3U13Udo0lNLCWRBUsrMv2xwcF/y/Z5sV6+FQW+/ow68cHpm4sunt8Q==", "engines": { "node": ">=10" } diff --git a/web/package.json b/web/package.json index 0711fd536..f74aeca54 100644 --- a/web/package.json +++ b/web/package.json @@ -55,7 +55,7 @@ "construct-style-sheets-polyfill": "^3.1.0", "core-js": "^3.33.1", "country-flag-icons": "^1.5.7", - "fuse.js": "^6.6.2", + "fuse.js": "^7.0.0", "lit": "^2.8.0", "mermaid": "^10.6.0", "rapidoc": "^9.3.4", diff --git a/web/src/user/LibraryPage/ApplicationSearch.ts b/web/src/user/LibraryPage/ApplicationSearch.ts index 8f732eaf7..07fca5d47 100644 --- a/web/src/user/LibraryPage/ApplicationSearch.ts +++ b/web/src/user/LibraryPage/ApplicationSearch.ts @@ -1,6 +1,7 @@ import { AKElement } from "@goauthentik/elements/Base"; import { getURLParam, updateURLParams } from "@goauthentik/elements/router/RouteMatch"; import Fuse from "fuse.js"; +import { FuseResult } from "fuse.js"; import { msg } from "@lit/localize"; import { css, html } from "lit"; @@ -66,7 +67,7 @@ export class LibraryPageApplicationList extends AKElement { }); } - onSelected(apps: Fuse.FuseResult[]) { + onSelected(apps: FuseResult[]) { this.dispatchEvent( customEvent(SEARCH_UPDATED, { apps: apps.map((app) => app.item),