smartystreets-javascript-sdk
Version:
Quick and easy Smarty address validation.
2 lines (1 loc) • 493 B
JavaScript
import e from"./SharedCredentials.mjs";import{E as r}from"./_virtual/Errors.mjs";var n=function(){function n(e,r){this.signer=r,this.sender=e}return n.prototype.send=function(n){var t=this;if(n.payload&&this.signer instanceof e){throw new r.UnprocessableEntityError("Shared credentials cannot be used in batches with a length greater than 1 or when using the US Extract API.")}return new Promise((function(e,r){t.signer.sign(n),t.sender.send(n).then(e).catch(r)}))},n}();export{n as default};