@mushi-mushi/web 1.34.0 → 1.34.1

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
@@ -6834,7 +6834,7 @@ function createProactiveManager(config = {}) {
6834
6834
 
6835
6835
  // src/version.ts
6836
6836
  var MUSHI_SDK_PACKAGE = "@mushi-mushi/web";
6837
- var MUSHI_SDK_VERSION = "1.34.0" ;
6837
+ var MUSHI_SDK_VERSION = "1.34.1" ;
6838
6838
  function resolveReportAppVersion(config, environment) {
6839
6839
  if (config.appVersion) return config.appVersion;
6840
6840
  const vercelId = config.integrations?.vercel?.analyticsId;
@@ -7705,7 +7705,6 @@ function createInstance(config) {
7705
7705
  });
7706
7706
  function applyRuntimeConfig(runtime) {
7707
7707
  runtimeConfigLoaded = true;
7708
- if (runtime.enabled !== false) maybeStartSessionTracking(runtime.journeys ?? null);
7709
7708
  reporterNotificationsEnabled = runtime.reporterNotificationsEnabled !== false;
7710
7709
  reporterOffer = runtime.enabled === false ? null : runtime.reporter ?? null;
7711
7710
  syncReporterChannels();
@@ -7732,6 +7731,7 @@ function createInstance(config) {
7732
7731
  if (result.ok && result.data) {
7733
7732
  cacheRuntimeConfig(config.projectId, result.data);
7734
7733
  applyRuntimeConfig(result.data);
7734
+ if (result.data.enabled !== false) maybeStartSessionTracking(result.data.journeys ?? null);
7735
7735
  } else if (result.error) {
7736
7736
  log.debug("Runtime SDK config unavailable", result.error);
7737
7737
  }
@@ -8079,6 +8079,7 @@ function createInstance(config) {
8079
8079
  },
8080
8080
  updateConfig(runtimeConfig) {
8081
8081
  applyRuntimeConfig(runtimeConfig);
8082
+ if (runtimeConfig.enabled !== false) maybeStartSessionTracking(runtimeConfig.journeys ?? null);
8082
8083
  },
8083
8084
  diagnose() {
8084
8085
  return runDiagnostics({