@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.
- package/browser/applicationinsights-dependencies-js.integrity.json +9 -9
- package/browser/applicationinsights-dependencies-js.js +22 -17
- package/browser/applicationinsights-dependencies-js.js.map +1 -1
- package/browser/applicationinsights-dependencies-js.min.js +2 -2
- package/browser/applicationinsights-dependencies-js.min.js.map +1 -1
- package/dist/applicationinsights-dependencies-js.api.json +7 -6
- package/dist/applicationinsights-dependencies-js.d.ts +1 -1
- package/dist/applicationinsights-dependencies-js.js +22 -17
- package/dist/applicationinsights-dependencies-js.js.map +1 -1
- package/dist/applicationinsights-dependencies-js.min.js +2 -2
- package/dist/applicationinsights-dependencies-js.min.js.map +1 -1
- package/dist/applicationinsights-dependencies-js.rollup.d.ts +1 -1
- package/dist-esm/ajax.js +1 -1
- package/dist-esm/ajaxRecord.js +1 -1
- package/dist-esm/ajaxUtils.js +1 -1
- package/dist-esm/applicationinsights-dependencies-js.js +1 -1
- package/package.json +3 -3
- package/types/tsdoc-metadata.json +1 -1
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "applicationinsights-dependencies-js",
|
|
3
|
-
"version": "2.8.
|
|
3
|
+
"version": "2.8.1-nightly.2204-21",
|
|
4
4
|
"ext": {
|
|
5
5
|
"@js": {
|
|
6
6
|
"file": "applicationinsights-dependencies-js.js",
|
|
7
7
|
"type": "text/javascript; charset=utf-8",
|
|
8
|
-
"integrity": "sha256-
|
|
8
|
+
"integrity": "sha256-GqWHK6Lt4Rx9YRocgiz/KCBxI64veL0vGGJcD9jW/Nc= sha384-xNwB+7zRXhoQqCuBaZvpUkF0gW0sw6MjUHI6t0N9SZXSKPWc1PEu9fp+bXlH4hqu sha512-KmIcW18vvEydWvoc0UUSYw1TrpQfmkaWI5yzf5gPzDqAwlxB2ntEMqa1fSpnnD1qGhQvg3RRIyba67g4xanUCg==",
|
|
9
9
|
"hashes": {
|
|
10
|
-
"sha256": "
|
|
11
|
-
"sha384": "
|
|
12
|
-
"sha512": "
|
|
10
|
+
"sha256": "GqWHK6Lt4Rx9YRocgiz/KCBxI64veL0vGGJcD9jW/Nc=",
|
|
11
|
+
"sha384": "xNwB+7zRXhoQqCuBaZvpUkF0gW0sw6MjUHI6t0N9SZXSKPWc1PEu9fp+bXlH4hqu",
|
|
12
|
+
"sha512": "KmIcW18vvEydWvoc0UUSYw1TrpQfmkaWI5yzf5gPzDqAwlxB2ntEMqa1fSpnnD1qGhQvg3RRIyba67g4xanUCg=="
|
|
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-
|
|
18
|
+
"integrity": "sha256-eNB3j2KuoyBquqR7qF2zwgqpNLZuGzKwD38sV8JNdbA= sha384-qrzcQdqKHHbJ78dWWhWu9MhvwV13dkWELorLMyuQD5fgeQvrG0jil7j3XWLp3IDS sha512-dEsv5f0CVO5CWcfyUyEHB3zNTooNIjOLTMkixD+n4V/oSVv+sNU2j4zKuhoHfane1urh1xw/2WO+Ou22oam39A==",
|
|
19
19
|
"hashes": {
|
|
20
|
-
"sha256": "
|
|
21
|
-
"sha384": "
|
|
22
|
-
"sha512": "
|
|
20
|
+
"sha256": "eNB3j2KuoyBquqR7qF2zwgqpNLZuGzKwD38sV8JNdbA=",
|
|
21
|
+
"sha384": "qrzcQdqKHHbJ78dWWhWu9MhvwV13dkWELorLMyuQD5fgeQvrG0jil7j3XWLp3IDS",
|
|
22
|
+
"sha512": "dEsv5f0CVO5CWcfyUyEHB3zNTooNIjOLTMkixD+n4V/oSVv+sNU2j4zKuhoHfane1urh1xw/2WO+Ou22oam39A=="
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Application Insights JavaScript SDK - Dependencies Plugin, 2.8.
|
|
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.
|
|
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,
|
|
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,
|
|
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,
|
|
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(),
|
|
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,
|
|
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
|
|
1403
|
-
plugin
|
|
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(),
|
|
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 [" +
|
|
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
|
|
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
|
-
|
|
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,
|
|
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
|
-
|
|
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,
|
|
1658
|
+
var theUpdateCtx = updateCtx || createProcessTelemetryUpdateContext(null, core, _nextPlugin && _nextPlugin[strGetPlugin] ? _nextPlugin[strGetPlugin]() : _nextPlugin);
|
|
1654
1659
|
var theUpdateState = updateState || {
|
|
1655
1660
|
reason: 0
|
|
1656
1661
|
};
|