http-auth
Advanced tools
Comparing version 3.1.2 to 3.1.3
{ | ||
"name": "http-auth", | ||
"description": "Node.js package for HTTP basic and digest access authentication.", | ||
"version": "3.1.2", | ||
"version": "3.1.3", | ||
"author": "Gevorg Harutyunyan (http://github.com/gevorg)", | ||
@@ -6,0 +6,0 @@ "maintainers": [ |
@@ -40,3 +40,4 @@ "use strict"; | ||
} else if (hash.length === password.length) { | ||
return crypto.timingSafeEqual(new Buffer(hash), new Buffer(password)); | ||
return crypto.timingSafeEqual ? | ||
crypto.timingSafeEqual(new Buffer(hash), new Buffer(password)) : hash === password; | ||
} | ||
@@ -43,0 +44,0 @@ } |
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
32976
651