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

smartystreets-javascript-sdk

Package Overview
Dependencies
Maintainers
5
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.13.2 to 1.13.3

16

package.json
{
"name": "smartystreets-javascript-sdk",
"version": "1.13.2",
"version": "1.13.3",
"description": "Quick and easy Smarty address validation.",

@@ -35,19 +35,9 @@ "keywords": [

"devDependencies": {
"aws-sdk": "^2.803.0",
"babel-core": "^6.26.0",
"babel-preset-env": "^1.6.1",
"babelify": "^8.0.0",
"browserify": "^16.5.2",
"chai": "^4.2.0",
"chai-as-promised": "^7.1.1",
"mocha": "^9.2.1",
"s3-upload-stream": "^1.0.7",
"tinyify": "^2.5.2",
"zlib": "^1.0.5"
"mocha": "^9.2.1"
},
"dependencies": {
"axios": "^0.26.1",
"axios-retry": "3.2.0",
"promise": "^8.1.0"
"axios-retry": "3.2.0"
}
}

@@ -1,3 +0,1 @@

const Promise = require("promise");
class AgentSender {

@@ -4,0 +2,0 @@ constructor(innerSender) {

@@ -1,3 +0,1 @@

const Promise = require("promise");
class BaseUrlSender {

@@ -4,0 +2,0 @@ constructor(innerSender, urlOverride) {

@@ -1,3 +0,1 @@

const Promise = require("promise");
class CustomHeaderSender {

@@ -4,0 +2,0 @@ constructor(innerSender, customHeaders) {

const Response = require("./Response");
const Axios = require("axios");
const axiosRetry = require("axios-retry");
const Promise = require("promise");

@@ -6,0 +5,0 @@ class HttpSender {

const Errors = require("../Errors");
const Request = require("../Request");
const Promise = require("promise");
const Suggestion = require("./Suggestion");

@@ -5,0 +4,0 @@

const Request = require("../Request");
const Errors = require("../Errors");
const Candidate = require("./Candidate");
const Promise = require("promise");
const buildInputData = require("../util/buildInputData");

@@ -6,0 +5,0 @@ const keyTranslationFormat = require("../util/apiToSDKKeyMap").internationalStreet;

@@ -1,3 +0,1 @@

const Promise = require("promise");
class LicenseSender {

@@ -4,0 +2,0 @@ constructor(innerSender, licenses) {

@@ -1,2 +0,1 @@

const Promise = require("promise");
const UnprocessableEntityError = require("./Errors").UnprocessableEntityError;

@@ -3,0 +2,0 @@ const SharedCredentials = require("./SharedCredentials");

@@ -1,2 +0,1 @@

const Promise = require("promise");
const Errors = require("./Errors");

@@ -3,0 +2,0 @@

const Errors = require("../Errors");
const Request = require("../Request");
const Suggestion = require("./Suggestion");
const Promise = require("promise");

@@ -6,0 +5,0 @@ /**

const Errors = require("../Errors");
const Request = require("../Request");
const Suggestion = require("./Suggestion");
const Promise = require("promise");

@@ -6,0 +5,0 @@ /**

const Errors = require("../Errors");
const Promise = require("promise");
const Request = require("../Request");

@@ -4,0 +3,0 @@ const Result = require("./Result");

const Request = require("../Request");
const Promise = require("promise");
const Errors = require("../Errors");

@@ -4,0 +3,0 @@ const buildInputData = require("../util/buildInputData");

@@ -1,2 +0,1 @@

const Promise = require("promise");
const Response = require("../../src/Response");

@@ -3,0 +2,0 @@

const chai = require("chai");
const expect = chai.expect;
const chaiAsPromised = require("chai-as-promised");
chai.use(chaiAsPromised);
const Client = require("../../src/international_address_autocomplete/Client");

@@ -6,0 +4,0 @@ const Lookup = require("../../src/international_address_autocomplete/Lookup");

@@ -5,3 +5,2 @@ const chai = require("chai");

const Request = require("../src/Request");
const Promise = require("promise");

@@ -8,0 +7,0 @@ describe("A base url sender", function () {

@@ -5,3 +5,2 @@ const chai = require("chai");

const Request = require("../src/Request");
const Promise = require("promise");

@@ -8,0 +7,0 @@ describe("A custom header sender", function () {

@@ -5,3 +5,2 @@ const chai = require("chai");

const Request = require("../src/Request");
const Promise = require("promise");

@@ -8,0 +7,0 @@ describe("A license sender", function () {

4

tests/us_autocomplete_pro/test_Client.js
const chai = require("chai");
const expect = chai.expect;
const chaiAsPromised = require("chai-as-promised");
chai.use(chaiAsPromised);
const Client = require("../../src/us_autocomplete_pro/Client");

@@ -89,3 +87,3 @@ const Lookup = require("../../src/us_autocomplete_pro/Lookup");

return expect(client.send(lookup)).to.eventually.be.rejectedWith(expectedError);
return client.send(lookup).catch((e) => {expect(e).to.equal(expectedError);});
});

@@ -92,0 +90,0 @@

const chai = require("chai");
const expect = chai.expect;
const chaiAsPromised = require("chai-as-promised");
chai.use(chaiAsPromised);
const Client = require("../../src/us_autocomplete/Client");

@@ -75,3 +73,3 @@ const Lookup = require("../../src/us_autocomplete/Lookup");

return expect(client.send(lookup)).to.eventually.be.rejectedWith(expectedError);
return client.send(lookup).catch((e) => {expect(e).to.equal(expectedError);});
});

@@ -78,0 +76,0 @@

const chai = require("chai");
const expect = chai.expect;
const chaiAsPromised = require("chai-as-promised");
chai.use(chaiAsPromised);
const Client = require("../../src/us_extract/Client");

@@ -72,3 +70,3 @@ const Lookup = require("../../src/us_extract/Lookup");

return expect(client.send(lookup)).to.eventually.be.rejectedWith(expectedError);
return client.send(lookup).catch((e) => {expect(e).to.equal(expectedError);});
});

@@ -75,0 +73,0 @@

const chai = require("chai");
const chaiAsPromised = require("chai-as-promised");
chai.use(chaiAsPromised);
const expect = chai.expect;

@@ -5,0 +3,0 @@ const Client = require("../../src/us_reverse_geo/Client");

const chai = require("chai");
const chaiAsPromised = require("chai-as-promised");
chai.use(chaiAsPromised);
const expect = chai.expect;

@@ -125,3 +123,3 @@ const Client = require("../../src/us_street/Client");

return expect(client.send(lookup)).to.eventually.be.rejectedWith(expectedMockError);
return client.send(lookup).catch((e) => {expect(e).to.equal(expectedMockError);});
});

@@ -128,0 +126,0 @@

let chai = require("chai");
const chaiAsPromised = require("chai-as-promised");
chai.use(chaiAsPromised);
const expect = chai.expect;

@@ -10,3 +8,2 @@ const Client = require("../../src/us_zipcode/Client");

const errors = require("../../src/Errors");
const Promise = require("promise");
const MockSender = require("../fixtures/mock_senders").MockSender;

@@ -130,3 +127,3 @@ const MockSenderWithResponse = require("../fixtures/mock_senders").MockSenderWithResponse;

return expect(client.send(lookup)).to.eventually.be.rejectedWith(expectedMockError);
return client.send(lookup).catch((e) => {expect(e).to.equal(expectedMockError);});
});

@@ -133,0 +130,0 @@

Sorry, the diff of this file is not supported yet

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