@pendo/agent 2.278.0 → 2.278.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/dom.esm.js CHANGED
@@ -7228,7 +7228,7 @@ function getScreenPosition(element) {
7228
7228
  };
7229
7229
  }
7230
7230
 
7231
- var VERSION = '2.278.0_';
7231
+ var VERSION = '2.278.1_';
7232
7232
  function isExtensionAgent() {
7233
7233
  var installType = getPendoConfigValue('installType') || getPendoConfigFromEnclosingScope().installType;
7234
7234
  return installType === EXTENSION_INSTALL_TYPE;
@@ -3894,8 +3894,8 @@ var SERVER = '';
3894
3894
  var ASSET_HOST = '';
3895
3895
  var ASSET_PATH = '';
3896
3896
  var DESIGNER_ENV = '';
3897
- var VERSION = '2.278.0_';
3898
- var PACKAGE_VERSION = '2.278.0';
3897
+ var VERSION = '2.278.1_';
3898
+ var PACKAGE_VERSION = '2.278.1';
3899
3899
  var LOADER = 'xhr';
3900
3900
  /* eslint-enable agent-eslint-rules/no-gulp-env-references */
3901
3901
  /**
@@ -36746,8 +36746,11 @@ var SessionManager = /** @class */ (function () {
36746
36746
  return this._sessionInfo.sessionId;
36747
36747
  };
36748
36748
  SessionManager.prototype.clearSessionInfo = function () {
36749
+ var currentSessionInfo = this.api.agentStorage.read(SESSION_ID);
36750
+ if (currentSessionInfo && JSON.parse(currentSessionInfo).sessionId === this._sessionInfo.sessionId) {
36751
+ this.api.agentStorage.clear(SESSION_ID);
36752
+ }
36749
36753
  delete this._sessionInfo;
36750
- this.api.agentStorage.clear(SESSION_ID);
36751
36754
  this.sessionId();
36752
36755
  };
36753
36756
  SessionManager.prototype.storeLastInteractionEventInformation = function (timestamp) {