@mushi-mushi/web 1.34.0 → 1.35.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/README.md +6 -3
- package/dist/index.cjs +4 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -3
- package/dist/index.js.map +1 -1
- package/dist/mushi.loader.global.js +8 -8
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -6354,7 +6354,7 @@ function createProactiveManager(config = {}) {
|
|
|
6354
6354
|
|
|
6355
6355
|
// src/version.ts
|
|
6356
6356
|
var MUSHI_SDK_PACKAGE = "@mushi-mushi/web";
|
|
6357
|
-
var MUSHI_SDK_VERSION = "1.
|
|
6357
|
+
var MUSHI_SDK_VERSION = "1.35.0" ;
|
|
6358
6358
|
function resolveReportAppVersion(config, environment) {
|
|
6359
6359
|
if (config.appVersion) return config.appVersion;
|
|
6360
6360
|
const vercelId = config.integrations?.vercel?.analyticsId;
|
|
@@ -7225,7 +7225,6 @@ function createInstance(config) {
|
|
|
7225
7225
|
});
|
|
7226
7226
|
function applyRuntimeConfig(runtime) {
|
|
7227
7227
|
runtimeConfigLoaded = true;
|
|
7228
|
-
if (runtime.enabled !== false) maybeStartSessionTracking(runtime.journeys ?? null);
|
|
7229
7228
|
reporterNotificationsEnabled = runtime.reporterNotificationsEnabled !== false;
|
|
7230
7229
|
reporterOffer = runtime.enabled === false ? null : runtime.reporter ?? null;
|
|
7231
7230
|
syncReporterChannels();
|
|
@@ -7248,10 +7247,11 @@ function createInstance(config) {
|
|
|
7248
7247
|
if (shouldUseRuntimeConfig(config)) {
|
|
7249
7248
|
const cached = readCachedRuntimeConfig(config.projectId);
|
|
7250
7249
|
if (cached) applyRuntimeConfig(cached);
|
|
7251
|
-
apiClient2.getSdkConfig().then((result) => {
|
|
7250
|
+
apiClient2.getSdkConfig(trackSessionsMode === "on-demand" ? { fresh: true } : void 0).then((result) => {
|
|
7252
7251
|
if (result.ok && result.data) {
|
|
7253
7252
|
cacheRuntimeConfig(config.projectId, result.data);
|
|
7254
7253
|
applyRuntimeConfig(result.data);
|
|
7254
|
+
if (result.data.enabled !== false) maybeStartSessionTracking(result.data.journeys ?? null);
|
|
7255
7255
|
} else if (result.error) {
|
|
7256
7256
|
log.debug("Runtime SDK config unavailable", result.error);
|
|
7257
7257
|
}
|
|
@@ -7599,6 +7599,7 @@ function createInstance(config) {
|
|
|
7599
7599
|
},
|
|
7600
7600
|
updateConfig(runtimeConfig) {
|
|
7601
7601
|
applyRuntimeConfig(runtimeConfig);
|
|
7602
|
+
if (runtimeConfig.enabled !== false) maybeStartSessionTracking(runtimeConfig.journeys ?? null);
|
|
7602
7603
|
},
|
|
7603
7604
|
diagnose() {
|
|
7604
7605
|
return runDiagnostics({
|