@microsoft/applicationinsights-dependencies-js 2.8.1-nightly.2204-21 → 2.8.2-nightly.2204-24

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.1-nightly.2204-21",
3
+ "version": "2.8.2-nightly.2204-24",
4
4
  "ext": {
5
5
  "@js": {
6
6
  "file": "applicationinsights-dependencies-js.js",
7
7
  "type": "text/javascript; charset=utf-8",
8
- "integrity": "sha256-GqWHK6Lt4Rx9YRocgiz/KCBxI64veL0vGGJcD9jW/Nc= sha384-xNwB+7zRXhoQqCuBaZvpUkF0gW0sw6MjUHI6t0N9SZXSKPWc1PEu9fp+bXlH4hqu sha512-KmIcW18vvEydWvoc0UUSYw1TrpQfmkaWI5yzf5gPzDqAwlxB2ntEMqa1fSpnnD1qGhQvg3RRIyba67g4xanUCg==",
8
+ "integrity": "sha256-QUQOdRVOpigSrfkDaqei4wbVPa4jPFVjgcWYhs3BdVk= sha384-jZwpYsL9Xtzs594ppPC4nkc+RFtSlqLwGyUDKeaovJB7s6XRXn+M2jFuv89gzHx/ sha512-SUrOZu1GnjLS+Ya+7VTAniqXXkZDwPx/MZjaeAfrOZU52lA5tzkt62hDswH13rqdLnLT6Aj0yKJNykWChwi87A==",
9
9
  "hashes": {
10
- "sha256": "GqWHK6Lt4Rx9YRocgiz/KCBxI64veL0vGGJcD9jW/Nc=",
11
- "sha384": "xNwB+7zRXhoQqCuBaZvpUkF0gW0sw6MjUHI6t0N9SZXSKPWc1PEu9fp+bXlH4hqu",
12
- "sha512": "KmIcW18vvEydWvoc0UUSYw1TrpQfmkaWI5yzf5gPzDqAwlxB2ntEMqa1fSpnnD1qGhQvg3RRIyba67g4xanUCg=="
10
+ "sha256": "QUQOdRVOpigSrfkDaqei4wbVPa4jPFVjgcWYhs3BdVk=",
11
+ "sha384": "jZwpYsL9Xtzs594ppPC4nkc+RFtSlqLwGyUDKeaovJB7s6XRXn+M2jFuv89gzHx/",
12
+ "sha512": "SUrOZu1GnjLS+Ya+7VTAniqXXkZDwPx/MZjaeAfrOZU52lA5tzkt62hDswH13rqdLnLT6Aj0yKJNykWChwi87A=="
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-eNB3j2KuoyBquqR7qF2zwgqpNLZuGzKwD38sV8JNdbA= sha384-qrzcQdqKHHbJ78dWWhWu9MhvwV13dkWELorLMyuQD5fgeQvrG0jil7j3XWLp3IDS sha512-dEsv5f0CVO5CWcfyUyEHB3zNTooNIjOLTMkixD+n4V/oSVv+sNU2j4zKuhoHfane1urh1xw/2WO+Ou22oam39A==",
18
+ "integrity": "sha256-NRMhY8TKmqDsiNKuUwrQKwh1+F5p+P4SzeaOFuj2APE= sha384-sZauc6WomKRSQq5QWsLQyj2tNbvitKGPwMDrGjitYPpca6qDL0NmTWWsXvzf7MZK sha512-eXakaBqnNPm6+//aaH1KXH/fTMYSqX0g2RuIWkT8b0xtMT4xtIOGsMF9+3w2TWbZiY9q/UszIlA6WVAjyng0WQ==",
19
19
  "hashes": {
20
- "sha256": "eNB3j2KuoyBquqR7qF2zwgqpNLZuGzKwD38sV8JNdbA=",
21
- "sha384": "qrzcQdqKHHbJ78dWWhWu9MhvwV13dkWELorLMyuQD5fgeQvrG0jil7j3XWLp3IDS",
22
- "sha512": "dEsv5f0CVO5CWcfyUyEHB3zNTooNIjOLTMkixD+n4V/oSVv+sNU2j4zKuhoHfane1urh1xw/2WO+Ou22oam39A=="
20
+ "sha256": "NRMhY8TKmqDsiNKuUwrQKwh1+F5p+P4SzeaOFuj2APE=",
21
+ "sha384": "sZauc6WomKRSQq5QWsLQyj2tNbvitKGPwMDrGjitYPpca6qDL0NmTWWsXvzf7MZK",
22
+ "sha512": "eXakaBqnNPm6+//aaH1KXH/fTMYSqX0g2RuIWkT8b0xtMT4xtIOGsMF9+3w2TWbZiY9q/UszIlA6WVAjyng0WQ=="
23
23
  }
24
24
  }
25
25
  }
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Application Insights JavaScript SDK - Dependencies Plugin, 2.8.1-nightly.2204-21
2
+ * Application Insights JavaScript SDK - Dependencies Plugin, 2.8.2-nightly.2204-24
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
  (function (global, factory) {
@@ -108,6 +108,7 @@
108
108
  var strDoTeardown = "_doTeardown";
109
109
 
110
110
  var strToISOString = "toISOString";
111
+ var strIndexOf = "indexOf";
111
112
  var cStrTrim = "trim";
112
113
  var strToString = "toString";
113
114
  var str__Proto$1 = "__proto__";
@@ -249,6 +250,25 @@
249
250
  catch (e) {
250
251
  }
251
252
  }
253
+ function arrIndexOf(arr, searchElement, fromIndex) {
254
+ if (arr) {
255
+ if (arr[strIndexOf]) {
256
+ return arr[strIndexOf](searchElement, fromIndex);
257
+ }
258
+ var len = arr.length;
259
+ var from = fromIndex || 0;
260
+ try {
261
+ for (var lp = Math.max(from >= 0 ? from : len - Math.abs(from), 0); lp < len; lp++) {
262
+ if (lp in arr && arr[lp] === searchElement) {
263
+ return lp;
264
+ }
265
+ }
266
+ }
267
+ catch (e) {
268
+ }
269
+ }
270
+ return -1;
271
+ }
252
272
  function strTrim(str) {
253
273
  if (str) {
254
274
  str = (_strTrim && str[cStrTrim]) ? str[cStrTrim]() : (str.replace ? str.replace(/^\s+|\s+$/g, "") : str);
@@ -423,7 +443,7 @@
423
443
  }
424
444
 
425
445
  /*!
426
- * Microsoft Dynamic Proto Utility, 1.1.4
446
+ * Microsoft Dynamic Proto Utility, 1.1.5
427
447
  * Copyright (c) Microsoft and contributors. All rights reserved.
428
448
  */
429
449
  var Constructor = 'constructor';
@@ -436,6 +456,7 @@
436
456
  var DynInstChkTag = '_dynInstChk';
437
457
  var DynAllowInstChkTag = DynInstChkTag;
438
458
  var DynProtoDefaultOptions = '_dfOpts';
459
+ var DynProtoPolyProto = "_dynProto";
439
460
  var UnknownValue = '_unknown_';
440
461
  var str__Proto = "__proto__";
441
462
  var strUseBaseInst = 'useBaseInst';
@@ -457,8 +478,11 @@
457
478
  if (_objGetPrototypeOf) {
458
479
  return _objGetPrototypeOf(target);
459
480
  }
460
- var newProto = target[str__Proto] || target[Prototype] || (target[Constructor] ? target[Constructor][Prototype] : null);
481
+ var newProto = target[DynProtoPolyProto] || target[str__Proto] || target[Prototype] || (target[Constructor] ? target[Constructor][Prototype] : null);
461
482
  if (newProto) {
483
+ if (!target[DynProtoPolyProto]) {
484
+ target[DynProtoPolyProto] = newProto;
485
+ }
462
486
  return newProto;
463
487
  }
464
488
  }
@@ -617,8 +641,9 @@
617
641
  visited.push(thisProto);
618
642
  thisProto = _getObjProto(thisProto);
619
643
  }
644
+ return false;
620
645
  }
621
- return false;
646
+ return true;
622
647
  }
623
648
  function _getObjName(target, unknownValue) {
624
649
  if (_hasOwnProperty(target, Prototype)) {
@@ -875,7 +900,7 @@
875
900
  if (isUserAct === void 0) { isUserAct = false; }
876
901
  var message = new _InternalLogMessage(msgId, msg, isUserAct, properties);
877
902
  if (_self.enableDebugExceptions()) {
878
- throw message;
903
+ throw dumpObj(message);
879
904
  }
880
905
  else {
881
906
  var logFunc = severity === 1 ? strErrorToConsole : strWarnToConsole;
@@ -1149,7 +1174,7 @@
1149
1174
  }
1150
1175
 
1151
1176
  var _objDefineProperty = ObjDefineProperty;
1152
- var version = "2.8.1-nightly.2204-21";
1177
+ var version = "2.8.2-nightly.2204-24";
1153
1178
  var instanceName = "." + newId(6);
1154
1179
  var _dataUid = 0;
1155
1180
  function _createAccessor(target, prop, value) {
@@ -1947,13 +1972,15 @@
1947
1972
  }
1948
1973
  _doCallbacks(hooks, funcArgs, cbArgs, hookCtx, 0 );
1949
1974
  var theFunc = aiHook.f;
1950
- try {
1951
- funcArgs.rslt = theFunc.apply(funcThis, orgArgs);
1952
- }
1953
- catch (err) {
1954
- funcArgs.err = err;
1955
- _doCallbacks(hooks, funcArgs, cbArgs, hookCtx, 3 );
1956
- throw err;
1975
+ if (theFunc) {
1976
+ try {
1977
+ funcArgs.rslt = theFunc.apply(funcThis, orgArgs);
1978
+ }
1979
+ catch (err) {
1980
+ funcArgs.err = err;
1981
+ _doCallbacks(hooks, funcArgs, cbArgs, hookCtx, 3 );
1982
+ throw err;
1983
+ }
1957
1984
  }
1958
1985
  _doCallbacks(hooks, funcArgs, cbArgs, hookCtx, 1 );
1959
1986
  return funcArgs.rslt;
@@ -1977,6 +2004,36 @@
1977
2004
  }
1978
2005
  return null;
1979
2006
  }
2007
+ function _createInstrumentHook(owner, funcName, fn, callbacks) {
2008
+ var aiHook = fn && fn[aiInstrumentHooks];
2009
+ if (!aiHook) {
2010
+ aiHook = {
2011
+ i: 0,
2012
+ n: funcName,
2013
+ f: fn,
2014
+ h: []
2015
+ };
2016
+ var newFunc = _createFunctionHook(aiHook);
2017
+ newFunc[aiInstrumentHooks] = aiHook;
2018
+ owner[funcName] = newFunc;
2019
+ }
2020
+ var theHook = {
2021
+ id: aiHook.i,
2022
+ cbks: callbacks,
2023
+ rm: function () {
2024
+ var id = this.id;
2025
+ _arrLoop(aiHook.h, function (hook, idx) {
2026
+ if (hook.id === id) {
2027
+ aiHook.h.splice(idx, 1);
2028
+ return 1;
2029
+ }
2030
+ });
2031
+ }
2032
+ };
2033
+ aiHook.i++;
2034
+ aiHook.h.push(theHook);
2035
+ return theHook;
2036
+ }
1980
2037
  function InstrumentFunc(target, funcName, callbacks, checkPrototype) {
1981
2038
  if (checkPrototype === void 0) { checkPrototype = true; }
1982
2039
  if (target && funcName && callbacks) {
@@ -1984,34 +2041,7 @@
1984
2041
  if (owner) {
1985
2042
  var fn = owner[funcName];
1986
2043
  if (typeof fn === strShimFunction) {
1987
- var aiHook_1 = fn[aiInstrumentHooks];
1988
- if (!aiHook_1) {
1989
- aiHook_1 = {
1990
- i: 0,
1991
- n: funcName,
1992
- f: fn,
1993
- h: []
1994
- };
1995
- var newFunc = _createFunctionHook(aiHook_1);
1996
- newFunc[aiInstrumentHooks] = aiHook_1;
1997
- owner[funcName] = newFunc;
1998
- }
1999
- var theHook = {
2000
- id: aiHook_1.i,
2001
- cbks: callbacks,
2002
- rm: function () {
2003
- var id = this.id;
2004
- _arrLoop(aiHook_1.h, function (hook, idx) {
2005
- if (hook.id === id) {
2006
- aiHook_1.h.splice(idx, 1);
2007
- return 1;
2008
- }
2009
- });
2010
- }
2011
- };
2012
- aiHook_1.i++;
2013
- aiHook_1.h.push(theHook);
2014
- return theHook;
2044
+ return _createInstrumentHook(owner, funcName, fn, callbacks);
2015
2045
  }
2016
2046
  }
2017
2047
  }
@@ -2213,7 +2243,7 @@
2213
2243
  "https://dc-int.services.visualstudio.com/v2/track"
2214
2244
  ];
2215
2245
  function isInternalApplicationInsightsEndpoint(endpointUrl) {
2216
- return _internalEndpoints.indexOf(endpointUrl.toLowerCase()) !== -1;
2246
+ return arrIndexOf(_internalEndpoints, endpointUrl.toLowerCase()) !== -1;
2217
2247
  }
2218
2248
  var CorrelationIdHelper = {
2219
2249
  correlationIdPrefix: "cid-v1:",