smartystreets-javascript-sdk
Advanced tools
Comparing version 1.9.2 to 1.9.3
18
index.js
@@ -12,27 +12,31 @@ module.exports = { | ||
Lookup: require("./src/us_street/Lookup"), | ||
Candidate: require("./src/us_street/Candidate") | ||
Candidate: require("./src/us_street/Candidate"), | ||
}, | ||
usZipcode: { | ||
Lookup: require("./src/us_zipcode/Lookup"), | ||
Result: require("./src/us_zipcode/Result") | ||
Result: require("./src/us_zipcode/Result"), | ||
}, | ||
usAutocomplete: { | ||
Lookup: require("./src/us_autocomplete/Lookup"), | ||
Suggestion: require("./src/us_autocomplete/Suggestion") | ||
Suggestion: require("./src/us_autocomplete/Suggestion"), | ||
}, | ||
usAutocompletePro: { | ||
Lookup: require("./src/us_autocomplete_pro/Lookup"), | ||
Suggestion: require("./src/us_autocomplete_pro/Suggestion") | ||
Suggestion: require("./src/us_autocomplete_pro/Suggestion"), | ||
}, | ||
usExtract: { | ||
Lookup: require("./src/us_extract/Lookup"), | ||
Result: require("./src/us_extract/Result") | ||
Result: require("./src/us_extract/Result"), | ||
}, | ||
internationalStreet: { | ||
Lookup: require("./src/international_street/Lookup"), | ||
Candidate: require("./src/international_street/Candidate") | ||
Candidate: require("./src/international_street/Candidate"), | ||
}, | ||
usReverseGeo: { | ||
Lookup: require("./src/us_reverse_geo/Lookup") | ||
Lookup: require("./src/us_reverse_geo/Lookup"), | ||
}, | ||
internationalAddressAutocomplete: { | ||
Lookup: require("./src/international_address_autocomplete/Lookup"), | ||
Suggestion: require("./src/international_address_autocomplete/Suggestion"), | ||
}, | ||
}; |
{ | ||
"name": "smartystreets-javascript-sdk", | ||
"version": "1.9.2", | ||
"version": "1.9.3", | ||
"description": "Quick and easy SmartyStreets address validation.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -20,2 +20,3 @@ const HttpSender = require("./HttpSender"); | ||
const UsReverseGeoClient = require("./us_reverse_geo/Client"); | ||
const InternationalAddressAutocompleteClient = require("./international_address_autocomplete/Client"); | ||
@@ -29,2 +30,3 @@ const INTERNATIONAL_STREET_API_URI = "https://international-street.api.smartystreets.com/verify"; | ||
const US_REVERSE_GEO_API_URL = "https://us-reverse-geo.api.smartystreets.com/lookup"; | ||
const INTERNATIONAL_ADDRESS_AUTOCOMPLETE_API_URL = "https://international-autocomplete.api.smartystreets.com/lookup"; | ||
@@ -104,3 +106,3 @@ /** | ||
host: host, | ||
port: port | ||
port: port, | ||
}; | ||
@@ -111,3 +113,3 @@ | ||
username: username, | ||
password: password | ||
password: password, | ||
}; | ||
@@ -151,3 +153,2 @@ } | ||
buildSender() { | ||
@@ -202,4 +203,8 @@ if (this.httpSender) return this.httpSender; | ||
} | ||
buildInternationalAddressAutocompleteClient() { | ||
return this.buildClient(INTERNATIONAL_ADDRESS_AUTOCOMPLETE_API_URL, InternationalAddressAutocompleteClient); | ||
} | ||
} | ||
module.exports = ClientBuilder; |
@@ -35,2 +35,6 @@ const ClientBuilder = require("../ClientBuilder"); | ||
function buildInternationalAddressAutocompleteApiClient(credentials) { | ||
return instantiateClientBuilder(credentials).buildInternationalAddressAutocompleteClient(); | ||
} | ||
module.exports = { | ||
@@ -44,2 +48,3 @@ usStreet: buildUsStreetApiClient, | ||
usReverseGeo: buildUsReverseGeoApiClient, | ||
internationalAddressAutocomplete: buildInternationalAddressAutocompleteApiClient, | ||
}; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
164215
94
3743