@microsoft/applicationinsights-analytics-js 2.8.0-nightly.2204-17 → 2.8.0

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",
@@ -1627,7 +1628,7 @@
1627
1628
  ],
1628
1629
  "extendsTokenRange": {
1629
1630
  "startIndex": 1,
1630
- "endIndex": 3
1631
+ "endIndex": 2
1631
1632
  },
1632
1633
  "implementsTokenRanges": [
1633
1634
  {
@@ -1636,7 +1637,7 @@
1636
1637
  },
1637
1638
  {
1638
1639
  "startIndex": 6,
1639
- "endIndex": 8
1640
+ "endIndex": 7
1640
1641
  }
1641
1642
  ]
1642
1643
  },
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Microsoft Application Insights JavaScript SDK - Web Analytics, 2.8.0-nightly.2204-17
2
+ * Microsoft Application Insights JavaScript SDK - Web Analytics, 2.8.0
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 - Web Analytics, 2.8.0-nightly.2204-17
2
+ * Application Insights JavaScript SDK - Web Analytics, 2.8.0
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
  (function (global, factory) {
@@ -1199,7 +1199,7 @@
1199
1199
  }
1200
1200
 
1201
1201
  var _objDefineProperty = ObjDefineProperty;
1202
- var version = "2.8.0-nightly.2204-17";
1202
+ var version = "2.8.0";
1203
1203
  var instanceName = "." + newId(6);
1204
1204
  var _dataUid = 0;
1205
1205
  function _createAccessor(target, prop, value) {
@@ -1279,20 +1279,20 @@
1279
1279
  var strHasRunFlags = "_hasRun";
1280
1280
  var strGetTelCtx = "_getTelCtx";
1281
1281
  var _chainId = 0;
1282
- function _getNextProxyStart(proxy, config, core, startAt) {
1282
+ function _getNextProxyStart(proxy, core, startAt) {
1283
1283
  while (proxy) {
1284
1284
  if (proxy.getPlugin() === startAt) {
1285
1285
  return proxy;
1286
1286
  }
1287
1287
  proxy = proxy.getNext();
1288
1288
  }
1289
- return createTelemetryProxyChain([startAt], config, core);
1289
+ return createTelemetryProxyChain([startAt], core.config || {}, core);
1290
1290
  }
1291
1291
  function _createInternalContext(telemetryChain, config, core, startAt) {
1292
1292
  var _nextProxy = null;
1293
1293
  var _onComplete = [];
1294
1294
  if (startAt !== null) {
1295
- _nextProxy = startAt ? _getNextProxyStart(telemetryChain, config, core, startAt) : telemetryChain;
1295
+ _nextProxy = startAt ? _getNextProxyStart(telemetryChain, core, startAt) : telemetryChain;
1296
1296
  }
1297
1297
  var context = {
1298
1298
  _next: _moveNext,
@@ -1379,6 +1379,7 @@
1379
1379
  }
1380
1380
  });
1381
1381
  }
1382
+ theConfig = newConfig_1;
1382
1383
  }
1383
1384
  }
1384
1385
  return theConfig;
@@ -1425,7 +1426,8 @@
1425
1426
  context.createNew = _createNew;
1426
1427
  return context;
1427
1428
  }
1428
- function createProcessTelemetryUnloadContext(telemetryChain, config, core, startAt) {
1429
+ function createProcessTelemetryUnloadContext(telemetryChain, core, startAt) {
1430
+ var config = core.config || {};
1429
1431
  var internalContext = _createInternalContext(telemetryChain, config, core, startAt);
1430
1432
  var context = internalContext.ctx;
1431
1433
  function _processNext(unloadState) {
@@ -1438,19 +1440,20 @@
1438
1440
  if (isArray(plugins)) {
1439
1441
  plugins = createTelemetryProxyChain(plugins, config, core, startAt);
1440
1442
  }
1441
- return createProcessTelemetryUnloadContext(plugins || context.getNext(), config, core, startAt);
1443
+ return createProcessTelemetryUnloadContext(plugins || context.getNext(), core, startAt);
1442
1444
  }
1443
1445
  context.processNext = _processNext;
1444
1446
  context.createNew = _createNew;
1445
1447
  return context;
1446
1448
  }
1447
- function createProcessTelemetryUpdateContext(telemetryChain, config, core, startAt) {
1449
+ function createProcessTelemetryUpdateContext(telemetryChain, core, startAt) {
1450
+ var config = core.config || {};
1448
1451
  var internalContext = _createInternalContext(telemetryChain, config, core, startAt);
1449
1452
  var context = internalContext.ctx;
1450
1453
  function _processNext(updateState) {
1451
1454
  return context.iterate(function (plugin) {
1452
- if (isFunction(plugin[strUpdate])) {
1453
- plugin[strUpdate](context, updateState);
1455
+ if (isFunction(plugin.update)) {
1456
+ plugin.update(context, updateState);
1454
1457
  }
1455
1458
  });
1456
1459
  }
@@ -1459,7 +1462,7 @@
1459
1462
  if (isArray(plugins)) {
1460
1463
  plugins = createTelemetryProxyChain(plugins, config, core, startAt);
1461
1464
  }
1462
- return createProcessTelemetryUpdateContext(plugins || context.getNext(), config, core, startAt);
1465
+ return createProcessTelemetryUpdateContext(plugins || context.getNext(), core, startAt);
1463
1466
  }
1464
1467
  context.processNext = _processNext;
1465
1468
  context.createNew = _createNew;
@@ -1551,7 +1554,7 @@
1551
1554
  hasRun = true;
1552
1555
  }
1553
1556
  if (!nextProxy || !hasNextRun) {
1554
- _throwInternal(itemCtx.diagLog(), 1 , 73 , "Plugin [" + plugin.identifier + "] failed during " + name + " - " + dumpObj(error) + ", run flags: " + dumpObj(hasRunContext));
1557
+ _throwInternal(itemCtx.diagLog(), 1 , 73 , "Plugin [" + identifier + "] failed during " + name + " - " + dumpObj(error) + ", run flags: " + dumpObj(hasRunContext));
1555
1558
  }
1556
1559
  }
1557
1560
  }, details, isAsync);
@@ -1565,7 +1568,7 @@
1565
1568
  return false;
1566
1569
  }
1567
1570
  var pluginState = _getPluginState(plugin);
1568
- if (pluginState[strTeardown] || pluginState[strDisabled]) {
1571
+ if (pluginState.teardown || pluginState[strDisabled]) {
1569
1572
  return false;
1570
1573
  }
1571
1574
  if (hasSetNext) {
@@ -1907,12 +1910,13 @@
1907
1910
  _isinitialized = true;
1908
1911
  };
1909
1912
  _self.teardown = function (unloadCtx, unloadState) {
1910
- if (!_self.core || (unloadCtx && _self.core !== unloadCtx.core())) {
1913
+ var core = _self.core;
1914
+ if (!core || (unloadCtx && core !== unloadCtx.core())) {
1911
1915
  return;
1912
1916
  }
1913
1917
  var result;
1914
1918
  var unloadDone = false;
1915
- var theUnloadCtx = unloadCtx || createProcessTelemetryUnloadContext(null, {}, _self.core, _nextPlugin && _nextPlugin[strGetPlugin] ? _nextPlugin[strGetPlugin]() : _nextPlugin);
1919
+ var theUnloadCtx = unloadCtx || createProcessTelemetryUnloadContext(null, core, _nextPlugin && _nextPlugin[strGetPlugin] ? _nextPlugin[strGetPlugin]() : _nextPlugin);
1916
1920
  var theUnloadState = unloadState || {
1917
1921
  reason: 0 ,
1918
1922
  isAsync: false
@@ -1940,12 +1944,13 @@
1940
1944
  return result;
1941
1945
  };
1942
1946
  _self.update = function (updateCtx, updateState) {
1943
- if (!_self.core || (updateCtx && _self.core !== updateCtx.core())) {
1947
+ var core = _self.core;
1948
+ if (!core || (updateCtx && core !== updateCtx.core())) {
1944
1949
  return;
1945
1950
  }
1946
1951
  var result;
1947
1952
  var updateDone = false;
1948
- var theUpdateCtx = updateCtx || createProcessTelemetryUpdateContext(null, {}, _self.core, _nextPlugin && _nextPlugin[strGetPlugin] ? _nextPlugin[strGetPlugin]() : _nextPlugin);
1953
+ var theUpdateCtx = updateCtx || createProcessTelemetryUpdateContext(null, core, _nextPlugin && _nextPlugin[strGetPlugin] ? _nextPlugin[strGetPlugin]() : _nextPlugin);
1949
1954
  var theUpdateState = updateState || {
1950
1955
  reason: 0
1951
1956
  };
@@ -4249,7 +4254,7 @@
4249
4254
  });
4250
4255
  return _this;
4251
4256
  }
4252
- AnalyticsPlugin.Version = "2.8.0-nightly.2204-17";
4257
+ AnalyticsPlugin.Version = "2.8.0";
4253
4258
  AnalyticsPlugin.getDefaultConfig = _getDefaultConfig;
4254
4259
  return AnalyticsPlugin;
4255
4260
  }(BaseTelemetryPlugin));