update dependencies, fixes to support new authentication features
[websub-hub] / src / common.js
index 7d0d3180bba4dec235c0bf49053b00f5b09dc1e6..0d6500c44eaaf7b201e96ecef698931761423005 100644 (file)
@@ -164,6 +164,8 @@ const logTruncate = (str, len) => {
   return str.toString().slice(0, len) + `... (${str.toString().length} bytes)`;
 };
 
+const nop = () => undefined;
+
 module.exports = {
   ...common,
   arrayChunk,
@@ -172,6 +174,7 @@ module.exports = {
   ensureArray,
   freezeDeep,
   logTruncate,
+  nop,
   randomBytesAsync,
   stackSafePush,
   topicLeaseDefaults,