@microsoft/applicationinsights-dependencies-js 2.8.0-nightly.2204-19 → 2.8.1-nightly.2204-21

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,7 +1,7 @@
1
1
  {
2
2
  "metadata": {
3
3
  "toolPackage": "@microsoft/api-extractor",
4
- "toolVersion": "7.20.0",
4
+ "toolVersion": "7.22.2",
5
5
  "schemaVersion": 1005,
6
6
  "oldestForwardsCompatibleVersion": 1001,
7
7
  "tsdocConfig": {
@@ -156,7 +156,8 @@
156
156
  "@betaDocumentation": true,
157
157
  "@internalRemarks": true,
158
158
  "@preapproved": true
159
- }
159
+ },
160
+ "reportUnsupportedHtmlElements": false
160
161
  }
161
162
  },
162
163
  "kind": "Package",
@@ -790,7 +791,7 @@
790
791
  ],
791
792
  "extendsTokenRange": {
792
793
  "startIndex": 1,
793
- "endIndex": 3
794
+ "endIndex": 2
794
795
  },
795
796
  "implementsTokenRanges": [
796
797
  {
@@ -799,7 +800,7 @@
799
800
  },
800
801
  {
801
802
  "startIndex": 6,
802
- "endIndex": 8
803
+ "endIndex": 7
803
804
  }
804
805
  ]
805
806
  },
@@ -1880,7 +1881,7 @@
1880
1881
  "extendsTokenRanges": [
1881
1882
  {
1882
1883
  "startIndex": 1,
1883
- "endIndex": 3
1884
+ "endIndex": 2
1884
1885
  }
1885
1886
  ]
1886
1887
  },
@@ -1937,7 +1938,7 @@
1937
1938
  "extendsTokenRanges": [
1938
1939
  {
1939
1940
  "startIndex": 1,
1940
- "endIndex": 3
1941
+ "endIndex": 2
1941
1942
  }
1942
1943
  ]
1943
1944
  }
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Microsoft Application Insights XHR dependencies plugin, 2.8.0-nightly.2204-19
2
+ * Microsoft Application Insights XHR dependencies plugin, 2.8.1-nightly.2204-21
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  *
5
5
  * Microsoft Application Insights Team
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Application Insights JavaScript SDK - Dependencies Plugin, 2.8.0-nightly.2204-19
2
+ * Application Insights JavaScript SDK - Dependencies Plugin, 2.8.1-nightly.2204-21
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
  (function (global, factory) {
@@ -1149,7 +1149,7 @@
1149
1149
  }
1150
1150
 
1151
1151
  var _objDefineProperty = ObjDefineProperty;
1152
- var version = "2.8.0-nightly.2204-19";
1152
+ var version = "2.8.1-nightly.2204-21";
1153
1153
  var instanceName = "." + newId(6);
1154
1154
  var _dataUid = 0;
1155
1155
  function _createAccessor(target, prop, value) {
@@ -1229,20 +1229,20 @@
1229
1229
  var strHasRunFlags = "_hasRun";
1230
1230
  var strGetTelCtx = "_getTelCtx";
1231
1231
  var _chainId = 0;
1232
- function _getNextProxyStart(proxy, config, core, startAt) {
1232
+ function _getNextProxyStart(proxy, core, startAt) {
1233
1233
  while (proxy) {
1234
1234
  if (proxy.getPlugin() === startAt) {
1235
1235
  return proxy;
1236
1236
  }
1237
1237
  proxy = proxy.getNext();
1238
1238
  }
1239
- return createTelemetryProxyChain([startAt], config, core);
1239
+ return createTelemetryProxyChain([startAt], core.config || {}, core);
1240
1240
  }
1241
1241
  function _createInternalContext(telemetryChain, config, core, startAt) {
1242
1242
  var _nextProxy = null;
1243
1243
  var _onComplete = [];
1244
1244
  if (startAt !== null) {
1245
- _nextProxy = startAt ? _getNextProxyStart(telemetryChain, config, core, startAt) : telemetryChain;
1245
+ _nextProxy = startAt ? _getNextProxyStart(telemetryChain, core, startAt) : telemetryChain;
1246
1246
  }
1247
1247
  var context = {
1248
1248
  _next: _moveNext,
@@ -1329,6 +1329,7 @@
1329
1329
  }
1330
1330
  });
1331
1331
  }
1332
+ theConfig = newConfig_1;
1332
1333
  }
1333
1334
  }
1334
1335
  return theConfig;
@@ -1375,7 +1376,8 @@
1375
1376
  context.createNew = _createNew;
1376
1377
  return context;
1377
1378
  }
1378
- function createProcessTelemetryUnloadContext(telemetryChain, config, core, startAt) {
1379
+ function createProcessTelemetryUnloadContext(telemetryChain, core, startAt) {
1380
+ var config = core.config || {};
1379
1381
  var internalContext = _createInternalContext(telemetryChain, config, core, startAt);
1380
1382
  var context = internalContext.ctx;
1381
1383
  function _processNext(unloadState) {
@@ -1388,19 +1390,20 @@
1388
1390
  if (isArray(plugins)) {
1389
1391
  plugins = createTelemetryProxyChain(plugins, config, core, startAt);
1390
1392
  }
1391
- return createProcessTelemetryUnloadContext(plugins || context.getNext(), config, core, startAt);
1393
+ return createProcessTelemetryUnloadContext(plugins || context.getNext(), core, startAt);
1392
1394
  }
1393
1395
  context.processNext = _processNext;
1394
1396
  context.createNew = _createNew;
1395
1397
  return context;
1396
1398
  }
1397
- function createProcessTelemetryUpdateContext(telemetryChain, config, core, startAt) {
1399
+ function createProcessTelemetryUpdateContext(telemetryChain, core, startAt) {
1400
+ var config = core.config || {};
1398
1401
  var internalContext = _createInternalContext(telemetryChain, config, core, startAt);
1399
1402
  var context = internalContext.ctx;
1400
1403
  function _processNext(updateState) {
1401
1404
  return context.iterate(function (plugin) {
1402
- if (isFunction(plugin[strUpdate])) {
1403
- plugin[strUpdate](context, updateState);
1405
+ if (isFunction(plugin.update)) {
1406
+ plugin.update(context, updateState);
1404
1407
  }
1405
1408
  });
1406
1409
  }
@@ -1409,7 +1412,7 @@
1409
1412
  if (isArray(plugins)) {
1410
1413
  plugins = createTelemetryProxyChain(plugins, config, core, startAt);
1411
1414
  }
1412
- return createProcessTelemetryUpdateContext(plugins || context.getNext(), config, core, startAt);
1415
+ return createProcessTelemetryUpdateContext(plugins || context.getNext(), core, startAt);
1413
1416
  }
1414
1417
  context.processNext = _processNext;
1415
1418
  context.createNew = _createNew;
@@ -1501,7 +1504,7 @@
1501
1504
  hasRun = true;
1502
1505
  }
1503
1506
  if (!nextProxy || !hasNextRun) {
1504
- _throwInternal(itemCtx.diagLog(), 1 , 73 , "Plugin [" + plugin.identifier + "] failed during " + name + " - " + dumpObj(error) + ", run flags: " + dumpObj(hasRunContext));
1507
+ _throwInternal(itemCtx.diagLog(), 1 , 73 , "Plugin [" + identifier + "] failed during " + name + " - " + dumpObj(error) + ", run flags: " + dumpObj(hasRunContext));
1505
1508
  }
1506
1509
  }
1507
1510
  }, details, isAsync);
@@ -1515,7 +1518,7 @@
1515
1518
  return false;
1516
1519
  }
1517
1520
  var pluginState = _getPluginState(plugin);
1518
- if (pluginState[strTeardown] || pluginState[strDisabled]) {
1521
+ if (pluginState.teardown || pluginState[strDisabled]) {
1519
1522
  return false;
1520
1523
  }
1521
1524
  if (hasSetNext) {
@@ -1612,12 +1615,13 @@
1612
1615
  _isinitialized = true;
1613
1616
  };
1614
1617
  _self.teardown = function (unloadCtx, unloadState) {
1615
- if (!_self.core || (unloadCtx && _self.core !== unloadCtx.core())) {
1618
+ var core = _self.core;
1619
+ if (!core || (unloadCtx && core !== unloadCtx.core())) {
1616
1620
  return;
1617
1621
  }
1618
1622
  var result;
1619
1623
  var unloadDone = false;
1620
- var theUnloadCtx = unloadCtx || createProcessTelemetryUnloadContext(null, {}, _self.core, _nextPlugin && _nextPlugin[strGetPlugin] ? _nextPlugin[strGetPlugin]() : _nextPlugin);
1624
+ var theUnloadCtx = unloadCtx || createProcessTelemetryUnloadContext(null, core, _nextPlugin && _nextPlugin[strGetPlugin] ? _nextPlugin[strGetPlugin]() : _nextPlugin);
1621
1625
  var theUnloadState = unloadState || {
1622
1626
  reason: 0 ,
1623
1627
  isAsync: false
@@ -1645,12 +1649,13 @@
1645
1649
  return result;
1646
1650
  };
1647
1651
  _self.update = function (updateCtx, updateState) {
1648
- if (!_self.core || (updateCtx && _self.core !== updateCtx.core())) {
1652
+ var core = _self.core;
1653
+ if (!core || (updateCtx && core !== updateCtx.core())) {
1649
1654
  return;
1650
1655
  }
1651
1656
  var result;
1652
1657
  var updateDone = false;
1653
- var theUpdateCtx = updateCtx || createProcessTelemetryUpdateContext(null, {}, _self.core, _nextPlugin && _nextPlugin[strGetPlugin] ? _nextPlugin[strGetPlugin]() : _nextPlugin);
1658
+ var theUpdateCtx = updateCtx || createProcessTelemetryUpdateContext(null, core, _nextPlugin && _nextPlugin[strGetPlugin] ? _nextPlugin[strGetPlugin]() : _nextPlugin);
1654
1659
  var theUpdateState = updateState || {
1655
1660
  reason: 0
1656
1661
  };