@microsoft/1ds-post-js 4.3.7-nightly3.2505-03 → 4.3.7-nightly3.2505-07
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/bundle/es5/{ms.post-4.3.7-nightly3.2505-03.gbl.js → ms.post-4.3.7-nightly3.2505-07.gbl.js} +63 -29
- package/bundle/es5/ms.post-4.3.7-nightly3.2505-07.gbl.js.map +1 -0
- package/bundle/es5/ms.post-4.3.7-nightly3.2505-07.gbl.min.js +7 -0
- package/bundle/es5/ms.post-4.3.7-nightly3.2505-07.gbl.min.js.map +1 -0
- package/bundle/es5/ms.post-4.3.7-nightly3.2505-07.integrity.json +46 -0
- package/bundle/es5/{ms.post-4.3.7-nightly3.2505-03.js → ms.post-4.3.7-nightly3.2505-07.js} +63 -29
- package/bundle/es5/ms.post-4.3.7-nightly3.2505-07.js.map +1 -0
- package/bundle/es5/ms.post-4.3.7-nightly3.2505-07.min.js +7 -0
- package/bundle/es5/ms.post-4.3.7-nightly3.2505-07.min.js.map +1 -0
- package/bundle/es5/ms.post.gbl.js +62 -28
- package/bundle/es5/ms.post.gbl.js.map +1 -1
- package/bundle/es5/ms.post.gbl.min.js +2 -2
- package/bundle/es5/ms.post.gbl.min.js.map +1 -1
- package/bundle/es5/ms.post.integrity.json +17 -17
- package/bundle/es5/ms.post.js +62 -28
- package/bundle/es5/ms.post.js.map +1 -1
- package/bundle/es5/ms.post.min.js +2 -2
- package/bundle/es5/ms.post.min.js.map +1 -1
- package/dist/es5/ms.post.js +60 -26
- package/dist/es5/ms.post.js.map +1 -1
- package/dist/es5/ms.post.min.js +2 -2
- package/dist/es5/ms.post.min.js.map +1 -1
- package/dist-es5/BatchNotificationActions.js +1 -1
- package/dist-es5/ClockSkewManager.js +1 -1
- package/dist-es5/DataModels.js +1 -1
- package/dist-es5/EventBatch.js +1 -1
- package/dist-es5/HttpManager.js +8 -4
- package/dist-es5/HttpManager.js.map +1 -1
- package/dist-es5/Index.js +1 -1
- package/dist-es5/InternalConstants.js +1 -1
- package/dist-es5/KillSwitch.js +1 -1
- package/dist-es5/PostChannel.js +8 -3
- package/dist-es5/PostChannel.js.map +1 -1
- package/dist-es5/RetryPolicy.js +1 -1
- package/dist-es5/Serializer.js +1 -1
- package/dist-es5/TimeoutOverrideWrapper.js +1 -1
- package/dist-es5/__DynamicConstants.js +1 -1
- package/dist-es5/typings/XDomainRequest.js +1 -1
- package/package.json +2 -2
- package/types/1ds-post-js.d.ts +7 -1
- package/types/1ds-post-js.namespaced.d.ts +7 -1
- package/bundle/es5/ms.post-4.3.7-nightly3.2505-03.gbl.js.map +0 -1
- package/bundle/es5/ms.post-4.3.7-nightly3.2505-03.gbl.min.js +0 -7
- package/bundle/es5/ms.post-4.3.7-nightly3.2505-03.gbl.min.js.map +0 -1
- package/bundle/es5/ms.post-4.3.7-nightly3.2505-03.integrity.json +0 -46
- package/bundle/es5/ms.post-4.3.7-nightly3.2505-03.js.map +0 -1
- package/bundle/es5/ms.post-4.3.7-nightly3.2505-03.min.js +0 -7
- package/bundle/es5/ms.post-4.3.7-nightly3.2505-03.min.js.map +0 -1
package/bundle/es5/{ms.post-4.3.7-nightly3.2505-03.gbl.js → ms.post-4.3.7-nightly3.2505-07.gbl.js}
RENAMED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* 1DS JS SDK POST plugin, 4.3.7-nightly3.2505-
|
|
2
|
+
* 1DS JS SDK POST plugin, 4.3.7-nightly3.2505-07
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
* (Microsoft Internal Only)
|
|
5
5
|
*/
|
|
6
6
|
(function (global, factory) {
|
|
7
7
|
var undef = "undefined";
|
|
8
|
-
var nsKey, key, nm, theExports = {}, modName = "
|
|
9
|
-
var mods={}, modDetail=mods[modName]={}, ver="4.3.7-nightly3.2505-
|
|
8
|
+
var nsKey, key, nm, theExports = {}, modName = "es5_ms_post_4_3_7_nightly3_2505_07", msMod="__ms$mod__";
|
|
9
|
+
var mods={}, modDetail=mods[modName]={}, ver="4.3.7-nightly3.2505-07";
|
|
10
10
|
// Versioned namespace "oneDS4"
|
|
11
11
|
var exportNs=global, nsKey="oneDS4", exportNs=exportNs[nsKey]=(exportNs[nsKey]||{});
|
|
12
12
|
// Global namespace "oneDS"
|
|
@@ -37,7 +37,7 @@ var strShimPrototype = "prototype";
|
|
|
37
37
|
var ObjClass$1 = Object;
|
|
38
38
|
var ObjProto$1 = ObjClass$1[strShimPrototype];
|
|
39
39
|
|
|
40
|
-
/*! https://github.com/nevware21/ts-utils v0.12.
|
|
40
|
+
/*! https://github.com/nevware21/ts-utils v0.12.3 */
|
|
41
41
|
/*#__NO_SIDE_EFFECTS__*/
|
|
42
42
|
function _pureAssign(func1, func2) {
|
|
43
43
|
return func1 || func2;
|
|
@@ -60,6 +60,7 @@ var LENGTH = "length";
|
|
|
60
60
|
var NAME = "name";
|
|
61
61
|
var CALL = "call";
|
|
62
62
|
var TO_STRING = "toString";
|
|
63
|
+
var GET_OWN_PROPERTY_DESCRIPTOR = "getOwnPropertyDescriptor";
|
|
63
64
|
var ObjClass = ( /*#__PURE__*/_pureAssign(Object));
|
|
64
65
|
var ObjProto = ( /*#__PURE__*/_pureRef(ObjClass, PROTOTYPE));
|
|
65
66
|
var StrCls = ( /*#__PURE__*/_pureAssign(String));
|
|
@@ -122,6 +123,12 @@ var isBoolean = ( /*#__PURE__*/_createIs("boolean"));
|
|
|
122
123
|
function isPromiseLike(value) {
|
|
123
124
|
return !!(value && value.then && isFunction(value.then));
|
|
124
125
|
}
|
|
126
|
+
function _returnNothing() {
|
|
127
|
+
return;
|
|
128
|
+
}
|
|
129
|
+
function _returnFalse() {
|
|
130
|
+
return false;
|
|
131
|
+
}
|
|
125
132
|
var asString = ( /* #__PURE__ */_pureAssign(StrCls));
|
|
126
133
|
var ERROR_TYPE = "[object Error]";
|
|
127
134
|
/*#__NO_SIDE_EFFECTS__*/
|
|
@@ -153,20 +160,17 @@ function _throwIfNotString(value) {
|
|
|
153
160
|
throwTypeError("'" + dumpObj(value) + "' is not a string");
|
|
154
161
|
}
|
|
155
162
|
}
|
|
156
|
-
function _returnNothing() {
|
|
157
|
-
return UNDEF_VALUE;
|
|
158
|
-
}
|
|
159
|
-
var objGetOwnPropertyDescriptor = ( /* #__PURE__ */_pureAssign(( /* #__PURE__ */_pureRef(ObjClass, "getOwnPropertyDescriptor")), _returnNothing));
|
|
160
163
|
/*#__NO_SIDE_EFFECTS__*/
|
|
161
164
|
function objHasOwnProperty(obj, prop) {
|
|
162
165
|
return !!obj && ObjProto.hasOwnProperty[CALL](obj, prop);
|
|
163
166
|
}
|
|
167
|
+
var _objGetOwnPropertyDescriptor$2 = ( /* #__PURE__ */_pureAssign(( /* #__PURE__ */_pureRef(ObjClass, GET_OWN_PROPERTY_DESCRIPTOR)), _returnNothing));
|
|
168
|
+
var objHasOwn = ( /*#__PURE__*/_pureAssign(( /* #__PURE__ */_pureRef(ObjClass, "hasOwn")), polyObjHasOwn));
|
|
164
169
|
/*#__NO_SIDE_EFFECTS__*/
|
|
165
170
|
function polyObjHasOwn(obj, prop) {
|
|
166
171
|
_throwIfNullOrUndefined(obj);
|
|
167
|
-
return objHasOwnProperty(obj, prop) || !!
|
|
172
|
+
return objHasOwnProperty(obj, prop) || !!_objGetOwnPropertyDescriptor$2(obj, prop);
|
|
168
173
|
}
|
|
169
|
-
var objHasOwn = ( /*#__PURE__*/_pureAssign(( /* #__PURE__ */_pureRef(ObjClass, "hasOwn")), polyObjHasOwn));
|
|
170
174
|
function objForEachKey(theObject, callbackfn, thisArg) {
|
|
171
175
|
if (theObject && (isObject(theObject) || isFunction(theObject))) {
|
|
172
176
|
for (var prop in theObject) {
|
|
@@ -203,6 +207,7 @@ function _unwrapFunctionWithPoly(funcName, clsProto, polyFunc) {
|
|
|
203
207
|
throwTypeError("\"" + asString(funcName) + "\" not defined for " + dumpObj(thisArg));
|
|
204
208
|
};
|
|
205
209
|
}
|
|
210
|
+
var _objGetOwnPropertyDescriptor$1 = ( /* #__PURE__ */_pureAssign(( /* #__PURE__ */_pureRef(ObjClass, GET_OWN_PROPERTY_DESCRIPTOR)), _returnNothing));
|
|
206
211
|
var propMap = {
|
|
207
212
|
e: "enumerable",
|
|
208
213
|
c: "configurable",
|
|
@@ -218,7 +223,7 @@ function _createProp(value) {
|
|
|
218
223
|
prop[propMap["e"]] = true;
|
|
219
224
|
if (value.l) {
|
|
220
225
|
prop.get = function () { return value.l.v; };
|
|
221
|
-
var desc =
|
|
226
|
+
var desc = _objGetOwnPropertyDescriptor$1(value.l, "v");
|
|
222
227
|
if (desc && desc.set) {
|
|
223
228
|
prop.set = function (newValue) {
|
|
224
229
|
value.l.v = newValue;
|
|
@@ -251,9 +256,6 @@ function _assignMapValue(theMap, key, value, writable) {
|
|
|
251
256
|
writable: false
|
|
252
257
|
});
|
|
253
258
|
}
|
|
254
|
-
function _returnFalse() {
|
|
255
|
-
return false;
|
|
256
|
-
}
|
|
257
259
|
var objIsFrozen = ( /* #__PURE__*/_pureAssign(( /* #__PURE__ */_pureRef(ObjClass, "isFrozen")), _returnFalse));
|
|
258
260
|
var _objFreeze = ( /* #__PURE__ */_pureRef(ObjClass, "freeze"));
|
|
259
261
|
function _doNothing(value) {
|
|
@@ -411,19 +413,22 @@ function utcNow() {
|
|
|
411
413
|
function polyUtcNow() {
|
|
412
414
|
return new Date().getTime();
|
|
413
415
|
}
|
|
416
|
+
function fnApply(fn, thisArg, argArray) {
|
|
417
|
+
return fn.apply(thisArg, argArray);
|
|
418
|
+
}
|
|
414
419
|
var _globalLazyTestHooks;
|
|
415
420
|
function _initTestHooks() {
|
|
416
421
|
_globalLazyTestHooks = _getGlobalConfig();
|
|
417
422
|
}
|
|
418
423
|
/*#__NO_SIDE_EFFECTS__*/
|
|
419
|
-
function getLazy(cb) {
|
|
424
|
+
function getLazy(cb, argArray) {
|
|
420
425
|
var lazyValue = {};
|
|
421
426
|
!_globalLazyTestHooks && _initTestHooks();
|
|
422
427
|
lazyValue.b = _globalLazyTestHooks.lzy;
|
|
423
428
|
objDefineProp(lazyValue, "v", {
|
|
424
429
|
configurable: true,
|
|
425
430
|
get: function () {
|
|
426
|
-
var result = cb
|
|
431
|
+
var result = fnApply(cb, null, argArray);
|
|
427
432
|
if (!_globalLazyTestHooks.lzy) {
|
|
428
433
|
objDefineProp(lazyValue, "v", {
|
|
429
434
|
value: result
|
|
@@ -646,9 +651,6 @@ function iterForOf(iter, callbackfn, thisArg) {
|
|
|
646
651
|
}
|
|
647
652
|
}
|
|
648
653
|
}
|
|
649
|
-
function fnApply(fn, thisArg, argArray) {
|
|
650
|
-
return fn.apply(thisArg, argArray);
|
|
651
|
-
}
|
|
652
654
|
function arrAppend(target, elms) {
|
|
653
655
|
if (!isUndefined(elms) && target) {
|
|
654
656
|
if (isArray(elms)) {
|
|
@@ -767,6 +769,7 @@ function isPlainObject(value) {
|
|
|
767
769
|
function perfNow() {
|
|
768
770
|
return utcNow();
|
|
769
771
|
}
|
|
772
|
+
var objGetOwnPropertyDescriptor = ( /* #__PURE__ */_pureAssign(( /* #__PURE__ */_pureRef(ObjClass, GET_OWN_PROPERTY_DESCRIPTOR)), _returnNothing));
|
|
770
773
|
var strIndexOf = ( /*#__PURE__*/_unwrapFunction("indexOf", StrProto));
|
|
771
774
|
var strStartsWith = ( /*#__PURE__*/_unwrapFunctionWithPoly("startsWith", StrProto, polyStrStartsWith));
|
|
772
775
|
/*#__NO_SIDE_EFFECTS__*/
|
|
@@ -832,11 +835,33 @@ function _createTimerHandler(startTimer, refreshFn, cancelFn) {
|
|
|
832
835
|
}
|
|
833
836
|
};
|
|
834
837
|
}
|
|
838
|
+
var _setTimeoutFn;
|
|
839
|
+
var _clearTimeoutFn;
|
|
840
|
+
function _resolveTimeoutFn(timeoutFn) {
|
|
841
|
+
var result = isFunction(timeoutFn) ? timeoutFn : _setTimeoutFn;
|
|
842
|
+
if (!result) {
|
|
843
|
+
var globalOverrides = _getGlobalConfig().tmOut || [];
|
|
844
|
+
if (isArray(globalOverrides) && globalOverrides.length > 0 && isFunction(globalOverrides[0])) {
|
|
845
|
+
result = globalOverrides[0];
|
|
846
|
+
}
|
|
847
|
+
}
|
|
848
|
+
return result || setTimeout;
|
|
849
|
+
}
|
|
850
|
+
function _resolveClearTimeoutFn(timeoutFn) {
|
|
851
|
+
var result = isFunction(timeoutFn) ? timeoutFn : _clearTimeoutFn;
|
|
852
|
+
if (!result) {
|
|
853
|
+
var globalOverrides = _getGlobalConfig().tmOut || [];
|
|
854
|
+
if (isArray(globalOverrides) && globalOverrides.length > 1 && isFunction(globalOverrides[1])) {
|
|
855
|
+
result = globalOverrides[1];
|
|
856
|
+
}
|
|
857
|
+
}
|
|
858
|
+
return result || clearTimeout;
|
|
859
|
+
}
|
|
835
860
|
function _createTimeoutWith(startTimer, overrideFn, theArgs) {
|
|
836
861
|
var isArr = isArray(overrideFn);
|
|
837
862
|
var len = isArr ? overrideFn.length : 0;
|
|
838
|
-
var setFn = (len > 0 ? overrideFn[0] : (!isArr ? overrideFn : UNDEF_VALUE))
|
|
839
|
-
var clearFn = (len > 1 ? overrideFn[1] : UNDEF_VALUE)
|
|
863
|
+
var setFn = _resolveTimeoutFn(len > 0 ? overrideFn[0] : (!isArr ? overrideFn : UNDEF_VALUE));
|
|
864
|
+
var clearFn = _resolveClearTimeoutFn(len > 1 ? overrideFn[1] : UNDEF_VALUE);
|
|
840
865
|
var timerFn = theArgs[0];
|
|
841
866
|
theArgs[0] = function () {
|
|
842
867
|
handler.dn();
|
|
@@ -1924,7 +1949,7 @@ function newId(maxLength) {
|
|
|
1924
1949
|
return result;
|
|
1925
1950
|
}
|
|
1926
1951
|
|
|
1927
|
-
var version = '3.3.7-nightly3.2505-
|
|
1952
|
+
var version = '3.3.7-nightly3.2505-07';
|
|
1928
1953
|
var instanceName = "." + newId(6);
|
|
1929
1954
|
var _dataUid = 0;
|
|
1930
1955
|
function _canAcceptData(target) {
|
|
@@ -3576,6 +3601,7 @@ var SenderPostManager = /** @class */ (function () {
|
|
|
3576
3601
|
}
|
|
3577
3602
|
payload[_DYN_DATA ] = combined;
|
|
3578
3603
|
payload[_DYN_HEADERS$1 ]["Content-Encoding"] = "gzip";
|
|
3604
|
+
payload._chunkCount = chunks_1[_DYN_LENGTH$2 ];
|
|
3579
3605
|
}
|
|
3580
3606
|
if (!callbackCalled_1) {
|
|
3581
3607
|
callbackCalled_1 = true;
|
|
@@ -4250,7 +4276,7 @@ var _DYN_LENGTH$1 = "length";
|
|
|
4250
4276
|
var _DYN_PROCESS_TELEMETRY_ST0 = "processTelemetryStart";
|
|
4251
4277
|
|
|
4252
4278
|
var _a$1;
|
|
4253
|
-
var Version = '4.3.7-nightly3.2505-
|
|
4279
|
+
var Version = '4.3.7-nightly3.2505-07';
|
|
4254
4280
|
var FullVersionString = "1DS-Web-JS-" + Version;
|
|
4255
4281
|
var ObjHasOwnProperty = ObjProto$1.hasOwnProperty;
|
|
4256
4282
|
var _fieldTypeEventPropMap = (_a$1 = {},
|
|
@@ -5070,6 +5096,7 @@ var HttpManager = /** @class */ (function () {
|
|
|
5070
5096
|
var _excludeCsMetaData;
|
|
5071
5097
|
var _sendPostMgr;
|
|
5072
5098
|
var _fetchCredentials;
|
|
5099
|
+
var _maxEvtPerBatch = maxEventsPerBatch;
|
|
5073
5100
|
dynamicProto(HttpManager, this, function (_self) {
|
|
5074
5101
|
_initDefaults();
|
|
5075
5102
|
var _sendCredentials = true;
|
|
@@ -5097,6 +5124,8 @@ var HttpManager = /** @class */ (function () {
|
|
|
5097
5124
|
_urlString = endpointUrl + UrlQueryString;
|
|
5098
5125
|
_useHeaders = !isUndefined(channelConfig[_DYN_AVOID_OPTIONS ]) ? !channelConfig[_DYN_AVOID_OPTIONS ] : true;
|
|
5099
5126
|
_enableEventTimings = !channelConfig[_DYN_DISABLE_EVENT_TIMING5 ];
|
|
5127
|
+
var maxEvtCfg = channelConfig.maxEvtPerBatch;
|
|
5128
|
+
_maxEvtPerBatch = maxEvtCfg && maxEvtCfg <= maxEventsPerBatch ? maxEvtCfg : maxEventsPerBatch;
|
|
5100
5129
|
var valueSanitizer = channelConfig.valueSanitizer;
|
|
5101
5130
|
var stringifyObjects = channelConfig.stringifyObjects;
|
|
5102
5131
|
var enableCompoundKey = !!coreConfig[_DYN_ENABLE_COMPOUND_KEY ];
|
|
@@ -5213,7 +5242,7 @@ var HttpManager = /** @class */ (function () {
|
|
|
5213
5242
|
var theBatch = theBatches_1.shift();
|
|
5214
5243
|
if (theBatch && theBatch[_DYN_COUNT ]() > 0) {
|
|
5215
5244
|
thePayload = thePayload || _serializer[_DYN_CREATE_PAYLOAD ](0, false, false, false, 1 , 0 );
|
|
5216
|
-
_serializer.appendPayload(thePayload, theBatch,
|
|
5245
|
+
_serializer.appendPayload(thePayload, theBatch, _maxEvtPerBatch);
|
|
5217
5246
|
}
|
|
5218
5247
|
}
|
|
5219
5248
|
var requestDetails = _buildRequestDetails(thePayload, _useHeaders);
|
|
@@ -5248,7 +5277,7 @@ var HttpManager = /** @class */ (function () {
|
|
|
5248
5277
|
return null;
|
|
5249
5278
|
}
|
|
5250
5279
|
_self["_getDbgPlgTargets"] = function () {
|
|
5251
|
-
return [_sendInterfaces[0 ], _killSwitch, _serializer, _sendInterfaces, _getSendPostMgrConfig(), _urlString];
|
|
5280
|
+
return [_sendInterfaces[0 ], _killSwitch, _serializer, _sendInterfaces, _getSendPostMgrConfig(), _urlString, _maxEvtPerBatch];
|
|
5252
5281
|
};
|
|
5253
5282
|
function _getSendPostMgrConfig() {
|
|
5254
5283
|
try {
|
|
@@ -5316,6 +5345,7 @@ var HttpManager = /** @class */ (function () {
|
|
|
5316
5345
|
_timeoutWrapper = createTimeoutWrapper();
|
|
5317
5346
|
_excludeCsMetaData = false;
|
|
5318
5347
|
_sendPostMgr = null;
|
|
5348
|
+
_maxEvtPerBatch = null;
|
|
5319
5349
|
}
|
|
5320
5350
|
function _fetchOnComplete(response, onComplete, resValue, payload) {
|
|
5321
5351
|
var handleResponse = function (status, headerMap, responseText) {
|
|
@@ -5518,7 +5548,7 @@ var HttpManager = /** @class */ (function () {
|
|
|
5518
5548
|
if (theBatch && theBatch[_DYN_COUNT ]() > 0) {
|
|
5519
5549
|
if (!_killSwitch.isTenantKilled(theBatch[_DYN_I_KEY ]())) {
|
|
5520
5550
|
thePayload = thePayload || _serializer[_DYN_CREATE_PAYLOAD ](retryCount, isTeardown, isSynchronous_1, isReducedPayload, sendReason, sendType);
|
|
5521
|
-
if (!_serializer.appendPayload(thePayload, theBatch,
|
|
5551
|
+
if (!_serializer.appendPayload(thePayload, theBatch, _maxEvtPerBatch)) {
|
|
5522
5552
|
_doPayloadSend(thePayload, serializationStart, getTime(), sendReason);
|
|
5523
5553
|
serializationStart = getTime();
|
|
5524
5554
|
theBatches = [theBatch][_DYN_CONCAT ](theBatches);
|
|
@@ -5945,6 +5975,7 @@ var defaultPostChannelConfig = objDeepFreeze({
|
|
|
5945
5975
|
maxEventRetryAttempts: { isVal: isNumber, v: MaxSendAttempts },
|
|
5946
5976
|
maxUnloadEventRetryAttempts: { isVal: isNumber, v: MaxSyncUnloadSendAttempts },
|
|
5947
5977
|
addNoResponse: undefValue,
|
|
5978
|
+
maxEvtPerBatch: { isVal: isNumber, v: MaxNumberEventPerBatch },
|
|
5948
5979
|
excludeCsMetaData: undefValue,
|
|
5949
5980
|
requestLimit: {}
|
|
5950
5981
|
});
|
|
@@ -5957,7 +5988,7 @@ var PostChannel = /** @class */ (function (_super) {
|
|
|
5957
5988
|
var _this = _super.call(this) || this;
|
|
5958
5989
|
_this.identifier = "PostChannel";
|
|
5959
5990
|
_this.priority = 1011;
|
|
5960
|
-
_this.version = '4.3.7-nightly3.2505-
|
|
5991
|
+
_this.version = '4.3.7-nightly3.2505-07';
|
|
5961
5992
|
var _postConfig;
|
|
5962
5993
|
var _isTeardownCalled = false;
|
|
5963
5994
|
var _flushCallbackQueue = [];
|
|
@@ -5991,6 +6022,7 @@ var PostChannel = /** @class */ (function (_super) {
|
|
|
5991
6022
|
var _unloadHandlersAdded;
|
|
5992
6023
|
var _overrideInstrumentationKey;
|
|
5993
6024
|
var _disableTelemetry;
|
|
6025
|
+
var _maxEvtPerBatch;
|
|
5994
6026
|
dynamicProto(PostChannel, _this, function (_self, _base) {
|
|
5995
6027
|
_initDefaults();
|
|
5996
6028
|
_self["_getDbgPlgTargets"] = function () {
|
|
@@ -6016,6 +6048,7 @@ var PostChannel = /** @class */ (function (_super) {
|
|
|
6016
6048
|
_maxEventSendAttempts = _postConfig.maxEventRetryAttempts;
|
|
6017
6049
|
_maxUnloadEventSendAttempts = _postConfig.maxUnloadEventRetryAttempts;
|
|
6018
6050
|
_disableAutoBatchFlushLimit = _postConfig[_DYN_DISABLE_AUTO_BATCH_F15 ];
|
|
6051
|
+
_maxEvtPerBatch = _postConfig.maxEvtPerBatch;
|
|
6019
6052
|
if (isPromiseLike(coreConfig.endpointUrl)) {
|
|
6020
6053
|
_self.pause();
|
|
6021
6054
|
}
|
|
@@ -6396,6 +6429,7 @@ var PostChannel = /** @class */ (function (_super) {
|
|
|
6396
6429
|
_maxUnloadEventSendAttempts = MaxSyncUnloadSendAttempts;
|
|
6397
6430
|
_evtNamespace = null;
|
|
6398
6431
|
_overrideInstrumentationKey = null;
|
|
6432
|
+
_maxEvtPerBatch = null;
|
|
6399
6433
|
_disableTelemetry = false;
|
|
6400
6434
|
_timeoutWrapper = createTimeoutWrapper();
|
|
6401
6435
|
_httpManager = new HttpManager(MaxNumberEventPerBatch, MaxConnections, MaxRequestRetriesBeforeBackoff, {
|
|
@@ -6723,7 +6757,7 @@ var PostChannel = /** @class */ (function (_super) {
|
|
|
6723
6757
|
}
|
|
6724
6758
|
function _setAutoLimits() {
|
|
6725
6759
|
if (!_disableAutoBatchFlushLimit) {
|
|
6726
|
-
_autoFlushBatchLimit = mathMax(
|
|
6760
|
+
_autoFlushBatchLimit = mathMax(_maxEvtPerBatch * (MaxConnections + 1), _queueSizeLimit / 6);
|
|
6727
6761
|
}
|
|
6728
6762
|
else {
|
|
6729
6763
|
_autoFlushBatchLimit = 0;
|
|
@@ -6742,4 +6776,4 @@ exports.PostChannel = PostChannel;
|
|
|
6742
6776
|
exports.RT_PROFILE = RT_PROFILE;
|
|
6743
6777
|
|
|
6744
6778
|
}));
|
|
6745
|
-
//# sourceMappingURL=ms.post-4.3.7-nightly3.2505-
|
|
6779
|
+
//# sourceMappingURL=ms.post-4.3.7-nightly3.2505-07.gbl.js.map
|