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

smartystreets-javascript-sdk

Package Overview
Dependencies
Maintainers
2
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.6.0 to 1.6.2

11

examples/us_street.js

@@ -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;

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