From 74ed35b31075942e31f98519d8dbd5de145e912b Mon Sep 17 00:00:00 2001 From: Olivier Mills Date: Fri, 3 Jul 2020 12:28:17 -0600 Subject: [PATCH] update fuse.js to v6 and fix Suggestion mention search --- examples/Components/Routes/Suggestions/index.vue | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/Components/Routes/Suggestions/index.vue b/examples/Components/Routes/Suggestions/index.vue index 5c445e1fa..b03f10efb 100644 --- a/examples/Components/Routes/Suggestions/index.vue +++ b/examples/Components/Routes/Suggestions/index.vue @@ -134,7 +134,7 @@ export default { keys: ['name'], }) - return fuse.search(query) + return fuse.search(query).map( it => item); }, }), new Code(), diff --git a/package.json b/package.json index 6a4fe3456..551c4c377 100644 --- a/package.json +++ b/package.json @@ -47,7 +47,7 @@ "eslint-plugin-import": "^2.18.2", "eslint-plugin-vue": "6.0.1", "file-loader": "^5.0.2", - "fuse.js": "^3.4.6", + "fuse.js": "^6.0.0", "glob": "^7.1.6", "html-webpack-plugin": "^3.2.0", "http-proxy-middleware": "^0.20.0",