@microsoft/applicationinsights-dependencies-js 2.8.17-nightly.2312-06 → 2.8.17-nightly.2402-05

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.37.0",
4
+ "toolVersion": "7.39.5",
5
5
  "schemaVersion": 1011,
6
6
  "oldestForwardsCompatibleVersion": 1001,
7
7
  "tsdocConfig": {
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Microsoft Application Insights XHR dependencies plugin, 2.8.17-nightly.2312-06
2
+ * Microsoft Application Insights XHR dependencies plugin, 2.8.17-nightly.2402-05
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 - Dependencies Plugin, 2.8.17-nightly.2312-06
2
+ * Application Insights JavaScript SDK - Dependencies Plugin, 2.8.17-nightly.2402-05
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
  (function (global, factory) {
@@ -101,7 +101,7 @@
101
101
  }
102
102
 
103
103
  /*!
104
- * Microsoft Dynamic Proto Utility, 1.1.9
104
+ * Microsoft Dynamic Proto Utility, 1.1.11
105
105
  * Copyright (c) Microsoft and contributors. All rights reserved.
106
106
  */
107
107
  var _a$1;
@@ -194,13 +194,16 @@
194
194
  }
195
195
  }
196
196
  function _isDynamicCandidate(target, funcName, skipOwn) {
197
- return (funcName !== Constructor && typeof target[funcName] === strFunction && (skipOwn || _hasOwnProperty(target, funcName)));
197
+ return (funcName !== Constructor && typeof target[funcName] === strFunction && (skipOwn || _hasOwnProperty(target, funcName)) && funcName !== str__Proto$1 && funcName !== Prototype);
198
198
  }
199
199
  function _throwTypeError(message) {
200
200
  throw new TypeError("DynamicProto: " + message);
201
201
  }
202
+ function _newObject() {
203
+ return Object.create ? (function(obj) { var func = Object["create"]; if (func) { return func(obj); } if (obj == null) { return {}; } var type = typeof obj; if (type !== 'object' && type !== 'function') { throw new TypeError('Object prototype may only be an Object:' + obj); } function tmpFunc() {} tmpFunc.prototype = obj; return new tmpFunc(); })(null) : {};
204
+ }
202
205
  function _getInstanceFuncs(thisTarget) {
203
- var instFuncs = {};
206
+ var instFuncs = _newObject();
204
207
  _forEachProp(thisTarget, function (name) {
205
208
  if (!instFuncs[name] && _isDynamicCandidate(thisTarget, name, false)) {
206
209
  instFuncs[name] = thisTarget[name];
@@ -229,7 +232,7 @@
229
232
  return theFunc.apply(target, arguments);
230
233
  };
231
234
  }
232
- var baseFuncs = {};
235
+ var baseFuncs = _newObject();
233
236
  _forEachProp(instFuncs, function (name) {
234
237
  baseFuncs[name] = _instFuncProxy(thisTarget, instFuncs, name);
235
238
  });
@@ -249,8 +252,8 @@
249
252
  function _getInstFunc(target, funcName, proto, currentDynProtoProxy) {
250
253
  var instFunc = null;
251
254
  if (target && _hasOwnProperty(proto, DynClassName)) {
252
- var instFuncTable = target[DynInstFuncTable] || {};
253
- instFunc = (instFuncTable[proto[DynClassName]] || {})[funcName];
255
+ var instFuncTable = target[DynInstFuncTable] || _newObject();
256
+ instFunc = (instFuncTable[proto[DynClassName]] || _newObject())[funcName];
254
257
  if (!instFunc) {
255
258
  _throwTypeError("Missing [" + funcName + "] " + strFunction);
256
259
  }
@@ -300,20 +303,24 @@
300
303
  return dynProtoProxy;
301
304
  }
302
305
  if (!_isObjectOrArrayPrototype(proto)) {
303
- var instFuncTable = target[DynInstFuncTable] = target[DynInstFuncTable] || {};
304
- var instFuncs_1 = instFuncTable[className] = (instFuncTable[className] || {});
305
- if (instFuncTable[DynAllowInstChkTag] !== false) {
306
- instFuncTable[DynAllowInstChkTag] = !!setInstanceFunc;
307
- }
308
- _forEachProp(target, function (name) {
309
- if (_isDynamicCandidate(target, name, false) && target[name] !== baseInstFuncs[name]) {
310
- instFuncs_1[name] = target[name];
311
- delete target[name];
312
- if (!_hasOwnProperty(proto, name) || (proto[name] && !proto[name][DynProxyTag])) {
313
- proto[name] = _createDynamicPrototype(proto, name);
314
- }
306
+ var instFuncTable = target[DynInstFuncTable] = target[DynInstFuncTable] || _newObject();
307
+ if (!_isObjectOrArrayPrototype(instFuncTable)) {
308
+ var instFuncs_1 = instFuncTable[className] = (instFuncTable[className] || _newObject());
309
+ if (instFuncTable[DynAllowInstChkTag] !== false) {
310
+ instFuncTable[DynAllowInstChkTag] = !!setInstanceFunc;
315
311
  }
316
- });
312
+ if (!_isObjectOrArrayPrototype(instFuncs_1)) {
313
+ _forEachProp(target, function (name) {
314
+ if (_isDynamicCandidate(target, name, false) && target[name] !== baseInstFuncs[name]) {
315
+ instFuncs_1[name] = target[name];
316
+ delete target[name];
317
+ if (!_hasOwnProperty(proto, name) || (proto[name] && !proto[name][DynProxyTag])) {
318
+ proto[name] = _createDynamicPrototype(proto, name);
319
+ }
320
+ }
321
+ });
322
+ }
323
+ }
317
324
  }
318
325
  }
319
326
  function _checkPrototype(classProto, thisTarget) {
@@ -1280,7 +1287,7 @@
1280
1287
  }
1281
1288
 
1282
1289
  var _objDefineProperty = ObjDefineProperty;
1283
- var version = "2.8.17-nightly.2312-06";
1290
+ var version = "2.8.17-nightly.2402-05";
1284
1291
  var instanceName = "." + newId(6);
1285
1292
  var _dataUid = 0;
1286
1293
  function _createAccessor(target, prop, value) {