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

smartystreets-javascript-sdk

Package Overview
Dependencies
Maintainers
1
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 1.3.1 to 1.4.0

src/util/buildClients.js

4

examples/international_street.js

@@ -7,5 +7,5 @@ const SmartyStreetsSDK = require("../index");

let authToken = process.env.SMARTY_AUTH_TOKEN;
const credentials = new SmartyStreetsCore.StaticCredentials(authId, authToken);
let clientBuilder = new SmartyStreetsCore.ClientBuilder(new SmartyStreetsCore.StaticCredentials(authId, authToken));
let client = clientBuilder.buildInternationalStreetClient();
let client = SmartyStreetsCore.buildClient.internationalStreet(credentials);

@@ -12,0 +12,0 @@ // Documentation for input fields can be found at:

@@ -6,11 +6,10 @@ const SmartyStreetsSDK = require("../index");

let websiteKey = "put your website key here.";
const credentials = new SmartyStreetsCore.SharedCredentials(websiteKey);
// let authId = process.env.SMARTY_AUTH_ID;
// let authToken = process.env.SMARTY_AUTH_TOKEN;
// const credentials = new SmartyStreetsCore.StaticCredentials(authId, authToken);
let clientBuilder = new SmartyStreetsCore.ClientBuilder(new SmartyStreetsCore.SharedCredentials(websiteKey));
// let clientBuilder = new SmartyStreetsCore.ClientBuilder(new SmartyStreetsCore.StaticCredentials(authId, authToken));
let client = SmartyStreetsCore.buildClient.usAutocomplete(credentials);
let client = clientBuilder.buildUsAutocompleteClient();
// Documentation for input fields can be found at:

@@ -17,0 +16,0 @@ // https://smartystreets.com/docs/cloud/us-autocomplete-api#http-request-input-fields

@@ -7,5 +7,5 @@ const SmartyStreetsSDK = require("../index");

let authToken = process.env.SMARTY_AUTH_TOKEN;
const credentials = new SmartyStreetsCore.StaticCredentials(authId, authToken);
let clientBuilder = new SmartyStreetsCore.ClientBuilder(new SmartyStreetsCore.StaticCredentials(authId, authToken));
let client = clientBuilder.buildUsExtractClient();
let client = SmartyStreetsCore.buildClient.usExtract(credentials);

@@ -12,0 +12,0 @@ // Documentation for input fields can be found at:

@@ -7,5 +7,5 @@ const SmartyStreetsSDK = require("../index");

let authToken = process.env.SMARTY_AUTH_TOKEN;
const credentials = new SmartyStreetsCore.StaticCredentials(authId, authToken);
let clientBuilder = new SmartyStreetsCore.ClientBuilder(new SmartyStreetsCore.StaticCredentials(authId, authToken));
let client = clientBuilder.buildUsStreetApiClient();
let client = SmartyStreetsCore.buildClient.usStreet(credentials);

@@ -12,0 +12,0 @@ // Documentation for input fields can be found at:

@@ -7,5 +7,5 @@ const SmartyStreetsSDK = require("../index");

let authToken = process.env.SMARTY_AUTH_TOKEN;
const credentials = new SmartyStreetsCore.StaticCredentials(authId, authToken);
let clientBuilder = new SmartyStreetsCore.ClientBuilder(new SmartyStreetsCore.StaticCredentials(authId, authToken));
let client = clientBuilder.buildUsZipcodeClient();
let client = SmartyStreetsCore.buildClient.usZipcode(credentials);

@@ -12,0 +12,0 @@ // Documentation for input fields can be found at:

@@ -5,2 +5,3 @@ module.exports = {

ClientBuilder: require("./src/ClientBuilder"),
buildClient: require("./src/util/buildClients"),
SharedCredentials: require("./src/SharedCredentials"),

@@ -7,0 +8,0 @@ StaticCredentials: require("./src/StaticCredentials"),

{
"name": "smartystreets-javascript-sdk",
"version": "1.3.1",
"version": "1.4.0",
"description": "Quick and easy SmartyStreets 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