authscape 1.0.316 → 1.0.317

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
@@ -4289,14 +4289,15 @@ function _WhiteLabelPageModule() {
4289
4289
  host = "https://" + host;
4290
4290
  }
4291
4291
  _context.next = 4;
4292
- return apiService().get(process.env.apiUri + "/api/WhiteLabel/GetCompanyIdFromDomain?domain=" + host);
4292
+ return fetch(process.env.apiUri + "/api/WhiteLabel/GetCompanyIdFromDomain?domain=" + host);
4293
4293
  case 4:
4294
4294
  response = _context.sent;
4295
- if (response != null && response.status == 200) {
4296
- data.oemCompanyId = response.data;
4297
- }
4298
- return _context.abrupt("return", data);
4295
+ _context.next = 7;
4296
+ return response.json();
4299
4297
  case 7:
4298
+ data.oemCompanyId = _context.sent;
4299
+ return _context.abrupt("return", data);
4300
+ case 9:
4300
4301
  case "end":
4301
4302
  return _context.stop();
4302
4303
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "authscape",
3
- "version": "1.0.316",
3
+ "version": "1.0.317",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -12,11 +12,8 @@ export async function WhiteLabelPageModule(host) {
12
12
  host = "https://" + host;
13
13
  }
14
14
 
15
- const response = await apiService().get(process.env.apiUri + "/api/WhiteLabel/GetCompanyIdFromDomain?domain=" + host);
16
- if (response != null && response.status == 200)
17
- {
18
- data.oemCompanyId = response.data;
19
- }
15
+ const response = await fetch(process.env.apiUri + "/api/WhiteLabel/GetCompanyIdFromDomain?domain=" + host);
16
+ data.oemCompanyId = await response.json();
20
17
 
21
18
  return data;
22
19
  }