diff --git a/package.json b/package.json index 827317e..f1d9dcb 100644 --- a/package.json +++ b/package.json @@ -29,6 +29,7 @@ "moment": "^2.29.2", "mongodb": "^4.5.0", "object-hash": "^3.0.0", + "similarity": "^1.2.1", "timestring": "^6.0.0" }, "devDependencies": { diff --git a/yarn.lock b/yarn.lock index 68b60fd..c4d542d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1179,6 +1179,11 @@ latest-version@^5.1.0: dependencies: package-json "^6.3.0" +levenshtein-edit-distance@^2.0.0: + version "2.0.5" + resolved "https://registry.yarnpkg.com/levenshtein-edit-distance/-/levenshtein-edit-distance-2.0.5.tgz#a066eca8afb350e4d9054aed9ffeef66e78ffc83" + integrity sha512-Yuraz7QnMX/JENJU1HA6UtdsbhRzoSFnGpVGVryjQgHtl2s/YmVgmNYkVs5yzVZ9aAvQR9wPBUH3lG755ylxGA== + levn@^0.4.1: version "0.4.1" resolved "https://registry.yarnpkg.com/levn/-/levn-0.4.1.tgz#ae4562c007473b932a6200d403268dd2fffc6ade" @@ -1558,6 +1563,13 @@ signal-exit@^3.0.2: resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.7.tgz#a9a1767f8af84155114eaabd73f99273c8f59ad9" integrity sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ== +similarity@^1.2.1: + version "1.2.1" + resolved "https://registry.yarnpkg.com/similarity/-/similarity-1.2.1.tgz#58eed40bc90742434abcf1b8e0b9af63241fb3dd" + integrity sha512-lMOpWVaWrTnyL+tkvDs8oGV/KAUBQ3wfbZtdiwDcC+KYGlwO8kgtiyag1B6akAjALDMwn5rN5YHHei1hr4X7nw== + dependencies: + levenshtein-edit-distance "^2.0.0" + slice-ansi@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/slice-ansi/-/slice-ansi-4.0.0.tgz#500e8dd0fd55b05815086255b3195adf2a45fe6b"