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.4.4 to 1.4.5

11

examples/international_street.js

@@ -5,6 +5,11 @@ const SmartyStreetsSDK = require("smartystreets-javascript-sdk");

let authId = process.env.SMARTY_AUTH_ID;
let authToken = process.env.SMARTY_AUTH_TOKEN;
const credentials = new SmartyStreetsCore.StaticCredentials(authId, authToken);
// for Server-to-server requests, use this code:
// let authId = process.env.SMARTY_AUTH_ID;
// let authToken = process.env.SMARTY_AUTH_TOKEN;
// const credentials = new SmartyStreetsCore.StaticCredentials(authId, authToken);
// for client-side requests (browser/mobile), use this code:
let key = process.env.SMARTY_WEBSITE_KEY;
const credentials = new SmartyStreetsCore.SharedCredentials(key);
let client = SmartyStreetsCore.buildClient.internationalStreet(credentials);

@@ -11,0 +16,0 @@

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

let websiteKey = "put your website key here.";
const credentials = new SmartyStreetsCore.SharedCredentials(websiteKey);
// for Server-to-server requests, use this code:
// let authId = process.env.SMARTY_AUTH_ID;

@@ -13,2 +11,6 @@ // let authToken = process.env.SMARTY_AUTH_TOKEN;

// for client-side requests (browser/mobile), use this code:
let key = process.env.SMARTY_WEBSITE_KEY;
const credentials = new SmartyStreetsCore.SharedCredentials(key);
let client = SmartyStreetsCore.buildClient.usAutocomplete(credentials);

@@ -15,0 +17,0 @@

@@ -5,6 +5,11 @@ const SmartyStreetsSDK = require("smartystreets-javascript-sdk");

let authId = process.env.SMARTY_AUTH_ID;
let authToken = process.env.SMARTY_AUTH_TOKEN;
const credentials = new SmartyStreetsCore.StaticCredentials(authId, authToken);
// for Server-to-server requests, use this code:
// let authId = process.env.SMARTY_AUTH_ID;
// let authToken = process.env.SMARTY_AUTH_TOKEN;
// const credentials = new SmartyStreetsCore.StaticCredentials(authId, authToken);
// for client-side requests (browser/mobile), use this code:
let key = process.env.SMARTY_WEBSITE_KEY;
const credentials = new SmartyStreetsCore.SharedCredentials(key);
let client = SmartyStreetsCore.buildClient.usExtract(credentials);

@@ -11,0 +16,0 @@

@@ -5,6 +5,10 @@ const SmartyStreetsSDK = require("smartystreets-javascript-sdk");

let authId = process.env.SMARTY_AUTH_ID;
let authToken = process.env.SMARTY_AUTH_TOKEN;
const credentials = new SmartyStreetsCore.StaticCredentials(authId, authToken);
// for Server-to-server requests, use this code:
// let authId = process.env.SMARTY_AUTH_ID;
// let authToken = process.env.SMARTY_AUTH_TOKEN;
// const credentials = new SmartyStreetsCore.StaticCredentials(authId, authToken);
// for client-side requests (browser/mobile), use this code:
let key = process.env.SMARTY_WEBSITE_KEY;
const credentials = new SmartyStreetsCore.SharedCredentials(key);
let client = SmartyStreetsCore.buildClient.usStreet(credentials);

@@ -11,0 +15,0 @@

@@ -5,6 +5,11 @@ const SmartyStreetsSDK = require("smartystreets-javascript-sdk");

let authId = process.env.SMARTY_AUTH_ID;
let authToken = process.env.SMARTY_AUTH_TOKEN;
const credentials = new SmartyStreetsCore.StaticCredentials(authId, authToken);
// for Server-to-server requests, use this code:
// let authId = process.env.SMARTY_AUTH_ID;
// let authToken = process.env.SMARTY_AUTH_TOKEN;
// const credentials = new SmartyStreetsCore.StaticCredentials(authId, authToken);
// for client-side requests (browser/mobile), use this code:
let key = process.env.SMARTY_WEBSITE_KEY;
const credentials = new SmartyStreetsCore.SharedCredentials(key);
let client = SmartyStreetsCore.buildClient.usZipcode(credentials);

@@ -11,0 +16,0 @@

{
"name": "smartystreets-javascript-sdk",
"version": "1.4.4",
"version": "1.4.5",
"description": "Quick and easy SmartyStreets address validation.",

@@ -41,3 +41,3 @@ "keywords": [

"chai-as-promised": "^7.1.1",
"mocha": "^5.0.5",
"mocha": "^8.0.1",
"s3-upload-stream": "^1.0.7",

@@ -44,0 +44,0 @@ "tinyify": "^2.5.2",

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