@howone/sdk 0.2.20 → 0.2.21
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.js +4 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1315,6 +1315,7 @@ var HowOneProvider = ({
|
|
|
1315
1315
|
const [user, setUser] = (0, import_react8.useState)(() => parseUserFromToken(getToken()));
|
|
1316
1316
|
const [token, setTokenState] = (0, import_react8.useState)(() => getToken());
|
|
1317
1317
|
const [hasCheckedUrlToken, setHasCheckedUrlToken] = (0, import_react8.useState)(false);
|
|
1318
|
+
console.log("[HowOneProvider] \u521D\u59CB\u5316");
|
|
1318
1319
|
(0, import_react8.useEffect)(() => {
|
|
1319
1320
|
try {
|
|
1320
1321
|
const params = new URLSearchParams(window.location.search);
|
|
@@ -5968,6 +5969,7 @@ var ErrorHandler = class {
|
|
|
5968
5969
|
enableDebugLog: false
|
|
5969
5970
|
});
|
|
5970
5971
|
const sendMessage = this.messageSender.createSendFunction();
|
|
5972
|
+
console.log("[ErrorHandler] \u521D\u59CB\u5316\u529F\u80FD\u6A21\u5757");
|
|
5971
5973
|
this.errorTracking = new ErrorTracking(sendMessage);
|
|
5972
5974
|
this.interactionTracking = new InteractionTracking(sendMessage);
|
|
5973
5975
|
this.messageBridge = new MessageBridge();
|
|
@@ -5975,6 +5977,7 @@ var ErrorHandler = class {
|
|
|
5975
5977
|
this.hardRefreshManager = new HardRefreshManager(GLOBAL_CONFIG.ALLOWED_ORIGINS);
|
|
5976
5978
|
this.componentTreeGenerator = new ComponentTreeGenerator();
|
|
5977
5979
|
if (this.config.enableViteHMR && ViteHMRDetector.isViteEnvironment()) {
|
|
5980
|
+
console.log("[ErrorHandler] Vite \u73AF\u5883\u68C0\u6D4B\u6210\u529F\uFF0C\u521D\u59CB\u5316\u68C0\u6D4B\u5668");
|
|
5978
5981
|
this.viteHMRDetector = new ViteHMRDetector(sendMessage);
|
|
5979
5982
|
}
|
|
5980
5983
|
}
|
|
@@ -5989,6 +5992,7 @@ var ErrorHandler = class {
|
|
|
5989
5992
|
}
|
|
5990
5993
|
try {
|
|
5991
5994
|
this.initializeCore();
|
|
5995
|
+
console.log("[ErrorHandler] \u6838\u5FC3\u529F\u80FD\u521D\u59CB\u5316\u5B8C\u6210");
|
|
5992
5996
|
this.setupModuleIntegration();
|
|
5993
5997
|
this.enableFeatures();
|
|
5994
5998
|
this.initialized = true;
|