Merge branch 'beta'

# Conflicts:
#	package-lock.json
This commit is contained in:
zadam
2023-09-14 00:19:19 +02:00
21 changed files with 244 additions and 248 deletions

View File

@@ -289,6 +289,16 @@ function normalize(str) {
return removeDiacritic(str).toLowerCase();
}
function toMap(list, key) {
const map = {};
for (const el of list) {
map[el[key]] = el;
}
return map;
}
module.exports = {
randomSecureToken,
randomString,
@@ -320,4 +330,5 @@ module.exports = {
removeDiacritic,
normalize,
hashedBlobId,
toMap,
};