X-Git-Url: http://git.squeep.com/?p=squeep-api-dingus;a=blobdiff_plain;f=lib%2Fcommon.js;h=e2e2a8c640f58ba4df827cd6e7afcc5ffb69fd4b;hp=40a9f554f9ee4f687fe63402e3fed0908162408b;hb=cc2712fc6ba7d2788d4d4c91ac6b2d3fc662c0fa;hpb=51d8ddc080051f0a7f00d0f99db5465957712f1f diff --git a/lib/common.js b/lib/common.js index 40a9f55..e2e2a8c 100644 --- a/lib/common.js +++ b/lib/common.js @@ -27,7 +27,7 @@ const fileScope = (filename) => { fScope = path.basename(path.dirname(filename)); } return (scope) => `${fScope}:${scope}`; -} +}; /** * Simple ETag from data. @@ -202,7 +202,7 @@ const scrubHeaderObject = (data) => { authorization: obscureAuthorizationHeader(data.headers['authorization']), }); } -} +}; /** @@ -218,7 +218,7 @@ const obscureAuthorizationHeader = (authHeader) => { const space = authHeader.indexOf(' '); // This blurs entire string if no space found, because -1. return authHeader.slice(0, space + 1) + '*'.repeat(authHeader.length - (space + 1)); -} +}; /**