@como/como-client 0.7.72 → 0.7.74

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
@@ -358,7 +358,9 @@ var Como = function () {
358
358
  this.comoData.token = credentials.accessToken;
359
359
  this.comoData.refreshToken = credentials.refreshToken;
360
360
  this.comoData.expiresIn = credentials.expiresIn;
361
- this.comoData.reCaptchaSiteKey = credentials.config ? credentials.config.recaptchaSiteKey : null;
361
+ if (credentials.config) {
362
+ this.comoData.reCaptchaSiteKey = credentials.config.recaptchaSiteKey;
363
+ }
362
364
  }
363
365
  }, {
364
366
  key: 'getExternalUrlByID',
package/lib/config/env.js CHANGED
@@ -2,35 +2,35 @@
2
2
 
3
3
  module.exports = {
4
4
  hotfix: {
5
- gateway: 'https://janua-env.como.com',
5
+ gateway: 'https://app.qa.comosense.com',
6
6
  zapp_root: 'loyalty-zapp',
7
7
  services_root: 'loyalty-services',
8
- services_root_cdn: 'https://static.comoqa.como.com',
9
- app_modules_root: 'https://janua-env.como.com/app-modules',
10
- app_modules_legacy_root: 'https://appmodules-hotfix.como.com'
8
+ services_root_cdn: 'https://services.qa.bcomo.com',
9
+ app_modules_root: 'https://app.qa.comosense.com/app-modules',
10
+ app_modules_legacy_root: 'https://appmodules.qa.comosense.com'
11
11
  },
12
12
  qa: {
13
- gateway: 'https://janua-dev.como.com',
13
+ gateway: 'https://app.qa.comosense.com',
14
14
  zapp_root: 'loyalty-zapp',
15
15
  services_root: 'loyalty-services',
16
- services_root_cdn: 'https://static.comoqa.como.com',
17
- app_modules_root: 'https://janua-dev.como.com/app-modules',
18
- app_modules_legacy_root: 'https://appmodules-qa.como.com'
16
+ services_root_cdn: 'https://services.qa.bcomo.com',
17
+ app_modules_root: 'https://app.qa.comosense.com/app-modules',
18
+ app_modules_legacy_root: 'https://appmodules.qa.comosense.com'
19
19
  },
20
20
  prod: {
21
- gateway: 'https://janua.como.com',
21
+ gateway: 'https://app.comosense.com',
22
22
  zapp_root: 'loyalty-zapp',
23
23
  services_root: 'loyalty-services',
24
- services_root_cdn: 'https://static.prod.como.com',
25
- app_modules_root: 'https://janua.como.com/app-modules',
26
- app_modules_legacy_root: 'https://appmodules-prod.como.com'
24
+ services_root_cdn: 'https://services.prod.bcomo.com',
25
+ app_modules_root: 'https://app.comosense.com/app-modules',
26
+ app_modules_legacy_root: 'https://appmodules.comosense.com'
27
27
  },
28
28
  test: {
29
- gateway: 'https://janua-env.como.com',
29
+ gateway: 'https://app.qa.comosense.com',
30
30
  zapp_root: 'loyalty-zapp',
31
31
  services_root: 'loyalty-services',
32
- services_root_cdn: 'https://static.comoqa.como.com',
33
- app_modules_root: 'https://janua-env.como.com/app-modules',
34
- app_modules_legacy_root: 'https://appmodules-qa.como.com'
32
+ services_root_cdn: 'https://services.qa.bcomo.com',
33
+ app_modules_root: 'https://app.qa.comosense.com/app-modules',
34
+ app_modules_legacy_root: 'https://appmodules.qa.comosense.com'
35
35
  }
36
36
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@como/como-client",
3
- "version": "0.7.72",
3
+ "version": "0.7.74",
4
4
  "description": "Client module for Como's loaylty API",
5
5
  "main": "src/como.js",
6
6
  "scripts": {
package/src/como.js CHANGED
@@ -171,7 +171,9 @@ class Como {
171
171
  this.comoData.token = credentials.accessToken;
172
172
  this.comoData.refreshToken = credentials.refreshToken;
173
173
  this.comoData.expiresIn = credentials.expiresIn;
174
- this.comoData.reCaptchaSiteKey = credentials.config? credentials.config.recaptchaSiteKey : null;
174
+ if(credentials.config){
175
+ this.comoData.reCaptchaSiteKey = credentials.config.recaptchaSiteKey;
176
+ }
175
177
  }
176
178
 
177
179
  getExternalUrlByID(itemID, gpsData, assetID, accessibilityData) {