New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

smartystreets-javascript-sdk

Package Overview
Dependencies
Maintainers
4
Versions
99
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.11.7 to 1.11.8

2

package.json
{
"name": "smartystreets-javascript-sdk",
"version": "1.11.7",
"version": "1.11.8",
"description": "Quick and easy SmartyStreets address validation.",

@@ -5,0 +5,0 @@ "keywords": [

@@ -31,2 +31,4 @@ const Candidate = require("./Candidate");

if (dataIsLookup) {
if (data.maxCandidates == null && data.match == "enhanced")
data.maxCandidates = 5;
batch = new Batch();

@@ -33,0 +35,0 @@ batch.add(data);

@@ -55,2 +55,17 @@ const chai = require("chai");

it("defaults maxCandidates to 5 when match type is enhanced.", function () {
let mockSender = new MockSender();
const client = new Client(mockSender);
let lookup = new Lookup();
lookup.match = "enhanced";
let expectedParameters = {
match: "enhanced",
candidates: 5,
};
client.send(lookup);
expect(mockSender.request.parameters).to.deep.equal(expectedParameters);
});
it("doesn't send an empty batch.", function () {

@@ -57,0 +72,0 @@ let mockSender = new MockSender();

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