@como/como-client 0.7.66 → 0.7.67

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/lib/como.js CHANGED
@@ -50,6 +50,7 @@ var INITIAL_COMO_DATA = {
50
50
  installationId: null,
51
51
  membership: null,
52
52
  assets: null,
53
+ reCaptchaSiteKey: null,
53
54
  mainResources: {}
54
55
  };
55
56
 
@@ -357,6 +358,7 @@ var Como = function () {
357
358
  this.comoData.token = credentials.accessToken;
358
359
  this.comoData.refreshToken = credentials.refreshToken;
359
360
  this.comoData.expiresIn = credentials.expiresIn;
361
+ this.comoData.reCaptchaSiteKey = credentials.reCaptchaSiteKey;
360
362
  }
361
363
  }, {
362
364
  key: 'getExternalUrlByID',
@@ -1615,6 +1617,16 @@ var Como = function () {
1615
1617
  return this.comoData.assets;
1616
1618
  }
1617
1619
 
1620
+ /**
1621
+ * Return service recaptch site key
1622
+ */
1623
+
1624
+ }, {
1625
+ key: 'getRecaptchaSiteKey',
1626
+ value: function getRecaptchaSiteKey() {
1627
+ return this.comoData.reCaptchaSiteKey;
1628
+ }
1629
+
1618
1630
  /**
1619
1631
  * Returns the location specific registration web url
1620
1632
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@como/como-client",
3
- "version": "0.7.66",
3
+ "version": "0.7.67",
4
4
  "description": "Client module for Como's loaylty API",
5
5
  "main": "src/como.js",
6
6
  "scripts": {
package/src/como.js CHANGED
@@ -14,6 +14,7 @@ const INITIAL_COMO_DATA = {
14
14
  installationId: null,
15
15
  membership: null,
16
16
  assets: null,
17
+ reCaptchaSiteKey: null,
17
18
  mainResources: {},
18
19
  };
19
20
 
@@ -170,6 +171,7 @@ class Como {
170
171
  this.comoData.token = credentials.accessToken;
171
172
  this.comoData.refreshToken = credentials.refreshToken;
172
173
  this.comoData.expiresIn = credentials.expiresIn;
174
+ this.comoData.reCaptchaSiteKey = credentials.reCaptchaSiteKey;
173
175
  }
174
176
 
175
177
  getExternalUrlByID(itemID, gpsData, assetID, accessibilityData) {
@@ -676,6 +678,11 @@ class Como {
676
678
  */
677
679
  getAssets() { return this.comoData.assets; }
678
680
 
681
+ /**
682
+ * Return service recaptch site key
683
+ */
684
+ getRecaptchaSiteKey() { return this.comoData.reCaptchaSiteKey; }
685
+
679
686
  /**
680
687
  * Returns the location specific registration web url
681
688
  */