Comparing version 1.0.5 to 1.0.6
@@ -15,2 +15,7 @@ 'use strict'; | ||
} | ||
// `crypto.timingSafeEqual` was introduced in Node v6.6.0 | ||
// <https://github.com/jshttp/basic-auth/issues/39> | ||
if (crypto.timingSafeEqual) { | ||
return crypto.timingSafeEqual(a, b); | ||
} | ||
for (var i = 0; i < a.length; i++) { | ||
@@ -17,0 +22,0 @@ if (a[i] !== b[i]) { |
{ | ||
"name": "tsscmp", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"description": "Timing safe string compare using double HMAC", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -0,0 +0,0 @@ # Timing safe string compare using double HMAC |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -0,0 +0,0 @@ 'use strict'; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
8355
114
8