smartystreets-javascript-sdk 1.13.6 → 1.13.7

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.
@@ -2,8 +2,8 @@ const SmartySDK = require("smartystreets-javascript-sdk");
2
2
  const SmartyCore = SmartySDK.core;
3
3
  const Lookup = SmartySDK.internationalAddressAutocomplete.Lookup;
4
4
 
5
- // US Autocomplete Pro only supports using Website Keys
6
- let key = process.env.SMARTY_WEBSITE_KEY;
5
+ // US Autocomplete Pro only supports using Embedded Keys
6
+ let key = process.env.SMARTY_EMBEDDED_KEY;
7
7
  const credentials = new SmartyCore.SharedCredentials(key);
8
8
 
9
9
  // The appropriate license values to be used for your subscriptions
@@ -8,7 +8,7 @@ const Lookup = SmartySDK.internationalStreet.Lookup;
8
8
  // const credentials = new SmartyCore.StaticCredentials(authId, authToken);
9
9
 
10
10
  // for client-side requests (browser/mobile), use this code:
11
- let key = process.env.SMARTY_WEBSITE_KEY;
11
+ let key = process.env.SMARTY_EMBEDDED_KEY;
12
12
  const credentials = new SmartyCore.SharedCredentials(key);
13
13
 
14
14
  // The appropriate license values to be used for your subscriptions
@@ -2,8 +2,8 @@ const SmartySDK = require("smartystreets-javascript-sdk");
2
2
  const SmartyCore = SmartySDK.core;
3
3
  const Lookup = SmartySDK.usAutocompletePro.Lookup;
4
4
 
5
- // US Autocomplete Pro only supports using Website Keys
6
- let key = process.env.SMARTY_WEBSITE_KEY;
5
+ // US Autocomplete Pro only supports using Embedded Keys
6
+ let key = process.env.SMARTY_EMBEDDED_KEY;
7
7
  const credentials = new SmartyCore.SharedCredentials(key);
8
8
 
9
9
  // The appropriate license values to be used for your subscriptions
@@ -8,7 +8,7 @@ const Lookup = SmartySDK.usExtract.Lookup;
8
8
  // const credentials = new SmartyCore.StaticCredentials(authId, authToken);
9
9
 
10
10
  // for client-side requests (browser/mobile), use this code:
11
- let key = process.env.SMARTY_WEBSITE_KEY;
11
+ let key = process.env.SMARTY_EMBEDDED_KEY;
12
12
  const credentials = new SmartyCore.SharedCredentials(key);
13
13
 
14
14
  let clientBuilder = new SmartyCore.ClientBuilder(credentials);
@@ -8,7 +8,7 @@ const Lookup = SmartySDK.usReverseGeo.Lookup;
8
8
  // const credentials = new SmartyCore.StaticCredentials(authId, authToken);
9
9
 
10
10
  // for client-side requests (browser/mobile), use this code:
11
- let key = process.env.SMARTY_WEBSITE_KEY;
11
+ let key = process.env.SMARTY_EMBEDDED_KEY;
12
12
  const credentials = new SmartyCore.SharedCredentials(key);
13
13
 
14
14
  // The appropriate license values to be used for your subscriptions
@@ -8,7 +8,7 @@ const Lookup = SmartySDK.usStreet.Lookup;
8
8
  // const credentials = new SmartyCore.StaticCredentials(authId, authToken);
9
9
 
10
10
  // for client-side requests (browser/mobile), use this code:
11
- let key = process.env.SMARTY_WEBSITE_KEY;
11
+ let key = process.env.SMARTY_EMBEDDED_KEY;
12
12
  const credentials = new SmartyCore.SharedCredentials(key);
13
13
 
14
14
  // The appropriate license values to be used for your subscriptions
@@ -8,7 +8,7 @@ const Lookup = SmartySDK.usZipcode.Lookup;
8
8
  // const credentials = new SmartyCore.StaticCredentials(authId, authToken);
9
9
 
10
10
  // for client-side requests (browser/mobile), use this code:
11
- let key = process.env.SMARTY_WEBSITE_KEY;
11
+ let key = process.env.SMARTY_EMBEDDED_KEY;
12
12
  const credentials = new SmartyCore.SharedCredentials(key);
13
13
 
14
14
  let clientBuilder = new SmartyCore.ClientBuilder(credentials);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "smartystreets-javascript-sdk",
3
- "version": "1.13.6",
3
+ "version": "1.13.7",
4
4
  "description": "Quick and easy Smarty address validation.",
5
5
  "keywords": [
6
6
  "smarty",
package/src/Errors.js CHANGED
@@ -54,7 +54,7 @@ class UnprocessableEntityError extends SmartyError {
54
54
 
55
55
  class TooManyRequestsError extends SmartyError {
56
56
  constructor() {
57
- super("When using the public 'website key' authentication, we restrict the number of requests coming from a given source over too short of a time.");
57
+ super("When using the public 'embedded key' authentication, we restrict the number of requests coming from a given source over too short of a time.");
58
58
  }
59
59
  }
60
60