projects
/
websub-hub
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
change devDependency html linter to resolve audit issue, fix lint issues
[websub-hub]
/
src
/
common.js
diff --git
a/src/common.js
b/src/common.js
index 7d0d3180bba4dec235c0bf49053b00f5b09dc1e6..0d6500c44eaaf7b201e96ecef698931761423005 100644
(file)
--- a/
src/common.js
+++ b/
src/common.js
@@
-164,6
+164,8
@@
const logTruncate = (str, len) => {
return str.toString().slice(0, len) + `... (${str.toString().length} bytes)`;
};
return str.toString().slice(0, len) + `... (${str.toString().length} bytes)`;
};
+const nop = () => undefined;
+
module.exports = {
...common,
arrayChunk,
module.exports = {
...common,
arrayChunk,
@@
-172,6
+174,7
@@
module.exports = {
ensureArray,
freezeDeep,
logTruncate,
ensureArray,
freezeDeep,
logTruncate,
+ nop,
randomBytesAsync,
stackSafePush,
topicLeaseDefaults,
randomBytesAsync,
stackSafePush,
topicLeaseDefaults,