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.1.1 to 5.1.2

3

examples/international_address_autocomplete.js

@@ -18,3 +18,4 @@ const SmartySDK = require("smartystreets-javascript-sdk");

const clientBuilder = new SmartyCore.ClientBuilder(credentials).withLicenses(["international-autocomplete-v2-cloud"])
// .withBaseUrl("");
// .withBaseUrl("YOUR URL") // withBaseUrl() should be used if you are self-hosting the Smarty API
const client = clientBuilder.buildInternationalAddressAutocompleteClient();

@@ -21,0 +22,0 @@

@@ -18,2 +18,4 @@ const SmartySDK = require("smartystreets-javascript-sdk");

let clientBuilder = new SmartyCore.ClientBuilder(credentials).withLicenses(["international-global-plus-cloud"]);
// .withBaseUrl("YOUR URL") // withBaseUrl() should be used if you are self-hosting the Smarty API
let client = clientBuilder.buildInternationalStreetClient();

@@ -20,0 +22,0 @@

@@ -18,3 +18,4 @@ const SmartySDK = require("smartystreets-javascript-sdk");

let clientBuilder = new SmartyCore.ClientBuilder(credentials).withLicenses(["us-autocomplete-pro-cloud"]);
// .withBaseUrl("");
// .withBaseUrl("YOUR URL") // withBaseUrl() should be used if you are self-hosting the Smarty API
let client = clientBuilder.buildUsAutocompleteProClient();

@@ -21,0 +22,0 @@

@@ -18,4 +18,5 @@ const SmartySDK = require("smartystreets-javascript-sdk");

let clientBuilder = new SmartyCore.ClientBuilder(credentials).withLicenses(["us-property-data-principal-cloud"]);
// .withBaseUrl("YOUR URL") // withBaseUrl() should be used if you are self-hosting the Smarty API
let client = clientBuilder.buildUsEnrichmentClient();
console.log(client);

@@ -25,21 +26,13 @@ // Documentation for input fields can be found at:

let lookup = new Lookup("7");
let lookup = new Lookup("334968275");
handleResponse(lookup).then();
function handleSuccess(response) {
response.lookups.map(lookup => console.log(lookup.result));
}
function handleError(response) {
console.log(response);
}
async function handleResponse(lookup) {
try {
const result = await client.sendPrincipal(lookup);
handleSuccess(result);
} catch(err) {
handleError(err);
}
try {
const result = await client.sendPrincipal(lookup);
console.log(result.response);
} catch (err) {
console.log(err);
}
}

@@ -15,3 +15,4 @@ const SmartySDK = require("smartystreets-javascript-sdk");

let clientBuilder = new SmartyCore.ClientBuilder(credentials);
// .withBaseUrl("");
// .withBaseUrl("YOUR URL") // withBaseUrl() should be used if you are self-hosting the Smarty API
let client = clientBuilder.buildUsExtractClient();

@@ -18,0 +19,0 @@

@@ -18,3 +18,3 @@ const SmartySDK = require("smartystreets-javascript-sdk");

let clientBuilder = new SmartyCore.ClientBuilder(credentials).withLicenses(["us-reverse-geocoding-cloud"]);
// .withBaseUrl("");
// .withBaseUrl("YOUR URL") // withBaseUrl() should be used if you are self-hosting the Smarty API
let client = clientBuilder.buildUsReverseGeoClient();

@@ -21,0 +21,0 @@

@@ -17,3 +17,5 @@ const SmartySDK = require("smartystreets-javascript-sdk");

// https://www.smarty.com/docs/cloud/licensing
let clientBuilder = new SmartyCore.ClientBuilder(credentials).withBaseUrl("YOUR URL").withLicenses(["us-rooftop-geocoding-cloud"]);
let clientBuilder = new SmartyCore.ClientBuilder(credentials).withLicenses(["us-rooftop-geocoding-cloud"]);
// .withBaseUrl("YOUR URL") // withBaseUrl() should be used if you are self-hosting the Smarty API
let client = clientBuilder.buildUsStreetApiClient();

@@ -20,0 +22,0 @@

@@ -15,3 +15,4 @@ const SmartySDK = require("smartystreets-javascript-sdk");

let clientBuilder = new SmartyCore.ClientBuilder(credentials);
// .withBaseUrl("");
// .withBaseUrl("YOUR URL") // withBaseUrl() should be used if you are self-hosting the Smarty API
let client = clientBuilder.buildUsZipcodeClient();

@@ -18,0 +19,0 @@

{
"name": "smartystreets-javascript-sdk",
"version": "5.1.1",
"version": "5.1.2",
"description": "Quick and easy Smarty address validation.",

@@ -5,0 +5,0 @@ "keywords": [

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