-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add validation to getStateWasteCodes that state code must be two characters long, unit test included * add validation for when siteID is an input, unit test included * add validation for siteType which should be one of 4 enum strign values corresponding to handler type * add DateType type declaration, and validation * add validateInput config option, update docs By Default, we do not validate user input. This keeps the library unopinionated, but keeps this faily simple option open to users interested * add conditional to check is user input should be validated before API request made * increment minor package number and publish. also quick clean up error messages, add typescrip example to docs * add test showing validateInput behavior is disabled by default this commit also adds a new mock handler for a request to the site
- Loading branch information
1 parent
2bc6566
commit a1cd32a
Showing
8 changed files
with
266 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.