Currently we use a logError function to handle exceptions, this removes my ability to better handle it on where we use the library so this PR removes that and just throws directly to give us better visibility when things go wrong.
This PR also addresses:
Made the plausble validate() method use type instead of name
Moved tests over to GitHub actions and parallelised them
Changes the hubspot contactExists function to use get contact with email propertyId instead of search this should cover edge cases where users have multiple emails assigned to one contact
Currently we use a
logError
function to handle exceptions, this removes my ability to better handle it on where we use the library so this PR removes that and just throws directly to give us better visibility when things go wrong.This PR also addresses:
contactExists
function to useget contact
with email propertyId instead ofsearch
this should cover edge cases where users have multiple emails assigned to one contact