smartystreets-javascript-sdk 1.11.5 → 1.11.6
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 :=
|
|
3
|
+
VERSION := 1.11.6
|
|
4
4
|
VERSION_FILE1 := package.json
|
|
5
5
|
VERSION_FILE2 := package-lock.json
|
|
6
6
|
|
|
@@ -14,7 +14,7 @@ node_modules:
|
|
|
14
14
|
npm install
|
|
15
15
|
|
|
16
16
|
publish: clean test version upload unversion
|
|
17
|
-
|
|
17
|
+
git tag 1.11.6
|
|
18
18
|
git push origin --tags
|
|
19
19
|
|
|
20
20
|
upload:
|
|
@@ -28,7 +28,9 @@ client.send(lookup)
|
|
|
28
28
|
lookup = new Lookup("Ave", "CAN");
|
|
29
29
|
|
|
30
30
|
lookup.maxResults = 10;
|
|
31
|
+
// lookup.include_only_administrative_area = "";
|
|
31
32
|
lookup.include_only_locality = "Sherwood Park";
|
|
33
|
+
// lookup.include_only_postal_code = "";
|
|
32
34
|
|
|
33
35
|
client.send(lookup)
|
|
34
36
|
.then(function(results) { logSuggestions(results, "Using Filter and Prefer")})
|
|
@@ -16,7 +16,6 @@ let client = clientBuilder.buildUsAutocompleteProClient();
|
|
|
16
16
|
// Documentation for input fields can be found at:
|
|
17
17
|
// https://smartystreets.com/docs/cloud/us-autocomplete-api#pro-http-request-input-fields
|
|
18
18
|
|
|
19
|
-
|
|
20
19
|
// *** Simple Lookup ***
|
|
21
20
|
let lookup = new Lookup("4770 Lincoln");
|
|
22
21
|
|
|
@@ -24,7 +23,6 @@ client.send(lookup)
|
|
|
24
23
|
.then(function(results) { logSuggestions(results, "Simple Lookup") })
|
|
25
24
|
.catch(console.log);
|
|
26
25
|
|
|
27
|
-
|
|
28
26
|
// *** Using Filter and Prefer ***
|
|
29
27
|
lookup = new Lookup("4770 Lincoln");
|
|
30
28
|
|
|
@@ -38,7 +36,6 @@ client.send(lookup)
|
|
|
38
36
|
.then(function(results) { logSuggestions(results, "Using Filter and Prefer") })
|
|
39
37
|
.catch(console.log);
|
|
40
38
|
|
|
41
|
-
|
|
42
39
|
// *** Using 'selected' to Expand Secondaries ***
|
|
43
40
|
lookup = new Lookup("4770 Lincoln");
|
|
44
41
|
|
|
@@ -48,7 +45,6 @@ client.send(lookup)
|
|
|
48
45
|
.then(function(results) { logSuggestions(results, "Using 'selected' to Expand Secondaries") })
|
|
49
46
|
.catch(console.log);
|
|
50
47
|
|
|
51
|
-
|
|
52
48
|
// ************************************************
|
|
53
49
|
|
|
54
50
|
function logSuggestions(response, message) {
|