@microsoft/applicationinsights-offlinechannel-js 0.2.1-nightly3.2405-07 → 0.2.1-nightly3.2405-18

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.
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Application Insights JavaScript SDK - Offline Channel, 0.2.1-nightly3.2405-07
2
+ * Application Insights JavaScript SDK - Offline Channel, 0.2.1-nightly3.2405-18
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
  (function (global, factory) {
@@ -1972,7 +1972,7 @@
1972
1972
  return result;
1973
1973
  }
1974
1974
 
1975
- var version$1 = '3.2.1-nightly3.2405-07';
1975
+ var version$1 = '3.2.1-nightly3.2405-18';
1976
1976
  var instanceName = "." + newId(6);
1977
1977
  var _dataUid = 0;
1978
1978
  function _canAcceptData(target) {
@@ -4323,8 +4323,9 @@
4323
4323
  var _DYN_BATCH_HANDLER = "batchHandler";
4324
4324
  var _DYN_MIN_PERSISTENCE_CACH0 = "minPersistenceCacheLevel";
4325
4325
  var _DYN_REFRESH = "refresh";
4326
- var _DYN_IS_COMPLETELY_IDLE = "isCompletelyIdle";
4326
+ var _DYN_CREATE_ONE_DSPAYLOAD = "createOneDSPayload";
4327
4327
  var _DYN_CRITICAL_CNT = "criticalCnt";
4328
+ var _DYN_IS_COMPLETELY_IDLE = "isCompletelyIdle";
4328
4329
  var _DYN_GET_OFFLINE_SUPPORT = "getOfflineSupport";
4329
4330
  var _DYN_OVERRIDE_INSTRUMENTA1 = "overrideInstrumentationKey";
4330
4331
  var _DYN_INSTRUMENTATION_KEY = "instrumentationKey";
@@ -6297,7 +6298,7 @@
6297
6298
  return Sender;
6298
6299
  }());
6299
6300
 
6300
- var version = '0.2.1-nightly3.2405-07';
6301
+ var version = '0.2.1-nightly3.2405-18';
6301
6302
  var DefaultOfflineIdentifier = "OfflineChannel";
6302
6303
  var DefaultBatchInterval = 15000;
6303
6304
  var DefaultInMemoMaxTime = 15000;
@@ -6533,7 +6534,16 @@
6533
6534
  }
6534
6535
  var sentItems_1 = evts.slice(0, idx_1 + 1);
6535
6536
  _inMemoBatch = _inMemoBatch.createNew(_endpoint, inMemo[_DYN_GET_ITEMS ]().slice(idx_1 + 1), _evtsLimitInMemo);
6536
- var payloadData = _constructPayloadData(payloadArr_1, criticalCnt_1);
6537
+ var payloadData = null;
6538
+ if (_offineSupport && _offineSupport[_DYN_CREATE_ONE_DSPAYLOAD ]) {
6539
+ payloadData = _offineSupport[_DYN_CREATE_ONE_DSPAYLOAD ](sentItems_1);
6540
+ if (payloadData) {
6541
+ payloadData[_DYN_CRITICAL_CNT ] = criticalCnt_1;
6542
+ }
6543
+ }
6544
+ else {
6545
+ payloadData = _constructPayloadData(payloadArr_1, criticalCnt_1);
6546
+ }
6537
6547
  var callback = function (res) {
6538
6548
  if (!res || !res[_DYN_STATE ]) {
6539
6549
  return null;