Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

smartystreets-javascript-sdk

Package Overview
Dependencies
Maintainers
8
Versions
98
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

smartystreets-javascript-sdk - npm Package Compare versions

Comparing version 5.0.1 to 5.1.0

src/us_enrichment/Client.js

4

index.js

@@ -37,2 +37,6 @@ module.exports = {

},
usEnrichment: {
Lookup: require("./src/us_enrichment/Lookup"),
Response: require("./src/us_enrichment/Response"),
},
};

2

package.json
{
"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,
};
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc