@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.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.34.0" ;
6357
+ var MUSHI_SDK_VERSION = "1.34.1" ;
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();
@@ -7252,6 +7251,7 @@ function createInstance(config) {
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({