mixpanel-browser 2.62.0 → 2.63.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.
@@ -2,7 +2,7 @@
2
2
 
3
3
  var Config = {
4
4
  DEBUG: false,
5
- LIB_VERSION: '2.62.0'
5
+ LIB_VERSION: '2.63.0'
6
6
  };
7
7
 
8
8
  // since es6 imports are static and we run unit tests from the console, window won't be defined when importing this file
@@ -1238,7 +1238,7 @@ _.UUID = function() {
1238
1238
  uuid[i] = Math.floor(Math.random() * 16);
1239
1239
  }
1240
1240
  uuid[14] = 4; // set bits 12-15 of time-high-and-version to 0100
1241
- uuid[19] = uuid[19] &= ~(1 << 2); // set bit 6 of clock-seq-and-reserved to zero
1241
+ uuid[19] = uuid[19] &= -5; // set bit 6 of clock-seq-and-reserved to zero
1242
1242
  uuid[19] = uuid[19] |= (1 << 3); // set bit 7 of clock-seq-and-reserved to one
1243
1243
  uuid[8] = uuid[13] = uuid[18] = uuid[23] = '-';
1244
1244
 
@@ -2131,6 +2131,8 @@ var isRecordingExpired = function(serializedRecording) {
2131
2131
  };
2132
2132
 
2133
2133
  // stateless utils
2134
+ // mostly from https://github.com/mixpanel/mixpanel-js/blob/989ada50f518edab47b9c4fd9535f9fbd5ec5fc0/src/autotrack-utils.js
2135
+
2134
2136
 
2135
2137
  var EV_CHANGE = 'change';
2136
2138
  var EV_CLICK = 'click';
@@ -2977,6 +2979,7 @@ safewrapClass(Autocapture);
2977
2979
 
2978
2980
  /* eslint camelcase: "off" */
2979
2981
 
2982
+
2980
2983
  /**
2981
2984
  * DomTracker Object
2982
2985
  * @constructor
@@ -3280,7 +3283,7 @@ SharedLock.prototype.withLock = function(lockedCB, pid) {
3280
3283
  * @type {import('./wrapper').StorageWrapper}
3281
3284
  */
3282
3285
  var LocalStorageWrapper = function (storageOverride) {
3283
- this.storage = storageOverride || localStorage;
3286
+ this.storage = storageOverride || win.localStorage;
3284
3287
  };
3285
3288
 
3286
3289
  LocalStorageWrapper.prototype.init = function () {
@@ -4027,6 +4030,7 @@ RequestBatcher.prototype.reportError = function(msg, err) {
4027
4030
  * These functions are used internally by the SDK and are not intended to be publicly exposed.
4028
4031
  */
4029
4032
 
4033
+
4030
4034
  /**
4031
4035
  * A function used to track a Mixpanel event (e.g. MixpanelLib.track)
4032
4036
  * @callback trackFunction
@@ -4315,6 +4319,7 @@ function _addOptOutCheck(method, getConfigValue) {
4315
4319
 
4316
4320
  /* eslint camelcase: "off" */
4317
4321
 
4322
+
4318
4323
  /** @const */ var SET_ACTION = '$set';
4319
4324
  /** @const */ var SET_ONCE_ACTION = '$set_once';
4320
4325
  /** @const */ var UNSET_ACTION = '$unset';
@@ -5074,6 +5079,7 @@ MixpanelPeople.prototype['toString'] = MixpanelPeople.prototype.toString;
5074
5079
 
5075
5080
  /* eslint camelcase: "off" */
5076
5081
 
5082
+
5077
5083
  /*
5078
5084
  * Constants
5079
5085
  */