mirror of
https://github.com/vale981/tridactyl
synced 2025-03-05 09:31:41 -05:00
Merge branch 'dependabot/npm_and_yarn/fuse.js-6.0.0'
This commit is contained in:
commit
caf38436b6
4 changed files with 9 additions and 10 deletions
|
@ -9,7 +9,7 @@
|
|||
"csp-serdes": "github:cmcaine/csp-serdes",
|
||||
"css": "^2.2.4",
|
||||
"flyd": "^0.2.8",
|
||||
"fuse.js": "^3.6.1",
|
||||
"fuse.js": "^6.0.0",
|
||||
"immer": "^6.0.3",
|
||||
"mark.js": "^8.11.1",
|
||||
"mithril": "^2.0.4",
|
||||
|
|
|
@ -10,7 +10,7 @@ Concrete completion classes have been moved to src/completions/.
|
|||
|
||||
*/
|
||||
|
||||
import * as Fuse from "fuse.js"
|
||||
import Fuse from "fuse.js"
|
||||
import { enumerate } from "@src/lib/itertools"
|
||||
import { toNumber } from "@src/lib/convert"
|
||||
import * as aliases from "@src/lib/aliases"
|
||||
|
@ -151,10 +151,9 @@ export abstract class CompletionSourceFuse extends CompletionSource {
|
|||
public node
|
||||
public options: CompletionOptionFuse[]
|
||||
|
||||
fuseOptions: Fuse.FuseOptions<any> = {
|
||||
fuseOptions = {
|
||||
keys: ["fuseKeys"],
|
||||
shouldSort: true,
|
||||
id: "index",
|
||||
includeScore: true,
|
||||
}
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { browserBg } from "@src/lib/webext"
|
||||
import * as Fuse from "fuse.js"
|
||||
import Fuse from "fuse.js"
|
||||
import * as Logging from "@src/lib/logging"
|
||||
const logger = new Logging.Logger("containers")
|
||||
|
||||
|
@ -209,7 +209,7 @@ export async function fuzzyMatch(partialName: string): Promise<string> {
|
|||
const fuse = new Fuse(containers, fuseOptions)
|
||||
const res = fuse.search(partialName)
|
||||
|
||||
if (res.length >= 1) return res[0]
|
||||
if (res.length >= 1) return res[0].item.cookieStoreId
|
||||
else {
|
||||
throw new Error(
|
||||
"[Container.fuzzyMatch] no container matched that string",
|
||||
|
|
|
@ -3544,10 +3544,10 @@ functional-red-black-tree@^1.0.1:
|
|||
resolved "https://registry.yarnpkg.com/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz#1b0ab3bd553b2a0d6399d29c0e3ea0b252078327"
|
||||
integrity sha1-GwqzvVU7Kg1jmdKcDj6gslIHgyc=
|
||||
|
||||
fuse.js@^3.6.1:
|
||||
version "3.6.1"
|
||||
resolved "https://registry.yarnpkg.com/fuse.js/-/fuse.js-3.6.1.tgz#7de85fdd6e1b3377c23ce010892656385fd9b10c"
|
||||
integrity sha512-hT9yh/tiinkmirKrlv4KWOjztdoZo1mx9Qh4KvWqC7isoXwdUY3PNWUxceF4/qO9R6riA2C29jdTOeQOIROjgw==
|
||||
fuse.js@^6.0.0:
|
||||
version "6.0.0"
|
||||
resolved "https://registry.yarnpkg.com/fuse.js/-/fuse.js-6.0.0.tgz#6fc16cd7555648deda392892402d4188553552b2"
|
||||
integrity sha512-e5Ap6mhF/WQ9bKqsMFTTR5/DS9qbYab4VXHtMdxCanH+VZkdUV2LqcgMO31etSQv53NXsguQF1bdqkrrPAM2HQ==
|
||||
|
||||
fx-runner@1.0.11:
|
||||
version "1.0.11"
|
||||
|
|
Loading…
Add table
Reference in a new issue