You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We would love a "strict" option where the library raises when an unknown value is found.
Use case is that often objects get composed directly as a parameter for objectHash. Hence it's hard to get visibility into what is actually hashed. Raising on undefined would ensure that at least something meaningful was put into the object before hashing it.
The text was updated successfully, but these errors were encountered:
simlu
changed the title
Option "strict" mode that throws when undefined values found
"strict" mode that throws when undefined values found
Aug 18, 2019
I realize now that my suggestion was silly, since this library hashes absolutely everything it can get its hand on :) So there will always be something undefined.
What makes sense though it to check if there are any "real" values that are undefined.
We would love a "strict" option where the library raises when an
unknown
value is found.Use case is that often objects get composed directly as a parameter for objectHash. Hence it's hard to get visibility into what is actually hashed. Raising on
undefined
would ensure that at least something meaningful was put into the object before hashing it.The text was updated successfully, but these errors were encountered: