web-manager 4.0.37 → 4.0.38

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/README.md CHANGED
@@ -249,7 +249,7 @@ Manager.utilities(); // Utility functions
249
249
  Manager.isDevelopment(); // Check if in development mode
250
250
  Manager.getFunctionsUrl(); // Get Firebase Functions URL
251
251
  Manager.getFunctionsUrl('development'); // Force development URL
252
- Manager.getApiUrl(); // Get API URL (derived from brand url)
252
+ Manager.getApiUrl(); // Get API URL (derived from firebase authDomain)
253
253
  Manager.isValidRedirectUrl('https://...'); // Validate redirect URL
254
254
 
255
255
  // Firebase instances (after initialization)
package/dist/index.js CHANGED
@@ -458,8 +458,8 @@ class Manager {
458
458
  return 'http://localhost:5002';
459
459
  }
460
460
 
461
- // const authDomain = this.config.firebase.app.config.authDomain;
462
- const apiDomain = this.config.brand.url;
461
+ const apiDomain = this.config.firebase.app.config.authDomain; // Has to be this since some projects like Clockii use ITW Universal Auth
462
+ // const apiDomain = this.config.brand.url;
463
463
  const baseUrl = url || (apiDomain ? `https://${apiDomain}` : window.location.origin);
464
464
  const urlObj = new URL(baseUrl);
465
465
  const hostnameParts = urlObj.hostname.split('.');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "web-manager",
3
- "version": "4.0.37",
3
+ "version": "4.0.38",
4
4
  "description": "Easily access important variables such as the query string, current domain, and current page in a single object.",
5
5
  "main": "dist/index.js",
6
6
  "module": "src/index.js",