express-brute icon indicating copy to clipboard operation
express-brute copied to clipboard

Fix crypto hash update invalid arg type error

Open mems opened this issue 7 years ago • 1 comments

Error happen when you provide a number as custom key:

TypeError [ERR_INVALID_ARG_TYPE]: The "data" argument must be one of type string, TypedArray, or DataView
    at Hash.update (internal/crypto/hash.js:53:11)
    at ...

To fix that, just force key parts to be a String

mems avatar Mar 26 '18 23:03 mems

Coverage Status

Coverage remained the same at 97.543% when pulling 0716956b446e24f3b653d84c27501b2c7134a8a3 on mems:patch-1 into bc48c35f04d4a09738ff7596f0c6fe4757a22e4a on AdamPflug:master.

coveralls avatar Mar 26 '18 23:03 coveralls