Comparing version 7.0.3 to 7.0.4
@@ -57,3 +57,3 @@ 'use strict'; | ||
throw Boom('Invalid argument type'); | ||
throw new Boom('Invalid argument type'); | ||
} | ||
@@ -73,7 +73,7 @@ | ||
throw Boom('Invalid credentials'); | ||
throw new Boom('Invalid credentials'); | ||
} | ||
if (Crypto.algorithms.indexOf(credentials.algorithm) === -1) { | ||
throw Boom('Unknown algorithm'); | ||
throw new Boom('Unknown algorithm'); | ||
} | ||
@@ -158,3 +158,3 @@ | ||
catch (err) { | ||
throw Boom('Invalid WWW-Authenticate header'); | ||
throw new Boom('Invalid WWW-Authenticate header'); | ||
} | ||
@@ -169,3 +169,3 @@ | ||
if (tsm !== wwwAttributes.tsm) { | ||
throw Boom('Invalid server timestamp hash', { decorate: result }); | ||
throw new Boom('Invalid server timestamp hash', { decorate: result }); | ||
} | ||
@@ -187,3 +187,3 @@ } | ||
catch (err) { | ||
throw Boom('Invalid Server-Authorization header', { decorate: result }); | ||
throw new Boom('Invalid Server-Authorization header', { decorate: result }); | ||
} | ||
@@ -198,3 +198,3 @@ | ||
if (mac !== serverAuthAttributes.mac) { | ||
throw Boom('Bad response mac', { decorate: result }); | ||
throw new Boom('Bad response mac', { decorate: result }); | ||
} | ||
@@ -209,3 +209,3 @@ | ||
if (!serverAuthAttributes.hash) { | ||
throw Boom('Missing response hash attribute', { decorate: result }); | ||
throw new Boom('Missing response hash attribute', { decorate: result }); | ||
} | ||
@@ -215,3 +215,3 @@ | ||
if (calculatedHash !== serverAuthAttributes.hash) { | ||
throw Boom('Bad response payload mac', { decorate: result }); | ||
throw new Boom('Bad response payload mac', { decorate: result }); | ||
} | ||
@@ -255,3 +255,3 @@ | ||
throw Boom('Invalid inputs'); | ||
throw new Boom('Invalid inputs'); | ||
} | ||
@@ -273,7 +273,7 @@ | ||
throw Boom('Invalid credentials'); | ||
throw new Boom('Invalid credentials'); | ||
} | ||
if (Crypto.algorithms.indexOf(credentials.algorithm) === -1) { | ||
throw Boom('Unknown algorithm'); | ||
throw new Boom('Unknown algorithm'); | ||
} | ||
@@ -342,3 +342,3 @@ | ||
throw Boom('Invalid inputs'); | ||
throw new Boom('Invalid inputs'); | ||
} | ||
@@ -358,7 +358,7 @@ | ||
throw Boom('Invalid credentials'); | ||
throw new Boom('Invalid credentials'); | ||
} | ||
if (Crypto.algorithms.indexOf(credentials.algorithm) === -1) { | ||
throw Boom('Unknown algorithm'); | ||
throw new Boom('Unknown algorithm'); | ||
} | ||
@@ -365,0 +365,0 @@ |
@@ -151,7 +151,7 @@ 'use strict'; | ||
throw Boom('Invalid credentials', { decorate: result }); | ||
throw new Boom('Invalid credentials', { decorate: result }); | ||
} | ||
if (Crypto.algorithms.indexOf(credentials.algorithm) === -1) { | ||
throw Boom('Unknown algorithm', { decorate: result }); | ||
throw new Boom('Unknown algorithm', { decorate: result }); | ||
} | ||
@@ -265,3 +265,3 @@ | ||
throw Boom('Invalid inputs'); | ||
throw new Boom('Invalid inputs'); | ||
} | ||
@@ -280,7 +280,7 @@ | ||
throw Boom('Invalid credentials'); | ||
throw new Boom('Invalid credentials'); | ||
} | ||
if (Crypto.algorithms.indexOf(credentials.algorithm) === -1) { | ||
throw Boom('Unknown algorithm'); | ||
throw new Boom('Unknown algorithm'); | ||
} | ||
@@ -416,3 +416,3 @@ | ||
catch (err) { | ||
throw Boom(err, { decorate: { bewit } }); | ||
throw new Boom(err, { decorate: { bewit } }); | ||
} | ||
@@ -429,7 +429,7 @@ | ||
throw Boom('Invalid credentials', { decorate: result }); | ||
throw new Boom('Invalid credentials', { decorate: result }); | ||
} | ||
if (Crypto.algorithms.indexOf(credentials.algorithm) === -1) { | ||
throw Boom('Unknown algorithm', { decorate: result }); | ||
throw new Boom('Unknown algorithm', { decorate: result }); | ||
} | ||
@@ -499,7 +499,7 @@ | ||
throw Boom('Invalid credentials', { decorate: result }); | ||
throw new Boom('Invalid credentials', { decorate: result }); | ||
} | ||
if (Crypto.algorithms.indexOf(credentials.algorithm) === -1) { | ||
throw Boom('Unknown algorithm', { decorate: result }); | ||
throw new Boom('Unknown algorithm', { decorate: result }); | ||
} | ||
@@ -506,0 +506,0 @@ |
{ | ||
"name": "hawk", | ||
"description": "HTTP Hawk Authentication Scheme", | ||
"version": "7.0.3", | ||
"version": "7.0.4", | ||
"author": "Eran Hammer <eran@hammer.io> (http://hueniverse.com)", | ||
@@ -6,0 +6,0 @@ "repository": "git://github.com/hueniverse/hawk", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
111456