From a78a8afb57413f6564e2e5a30ea37facece51923 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Sat, 8 Jan 2022 17:44:53 +0100 Subject: [PATCH] fix: switch back to flexsearch compact to avoid usage of eval (#268) --- src/js/search.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/search.js b/src/js/search.js index d1eb6f5..3c9f584 100644 --- a/src/js/search.js +++ b/src/js/search.js @@ -1,5 +1,5 @@ const { groupBy } = require("./groupBy") -const FlexSearch = require("flexsearch") +const { FlexSearch } = require("flexsearch/dist/flexsearch.compact") const Ajv = require("ajv") document.addEventListener("DOMContentLoaded", function (event) {