smartystreets-javascript-sdk
Advanced tools
Comparing version 1.6.0 to 1.6.2
@@ -6,9 +6,9 @@ const SmartyStreetsSDK = require("smartystreets-javascript-sdk"); | ||
// 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); | ||
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 key = process.env.SMARTY_WEBSITE_KEY; | ||
// const credentials = new SmartyStreetsCore.SharedCredentials(key); | ||
let client = SmartyStreetsCore.buildClient.usStreet(credentials); | ||
@@ -45,2 +45,3 @@ // .withLicenses(["us-rooftop-geo-cloud"]); | ||
// NOTE: batches are not supported when using SharedCredentials. | ||
let batch = new SmartyStreetsCore.Batch(); | ||
@@ -47,0 +48,0 @@ batch.add(lookup1); |
@@ -34,2 +34,5 @@ module.exports = { | ||
}, | ||
usReverseGeo: { | ||
Lookup: require("./src/us_reverse_geo/Lookup") | ||
}, | ||
}; |
{ | ||
"name": "smartystreets-javascript-sdk", | ||
"version": "1.6.0", | ||
"version": "1.6.2", | ||
"description": "Quick and easy SmartyStreets address validation.", | ||
@@ -34,10 +34,10 @@ "keywords": [ | ||
"devDependencies": { | ||
"aws-sdk": "^2.412.0", | ||
"aws-sdk": "^2.803.0", | ||
"babel-core": "^6.26.0", | ||
"babel-preset-env": "^1.6.1", | ||
"babelify": "^8.0.0", | ||
"browserify": "^16.2.3", | ||
"chai": "^4.1.2", | ||
"browserify": "^16.5.2", | ||
"chai": "^4.2.0", | ||
"chai-as-promised": "^7.1.1", | ||
"mocha": "^8.0.1", | ||
"mocha": "^8.2.1", | ||
"s3-upload-stream": "^1.0.7", | ||
@@ -49,5 +49,5 @@ "tinyify": "^2.5.2", | ||
"axios-proxy-fix": "^0.16.3", | ||
"axios-retry": "^3.0.1", | ||
"promise": "^8.0.1" | ||
"axios-retry": "^3.1.9", | ||
"promise": "^8.1.0" | ||
} | ||
} |
@@ -142,5 +142,3 @@ const HttpSender = require("./HttpSender"); | ||
withLicenses(licenses) { | ||
for (const license in licenses) { | ||
this.licenses.push(license); | ||
} | ||
this.licenses = licenses; | ||
@@ -147,0 +145,0 @@ return this; |
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
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
153617
3479
11
Updatedaxios-retry@^3.1.9
Updatedpromise@^8.1.0