@microsoft/applicationinsights-dependencies-js 3.3.0-nightly3.2406-07 → 3.3.0-nightly3.2406-09

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 (30) hide show
  1. package/browser/es5/applicationinsights-dependencies-js.cjs.js +50 -60
  2. package/browser/es5/applicationinsights-dependencies-js.cjs.js.map +1 -1
  3. package/browser/es5/applicationinsights-dependencies-js.cjs.min.js +2 -2
  4. package/browser/es5/applicationinsights-dependencies-js.cjs.min.js.map +1 -1
  5. package/browser/es5/applicationinsights-dependencies-js.gbl.js +52 -62
  6. package/browser/es5/applicationinsights-dependencies-js.gbl.js.map +1 -1
  7. package/browser/es5/applicationinsights-dependencies-js.gbl.min.js +2 -2
  8. package/browser/es5/applicationinsights-dependencies-js.gbl.min.js.map +1 -1
  9. package/browser/es5/applicationinsights-dependencies-js.integrity.json +25 -25
  10. package/browser/es5/applicationinsights-dependencies-js.js +52 -62
  11. package/browser/es5/applicationinsights-dependencies-js.js.map +1 -1
  12. package/browser/es5/applicationinsights-dependencies-js.min.js +2 -2
  13. package/browser/es5/applicationinsights-dependencies-js.min.js.map +1 -1
  14. package/dist/es5/applicationinsights-dependencies-js.js +50 -60
  15. package/dist/es5/applicationinsights-dependencies-js.js.map +1 -1
  16. package/dist/es5/applicationinsights-dependencies-js.min.js +2 -2
  17. package/dist/es5/applicationinsights-dependencies-js.min.js.map +1 -1
  18. package/dist-es5/DependencyInitializer.js +1 -1
  19. package/dist-es5/DependencyListener.js +1 -1
  20. package/dist-es5/InternalConstants.js +1 -1
  21. package/dist-es5/__DynamicConstants.js +2 -2
  22. package/dist-es5/__DynamicConstants.js.map +1 -1
  23. package/dist-es5/ajax.js +3 -9
  24. package/dist-es5/ajax.js.map +1 -1
  25. package/dist-es5/ajaxRecord.js +1 -1
  26. package/dist-es5/ajaxUtils.js +1 -1
  27. package/dist-es5/applicationinsights-dependencies-js.js +1 -1
  28. package/package.json +3 -3
  29. package/types/applicationinsights-dependencies-js.d.ts +1 -1
  30. package/types/applicationinsights-dependencies-js.namespaced.d.ts +52 -5
@@ -1,11 +1,11 @@
1
1
  /*!
2
- * Application Insights JavaScript SDK - Dependencies Plugin, 3.3.0-nightly3.2406-07
2
+ * Application Insights JavaScript SDK - Dependencies Plugin, 3.3.0-nightly3.2406-09
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
  (function (global, factory) {
6
6
  var undef = "undefined";
7
- var nsKey, key, nm, theExports = {}, modName = "es5_applicationinsights_dependencies_js_3_3_0_nightly3_2406_07", msMod="__ms$mod__";
8
- var mods={}, modDetail=mods[modName]={}, ver="3.3.0-nightly3.2406-07";
7
+ var nsKey, key, nm, theExports = {}, modName = "es5_applicationinsights_dependencies_js_3_3_0_nightly3_2406_09", msMod="__ms$mod__";
8
+ var mods={}, modDetail=mods[modName]={}, ver="3.3.0-nightly3.2406-09";
9
9
  var baseNs=global, nsKey="Microsoft", baseNs=baseNs[nsKey]=(baseNs[nsKey]||{});
10
10
  // Versioned namespace "Microsoft.ApplicationInsights3"
11
11
  var exportNs=baseNs, nsKey="ApplicationInsights3", exportNs=exportNs[nsKey]=(exportNs[nsKey]||{});
@@ -33,7 +33,7 @@ var strShimPrototype = "prototype";
33
33
  var ObjClass$1 = Object;
34
34
  var ObjProto$1 = ObjClass$1[strShimPrototype];
35
35
 
36
- /*! https://github.com/nevware21/ts-utils v0.11.2 */
36
+ /*! https://github.com/nevware21/ts-utils v0.11.3 */
37
37
  /*#__NO_SIDE_EFFECTS__*/
38
38
  function _pureAssign(func1, func2) {
39
39
  return func1 || func2;
@@ -141,14 +141,52 @@ function objForEachKey(theObject, callbackfn, thisArg) {
141
141
  }
142
142
  }
143
143
  }
144
+ var propMap = {
145
+ e: "enumerable",
146
+ c: "configurable",
147
+ v: "value",
148
+ w: "writable",
149
+ g: "get",
150
+ s: "set"
151
+ };
152
+ /*#__NO_SIDE_EFFECTS__*/
153
+ function _createProp(value) {
154
+ var prop = {};
155
+ prop[propMap["c"]] = true;
156
+ prop[propMap["e"]] = true;
157
+ if (value.l) {
158
+ prop.get = function () { return value.l.v; };
159
+ var desc = objGetOwnPropertyDescriptor(value.l, "v");
160
+ if (desc && desc.set) {
161
+ prop.set = function (newValue) {
162
+ value.l.v = newValue;
163
+ };
164
+ }
165
+ }
166
+ objForEachKey(value, function (key, value) {
167
+ prop[propMap[key]] = isUndefined(value) ? prop[propMap[key]] : value;
168
+ });
169
+ return prop;
170
+ }
171
+ var objDefineProp = ( /*#__PURE__*/_pureRef(ObjClass, "defineProperty"));
172
+ function objDefine(target, key, propDesc) {
173
+ return objDefineProp(target, key, _createProp(propDesc));
174
+ }
144
175
  /*#__NO_SIDE_EFFECTS__*/
145
- function _createKeyValueMap(values, keyType, valueType, completeFn) {
176
+ function _createKeyValueMap(values, keyType, valueType, completeFn, writable) {
146
177
  var theMap = {};
147
178
  objForEachKey(values, function (key, value) {
148
- theMap[key] = keyType ? value : key;
149
- theMap[value] = valueType ? value : key;
179
+ _assignMapValue(theMap, key, keyType ? value : key, writable);
180
+ _assignMapValue(theMap, value, valueType ? value : key, writable);
181
+ });
182
+ return completeFn ? completeFn(theMap) : theMap;
183
+ }
184
+ function _assignMapValue(theMap, key, value, writable) {
185
+ objDefineProp(theMap, key, {
186
+ value: value,
187
+ enumerable: true,
188
+ writable: !!writable
150
189
  });
151
- return completeFn(theMap);
152
190
  }
153
191
  var asString = ( /* #__PURE__ */_pureAssign(StrCls));
154
192
  var ERROR_TYPE = "[object Error]";
@@ -184,30 +222,20 @@ function _getProto(value) {
184
222
  }
185
223
  var objAssign = ( /*#__PURE__*/_pureRef(ObjClass, "assign"));
186
224
  var objKeys = ( /*#__PURE__*/_pureRef(ObjClass, "keys"));
187
- function objDeepFreeze(value) {
188
- if (_objFreeze) {
189
- objForEachKey(value, function (key, value) {
190
- if (isArray(value) || isObject(value)) {
191
- _objFreeze(value);
192
- }
193
- });
194
- }
195
- return objFreeze(value);
196
- }
197
225
  var objFreeze = ( /* #__PURE__*/_pureAssign(_objFreeze, _doNothing));
198
226
  var objGetPrototypeOf = ( /* #__PURE__*/_pureAssign(( /* #__PURE__*/_pureRef(ObjClass, "getPrototypeOf")), _getProto));
199
227
  /*#__NO_SIDE_EFFECTS__*/
200
228
  function createEnumKeyMap(values) {
201
- return _createKeyValueMap(values, 0 , 0 , objDeepFreeze);
229
+ return _createKeyValueMap(values, 0 , 0 , objFreeze);
202
230
  }
203
231
  /*#__NO_SIDE_EFFECTS__*/
204
232
  function createSimpleMap(values) {
205
233
  var mapClass = {};
206
234
  objForEachKey(values, function (key, value) {
207
- mapClass[key] = value[1];
208
- mapClass[value[0]] = value[1];
235
+ _assignMapValue(mapClass, key, value[1]);
236
+ _assignMapValue(mapClass, value[0], value[1]);
209
237
  });
210
- return objDeepFreeze(mapClass);
238
+ return objFreeze(mapClass);
211
239
  }
212
240
  /*#__NO_SIDE_EFFECTS__*/
213
241
  function createTypeMap(values) {
@@ -335,37 +363,6 @@ function polyGetKnownSymbol(name) {
335
363
  }
336
364
  return result;
337
365
  }
338
- var propMap = {
339
- e: "enumerable",
340
- c: "configurable",
341
- v: "value",
342
- w: "writable",
343
- g: "get",
344
- s: "set"
345
- };
346
- /*#__NO_SIDE_EFFECTS__*/
347
- function _createProp(value) {
348
- var prop = {};
349
- prop[propMap["c"]] = true;
350
- prop[propMap["e"]] = true;
351
- if (value.l) {
352
- prop.get = function () { return value.l.v; };
353
- var desc = objGetOwnPropertyDescriptor(value.l, "v");
354
- if (desc && desc.set) {
355
- prop.set = function (newValue) {
356
- value.l.v = newValue;
357
- };
358
- }
359
- }
360
- objForEachKey(value, function (key, value) {
361
- prop[propMap[key]] = isUndefined(value) ? prop[propMap[key]] : value;
362
- });
363
- return prop;
364
- }
365
- var objDefineProp = ( /*#__PURE__*/_pureRef(ObjClass, "defineProperty"));
366
- function objDefine(target, key, propDesc) {
367
- return objDefineProp(target, key, _createProp(propDesc));
368
- }
369
366
  var _globalLazyTestHooks;
370
367
  function _initTestHooks() {
371
368
  _globalLazyTestHooks = _getGlobalConfig();
@@ -1332,7 +1329,7 @@ function newId(maxLength) {
1332
1329
  return result;
1333
1330
  }
1334
1331
 
1335
- var version = '3.3.0-nightly3.2406-07';
1332
+ var version = '3.3.0-nightly3.2406-09';
1336
1333
  var instanceName = "." + newId(6);
1337
1334
  var _dataUid = 0;
1338
1335
  function _canAcceptData(target) {
@@ -4036,7 +4033,6 @@ var ajaxRecord = /** @class */ (function () {
4036
4033
  }());
4037
4034
 
4038
4035
  var _a;
4039
- var AJAX_MONITOR_PREFIX = "ai.ajxmn.";
4040
4036
  var strDiagLog = "diagLog";
4041
4037
  var AJAX_DATA_CONTAINER = "_ajaxData";
4042
4038
  var STR_FETCH = "fetch";
@@ -4462,13 +4458,7 @@ var AjaxMonitor = /** @class */ (function (_super) {
4462
4458
  _isUsingAIHeaders = _distributedTracingMode === 0 || _distributedTracingMode === 1 ;
4463
4459
  _isUsingW3CHeaders = _distributedTracingMode === 1 || _distributedTracingMode === 2 ;
4464
4460
  if (_enableAjaxPerfTracking) {
4465
- var iKey = config.instrumentationKey || "unkwn";
4466
- if (iKey[_DYN_LENGTH ] > 5) {
4467
- _markPrefix = AJAX_MONITOR_PREFIX + strSubstring(iKey, iKey[_DYN_LENGTH ] - 5) + ".";
4468
- }
4469
- else {
4470
- _markPrefix = AJAX_MONITOR_PREFIX + iKey + ".";
4471
- }
4461
+ _markPrefix = _ajaxDataId;
4472
4462
  }
4473
4463
  _disableAjaxTracking = !!_extensionConfig[_DYN_DISABLE_AJAX_TRACKIN9 ];
4474
4464
  _maxAjaxPerfLookupAttempts = _extensionConfig.maxAjaxPerfLookupAttempts;