smartystreets-javascript-sdk 6.1.1 → 6.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- "use strict";var t,o;exports.__require=function(){return o?t:(o=1,t=class{constructor(t){this.lookup=t,this.data={}}add(t,o){this.lookupFieldIsPopulated(o)&&(this.data[t]=this.formatData(this.lookup[o]))}formatData(t){return Array.isArray(t)?t.join(";"):t}lookupFieldIsPopulated(t){return""!==this.lookup[t]&&void 0!==this.lookup[t]}})};
1
+ "use strict";var t,o;exports.__require=function(){return o?t:(o=1,t=class{constructor(t){this.lookup=t,this.data={}}add(t,o){this.lookupFieldIsPopulated(o)&&(this.data[t]=this.formatData(this.lookup[o]))}addCustomParameter(t,o){this.data[t]=o}formatData(t){return Array.isArray(t)?t.join(";"):t}lookupFieldIsPopulated(t){return""!==this.lookup[t]&&void 0!==this.lookup[t]}})};
@@ -1 +1 @@
1
- "use strict";var s,t;exports.__require=function(){return t?s:(t=1,s=class{constructor({search:s,addressId:t,country:e,maxResults:i=5,includeOnlyLocality:l,includeOnlyPostalCode:r}={}){this.result=[],this.search=s,this.addressId=t,this.country=e,this.maxResults=i,this.includeOnlyLocality=l,this.includeOnlyPostalCode=r}})};
1
+ "use strict";var s,t;exports.__require=function(){return t?s:(t=1,s=class{constructor({search:s,addressId:t,country:e,maxResults:r=5,includeOnlyLocality:a,includeOnlyPostalCode:i}={}){this.result=[],this.search=s,this.addressId=t,this.country=e,this.maxResults=r,this.includeOnlyLocality=a,this.includeOnlyPostalCode=i,this.customParameters={}}addCustomParameter(s,t){this.customParameters[s]=t}})};
@@ -1 +1 @@
1
- "use strict";var e,t,i=require("../Errors.cjs");exports.__require=function(){if(t)return e;t=1;const r=i.__require().UnprocessableEntityError,s="Country field is required.",n="Either freeform or address1 is required.",o="Insufficient information: One or more required fields were not set on the lookup.",a="Invalid input: geocode can only be set to 'true' (default is 'false'.",u="Invalid input: language can only be set to 'latin' or 'native'. When not set, the the output language will match the language of the input values.";function h(e){if(!e)return!0;return e.replace(/\s/g,"").length<1}function d(e){return!h(e)}return e=class{constructor(e,t){this.result=[],this.country=e,this.freeform=t,this.address1=void 0,this.address2=void 0,this.address3=void 0,this.address4=void 0,this.organization=void 0,this.locality=void 0,this.administrativeArea=void 0,this.postalCode=void 0,this.geocode=void 0,this.language=void 0,this.inputId=void 0,this.ensureEnoughInfo=this.ensureEnoughInfo.bind(this),this.ensureValidData=this.ensureValidData.bind(this)}ensureEnoughInfo(){if(h(this.country))throw new r(s);if(d(this.freeform))return!0;if(h(this.address1))throw new r(n);if(d(this.postalCode))return!0;if(h(this.locality)||h(this.administrativeArea))throw new r(o);return!0}ensureValidData(){if((()=>d(this.geocode)&&"true"!==this.geocode.toLowerCase())())throw new r(a);if((()=>{let e=e=>this.language.toLowerCase()===e;return d(this.language)&&!(e("latin")||e("native"))})())throw new r(u);return!0}}};
1
+ "use strict";var e,t,i=require("../Errors.cjs");exports.__require=function(){if(t)return e;t=1;const r=i.__require().UnprocessableEntityError,s="Country field is required.",o="Either freeform or address1 is required.",n="Insufficient information: One or more required fields were not set on the lookup.",a="Invalid input: geocode can only be set to 'true' (default is 'false'.",u="Invalid input: language can only be set to 'latin' or 'native'. When not set, the the output language will match the language of the input values.";function h(e){if(!e)return!0;return e.replace(/\s/g,"").length<1}function d(e){return!h(e)}return e=class{constructor(e,t){this.result=[],this.country=e,this.freeform=t,this.address1=void 0,this.address2=void 0,this.address3=void 0,this.address4=void 0,this.organization=void 0,this.locality=void 0,this.administrativeArea=void 0,this.postalCode=void 0,this.geocode=void 0,this.language=void 0,this.inputId=void 0,this.ensureEnoughInfo=this.ensureEnoughInfo.bind(this),this.ensureValidData=this.ensureValidData.bind(this),this.customParameters={}}addCustomParameter(e,t){this.customParameters[e]=t}ensureEnoughInfo(){if(h(this.country))throw new r(s);if(d(this.freeform))return!0;if(h(this.address1))throw new r(o);if(d(this.postalCode))return!0;if(h(this.locality)||h(this.administrativeArea))throw new r(n);return!0}ensureValidData(){if((()=>d(this.geocode)&&"true"!==this.geocode.toLowerCase())())throw new r(a);if((()=>{let e=e=>this.language.toLowerCase()===e;return d(this.language)&&!(e("latin")||e("native"))})())throw new r(u);return!0}}};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e="smartystreets-javascript-sdk",s="6.1.1",t="Quick and easy Smarty address validation.",r=["smarty","smartystreets","address","validation","verification","verify","validate","street-address","geocoding","addresses","zipcode","autocomplete","autosuggest","suggestions","international","http","sdk"],o=["dist","README.md","LICENSE"],i="dist/cjs/index.cjs",p="dist/esm/index.mjs",a={".":{import:"./dist/esm/index.mjs",default:"./dist/cjs/index.cjs"}},d={build:"rollup --config",test:"mocha 'tests/**/*.{mjs,js}'"},n="Smarty SDK Team <support@smarty.com> (https://www.smarty.com)",l="Apache-2.0",c={type:"git",url:"github:smartystreets/smartystreets-javascript-sdk"},m={"@babel/preset-env":"^7.25.8","@rollup/plugin-commonjs":"^28.0.1","@rollup/plugin-json":"^6.1.0","@rollup/plugin-node-resolve":"^15.3.0","@rollup/plugin-terser":"^0.4.4",chai:"^4.3.6",mocha:"^10.2.0",rollup:"^4.22.5","rollup-plugin-delete":"^2.1.0"},u={axios:"^1.7.7","axios-retry":"^4.5.0"},x={name:e,version:s,description:t,keywords:r,files:o,main:i,module:p,exports:a,scripts:d,author:n,license:l,repository:c,devDependencies:m,dependencies:u};exports.author=n,exports.default=x,exports.dependencies=u,exports.description=t,exports.devDependencies=m,exports.exports=a,exports.files=o,exports.keywords=r,exports.license=l,exports.main=i,exports.module=p,exports.name=e,exports.repository=c,exports.scripts=d,exports.version=s;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e="smartystreets-javascript-sdk",s="6.2.0",t="Quick and easy Smarty address validation.",r=["smarty","smartystreets","address","validation","verification","verify","validate","street-address","geocoding","addresses","zipcode","autocomplete","autosuggest","suggestions","international","http","sdk"],o=["dist","README.md","LICENSE"],i="dist/cjs/index.cjs",p="dist/esm/index.mjs",a={".":{import:"./dist/esm/index.mjs",default:"./dist/cjs/index.cjs"}},d={build:"rollup --config",test:"mocha 'tests/**/*.{mjs,js}'"},n="Smarty SDK Team <support@smarty.com> (https://www.smarty.com)",l="Apache-2.0",c={type:"git",url:"github:smartystreets/smartystreets-javascript-sdk"},m={"@babel/preset-env":"^7.25.8","@rollup/plugin-commonjs":"^28.0.1","@rollup/plugin-json":"^6.1.0","@rollup/plugin-node-resolve":"^15.3.0","@rollup/plugin-terser":"^0.4.4",chai:"^4.3.6",mocha:"^10.2.0",rollup:"^4.22.5","rollup-plugin-delete":"^2.1.0"},u={axios:"^1.7.7","axios-retry":"^4.5.0"},x={name:e,version:s,description:t,keywords:r,files:o,main:i,module:p,exports:a,scripts:d,author:n,license:l,repository:c,devDependencies:m,dependencies:u};exports.author=n,exports.default=x,exports.dependencies=u,exports.description=t,exports.devDependencies=m,exports.exports=a,exports.files=o,exports.keywords=r,exports.license=l,exports.main=i,exports.module=p,exports.name=e,exports.repository=c,exports.scripts=d,exports.version=s;
@@ -1 +1 @@
1
- "use strict";var e,t;exports.__require=function(){return t?e:(t=1,e=class{constructor(e){this.result=[],this.search=e,this.selected=void 0,this.maxResults=void 0,this.includeOnlyCities=[],this.includeOnlyStates=[],this.includeOnlyZIPCodes=[],this.excludeStates=[],this.preferCities=[],this.preferStates=[],this.preferZIPCodes=[],this.preferRatio=void 0,this.preferGeolocation=void 0,this.source=void 0}})};
1
+ "use strict";var t,e;exports.__require=function(){return e?t:(e=1,t=class{constructor(t){this.result=[],this.search=t,this.selected=void 0,this.maxResults=void 0,this.includeOnlyCities=[],this.includeOnlyStates=[],this.includeOnlyZIPCodes=[],this.excludeStates=[],this.preferCities=[],this.preferStates=[],this.preferZIPCodes=[],this.preferRatio=void 0,this.preferGeolocation=void 0,this.source=void 0,this.customParameters={}}addCustomParameter(t,e){this.customParameters[t]=e}})};
@@ -1 +1 @@
1
- "use strict";var t,s;exports.__require=function(){return s?t:(s=1,t=class{constructor(t,s,e,r,i){this.smartyKey=t,this.include=s,this.exclude=e,this.dataset=r,this.dataSubset=i,this.response={}}})};
1
+ "use strict";var t,s;exports.__require=function(){return s?t:(s=1,t=class{constructor(t,s,e,r,a){this.smartyKey=t,this.include=s,this.exclude=e,this.dataset=r,this.dataSubset=a,this.response={},this.customParameters={}}addCustomParameter(t,s){this.customParameters[t]=s}})};
@@ -1 +1 @@
1
- "use strict";var s,e;exports.__require=function(){return e?s:(e=1,s=class{constructor(s){this.result={meta:{},addresses:[]},this.text=s,this.html=void 0,this.aggressive=void 0,this.addressesHaveLineBreaks=void 0,this.addressesPerLine=void 0}})};
1
+ "use strict";var s,e;exports.__require=function(){return e?s:(e=1,s=class{constructor(s){this.result={meta:{},addresses:[]},this.text=s,this.html=void 0,this.aggressive=void 0,this.addressesHaveLineBreaks=void 0,this.addressesPerLine=void 0,this.customParameters={}}addCustomParameter(s,e){this.customParameters[s]=e}})};
@@ -1 +1 @@
1
- "use strict";var e,t,r=require("./Response.cjs");exports.__require=function(){if(t)return e;t=1;const s=r.__require();return e=class{constructor(e,t,r=""){this.latitude=e.toFixed(8),this.longitude=t.toFixed(8),this.source=r,this.response=new s}}};
1
+ "use strict";var e,t,s=require("./Response.cjs");exports.__require=function(){if(t)return e;t=1;const r=s.__require();return e=class{constructor(e,t,s=""){this.latitude=e.toFixed(8),this.longitude=t.toFixed(8),this.source=s,this.response=new r,this.customParameters={}}addCustomParameter(e,t){this.customParameters[e]=t}}};
@@ -1 +1 @@
1
- "use strict";var t,s;exports.__require=function(){return s?t:(s=1,t=class{constructor(t,s,i,e,r,h,a,n,c,o,u,d,l,m){this.street=t,this.street2=s,this.secondary=i,this.city=e,this.state=r,this.zipCode=h,this.lastLine=a,this.addressee=n,this.urbanization=c,this.match=o,this.maxCandidates=u,this.inputId=d,this.format=l,this.countySource=m,this.result=[]}})};
1
+ "use strict";var t,s;exports.__require=function(){return s?t:(s=1,t=class{constructor(t,s,i,e,r,a,h,o,u,c,n,d,m,l){this.street=t,this.street2=s,this.secondary=i,this.city=e,this.state=r,this.zipCode=a,this.lastLine=h,this.addressee=o,this.urbanization=u,this.match=c,this.maxCandidates=n,this.inputId=d,this.format=m,this.countySource=l,this.result=[],this.customParameters={}}addCustomParameter(t,s){this.customParameters[t]=s}})};
@@ -1 +1 @@
1
- "use strict";var t,s;exports.__require=function(){return s?t:(s=1,t=class{constructor(t,s,i,r){this.city=t,this.state=s,this.zipCode=i,this.inputId=r,this.result=[]}})};
1
+ "use strict";var t,s;exports.__require=function(){return s?t:(s=1,t=class{constructor(t,s,r,e){this.city=t,this.state=s,this.zipCode=r,this.inputId=e,this.result=[],this.customParameters={}}addCustomParameter(t,s){this.customParameters[t]=s}})};
@@ -1 +1 @@
1
- "use strict";var r,e,t=require("../InputData.cjs");exports.__require=function(){if(e)return r;e=1;const n=t.__require();return r=(r,e)=>{let t=new n(r);for(let r in e)t.add(r,e[r]);return t.data}};
1
+ "use strict";var e,r,t=require("../InputData.cjs");exports.__require=function(){if(r)return e;r=1;const a=t.__require();return e=(e,r)=>{let t=new a(e);const s=Object.keys(e.customParameters??{}).length>0;for(let e in r)t.add(e,r[e]);if(s)for(let r in e.customParameters)t.addCustomParameter(r,e.customParameters[r]);return t.data}};
@@ -1 +1 @@
1
- var t,o;function r(){if(o)return t;o=1;return t=class{constructor(t){this.lookup=t,this.data={}}add(t,o){this.lookupFieldIsPopulated(o)&&(this.data[t]=this.formatData(this.lookup[o]))}formatData(t){return Array.isArray(t)?t.join(";"):t}lookupFieldIsPopulated(t){return""!==this.lookup[t]&&void 0!==this.lookup[t]}}}export{r as __require};
1
+ var t,a;function o(){if(a)return t;a=1;return t=class{constructor(t){this.lookup=t,this.data={}}add(t,a){this.lookupFieldIsPopulated(a)&&(this.data[t]=this.formatData(this.lookup[a]))}addCustomParameter(t,a){this.data[t]=a}formatData(t){return Array.isArray(t)?t.join(";"):t}lookupFieldIsPopulated(t){return""!==this.lookup[t]&&void 0!==this.lookup[t]}}}export{o as __require};
@@ -1 +1 @@
1
- var s,t;function e(){if(t)return s;t=1;return s=class{constructor({search:s,addressId:t,country:e,maxResults:r=5,includeOnlyLocality:i,includeOnlyPostalCode:l}={}){this.result=[],this.search=s,this.addressId=t,this.country=e,this.maxResults=r,this.includeOnlyLocality=i,this.includeOnlyPostalCode=l}}}export{e as __require};
1
+ var s,t;function e(){if(t)return s;t=1;return s=class{constructor({search:s,addressId:t,country:e,maxResults:r=5,includeOnlyLocality:a,includeOnlyPostalCode:i}={}){this.result=[],this.search=s,this.addressId=t,this.country=e,this.maxResults=r,this.includeOnlyLocality=a,this.includeOnlyPostalCode=i,this.customParameters={}}addCustomParameter(s,t){this.customParameters[s]=t}}}export{e as __require};
@@ -1 +1 @@
1
- import{__require as e}from"../Errors.mjs";var t,i;function r(){if(i)return t;i=1;const r=e().UnprocessableEntityError,o="Country field is required.",s="Either freeform or address1 is required.",n="Insufficient information: One or more required fields were not set on the lookup.",a="Invalid input: geocode can only be set to 'true' (default is 'false'.",u="Invalid input: language can only be set to 'latin' or 'native'. When not set, the the output language will match the language of the input values.";function h(e){if(!e)return!0;return e.replace(/\s/g,"").length<1}function d(e){return!h(e)}return t=class{constructor(e,t){this.result=[],this.country=e,this.freeform=t,this.address1=void 0,this.address2=void 0,this.address3=void 0,this.address4=void 0,this.organization=void 0,this.locality=void 0,this.administrativeArea=void 0,this.postalCode=void 0,this.geocode=void 0,this.language=void 0,this.inputId=void 0,this.ensureEnoughInfo=this.ensureEnoughInfo.bind(this),this.ensureValidData=this.ensureValidData.bind(this)}ensureEnoughInfo(){if(h(this.country))throw new r(o);if(d(this.freeform))return!0;if(h(this.address1))throw new r(s);if(d(this.postalCode))return!0;if(h(this.locality)||h(this.administrativeArea))throw new r(n);return!0}ensureValidData(){if((()=>d(this.geocode)&&"true"!==this.geocode.toLowerCase())())throw new r(a);if((()=>{let e=e=>this.language.toLowerCase()===e;return d(this.language)&&!(e("latin")||e("native"))})())throw new r(u);return!0}}}export{r as __require};
1
+ import{__require as e}from"../Errors.mjs";var t,i;function r(){if(i)return t;i=1;const r=e().UnprocessableEntityError,s="Country field is required.",o="Either freeform or address1 is required.",n="Insufficient information: One or more required fields were not set on the lookup.",a="Invalid input: geocode can only be set to 'true' (default is 'false'.",u="Invalid input: language can only be set to 'latin' or 'native'. When not set, the the output language will match the language of the input values.";function h(e){if(!e)return!0;return e.replace(/\s/g,"").length<1}function d(e){return!h(e)}return t=class{constructor(e,t){this.result=[],this.country=e,this.freeform=t,this.address1=void 0,this.address2=void 0,this.address3=void 0,this.address4=void 0,this.organization=void 0,this.locality=void 0,this.administrativeArea=void 0,this.postalCode=void 0,this.geocode=void 0,this.language=void 0,this.inputId=void 0,this.ensureEnoughInfo=this.ensureEnoughInfo.bind(this),this.ensureValidData=this.ensureValidData.bind(this),this.customParameters={}}addCustomParameter(e,t){this.customParameters[e]=t}ensureEnoughInfo(){if(h(this.country))throw new r(s);if(d(this.freeform))return!0;if(h(this.address1))throw new r(o);if(d(this.postalCode))return!0;if(h(this.locality)||h(this.administrativeArea))throw new r(n);return!0}ensureValidData(){if((()=>d(this.geocode)&&"true"!==this.geocode.toLowerCase())())throw new r(a);if((()=>{let e=e=>this.language.toLowerCase()===e;return d(this.language)&&!(e("latin")||e("native"))})())throw new r(u);return!0}}}export{r as __require};
@@ -1 +1 @@
1
- var s="smartystreets-javascript-sdk",e="6.1.1",t="Quick and easy Smarty address validation.",i=["smarty","smartystreets","address","validation","verification","verify","validate","street-address","geocoding","addresses","zipcode","autocomplete","autosuggest","suggestions","international","http","sdk"],r=["dist","README.md","LICENSE"],a="dist/cjs/index.cjs",o="dist/esm/index.mjs",d={".":{import:"./dist/esm/index.mjs",default:"./dist/cjs/index.cjs"}},l={build:"rollup --config",test:"mocha 'tests/**/*.{mjs,js}'"},n="Smarty SDK Team <support@smarty.com> (https://www.smarty.com)",p="Apache-2.0",m={type:"git",url:"github:smartystreets/smartystreets-javascript-sdk"},u={"@babel/preset-env":"^7.25.8","@rollup/plugin-commonjs":"^28.0.1","@rollup/plugin-json":"^6.1.0","@rollup/plugin-node-resolve":"^15.3.0","@rollup/plugin-terser":"^0.4.4",chai:"^4.3.6",mocha:"^10.2.0",rollup:"^4.22.5","rollup-plugin-delete":"^2.1.0"},c={axios:"^1.7.7","axios-retry":"^4.5.0"},y={name:s,version:e,description:t,keywords:i,files:r,main:a,module:o,exports:d,scripts:l,author:n,license:p,repository:m,devDependencies:u,dependencies:c};export{n as author,y as default,c as dependencies,t as description,u as devDependencies,d as exports,r as files,i as keywords,p as license,a as main,o as module,s as name,m as repository,l as scripts,e as version};
1
+ var s="smartystreets-javascript-sdk",e="6.2.0",t="Quick and easy Smarty address validation.",i=["smarty","smartystreets","address","validation","verification","verify","validate","street-address","geocoding","addresses","zipcode","autocomplete","autosuggest","suggestions","international","http","sdk"],r=["dist","README.md","LICENSE"],a="dist/cjs/index.cjs",o="dist/esm/index.mjs",d={".":{import:"./dist/esm/index.mjs",default:"./dist/cjs/index.cjs"}},l={build:"rollup --config",test:"mocha 'tests/**/*.{mjs,js}'"},n="Smarty SDK Team <support@smarty.com> (https://www.smarty.com)",p="Apache-2.0",m={type:"git",url:"github:smartystreets/smartystreets-javascript-sdk"},u={"@babel/preset-env":"^7.25.8","@rollup/plugin-commonjs":"^28.0.1","@rollup/plugin-json":"^6.1.0","@rollup/plugin-node-resolve":"^15.3.0","@rollup/plugin-terser":"^0.4.4",chai:"^4.3.6",mocha:"^10.2.0",rollup:"^4.22.5","rollup-plugin-delete":"^2.1.0"},c={axios:"^1.7.7","axios-retry":"^4.5.0"},y={name:s,version:e,description:t,keywords:i,files:r,main:a,module:o,exports:d,scripts:l,author:n,license:p,repository:m,devDependencies:u,dependencies:c};export{n as author,y as default,c as dependencies,t as description,u as devDependencies,d as exports,r as files,i as keywords,p as license,a as main,o as module,s as name,m as repository,l as scripts,e as version};
@@ -1 +1 @@
1
- var e,t;function i(){if(t)return e;t=1;return e=class{constructor(e){this.result=[],this.search=e,this.selected=void 0,this.maxResults=void 0,this.includeOnlyCities=[],this.includeOnlyStates=[],this.includeOnlyZIPCodes=[],this.excludeStates=[],this.preferCities=[],this.preferStates=[],this.preferZIPCodes=[],this.preferRatio=void 0,this.preferGeolocation=void 0,this.source=void 0}}}export{i as __require};
1
+ var e,t;function s(){if(t)return e;t=1;return e=class{constructor(e){this.result=[],this.search=e,this.selected=void 0,this.maxResults=void 0,this.includeOnlyCities=[],this.includeOnlyStates=[],this.includeOnlyZIPCodes=[],this.excludeStates=[],this.preferCities=[],this.preferStates=[],this.preferZIPCodes=[],this.preferRatio=void 0,this.preferGeolocation=void 0,this.source=void 0,this.customParameters={}}addCustomParameter(e,t){this.customParameters[e]=t}}}export{s as __require};
@@ -1 +1 @@
1
- var t,s;function e(){if(s)return t;s=1;return t=class{constructor(t,s,e,r,i){this.smartyKey=t,this.include=s,this.exclude=e,this.dataset=r,this.dataSubset=i,this.response={}}}}export{e as __require};
1
+ var t,s;function e(){if(s)return t;s=1;return t=class{constructor(t,s,e,r,a){this.smartyKey=t,this.include=s,this.exclude=e,this.dataset=r,this.dataSubset=a,this.response={},this.customParameters={}}addCustomParameter(t,s){this.customParameters[t]=s}}}export{e as __require};
@@ -1 +1 @@
1
- var s,e;function r(){if(e)return s;e=1;return s=class{constructor(s){this.result={meta:{},addresses:[]},this.text=s,this.html=void 0,this.aggressive=void 0,this.addressesHaveLineBreaks=void 0,this.addressesPerLine=void 0}}}export{r as __require};
1
+ var s,e;function t(){if(e)return s;e=1;return s=class{constructor(s){this.result={meta:{},addresses:[]},this.text=s,this.html=void 0,this.aggressive=void 0,this.addressesHaveLineBreaks=void 0,this.addressesPerLine=void 0,this.customParameters={}}addCustomParameter(s,e){this.customParameters[s]=e}}}export{t as __require};
@@ -1 +1 @@
1
- import{__require as e}from"./Response.mjs";var t,r;function s(){if(r)return t;r=1;const s=e();return t=class{constructor(e,t,r=""){this.latitude=e.toFixed(8),this.longitude=t.toFixed(8),this.source=r,this.response=new s}}}export{s as __require};
1
+ import{__require as t}from"./Response.mjs";var e,s;function r(){if(s)return e;s=1;const r=t();return e=class{constructor(t,e,s=""){this.latitude=t.toFixed(8),this.longitude=e.toFixed(8),this.source=s,this.response=new r,this.customParameters={}}addCustomParameter(t,e){this.customParameters[t]=e}}}export{r as __require};
@@ -1 +1 @@
1
- var t,s;function i(){if(s)return t;s=1;return t=class{constructor(t,s,i,e,r,h,a,n,o,u,c,d,f,l){this.street=t,this.street2=s,this.secondary=i,this.city=e,this.state=r,this.zipCode=h,this.lastLine=a,this.addressee=n,this.urbanization=o,this.match=u,this.maxCandidates=c,this.inputId=d,this.format=f,this.countySource=l,this.result=[]}}}export{i as __require};
1
+ var t,s;function i(){if(s)return t;s=1;return t=class{constructor(t,s,i,e,r,a,h,o,u,n,c,d,m,f){this.street=t,this.street2=s,this.secondary=i,this.city=e,this.state=r,this.zipCode=a,this.lastLine=h,this.addressee=o,this.urbanization=u,this.match=n,this.maxCandidates=c,this.inputId=d,this.format=m,this.countySource=f,this.result=[],this.customParameters={}}addCustomParameter(t,s){this.customParameters[t]=s}}}export{i as __require};
@@ -1 +1 @@
1
- var t,i;function r(){if(i)return t;i=1;return t=class{constructor(t,i,r,s){this.city=t,this.state=i,this.zipCode=r,this.inputId=s,this.result=[]}}}export{r as __require};
1
+ var t,s;function r(){if(s)return t;s=1;return t=class{constructor(t,s,r,e){this.city=t,this.state=s,this.zipCode=r,this.inputId=e,this.result=[],this.customParameters={}}addCustomParameter(t,s){this.customParameters[t]=s}}}export{r as __require};
@@ -1 +1 @@
1
- import{__require as r}from"../InputData.mjs";var t,e;function n(){if(e)return t;e=1;const n=r();return t=(r,t)=>{let e=new n(r);for(let r in t)e.add(r,t[r]);return e.data}}export{n as __require};
1
+ import{__require as r}from"../InputData.mjs";var t,e;function a(){if(e)return t;e=1;const a=r();return t=(r,t)=>{let e=new a(r);const s=Object.keys(r.customParameters??{}).length>0;for(let r in t)e.add(r,t[r]);if(s)for(let t in r.customParameters)e.addCustomParameter(t,r.customParameters[t]);return e.data}}export{a as __require};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "smartystreets-javascript-sdk",
3
- "version": "6.1.1",
3
+ "version": "6.2.0",
4
4
  "description": "Quick and easy Smarty address validation.",
5
5
  "keywords": [
6
6
  "smarty",