UNPKG

smartystreets-javascript-sdk

Version:
2 lines (1 loc) 274 B
"use strict";var e,s;exports.__require=function(){return s?e:(s=1,e=class{constructor(e,s){this.sender=e,this.customHeaders=s}send(e){for(let s in this.customHeaders)e.headers[s]=this.customHeaders[s];return new Promise(((s,r)=>{this.sender.send(e).then(s).catch(r)}))}})};