@microsoft/applicationinsights-properties-js 2.7.5 → 2.7.6

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,5 +1,5 @@
1
1
  /*
2
- * Microsoft Application Insights properties plugin, 2.7.5
2
+ * Microsoft Application Insights properties plugin, 2.7.6
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 - Properties Plugin, 2.7.5
2
+ * Application Insights JavaScript SDK - Properties Plugin, 2.7.6
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
  (function (global, factory) {
@@ -82,7 +82,7 @@
82
82
  }
83
83
 
84
84
  /*!
85
- * Microsoft Dynamic Proto Utility, 1.1.5
85
+ * Microsoft Dynamic Proto Utility, 1.1.6
86
86
  * Copyright (c) Microsoft and contributors. All rights reserved.
87
87
  */
88
88
  var Constructor = 'constructor';
@@ -95,13 +95,15 @@
95
95
  var DynInstChkTag = '_dynInstChk';
96
96
  var DynAllowInstChkTag = DynInstChkTag;
97
97
  var DynProtoDefaultOptions = '_dfOpts';
98
- var DynProtoPolyProto = "_dynProto";
99
98
  var UnknownValue = '_unknown_';
100
99
  var str__Proto = "__proto__";
100
+ var DynProtoBaseProto = "_dyn" + str__Proto;
101
+ var DynProtoCurrent = "_dynInstProto";
101
102
  var strUseBaseInst = 'useBaseInst';
102
103
  var strSetInstFuncs = 'setInstFuncs';
103
104
  var Obj = Object;
104
105
  var _objGetPrototypeOf = Obj["getPrototypeOf"];
106
+ var _objGetOwnProps = Obj["getOwnPropertyNames"];
105
107
  var _dynamicNames = 0;
106
108
  function _hasOwnProperty(obj, prop) {
107
109
  return obj && Obj[Prototype].hasOwnProperty.call(obj, prop);
@@ -113,25 +115,25 @@
113
115
  return _isObjectOrArrayPrototype(target) || target === Function[Prototype];
114
116
  }
115
117
  function _getObjProto(target) {
118
+ var newProto;
116
119
  if (target) {
117
120
  if (_objGetPrototypeOf) {
118
121
  return _objGetPrototypeOf(target);
119
122
  }
120
- var newProto = target[DynProtoPolyProto] || target[str__Proto] || target[Prototype] || (target[Constructor] ? target[Constructor][Prototype] : null);
121
- if (newProto) {
122
- if (!target[DynProtoPolyProto]) {
123
- target[DynProtoPolyProto] = newProto;
124
- }
125
- return newProto;
123
+ var curProto = target[str__Proto] || target[Prototype] || (target[Constructor] ? target[Constructor][Prototype] : null);
124
+ newProto = target[DynProtoBaseProto] || curProto;
125
+ if (!_hasOwnProperty(target, DynProtoBaseProto)) {
126
+ delete target[DynProtoCurrent];
127
+ newProto = target[DynProtoBaseProto] = target[DynProtoCurrent] || target[DynProtoBaseProto];
128
+ target[DynProtoCurrent] = curProto;
126
129
  }
127
130
  }
128
- return null;
131
+ return newProto;
129
132
  }
130
133
  function _forEachProp(target, func) {
131
134
  var props = [];
132
- var getOwnProps = Obj["getOwnPropertyNames"];
133
- if (getOwnProps) {
134
- props = getOwnProps(target);
135
+ if (_objGetOwnProps) {
136
+ props = _objGetOwnProps(target);
135
137
  }
136
138
  else {
137
139
  for (var name_1 in target) {
@@ -2105,7 +2107,7 @@
2105
2107
  return Device;
2106
2108
  }());
2107
2109
 
2108
- var Version = "2.7.5";
2110
+ var Version = "2.7.6";
2109
2111
  var Internal = /** @class */ (function () {
2110
2112
  function Internal(config) {
2111
2113
  this.sdkVersion = (config.sdkExtension && config.sdkExtension() ? config.sdkExtension() + "_" : "") + "javascript:" + Version;