smartystreets-javascript-sdk
Advanced tools
Comparing version 1.4.4 to 1.4.5
@@ -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", |
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances in 1 package
146765
3280
9