@microsoft/applicationinsights-web-basic 3.0.0-beta.2301-08 → 3.0.0-beta.2301-09

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.
@@ -0,0 +1,26 @@
1
+ {
2
+ "name": "aib",
3
+ "version": "3.0.0-beta.2301-09",
4
+ "ext": {
5
+ "@js": {
6
+ "file": "aib.3.0.0-beta.2301-09.js",
7
+ "type": "text/javascript; charset=utf-8",
8
+ "integrity": "sha256-vqQQwsFa58a2BP0afCX/NvDvI2LDvwDEWC0GriFOwrk= sha384-7FDr4o0ec/6R3kUPrPFbY3r/u0FCtGTsC1wvTGof4y0j2342eExM8ky9UodfX/UW sha512-2lDIgWpYsqaxMQEEo6WM7hCrrlcmzppvC5fZD/J8eiKip+yWpqNyXlgLPCo3F4+yyeTsdfqrh2fsvy8xdxhdKg==",
9
+ "hashes": {
10
+ "sha256": "vqQQwsFa58a2BP0afCX/NvDvI2LDvwDEWC0GriFOwrk=",
11
+ "sha384": "7FDr4o0ec/6R3kUPrPFbY3r/u0FCtGTsC1wvTGof4y0j2342eExM8ky9UodfX/UW",
12
+ "sha512": "2lDIgWpYsqaxMQEEo6WM7hCrrlcmzppvC5fZD/J8eiKip+yWpqNyXlgLPCo3F4+yyeTsdfqrh2fsvy8xdxhdKg=="
13
+ }
14
+ },
15
+ "@min.js": {
16
+ "file": "aib.3.0.0-beta.2301-09.min.js",
17
+ "type": "text/javascript; charset=utf-8",
18
+ "integrity": "sha256-2tRSISkouYWb8YXYGs7a9botxp9vi5SjKl9kPM873a8= sha384-5raf9YoDoXVrsEIj13eHs/c07VXLooyOqpcI5jvdiiVOW1zYe3OEOqJo+Ce1KFiJ sha512-kdJCg5EXzZMZFkn92SMSKg14kFZqK9IYZpfAoSqSm/+JvHH+eTOmL5qHJU/UviGiUk6H+eibv4bZydb/gzK1CQ==",
19
+ "hashes": {
20
+ "sha256": "2tRSISkouYWb8YXYGs7a9botxp9vi5SjKl9kPM873a8=",
21
+ "sha384": "5raf9YoDoXVrsEIj13eHs/c07VXLooyOqpcI5jvdiiVOW1zYe3OEOqJo+Ce1KFiJ",
22
+ "sha512": "kdJCg5EXzZMZFkn92SMSKg14kFZqK9IYZpfAoSqSm/+JvHH+eTOmL5qHJU/UviGiUk6H+eibv4bZydb/gzK1CQ=="
23
+ }
24
+ }
25
+ }
26
+ }
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Application Insights JavaScript Web SDK - Basic, 3.0.0-beta.2301-08
2
+ * Application Insights JavaScript Web SDK - Basic, 3.0.0-beta.2301-09
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
  (function (global, factory) {
@@ -1116,7 +1116,7 @@
1116
1116
  var _DYN_CALL = "call";
1117
1117
  var _DYN_VERSION = "version";
1118
1118
  var _DYN_LOGGING_LEVEL_CONSOL4 = "loggingLevelConsole";
1119
- var _DYN_CREATE_NEW = "createNew";
1119
+ var _DYN_CREATE_NEW$1 = "createNew";
1120
1120
  var _DYN_TEARDOWN = "teardown";
1121
1121
  var _DYN_MESSAGE_ID = "messageId";
1122
1122
  var _DYN_MESSAGE$1 = "message";
@@ -1551,7 +1551,7 @@
1551
1551
  }
1552
1552
 
1553
1553
  var _objDefineProperty = ObjDefineProperty;
1554
- var version = "3.0.0-beta.2301-08";
1554
+ var version = "3.0.0-beta.2301-09";
1555
1555
  var instanceName = "." + newId(6);
1556
1556
  var _dataUid = 0;
1557
1557
  function _createAccessor(target, prop, value) {
@@ -2996,7 +2996,7 @@
2996
2996
  return createProcessTelemetryContext(plugins || context[_DYN_GET_NEXT ](), config.cfg, core, startAt);
2997
2997
  }
2998
2998
  context[_DYN_PROCESS_NEXT ] = _processNext;
2999
- context[_DYN_CREATE_NEW ] = _createNew;
2999
+ context[_DYN_CREATE_NEW$1 ] = _createNew;
3000
3000
  return context;
3001
3001
  }
3002
3002
  function createProcessTelemetryUnloadContext(telemetryChain, core, startAt) {
@@ -3016,7 +3016,7 @@
3016
3016
  return createProcessTelemetryUnloadContext(plugins || context[_DYN_GET_NEXT ](), core, startAt);
3017
3017
  }
3018
3018
  context[_DYN_PROCESS_NEXT ] = _processNext;
3019
- context[_DYN_CREATE_NEW ] = _createNew;
3019
+ context[_DYN_CREATE_NEW$1 ] = _createNew;
3020
3020
  return context;
3021
3021
  }
3022
3022
  function createProcessTelemetryUpdateContext(telemetryChain, core, startAt) {
@@ -3038,7 +3038,7 @@
3038
3038
  return createProcessTelemetryUpdateContext(plugins || context[_DYN_GET_NEXT ](), core, startAt);
3039
3039
  }
3040
3040
  context[_DYN_PROCESS_NEXT ] = _processNext;
3041
- context[_DYN_CREATE_NEW ] = _createNew;
3041
+ context[_DYN_CREATE_NEW$1 ] = _createNew;
3042
3042
  return context;
3043
3043
  }
3044
3044
  function createTelemetryProxyChain(plugins, config, core, startAt) {
@@ -3340,10 +3340,10 @@
3340
3340
  if (!itemCtx) {
3341
3341
  var rootCtx = _rootCtx || createProcessTelemetryContext(null, {}, _self[STR_CORE ]);
3342
3342
  if (_nextPlugin && _nextPlugin[strGetPlugin]) {
3343
- itemCtx = rootCtx[_DYN_CREATE_NEW ](null, _nextPlugin[strGetPlugin]);
3343
+ itemCtx = rootCtx[_DYN_CREATE_NEW$1 ](null, _nextPlugin[strGetPlugin]);
3344
3344
  }
3345
3345
  else {
3346
- itemCtx = rootCtx[_DYN_CREATE_NEW ](null, _nextPlugin);
3346
+ itemCtx = rootCtx[_DYN_CREATE_NEW$1 ](null, _nextPlugin);
3347
3347
  }
3348
3348
  }
3349
3349
  return itemCtx;
@@ -3984,7 +3984,7 @@
3984
3984
  _extensions = objFreeze(allExtensions);
3985
3985
  var rootCtx = _createTelCtx();
3986
3986
  if (_channels && _channels[_DYN_LENGTH$2 ] > 0) {
3987
- initializePlugins(rootCtx[_DYN_CREATE_NEW ](_channels), allExtensions);
3987
+ initializePlugins(rootCtx[_DYN_CREATE_NEW$1 ](_channels), allExtensions);
3988
3988
  }
3989
3989
  initializePlugins(rootCtx, allExtensions);
3990
3990
  if (updateState) {
@@ -4117,7 +4117,7 @@
4117
4117
  }
4118
4118
  }
4119
4119
  if (_channels && _channels[_DYN_LENGTH$2 ] > 0) {
4120
- var flushCtx = _createTelCtx()[_DYN_CREATE_NEW ](_channels);
4120
+ var flushCtx = _createTelCtx()[_DYN_CREATE_NEW$1 ](_channels);
4121
4121
  flushCtx.iterate(function (plugin) {
4122
4122
  if (plugin.flush) {
4123
4123
  waiting++;
@@ -5542,6 +5542,7 @@
5542
5542
  var _DYN_ENVELOPE_TYPE = "envelopeType";
5543
5543
  var _DYN_TO_STRING = "toString";
5544
5544
  var _DYN_ON_LINE = "onLine";
5545
+ var _DYN__GET = "_get";
5545
5546
  var _DYN_ENQUEUE = "enqueue";
5546
5547
  var _DYN_COUNT = "count";
5547
5548
  var _DYN_EVENTS_LIMIT_IN_MEM = "eventsLimitInMem";
@@ -5549,23 +5550,23 @@
5549
5550
  var _DYN_EMIT_LINE_DELIMITED_0 = "emitLineDelimitedJson";
5550
5551
  var _DYN_CLEAR = "clear";
5551
5552
  var _DYN_BATCH_PAYLOADS = "batchPayloads";
5553
+ var _DYN_CREATE_NEW = "createNew";
5552
5554
  var _DYN_MARK_AS_SENT = "markAsSent";
5553
5555
  var _DYN_CLEAR_SENT = "clearSent";
5554
5556
  var _DYN__BUFFER__KEY = "BUFFER_KEY";
5555
5557
  var _DYN__SENT__BUFFER__KEY = "SENT_BUFFER_KEY";
5556
5558
  var _DYN__MAX__BUFFER__SIZE = "MAX_BUFFER_SIZE";
5557
- var _DYN_NAME_PREFIX = "namePrefix";
5558
5559
  var _DYN_TRIGGER_SEND = "triggerSend";
5559
5560
  var _DYN_DIAG_LOG = "diagLog";
5560
5561
  var _DYN__SENDER = "_sender";
5562
+ var _DYN_CUSTOM_HEADERS = "customHeaders";
5561
5563
  var _DYN_MAX_BATCH_SIZE_IN_BY1 = "maxBatchSizeInBytes";
5562
5564
  var _DYN_ONUNLOAD_DISABLE_BEA2 = "onunloadDisableBeacon";
5563
5565
  var _DYN_IS_BEACON_API_DISABL3 = "isBeaconApiDisabled";
5564
- var _DYN__BUFFER = "_buffer";
5565
5566
  var _DYN_ENABLE_SESSION_STORA4 = "enableSessionStorageBuffer";
5567
+ var _DYN__BUFFER = "_buffer";
5566
5568
  var _DYN_SAMPLING_PERCENTAGE = "samplingPercentage";
5567
5569
  var _DYN_INSTRUMENTATION_KEY$1 = "instrumentationKey";
5568
- var _DYN_CUSTOM_HEADERS = "customHeaders";
5569
5570
  var _DYN_DISABLE_XHR = "disableXhr";
5570
5571
  var _DYN_ONUNLOAD_DISABLE_FET5 = "onunloadDisableFetch";
5571
5572
  var _DYN_CONVERT_UNDEFINED = "convertUndefined";
@@ -5692,7 +5693,7 @@
5692
5693
  }
5693
5694
  }
5694
5695
  var EnvelopeCreator = {
5695
- Version: "3.0.0-beta.2301-08"
5696
+ Version: "3.0.0-beta.2301-09"
5696
5697
  };
5697
5698
  function DependencyEnvelopeCreator(logger, telemetryItem, customUndefinedValue) {
5698
5699
  EnvelopeCreatorInit(logger, telemetryItem);
@@ -5921,7 +5922,7 @@
5921
5922
  function BaseSendBuffer(logger, config) {
5922
5923
  var _buffer = [];
5923
5924
  var _bufferFullMessageSent = false;
5924
- this._get = function () {
5925
+ this[_DYN__GET ] = function () {
5925
5926
  return _buffer;
5926
5927
  };
5927
5928
  this._set = function (buffer) {
@@ -5968,6 +5969,16 @@
5968
5969
  }
5969
5970
  return null;
5970
5971
  };
5972
+ _self[_DYN_CREATE_NEW ] = function (newLogger, newConfig, canUseSessionStorage) {
5973
+ var items = _buffer.slice(0);
5974
+ newLogger = newLogger || logger;
5975
+ newConfig = newConfig || {};
5976
+ var newBuffer = !!canUseSessionStorage ? new SessionStorageSendBuffer(newLogger, newConfig) : new ArraySendBuffer(newLogger, newConfig);
5977
+ arrForEach(items, function (payload) {
5978
+ newBuffer[_DYN_ENQUEUE ](payload);
5979
+ });
5980
+ return newBuffer;
5981
+ };
5971
5982
  });
5972
5983
  }
5973
5984
  BaseSendBuffer.__ieDyn=1;
@@ -5994,6 +6005,7 @@
5994
6005
  function SessionStorageSendBuffer(logger, config) {
5995
6006
  var _this = _super.call(this, logger, config) || this;
5996
6007
  var _bufferFullMessageSent = false;
6008
+ var _namePrefix = config === null || config === void 0 ? void 0 : config.namePrefix;
5997
6009
  dynamicProto(SessionStorageSendBuffer, _this, function (_self, _base) {
5998
6010
  var bufferItems = _getBuffer(SessionStorageSendBuffer[_DYN__BUFFER__KEY ]);
5999
6011
  var notDeliveredItems = _getBuffer(SessionStorageSendBuffer[_DYN__SENT__BUFFER__KEY ]);
@@ -6012,16 +6024,16 @@
6012
6024
  return;
6013
6025
  }
6014
6026
  _base[_DYN_ENQUEUE ](payload);
6015
- _setBuffer(SessionStorageSendBuffer[_DYN__BUFFER__KEY ], _self._get());
6027
+ _setBuffer(SessionStorageSendBuffer.BUFFER_KEY, _self[_DYN__GET ]());
6016
6028
  };
6017
6029
  _self[_DYN_CLEAR ] = function () {
6018
6030
  _base[_DYN_CLEAR ]();
6019
- _setBuffer(SessionStorageSendBuffer[_DYN__BUFFER__KEY ], _self._get());
6031
+ _setBuffer(SessionStorageSendBuffer.BUFFER_KEY, _self[_DYN__GET ]());
6020
6032
  _setBuffer(SessionStorageSendBuffer[_DYN__SENT__BUFFER__KEY ], []);
6021
6033
  _bufferFullMessageSent = false;
6022
6034
  };
6023
6035
  _self[_DYN_MARK_AS_SENT ] = function (payload) {
6024
- _setBuffer(SessionStorageSendBuffer[_DYN__BUFFER__KEY ], _self._set(_removePayloadsFromBuffer(payload, _self._get())));
6036
+ _setBuffer(SessionStorageSendBuffer[_DYN__BUFFER__KEY ], _self._set(_removePayloadsFromBuffer(payload, _self[_DYN__GET ]())));
6025
6037
  var sentElements = _getBuffer(SessionStorageSendBuffer[_DYN__SENT__BUFFER__KEY ]);
6026
6038
  if (sentElements instanceof Array && payload instanceof Array) {
6027
6039
  sentElements = sentElements.concat(payload);
@@ -6037,6 +6049,22 @@
6037
6049
  sentElements = _removePayloadsFromBuffer(payload, sentElements);
6038
6050
  _setBuffer(SessionStorageSendBuffer[_DYN__SENT__BUFFER__KEY ], sentElements);
6039
6051
  };
6052
+ _self[_DYN_CREATE_NEW ] = function (newLogger, newConfig, canUseSessionStorage) {
6053
+ canUseSessionStorage = !!canUseSessionStorage;
6054
+ var unsentItems = _self[_DYN__GET ]().slice(0);
6055
+ var sentItems = _getBuffer(SessionStorageSendBuffer[_DYN__SENT__BUFFER__KEY ]).slice(0);
6056
+ newLogger = newLogger || logger;
6057
+ newConfig = newConfig || {};
6058
+ _self[_DYN_CLEAR ]();
6059
+ var newBuffer = canUseSessionStorage ? new SessionStorageSendBuffer(newLogger, newConfig) : new ArraySendBuffer(newLogger, newConfig);
6060
+ arrForEach(unsentItems, function (payload) {
6061
+ newBuffer[_DYN_ENQUEUE ](payload);
6062
+ });
6063
+ if (canUseSessionStorage) {
6064
+ newBuffer[_DYN_MARK_AS_SENT ](sentItems);
6065
+ }
6066
+ return newBuffer;
6067
+ };
6040
6068
  function _removePayloadsFromBuffer(payloads, buffer) {
6041
6069
  var remaining = [];
6042
6070
  arrForEach(buffer, function (value) {
@@ -6049,7 +6077,7 @@
6049
6077
  function _getBuffer(key) {
6050
6078
  var prefixedKey = key;
6051
6079
  try {
6052
- prefixedKey = config[_DYN_NAME_PREFIX ] ? config[_DYN_NAME_PREFIX ] + "_" + prefixedKey : prefixedKey;
6080
+ prefixedKey = _namePrefix ? _namePrefix + "_" + prefixedKey : prefixedKey;
6053
6081
  var bufferJson = utlGetSessionStorage(logger, prefixedKey);
6054
6082
  if (bufferJson) {
6055
6083
  var buffer_1 = getJSON().parse(bufferJson);
@@ -6069,7 +6097,7 @@
6069
6097
  function _setBuffer(key, buffer) {
6070
6098
  var prefixedKey = key;
6071
6099
  try {
6072
- prefixedKey = config[_DYN_NAME_PREFIX ] ? config[_DYN_NAME_PREFIX ] + "_" + prefixedKey : prefixedKey;
6100
+ prefixedKey = _namePrefix ? _namePrefix + "_" + prefixedKey : prefixedKey;
6073
6101
  var bufferJson = JSON[_DYN_STRINGIFY ](buffer);
6074
6102
  utlSetSessionStorage(logger, prefixedKey, bufferJson);
6075
6103
  }
@@ -6338,7 +6366,7 @@
6338
6366
  _a[_DYN_ONUNLOAD_DISABLE_FET5 ] = false,
6339
6367
  _a[_DYN_ONUNLOAD_DISABLE_BEA2 ] = false,
6340
6368
  _a[_DYN_INSTRUMENTATION_KEY$1 ] = UNDEFINED_VALUE,
6341
- _a[_DYN_NAME_PREFIX ] = UNDEFINED_VALUE,
6369
+ _a.namePrefix = UNDEFINED_VALUE,
6342
6370
  _a[_DYN_SAMPLING_PERCENTAGE ] = 100,
6343
6371
  _a[_DYN_CUSTOM_HEADERS ] = UNDEFINED_VALUE,
6344
6372
  _a[_DYN_CONVERT_UNDEFINED ] = UNDEFINED_VALUE,
@@ -6382,6 +6410,8 @@
6382
6410
  var _convertUndefined;
6383
6411
  var _isRetryDisabled;
6384
6412
  var _maxBatchInterval;
6413
+ var _sessionStorageUsed;
6414
+ var _namePrefix;
6385
6415
  dynamicProto(Sender, _this, function (_self, _base) {
6386
6416
  _initDefaults();
6387
6417
  _self.pause = function () {
@@ -6392,9 +6422,7 @@
6392
6422
  if (_paused) {
6393
6423
  _paused = false;
6394
6424
  _retryAt = null;
6395
- if (_self[_DYN__BUFFER ].size() > _maxBatchSizeInBytes) {
6396
- _self[_DYN_TRIGGER_SEND ](true, null, 10 );
6397
- }
6425
+ _checkMaxSize();
6398
6426
  _setupTimer();
6399
6427
  }
6400
6428
  };
@@ -6443,7 +6471,8 @@
6443
6471
  var diagLog = _self[_DYN_DIAG_LOG ]();
6444
6472
  _evtNamespace = mergeEvtNamespace(createUniqueNamespace("Sender"), core.evtNamespace && core.evtNamespace());
6445
6473
  _offlineListener = createOfflineListener(_evtNamespace);
6446
- _self._addHook(onConfigChange(config, function () {
6474
+ _self._addHook(onConfigChange(config, function (details) {
6475
+ var config = details.cfg;
6447
6476
  var ctx = createProcessTelemetryContext(null, config, core);
6448
6477
  var senderConfig = ctx.getExtCfg(identifier, defaultAppInsightsChannelConfig);
6449
6478
  objDefineProp(_self, "_senderConfig", {
@@ -6453,26 +6482,42 @@
6453
6482
  return senderConfig;
6454
6483
  }
6455
6484
  });
6485
+ if (_orgEndpointUrl !== senderConfig.endpointUrl) {
6486
+ _endpointUrl = _orgEndpointUrl = senderConfig.endpointUrl;
6487
+ }
6488
+ if (_customHeaders && _customHeaders !== senderConfig[_DYN_CUSTOM_HEADERS ]) {
6489
+ arrForEach(_customHeaders, function (customHeader) {
6490
+ delete _headers[customHeader.header];
6491
+ });
6492
+ }
6456
6493
  _maxBatchSizeInBytes = senderConfig[_DYN_MAX_BATCH_SIZE_IN_BY1 ];
6457
6494
  _beaconSupported = (senderConfig[_DYN_ONUNLOAD_DISABLE_BEA2 ] === false || senderConfig[_DYN_IS_BEACON_API_DISABL3 ] === false) && isBeaconsSupported();
6458
- if (_self[_DYN__BUFFER ]) ;
6495
+ var canUseSessionStorage = !!senderConfig[_DYN_ENABLE_SESSION_STORA4 ] && utlCanUseSessionStorage();
6496
+ var namePrefix = senderConfig.namePrefix;
6497
+ var shouldUpdate = (canUseSessionStorage !== _sessionStorageUsed)
6498
+ || (canUseSessionStorage && (_namePrefix !== namePrefix));
6499
+ if (_self[_DYN__BUFFER ]) {
6500
+ if (shouldUpdate) {
6501
+ try {
6502
+ _self._buffer = _self._buffer[_DYN_CREATE_NEW ](diagLog, senderConfig, canUseSessionStorage);
6503
+ }
6504
+ catch (e) {
6505
+ _throwInternal(_self[_DYN_DIAG_LOG ](), 1 , 12 , "failed to transfer telemetry to different buffer storage, telemetry will be lost: " + getExceptionName(e), { exception: dumpObj(e) });
6506
+ }
6507
+ }
6508
+ _checkMaxSize();
6509
+ }
6459
6510
  else {
6460
- _self[_DYN__BUFFER ] = (senderConfig[_DYN_ENABLE_SESSION_STORA4 ] && utlCanUseSessionStorage())
6511
+ _self[_DYN__BUFFER ] = canUseSessionStorage
6461
6512
  ? new SessionStorageSendBuffer(diagLog, senderConfig) : new ArraySendBuffer(diagLog, senderConfig);
6462
6513
  }
6514
+ _namePrefix = namePrefix;
6515
+ _sessionStorageUsed = canUseSessionStorage;
6463
6516
  _self._sample = new Sample(senderConfig[_DYN_SAMPLING_PERCENTAGE ], diagLog);
6464
6517
  _instrumentationKey = senderConfig[_DYN_INSTRUMENTATION_KEY$1 ];
6465
6518
  if (!_validateInstrumentationKey(_instrumentationKey, config)) {
6466
6519
  _throwInternal(diagLog, 1 , 100 , "Invalid Instrumentation key " + _instrumentationKey);
6467
6520
  }
6468
- if (_orgEndpointUrl !== senderConfig.endpointUrl) {
6469
- _endpointUrl = _orgEndpointUrl = senderConfig.endpointUrl;
6470
- }
6471
- if (_customHeaders && _customHeaders !== senderConfig[_DYN_CUSTOM_HEADERS ]) {
6472
- arrForEach(_customHeaders, function (customHeader) {
6473
- delete _headers[customHeader.header];
6474
- });
6475
- }
6476
6521
  _customHeaders = senderConfig[_DYN_CUSTOM_HEADERS ];
6477
6522
  if (!isInternalApplicationInsightsEndpoint(_endpointUrl) && _customHeaders && _customHeaders[_DYN_LENGTH ] > 0) {
6478
6523
  arrForEach(_customHeaders, function (customHeader) {
@@ -6573,10 +6618,7 @@
6573
6618
  }
6574
6619
  var payload = _serializer.serialize(aiEnvelope_1);
6575
6620
  var buffer = _self[_DYN__BUFFER ];
6576
- var bufferSize = buffer.size();
6577
- if ((bufferSize + payload[_DYN_LENGTH ]) > _maxBatchSizeInBytes) {
6578
- _self[_DYN_TRIGGER_SEND ](true, null, 10 );
6579
- }
6621
+ _checkMaxSize(payload);
6580
6622
  buffer[_DYN_ENQUEUE ](payload);
6581
6623
  _setupTimer();
6582
6624
  }
@@ -6680,6 +6722,14 @@
6680
6722
  function _isSampledIn(envelope) {
6681
6723
  return _self._sample.isSampledIn(envelope);
6682
6724
  }
6725
+ function _checkMaxSize(incomingPayload) {
6726
+ var incomingSize = incomingPayload ? incomingPayload[_DYN_LENGTH ] : 0;
6727
+ if ((_self[_DYN__BUFFER ].size() + incomingSize) > _maxBatchSizeInBytes) {
6728
+ _self[_DYN_TRIGGER_SEND ](true, null, 10 );
6729
+ return true;
6730
+ }
6731
+ return false;
6732
+ }
6683
6733
  function _checkResponsStatus(status, payload, responseUrl, countOfItemsInPayload, errorMessage, res) {
6684
6734
  var response = null;
6685
6735
  if (!_self._appId) {
@@ -7055,6 +7105,8 @@
7055
7105
  _instrumentationKey = null;
7056
7106
  _convertUndefined = UNDEFINED_VALUE;
7057
7107
  _isRetryDisabled = false;
7108
+ _sessionStorageUsed = null;
7109
+ _namePrefix = UNDEFINED_VALUE;
7058
7110
  objDefineProp(_self, "_senderConfig", {
7059
7111
  enumerable: true,
7060
7112
  configurable: true,
@@ -7144,4 +7196,4 @@
7144
7196
  Object.defineProperty(exports, '__esModule', { value: true });
7145
7197
 
7146
7198
  }));
7147
- //# sourceMappingURL=aib.3.0.0-beta.2301-08.js.map
7199
+ //# sourceMappingURL=aib.3.0.0-beta.2301-09.js.map