Update dependency fuse.js to v7 (#18462)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Bram Kragten <mail@bramkragten.nl>
This commit is contained in:
parent
42be3b331c
commit
37ab5cbdc3
|
@ -1,8 +1,9 @@
|
|||
import Fuse from "fuse.js";
|
||||
import type { IFuseOptions } from "fuse.js";
|
||||
import { StoreAddon } from "../../../src/data/supervisor/store";
|
||||
|
||||
export function filterAndSort(addons: StoreAddon[], filter: string) {
|
||||
const options: Fuse.IFuseOptions<StoreAddon> = {
|
||||
const options: IFuseOptions<StoreAddon> = {
|
||||
keys: ["name", "description", "slug"],
|
||||
isCaseSensitive: false,
|
||||
minMatchCharLength: 2,
|
||||
|
|
|
@ -111,7 +111,7 @@
|
|||
"date-fns-tz": "2.0.0",
|
||||
"deep-clone-simple": "1.1.1",
|
||||
"deep-freeze": "0.0.1",
|
||||
"fuse.js": "6.6.2",
|
||||
"fuse.js": "7.0.0",
|
||||
"google-timezones-json": "1.2.0",
|
||||
"hls.js": "1.4.12",
|
||||
"home-assistant-js-websocket": "9.1.0",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import "@material/mwc-button";
|
||||
import "@material/mwc-list/mwc-list";
|
||||
import Fuse from "fuse.js";
|
||||
import Fuse, { IFuseOptions } from "fuse.js";
|
||||
import { HassConfig } from "home-assistant-js-websocket";
|
||||
import {
|
||||
css,
|
||||
|
@ -239,7 +239,7 @@ class AddIntegrationDialog extends LitElement {
|
|||
});
|
||||
|
||||
if (filter) {
|
||||
const options: Fuse.IFuseOptions<IntegrationListItem> = {
|
||||
const options: IFuseOptions<IntegrationListItem> = {
|
||||
keys: [
|
||||
{ name: "name", weight: 5 },
|
||||
{ name: "domain", weight: 5 },
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
import { ActionDetail } from "@material/mwc-list";
|
||||
import { mdiFilterVariant, mdiPlus } from "@mdi/js";
|
||||
import Fuse from "fuse.js";
|
||||
import type { IFuseOptions } from "fuse.js";
|
||||
import type { UnsubscribeFunc } from "home-assistant-js-websocket";
|
||||
import {
|
||||
css,
|
||||
|
@ -157,7 +158,7 @@ class HaConfigIntegrationsDashboard extends SubscribeMixin(LitElement) {
|
|||
const disabled: ConfigEntryExtended[] = [];
|
||||
const integrations: ConfigEntryExtended[] = [];
|
||||
if (filter) {
|
||||
const options: Fuse.IFuseOptions<ConfigEntryExtended> = {
|
||||
const options: IFuseOptions<ConfigEntryExtended> = {
|
||||
keys: ["domain", "localized_domain_name", "title"],
|
||||
isCaseSensitive: false,
|
||||
minMatchCharLength: 2,
|
||||
|
@ -201,7 +202,7 @@ class HaConfigIntegrationsDashboard extends SubscribeMixin(LitElement) {
|
|||
): DataEntryFlowProgressExtended[] => {
|
||||
let filteredEntries: DataEntryFlowProgressExtended[];
|
||||
if (filter) {
|
||||
const options: Fuse.IFuseOptions<DataEntryFlowProgressExtended> = {
|
||||
const options: IFuseOptions<DataEntryFlowProgressExtended> = {
|
||||
keys: ["handler", "localized_title"],
|
||||
isCaseSensitive: false,
|
||||
minMatchCharLength: 2,
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import Fuse from "fuse.js";
|
||||
import Fuse, { IFuseOptions } from "fuse.js";
|
||||
import {
|
||||
css,
|
||||
CSSResultGroup,
|
||||
|
@ -80,7 +80,7 @@ export class HuiCardPicker extends LitElement {
|
|||
let cards = cardElements.map(
|
||||
(cardElement: CardElement) => cardElement.card
|
||||
);
|
||||
const options: Fuse.IFuseOptions<Card> = {
|
||||
const options: IFuseOptions<Card> = {
|
||||
keys: ["type", "name", "description"],
|
||||
isCaseSensitive: false,
|
||||
minMatchCharLength: 2,
|
||||
|
|
10
yarn.lock
10
yarn.lock
|
@ -9025,10 +9025,10 @@ __metadata:
|
|||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"fuse.js@npm:6.6.2":
|
||||
version: 6.6.2
|
||||
resolution: "fuse.js@npm:6.6.2"
|
||||
checksum: 17ae758ce205276ebd88bd9c9f088a100be0b4896abac9f6b09847151269d1690f41d7f98ff5813d4a58973162dbd99d0072ce807020fee6f9de60170f6b08eb
|
||||
"fuse.js@npm:7.0.0":
|
||||
version: 7.0.0
|
||||
resolution: "fuse.js@npm:7.0.0"
|
||||
checksum: d15750efec1808370c0cae92ec9473aa7261c59bca1f15f1cf60039ba6f804b8f95340b5cabd83a4ef55839c1034764856e0128e443921f072aa0d8a20e4cacf
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
|
@ -9772,7 +9772,7 @@ __metadata:
|
|||
esprima: 4.0.1
|
||||
fancy-log: 2.0.0
|
||||
fs-extra: 11.1.1
|
||||
fuse.js: 6.6.2
|
||||
fuse.js: 7.0.0
|
||||
glob: 10.3.10
|
||||
google-timezones-json: 1.2.0
|
||||
gulp: 4.0.2
|
||||
|
|
Loading…
Reference in New Issue