smartystreets-javascript-sdk 3.2.1 → 3.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/Makefile CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/make -f
2
2
 
3
- VERSION := $(shell tagit -p --dry-run)
3
+ VERSION := $(shell tagit -m --dry-run)
4
4
  VERSION_FILE1 := package.json
5
5
  VERSION_FILE2 := package-lock.json
6
6
 
@@ -11,7 +11,7 @@ node_modules:
11
11
  npm install
12
12
 
13
13
  publish: test version upload unversion
14
- tagit -p
14
+ tagit -m
15
15
  git push origin --tags
16
16
 
17
17
  upload:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "smartystreets-javascript-sdk",
3
- "version": "3.2.1",
3
+ "version": "3.3.0",
4
4
  "description": "Quick and easy Smarty address validation.",
5
5
  "keywords": [
6
6
  "smarty",
@@ -4,7 +4,7 @@
4
4
  * @see "https://www.smarty.com/docs/cloud/us-street-api#input-fields"
5
5
  */
6
6
  class Lookup {
7
- constructor(street, street2, secondary, city, state, zipCode, lastLine, addressee, urbanization, match, maxCandidates, inputId) {
7
+ constructor(street, street2, secondary, city, state, zipCode, lastLine, addressee, urbanization, match, maxCandidates, inputId, format) {
8
8
  this.street = street;
9
9
  this.street2 = street2;
10
10
  this.secondary = secondary;
@@ -17,6 +17,7 @@ class Lookup {
17
17
  this.match = match;
18
18
  this.maxCandidates = maxCandidates;
19
19
  this.inputId = inputId;
20
+ this.format = format;
20
21
  this.result = [];
21
22
  }
22
23
  }
@@ -10,6 +10,7 @@ module.exports = {
10
10
  "addressee": "addressee",
11
11
  "urbanization": "urbanization",
12
12
  "match": "match",
13
+ "format": "format",
13
14
  "candidates": "maxCandidates",
14
15
  },
15
16
  usZipcode: {
@@ -4,7 +4,7 @@ const Lookup = require("../../src/us_street/Lookup");
4
4
 
5
5
  describe ("A US Street lookup", function () {
6
6
  it ("correctly populates fields.", function () {
7
- const lookup = new Lookup("a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l");
7
+ const lookup = new Lookup("a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m");
8
8
 
9
9
  expect(lookup.street).to.equal("a");
10
10
  expect(lookup.street2).to.equal("b");
@@ -18,6 +18,7 @@ describe ("A US Street lookup", function () {
18
18
  expect(lookup.match).to.equal("j");
19
19
  expect(lookup.maxCandidates).to.equal("k");
20
20
  expect(lookup.inputId).to.equal("l");
21
+ expect(lookup.format).to.equal("m");
21
22
  });
22
23
 
23
24
  it ("has a result array.", function () {