digest-auth-request
digest-auth-request copied to clipboard
Potential override of CryptoJS with undefined
I recently ran into a problem where digestAuthRequest told me that CryptoJS was not defined, even if it was actually loaded. The problem seems to stem from line 11 where, I assume due to variable hoisting, a new var for CryptoJS is being declared, even if the above condition is not met.
This basically creates a variable CryptoJS which is locally scoped to digestAuthRequest and set to undefined.