smartystreets-javascript-sdk
Advanced tools
Comparing version 5.0.1 to 5.1.0
@@ -37,2 +37,6 @@ module.exports = { | ||
}, | ||
usEnrichment: { | ||
Lookup: require("./src/us_enrichment/Lookup"), | ||
Response: require("./src/us_enrichment/Response"), | ||
}, | ||
}; |
{ | ||
"name": "smartystreets-javascript-sdk", | ||
"version": "5.0.1", | ||
"version": "5.1.0", | ||
"description": "Quick and easy Smarty address validation.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -22,2 +22,3 @@ const HttpSender = require("./HttpSender"); | ||
const InternationalAddressAutocompleteClient = require("./international_address_autocomplete/Client"); | ||
const UsEnrichmentClient = require("./us_enrichment/Client"); | ||
@@ -31,2 +32,3 @@ const INTERNATIONAL_STREET_API_URI = "https://international-street.api.smarty.com/verify"; | ||
const INTERNATIONAL_ADDRESS_AUTOCOMPLETE_API_URL = "https://international-autocomplete.api.smarty.com/v2/lookup"; | ||
const US_ENRICHMENT_API_URL = "https://us-enrichment.api.smarty.com/lookup"; | ||
@@ -206,4 +208,8 @@ /** | ||
} | ||
buildUsEnrichmentClient() { | ||
return this.buildClient(US_ENRICHMENT_API_URL, UsEnrichmentClient); | ||
} | ||
} | ||
module.exports = ClientBuilder; |
@@ -68,3 +68,9 @@ module.exports = { | ||
addr_per_line: "addressesPerLine", | ||
}, | ||
usEnrichment: { | ||
include: "include", | ||
exclude: "exclude", | ||
dataset: "dataset", | ||
data_subset: "dataSubset", | ||
} | ||
}; |
@@ -35,2 +35,6 @@ const ClientBuilder = require("../ClientBuilder"); | ||
function buildUsEnrichmentApiClient(credentials) { | ||
return instantiateClientBuilder(credentials).buildUsEnrichmentClient(); | ||
} | ||
module.exports = { | ||
@@ -44,2 +48,3 @@ usStreet: buildUsStreetApiClient, | ||
internationalAddressAutocomplete: buildInternationalAddressAutocompleteApiClient, | ||
usEnrichment: buildUsEnrichmentApiClient, | ||
}; |
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
267705
98
5482