@microsoft/applicationinsights-analytics-js 2.8.13-nightly.2304-40 → 2.8.13-nightly.2304-43

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,25 +1,25 @@
1
1
  {
2
2
  "name": "applicationinsights-analytics-js",
3
- "version": "2.8.13-nightly.2304-40",
3
+ "version": "2.8.13-nightly.2304-43",
4
4
  "ext": {
5
5
  "@js": {
6
6
  "file": "applicationinsights-analytics-js.js",
7
7
  "type": "text/javascript; charset=utf-8",
8
- "integrity": "sha256-kF1trkV9U4f+xOanGBzlF9ZrEKSpHrVisigQobHUi9Q= sha384-IGeToiTY9YQLjEYDTBqqAr6H4FMKxJyVGRcDk1ZxzItkPQkF3HA3JmcnW6TbRSBs sha512-8ivEWR8UqvzKFNFJgdmyGG3qmSCuzPsLhTA7HpeNHDnfBLDXVAyaRytIKtFEwEsX/iCSG4IYH2ovKoFl9sS+Gg==",
8
+ "integrity": "sha256-ow5c4RDDoxFYMYZDgiJWbxKDQdm7DXbLBTZlKlBUK4A= sha384-ajjfdjHMUoBSXd9e1/gHargIqaUCsdbJ+YGEqOCB+wmBVj3xeODr10w69jABzs4x sha512-ireYl+L+HqOUtLJonIRAYCzDLXqyeXV1wShmOQCPNmTzMqoOtzIQhRYWf+VDKdVG3fYjlyAqbCFF7j2SQ0ZIrA==",
9
9
  "hashes": {
10
- "sha256": "kF1trkV9U4f+xOanGBzlF9ZrEKSpHrVisigQobHUi9Q=",
11
- "sha384": "IGeToiTY9YQLjEYDTBqqAr6H4FMKxJyVGRcDk1ZxzItkPQkF3HA3JmcnW6TbRSBs",
12
- "sha512": "8ivEWR8UqvzKFNFJgdmyGG3qmSCuzPsLhTA7HpeNHDnfBLDXVAyaRytIKtFEwEsX/iCSG4IYH2ovKoFl9sS+Gg=="
10
+ "sha256": "ow5c4RDDoxFYMYZDgiJWbxKDQdm7DXbLBTZlKlBUK4A=",
11
+ "sha384": "ajjfdjHMUoBSXd9e1/gHargIqaUCsdbJ+YGEqOCB+wmBVj3xeODr10w69jABzs4x",
12
+ "sha512": "ireYl+L+HqOUtLJonIRAYCzDLXqyeXV1wShmOQCPNmTzMqoOtzIQhRYWf+VDKdVG3fYjlyAqbCFF7j2SQ0ZIrA=="
13
13
  }
14
14
  },
15
15
  "@min.js": {
16
16
  "file": "applicationinsights-analytics-js.min.js",
17
17
  "type": "text/javascript; charset=utf-8",
18
- "integrity": "sha256-1pdCCOcULK1lyL/xg2zop/T1EimB44GXheeZfFR2JYI= sha384-cInacaedYJ+oV2oMYa1F5D8oa9C6Q/N0VYqUEZFTMVeQdhAFKTae9X4Sfo1ehAtq sha512-mJEIyRHQgu4N/RLmhbMa6REZr4yHyBFzIeK3pOJNxHoeiDtKp0dnLwPD/lvdFDz2QSUYHNXEyEX7sfdH3NJBvg==",
18
+ "integrity": "sha256-gd3qnonVr41SHm1KaYzfNKM20DIkGhtGsgQmZupmHwo= sha384-SJP6a7lIuloea+ivEnz5xa6voTnMeDJIaIX4BHtoIOYtmXEcQ0IvlzudVXuPunkR sha512-050t0KkuIgzt1aOeEraoxWaNd1wThA0oGex93lbFTqYSg/6xzVrA5H0AAZ7cq+e3lidnt9T7JYC4+AIgyhEilQ==",
19
19
  "hashes": {
20
- "sha256": "1pdCCOcULK1lyL/xg2zop/T1EimB44GXheeZfFR2JYI=",
21
- "sha384": "cInacaedYJ+oV2oMYa1F5D8oa9C6Q/N0VYqUEZFTMVeQdhAFKTae9X4Sfo1ehAtq",
22
- "sha512": "mJEIyRHQgu4N/RLmhbMa6REZr4yHyBFzIeK3pOJNxHoeiDtKp0dnLwPD/lvdFDz2QSUYHNXEyEX7sfdH3NJBvg=="
20
+ "sha256": "gd3qnonVr41SHm1KaYzfNKM20DIkGhtGsgQmZupmHwo=",
21
+ "sha384": "SJP6a7lIuloea+ivEnz5xa6voTnMeDJIaIX4BHtoIOYtmXEcQ0IvlzudVXuPunkR",
22
+ "sha512": "050t0KkuIgzt1aOeEraoxWaNd1wThA0oGex93lbFTqYSg/6xzVrA5H0AAZ7cq+e3lidnt9T7JYC4+AIgyhEilQ=="
23
23
  }
24
24
  }
25
25
  }
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Application Insights JavaScript SDK - Web Analytics, 2.8.13-nightly.2304-40
2
+ * Application Insights JavaScript SDK - Web Analytics, 2.8.13-nightly.2304-43
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
  (function (global, factory) {
@@ -1280,7 +1280,7 @@
1280
1280
  }
1281
1281
 
1282
1282
  var _objDefineProperty = ObjDefineProperty;
1283
- var version = "2.8.13-nightly.2304-40";
1283
+ var version = "2.8.13-nightly.2304-43";
1284
1284
  var instanceName = "." + newId(6);
1285
1285
  var _dataUid = 0;
1286
1286
  function _createAccessor(target, prop, value) {
@@ -3685,7 +3685,7 @@
3685
3685
  var PageViewManager = /** @class */ (function () {
3686
3686
  function PageViewManager(appInsights, overridePageViewDuration, core, pageViewPerformanceManager) {
3687
3687
  dynamicProto(PageViewManager, this, function (_self) {
3688
- var intervalHandle = null;
3688
+ var queueTimer = null;
3689
3689
  var itemQueue = [];
3690
3690
  var pageViewPerformanceSent = false;
3691
3691
  var _logger;
@@ -3697,10 +3697,10 @@
3697
3697
  core.flush(isAsync);
3698
3698
  }
3699
3699
  }
3700
- function _addQueue(cb) {
3701
- itemQueue.push(cb);
3702
- if (!intervalHandle) {
3703
- intervalHandle = setInterval((function () {
3700
+ function _startTimer() {
3701
+ if (!queueTimer) {
3702
+ queueTimer = setTimeout((function () {
3703
+ queueTimer = null;
3704
3704
  var allItems = itemQueue.slice(0);
3705
3705
  var doFlush = false;
3706
3706
  itemQueue = [];
@@ -3712,9 +3712,8 @@
3712
3712
  doFlush = true;
3713
3713
  }
3714
3714
  });
3715
- if (itemQueue[_DYN_LENGTH ] === 0) {
3716
- clearInterval(intervalHandle);
3717
- intervalHandle = null;
3715
+ if (itemQueue[_DYN_LENGTH ] > 0) {
3716
+ _startTimer();
3718
3717
  }
3719
3718
  if (doFlush) {
3720
3719
  _flushChannels(true);
@@ -3722,6 +3721,10 @@
3722
3721
  }), 100);
3723
3722
  }
3724
3723
  }
3724
+ function _addQueue(cb) {
3725
+ itemQueue.push(cb);
3726
+ _startTimer();
3727
+ }
3725
3728
  _self[_DYN_TRACK_PAGE_VIEW ] = function (pageView, customProperties) {
3726
3729
  var name = pageView.name;
3727
3730
  if (isNullOrUndefined(name) || typeof name !== "string") {
@@ -3810,9 +3813,9 @@
3810
3813
  });
3811
3814
  };
3812
3815
  _self.teardown = function (unloadCtx, unloadState) {
3813
- if (intervalHandle) {
3814
- clearInterval(intervalHandle);
3815
- intervalHandle = null;
3816
+ if (queueTimer) {
3817
+ clearTimeout(queueTimer);
3818
+ queueTimer = null;
3816
3819
  var allItems = itemQueue.slice(0);
3817
3820
  itemQueue = [];
3818
3821
  arrForEach(allItems, function (item) {
@@ -4569,7 +4572,7 @@
4569
4572
  });
4570
4573
  return _this;
4571
4574
  }
4572
- AnalyticsPlugin.Version = "2.8.13-nightly.2304-40";
4575
+ AnalyticsPlugin.Version = "2.8.13-nightly.2304-43";
4573
4576
  AnalyticsPlugin.getDefaultConfig = _getDefaultConfig;
4574
4577
  return AnalyticsPlugin;
4575
4578
  }(BaseTelemetryPlugin));