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