authscape 1.0.302 → 1.0.306

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
@@ -4303,7 +4303,7 @@ var setupOEMProps = /*#__PURE__*/function () {
4303
4303
 
4304
4304
  // get the companyId
4305
4305
  _context.next = 11;
4306
- return fetch(process.env.apiUri + "/api/WhiteLabel/GetCompanyIdFromDomain?domain=" + pageProps.host);
4306
+ return fetch(Component.apiUrl + "/api/WhiteLabel/GetCompanyIdFromDomain?domain=" + pageProps.host);
4307
4307
  case 11:
4308
4308
  response = _context.sent;
4309
4309
  _context.next = 14;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "authscape",
3
- "version": "1.0.302",
3
+ "version": "1.0.306",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -21,7 +21,7 @@ export const setupOEMProps = async ({Component, ctx}) => {
21
21
  }
22
22
 
23
23
  // get the companyId
24
- const response = await fetch(process.env.apiUri + "/api/WhiteLabel/GetCompanyIdFromDomain?domain=" + pageProps.host);
24
+ const response = await fetch(Component.apiUrl + "/api/WhiteLabel/GetCompanyIdFromDomain?domain=" + pageProps.host);
25
25
  pageProps.oemCompanyId = await response.json();
26
26
  }
27
27