smartystreets-javascript-sdk 1.13.3 → 1.13.4

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.
@@ -1,3 +1,4 @@
1
+
1
2
  Apache License
2
3
  Version 2.0, January 2004
3
4
  http://www.apache.org/licenses/
@@ -186,7 +187,7 @@
186
187
  same "printed page" as the copyright notice for easier
187
188
  identification within third-party archives.
188
189
 
189
- Copyright [yyyy] [name of copyright owner]
190
+ Copyright 2022 Smarty
190
191
 
191
192
  Licensed under the Apache License, Version 2.0 (the "License");
192
193
  you may not use this file except in compliance with the License.
package/Readme.md CHANGED
@@ -1,3 +1,5 @@
1
+ # SMARTY DISCLAIMER: Subject to the terms of the associated license agreement, this software is freely available for your use. This software is FREE, AS IN PUPPIES, and is a gift. Enjoy your new responsibility. This means that while we may consider enhancement requests, we may or may not choose to entertain requests at our sole and absolute discretion.
2
+
1
3
  # Smarty JavaScript SDK
2
4
 
3
5
  The official client libraries for accessing Smarty APIs with JavaScript.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "smartystreets-javascript-sdk",
3
- "version": "1.13.3",
3
+ "version": "1.13.4",
4
4
  "description": "Quick and easy Smarty address validation.",
5
5
  "keywords": [
6
6
  "smarty",
@@ -18,6 +18,7 @@ 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,
21
22
  };
22
23
 
23
24
  return new Promise((resolve, reject) => {
@@ -1,5 +1,13 @@
1
1
  class Lookup {
2
- constructor(search = "", country = "United States", max_results = undefined, include_only_administrative_area = "", include_only_locality = "", include_only_postal_code = "") {
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
+ ) {
3
11
  this.result = [];
4
12
 
5
13
  this.search = search;
@@ -8,6 +16,7 @@ class Lookup {
8
16
  this.include_only_administrative_area = include_only_administrative_area;
9
17
  this.include_only_locality = include_only_locality;
10
18
  this.include_only_postal_code = include_only_postal_code;
19
+ this.selected = selected;
11
20
  }
12
21
  }
13
22
 
@@ -5,6 +5,8 @@ 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;
8
10
  }
9
11
  }
10
12
 
@@ -20,6 +20,7 @@ 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: "",
23
24
  };
24
25
 
25
26
  client.send(lookup);
@@ -40,6 +41,7 @@ describe("An International Address Autocomplete Client", function () {
40
41
  include_only_locality: "",
41
42
  include_only_postal_code: "",
42
43
  search: search,
44
+ selected: "",
43
45
  };
44
46
 
45
47
  client.send(lookup);
@@ -60,6 +62,7 @@ describe("An International Address Autocomplete Client", function () {
60
62
  include_only_locality: "",
61
63
  include_only_postal_code: "",
62
64
  search: search,
65
+ selected: "",
63
66
  };
64
67
 
65
68
  client.send(lookup);