@microsoft/applicationinsights-properties-js 2.8.2 → 2.8.3-nightly.2205-03

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.8.2
2
+ * Microsoft Application Insights properties plugin, 2.8.3-nightly.2205-03
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.8.2
2
+ * Application Insights JavaScript SDK - Properties Plugin, 2.8.3-nightly.2205-03
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
  (function (global, factory) {
@@ -86,7 +86,7 @@
86
86
  }
87
87
 
88
88
  /*!
89
- * Microsoft Dynamic Proto Utility, 1.1.5
89
+ * Microsoft Dynamic Proto Utility, 1.1.6
90
90
  * Copyright (c) Microsoft and contributors. All rights reserved.
91
91
  */
92
92
  var Constructor = 'constructor';
@@ -99,13 +99,15 @@
99
99
  var DynInstChkTag = '_dynInstChk';
100
100
  var DynAllowInstChkTag = DynInstChkTag;
101
101
  var DynProtoDefaultOptions = '_dfOpts';
102
- var DynProtoPolyProto = "_dynProto";
103
102
  var UnknownValue = '_unknown_';
104
103
  var str__Proto$1 = "__proto__";
104
+ var DynProtoBaseProto = "_dyn" + str__Proto$1;
105
+ var DynProtoCurrent = "_dynInstProto";
105
106
  var strUseBaseInst = 'useBaseInst';
106
107
  var strSetInstFuncs = 'setInstFuncs';
107
108
  var Obj = Object;
108
109
  var _objGetPrototypeOf$1 = Obj["getPrototypeOf"];
110
+ var _objGetOwnProps = Obj["getOwnPropertyNames"];
109
111
  var _dynamicNames = 0;
110
112
  function _hasOwnProperty(obj, prop) {
111
113
  return obj && Obj[Prototype].hasOwnProperty.call(obj, prop);
@@ -117,25 +119,25 @@
117
119
  return _isObjectOrArrayPrototype(target) || target === Function[Prototype];
118
120
  }
119
121
  function _getObjProto$1(target) {
122
+ var newProto;
120
123
  if (target) {
121
124
  if (_objGetPrototypeOf$1) {
122
125
  return _objGetPrototypeOf$1(target);
123
126
  }
124
- var newProto = target[DynProtoPolyProto] || target[str__Proto$1] || target[Prototype] || (target[Constructor] ? target[Constructor][Prototype] : null);
125
- if (newProto) {
126
- if (!target[DynProtoPolyProto]) {
127
- target[DynProtoPolyProto] = newProto;
128
- }
129
- return newProto;
127
+ var curProto = target[str__Proto$1] || target[Prototype] || (target[Constructor] ? target[Constructor][Prototype] : null);
128
+ newProto = target[DynProtoBaseProto] || curProto;
129
+ if (!_hasOwnProperty(target, DynProtoBaseProto)) {
130
+ delete target[DynProtoCurrent];
131
+ newProto = target[DynProtoBaseProto] = target[DynProtoCurrent] || target[DynProtoBaseProto];
132
+ target[DynProtoCurrent] = curProto;
130
133
  }
131
134
  }
132
- return null;
135
+ return newProto;
133
136
  }
134
137
  function _forEachProp(target, func) {
135
138
  var props = [];
136
- var getOwnProps = Obj["getOwnPropertyNames"];
137
- if (getOwnProps) {
138
- props = getOwnProps(target);
139
+ if (_objGetOwnProps) {
140
+ props = _objGetOwnProps(target);
139
141
  }
140
142
  else {
141
143
  for (var name_1 in target) {
@@ -1170,7 +1172,7 @@
1170
1172
  }
1171
1173
 
1172
1174
  var _objDefineProperty = ObjDefineProperty;
1173
- var version = "2.8.2";
1175
+ var version = "2.8.3-nightly.2205-03";
1174
1176
  var instanceName = "." + newId(6);
1175
1177
  var _dataUid = 0;
1176
1178
  function _createAccessor(target, prop, value) {
@@ -2509,7 +2511,7 @@
2509
2511
  return Device;
2510
2512
  }());
2511
2513
 
2512
- var Version = "2.8.2";
2514
+ var Version = "2.8.3-nightly.2205-03";
2513
2515
  var Internal = /** @class */ (function () {
2514
2516
  function Internal(config) {
2515
2517
  this.sdkVersion = (config.sdkExtension && config.sdkExtension() ? config.sdkExtension() + "_" : "") + "javascript:" + Version;