@microsoft/applicationinsights-web-basic 2.8.0-beta.2203-06 → 2.8.0-beta.2203-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.
@@ -0,0 +1,26 @@
1
+ {
2
+ "name": "aib",
3
+ "version": "2.8.0-beta.2203-07",
4
+ "ext": {
5
+ "@js": {
6
+ "file": "aib.2.8.0-beta.2203-07.js",
7
+ "type": "text/javascript; charset=utf-8",
8
+ "integrity": "sha256-yGlQO4/CvjQIwcHC+VEa8bvUswlDOkK4HPFOcZaF1qo= sha384-EzF1gqjjMw5kM0RGGKa2hs0hW0qP6LTb/9sPBDst7KsxuBhe9CL7iPwqJ4nOjSHc sha512-vJOafW3nLRiltizfypoy/Tj4F9vf/FmuTiMVsMwBQ0XfCEwEfS3ULuTxNFEJK/rYiXb6epuaI2MpcNw1uNCIkQ==",
9
+ "hashes": {
10
+ "sha256": "yGlQO4/CvjQIwcHC+VEa8bvUswlDOkK4HPFOcZaF1qo=",
11
+ "sha384": "EzF1gqjjMw5kM0RGGKa2hs0hW0qP6LTb/9sPBDst7KsxuBhe9CL7iPwqJ4nOjSHc",
12
+ "sha512": "vJOafW3nLRiltizfypoy/Tj4F9vf/FmuTiMVsMwBQ0XfCEwEfS3ULuTxNFEJK/rYiXb6epuaI2MpcNw1uNCIkQ=="
13
+ }
14
+ },
15
+ "@min.js": {
16
+ "file": "aib.2.8.0-beta.2203-07.min.js",
17
+ "type": "text/javascript; charset=utf-8",
18
+ "integrity": "sha256-bU37Y/A+qNax2KCh9Na6OX6kql/Vfhb7yKU0UT++Y0Y= sha384-i10YVaf0GVruA4VQ7JHULciFtCciE0CtX+Qt3k6Bx3DBiFGzglzrEXWkvgCs9I6C sha512-CoxgwrFgRXQWdNfMXlBW6vxSeVqiAf/k4UjGRHzbQK1E2JISoPgm/cJsMhg7xr9/QE8+wQ52vO34jafqsgjTdw==",
19
+ "hashes": {
20
+ "sha256": "bU37Y/A+qNax2KCh9Na6OX6kql/Vfhb7yKU0UT++Y0Y=",
21
+ "sha384": "i10YVaf0GVruA4VQ7JHULciFtCciE0CtX+Qt3k6Bx3DBiFGzglzrEXWkvgCs9I6C",
22
+ "sha512": "CoxgwrFgRXQWdNfMXlBW6vxSeVqiAf/k4UjGRHzbQK1E2JISoPgm/cJsMhg7xr9/QE8+wQ52vO34jafqsgjTdw=="
23
+ }
24
+ }
25
+ }
26
+ }
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Application Insights JavaScript Web SDK - Basic, 2.8.0-beta.2203-06
2
+ * Application Insights JavaScript Web SDK - Basic, 2.8.0-beta.2203-07
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
  (function (global, factory) {
@@ -2331,6 +2331,7 @@
2331
2331
  doneIterating = true;
2332
2332
  doCallback();
2333
2333
  });
2334
+ return true;
2334
2335
  },
2335
2336
  _a._setQueue = function (queue) {
2336
2337
  channelQueue = queue;
@@ -2687,7 +2688,7 @@
2687
2688
  _configExtensions.push.apply(_configExtensions, __spreadArrayFn(__spreadArrayFn([], extensions, false), config.extensions));
2688
2689
  _channelConfig = (config || {}).channels;
2689
2690
  _initPluginChain(config, null);
2690
- if (_self.getTransmissionControls().length === 0) {
2691
+ if (!_channelQueue || _channelQueue.length === 0) {
2691
2692
  throwError("No channels available");
2692
2693
  }
2693
2694
  _isInitialized = true;
@@ -2808,16 +2809,12 @@
2808
2809
  _self.stopPollingInternalLogs();
2809
2810
  processUnloadCtx.processNext(unloadState);
2810
2811
  }
2811
- if (_channelControl) {
2812
- _channelControl.flush(isAsync, _doUnload, 6 , cbTimeout);
2813
- }
2814
- else {
2815
- _doUnload(true);
2812
+ if (!_flushChannels(isAsync, _doUnload, 6 , cbTimeout)) {
2813
+ _doUnload(false);
2816
2814
  }
2817
2815
  };
2818
2816
  _self.getPlugin = _getPlugin;
2819
2817
  _self.addPlugin = function (plugin, replaceExisting, isAsync, addCb) {
2820
- if (isAsync === void 0) { isAsync = true; }
2821
2818
  if (!plugin) {
2822
2819
  addCb && addCb(false);
2823
2820
  _logOrThrowError(strValidationError);
@@ -2862,6 +2859,7 @@
2862
2859
  _self.evtNamespace = function () {
2863
2860
  return _evtNamespace;
2864
2861
  };
2862
+ _self.flush = _flushChannels;
2865
2863
  proxyFunctionAs(_self, "addUnloadCb", function () { return _unloadHandlers; }, "add");
2866
2864
  function _initDefaults() {
2867
2865
  _isInitialized = false;
@@ -3027,6 +3025,13 @@
3027
3025
  queue.length = 0;
3028
3026
  }
3029
3027
  }
3028
+ function _flushChannels(isAsync, callBack, sendReason, cbTimeout) {
3029
+ if (_channelControl) {
3030
+ return _channelControl.flush(isAsync, callBack, sendReason || 6 , cbTimeout);
3031
+ }
3032
+ callBack && callBack(false);
3033
+ return true;
3034
+ }
3030
3035
  function _initDebugListener(config) {
3031
3036
  if (config.disableDbgExt === true && _debugListener) {
3032
3037
  _notificationManager[strRemoveNotificationListener](_debugListener);
@@ -5040,7 +5045,7 @@
5040
5045
  }
5041
5046
  }
5042
5047
  var EnvelopeCreator = {
5043
- Version: "2.8.0-beta.2203-06"
5048
+ Version: "2.8.0-beta.2203-07"
5044
5049
  };
5045
5050
  function DependencyEnvelopeCreator(logger, telemetryItem, customUndefinedValue) {
5046
5051
  EnvelopeCreatorInit(logger, telemetryItem);
@@ -6251,4 +6256,4 @@
6251
6256
  (function(obj, prop, descriptor) { /* ai_es3_polyfil defineProperty */ var func = Object["defineProperty"]; if (func) { try { return func(obj, prop, descriptor); } catch(e) { /* IE8 defines defineProperty, but will throw */ } } if (descriptor && typeof descriptor.value !== undefined) { obj[prop] = descriptor.value; } return obj; })(exports, '__esModule', { value: true });
6252
6257
 
6253
6258
  }));
6254
- //# sourceMappingURL=aib.2.8.0-beta.2203-06.js.map
6259
+ //# sourceMappingURL=aib.2.8.0-beta.2203-07.js.map