@tusi-ai/logger 0.0.1-beta.1 → 0.0.1-beta.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.
package/dist/index.cjs CHANGED
@@ -37,7 +37,8 @@ var DEFAULT_ENV = "production";
37
37
 
38
38
  // src/index.ts
39
39
  function getAegisV2() {
40
- const aegisV2 = window == null ? void 0 : window.aegisV2;
40
+ if (typeof window === "undefined") return void 0;
41
+ const { aegisV2 } = window;
41
42
  if (typeof (aegisV2 == null ? void 0 : aegisV2.error) === "function" && typeof (aegisV2 == null ? void 0 : aegisV2.info) === "function") {
42
43
  return aegisV2;
43
44
  }
package/dist/index.js CHANGED
@@ -31,7 +31,8 @@ var DEFAULT_ENV = "production";
31
31
 
32
32
  // src/index.ts
33
33
  function getAegisV2() {
34
- const aegisV2 = window == null ? void 0 : window.aegisV2;
34
+ if (typeof window === "undefined") return void 0;
35
+ const { aegisV2 } = window;
35
36
  if (typeof (aegisV2 == null ? void 0 : aegisV2.error) === "function" && typeof (aegisV2 == null ? void 0 : aegisV2.info) === "function") {
36
37
  return aegisV2;
37
38
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tusi-ai/logger",
3
- "version": "0.0.1-beta.1",
3
+ "version": "0.0.1-beta.2",
4
4
  "description": "吐司日志上报工具",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",