@microsoft/applicationinsights-properties-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,25 +1,25 @@
1
1
  {
2
2
  "name": "applicationinsights-properties-js",
3
- "version": "2.8.0-nightly.2204-17",
3
+ "version": "2.8.0",
4
4
  "ext": {
5
5
  "@js": {
6
6
  "file": "applicationinsights-properties-js.js",
7
7
  "type": "text/javascript; charset=utf-8",
8
- "integrity": "sha256-T5WRO2LzcSsI0M8W6o6LVBxg+LaZGiu+nsagjEUStfM= sha384-Z/S98VgfTUAy7XNxv4aqZpGBmG4Kj8zEH+DpBh4cpjk79CjS67vNiVuSWJw3JXb6 sha512-yrn3l3y/ATXp1le0+7Yc2bs+/xI8DJ8h+OBKaNQcAJA5WCWcorXcKqvJWQIRv4PdMEIVf0yTpNeFaq8kE9iVAA==",
8
+ "integrity": "sha256-ECf/sP3E4jjOmBEy+9FEOLOT3ApnMwSgheIx4BPXzu0= sha384-rbHwq/f76zuDZr4OFIl0DsoUK+H52RAG5WigcZC8OHyAZm6jXQIkzORJj54ZDD69 sha512-zvsMN3FQ74l++UGLU99ry7j8ti7+ICn0LCtHQizrFG6BGmo+EEV/pkO0IGWt45Hw1kzIuv8ewh41pfoeLUF4uA==",
9
9
  "hashes": {
10
- "sha256": "T5WRO2LzcSsI0M8W6o6LVBxg+LaZGiu+nsagjEUStfM=",
11
- "sha384": "Z/S98VgfTUAy7XNxv4aqZpGBmG4Kj8zEH+DpBh4cpjk79CjS67vNiVuSWJw3JXb6",
12
- "sha512": "yrn3l3y/ATXp1le0+7Yc2bs+/xI8DJ8h+OBKaNQcAJA5WCWcorXcKqvJWQIRv4PdMEIVf0yTpNeFaq8kE9iVAA=="
10
+ "sha256": "ECf/sP3E4jjOmBEy+9FEOLOT3ApnMwSgheIx4BPXzu0=",
11
+ "sha384": "rbHwq/f76zuDZr4OFIl0DsoUK+H52RAG5WigcZC8OHyAZm6jXQIkzORJj54ZDD69",
12
+ "sha512": "zvsMN3FQ74l++UGLU99ry7j8ti7+ICn0LCtHQizrFG6BGmo+EEV/pkO0IGWt45Hw1kzIuv8ewh41pfoeLUF4uA=="
13
13
  }
14
14
  },
15
15
  "@min.js": {
16
16
  "file": "applicationinsights-properties-js.min.js",
17
17
  "type": "text/javascript; charset=utf-8",
18
- "integrity": "sha256-JatJFem6R6izW4U1/urXs+qoBiunyBaBi/lQ8odETKM= sha384-IdZgwiNbLI23y3toG9oDwer+doTxps6XzcHmv0R62r9gppNfNo7OryiV/fugpYyK sha512-GYUaH60mjB955yZ6gmTiz0sbqNLnQGWrSrs0AQVy815nTk7OldwbudJnLbRFICB8KhBToZZkQBrBk1+LBpoPkQ==",
18
+ "integrity": "sha256-a3y2NeflJatZG2IbKBxP4bS1m48AEvlH6wFGF09CjMY= sha384-8KidIma98cy3sI1k4XVZmCMOFeRreyiWL6sfrG3Cw10eWnmWeq3CYPrz8TngvPYw sha512-Cj933el28mSnYPcF/4YDXjjpjSIZPrUOLFLmnViDF0pbTmY/bqcgiTbmROIqQu6UxMXIZSTrMuJosMAmiet1Ag==",
19
19
  "hashes": {
20
- "sha256": "JatJFem6R6izW4U1/urXs+qoBiunyBaBi/lQ8odETKM=",
21
- "sha384": "IdZgwiNbLI23y3toG9oDwer+doTxps6XzcHmv0R62r9gppNfNo7OryiV/fugpYyK",
22
- "sha512": "GYUaH60mjB955yZ6gmTiz0sbqNLnQGWrSrs0AQVy815nTk7OldwbudJnLbRFICB8KhBToZZkQBrBk1+LBpoPkQ=="
20
+ "sha256": "a3y2NeflJatZG2IbKBxP4bS1m48AEvlH6wFGF09CjMY=",
21
+ "sha384": "8KidIma98cy3sI1k4XVZmCMOFeRreyiWL6sfrG3Cw10eWnmWeq3CYPrz8TngvPYw",
22
+ "sha512": "Cj933el28mSnYPcF/4YDXjjpjSIZPrUOLFLmnViDF0pbTmY/bqcgiTbmROIqQu6UxMXIZSTrMuJosMAmiet1Ag=="
23
23
  }
24
24
  }
25
25
  }
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Application Insights JavaScript SDK - Properties Plugin, 2.8.0-nightly.2204-17
2
+ * Application Insights JavaScript SDK - Properties Plugin, 2.8.0
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
  (function (global, factory) {
@@ -1165,7 +1165,7 @@
1165
1165
  }
1166
1166
 
1167
1167
  var _objDefineProperty = ObjDefineProperty;
1168
- var version = "2.8.0-nightly.2204-17";
1168
+ var version = "2.8.0";
1169
1169
  var instanceName = "." + newId(6);
1170
1170
  var _dataUid = 0;
1171
1171
  function _createAccessor(target, prop, value) {
@@ -1245,20 +1245,20 @@
1245
1245
  var strHasRunFlags = "_hasRun";
1246
1246
  var strGetTelCtx = "_getTelCtx";
1247
1247
  var _chainId = 0;
1248
- function _getNextProxyStart(proxy, config, core, startAt) {
1248
+ function _getNextProxyStart(proxy, core, startAt) {
1249
1249
  while (proxy) {
1250
1250
  if (proxy.getPlugin() === startAt) {
1251
1251
  return proxy;
1252
1252
  }
1253
1253
  proxy = proxy.getNext();
1254
1254
  }
1255
- return createTelemetryProxyChain([startAt], config, core);
1255
+ return createTelemetryProxyChain([startAt], core.config || {}, core);
1256
1256
  }
1257
1257
  function _createInternalContext(telemetryChain, config, core, startAt) {
1258
1258
  var _nextProxy = null;
1259
1259
  var _onComplete = [];
1260
1260
  if (startAt !== null) {
1261
- _nextProxy = startAt ? _getNextProxyStart(telemetryChain, config, core, startAt) : telemetryChain;
1261
+ _nextProxy = startAt ? _getNextProxyStart(telemetryChain, core, startAt) : telemetryChain;
1262
1262
  }
1263
1263
  var context = {
1264
1264
  _next: _moveNext,
@@ -1345,6 +1345,7 @@
1345
1345
  }
1346
1346
  });
1347
1347
  }
1348
+ theConfig = newConfig_1;
1348
1349
  }
1349
1350
  }
1350
1351
  return theConfig;
@@ -1391,7 +1392,8 @@
1391
1392
  context.createNew = _createNew;
1392
1393
  return context;
1393
1394
  }
1394
- function createProcessTelemetryUnloadContext(telemetryChain, config, core, startAt) {
1395
+ function createProcessTelemetryUnloadContext(telemetryChain, core, startAt) {
1396
+ var config = core.config || {};
1395
1397
  var internalContext = _createInternalContext(telemetryChain, config, core, startAt);
1396
1398
  var context = internalContext.ctx;
1397
1399
  function _processNext(unloadState) {
@@ -1404,19 +1406,20 @@
1404
1406
  if (isArray(plugins)) {
1405
1407
  plugins = createTelemetryProxyChain(plugins, config, core, startAt);
1406
1408
  }
1407
- return createProcessTelemetryUnloadContext(plugins || context.getNext(), config, core, startAt);
1409
+ return createProcessTelemetryUnloadContext(plugins || context.getNext(), core, startAt);
1408
1410
  }
1409
1411
  context.processNext = _processNext;
1410
1412
  context.createNew = _createNew;
1411
1413
  return context;
1412
1414
  }
1413
- function createProcessTelemetryUpdateContext(telemetryChain, config, core, startAt) {
1415
+ function createProcessTelemetryUpdateContext(telemetryChain, core, startAt) {
1416
+ var config = core.config || {};
1414
1417
  var internalContext = _createInternalContext(telemetryChain, config, core, startAt);
1415
1418
  var context = internalContext.ctx;
1416
1419
  function _processNext(updateState) {
1417
1420
  return context.iterate(function (plugin) {
1418
- if (isFunction(plugin[strUpdate])) {
1419
- plugin[strUpdate](context, updateState);
1421
+ if (isFunction(plugin.update)) {
1422
+ plugin.update(context, updateState);
1420
1423
  }
1421
1424
  });
1422
1425
  }
@@ -1425,7 +1428,7 @@
1425
1428
  if (isArray(plugins)) {
1426
1429
  plugins = createTelemetryProxyChain(plugins, config, core, startAt);
1427
1430
  }
1428
- return createProcessTelemetryUpdateContext(plugins || context.getNext(), config, core, startAt);
1431
+ return createProcessTelemetryUpdateContext(plugins || context.getNext(), core, startAt);
1429
1432
  }
1430
1433
  context.processNext = _processNext;
1431
1434
  context.createNew = _createNew;
@@ -1517,7 +1520,7 @@
1517
1520
  hasRun = true;
1518
1521
  }
1519
1522
  if (!nextProxy || !hasNextRun) {
1520
- _throwInternal(itemCtx.diagLog(), 1 , 73 , "Plugin [" + plugin.identifier + "] failed during " + name + " - " + dumpObj(error) + ", run flags: " + dumpObj(hasRunContext));
1523
+ _throwInternal(itemCtx.diagLog(), 1 , 73 , "Plugin [" + identifier + "] failed during " + name + " - " + dumpObj(error) + ", run flags: " + dumpObj(hasRunContext));
1521
1524
  }
1522
1525
  }
1523
1526
  }, details, isAsync);
@@ -1531,7 +1534,7 @@
1531
1534
  return false;
1532
1535
  }
1533
1536
  var pluginState = _getPluginState(plugin);
1534
- if (pluginState[strTeardown] || pluginState[strDisabled]) {
1537
+ if (pluginState.teardown || pluginState[strDisabled]) {
1535
1538
  return false;
1536
1539
  }
1537
1540
  if (hasSetNext) {
@@ -1873,12 +1876,13 @@
1873
1876
  _isinitialized = true;
1874
1877
  };
1875
1878
  _self.teardown = function (unloadCtx, unloadState) {
1876
- if (!_self.core || (unloadCtx && _self.core !== unloadCtx.core())) {
1879
+ var core = _self.core;
1880
+ if (!core || (unloadCtx && core !== unloadCtx.core())) {
1877
1881
  return;
1878
1882
  }
1879
1883
  var result;
1880
1884
  var unloadDone = false;
1881
- var theUnloadCtx = unloadCtx || createProcessTelemetryUnloadContext(null, {}, _self.core, _nextPlugin && _nextPlugin[strGetPlugin] ? _nextPlugin[strGetPlugin]() : _nextPlugin);
1885
+ var theUnloadCtx = unloadCtx || createProcessTelemetryUnloadContext(null, core, _nextPlugin && _nextPlugin[strGetPlugin] ? _nextPlugin[strGetPlugin]() : _nextPlugin);
1882
1886
  var theUnloadState = unloadState || {
1883
1887
  reason: 0 ,
1884
1888
  isAsync: false
@@ -1906,12 +1910,13 @@
1906
1910
  return result;
1907
1911
  };
1908
1912
  _self.update = function (updateCtx, updateState) {
1909
- if (!_self.core || (updateCtx && _self.core !== updateCtx.core())) {
1913
+ var core = _self.core;
1914
+ if (!core || (updateCtx && core !== updateCtx.core())) {
1910
1915
  return;
1911
1916
  }
1912
1917
  var result;
1913
1918
  var updateDone = false;
1914
- var theUpdateCtx = updateCtx || createProcessTelemetryUpdateContext(null, {}, _self.core, _nextPlugin && _nextPlugin[strGetPlugin] ? _nextPlugin[strGetPlugin]() : _nextPlugin);
1919
+ var theUpdateCtx = updateCtx || createProcessTelemetryUpdateContext(null, core, _nextPlugin && _nextPlugin[strGetPlugin] ? _nextPlugin[strGetPlugin]() : _nextPlugin);
1915
1920
  var theUpdateState = updateState || {
1916
1921
  reason: 0
1917
1922
  };
@@ -2499,7 +2504,7 @@
2499
2504
  return Device;
2500
2505
  }());
2501
2506
 
2502
- var Version = "2.8.0-nightly.2204-17";
2507
+ var Version = "2.8.0";
2503
2508
  var Internal = /** @class */ (function () {
2504
2509
  function Internal(config) {
2505
2510
  this.sdkVersion = (config.sdkExtension && config.sdkExtension() ? config.sdkExtension() + "_" : "") + "javascript:" + Version;