@lowentry/utils 1.2.1 → 1.2.2

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.
Files changed (2) hide show
  1. package/LeUtils.js +4 -0
  2. package/package.json +1 -1
package/LeUtils.js CHANGED
@@ -2279,6 +2279,10 @@ export const LeUtils = {
2279
2279
 
2280
2280
  return () =>
2281
2281
  {
2282
+ if(typeof window === 'undefined')
2283
+ {
2284
+ return false; // server-side rendering, who knows to who it is being served to, assume it's public
2285
+ }
2282
2286
  const hostname = window.location.hostname;
2283
2287
  if(lastHostname === hostname)
2284
2288
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lowentry/utils",
3
- "version": "1.2.1",
3
+ "version": "1.2.2",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "Provides utilities for general JavaScript development.",