smartystreets-javascript-sdk
Advanced tools
Comparing version 3.2.1 to 3.3.0
{ | ||
"name": "smartystreets-javascript-sdk", | ||
"version": "3.2.1", | ||
"version": "3.3.0", | ||
"description": "Quick and easy Smarty address validation.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -7,3 +7,3 @@ /** | ||
class Lookup { | ||
constructor(street, street2, secondary, city, state, zipCode, lastLine, addressee, urbanization, match, maxCandidates, inputId) { | ||
constructor(street, street2, secondary, city, state, zipCode, lastLine, addressee, urbanization, match, maxCandidates, inputId, format) { | ||
this.street = street; | ||
@@ -21,2 +21,3 @@ this.street2 = street2; | ||
this.inputId = inputId; | ||
this.format = format; | ||
this.result = []; | ||
@@ -23,0 +24,0 @@ } |
@@ -13,2 +13,3 @@ module.exports = { | ||
"match": "match", | ||
"format": "format", | ||
"candidates": "maxCandidates", | ||
@@ -15,0 +16,0 @@ }, |
@@ -7,3 +7,3 @@ const chai = require("chai"); | ||
it ("correctly populates fields.", function () { | ||
const lookup = new Lookup("a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l"); | ||
const lookup = new Lookup("a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m"); | ||
@@ -22,2 +22,3 @@ expect(lookup.street).to.equal("a"); | ||
expect(lookup.inputId).to.equal("l"); | ||
expect(lookup.format).to.equal("m"); | ||
}); | ||
@@ -24,0 +25,0 @@ |
Sorry, the diff of this file is not supported yet
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
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
173023
3968
0