authscape 1.0.332 → 1.0.334

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/index.js CHANGED
@@ -4388,12 +4388,17 @@ function _WhiteLabelPageModule() {
4388
4388
  return fetch(apiUri + "/api/WhiteLabel/GetCompanyIdFromDomain?domain=" + host);
4389
4389
  case 4:
4390
4390
  response = _context.sent;
4391
- _context.next = 7;
4391
+ if (!(response.status == 200)) {
4392
+ _context.next = 9;
4393
+ break;
4394
+ }
4395
+ _context.next = 8;
4392
4396
  return response.json();
4393
- case 7:
4397
+ case 8:
4394
4398
  data.oemCompanyId = _context.sent;
4395
- return _context.abrupt("return", data);
4396
4399
  case 9:
4400
+ return _context.abrupt("return", data);
4401
+ case 10:
4397
4402
  case "end":
4398
4403
  return _context.stop();
4399
4404
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "authscape",
3
- "version": "1.0.332",
3
+ "version": "1.0.334",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -13,7 +13,10 @@ export async function WhiteLabelPageModule(apiUri, host) {
13
13
  }
14
14
 
15
15
  const response = await fetch(apiUri + "/api/WhiteLabel/GetCompanyIdFromDomain?domain=" + host);
16
- data.oemCompanyId = await response.json();
16
+ if (response.status == 200)
17
+ {
18
+ data.oemCompanyId = await response.json();
19
+ }
17
20
 
18
21
  return data;
19
22
  }