@microsoft/applicationinsights-properties-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.
Files changed (28) hide show
  1. package/browser/applicationinsights-properties-js.integrity.json +9 -9
  2. package/browser/applicationinsights-properties-js.js +29 -22
  3. package/browser/applicationinsights-properties-js.js.map +1 -1
  4. package/browser/applicationinsights-properties-js.min.js +2 -2
  5. package/browser/applicationinsights-properties-js.min.js.map +1 -1
  6. package/dist/applicationinsights-properties-js.api.json +1 -1
  7. package/dist/applicationinsights-properties-js.d.ts +1 -1
  8. package/dist/applicationinsights-properties-js.js +29 -22
  9. package/dist/applicationinsights-properties-js.js.map +1 -1
  10. package/dist/applicationinsights-properties-js.min.js +2 -2
  11. package/dist/applicationinsights-properties-js.min.js.map +1 -1
  12. package/dist/applicationinsights-properties-js.rollup.d.ts +1 -1
  13. package/dist-esm/Context/Application.js +1 -1
  14. package/dist-esm/Context/Device.js +1 -1
  15. package/dist-esm/Context/Internal.js +2 -2
  16. package/dist-esm/Context/Internal.js.map +1 -1
  17. package/dist-esm/Context/Location.js +1 -1
  18. package/dist-esm/Context/Session.js +1 -1
  19. package/dist-esm/Context/TelemetryTrace.js +1 -1
  20. package/dist-esm/Context/User.js +1 -1
  21. package/dist-esm/Interfaces/IPropTelemetryContext.js +1 -1
  22. package/dist-esm/Interfaces/ITelemetryConfig.js +1 -1
  23. package/dist-esm/PropertiesPlugin.js +1 -1
  24. package/dist-esm/TelemetryContext.js +1 -1
  25. package/dist-esm/__DynamicConstants.js +1 -1
  26. package/dist-esm/applicationinsights-properties-js.js +1 -1
  27. package/package.json +4 -4
  28. package/types/tsdoc-metadata.json +1 -1
@@ -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 properties plugin, 2.8.17-nightly.2312-06
2
+ * Microsoft Application Insights properties 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 - Properties Plugin, 2.8.17-nightly.2312-06
2
+ * Application Insights JavaScript SDK - Properties Plugin, 2.8.17-nightly.2402-05
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
  (function (global, factory) {
@@ -88,7 +88,7 @@
88
88
  }
89
89
 
90
90
  /*!
91
- * Microsoft Dynamic Proto Utility, 1.1.9
91
+ * Microsoft Dynamic Proto Utility, 1.1.11
92
92
  * Copyright (c) Microsoft and contributors. All rights reserved.
93
93
  */
94
94
  var _a$1;
@@ -181,13 +181,16 @@
181
181
  }
182
182
  }
183
183
  function _isDynamicCandidate(target, funcName, skipOwn) {
184
- return (funcName !== Constructor && typeof target[funcName] === strFunction && (skipOwn || _hasOwnProperty(target, funcName)));
184
+ return (funcName !== Constructor && typeof target[funcName] === strFunction && (skipOwn || _hasOwnProperty(target, funcName)) && funcName !== str__Proto$1 && funcName !== Prototype);
185
185
  }
186
186
  function _throwTypeError(message) {
187
187
  throw new TypeError("DynamicProto: " + message);
188
188
  }
189
+ function _newObject() {
190
+ 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) : {};
191
+ }
189
192
  function _getInstanceFuncs(thisTarget) {
190
- var instFuncs = {};
193
+ var instFuncs = _newObject();
191
194
  _forEachProp(thisTarget, function (name) {
192
195
  if (!instFuncs[name] && _isDynamicCandidate(thisTarget, name, false)) {
193
196
  instFuncs[name] = thisTarget[name];
@@ -216,7 +219,7 @@
216
219
  return theFunc.apply(target, arguments);
217
220
  };
218
221
  }
219
- var baseFuncs = {};
222
+ var baseFuncs = _newObject();
220
223
  _forEachProp(instFuncs, function (name) {
221
224
  baseFuncs[name] = _instFuncProxy(thisTarget, instFuncs, name);
222
225
  });
@@ -236,8 +239,8 @@
236
239
  function _getInstFunc(target, funcName, proto, currentDynProtoProxy) {
237
240
  var instFunc = null;
238
241
  if (target && _hasOwnProperty(proto, DynClassName)) {
239
- var instFuncTable = target[DynInstFuncTable] || {};
240
- instFunc = (instFuncTable[proto[DynClassName]] || {})[funcName];
242
+ var instFuncTable = target[DynInstFuncTable] || _newObject();
243
+ instFunc = (instFuncTable[proto[DynClassName]] || _newObject())[funcName];
241
244
  if (!instFunc) {
242
245
  _throwTypeError("Missing [" + funcName + "] " + strFunction);
243
246
  }
@@ -287,20 +290,24 @@
287
290
  return dynProtoProxy;
288
291
  }
289
292
  if (!_isObjectOrArrayPrototype(proto)) {
290
- var instFuncTable = target[DynInstFuncTable] = target[DynInstFuncTable] || {};
291
- var instFuncs_1 = instFuncTable[className] = (instFuncTable[className] || {});
292
- if (instFuncTable[DynAllowInstChkTag] !== false) {
293
- instFuncTable[DynAllowInstChkTag] = !!setInstanceFunc;
294
- }
295
- _forEachProp(target, function (name) {
296
- if (_isDynamicCandidate(target, name, false) && target[name] !== baseInstFuncs[name]) {
297
- instFuncs_1[name] = target[name];
298
- delete target[name];
299
- if (!_hasOwnProperty(proto, name) || (proto[name] && !proto[name][DynProxyTag])) {
300
- proto[name] = _createDynamicPrototype(proto, name);
301
- }
293
+ var instFuncTable = target[DynInstFuncTable] = target[DynInstFuncTable] || _newObject();
294
+ if (!_isObjectOrArrayPrototype(instFuncTable)) {
295
+ var instFuncs_1 = instFuncTable[className] = (instFuncTable[className] || _newObject());
296
+ if (instFuncTable[DynAllowInstChkTag] !== false) {
297
+ instFuncTable[DynAllowInstChkTag] = !!setInstanceFunc;
298
+ }
299
+ if (!_isObjectOrArrayPrototype(instFuncs_1)) {
300
+ _forEachProp(target, function (name) {
301
+ if (_isDynamicCandidate(target, name, false) && target[name] !== baseInstFuncs[name]) {
302
+ instFuncs_1[name] = target[name];
303
+ delete target[name];
304
+ if (!_hasOwnProperty(proto, name) || (proto[name] && !proto[name][DynProxyTag])) {
305
+ proto[name] = _createDynamicPrototype(proto, name);
306
+ }
307
+ }
308
+ });
302
309
  }
303
- });
310
+ }
304
311
  }
305
312
  }
306
313
  function _checkPrototype(classProto, thisTarget) {
@@ -1243,7 +1250,7 @@
1243
1250
  }
1244
1251
 
1245
1252
  var _objDefineProperty = ObjDefineProperty;
1246
- var version = "2.8.17-nightly.2312-06";
1253
+ var version = "2.8.17-nightly.2402-05";
1247
1254
  var instanceName = "." + newId(6);
1248
1255
  var _dataUid = 0;
1249
1256
  function _createAccessor(target, prop, value) {
@@ -2603,7 +2610,7 @@
2603
2610
  var _DYN_COOKIE_SEPARATOR = "cookieSeparator";
2604
2611
  var _DYN_AUTH_USER_COOKIE_NAM8 = "authUserCookieName";
2605
2612
 
2606
- var Version = "2.8.17-nightly.2312-06";
2613
+ var Version = "2.8.17-nightly.2402-05";
2607
2614
  var Internal = /** @class */ (function () {
2608
2615
  function Internal(config) {
2609
2616
  this.sdkVersion = (config[_DYN_SDK_EXTENSION ] && config[_DYN_SDK_EXTENSION ]() ? config[_DYN_SDK_EXTENSION ]() + "_" : "") + "javascript:" + Version;