@microsoft/applicationinsights-dependencies-js 3.3.7-nightly3.2504-12 → 3.3.7-nightly3.2504-14

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/es5/applicationinsights-dependencies-js.cjs.js +47 -121
  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 +49 -123
  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 +49 -123
  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 +47 -121
  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 +1 -1
  22. package/dist-es5/ajax.js +1 -1
  23. package/dist-es5/ajaxRecord.js +1 -1
  24. package/dist-es5/ajaxUtils.js +1 -1
  25. package/dist-es5/applicationinsights-dependencies-js.js +1 -1
  26. package/package.json +3 -3
  27. package/types/applicationinsights-dependencies-js.d.ts +1 -1
  28. package/types/applicationinsights-dependencies-js.namespaced.d.ts +33 -1
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Application Insights JavaScript SDK - Dependencies Plugin, 3.3.7-nightly3.2504-12
2
+ * Application Insights JavaScript SDK - Dependencies Plugin, 3.3.7-nightly3.2504-14
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
  'use strict';
@@ -12,7 +12,7 @@ var strShimPrototype = "prototype";
12
12
  var ObjClass$1 = Object;
13
13
  var ObjProto$1 = ObjClass$1[strShimPrototype];
14
14
 
15
- /*! https://github.com/nevware21/ts-utils v0.12.1 */
15
+ /*! https://github.com/nevware21/ts-utils v0.12.2 */
16
16
  /*#__NO_SIDE_EFFECTS__*/
17
17
  function _pureAssign(func1, func2) {
18
18
  return func1 || func2;
@@ -35,8 +35,6 @@ var LENGTH = "length";
35
35
  var NAME = "name";
36
36
  var CALL = "call";
37
37
  var TO_STRING = "toString";
38
- var GETTER_NAME = "__lookupGetter__";
39
- var SETTER_NAME = "__lookupSetter__";
40
38
  var ObjClass = ( /*#__PURE__*/_pureAssign(Object));
41
39
  var ObjProto = ( /*#__PURE__*/_pureRef(ObjClass, PROTOTYPE));
42
40
  var StrCls = ( /*#__PURE__*/_pureAssign(String));
@@ -135,85 +133,14 @@ function _throwIfNullOrUndefined(obj) {
135
133
  throwTypeError("Cannot convert undefined or null to object");
136
134
  }
137
135
  }
136
+ function _returnNothing() {
137
+ return UNDEF_VALUE;
138
+ }
139
+ var objGetOwnPropertyDescriptor = ( /* #__PURE__ */_pureAssign(( /* #__PURE__ */_pureRef(ObjClass, "getOwnPropertyDescriptor")), _returnNothing));
138
140
  /*#__NO_SIDE_EFFECTS__*/
139
141
  function objHasOwnProperty(obj, prop) {
140
142
  return !!obj && ObjProto.hasOwnProperty[CALL](obj, prop);
141
143
  }
142
- var _unwrapFunction = ( _unwrapFunctionWithPoly);
143
- /*#__NO_SIDE_EFFECTS__*/
144
- function _unwrapFunctionWithPoly(funcName, clsProto, polyFunc) {
145
- var clsFn = clsProto ? clsProto[funcName] : NULL_VALUE;
146
- return function (thisArg) {
147
- var theFunc = (thisArg ? thisArg[funcName] : NULL_VALUE) || clsFn;
148
- if (theFunc || polyFunc) {
149
- var theArgs = arguments;
150
- return (theFunc || polyFunc).apply(thisArg, theFunc ? ArrSlice[CALL](theArgs, 1) : theArgs);
151
- }
152
- throwTypeError("\"" + asString(funcName) + "\" not defined for " + dumpObj(thisArg));
153
- };
154
- }
155
- function _objPropertyIsEnum(obj, propKey) {
156
- var desc;
157
- var fn = ObjClass.getOwnPropertyDescriptor;
158
- if (!isStrictNullOrUndefined(obj) && fn) {
159
- desc = safe(fn, [obj, propKey]).v || NULL_VALUE;
160
- }
161
- if (!desc) {
162
- desc = safe(function () {
163
- for (var key in obj) {
164
- if (key === propKey) {
165
- return { enumerable: true };
166
- }
167
- }
168
- }).v;
169
- }
170
- return (desc && desc.enumerable) || false;
171
- }
172
- var objPropertyIsEnumerable = ( /*#__PURE__*/_unwrapFunctionWithPoly("propertyIsEnumerable", NULL_VALUE, _objPropertyIsEnum));
173
- function _isPropertyWritable(obj, prop) {
174
- var result = false;
175
- if (!(isString(obj) && (prop === LENGTH || isNumber(prop) || (isString(prop) && !isNaN(Number(prop)))))) {
176
- var originalValue = obj[prop];
177
- try {
178
- obj[prop] = originalValue;
179
- result = true;
180
- }
181
- catch (e) {
182
- }
183
- }
184
- return result;
185
- }
186
- function polyObjGetOwnPropertyDescriptor(obj, prop) {
187
- var descriptor;
188
- _throwIfNullOrUndefined(obj);
189
- var isLength = (prop === LENGTH && (isArray(obj) || isString(obj)));
190
- if (isLength || objHasOwnProperty(obj, prop)) {
191
- descriptor = {
192
- configurable: !isLength,
193
- enumerable: !isLength ? objPropertyIsEnumerable(obj, prop) : false
194
- };
195
- var isData = true;
196
- if (GETTER_NAME in ObjProto && SETTER_NAME in ObjProto) {
197
- var getter = obj[GETTER_NAME](prop);
198
- var setter = obj[SETTER_NAME](prop);
199
- if (getter || setter) {
200
- isData = false;
201
- if (getter) {
202
- descriptor.get = getter;
203
- }
204
- if (setter) {
205
- descriptor.set = setter;
206
- }
207
- }
208
- }
209
- if (isData) {
210
- descriptor.value = obj[prop];
211
- descriptor.writable = _isPropertyWritable(obj, prop);
212
- }
213
- }
214
- return descriptor;
215
- }
216
- var objGetOwnPropertyDescriptor = ( /* #__PURE__ */_pureAssign(( /* #__PURE__ */_pureRef(ObjClass, "getOwnPropertyDescriptor")), polyObjGetOwnPropertyDescriptor));
217
144
  /*#__NO_SIDE_EFFECTS__*/
218
145
  function polyObjHasOwn(obj, prop) {
219
146
  _throwIfNullOrUndefined(obj);
@@ -243,6 +170,19 @@ function arrForEach(theArray, callbackfn, thisArg) {
243
170
  }
244
171
  }
245
172
  }
173
+ var _unwrapFunction = ( _unwrapFunctionWithPoly);
174
+ /*#__NO_SIDE_EFFECTS__*/
175
+ function _unwrapFunctionWithPoly(funcName, clsProto, polyFunc) {
176
+ var clsFn = clsProto ? clsProto[funcName] : NULL_VALUE;
177
+ return function (thisArg) {
178
+ var theFunc = (thisArg ? thisArg[funcName] : NULL_VALUE) || clsFn;
179
+ if (theFunc || polyFunc) {
180
+ var theArgs = arguments;
181
+ return (theFunc || polyFunc).apply(thisArg, theFunc ? ArrSlice[CALL](theArgs, 1) : theArgs);
182
+ }
183
+ throwTypeError("\"" + asString(funcName) + "\" not defined for " + dumpObj(thisArg));
184
+ };
185
+ }
246
186
  var propMap = {
247
187
  e: "enumerable",
248
188
  c: "configurable",
@@ -405,24 +345,10 @@ function _tagAsPolyfill(target, polyfillTypeName) {
405
345
  }
406
346
  return target;
407
347
  }
408
- /*#__NO_SIDE_EFFECTS__*/
409
- function createCachedValue(value) {
410
- return objDefineProp({
411
- toJSON: function () { return value; }
412
- }, "v", { value: value });
413
- }
414
- var _isProtoArray;
415
- var objSetPrototypeOf = ( /* #__PURE__*/_pureAssign(( /* #__PURE__ */_pureRef(ObjClass, "setPrototypeOf")), _polyObjSetPrototypeOf));
416
- function _polyObjSetPrototypeOf(obj, proto) {
417
- var _a;
418
- !_isProtoArray && (_isProtoArray = createCachedValue((_a = {}, _a[__PROTO__] = [], _a) instanceof Array));
419
- _isProtoArray.v ? obj[__PROTO__] = proto : objForEachKey(proto, function (key, value) { return obj[key] = value; });
420
- return obj;
421
- }
422
348
  var objCreate = ( /* #__PURE__*/_pureAssign(( /* #__PURE__*/_pureRef(ObjClass, "create")), polyObjCreate));
423
349
  /*#__NO_SIDE_EFFECTS__*/
424
350
  function polyObjCreate(obj, properties) {
425
- var newObj;
351
+ var newObj = null;
426
352
  function tempFunc() { }
427
353
  if (!isStrictNullOrUndefined(obj)) {
428
354
  var type = typeof obj;
@@ -438,7 +364,6 @@ function polyObjCreate(obj, properties) {
438
364
  else {
439
365
  newObj = {};
440
366
  }
441
- safe(_polyObjSetPrototypeOf, [newObj, obj]);
442
367
  if (properties) {
443
368
  safe(objDefineProperties, [newObj, properties]);
444
369
  }
@@ -502,32 +427,19 @@ var _wellKnownSymbolCache;
502
427
  function polyNewSymbol(description) {
503
428
  var uniqueId = "_" + _polyId++ + "_" + _uniqueInstanceId.v;
504
429
  var symString = SYMBOL + "(" + description + ")";
430
+ function _setProp(name, value) {
431
+ objDefine(theSymbol, name, {
432
+ v: value,
433
+ e: false,
434
+ w: false
435
+ });
436
+ }
505
437
  var theSymbol = objCreate(null);
506
- objDefine(theSymbol, "description", {
507
- v: asString(description),
508
- e: false,
509
- w: false
510
- });
511
- objDefine(theSymbol, TO_STRING, {
512
- v: function () { return symString + POLY_SYM + uniqueId; },
513
- e: false,
514
- w: false
515
- });
516
- objDefine(theSymbol, "valueOf", {
517
- v: function () { return theSymbol; },
518
- e: false,
519
- w: false
520
- });
521
- objDefine(theSymbol, "v", {
522
- v: symString,
523
- e: false,
524
- w: false
525
- });
526
- objDefine(theSymbol, "_uid", {
527
- v: uniqueId,
528
- e: false,
529
- w: false
530
- });
438
+ _setProp("description", asString(description));
439
+ _setProp(TO_STRING, function () { return symString + POLY_SYM + uniqueId; });
440
+ _setProp("valueOf", function () { return theSymbol; });
441
+ _setProp("v", symString);
442
+ _setProp("_uid", uniqueId);
531
443
  return _tagAsPolyfill(theSymbol, "symbol");
532
444
  }
533
445
  /*#__NO_SIDE_EFFECTS__*/
@@ -552,6 +464,12 @@ function polyGetKnownSymbol(name) {
552
464
  }
553
465
  return result;
554
466
  }
467
+ /*#__NO_SIDE_EFFECTS__*/
468
+ function createCachedValue(value) {
469
+ return objDefineProp({
470
+ toJSON: function () { return value; }
471
+ }, "v", { value: value });
472
+ }
555
473
  var WINDOW = "window";
556
474
  var _cachedGlobal;
557
475
  function _getGlobalInstFn(getFn, theArgs) {
@@ -701,6 +619,14 @@ function arrAppend(target, elms) {
701
619
  return target;
702
620
  }
703
621
  var arrIndexOf = ( /*#__PURE__*/_unwrapFunction("indexOf", ArrProto));
622
+ var _isProtoArray;
623
+ var objSetPrototypeOf = ( /* #__PURE__*/_pureAssign(( /* #__PURE__ */_pureRef(ObjClass, "setPrototypeOf")), _polyObjSetPrototypeOf));
624
+ function _polyObjSetPrototypeOf(obj, proto) {
625
+ var _a;
626
+ !_isProtoArray && (_isProtoArray = createCachedValue((_a = {}, _a[__PROTO__] = [], _a) instanceof Array));
627
+ _isProtoArray.v ? obj[__PROTO__] = proto : objForEachKey(proto, function (key, value) { return obj[key] = value; });
628
+ return obj;
629
+ }
704
630
  /*#__NO_SIDE_EFFECTS__*/
705
631
  function _createCustomError(name, d, b) {
706
632
  safe(objDefine, [d, NAME, { v: name, c: true, e: false }]);
@@ -1468,7 +1394,7 @@ function newId(maxLength) {
1468
1394
  return result;
1469
1395
  }
1470
1396
 
1471
- var version = '3.3.7-nightly3.2504-12';
1397
+ var version = '3.3.7-nightly3.2504-14';
1472
1398
  var instanceName = "." + newId(6);
1473
1399
  var _dataUid = 0;
1474
1400
  function _canAcceptData(target) {