smartystreets-javascript-sdk 1.13.4 → 1.13.5
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/package.json
CHANGED
|
@@ -18,7 +18,6 @@ class Client {
|
|
|
18
18
|
include_only_administrative_area: lookup.include_only_administrative_area,
|
|
19
19
|
include_only_locality: lookup.include_only_locality,
|
|
20
20
|
include_only_postal_code: lookup.include_only_postal_code,
|
|
21
|
-
selected: lookup.selected,
|
|
22
21
|
};
|
|
23
22
|
|
|
24
23
|
return new Promise((resolve, reject) => {
|
|
@@ -1,13 +1,5 @@
|
|
|
1
1
|
class Lookup {
|
|
2
|
-
constructor(
|
|
3
|
-
search = "",
|
|
4
|
-
country = "United States",
|
|
5
|
-
max_results = undefined,
|
|
6
|
-
include_only_administrative_area = "",
|
|
7
|
-
include_only_locality = "",
|
|
8
|
-
include_only_postal_code = "",
|
|
9
|
-
selected = "",
|
|
10
|
-
) {
|
|
2
|
+
constructor(search = "", country = "United States", max_results = undefined, include_only_administrative_area = "", include_only_locality = "", include_only_postal_code = "") {
|
|
11
3
|
this.result = [];
|
|
12
4
|
|
|
13
5
|
this.search = search;
|
|
@@ -16,7 +8,6 @@ class Lookup {
|
|
|
16
8
|
this.include_only_administrative_area = include_only_administrative_area;
|
|
17
9
|
this.include_only_locality = include_only_locality;
|
|
18
10
|
this.include_only_postal_code = include_only_postal_code;
|
|
19
|
-
this.selected = selected;
|
|
20
11
|
}
|
|
21
12
|
}
|
|
22
13
|
|
|
@@ -5,8 +5,6 @@ class Suggestion {
|
|
|
5
5
|
this.administrativeArea = responseData.administrative_area;
|
|
6
6
|
this.postalCode = responseData.postal_code;
|
|
7
7
|
this.countryIso3 = responseData.country_iso3;
|
|
8
|
-
this.secondary = responseData.secondary;
|
|
9
|
-
this.entries = responseData.entries;
|
|
10
8
|
}
|
|
11
9
|
}
|
|
12
10
|
|
|
@@ -20,7 +20,6 @@ describe("An International Address Autocomplete Client", function () {
|
|
|
20
20
|
include_only_locality: "",
|
|
21
21
|
include_only_postal_code: "",
|
|
22
22
|
country: "United States",
|
|
23
|
-
selected: "",
|
|
24
23
|
};
|
|
25
24
|
|
|
26
25
|
client.send(lookup);
|
|
@@ -41,7 +40,6 @@ describe("An International Address Autocomplete Client", function () {
|
|
|
41
40
|
include_only_locality: "",
|
|
42
41
|
include_only_postal_code: "",
|
|
43
42
|
search: search,
|
|
44
|
-
selected: "",
|
|
45
43
|
};
|
|
46
44
|
|
|
47
45
|
client.send(lookup);
|
|
@@ -62,7 +60,6 @@ describe("An International Address Autocomplete Client", function () {
|
|
|
62
60
|
include_only_locality: "",
|
|
63
61
|
include_only_postal_code: "",
|
|
64
62
|
search: search,
|
|
65
|
-
selected: "",
|
|
66
63
|
};
|
|
67
64
|
|
|
68
65
|
client.send(lookup);
|