make sure content is string for post-processing

This commit is contained in:
zadam
2023-11-26 23:51:04 +01:00
parent 18e2e6779b
commit 10f3df3ed4
2 changed files with 9 additions and 0 deletions

View File

@@ -303,6 +303,10 @@ function toMap(list, key) {
return map;
}
function isString(x) {
return Object.prototype.toString.call(x) === "[object String]";
}
module.exports = {
randomSecureToken,
randomString,
@@ -335,4 +339,5 @@ module.exports = {
normalize,
hashedBlobId,
toMap,
isString
};