@microsoft/applicationinsights-channel-js 2.8.9-nightly.2210-02 → 2.8.9-nightly.2210-04

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.32.0",
4
+ "toolVersion": "7.32.1",
5
5
  "schemaVersion": 1009,
6
6
  "oldestForwardsCompatibleVersion": 1001,
7
7
  "tsdocConfig": {
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Microsoft Application Insights JavaScript SDK Channel, 2.8.9-nightly.2210-02
2
+ * Microsoft Application Insights JavaScript SDK Channel, 2.8.9-nightly.2210-04
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 - Channel, 2.8.9-nightly.2210-02
2
+ * Application Insights JavaScript SDK - Channel, 2.8.9-nightly.2210-04
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
  (function (global, factory) {
@@ -23,21 +23,23 @@
23
23
  var _cachedGlobal = null;
24
24
  function getGlobal(useCached) {
25
25
  if (useCached === void 0) { useCached = true; }
26
- if (!_cachedGlobal || !useCached) {
27
- if (typeof globalThis !== strShimUndefined && globalThis) {
28
- _cachedGlobal = globalThis;
26
+ var result = useCached === false ? null : _cachedGlobal;
27
+ if (!result) {
28
+ if (typeof globalThis !== strShimUndefined) {
29
+ result = globalThis;
29
30
  }
30
- if (typeof self !== strShimUndefined && self) {
31
- _cachedGlobal = self;
31
+ if (!result && typeof self !== strShimUndefined) {
32
+ result = self;
32
33
  }
33
- if (typeof window !== strShimUndefined && window) {
34
- _cachedGlobal = window;
34
+ if (!result && typeof window !== strShimUndefined) {
35
+ result = window;
35
36
  }
36
- if (typeof global !== strShimUndefined && global) {
37
- _cachedGlobal = global;
37
+ if (!result && typeof global !== strShimUndefined) {
38
+ result = global;
38
39
  }
40
+ _cachedGlobal = result;
39
41
  }
40
- return _cachedGlobal;
42
+ return result;
41
43
  }
42
44
  function throwTypeError(message) {
43
45
  throw new TypeError(message);
@@ -99,9 +101,11 @@
99
101
  }
100
102
 
101
103
  /*!
102
- * Microsoft Dynamic Proto Utility, 1.1.6
104
+ * Microsoft Dynamic Proto Utility, 1.1.7
103
105
  * Copyright (c) Microsoft and contributors. All rights reserved.
104
106
  */
107
+ var _a$2;
108
+ var UNDEFINED = "undefined";
105
109
  var Constructor = 'constructor';
106
110
  var Prototype = 'prototype';
107
111
  var strFunction = 'function';
@@ -115,13 +119,37 @@
115
119
  var UnknownValue = '_unknown_';
116
120
  var str__Proto$1 = "__proto__";
117
121
  var DynProtoBaseProto = "_dyn" + str__Proto$1;
122
+ var DynProtoGlobalSettings = "__dynProto$Gbl";
118
123
  var DynProtoCurrent = "_dynInstProto";
119
124
  var strUseBaseInst = 'useBaseInst';
120
125
  var strSetInstFuncs = 'setInstFuncs';
121
126
  var Obj = Object;
122
127
  var _objGetPrototypeOf$1 = Obj["getPrototypeOf"];
123
128
  var _objGetOwnProps = Obj["getOwnPropertyNames"];
124
- var _dynamicNames = 0;
129
+ function _getGlobal() {
130
+ var result;
131
+ if (typeof globalThis !== UNDEFINED) {
132
+ result = globalThis;
133
+ }
134
+ if (!result && typeof self !== UNDEFINED) {
135
+ result = self;
136
+ }
137
+ if (!result && typeof window !== UNDEFINED) {
138
+ result = window;
139
+ }
140
+ if (!result && typeof global !== UNDEFINED) {
141
+ result = global;
142
+ }
143
+ return result || {};
144
+ }
145
+ var _gbl = _getGlobal();
146
+ var _gblInst = _gbl[DynProtoGlobalSettings] || (_gbl[DynProtoGlobalSettings] = {
147
+ o: (_a$2 = {},
148
+ _a$2[strSetInstFuncs] = true,
149
+ _a$2[strUseBaseInst] = true,
150
+ _a$2),
151
+ n: 1000
152
+ });
125
153
  function _hasOwnProperty(obj, prop) {
126
154
  return obj && Obj[Prototype].hasOwnProperty.call(obj, prop);
127
155
  }
@@ -315,15 +343,15 @@
315
343
  }
316
344
  var classProto = theClass[Prototype];
317
345
  if (!_checkPrototype(classProto, target)) {
318
- _throwTypeError("[" + _getObjName(theClass) + "] is not in class hierarchy of [" + _getObjName(target) + "]");
346
+ _throwTypeError("[" + _getObjName(theClass) + "] not in hierarchy of [" + _getObjName(target) + "]");
319
347
  }
320
348
  var className = null;
321
349
  if (_hasOwnProperty(classProto, DynClassName)) {
322
350
  className = classProto[DynClassName];
323
351
  }
324
352
  else {
325
- className = DynClassNamePrefix + _getObjName(theClass, "_") + "$" + _dynamicNames;
326
- _dynamicNames++;
353
+ className = DynClassNamePrefix + _getObjName(theClass, "_") + "$" + _gblInst.n;
354
+ _gblInst.n++;
327
355
  classProto[DynClassName] = className;
328
356
  }
329
357
  var perfOptions = dynamicProto[DynProtoDefaultOptions];
@@ -340,11 +368,7 @@
340
368
  }
341
369
  _populatePrototype(classProto, className, target, instFuncs, setInstanceFunc !== false);
342
370
  }
343
- var perfDefaults = {
344
- setInstFuncs: true,
345
- useBaseInst: true
346
- };
347
- dynamicProto[DynProtoDefaultOptions] = perfDefaults;
371
+ dynamicProto[DynProtoDefaultOptions] = _gblInst.o;
348
372
 
349
373
  var _DYN_INITIALIZE = "initialize";
350
374
  var _DYN_NAME$2 = "name";
@@ -1331,7 +1355,7 @@
1331
1355
  }
1332
1356
 
1333
1357
  var _objDefineProperty = ObjDefineProperty;
1334
- var version = "2.8.9-nightly.2210-02";
1358
+ var version = "2.8.9-nightly.2210-04";
1335
1359
  var instanceName = "." + newId(6);
1336
1360
  var _dataUid = 0;
1337
1361
  function _createAccessor(target, prop, value) {
@@ -3416,7 +3440,7 @@
3416
3440
  }
3417
3441
  }
3418
3442
  var EnvelopeCreator = {
3419
- Version: "2.8.9-nightly.2210-02"
3443
+ Version: "2.8.9-nightly.2210-04"
3420
3444
  };
3421
3445
  function DependencyEnvelopeCreator(logger, telemetryItem, customUndefinedValue) {
3422
3446
  EnvelopeCreatorInit(logger, telemetryItem);