@microsoft/applicationinsights-analytics-js 2.8.1 → 2.8.2

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,7 +1,7 @@
1
1
  {
2
2
  "metadata": {
3
3
  "toolPackage": "@microsoft/api-extractor",
4
- "toolVersion": "7.22.2",
4
+ "toolVersion": "7.23.0",
5
5
  "schemaVersion": 1005,
6
6
  "oldestForwardsCompatibleVersion": 1001,
7
7
  "tsdocConfig": {
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Microsoft Application Insights JavaScript SDK - Web Analytics, 2.8.1
2
+ * Microsoft Application Insights JavaScript SDK - Web Analytics, 2.8.2
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  *
5
5
  * Microsoft Application Insights Team
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Application Insights JavaScript SDK - Web Analytics, 2.8.1
2
+ * Application Insights JavaScript SDK - Web Analytics, 2.8.2
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
  (function (global, factory) {
@@ -482,7 +482,7 @@
482
482
  }
483
483
 
484
484
  /*!
485
- * Microsoft Dynamic Proto Utility, 1.1.4
485
+ * Microsoft Dynamic Proto Utility, 1.1.5
486
486
  * Copyright (c) Microsoft and contributors. All rights reserved.
487
487
  */
488
488
  var Constructor = 'constructor';
@@ -495,6 +495,7 @@
495
495
  var DynInstChkTag = '_dynInstChk';
496
496
  var DynAllowInstChkTag = DynInstChkTag;
497
497
  var DynProtoDefaultOptions = '_dfOpts';
498
+ var DynProtoPolyProto = "_dynProto";
498
499
  var UnknownValue = '_unknown_';
499
500
  var str__Proto = "__proto__";
500
501
  var strUseBaseInst = 'useBaseInst';
@@ -516,8 +517,11 @@
516
517
  if (_objGetPrototypeOf) {
517
518
  return _objGetPrototypeOf(target);
518
519
  }
519
- var newProto = target[str__Proto] || target[Prototype] || (target[Constructor] ? target[Constructor][Prototype] : null);
520
+ var newProto = target[DynProtoPolyProto] || target[str__Proto] || target[Prototype] || (target[Constructor] ? target[Constructor][Prototype] : null);
520
521
  if (newProto) {
522
+ if (!target[DynProtoPolyProto]) {
523
+ target[DynProtoPolyProto] = newProto;
524
+ }
521
525
  return newProto;
522
526
  }
523
527
  }
@@ -676,8 +680,9 @@
676
680
  visited.push(thisProto);
677
681
  thisProto = _getObjProto(thisProto);
678
682
  }
683
+ return false;
679
684
  }
680
- return false;
685
+ return true;
681
686
  }
682
687
  function _getObjName(target, unknownValue) {
683
688
  if (_hasOwnProperty(target, Prototype)) {
@@ -919,7 +924,7 @@
919
924
  if (isUserAct === void 0) { isUserAct = false; }
920
925
  var message = new _InternalLogMessage(msgId, msg, isUserAct, properties);
921
926
  if (_self.enableDebugExceptions()) {
922
- throw message;
927
+ throw dumpObj(message);
923
928
  }
924
929
  else {
925
930
  var logFunc = severity === 1 ? strErrorToConsole : strWarnToConsole;
@@ -1199,7 +1204,7 @@
1199
1204
  }
1200
1205
 
1201
1206
  var _objDefineProperty = ObjDefineProperty;
1202
- var version = "2.8.1";
1207
+ var version = "2.8.2";
1203
1208
  var instanceName = "." + newId(6);
1204
1209
  var _dataUid = 0;
1205
1210
  function _createAccessor(target, prop, value) {
@@ -2360,9 +2365,8 @@
2360
2365
  return theHook;
2361
2366
  }
2362
2367
  function InstrumentEvent(target, evtName, callbacks, checkPrototype) {
2363
- if (checkPrototype === void 0) { checkPrototype = true; }
2364
2368
  if (target && evtName && callbacks) {
2365
- var owner = _getOwner(target, evtName, checkPrototype);
2369
+ var owner = _getOwner(target, evtName, checkPrototype) || target;
2366
2370
  if (owner) {
2367
2371
  return _createInstrumentHook(owner, evtName, owner[evtName], callbacks);
2368
2372
  }
@@ -4139,7 +4143,7 @@
4139
4143
  _self._onerror(Exception.CreateAutoException(message, url, lineNumber, columnNumber, error, callDetails.evt));
4140
4144
  }
4141
4145
  }
4142
- }));
4146
+ }, false));
4143
4147
  _autoExceptionInstrumented = true;
4144
4148
  }
4145
4149
  _addUnhandledPromiseRejectionTracking(extConfig, _window, locn);
@@ -4196,7 +4200,7 @@
4196
4200
  _dispatchEvent(win, createDomEvent(extConfig.namePrefix + "locationchange"));
4197
4201
  }
4198
4202
  }
4199
- }));
4203
+ }, true));
4200
4204
  _addHook(InstrumentEvent(history, "replaceState", {
4201
4205
  ns: _evtNamespace,
4202
4206
  rsp: function () {
@@ -4205,7 +4209,7 @@
4205
4209
  _dispatchEvent(win, createDomEvent(extConfig.namePrefix + "locationchange"));
4206
4210
  }
4207
4211
  }
4208
- }));
4212
+ }, true));
4209
4213
  eventOn(win, extConfig.namePrefix + "popstate", _popstateHandler, _evtNamespace);
4210
4214
  eventOn(win, extConfig.namePrefix + "locationchange", _locationChangeHandler, _evtNamespace);
4211
4215
  _historyListenerAdded = true;
@@ -4221,7 +4225,7 @@
4221
4225
  _self._onerror(Exception.CreateAutoException(_getReason(error), _location ? _location.href : "", 0, 0, error, callDetails.evt));
4222
4226
  }
4223
4227
  }
4224
- }));
4228
+ }, false));
4225
4229
  _autoUnhandledPromiseInstrumented = true;
4226
4230
  extConfig.autoUnhandledPromiseInstrumented = _autoUnhandledPromiseInstrumented;
4227
4231
  }
@@ -4256,7 +4260,7 @@
4256
4260
  });
4257
4261
  return _this;
4258
4262
  }
4259
- AnalyticsPlugin.Version = "2.8.1";
4263
+ AnalyticsPlugin.Version = "2.8.2";
4260
4264
  AnalyticsPlugin.getDefaultConfig = _getDefaultConfig;
4261
4265
  return AnalyticsPlugin;
4262
4266
  }(BaseTelemetryPlugin));