@mushi-mushi/web 1.24.0 → 1.25.0
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 +10 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +11 -4
- package/dist/index.js.map +1 -1
- package/dist/mushi.loader.global.js +214 -214
- package/dist/mushi.loader.global.js.map +1 -1
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -2561,7 +2561,7 @@ function getWidgetStyles(theme, accent = "", accentText = "") {
|
|
|
2561
2561
|
|
|
2562
2562
|
// src/version.ts
|
|
2563
2563
|
var MUSHI_SDK_PACKAGE = "@mushi-mushi/web";
|
|
2564
|
-
var MUSHI_SDK_VERSION = "1.
|
|
2564
|
+
var MUSHI_SDK_VERSION = "1.25.0" ;
|
|
2565
2565
|
var CATEGORY_ICONS = {
|
|
2566
2566
|
bug: "\u26A0\uFE0F",
|
|
2567
2567
|
slow: "\u{1F40C}",
|
|
@@ -7811,8 +7811,6 @@ function createProactiveManager(config = {}) {
|
|
|
7811
7811
|
}
|
|
7812
7812
|
return { shouldShow, recordDismissal, recordSubmission, reset };
|
|
7813
7813
|
}
|
|
7814
|
-
|
|
7815
|
-
// src/mushi.ts
|
|
7816
7814
|
function resolveReportAppVersion(config, environment) {
|
|
7817
7815
|
if (config.appVersion) return config.appVersion;
|
|
7818
7816
|
const vercelId = config.integrations?.vercel?.analyticsId;
|
|
@@ -7875,6 +7873,13 @@ function createInstance(config) {
|
|
|
7875
7873
|
sdkPackage: MUSHI_SDK_PACKAGE,
|
|
7876
7874
|
sdkVersion: MUSHI_SDK_VERSION
|
|
7877
7875
|
});
|
|
7876
|
+
if (bootstrapConfig["trackSessions"] !== false) {
|
|
7877
|
+
core.initSessionTracker({
|
|
7878
|
+
client: apiClient2,
|
|
7879
|
+
sdkVersion: MUSHI_SDK_VERSION,
|
|
7880
|
+
reporterTokenHash: core.getReporterToken(bootstrapConfig.projectId) ?? null
|
|
7881
|
+
});
|
|
7882
|
+
}
|
|
7878
7883
|
const preFilter = core.createPreFilter(bootstrapConfig.preFilter);
|
|
7879
7884
|
const offlineQueue = core.createOfflineQueue(bootstrapConfig.offline);
|
|
7880
7885
|
const rateLimiter = core.createRateLimiter({ maxBurst: 10, refillRate: 1, refillIntervalMs: 5e3 });
|
|
@@ -8843,6 +8848,7 @@ function createInstance(config) {
|
|
|
8843
8848
|
replayCap = null;
|
|
8844
8849
|
offlineQueue.stopAutoSync();
|
|
8845
8850
|
stopReporterInboxPolling();
|
|
8851
|
+
core.destroySessionTracker();
|
|
8846
8852
|
breadcrumbs.clear();
|
|
8847
8853
|
listeners.clear();
|
|
8848
8854
|
instance = null;
|
|
@@ -8996,6 +9002,7 @@ function createInstance(config) {
|
|
|
8996
9002
|
breadcrumbs.add({ category: "lifecycle", level: "info", message: "Mushi.identifyWithToken() refreshed" });
|
|
8997
9003
|
return;
|
|
8998
9004
|
}
|
|
9005
|
+
core.updateSessionIdentity(claims.sub);
|
|
8999
9006
|
userInfo = {
|
|
9000
9007
|
id: claims.sub,
|
|
9001
9008
|
...claims.email ? { email: claims.email } : {},
|