@microsoft/applicationinsights-properties-js 3.3.3 → 3.3.4-nightly3.2409-17

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 (57) hide show
  1. package/browser/es5/{ai.props.3.3.3.cjs.js → ai.props.3.3.4-nightly3.2409-17.cjs.js} +36 -17
  2. package/browser/es5/ai.props.3.3.4-nightly3.2409-17.cjs.js.map +1 -0
  3. package/browser/es5/ai.props.3.3.4-nightly3.2409-17.cjs.min.js +6 -0
  4. package/browser/es5/ai.props.3.3.4-nightly3.2409-17.cjs.min.js.map +1 -0
  5. package/browser/es5/{ai.props.3.3.3.gbl.js → ai.props.3.3.4-nightly3.2409-17.gbl.js} +38 -19
  6. package/browser/es5/ai.props.3.3.4-nightly3.2409-17.gbl.js.map +1 -0
  7. package/browser/es5/ai.props.3.3.4-nightly3.2409-17.gbl.min.js +6 -0
  8. package/browser/es5/ai.props.3.3.4-nightly3.2409-17.gbl.min.js.map +1 -0
  9. package/browser/es5/ai.props.3.3.4-nightly3.2409-17.integrity.json +66 -0
  10. package/browser/es5/{ai.props.3.3.3.js → ai.props.3.3.4-nightly3.2409-17.js} +38 -19
  11. package/browser/es5/ai.props.3.3.4-nightly3.2409-17.js.map +1 -0
  12. package/browser/es5/ai.props.3.3.4-nightly3.2409-17.min.js +6 -0
  13. package/browser/es5/ai.props.3.3.4-nightly3.2409-17.min.js.map +1 -0
  14. package/browser/es5/ai.props.3.cjs.js +35 -16
  15. package/browser/es5/ai.props.3.cjs.js.map +1 -1
  16. package/browser/es5/ai.props.3.cjs.min.js +2 -2
  17. package/browser/es5/ai.props.3.cjs.min.js.map +1 -1
  18. package/browser/es5/ai.props.3.gbl.js +37 -18
  19. package/browser/es5/ai.props.3.gbl.js.map +1 -1
  20. package/browser/es5/ai.props.3.gbl.min.js +2 -2
  21. package/browser/es5/ai.props.3.gbl.min.js.map +1 -1
  22. package/browser/es5/ai.props.3.integrity.json +25 -25
  23. package/browser/es5/ai.props.3.js +37 -18
  24. package/browser/es5/ai.props.3.js.map +1 -1
  25. package/browser/es5/ai.props.3.min.js +2 -2
  26. package/browser/es5/ai.props.3.min.js.map +1 -1
  27. package/dist/es5/applicationinsights-properties-js.js +35 -16
  28. package/dist/es5/applicationinsights-properties-js.js.map +1 -1
  29. package/dist/es5/applicationinsights-properties-js.min.js +2 -2
  30. package/dist/es5/applicationinsights-properties-js.min.js.map +1 -1
  31. package/dist-es5/Context/Application.js +1 -1
  32. package/dist-es5/Context/Device.js +1 -1
  33. package/dist-es5/Context/Internal.js +2 -2
  34. package/dist-es5/Context/Internal.js.map +1 -1
  35. package/dist-es5/Context/Location.js +1 -1
  36. package/dist-es5/Context/Session.js +1 -1
  37. package/dist-es5/Context/TelemetryTrace.js +1 -1
  38. package/dist-es5/Context/User.js +1 -1
  39. package/dist-es5/Interfaces/IPropTelemetryContext.js +1 -1
  40. package/dist-es5/Interfaces/IPropertiesConfig.js +1 -1
  41. package/dist-es5/PropertiesPlugin.js +1 -1
  42. package/dist-es5/TelemetryContext.js +1 -1
  43. package/dist-es5/__DynamicConstants.js +1 -1
  44. package/dist-es5/applicationinsights-properties-js.js +1 -1
  45. package/package.json +69 -66
  46. package/types/applicationinsights-properties-js.d.ts +1 -1
  47. package/types/applicationinsights-properties-js.namespaced.d.ts +1 -1
  48. package/browser/es5/ai.props.3.3.3.cjs.js.map +0 -1
  49. package/browser/es5/ai.props.3.3.3.cjs.min.js +0 -6
  50. package/browser/es5/ai.props.3.3.3.cjs.min.js.map +0 -1
  51. package/browser/es5/ai.props.3.3.3.gbl.js.map +0 -1
  52. package/browser/es5/ai.props.3.3.3.gbl.min.js +0 -6
  53. package/browser/es5/ai.props.3.3.3.gbl.min.js.map +0 -1
  54. package/browser/es5/ai.props.3.3.3.integrity.json +0 -66
  55. package/browser/es5/ai.props.3.3.3.js.map +0 -1
  56. package/browser/es5/ai.props.3.3.3.min.js +0 -6
  57. package/browser/es5/ai.props.3.3.3.min.js.map +0 -1
@@ -1,11 +1,11 @@
1
1
  /*!
2
- * Application Insights JavaScript SDK - Properties Plugin, 3.3.3
2
+ * Application Insights JavaScript SDK - Properties Plugin, 3.3.4-nightly3.2409-17
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
  (function (global, factory) {
6
6
  var undef = "undefined";
7
- var nsKey, key, nm, theExports = {}, modName = "es5_ai_props_3_3_3", msMod="__ms$mod__";
8
- var mods={}, modDetail=mods[modName]={}, ver="3.3.3";
7
+ var nsKey, key, nm, theExports = {}, modName = "es5_ai_props_3_3_4_nightly3_2409_17", msMod="__ms$mod__";
8
+ var mods={}, modDetail=mods[modName]={}, ver="3.3.4-nightly3.2409-17";
9
9
  var baseNs=global, nsKey="Microsoft", baseNs=baseNs[nsKey]=(baseNs[nsKey]||{});
10
10
  // Versioned namespace "Microsoft.ApplicationInsights3"
11
11
  var exportNs=baseNs, nsKey="ApplicationInsights3", exportNs=exportNs[nsKey]=(exportNs[nsKey]||{});
@@ -32,7 +32,7 @@ var strShimUndefined = "undefined";
32
32
  var strShimPrototype = "prototype";
33
33
  var ObjClass$1 = Object;
34
34
 
35
- /*! https://github.com/nevware21/ts-utils v0.11.3 */
35
+ /*! https://github.com/nevware21/ts-utils v0.11.4 */
36
36
  /*#__NO_SIDE_EFFECTS__*/
37
37
  function _pureAssign(func1, func2) {
38
38
  return func1 || func2;
@@ -101,6 +101,10 @@ function isUndefined(value) {
101
101
  return typeof value === UNDEFINED || value === UNDEFINED;
102
102
  }
103
103
  /*#__NO_SIDE_EFFECTS__*/
104
+ function isStrictUndefined(arg) {
105
+ return !isDefined(arg);
106
+ }
107
+ /*#__NO_SIDE_EFFECTS__*/
104
108
  function isNullOrUndefined(value) {
105
109
  return value === NULL_VALUE || isUndefined(value);
106
110
  }
@@ -171,7 +175,7 @@ function _createProp(value) {
171
175
  }
172
176
  }
173
177
  objForEachKey(value, function (key, value) {
174
- prop[propMap[key]] = isUndefined(value) ? prop[propMap[key]] : value;
178
+ prop[propMap[key]] = isStrictUndefined(value) ? prop[propMap[key]] : value;
175
179
  });
176
180
  return prop;
177
181
  }
@@ -206,7 +210,7 @@ function dumpObj(object, format) {
206
210
  }
207
211
  try {
208
212
  propertyValueDump = JSON.stringify(object, NULL_VALUE, format ? ((typeof format === "number") ? format : 4) : UNDEF_VALUE);
209
- propertyValueDump = (propertyValueDump && propertyValueDump.replace(/"(\w+)"\s*:\s{0,1}/g, "$1: ")) || asString(object);
213
+ propertyValueDump = (propertyValueDump ? propertyValueDump.replace(/"(\w+)"\s*:\s{0,1}/g, "$1: ") : NULL_VALUE) || asString(object);
210
214
  }
211
215
  catch (e) {
212
216
  propertyValueDump = " - " + dumpObj(e, format);
@@ -290,9 +294,9 @@ function _getGlobalConfig() {
290
294
  var _unwrapFunction = ( _unwrapFunctionWithPoly);
291
295
  /*#__NO_SIDE_EFFECTS__*/
292
296
  function _unwrapFunctionWithPoly(funcName, clsProto, polyFunc) {
293
- var clsFn = clsProto && clsProto[funcName];
297
+ var clsFn = clsProto ? clsProto[funcName] : NULL_VALUE;
294
298
  return function (thisArg) {
295
- var theFunc = (thisArg && thisArg[funcName]) || clsFn;
299
+ var theFunc = (thisArg ? thisArg[funcName] : NULL_VALUE) || clsFn;
296
300
  if (theFunc || polyFunc) {
297
301
  var theArgs = arguments;
298
302
  return (theFunc || polyFunc).apply(thisArg, theFunc ? ArrSlice[CALL](theArgs, 1) : theArgs);
@@ -403,24 +407,37 @@ function _getGlobalInstFn(getFn, theArgs) {
403
407
  var cachedValue;
404
408
  return function () {
405
409
  !_globalLazyTestHooks && _initTestHooks();
406
- (!cachedValue || _globalLazyTestHooks.lzy) && (cachedValue = createCachedValue(safe(getFn, theArgs).v));
410
+ if (!cachedValue || _globalLazyTestHooks.lzy) {
411
+ cachedValue = createCachedValue(safe(getFn, theArgs).v);
412
+ }
407
413
  return cachedValue.v;
408
414
  };
409
415
  }
410
- /*#__NO_SIDE_EFFECTS__*/
411
416
  function getGlobal(useCached) {
412
417
  !_globalLazyTestHooks && _initTestHooks();
413
- (!_cachedGlobal || useCached === false || _globalLazyTestHooks.lzy) && (_cachedGlobal = createCachedValue(safe(_getGlobalValue).v || NULL_VALUE));
418
+ if (!_cachedGlobal || useCached === false || _globalLazyTestHooks.lzy) {
419
+ _cachedGlobal = createCachedValue(safe(_getGlobalValue).v || NULL_VALUE);
420
+ }
414
421
  return _cachedGlobal.v;
415
422
  }
416
423
  /*#__NO_SIDE_EFFECTS__*/
417
424
  function getInst(name, useCached) {
418
- var gbl = (!_cachedGlobal || useCached === false) ? getGlobal(useCached) : _cachedGlobal.v;
425
+ var gbl;
426
+ if (!_cachedGlobal || useCached === false) {
427
+ gbl = getGlobal(useCached);
428
+ }
429
+ else {
430
+ gbl = _cachedGlobal.v;
431
+ }
419
432
  if (gbl && gbl[name]) {
420
433
  return gbl[name];
421
434
  }
422
435
  if (name === WINDOW) {
423
- return getWindow();
436
+ try {
437
+ return window;
438
+ }
439
+ catch (e) {
440
+ }
424
441
  }
425
442
  return NULL_VALUE;
426
443
  }
@@ -474,7 +491,7 @@ function iterForOf(iter, callbackfn, thisArg) {
474
491
  if (iter) {
475
492
  if (!isIterator(iter)) {
476
493
  !_iterSymbol$1 && (_iterSymbol$1 = createCachedValue(getKnownSymbol(3 )));
477
- iter = iter[_iterSymbol$1.v] ? iter[_iterSymbol$1.v]() : null;
494
+ iter = iter[_iterSymbol$1.v] ? iter[_iterSymbol$1.v]() : NULL_VALUE;
478
495
  }
479
496
  if (isIterator(iter)) {
480
497
  var err = UNDEF_VALUE;
@@ -652,7 +669,7 @@ function isPlainObject(value) {
652
669
  if (objHasOwnProperty(proto, CONSTRUCTOR)) {
653
670
  proto = proto[CONSTRUCTOR];
654
671
  }
655
- result = proto && typeof proto === FUNCTION && _fnToString[CALL](proto) === _objCtrFnString;
672
+ result = !!(proto && typeof proto === FUNCTION && _fnToString[CALL](proto) === _objCtrFnString);
656
673
  }
657
674
  }
658
675
  catch (ex) {
@@ -667,7 +684,7 @@ function polyStrEndsWith(value, searchString, length) {
667
684
  throwTypeError("'" + dumpObj(value) + "' is not a string");
668
685
  }
669
686
  var searchValue = isString(searchString) ? searchString : asString(searchString);
670
- var end = !isUndefined(length) && length < value[LENGTH] ? length : value[LENGTH];
687
+ var end = (!isUndefined(length) && length < value[LENGTH]) ? length : value[LENGTH];
671
688
  return strSubstring(value, end - searchValue[LENGTH], end) === searchValue;
672
689
  }
673
690
  var strIndexOf = ( /*#__PURE__*/_unwrapFunction("indexOf", StrProto));
@@ -755,6 +772,8 @@ function scheduleTimeout(callback, timeout) {
755
772
  return _createTimeoutWith(true, UNDEF_VALUE, ArrSlice[CALL](arguments));
756
773
  }
757
774
 
775
+ (getGlobal() || {})["Symbol"];
776
+ (getGlobal() || {})["Reflect"];
758
777
  var strHasOwnProperty = "hasOwnProperty";
759
778
  var extendStaticsFn = function (d, b) {
760
779
  extendStaticsFn = ObjClass$1["setPrototypeOf"] ||
@@ -1330,7 +1349,7 @@ function newId(maxLength) {
1330
1349
  return result;
1331
1350
  }
1332
1351
 
1333
- var version = '3.3.3';
1352
+ var version = '3.3.4-nightly3.2409-17';
1334
1353
  var instanceName = "." + newId(6);
1335
1354
  var _dataUid = 0;
1336
1355
  function _canAcceptData(target) {
@@ -3582,7 +3601,7 @@ var Device = /** @class */ (function () {
3582
3601
  return Device;
3583
3602
  }());
3584
3603
 
3585
- var Version = '3.3.3';
3604
+ var Version = '3.3.4-nightly3.2409-17';
3586
3605
  var Internal = /** @class */ (function () {
3587
3606
  function Internal(config, unloadHookContainer) {
3588
3607
  var _this = this;
@@ -4152,4 +4171,4 @@ exports.TelemetryContext = TelemetryContext;
4152
4171
  exports.TelemetryTrace = TelemetryTrace;
4153
4172
 
4154
4173
  }));
4155
- //# sourceMappingURL=ai.props.3.3.3.gbl.js.map
4174
+ //# sourceMappingURL=ai.props.3.3.4-nightly3.2409-17.gbl.js.map