@microsoft/applicationinsights-offlinechannel-js 0.3.11-nightly3.2511-05 → 0.3.11-nightly3.2512-10

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.3.11-nightly3.2511-05
2
+ * Application Insights JavaScript SDK - Offline Channel, 0.3.11-nightly3.2512-10
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
  (function (global, factory) {
@@ -847,7 +847,8 @@
847
847
  InvalidEvent: 2 ,
848
848
  SizeLimitExceeded: 3 ,
849
849
  KillSwitch: 4 ,
850
- QueueFull: 5
850
+ QueueFull: 5 ,
851
+ BeaconSendFailure: 6
851
852
  }));
852
853
 
853
854
  var _DYN_TO_LOWER_CASE = "toLowerCase";
@@ -2102,7 +2103,7 @@
2102
2103
  return result;
2103
2104
  }
2104
2105
 
2105
- var version$1 = '3.3.11-nightly3.2511-05';
2106
+ var version$1 = '3.3.11-nightly3.2512-10';
2106
2107
  var instanceName = "." + newId(6);
2107
2108
  var _dataUid = 0;
2108
2109
  function _canAcceptData(target) {
@@ -4526,6 +4527,7 @@
4526
4527
  var _DYN_SUPPORTS_SYNC_REQUES0 = "supportsSyncRequests";
4527
4528
  var _DYN_IS_ARR = "isArr";
4528
4529
  var _DYN_INDEX_OF = "indexOf";
4530
+ var _DYN_IS_ONLINE = "isOnline";
4529
4531
  var _DYN_CANCEL = "cancel";
4530
4532
  var _DYN_PROCESS_NEXT = "processNext";
4531
4533
  var _DYN_PERSISTENCE = "persistence";
@@ -6520,7 +6522,7 @@
6520
6522
  return Sender;
6521
6523
  }());
6522
6524
 
6523
- var version = '0.3.11-nightly3.2511-05';
6525
+ var version = '0.3.11-nightly3.2512-10';
6524
6526
  var DefaultOfflineIdentifier = "OfflineChannel";
6525
6527
  var DefaultBatchInterval = 15000;
6526
6528
  var DefaultInMemoMaxTime = 15000;
@@ -6599,7 +6601,7 @@
6599
6601
  _sender[_DYN_INITIALIZE ](coreConfig, core, ctx, _diagLogger, _primaryChannelId, _self._unloadHooks);
6600
6602
  _senderInst = _sender.getXhrInst();
6601
6603
  _offlineListener.addListener(function (val) {
6602
- if (!val.isOnline) {
6604
+ if (!val[_DYN_IS_ONLINE ]) {
6603
6605
  _sendNextBatchTimer && _sendNextBatchTimer[_DYN_CANCEL ]();
6604
6606
  }
6605
6607
  else {
@@ -6615,7 +6617,7 @@
6615
6617
  };
6616
6618
  _self.processTelemetry = function (evt, itemCtx) {
6617
6619
  try {
6618
- var onlineStatus = _offlineListener.isOnline();
6620
+ var onlineStatus = _offlineListener[_DYN_IS_ONLINE ]();
6619
6621
  itemCtx = itemCtx || _self._getTelCtx(itemCtx);
6620
6622
  if (!!onlineStatus || !_offineSupport || !_endpoint) {
6621
6623
  _self[_DYN_PROCESS_NEXT ](evt, itemCtx);
@@ -6826,12 +6828,12 @@
6826
6828
  return null;
6827
6829
  }
6828
6830
  function _setSendNextTimer() {
6829
- var isOnline = _offlineListener && _offlineListener.isOnline();
6831
+ var isOnline = _offlineListener && _offlineListener[_DYN_IS_ONLINE ]();
6830
6832
  if (!_sendNextBatchTimer) {
6831
6833
  var retryInterval = _retryAt ? mathMax(0, _retryAt - utcNow()) : 0;
6832
6834
  var timerValue = mathMax(_maxBatchInterval, retryInterval);
6833
6835
  _sendNextBatchTimer = scheduleTimeout(function () {
6834
- if (isOnline) {
6836
+ if (_offlineListener && _offlineListener[_DYN_IS_ONLINE ]()) {
6835
6837
  if (isFunction(_sender[_DYN_IS_COMPLETELY_IDLE ]) && !_sender[_DYN_IS_COMPLETELY_IDLE ]()) {
6836
6838
  _sendNextBatchTimer && _sendNextBatchTimer[_DYN_REFRESH ]();
6837
6839
  }