Skip to content

Commit

Permalink
Add validation to check that parameters aren't nullish
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 10, 2021
1 parent c77e101 commit b76614b
Show file tree
Hide file tree
Showing 2 changed files with 483 additions and 20 deletions.
Loading

0 comments on commit b76614b

Please sign in to comment.