Skip to content

Commit 2bb100f

Browse files
committed
helps to commit
1 parent 41e7958 commit 2bb100f

18 files changed

+8136
-159
lines changed

dist/mixpanel-core.cjs.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -5796,7 +5796,8 @@ var DEFAULT_CONFIG = {
57965796
'record_max_ms': MAX_RECORDING_MS,
57975797
'record_min_ms': 0,
57985798
'record_sessions_percent': 0,
5799-
'recorder_src': 'https://cdn.mxpnl.com/libs/mixpanel-recorder.min.js'
5799+
'recorder_src': 'https://cdn.mxpnl.com/libs/mixpanel-recorder.min.js',
5800+
'session_recording_use_proxy': false,
58005801
};
58015802

58025803
var DOM_LOADED = false;

dist/mixpanel-recorder.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -8153,8 +8153,9 @@
81538153
retryAfter: response.headers.get('Retry-After')
81548154
});
81558155
}.bind(this);
8156+
const apiHost = this.getConfig('session_recording_use_proxy') ? this.getConfig('api_host') : 'https://api.mixpanel.com';
81568157

8157-
win['fetch'](this.getConfig('api_host') + '/' + this.getConfig('api_routes')['record'] + '?' + new URLSearchParams(reqParams), {
8158+
win['fetch'](apiHost + '/' + this.getConfig('api_routes')['record'] + '?' + new URLSearchParams(reqParams), {
81588159
'method': 'POST',
81598160
'headers': {
81608161
'Authorization': 'Basic ' + btoa(this.getConfig('token') + ':'),

dist/mixpanel-recorder.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/mixpanel-recorder.min.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/mixpanel-with-async-recorder.cjs.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -5796,7 +5796,8 @@ var DEFAULT_CONFIG = {
57965796
'record_max_ms': MAX_RECORDING_MS,
57975797
'record_min_ms': 0,
57985798
'record_sessions_percent': 0,
5799-
'recorder_src': 'https://cdn.mxpnl.com/libs/mixpanel-recorder.min.js'
5799+
'recorder_src': 'https://cdn.mxpnl.com/libs/mixpanel-recorder.min.js',
5800+
'session_recording_use_proxy': false,
58005801
};
58015802

58025803
var DOM_LOADED = false;

dist/mixpanel.amd.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -8336,8 +8336,9 @@ define((function () { 'use strict';
83368336
retryAfter: response.headers.get('Retry-After')
83378337
});
83388338
}.bind(this);
8339+
const apiHost = this.getConfig('session_recording_use_proxy') ? this.getConfig('api_host') : 'https://api.mixpanel.com';
83398340

8340-
win['fetch'](this.getConfig('api_host') + '/' + this.getConfig('api_routes')['record'] + '?' + new URLSearchParams(reqParams), {
8341+
win['fetch'](apiHost + '/' + this.getConfig('api_routes')['record'] + '?' + new URLSearchParams(reqParams), {
83418342
'method': 'POST',
83428343
'headers': {
83438344
'Authorization': 'Basic ' + btoa(this.getConfig('token') + ':'),
@@ -10975,7 +10976,8 @@ define((function () { 'use strict';
1097510976
'record_max_ms': MAX_RECORDING_MS,
1097610977
'record_min_ms': 0,
1097710978
'record_sessions_percent': 0,
10978-
'recorder_src': 'https://cdn.mxpnl.com/libs/mixpanel-recorder.min.js'
10979+
'recorder_src': 'https://cdn.mxpnl.com/libs/mixpanel-recorder.min.js',
10980+
'session_recording_use_proxy': false,
1097910981
};
1098010982

1098110983
var DOM_LOADED = false;

dist/mixpanel.cjs.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -8336,8 +8336,9 @@ SessionRecording.prototype._sendRequest = function(currentReplayId, reqParams, r
83368336
retryAfter: response.headers.get('Retry-After')
83378337
});
83388338
}.bind(this);
8339+
const apiHost = this.getConfig('session_recording_use_proxy') ? this.getConfig('api_host') : 'https://api.mixpanel.com';
83398340

8340-
win['fetch'](this.getConfig('api_host') + '/' + this.getConfig('api_routes')['record'] + '?' + new URLSearchParams(reqParams), {
8341+
win['fetch'](apiHost + '/' + this.getConfig('api_routes')['record'] + '?' + new URLSearchParams(reqParams), {
83418342
'method': 'POST',
83428343
'headers': {
83438344
'Authorization': 'Basic ' + btoa(this.getConfig('token') + ':'),
@@ -10975,7 +10976,8 @@ var DEFAULT_CONFIG = {
1097510976
'record_max_ms': MAX_RECORDING_MS,
1097610977
'record_min_ms': 0,
1097710978
'record_sessions_percent': 0,
10978-
'recorder_src': 'https://cdn.mxpnl.com/libs/mixpanel-recorder.min.js'
10979+
'recorder_src': 'https://cdn.mxpnl.com/libs/mixpanel-recorder.min.js',
10980+
'session_recording_use_proxy': false,
1097910981
};
1098010982

1098110983
var DOM_LOADED = false;

dist/mixpanel.globals.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -5797,7 +5797,8 @@
57975797
'record_max_ms': MAX_RECORDING_MS,
57985798
'record_min_ms': 0,
57995799
'record_sessions_percent': 0,
5800-
'recorder_src': 'https://cdn.mxpnl.com/libs/mixpanel-recorder.min.js'
5800+
'recorder_src': 'https://cdn.mxpnl.com/libs/mixpanel-recorder.min.js',
5801+
'session_recording_use_proxy': false,
58015802
};
58025803

58035804
var DOM_LOADED = false;

dist/mixpanel.js

-1
This file was deleted.

0 commit comments

Comments
 (0)