smartystreets-javascript-sdk 2.0.0 → 2.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 -
|
|
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 -
|
|
14
|
+
tagit -m
|
|
15
15
|
git push origin --tags
|
|
16
16
|
|
|
17
17
|
upload:
|
package/package.json
CHANGED
|
@@ -25,6 +25,8 @@ class Candidate {
|
|
|
25
25
|
this.components.countryIso3 = responseData.components.country_iso_3;
|
|
26
26
|
this.components.superAdministrativeArea = responseData.components.super_administrative_area;
|
|
27
27
|
this.components.administrativeArea = responseData.components.administrative_area;
|
|
28
|
+
this.components.administrativeAreaShort = responseData.components.administrative_area_short;
|
|
29
|
+
this.components.administrativeAreaLong = responseData.components.administrative_area_long;
|
|
28
30
|
this.components.subAdministrativeArea = responseData.components.sub_administrative_area;
|
|
29
31
|
this.components.dependentLocality = responseData.components.dependent_locality;
|
|
30
32
|
this.components.dependentLocalityName = responseData.components.dependent_locality_name;
|
|
@@ -58,6 +60,8 @@ class Candidate {
|
|
|
58
60
|
this.components.subBuildingNumber = responseData.components.sub_building_number;
|
|
59
61
|
this.components.subBuildingName = responseData.components.sub_building_name;
|
|
60
62
|
this.components.subBuilding = responseData.components.sub_building;
|
|
63
|
+
this.components.levelType = responseData.components.level_type;
|
|
64
|
+
this.components.levelNumber = responseData.components.level_number;
|
|
61
65
|
this.components.postBox = responseData.components.post_box;
|
|
62
66
|
this.components.postBoxType = responseData.components.post_box_type;
|
|
63
67
|
this.components.postBoxNumber = responseData.components.post_box_number;
|
|
@@ -90,6 +94,8 @@ class Candidate {
|
|
|
90
94
|
this.analysis.changes.components.countryIso3 = responseData.analysis.changes.components.country_iso_3;
|
|
91
95
|
this.analysis.changes.components.superAdministrativeArea = responseData.analysis.changes.components.super_administrative_area;
|
|
92
96
|
this.analysis.changes.components.administrativeArea = responseData.analysis.changes.components.administrative_area;
|
|
97
|
+
this.analysis.changes.components.administrativeAreaShort = responseData.analysis.changes.components.administrative_area_short;
|
|
98
|
+
this.analysis.changes.components.administrativeAreaLong = responseData.analysis.changes.components.administrative_area_long;
|
|
93
99
|
this.analysis.changes.components.subAdministrativeArea = responseData.analysis.changes.components.sub_administrative_area;
|
|
94
100
|
this.analysis.changes.components.dependentLocality = responseData.analysis.changes.components.dependent_locality;
|
|
95
101
|
this.analysis.changes.components.dependentLocalityName = responseData.analysis.changes.components.dependent_locality_name;
|
|
@@ -123,6 +129,8 @@ class Candidate {
|
|
|
123
129
|
this.analysis.changes.components.subBuildingNumber = responseData.analysis.changes.components.sub_building_number;
|
|
124
130
|
this.analysis.changes.components.subBuildingName = responseData.analysis.changes.components.sub_building_name;
|
|
125
131
|
this.analysis.changes.components.subBuilding = responseData.analysis.changes.components.sub_building;
|
|
132
|
+
this.analysis.changes.components.levelType = responseData.analysis.changes.components.level_type;
|
|
133
|
+
this.analysis.changes.components.levelNumber = responseData.analysis.changes.components.level_number;
|
|
126
134
|
this.analysis.changes.components.postBox = responseData.analysis.changes.components.post_box;
|
|
127
135
|
this.analysis.changes.components.postBoxType = responseData.analysis.changes.components.post_box_type;
|
|
128
136
|
this.analysis.changes.components.postBoxNumber = responseData.analysis.changes.components.post_box_number;
|
|
@@ -22,6 +22,8 @@ describe("An International match candidate", function () {
|
|
|
22
22
|
country_iso_3: "14",
|
|
23
23
|
super_administrative_area: "15",
|
|
24
24
|
administrative_area: "16",
|
|
25
|
+
administrative_area_short: "16.1",
|
|
26
|
+
administrative_area_long: "16.2",
|
|
25
27
|
sub_administrative_area: "17",
|
|
26
28
|
dependent_locality: "18",
|
|
27
29
|
dependent_locality_name: "19",
|
|
@@ -55,6 +57,8 @@ describe("An International match candidate", function () {
|
|
|
55
57
|
sub_building_number: "46",
|
|
56
58
|
sub_building_name: "47",
|
|
57
59
|
sub_building: "48",
|
|
60
|
+
level_type: "48.1",
|
|
61
|
+
level_number: "48.2",
|
|
58
62
|
post_box: "49",
|
|
59
63
|
post_box_type: "50",
|
|
60
64
|
post_box_number: "51",
|
|
@@ -88,6 +92,8 @@ describe("An International match candidate", function () {
|
|
|
88
92
|
country_iso_3: "73",
|
|
89
93
|
super_administrative_area: "74",
|
|
90
94
|
administrative_area: "75",
|
|
95
|
+
administrative_area_short: "75.1",
|
|
96
|
+
administrative_area_long: "75.2",
|
|
91
97
|
sub_administrative_area: "76",
|
|
92
98
|
dependent_locality: "77",
|
|
93
99
|
dependent_locality_name: "78",
|
|
@@ -121,6 +127,8 @@ describe("An International match candidate", function () {
|
|
|
121
127
|
sub_building_number: "106",
|
|
122
128
|
sub_building_name: "107",
|
|
123
129
|
sub_building: "108",
|
|
130
|
+
level_type: "108.1",
|
|
131
|
+
level_number: "108.2",
|
|
124
132
|
post_box: "109",
|
|
125
133
|
post_box_type: "110",
|
|
126
134
|
post_box_number: "111",
|
|
@@ -148,6 +156,8 @@ describe("An International match candidate", function () {
|
|
|
148
156
|
expect(components.countryIso3).to.equal("14");
|
|
149
157
|
expect(components.superAdministrativeArea).to.equal("15");
|
|
150
158
|
expect(components.administrativeArea).to.equal("16");
|
|
159
|
+
expect(components.administrativeAreaShort).to.equal("16.1");
|
|
160
|
+
expect(components.administrativeAreaLong).to.equal("16.2");
|
|
151
161
|
expect(components.subAdministrativeArea).to.equal("17");
|
|
152
162
|
expect(components.dependentLocality).to.equal("18");
|
|
153
163
|
expect(components.dependentLocalityName).to.equal("19");
|
|
@@ -181,6 +191,8 @@ describe("An International match candidate", function () {
|
|
|
181
191
|
expect(components.subBuildingNumber).to.equal("46");
|
|
182
192
|
expect(components.subBuildingName).to.equal("47");
|
|
183
193
|
expect(components.subBuilding).to.equal("48");
|
|
194
|
+
expect(components.levelType).to.equal("48.1");
|
|
195
|
+
expect(components.levelNumber).to.equal("48.2");
|
|
184
196
|
expect(components.postBox).to.equal("49");
|
|
185
197
|
expect(components.postBoxType).to.equal("50");
|
|
186
198
|
expect(components.postBoxNumber).to.equal("51");
|
|
@@ -212,6 +224,8 @@ describe("An International match candidate", function () {
|
|
|
212
224
|
expect(ccomponents.countryIso3).to.equal("73");
|
|
213
225
|
expect(ccomponents.superAdministrativeArea).to.equal("74");
|
|
214
226
|
expect(ccomponents.administrativeArea).to.equal("75");
|
|
227
|
+
expect(ccomponents.administrativeAreaShort).to.equal("75.1");
|
|
228
|
+
expect(ccomponents.administrativeAreaLong).to.equal("75.2");
|
|
215
229
|
expect(ccomponents.subAdministrativeArea).to.equal("76");
|
|
216
230
|
expect(ccomponents.dependentLocality).to.equal("77");
|
|
217
231
|
expect(ccomponents.dependentLocalityName).to.equal("78");
|
|
@@ -245,6 +259,8 @@ describe("An International match candidate", function () {
|
|
|
245
259
|
expect(ccomponents.subBuildingNumber).to.equal("106");
|
|
246
260
|
expect(ccomponents.subBuildingName).to.equal("107");
|
|
247
261
|
expect(ccomponents.subBuilding).to.equal("108");
|
|
262
|
+
expect(ccomponents.levelType).to.equal("108.1");
|
|
263
|
+
expect(ccomponents.levelNumber).to.equal("108.2");
|
|
248
264
|
expect(ccomponents.postBox).to.equal("109");
|
|
249
265
|
expect(ccomponents.postBoxType).to.equal("110");
|
|
250
266
|
expect(ccomponents.postBoxNumber).to.equal("111");
|