@microsoft/applicationinsights-analytics-js 3.4.2-nightly3.2605-01 → 3.4.2-nightly3.2605-07

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 (29) hide show
  1. package/browser/es5/applicationinsights-analytics-js.cjs.js +33 -19
  2. package/browser/es5/applicationinsights-analytics-js.cjs.js.map +1 -1
  3. package/browser/es5/applicationinsights-analytics-js.cjs.min.js +2 -2
  4. package/browser/es5/applicationinsights-analytics-js.cjs.min.js.map +1 -1
  5. package/browser/es5/applicationinsights-analytics-js.gbl.js +35 -21
  6. package/browser/es5/applicationinsights-analytics-js.gbl.js.map +1 -1
  7. package/browser/es5/applicationinsights-analytics-js.gbl.min.js +2 -2
  8. package/browser/es5/applicationinsights-analytics-js.gbl.min.js.map +1 -1
  9. package/browser/es5/applicationinsights-analytics-js.integrity.json +25 -25
  10. package/browser/es5/applicationinsights-analytics-js.js +35 -21
  11. package/browser/es5/applicationinsights-analytics-js.js.map +1 -1
  12. package/browser/es5/applicationinsights-analytics-js.min.js +2 -2
  13. package/browser/es5/applicationinsights-analytics-js.min.js.map +1 -1
  14. package/dist/es5/applicationinsights-analytics-js.js +33 -19
  15. package/dist/es5/applicationinsights-analytics-js.js.map +1 -1
  16. package/dist/es5/applicationinsights-analytics-js.min.js +2 -2
  17. package/dist/es5/applicationinsights-analytics-js.min.js.map +1 -1
  18. package/dist-es5/JavaScriptSDK/AnalyticsPlugin.js +2 -2
  19. package/dist-es5/JavaScriptSDK/AnalyticsPlugin.js.map +1 -1
  20. package/dist-es5/JavaScriptSDK/Interfaces/IAnalyticsConfig.js +1 -1
  21. package/dist-es5/JavaScriptSDK/Telemetry/PageViewManager.js +1 -1
  22. package/dist-es5/JavaScriptSDK/Telemetry/PageViewPerformanceManager.js +1 -1
  23. package/dist-es5/JavaScriptSDK/Telemetry/PageVisitTimeManager.js +1 -1
  24. package/dist-es5/JavaScriptSDK/Timing.js +1 -1
  25. package/dist-es5/__DynamicConstants.js +1 -1
  26. package/dist-es5/applicationinsights-analytics-js.js +1 -1
  27. package/package.json +6 -6
  28. package/types/applicationinsights-analytics-js.d.ts +1 -1
  29. package/types/applicationinsights-analytics-js.namespaced.d.ts +3 -1
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Application Insights JavaScript SDK - Web Analytics, 3.4.2-nightly3.2605-01
2
+ * Application Insights JavaScript SDK - Web Analytics, 3.4.2-nightly3.2605-07
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
  'use strict';
@@ -12,14 +12,14 @@ 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.13.0 */
15
+ /*! https://github.com/nevware21/ts-utils v0.14.0 */
16
16
  /*#__NO_SIDE_EFFECTS__*/
17
17
  function _pureAssign(func1, func2) {
18
18
  return func1 || func2;
19
19
  }
20
20
  /*#__NO_SIDE_EFFECTS__*/
21
21
  function _pureRef(value, name) {
22
- return value[name];
22
+ return value !== null && value !== undefined ? value[name] : undefined;
23
23
  }
24
24
  var UNDEF_VALUE = undefined;
25
25
  var NULL_VALUE = null;
@@ -173,7 +173,7 @@ function objForEachKey(theObject, callbackfn, thisArg) {
173
173
  if (theObject && (isObject(theObject) || isFunction(theObject))) {
174
174
  for (var prop in theObject) {
175
175
  if (objHasOwn(theObject, prop)) {
176
- if (callbackfn[CALL](thisArg || theObject, prop, theObject[prop]) === -1) {
176
+ if (callbackfn[CALL](isStrictNullOrUndefined(thisArg) ? theObject : thisArg, prop, theObject[prop]) === -1) {
177
177
  break;
178
178
  }
179
179
  }
@@ -185,14 +185,14 @@ function arrForEach(theArray, callbackfn, thisArg) {
185
185
  var len = theArray[LENGTH] >>> 0;
186
186
  for (var idx = 0; idx < len; idx++) {
187
187
  if (idx in theArray) {
188
- if (callbackfn[CALL](thisArg || theArray, theArray[idx], idx, theArray) === -1) {
188
+ if (callbackfn[CALL](isStrictNullOrUndefined(thisArg) ? theArray : thisArg, theArray[idx], idx, theArray) === -1) {
189
189
  break;
190
190
  }
191
191
  }
192
192
  }
193
193
  }
194
194
  }
195
- var _unwrapFunction = ( _unwrapFunctionWithPoly);
195
+ var _unwrapFunction = _unwrapFunctionWithPoly;
196
196
  /*#__NO_SIDE_EFFECTS__*/
197
197
  function _unwrapFunctionWithPoly(funcName, clsProto, polyFunc) {
198
198
  var clsFn = clsProto ? clsProto[funcName] : NULL_VALUE;
@@ -205,24 +205,36 @@ function _unwrapFunctionWithPoly(funcName, clsProto, polyFunc) {
205
205
  throwTypeError("\"" + asString(funcName) + "\" not defined for " + dumpObj(thisArg));
206
206
  };
207
207
  }
208
+ /*#__NO_SIDE_EFFECTS__*/
209
+ function _unwrapFunctionNoInstWithPoly(funcName, clsProto, polyFunc) {
210
+ var clsFn = clsProto ? clsProto[funcName] : NULL_VALUE;
211
+ return function (thisArg) {
212
+ var theFunc = clsFn;
213
+ if (theFunc || polyFunc) {
214
+ var theArgs = arguments;
215
+ return (theFunc || polyFunc).apply(thisArg, theFunc ? ArrSlice[CALL](theArgs, 1) : theArgs);
216
+ }
217
+ throwTypeError("\"" + asString(funcName) + "\" not defined for " + dumpObj(thisArg));
218
+ };
219
+ }
208
220
  function _objPropertyIsEnum(obj, propKey) {
209
221
  var desc;
210
222
  var fn = ObjClass.getOwnPropertyDescriptor;
211
223
  if (!isStrictNullOrUndefined(obj) && fn) {
212
224
  desc = safe(fn, [obj, propKey]).v || NULL_VALUE;
213
225
  }
214
- if (!desc) {
226
+ if (!desc && !isStrictNullOrUndefined(obj)) {
215
227
  desc = safe(function () {
216
228
  for (var key in obj) {
217
- if (key === propKey) {
218
- return { enumerable: true };
229
+ if (key == propKey) {
230
+ return { enumerable: objHasOwnProperty(obj, key) };
219
231
  }
220
232
  }
221
233
  }).v;
222
234
  }
223
235
  return (desc && desc.enumerable) || false;
224
236
  }
225
- var objPropertyIsEnumerable = ( /*#__PURE__*/_unwrapFunctionWithPoly("propertyIsEnumerable", NULL_VALUE, _objPropertyIsEnum));
237
+ var _objPropertyIsEnumerable = ( /*#__PURE__*/_unwrapFunctionNoInstWithPoly("propertyIsEnumerable", ObjProto, _objPropertyIsEnum));
226
238
  var _objGetOwnPropertyDescriptor$1 = ( /*#__PURE__*/_pureAssign(( /*#__PURE__*/_pureRef(ObjClass, GET_OWN_PROPERTY_DESCRIPTOR)), _returnNothing));
227
239
  var _objGetOwnPropertySymbols = ( /*#__PURE__*/_pureAssign(( /*#__PURE__*/_pureRef(ObjClass, GET_OWN_PROPERTY_SYMBOLS)), _returnEmptyArray));
228
240
  var propMap = {
@@ -263,7 +275,7 @@ function objDefineProps(target, propDescMap) {
263
275
  props[key] = _createProp(value);
264
276
  });
265
277
  arrForEach(_objGetOwnPropertySymbols(propDescMap), function (sym) {
266
- if (objPropertyIsEnumerable(propDescMap, sym)) {
278
+ if (_objPropertyIsEnumerable(propDescMap, sym)) {
267
279
  props[sym] = _createProp(propDescMap[sym]);
268
280
  }
269
281
  });
@@ -658,7 +670,7 @@ function iterForOf(iter, callbackfn, thisArg) {
658
670
  try {
659
671
  var count = 0;
660
672
  while (!(iterResult = iter.next()).done) {
661
- if (callbackfn[CALL](thisArg || iter, iterResult.value, count, iter) === -1) {
673
+ if (callbackfn[CALL](isStrictNullOrUndefined(thisArg) ? iter : thisArg, iterResult.value, count, iter) === -1) {
662
674
  break;
663
675
  }
664
676
  count++;
@@ -704,6 +716,7 @@ function arrAppend(target, elms) {
704
716
  }
705
717
  var arrIndexOf = ( /*#__PURE__*/_unwrapFunction("indexOf", ArrProto));
706
718
  var arrMap = ( /*#__PURE__*/_unwrapFunction("map", ArrProto));
719
+ var mathFloor = ( /*#__PURE__*/_pureRef(MathCls, "floor"));
707
720
  var _isProtoArray;
708
721
  var objSetPrototypeOf = ( /*#__PURE__*/_pureAssign(( /*#__PURE__*/_pureRef(ObjClass, "setPrototypeOf")), _polyObjSetPrototypeOf));
709
722
  function _polyObjSetPrototypeOf(obj, proto) {
@@ -752,19 +765,20 @@ function createCustomError(name, constructCb, errorBase, superArgsFn) {
752
765
  }
753
766
  }, theBaseClass);
754
767
  }
768
+ var strReplace = ( /*#__PURE__*/_unwrapFunction("replace", StrProto));
755
769
  /*#__NO_SIDE_EFFECTS__*/
756
770
  function _createTrimFn(exp) {
757
771
  return function _doTrim(value) {
758
772
  _throwIfNullOrUndefined(value);
759
- if (value && value.replace) {
760
- value = value.replace(exp, EMPTY);
773
+ value = asString(value);
774
+ if (value) {
775
+ value = strReplace(value, exp, EMPTY);
761
776
  }
762
777
  return value;
763
778
  };
764
779
  }
765
780
  var polyStrTrim = ( /*#__PURE__*/_createTrimFn(/^\s+|(?=\s)\s+$/g));
766
781
  var strTrim = ( /*#__PURE__*/_unwrapFunctionWithPoly("trim", StrProto, polyStrTrim));
767
- var mathFloor = ( /*#__PURE__*/_pureRef(MathCls, "floor"));
768
782
  /*#__NO_SIDE_EFFECTS__*/
769
783
  function safeGetDeferred(cb, defValue, argArray) {
770
784
  return getDeferred(function () {
@@ -772,6 +786,7 @@ function safeGetDeferred(cb, defValue, argArray) {
772
786
  return result.e ? defValue : result.v;
773
787
  });
774
788
  }
789
+ var objGetOwnPropertyDescriptor = ( /*#__PURE__*/_pureAssign(( /*#__PURE__*/_pureRef(ObjClass, GET_OWN_PROPERTY_DESCRIPTOR)), _returnNothing));
775
790
  var _fnToString;
776
791
  var _objCtrFnString;
777
792
  var _gblWindow;
@@ -815,7 +830,7 @@ function getPerformance() {
815
830
  return _perf.v;
816
831
  }
817
832
  var mathRound = ( /*#__PURE__*/_pureRef(MathCls, "round"));
818
- var objGetOwnPropertyDescriptor = ( /*#__PURE__*/_pureAssign(( /*#__PURE__*/_pureRef(ObjClass, GET_OWN_PROPERTY_DESCRIPTOR)), _returnNothing));
833
+ var strIndexOf = ( /*#__PURE__*/_unwrapFunction("indexOf", StrProto));
819
834
  var strEndsWith = ( /*#__PURE__*/_unwrapFunctionWithPoly("endsWith", StrProto, polyStrEndsWith));
820
835
  /*#__NO_SIDE_EFFECTS__*/
821
836
  function polyStrEndsWith(value, searchString, length) {
@@ -824,7 +839,6 @@ function polyStrEndsWith(value, searchString, length) {
824
839
  var end = (!isUndefined(length) && length < value[LENGTH]) ? length : value[LENGTH];
825
840
  return strSubstring(value, end - searchValue[LENGTH], end) === searchValue;
826
841
  }
827
- var strIndexOf = ( /*#__PURE__*/_unwrapFunction("indexOf", StrProto));
828
842
  var REF = "ref";
829
843
  var UNREF = "unref";
830
844
  var HAS_REF = "hasRef";
@@ -1786,7 +1800,7 @@ function newId(maxLength) {
1786
1800
  return result;
1787
1801
  }
1788
1802
 
1789
- var version = '3.4.2-nightly3.2605-01';
1803
+ var version = "3.4.2-nightly3.2605-07";
1790
1804
  var instanceName = "." + newId(6);
1791
1805
  var _dataUid = 0;
1792
1806
  function _canAcceptData(target) {
@@ -6448,7 +6462,7 @@ var AnalyticsPlugin = /** @class */ (function (_super) {
6448
6462
  });
6449
6463
  return _this;
6450
6464
  }
6451
- AnalyticsPlugin.Version = '3.4.2-nightly3.2605-01';
6465
+ AnalyticsPlugin.Version = '3.4.2-nightly3.2605-07';
6452
6466
  return AnalyticsPlugin;
6453
6467
  }(BaseTelemetryPlugin));
6454
6468