@microsoft/applicationinsights-dependencies-js 2.8.0-nightly.2204-18 → 2.8.1-nightly.2204-20

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-dependencies-js",
3
- "version": "2.8.0-nightly.2204-18",
3
+ "version": "2.8.1-nightly.2204-20",
4
4
  "ext": {
5
5
  "@js": {
6
6
  "file": "applicationinsights-dependencies-js.js",
7
7
  "type": "text/javascript; charset=utf-8",
8
- "integrity": "sha256-+Fp67qqouR6R7U1cIgw8G+83X0BAl89pLhnW2i/JTbk= sha384-2VAkYhjQ+BGJPJ5+JD4j3Qk8BQQH8QsL1mZXrJ0scYemEfnblGveY3yAG421jx2x sha512-8FCpnVdgSrlDwvDh6xc8/tq2Mw6KovjmI5E9DIV4t3PjudgoWm5Znwofv5/+wrz1hZOmPnuSWyunHs1DjTvUEA==",
8
+ "integrity": "sha256-4cJUZNVl3M+71Dz5CDw667mNokpzWfJYDF/osVtF28E= sha384-51VBzFI7IeImHBdcbYPhBz6gPxdhtiMQYlj/kWmEW8WpiRBUOpw3x4XNzsDssFqi sha512-ovcZJHoLlJ3V+6tJfLtRAX+hdysdmhwZbSAqK4TNoShZwes6ogaS/V5I7MCOdF+QB6617y+sUmkcSjM0aKHXIQ==",
9
9
  "hashes": {
10
- "sha256": "+Fp67qqouR6R7U1cIgw8G+83X0BAl89pLhnW2i/JTbk=",
11
- "sha384": "2VAkYhjQ+BGJPJ5+JD4j3Qk8BQQH8QsL1mZXrJ0scYemEfnblGveY3yAG421jx2x",
12
- "sha512": "8FCpnVdgSrlDwvDh6xc8/tq2Mw6KovjmI5E9DIV4t3PjudgoWm5Znwofv5/+wrz1hZOmPnuSWyunHs1DjTvUEA=="
10
+ "sha256": "4cJUZNVl3M+71Dz5CDw667mNokpzWfJYDF/osVtF28E=",
11
+ "sha384": "51VBzFI7IeImHBdcbYPhBz6gPxdhtiMQYlj/kWmEW8WpiRBUOpw3x4XNzsDssFqi",
12
+ "sha512": "ovcZJHoLlJ3V+6tJfLtRAX+hdysdmhwZbSAqK4TNoShZwes6ogaS/V5I7MCOdF+QB6617y+sUmkcSjM0aKHXIQ=="
13
13
  }
14
14
  },
15
15
  "@min.js": {
16
16
  "file": "applicationinsights-dependencies-js.min.js",
17
17
  "type": "text/javascript; charset=utf-8",
18
- "integrity": "sha256-yxP6wgul+xWgyMGsW84yJCW0r07k+BcDWFBOMisFqIg= sha384-rfSwOvpJPf8sKFOKgM5WFbdYs9f1IDeidLerCcRI5UdZI2LNR41BFadPz7fEAmjm sha512-TpRe7ryeoaKrv9d7b5DA6iqP/I6KLgq1nV1zhpGN6uYcGraevhwSJhJaPYXfbg+QBrA4Bect64OfuSXYqN0rOg==",
18
+ "integrity": "sha256-PB/0XeqlftG3f8cqekGcIw6K6LsF9eDNpdfX0rbMNa0= sha384-cMTLMwSpGzI8cNnz/kTzCigIWCNk8hwmsvQ/31Iy4fRz9Ei00W++3ElzyeoVogfg sha512-fQyGzfOwTT+6K/lD6QP0LJSQhWxPqRHAY4Oh1ZW3fY/TKum320enEAHEHFw48PqJYQkhHRzxMddoHFOSYlbXPg==",
19
19
  "hashes": {
20
- "sha256": "yxP6wgul+xWgyMGsW84yJCW0r07k+BcDWFBOMisFqIg=",
21
- "sha384": "rfSwOvpJPf8sKFOKgM5WFbdYs9f1IDeidLerCcRI5UdZI2LNR41BFadPz7fEAmjm",
22
- "sha512": "TpRe7ryeoaKrv9d7b5DA6iqP/I6KLgq1nV1zhpGN6uYcGraevhwSJhJaPYXfbg+QBrA4Bect64OfuSXYqN0rOg=="
20
+ "sha256": "PB/0XeqlftG3f8cqekGcIw6K6LsF9eDNpdfX0rbMNa0=",
21
+ "sha384": "cMTLMwSpGzI8cNnz/kTzCigIWCNk8hwmsvQ/31Iy4fRz9Ei00W++3ElzyeoVogfg",
22
+ "sha512": "fQyGzfOwTT+6K/lD6QP0LJSQhWxPqRHAY4Oh1ZW3fY/TKum320enEAHEHFw48PqJYQkhHRzxMddoHFOSYlbXPg=="
23
23
  }
24
24
  }
25
25
  }
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Application Insights JavaScript SDK - Dependencies Plugin, 2.8.0-nightly.2204-18
2
+ * Application Insights JavaScript SDK - Dependencies Plugin, 2.8.1-nightly.2204-20
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-18";
1152
+ var version = "2.8.1-nightly.2204-20";
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
  };