@microsoft/applicationinsights-dependencies-js 3.3.4-nightly3.2409-15 → 3.3.4-nightly3.2409-18

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.
Files changed (28) hide show
  1. package/browser/es5/applicationinsights-dependencies-js.cjs.js +36 -15
  2. package/browser/es5/applicationinsights-dependencies-js.cjs.js.map +1 -1
  3. package/browser/es5/applicationinsights-dependencies-js.cjs.min.js +2 -2
  4. package/browser/es5/applicationinsights-dependencies-js.cjs.min.js.map +1 -1
  5. package/browser/es5/applicationinsights-dependencies-js.gbl.js +38 -17
  6. package/browser/es5/applicationinsights-dependencies-js.gbl.js.map +1 -1
  7. package/browser/es5/applicationinsights-dependencies-js.gbl.min.js +2 -2
  8. package/browser/es5/applicationinsights-dependencies-js.gbl.min.js.map +1 -1
  9. package/browser/es5/applicationinsights-dependencies-js.integrity.json +25 -25
  10. package/browser/es5/applicationinsights-dependencies-js.js +38 -17
  11. package/browser/es5/applicationinsights-dependencies-js.js.map +1 -1
  12. package/browser/es5/applicationinsights-dependencies-js.min.js +2 -2
  13. package/browser/es5/applicationinsights-dependencies-js.min.js.map +1 -1
  14. package/dist/es5/applicationinsights-dependencies-js.js +36 -15
  15. package/dist/es5/applicationinsights-dependencies-js.js.map +1 -1
  16. package/dist/es5/applicationinsights-dependencies-js.min.js +2 -2
  17. package/dist/es5/applicationinsights-dependencies-js.min.js.map +1 -1
  18. package/dist-es5/DependencyInitializer.js +1 -1
  19. package/dist-es5/DependencyListener.js +1 -1
  20. package/dist-es5/InternalConstants.js +1 -1
  21. package/dist-es5/__DynamicConstants.js +1 -1
  22. package/dist-es5/ajax.js +1 -1
  23. package/dist-es5/ajaxRecord.js +1 -1
  24. package/dist-es5/ajaxUtils.js +1 -1
  25. package/dist-es5/applicationinsights-dependencies-js.js +1 -1
  26. package/package.json +3 -3
  27. package/types/applicationinsights-dependencies-js.d.ts +1 -1
  28. package/types/applicationinsights-dependencies-js.namespaced.d.ts +1 -1
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Application Insights JavaScript SDK - Dependencies Plugin, 3.3.4-nightly3.2409-15
2
+ * Application Insights JavaScript SDK - Dependencies Plugin, 3.3.4-nightly3.2409-18
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
  'use strict';
@@ -12,7 +12,7 @@ var strShimPrototype = "prototype";
12
12
  var ObjClass$1 = Object;
13
13
  var ObjProto$1 = ObjClass$1[strShimPrototype];
14
14
 
15
- /*! https://github.com/nevware21/ts-utils v0.11.3 */
15
+ /*! https://github.com/nevware21/ts-utils v0.11.4 */
16
16
  /*#__NO_SIDE_EFFECTS__*/
17
17
  function _pureAssign(func1, func2) {
18
18
  return func1 || func2;
@@ -76,6 +76,10 @@ function isUndefined(value) {
76
76
  return typeof value === UNDEFINED || value === UNDEFINED;
77
77
  }
78
78
  /*#__NO_SIDE_EFFECTS__*/
79
+ function isStrictUndefined(arg) {
80
+ return !isDefined(arg);
81
+ }
82
+ /*#__NO_SIDE_EFFECTS__*/
79
83
  function isNullOrUndefined(value) {
80
84
  return value === NULL_VALUE || isUndefined(value);
81
85
  }
@@ -143,7 +147,7 @@ function _createProp(value) {
143
147
  }
144
148
  }
145
149
  objForEachKey(value, function (key, value) {
146
- prop[propMap[key]] = isUndefined(value) ? prop[propMap[key]] : value;
150
+ prop[propMap[key]] = isStrictUndefined(value) ? prop[propMap[key]] : value;
147
151
  });
148
152
  return prop;
149
153
  }
@@ -178,7 +182,7 @@ function dumpObj(object, format) {
178
182
  }
179
183
  try {
180
184
  propertyValueDump = JSON.stringify(object, NULL_VALUE, format ? ((typeof format === "number") ? format : 4) : UNDEF_VALUE);
181
- propertyValueDump = (propertyValueDump && propertyValueDump.replace(/"(\w+)"\s*:\s{0,1}/g, "$1: ")) || asString(object);
185
+ propertyValueDump = (propertyValueDump ? propertyValueDump.replace(/"(\w+)"\s*:\s{0,1}/g, "$1: ") : NULL_VALUE) || asString(object);
182
186
  }
183
187
  catch (e) {
184
188
  propertyValueDump = " - " + dumpObj(e, format);
@@ -265,9 +269,9 @@ function _getGlobalConfig() {
265
269
  var _unwrapFunction = ( _unwrapFunctionWithPoly);
266
270
  /*#__NO_SIDE_EFFECTS__*/
267
271
  function _unwrapFunctionWithPoly(funcName, clsProto, polyFunc) {
268
- var clsFn = clsProto && clsProto[funcName];
272
+ var clsFn = clsProto ? clsProto[funcName] : NULL_VALUE;
269
273
  return function (thisArg) {
270
- var theFunc = (thisArg && thisArg[funcName]) || clsFn;
274
+ var theFunc = (thisArg ? thisArg[funcName] : NULL_VALUE) || clsFn;
271
275
  if (theFunc || polyFunc) {
272
276
  var theArgs = arguments;
273
277
  return (theFunc || polyFunc).apply(thisArg, theFunc ? ArrSlice[CALL](theArgs, 1) : theArgs);
@@ -358,24 +362,37 @@ function _getGlobalInstFn(getFn, theArgs) {
358
362
  var cachedValue;
359
363
  return function () {
360
364
  !_globalLazyTestHooks && _initTestHooks();
361
- (!cachedValue || _globalLazyTestHooks.lzy) && (cachedValue = createCachedValue(safe(getFn, theArgs).v));
365
+ if (!cachedValue || _globalLazyTestHooks.lzy) {
366
+ cachedValue = createCachedValue(safe(getFn, theArgs).v);
367
+ }
362
368
  return cachedValue.v;
363
369
  };
364
370
  }
365
- /*#__NO_SIDE_EFFECTS__*/
366
371
  function getGlobal(useCached) {
367
372
  !_globalLazyTestHooks && _initTestHooks();
368
- (!_cachedGlobal || useCached === false || _globalLazyTestHooks.lzy) && (_cachedGlobal = createCachedValue(safe(_getGlobalValue).v || NULL_VALUE));
373
+ if (!_cachedGlobal || useCached === false || _globalLazyTestHooks.lzy) {
374
+ _cachedGlobal = createCachedValue(safe(_getGlobalValue).v || NULL_VALUE);
375
+ }
369
376
  return _cachedGlobal.v;
370
377
  }
371
378
  /*#__NO_SIDE_EFFECTS__*/
372
379
  function getInst(name, useCached) {
373
- var gbl = (!_cachedGlobal || useCached === false) ? getGlobal(useCached) : _cachedGlobal.v;
380
+ var gbl;
381
+ if (!_cachedGlobal || useCached === false) {
382
+ gbl = getGlobal(useCached);
383
+ }
384
+ else {
385
+ gbl = _cachedGlobal.v;
386
+ }
374
387
  if (gbl && gbl[name]) {
375
388
  return gbl[name];
376
389
  }
377
390
  if (name === WINDOW) {
378
- return getWindow();
391
+ try {
392
+ return window;
393
+ }
394
+ catch (e) {
395
+ }
379
396
  }
380
397
  return NULL_VALUE;
381
398
  }
@@ -432,7 +449,7 @@ function iterForOf(iter, callbackfn, thisArg) {
432
449
  if (iter) {
433
450
  if (!isIterator(iter)) {
434
451
  !_iterSymbol$1 && (_iterSymbol$1 = createCachedValue(getKnownSymbol(3 )));
435
- iter = iter[_iterSymbol$1.v] ? iter[_iterSymbol$1.v]() : null;
452
+ iter = iter[_iterSymbol$1.v] ? iter[_iterSymbol$1.v]() : NULL_VALUE;
436
453
  }
437
454
  if (isIterator(iter)) {
438
455
  var err = UNDEF_VALUE;
@@ -610,7 +627,7 @@ function isPlainObject(value) {
610
627
  if (objHasOwnProperty(proto, CONSTRUCTOR)) {
611
628
  proto = proto[CONSTRUCTOR];
612
629
  }
613
- result = proto && typeof proto === FUNCTION && _fnToString[CALL](proto) === _objCtrFnString;
630
+ result = !!(proto && typeof proto === FUNCTION && _fnToString[CALL](proto) === _objCtrFnString);
614
631
  }
615
632
  }
616
633
  catch (ex) {
@@ -622,7 +639,9 @@ var _perf;
622
639
  /*#__NO_SIDE_EFFECTS__*/
623
640
  function getPerformance() {
624
641
  !_globalLazyTestHooks && _initTestHooks();
625
- (!_perf || _globalLazyTestHooks.lzy) && (_perf = createCachedValue(safe((getInst), ["performance"]).v));
642
+ if (!_perf || _globalLazyTestHooks.lzy) {
643
+ _perf = createCachedValue(safe((getInst), ["performance"]).v);
644
+ }
626
645
  return _perf.v;
627
646
  }
628
647
  var strSplit = ( /*#__PURE__*/_unwrapFunction("split", StrProto));
@@ -711,6 +730,8 @@ function scheduleTimeout(callback, timeout) {
711
730
  return _createTimeoutWith(true, UNDEF_VALUE, ArrSlice[CALL](arguments));
712
731
  }
713
732
 
733
+ (getGlobal() || {})["Symbol"];
734
+ (getGlobal() || {})["Reflect"];
714
735
  var strHasOwnProperty = "hasOwnProperty";
715
736
  var __objAssignFnImpl = function (t) {
716
737
  for (var s, i = 1, n = arguments.length; i < n; i++) {
@@ -1308,7 +1329,7 @@ function newId(maxLength) {
1308
1329
  return result;
1309
1330
  }
1310
1331
 
1311
- var version = '3.3.4-nightly3.2409-15';
1332
+ var version = '3.3.4-nightly3.2409-18';
1312
1333
  var instanceName = "." + newId(6);
1313
1334
  var _dataUid = 0;
1314
1335
  function _canAcceptData(target) {