@xylabs/sdk-react 2.10.4 → 2.10.5

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.
@@ -1,2 +1,2 @@
1
- declare const isLocalhost: boolean;
1
+ declare const isLocalhost: () => boolean;
2
2
  export { isLocalhost };
@@ -280,7 +280,7 @@ const getApiStage = () => {
280
280
  return getApiStage$1(document.location.hostname);
281
281
  };
282
282
 
283
- const isLocalhost = !!(window.location.hostname === 'localhost' ||
283
+ const isLocalhost = () => !!(window.location.hostname === 'localhost' ||
284
284
  // [::1] is the IPv6 localhost address.
285
285
  window.location.hostname === '[::1]' ||
286
286
  // 127.0.0.0/8 are considered localhost for IPv4.