@jhqn/utils-core 0.0.1-beta.13 → 0.0.1-beta.14

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/dist/index.cjs CHANGED
@@ -172,7 +172,7 @@ const fixiOSInputAutoZoomIn = () => {
172
172
  }
173
173
  }
174
174
  };
175
- const { userAgent } = window.navigator;
175
+ const userAgent = typeof window === "object" ? window.navigator.userAgent : "";
176
176
  const getHostEnv = () => {
177
177
  const ua = userAgent.toLowerCase();
178
178
  const baseInfo = detectBrowser.detect();
package/dist/index.mjs CHANGED
@@ -170,7 +170,7 @@ const fixiOSInputAutoZoomIn = () => {
170
170
  }
171
171
  }
172
172
  };
173
- const { userAgent } = window.navigator;
173
+ const userAgent = typeof window === "object" ? window.navigator.userAgent : "";
174
174
  const getHostEnv = () => {
175
175
  const ua = userAgent.toLowerCase();
176
176
  const baseInfo = detect();
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@jhqn/utils-core",
3
3
  "type": "module",
4
- "version": "0.0.1-beta.13",
4
+ "version": "0.0.1-beta.14",
5
5
  "author": "jade-gjz <jiangang.zhang@jaderd.com>",
6
6
  "license": "MIT",
7
7
  "homepage": "https://github.com/jaderd-jh/utils/tree/main/packages/core#readme",