@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
  'use strict';
@@ -11,7 +11,7 @@ var strShimUndefined = "undefined";
11
11
  var strShimPrototype = "prototype";
12
12
  var ObjClass$1 = Object;
13
13
 
14
- /*! https://github.com/nevware21/ts-utils v0.12.1 */
14
+ /*! https://github.com/nevware21/ts-utils v0.12.2 */
15
15
  /*#__NO_SIDE_EFFECTS__*/
16
16
  function _pureAssign(func1, func2) {
17
17
  return func1 || func2;
@@ -34,8 +34,6 @@ var LENGTH = "length";
34
34
  var NAME = "name";
35
35
  var CALL = "call";
36
36
  var TO_STRING = "toString";
37
- var GETTER_NAME = "__lookupGetter__";
38
- var SETTER_NAME = "__lookupSetter__";
39
37
  var ObjClass = ( /*#__PURE__*/_pureAssign(Object));
40
38
  var ObjProto = ( /*#__PURE__*/_pureRef(ObjClass, PROTOTYPE));
41
39
  var StrCls = ( /*#__PURE__*/_pureAssign(String));
@@ -127,85 +125,14 @@ function _throwIfNullOrUndefined(obj) {
127
125
  throwTypeError("Cannot convert undefined or null to object");
128
126
  }
129
127
  }
128
+ function _returnNothing() {
129
+ return UNDEF_VALUE;
130
+ }
131
+ var objGetOwnPropertyDescriptor = ( /* #__PURE__ */_pureAssign(( /* #__PURE__ */_pureRef(ObjClass, "getOwnPropertyDescriptor")), _returnNothing));
130
132
  /*#__NO_SIDE_EFFECTS__*/
131
133
  function objHasOwnProperty(obj, prop) {
132
134
  return !!obj && ObjProto.hasOwnProperty[CALL](obj, prop);
133
135
  }
134
- var _unwrapFunction = ( _unwrapFunctionWithPoly);
135
- /*#__NO_SIDE_EFFECTS__*/
136
- function _unwrapFunctionWithPoly(funcName, clsProto, polyFunc) {
137
- var clsFn = clsProto ? clsProto[funcName] : NULL_VALUE;
138
- return function (thisArg) {
139
- var theFunc = (thisArg ? thisArg[funcName] : NULL_VALUE) || clsFn;
140
- if (theFunc || polyFunc) {
141
- var theArgs = arguments;
142
- return (theFunc || polyFunc).apply(thisArg, theFunc ? ArrSlice[CALL](theArgs, 1) : theArgs);
143
- }
144
- throwTypeError("\"" + asString(funcName) + "\" not defined for " + dumpObj(thisArg));
145
- };
146
- }
147
- function _objPropertyIsEnum(obj, propKey) {
148
- var desc;
149
- var fn = ObjClass.getOwnPropertyDescriptor;
150
- if (!isStrictNullOrUndefined(obj) && fn) {
151
- desc = safe(fn, [obj, propKey]).v || NULL_VALUE;
152
- }
153
- if (!desc) {
154
- desc = safe(function () {
155
- for (var key in obj) {
156
- if (key === propKey) {
157
- return { enumerable: true };
158
- }
159
- }
160
- }).v;
161
- }
162
- return (desc && desc.enumerable) || false;
163
- }
164
- var objPropertyIsEnumerable = ( /*#__PURE__*/_unwrapFunctionWithPoly("propertyIsEnumerable", NULL_VALUE, _objPropertyIsEnum));
165
- function _isPropertyWritable(obj, prop) {
166
- var result = false;
167
- if (!(isString(obj) && (prop === LENGTH || isNumber(prop) || (isString(prop) && !isNaN(Number(prop)))))) {
168
- var originalValue = obj[prop];
169
- try {
170
- obj[prop] = originalValue;
171
- result = true;
172
- }
173
- catch (e) {
174
- }
175
- }
176
- return result;
177
- }
178
- function polyObjGetOwnPropertyDescriptor(obj, prop) {
179
- var descriptor;
180
- _throwIfNullOrUndefined(obj);
181
- var isLength = (prop === LENGTH && (isArray(obj) || isString(obj)));
182
- if (isLength || objHasOwnProperty(obj, prop)) {
183
- descriptor = {
184
- configurable: !isLength,
185
- enumerable: !isLength ? objPropertyIsEnumerable(obj, prop) : false
186
- };
187
- var isData = true;
188
- if (GETTER_NAME in ObjProto && SETTER_NAME in ObjProto) {
189
- var getter = obj[GETTER_NAME](prop);
190
- var setter = obj[SETTER_NAME](prop);
191
- if (getter || setter) {
192
- isData = false;
193
- if (getter) {
194
- descriptor.get = getter;
195
- }
196
- if (setter) {
197
- descriptor.set = setter;
198
- }
199
- }
200
- }
201
- if (isData) {
202
- descriptor.value = obj[prop];
203
- descriptor.writable = _isPropertyWritable(obj, prop);
204
- }
205
- }
206
- return descriptor;
207
- }
208
- var objGetOwnPropertyDescriptor = ( /* #__PURE__ */_pureAssign(( /* #__PURE__ */_pureRef(ObjClass, "getOwnPropertyDescriptor")), polyObjGetOwnPropertyDescriptor));
209
136
  /*#__NO_SIDE_EFFECTS__*/
210
137
  function polyObjHasOwn(obj, prop) {
211
138
  _throwIfNullOrUndefined(obj);
@@ -235,6 +162,19 @@ function arrForEach(theArray, callbackfn, thisArg) {
235
162
  }
236
163
  }
237
164
  }
165
+ var _unwrapFunction = ( _unwrapFunctionWithPoly);
166
+ /*#__NO_SIDE_EFFECTS__*/
167
+ function _unwrapFunctionWithPoly(funcName, clsProto, polyFunc) {
168
+ var clsFn = clsProto ? clsProto[funcName] : NULL_VALUE;
169
+ return function (thisArg) {
170
+ var theFunc = (thisArg ? thisArg[funcName] : NULL_VALUE) || clsFn;
171
+ if (theFunc || polyFunc) {
172
+ var theArgs = arguments;
173
+ return (theFunc || polyFunc).apply(thisArg, theFunc ? ArrSlice[CALL](theArgs, 1) : theArgs);
174
+ }
175
+ throwTypeError("\"" + asString(funcName) + "\" not defined for " + dumpObj(thisArg));
176
+ };
177
+ }
238
178
  var propMap = {
239
179
  e: "enumerable",
240
180
  c: "configurable",
@@ -283,22 +223,10 @@ function _assignMapValue(theMap, key, value, writable) {
283
223
  writable: false
284
224
  });
285
225
  }
286
- function polyObjIsFrozen(obj) {
287
- if (isStrictNullOrUndefined(obj) || (!isObject(obj) && !isFunction(obj))) {
288
- return true;
289
- }
290
- if (isFunction(obj)) {
291
- return false;
292
- }
293
- for (var prop in obj) {
294
- var desc = objGetOwnPropertyDescriptor(obj, prop);
295
- if (desc && (desc.configurable || (desc.writable !== false && "value" in desc))) {
296
- return false;
297
- }
298
- }
299
- return true;
226
+ function _returnFalse() {
227
+ return false;
300
228
  }
301
- var objIsFrozen = ( /* #__PURE__*/_pureAssign(( /* #__PURE__ */_pureRef(ObjClass, "isFrozen")), polyObjIsFrozen));
229
+ var objIsFrozen = ( /* #__PURE__*/_pureAssign(( /* #__PURE__ */_pureRef(ObjClass, "isFrozen")), _returnFalse));
302
230
  var _objFreeze = ( /* #__PURE__ */_pureRef(ObjClass, "freeze"));
303
231
  function _doNothing(value) {
304
232
  return value;
@@ -394,24 +322,10 @@ function _tagAsPolyfill(target, polyfillTypeName) {
394
322
  }
395
323
  return target;
396
324
  }
397
- /*#__NO_SIDE_EFFECTS__*/
398
- function createCachedValue(value) {
399
- return objDefineProp({
400
- toJSON: function () { return value; }
401
- }, "v", { value: value });
402
- }
403
- var _isProtoArray;
404
- var objSetPrototypeOf = ( /* #__PURE__*/_pureAssign(( /* #__PURE__ */_pureRef(ObjClass, "setPrototypeOf")), _polyObjSetPrototypeOf));
405
- function _polyObjSetPrototypeOf(obj, proto) {
406
- var _a;
407
- !_isProtoArray && (_isProtoArray = createCachedValue((_a = {}, _a[__PROTO__] = [], _a) instanceof Array));
408
- _isProtoArray.v ? obj[__PROTO__] = proto : objForEachKey(proto, function (key, value) { return obj[key] = value; });
409
- return obj;
410
- }
411
325
  var objCreate = ( /* #__PURE__*/_pureAssign(( /* #__PURE__*/_pureRef(ObjClass, "create")), polyObjCreate));
412
326
  /*#__NO_SIDE_EFFECTS__*/
413
327
  function polyObjCreate(obj, properties) {
414
- var newObj;
328
+ var newObj = null;
415
329
  function tempFunc() { }
416
330
  if (!isStrictNullOrUndefined(obj)) {
417
331
  var type = typeof obj;
@@ -427,7 +341,6 @@ function polyObjCreate(obj, properties) {
427
341
  else {
428
342
  newObj = {};
429
343
  }
430
- safe(_polyObjSetPrototypeOf, [newObj, obj]);
431
344
  if (properties) {
432
345
  safe(objDefineProperties, [newObj, properties]);
433
346
  }
@@ -491,32 +404,19 @@ var _wellKnownSymbolCache;
491
404
  function polyNewSymbol(description) {
492
405
  var uniqueId = "_" + _polyId++ + "_" + _uniqueInstanceId.v;
493
406
  var symString = SYMBOL + "(" + description + ")";
407
+ function _setProp(name, value) {
408
+ objDefine(theSymbol, name, {
409
+ v: value,
410
+ e: false,
411
+ w: false
412
+ });
413
+ }
494
414
  var theSymbol = objCreate(null);
495
- objDefine(theSymbol, "description", {
496
- v: asString(description),
497
- e: false,
498
- w: false
499
- });
500
- objDefine(theSymbol, TO_STRING, {
501
- v: function () { return symString + POLY_SYM + uniqueId; },
502
- e: false,
503
- w: false
504
- });
505
- objDefine(theSymbol, "valueOf", {
506
- v: function () { return theSymbol; },
507
- e: false,
508
- w: false
509
- });
510
- objDefine(theSymbol, "v", {
511
- v: symString,
512
- e: false,
513
- w: false
514
- });
515
- objDefine(theSymbol, "_uid", {
516
- v: uniqueId,
517
- e: false,
518
- w: false
519
- });
415
+ _setProp("description", asString(description));
416
+ _setProp(TO_STRING, function () { return symString + POLY_SYM + uniqueId; });
417
+ _setProp("valueOf", function () { return theSymbol; });
418
+ _setProp("v", symString);
419
+ _setProp("_uid", uniqueId);
520
420
  return _tagAsPolyfill(theSymbol, "symbol");
521
421
  }
522
422
  /*#__NO_SIDE_EFFECTS__*/
@@ -541,6 +441,12 @@ function polyGetKnownSymbol(name) {
541
441
  }
542
442
  return result;
543
443
  }
444
+ /*#__NO_SIDE_EFFECTS__*/
445
+ function createCachedValue(value) {
446
+ return objDefineProp({
447
+ toJSON: function () { return value; }
448
+ }, "v", { value: value });
449
+ }
544
450
  var WINDOW = "window";
545
451
  var _cachedGlobal;
546
452
  function _getGlobalInstFn(getFn, theArgs) {
@@ -702,6 +608,14 @@ var arrIndexOf = ( /*#__PURE__*/_unwrapFunction("indexOf", ArrProto));
702
608
  function arrSlice(theArray, start, end) {
703
609
  return ((theArray ? theArray["slice"] : NULL_VALUE) || ArrSlice).apply(theArray, ArrSlice[CALL](arguments, 1));
704
610
  }
611
+ var _isProtoArray;
612
+ var objSetPrototypeOf = ( /* #__PURE__*/_pureAssign(( /* #__PURE__ */_pureRef(ObjClass, "setPrototypeOf")), _polyObjSetPrototypeOf));
613
+ function _polyObjSetPrototypeOf(obj, proto) {
614
+ var _a;
615
+ !_isProtoArray && (_isProtoArray = createCachedValue((_a = {}, _a[__PROTO__] = [], _a) instanceof Array));
616
+ _isProtoArray.v ? obj[__PROTO__] = proto : objForEachKey(proto, function (key, value) { return obj[key] = value; });
617
+ return obj;
618
+ }
705
619
  /*#__NO_SIDE_EFFECTS__*/
706
620
  function _createCustomError(name, d, b) {
707
621
  safe(objDefine, [d, NAME, { v: name, c: true, e: false }]);
@@ -1446,6 +1360,23 @@ var STR_PRIORITY = "priority";
1446
1360
  var STR_GET_PERF_MGR = "getPerfMgr";
1447
1361
  var STR_NOT_DYNAMIC_ERROR = "Not dynamic - ";
1448
1362
 
1363
+ function _stringToBoolOrDefault(theValue, defaultValue, theConfig) {
1364
+ if (!theValue && isNullOrUndefined(theValue)) {
1365
+ return defaultValue;
1366
+ }
1367
+ if (isBoolean(theValue)) {
1368
+ return theValue;
1369
+ }
1370
+ return asString(theValue)[_DYN_TO_LOWER_CASE ]() === "true";
1371
+ }
1372
+ function cfgDfBoolean(defaultValue, fallBackName) {
1373
+ return {
1374
+ fb: fallBackName,
1375
+ set: _stringToBoolOrDefault,
1376
+ v: !!defaultValue
1377
+ };
1378
+ }
1379
+
1449
1380
  var rCamelCase = /-([a-z])/g;
1450
1381
  var rNormalizeInvalid = /([^\w\d_$])/g;
1451
1382
  var rLeadingNumeric = /^(\d+[\w\d_$])/;
@@ -1617,7 +1548,7 @@ function newId(maxLength) {
1617
1548
  return result;
1618
1549
  }
1619
1550
 
1620
- var version = '3.3.7-nightly3.2504-12';
1551
+ var version = '3.3.7-nightly3.2504-14';
1621
1552
  var instanceName = "." + newId(6);
1622
1553
  var _dataUid = 0;
1623
1554
  function _canAcceptData(target) {
@@ -2283,23 +2214,6 @@ function onConfigChange(config, configHandler, logger) {
2283
2214
  return createDynamicConfig(config, null, logger)[_DYN_WATCH ](configHandler);
2284
2215
  }
2285
2216
 
2286
- function _stringToBoolOrDefault(theValue, defaultValue, theConfig) {
2287
- if (!theValue && isNullOrUndefined(theValue)) {
2288
- return defaultValue;
2289
- }
2290
- if (isBoolean(theValue)) {
2291
- return theValue;
2292
- }
2293
- return asString(theValue)[_DYN_TO_LOWER_CASE ]() === "true";
2294
- }
2295
- function cfgDfBoolean(defaultValue, fallBackName) {
2296
- return {
2297
- fb: fallBackName,
2298
- set: _stringToBoolOrDefault,
2299
- v: !!defaultValue
2300
- };
2301
- }
2302
-
2303
2217
  var _aiNamespace = null;
2304
2218
  function _getExtensionNamespace() {
2305
2219
  var target = getInst("Microsoft");