X-Git-Url: http://git.squeep.com/?p=websub-hub;a=blobdiff_plain;f=src%2Fcommon.js;fp=src%2Fcommon.js;h=4ed310f44ebb4d524c58385ad76a4c2d25b88375;hp=55a0807b00757e2c2fa0fe8d50e7c22701b0bacf;hb=41ae00113d39abada54823b7133c473b8fb758f5;hpb=acf63f7913320f8edb9db9dc31d13ec7ff5d104f diff --git a/src/common.js b/src/common.js index 55a0807..4ed310f 100644 --- a/src/common.js +++ b/src/common.js @@ -57,7 +57,7 @@ const freezeDeep = (o) => { } }); return o; -} +}; /** @@ -111,7 +111,7 @@ const attemptRetrySeconds = (attempt, retryBackoffSeconds = [60, 120, 360, 1440, let seconds = retryBackoffSeconds[attempt]; seconds += Math.floor(Math.random() * seconds * jitter); return seconds; -} +}; /** @@ -122,7 +122,7 @@ const attemptRetrySeconds = (attempt, retryBackoffSeconds = [60, 120, 360, 1440, const arrayChunk = (array, per = 1) => { const nChunks = Math.ceil(array.length / per); return Array.from(Array(nChunks), (_, i) => array.slice(i * per, (i + 1) * per)); -} +}; /** @@ -135,7 +135,7 @@ const stackSafePush = (dst, src) => { arrayChunk(src, jsEngineMaxArguments).forEach((items) => { Array.prototype.push.apply(dst, items); }); -} +}; /**