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.
- package/CHANGELOG.md +4 -0
- package/build.sh +4 -21
- package/dist/mixpanel-core.cjs.js +10 -3
- package/dist/mixpanel-js-wrapper.min.js +5 -5
- package/dist/mixpanel-jslib-snippet.min.js +3 -3
- package/dist/mixpanel-jslib-snippet.min.test.js +3 -3
- package/dist/mixpanel-recorder.js +13552 -4502
- package/dist/mixpanel-recorder.min.js +1 -38
- package/dist/mixpanel-recorder.min.js.map +1 -1
- package/dist/mixpanel-with-async-recorder.cjs.js +9 -3
- package/dist/mixpanel-with-recorder.js +22218 -0
- package/dist/mixpanel-with-recorder.min.js +1 -0
- package/dist/mixpanel.amd.js +13558 -4501
- package/dist/mixpanel.cjs.js +13558 -4501
- package/dist/mixpanel.globals.js +9 -3
- package/dist/mixpanel.min.js +144 -144
- package/dist/mixpanel.module.js +13558 -4501
- package/dist/mixpanel.umd.js +13558 -4501
- package/dist/rrweb-compiled.js +18693 -0
- package/package.json +8 -4
- package/rollup.config.mjs +223 -0
- package/src/config.js +1 -1
- package/src/loaders/loader-globals-with-recorder.js +7 -0
- package/src/recorder/session-recording.js +1 -1
- package/src/storage/local-storage.js +2 -1
- package/rollup.config.js +0 -11
- package/src/recorder/rollup.config.js +0 -20
package/dist/mixpanel.globals.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
var Config = {
|
|
5
5
|
DEBUG: false,
|
|
6
|
-
LIB_VERSION: '2.
|
|
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] &=
|
|
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
|
*/
|