Skip to content

Commit

Permalink
Add validation to check that parameters aren't nullish (#205)
Browse files Browse the repository at this point in the history
Validation has been added to the signing and encryption functions to
ensure that the parameters are not nullish. This should help with
migrating from the last major version, as it would be easy to
accidentally use the wrong parameter name when migrating.

A nullish check was used rather than a falsy check because there are
falsy values that are valid for some parameters (e.g. the data being
signed can be `0`). `null` and `undefined` are never valid in these
cases though.
  • Loading branch information
Gudahtt committed Sep 17, 2021
1 parent 6571e30 commit 7e774d6
Show file tree
Hide file tree
Showing 2 changed files with 484 additions and 20 deletions.

0 comments on commit 7e774d6

Please sign in to comment.