smartystreets-javascript-sdk 3.0.0 → 3.1.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 -M --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 -M
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.0.0",
3
+ "version": "3.1.0",
4
4
  "description": "Quick and easy Smarty address validation.",
5
5
  "keywords": [
6
6
  "smarty",
@@ -14,6 +14,7 @@ class Candidate {
14
14
  this.deliveryLine2 = responseData.delivery_line_2;
15
15
  this.lastLine = responseData.last_line;
16
16
  this.deliveryPointBarcode = responseData.delivery_point_barcode;
17
+ this.smartyKey = responseData.smarty_key;
17
18
 
18
19
  this.components = {};
19
20
  if (responseData.components !== undefined) {
@@ -12,6 +12,7 @@ describe("A match candidate", function () {
12
12
  delivery_line_2: "4",
13
13
  last_line: "5",
14
14
  delivery_point_barcode: "6",
15
+ smarty_key: "0000",
15
16
  components: {
16
17
  urbanization: "7",
17
18
  primary_number: "8",
@@ -76,6 +77,7 @@ describe("A match candidate", function () {
76
77
  expect(candidate.deliveryLine2).to.equal('4');
77
78
  expect(candidate.lastLine).to.equal('5');
78
79
  expect(candidate.deliveryPointBarcode).to.equal('6');
80
+ expect(candidate.smartyKey).to.equal('0000');
79
81
 
80
82
  expect(candidate.components.urbanization).to.equal('7');
81
83
  expect(candidate.components.primaryNumber).to.equal('8');