@microsoft/applicationinsights-teechannel-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 (48) hide show
  1. package/browser/es5/{applicationinsights-teechannel-js.3.3.7-nightly3.2504-12.js → applicationinsights-teechannel-js.3.3.7-nightly3.2504-14.cjs.js} +68 -181
  2. package/browser/es5/applicationinsights-teechannel-js.3.3.7-nightly3.2504-14.cjs.js.map +1 -0
  3. package/browser/es5/applicationinsights-teechannel-js.3.3.7-nightly3.2504-14.cjs.min.js +6 -0
  4. package/browser/es5/applicationinsights-teechannel-js.3.3.7-nightly3.2504-14.cjs.min.js.map +1 -0
  5. package/browser/es5/{applicationinsights-teechannel-js.3.3.7-nightly3.2504-12.gbl.js → applicationinsights-teechannel-js.3.3.7-nightly3.2504-14.gbl.js} +70 -156
  6. package/browser/es5/applicationinsights-teechannel-js.3.3.7-nightly3.2504-14.gbl.js.map +1 -0
  7. package/browser/es5/applicationinsights-teechannel-js.3.3.7-nightly3.2504-14.gbl.min.js +6 -0
  8. package/browser/es5/applicationinsights-teechannel-js.3.3.7-nightly3.2504-14.gbl.min.js.map +1 -0
  9. package/browser/es5/applicationinsights-teechannel-js.3.3.7-nightly3.2504-14.integrity.json +66 -0
  10. package/browser/es5/{applicationinsights-teechannel-js.3.3.7-nightly3.2504-12.cjs.js → applicationinsights-teechannel-js.3.3.7-nightly3.2504-14.js} +95 -154
  11. package/browser/es5/applicationinsights-teechannel-js.3.3.7-nightly3.2504-14.js.map +1 -0
  12. package/browser/es5/applicationinsights-teechannel-js.3.3.7-nightly3.2504-14.min.js +6 -0
  13. package/browser/es5/applicationinsights-teechannel-js.3.3.7-nightly3.2504-14.min.js.map +1 -0
  14. package/browser/es5/applicationinsights-teechannel-js.3.cjs.js +67 -153
  15. package/browser/es5/applicationinsights-teechannel-js.3.cjs.js.map +1 -1
  16. package/browser/es5/applicationinsights-teechannel-js.3.cjs.min.js +2 -2
  17. package/browser/es5/applicationinsights-teechannel-js.3.cjs.min.js.map +1 -1
  18. package/browser/es5/applicationinsights-teechannel-js.3.gbl.js +69 -155
  19. package/browser/es5/applicationinsights-teechannel-js.3.gbl.js.map +1 -1
  20. package/browser/es5/applicationinsights-teechannel-js.3.gbl.min.js +2 -2
  21. package/browser/es5/applicationinsights-teechannel-js.3.gbl.min.js.map +1 -1
  22. package/browser/es5/applicationinsights-teechannel-js.3.integrity.json +25 -25
  23. package/browser/es5/applicationinsights-teechannel-js.3.js +69 -155
  24. package/browser/es5/applicationinsights-teechannel-js.3.js.map +1 -1
  25. package/browser/es5/applicationinsights-teechannel-js.3.min.js +2 -2
  26. package/browser/es5/applicationinsights-teechannel-js.3.min.js.map +1 -1
  27. package/dist/es5/applicationinsights-teechannel-js.js +67 -153
  28. package/dist/es5/applicationinsights-teechannel-js.js.map +1 -1
  29. package/dist/es5/applicationinsights-teechannel-js.min.js +2 -2
  30. package/dist/es5/applicationinsights-teechannel-js.min.js.map +1 -1
  31. package/dist-es5/ChannelController.js +1 -1
  32. package/dist-es5/Interfaces/ITeeChannelConfig.js +1 -1
  33. package/dist-es5/TeeChannel.js +1 -1
  34. package/dist-es5/__DynamicConstants.js +1 -1
  35. package/dist-es5/applicationinsights-teechannel-js.js +1 -1
  36. package/package.json +3 -3
  37. package/types/applicationinsights-teechannel-js.d.ts +1 -1
  38. package/types/applicationinsights-teechannel-js.namespaced.d.ts +33 -1
  39. package/browser/es5/applicationinsights-teechannel-js.3.3.7-nightly3.2504-12.cjs.js.map +0 -1
  40. package/browser/es5/applicationinsights-teechannel-js.3.3.7-nightly3.2504-12.cjs.min.js +0 -6
  41. package/browser/es5/applicationinsights-teechannel-js.3.3.7-nightly3.2504-12.cjs.min.js.map +0 -1
  42. package/browser/es5/applicationinsights-teechannel-js.3.3.7-nightly3.2504-12.gbl.js.map +0 -1
  43. package/browser/es5/applicationinsights-teechannel-js.3.3.7-nightly3.2504-12.gbl.min.js +0 -6
  44. package/browser/es5/applicationinsights-teechannel-js.3.3.7-nightly3.2504-12.gbl.min.js.map +0 -1
  45. package/browser/es5/applicationinsights-teechannel-js.3.3.7-nightly3.2504-12.integrity.json +0 -66
  46. package/browser/es5/applicationinsights-teechannel-js.3.3.7-nightly3.2504-12.js.map +0 -1
  47. package/browser/es5/applicationinsights-teechannel-js.3.3.7-nightly3.2504-12.min.js +0 -6
  48. package/browser/es5/applicationinsights-teechannel-js.3.3.7-nightly3.2504-12.min.js.map +0 -1
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Application Insights JavaScript SDK - Tee Channel, 3.3.7-nightly3.2504-12
2
+ * Application Insights JavaScript SDK - Tee Channel, 3.3.7-nightly3.2504-14
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
  (function (global, factory) {
@@ -14,7 +14,7 @@
14
14
  var strShimPrototype = "prototype";
15
15
  var ObjClass$1 = Object;
16
16
 
17
- /*! https://github.com/nevware21/ts-utils v0.12.1 */
17
+ /*! https://github.com/nevware21/ts-utils v0.12.2 */
18
18
  /*#__NO_SIDE_EFFECTS__*/
19
19
  function _pureAssign(func1, func2) {
20
20
  return func1 || func2;
@@ -37,8 +37,6 @@
37
37
  var NAME = "name";
38
38
  var CALL = "call";
39
39
  var TO_STRING = "toString";
40
- var GETTER_NAME = "__lookupGetter__";
41
- var SETTER_NAME = "__lookupSetter__";
42
40
  var ObjClass = ( /*#__PURE__*/_pureAssign(Object));
43
41
  var ObjProto = ( /*#__PURE__*/_pureRef(ObjClass, PROTOTYPE));
44
42
  var StrCls = ( /*#__PURE__*/_pureAssign(String));
@@ -130,85 +128,14 @@
130
128
  throwTypeError("Cannot convert undefined or null to object");
131
129
  }
132
130
  }
131
+ function _returnNothing() {
132
+ return UNDEF_VALUE;
133
+ }
134
+ var objGetOwnPropertyDescriptor = ( /* #__PURE__ */_pureAssign(( /* #__PURE__ */_pureRef(ObjClass, "getOwnPropertyDescriptor")), _returnNothing));
133
135
  /*#__NO_SIDE_EFFECTS__*/
134
136
  function objHasOwnProperty(obj, prop) {
135
137
  return !!obj && ObjProto.hasOwnProperty[CALL](obj, prop);
136
138
  }
137
- var _unwrapFunction = ( _unwrapFunctionWithPoly);
138
- /*#__NO_SIDE_EFFECTS__*/
139
- function _unwrapFunctionWithPoly(funcName, clsProto, polyFunc) {
140
- var clsFn = clsProto ? clsProto[funcName] : NULL_VALUE;
141
- return function (thisArg) {
142
- var theFunc = (thisArg ? thisArg[funcName] : NULL_VALUE) || clsFn;
143
- if (theFunc || polyFunc) {
144
- var theArgs = arguments;
145
- return (theFunc || polyFunc).apply(thisArg, theFunc ? ArrSlice[CALL](theArgs, 1) : theArgs);
146
- }
147
- throwTypeError("\"" + asString(funcName) + "\" not defined for " + dumpObj(thisArg));
148
- };
149
- }
150
- function _objPropertyIsEnum(obj, propKey) {
151
- var desc;
152
- var fn = ObjClass.getOwnPropertyDescriptor;
153
- if (!isStrictNullOrUndefined(obj) && fn) {
154
- desc = safe(fn, [obj, propKey]).v || NULL_VALUE;
155
- }
156
- if (!desc) {
157
- desc = safe(function () {
158
- for (var key in obj) {
159
- if (key === propKey) {
160
- return { enumerable: true };
161
- }
162
- }
163
- }).v;
164
- }
165
- return (desc && desc.enumerable) || false;
166
- }
167
- var objPropertyIsEnumerable = ( /*#__PURE__*/_unwrapFunctionWithPoly("propertyIsEnumerable", NULL_VALUE, _objPropertyIsEnum));
168
- function _isPropertyWritable(obj, prop) {
169
- var result = false;
170
- if (!(isString(obj) && (prop === LENGTH || isNumber(prop) || (isString(prop) && !isNaN(Number(prop)))))) {
171
- var originalValue = obj[prop];
172
- try {
173
- obj[prop] = originalValue;
174
- result = true;
175
- }
176
- catch (e) {
177
- }
178
- }
179
- return result;
180
- }
181
- function polyObjGetOwnPropertyDescriptor(obj, prop) {
182
- var descriptor;
183
- _throwIfNullOrUndefined(obj);
184
- var isLength = (prop === LENGTH && (isArray(obj) || isString(obj)));
185
- if (isLength || objHasOwnProperty(obj, prop)) {
186
- descriptor = {
187
- configurable: !isLength,
188
- enumerable: !isLength ? objPropertyIsEnumerable(obj, prop) : false
189
- };
190
- var isData = true;
191
- if (GETTER_NAME in ObjProto && SETTER_NAME in ObjProto) {
192
- var getter = obj[GETTER_NAME](prop);
193
- var setter = obj[SETTER_NAME](prop);
194
- if (getter || setter) {
195
- isData = false;
196
- if (getter) {
197
- descriptor.get = getter;
198
- }
199
- if (setter) {
200
- descriptor.set = setter;
201
- }
202
- }
203
- }
204
- if (isData) {
205
- descriptor.value = obj[prop];
206
- descriptor.writable = _isPropertyWritable(obj, prop);
207
- }
208
- }
209
- return descriptor;
210
- }
211
- var objGetOwnPropertyDescriptor = ( /* #__PURE__ */_pureAssign(( /* #__PURE__ */_pureRef(ObjClass, "getOwnPropertyDescriptor")), polyObjGetOwnPropertyDescriptor));
212
139
  /*#__NO_SIDE_EFFECTS__*/
213
140
  function polyObjHasOwn(obj, prop) {
214
141
  _throwIfNullOrUndefined(obj);
@@ -238,6 +165,19 @@
238
165
  }
239
166
  }
240
167
  }
168
+ var _unwrapFunction = ( _unwrapFunctionWithPoly);
169
+ /*#__NO_SIDE_EFFECTS__*/
170
+ function _unwrapFunctionWithPoly(funcName, clsProto, polyFunc) {
171
+ var clsFn = clsProto ? clsProto[funcName] : NULL_VALUE;
172
+ return function (thisArg) {
173
+ var theFunc = (thisArg ? thisArg[funcName] : NULL_VALUE) || clsFn;
174
+ if (theFunc || polyFunc) {
175
+ var theArgs = arguments;
176
+ return (theFunc || polyFunc).apply(thisArg, theFunc ? ArrSlice[CALL](theArgs, 1) : theArgs);
177
+ }
178
+ throwTypeError("\"" + asString(funcName) + "\" not defined for " + dumpObj(thisArg));
179
+ };
180
+ }
241
181
  var propMap = {
242
182
  e: "enumerable",
243
183
  c: "configurable",
@@ -286,22 +226,10 @@
286
226
  writable: false
287
227
  });
288
228
  }
289
- function polyObjIsFrozen(obj) {
290
- if (isStrictNullOrUndefined(obj) || (!isObject(obj) && !isFunction(obj))) {
291
- return true;
292
- }
293
- if (isFunction(obj)) {
294
- return false;
295
- }
296
- for (var prop in obj) {
297
- var desc = objGetOwnPropertyDescriptor(obj, prop);
298
- if (desc && (desc.configurable || (desc.writable !== false && "value" in desc))) {
299
- return false;
300
- }
301
- }
302
- return true;
229
+ function _returnFalse() {
230
+ return false;
303
231
  }
304
- var objIsFrozen = ( /* #__PURE__*/_pureAssign(( /* #__PURE__ */_pureRef(ObjClass, "isFrozen")), polyObjIsFrozen));
232
+ var objIsFrozen = ( /* #__PURE__*/_pureAssign(( /* #__PURE__ */_pureRef(ObjClass, "isFrozen")), _returnFalse));
305
233
  var _objFreeze = ( /* #__PURE__ */_pureRef(ObjClass, "freeze"));
306
234
  function _doNothing(value) {
307
235
  return value;
@@ -397,24 +325,10 @@
397
325
  }
398
326
  return target;
399
327
  }
400
- /*#__NO_SIDE_EFFECTS__*/
401
- function createCachedValue(value) {
402
- return objDefineProp({
403
- toJSON: function () { return value; }
404
- }, "v", { value: value });
405
- }
406
- var _isProtoArray;
407
- var objSetPrototypeOf = ( /* #__PURE__*/_pureAssign(( /* #__PURE__ */_pureRef(ObjClass, "setPrototypeOf")), _polyObjSetPrototypeOf));
408
- function _polyObjSetPrototypeOf(obj, proto) {
409
- var _a;
410
- !_isProtoArray && (_isProtoArray = createCachedValue((_a = {}, _a[__PROTO__] = [], _a) instanceof Array));
411
- _isProtoArray.v ? obj[__PROTO__] = proto : objForEachKey(proto, function (key, value) { return obj[key] = value; });
412
- return obj;
413
- }
414
328
  var objCreate = ( /* #__PURE__*/_pureAssign(( /* #__PURE__*/_pureRef(ObjClass, "create")), polyObjCreate));
415
329
  /*#__NO_SIDE_EFFECTS__*/
416
330
  function polyObjCreate(obj, properties) {
417
- var newObj;
331
+ var newObj = null;
418
332
  function tempFunc() { }
419
333
  if (!isStrictNullOrUndefined(obj)) {
420
334
  var type = typeof obj;
@@ -430,7 +344,6 @@
430
344
  else {
431
345
  newObj = {};
432
346
  }
433
- safe(_polyObjSetPrototypeOf, [newObj, obj]);
434
347
  if (properties) {
435
348
  safe(objDefineProperties, [newObj, properties]);
436
349
  }
@@ -494,32 +407,19 @@
494
407
  function polyNewSymbol(description) {
495
408
  var uniqueId = "_" + _polyId++ + "_" + _uniqueInstanceId.v;
496
409
  var symString = SYMBOL + "(" + description + ")";
410
+ function _setProp(name, value) {
411
+ objDefine(theSymbol, name, {
412
+ v: value,
413
+ e: false,
414
+ w: false
415
+ });
416
+ }
497
417
  var theSymbol = objCreate(null);
498
- objDefine(theSymbol, "description", {
499
- v: asString(description),
500
- e: false,
501
- w: false
502
- });
503
- objDefine(theSymbol, TO_STRING, {
504
- v: function () { return symString + POLY_SYM + uniqueId; },
505
- e: false,
506
- w: false
507
- });
508
- objDefine(theSymbol, "valueOf", {
509
- v: function () { return theSymbol; },
510
- e: false,
511
- w: false
512
- });
513
- objDefine(theSymbol, "v", {
514
- v: symString,
515
- e: false,
516
- w: false
517
- });
518
- objDefine(theSymbol, "_uid", {
519
- v: uniqueId,
520
- e: false,
521
- w: false
522
- });
418
+ _setProp("description", asString(description));
419
+ _setProp(TO_STRING, function () { return symString + POLY_SYM + uniqueId; });
420
+ _setProp("valueOf", function () { return theSymbol; });
421
+ _setProp("v", symString);
422
+ _setProp("_uid", uniqueId);
523
423
  return _tagAsPolyfill(theSymbol, "symbol");
524
424
  }
525
425
  /*#__NO_SIDE_EFFECTS__*/
@@ -544,6 +444,12 @@
544
444
  }
545
445
  return result;
546
446
  }
447
+ /*#__NO_SIDE_EFFECTS__*/
448
+ function createCachedValue(value) {
449
+ return objDefineProp({
450
+ toJSON: function () { return value; }
451
+ }, "v", { value: value });
452
+ }
547
453
  var WINDOW = "window";
548
454
  var _cachedGlobal;
549
455
  function _getGlobalInstFn(getFn, theArgs) {
@@ -705,6 +611,14 @@
705
611
  function arrSlice(theArray, start, end) {
706
612
  return ((theArray ? theArray["slice"] : NULL_VALUE) || ArrSlice).apply(theArray, ArrSlice[CALL](arguments, 1));
707
613
  }
614
+ var _isProtoArray;
615
+ var objSetPrototypeOf = ( /* #__PURE__*/_pureAssign(( /* #__PURE__ */_pureRef(ObjClass, "setPrototypeOf")), _polyObjSetPrototypeOf));
616
+ function _polyObjSetPrototypeOf(obj, proto) {
617
+ var _a;
618
+ !_isProtoArray && (_isProtoArray = createCachedValue((_a = {}, _a[__PROTO__] = [], _a) instanceof Array));
619
+ _isProtoArray.v ? obj[__PROTO__] = proto : objForEachKey(proto, function (key, value) { return obj[key] = value; });
620
+ return obj;
621
+ }
708
622
  /*#__NO_SIDE_EFFECTS__*/
709
623
  function _createCustomError(name, d, b) {
710
624
  safe(objDefine, [d, NAME, { v: name, c: true, e: false }]);
@@ -1449,6 +1363,23 @@
1449
1363
  var STR_GET_PERF_MGR = "getPerfMgr";
1450
1364
  var STR_NOT_DYNAMIC_ERROR = "Not dynamic - ";
1451
1365
 
1366
+ function _stringToBoolOrDefault(theValue, defaultValue, theConfig) {
1367
+ if (!theValue && isNullOrUndefined(theValue)) {
1368
+ return defaultValue;
1369
+ }
1370
+ if (isBoolean(theValue)) {
1371
+ return theValue;
1372
+ }
1373
+ return asString(theValue)[_DYN_TO_LOWER_CASE ]() === "true";
1374
+ }
1375
+ function cfgDfBoolean(defaultValue, fallBackName) {
1376
+ return {
1377
+ fb: fallBackName,
1378
+ set: _stringToBoolOrDefault,
1379
+ v: !!defaultValue
1380
+ };
1381
+ }
1382
+
1452
1383
  var rCamelCase = /-([a-z])/g;
1453
1384
  var rNormalizeInvalid = /([^\w\d_$])/g;
1454
1385
  var rLeadingNumeric = /^(\d+[\w\d_$])/;
@@ -1620,7 +1551,7 @@
1620
1551
  return result;
1621
1552
  }
1622
1553
 
1623
- var version = '3.3.7-nightly3.2504-12';
1554
+ var version = '3.3.7-nightly3.2504-14';
1624
1555
  var instanceName = "." + newId(6);
1625
1556
  var _dataUid = 0;
1626
1557
  function _canAcceptData(target) {
@@ -2286,23 +2217,6 @@
2286
2217
  return createDynamicConfig(config, null, logger)[_DYN_WATCH ](configHandler);
2287
2218
  }
2288
2219
 
2289
- function _stringToBoolOrDefault(theValue, defaultValue, theConfig) {
2290
- if (!theValue && isNullOrUndefined(theValue)) {
2291
- return defaultValue;
2292
- }
2293
- if (isBoolean(theValue)) {
2294
- return theValue;
2295
- }
2296
- return asString(theValue)[_DYN_TO_LOWER_CASE ]() === "true";
2297
- }
2298
- function cfgDfBoolean(defaultValue, fallBackName) {
2299
- return {
2300
- fb: fallBackName,
2301
- set: _stringToBoolOrDefault,
2302
- v: !!defaultValue
2303
- };
2304
- }
2305
-
2306
2220
  var _aiNamespace = null;
2307
2221
  function _getExtensionNamespace() {
2308
2222
  var target = getInst("Microsoft");