@microsoft/applicationinsights-teechannel-js 3.1.3-nightly3.240329-01 → 3.1.3-nightly3.240403-01
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.
- package/browser/es5/{applicationinsights-teechannel-js.3.1.3-nightly3.240329-01.cjs.js → applicationinsights-teechannel-js.3.1.3-nightly3.240403-01.cjs.js} +41 -38
- package/browser/es5/applicationinsights-teechannel-js.3.1.3-nightly3.240403-01.cjs.js.map +1 -0
- package/browser/es5/applicationinsights-teechannel-js.3.1.3-nightly3.240403-01.cjs.min.js +6 -0
- package/browser/es5/applicationinsights-teechannel-js.3.1.3-nightly3.240403-01.cjs.min.js.map +1 -0
- package/browser/es5/{applicationinsights-teechannel-js.3.1.3-nightly3.240329-01.gbl.js → applicationinsights-teechannel-js.3.1.3-nightly3.240403-01.gbl.js} +43 -40
- package/browser/es5/applicationinsights-teechannel-js.3.1.3-nightly3.240403-01.gbl.js.map +1 -0
- package/browser/es5/applicationinsights-teechannel-js.3.1.3-nightly3.240403-01.gbl.min.js +6 -0
- package/browser/es5/applicationinsights-teechannel-js.3.1.3-nightly3.240403-01.gbl.min.js.map +1 -0
- package/browser/es5/applicationinsights-teechannel-js.3.1.3-nightly3.240403-01.integrity.json +66 -0
- package/browser/es5/{applicationinsights-teechannel-js.3.1.3-nightly3.240329-01.js → applicationinsights-teechannel-js.3.1.3-nightly3.240403-01.js} +43 -40
- package/browser/es5/applicationinsights-teechannel-js.3.1.3-nightly3.240403-01.js.map +1 -0
- package/browser/es5/applicationinsights-teechannel-js.3.1.3-nightly3.240403-01.min.js +6 -0
- package/browser/es5/applicationinsights-teechannel-js.3.1.3-nightly3.240403-01.min.js.map +1 -0
- package/browser/es5/applicationinsights-teechannel-js.3.cjs.js +40 -37
- package/browser/es5/applicationinsights-teechannel-js.3.cjs.js.map +1 -1
- package/browser/es5/applicationinsights-teechannel-js.3.cjs.min.js +2 -2
- package/browser/es5/applicationinsights-teechannel-js.3.cjs.min.js.map +1 -1
- package/browser/es5/applicationinsights-teechannel-js.3.gbl.js +42 -39
- package/browser/es5/applicationinsights-teechannel-js.3.gbl.js.map +1 -1
- package/browser/es5/applicationinsights-teechannel-js.3.gbl.min.js +2 -2
- package/browser/es5/applicationinsights-teechannel-js.3.gbl.min.js.map +1 -1
- package/browser/es5/applicationinsights-teechannel-js.3.integrity.json +25 -25
- package/browser/es5/applicationinsights-teechannel-js.3.js +42 -39
- package/browser/es5/applicationinsights-teechannel-js.3.js.map +1 -1
- package/browser/es5/applicationinsights-teechannel-js.3.min.js +2 -2
- package/browser/es5/applicationinsights-teechannel-js.3.min.js.map +1 -1
- package/dist/es5/applicationinsights-teechannel-js.js +40 -37
- package/dist/es5/applicationinsights-teechannel-js.js.map +1 -1
- package/dist/es5/applicationinsights-teechannel-js.min.js +2 -2
- package/dist/es5/applicationinsights-teechannel-js.min.js.map +1 -1
- package/dist-es5/ChannelController.js +1 -1
- package/dist-es5/Interfaces/ITeeChannelConfig.js +1 -1
- package/dist-es5/TeeChannel.js +1 -1
- package/dist-es5/__DynamicConstants.js +1 -1
- package/dist-es5/applicationinsights-teechannel-js.js +1 -1
- package/package.json +3 -3
- package/types/applicationinsights-teechannel-js.d.ts +1 -1
- package/types/applicationinsights-teechannel-js.namespaced.d.ts +1 -28
- package/browser/es5/applicationinsights-teechannel-js.3.1.3-nightly3.240329-01.cjs.js.map +0 -1
- package/browser/es5/applicationinsights-teechannel-js.3.1.3-nightly3.240329-01.cjs.min.js +0 -6
- package/browser/es5/applicationinsights-teechannel-js.3.1.3-nightly3.240329-01.cjs.min.js.map +0 -1
- package/browser/es5/applicationinsights-teechannel-js.3.1.3-nightly3.240329-01.gbl.js.map +0 -1
- package/browser/es5/applicationinsights-teechannel-js.3.1.3-nightly3.240329-01.gbl.min.js +0 -6
- package/browser/es5/applicationinsights-teechannel-js.3.1.3-nightly3.240329-01.gbl.min.js.map +0 -1
- package/browser/es5/applicationinsights-teechannel-js.3.1.3-nightly3.240329-01.integrity.json +0 -66
- package/browser/es5/applicationinsights-teechannel-js.3.1.3-nightly3.240329-01.js.map +0 -1
- package/browser/es5/applicationinsights-teechannel-js.3.1.3-nightly3.240329-01.min.js +0 -6
- package/browser/es5/applicationinsights-teechannel-js.3.1.3-nightly3.240329-01.min.js.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Application Insights JavaScript SDK - Tee Channel, 3.1.3-nightly3.
|
|
2
|
+
* Application Insights JavaScript SDK - Tee Channel, 3.1.3-nightly3.240403-01
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*/
|
|
5
5
|
(function (global, factory) {
|
|
@@ -1054,21 +1054,25 @@
|
|
|
1054
1054
|
throw new aggregationErrorType(theMessage, sourceErrors || []);
|
|
1055
1055
|
}
|
|
1056
1056
|
|
|
1057
|
-
var
|
|
1058
|
-
|
|
1057
|
+
var STR_PROMISE = "Promise";
|
|
1058
|
+
var REJECTED = "rejected";
|
|
1059
|
+
|
|
1060
|
+
var STRING_STATES = [
|
|
1061
|
+
"pending", "resolving", "resolved", REJECTED
|
|
1059
1062
|
];
|
|
1060
1063
|
|
|
1061
1064
|
var DISPATCH_EVENT = "dispatchEvent";
|
|
1062
1065
|
var _hasInitEvent;
|
|
1066
|
+
function _hasInitEventFn(doc) {
|
|
1067
|
+
var evt;
|
|
1068
|
+
if (doc && doc.createEvent) {
|
|
1069
|
+
evt = doc.createEvent("Event");
|
|
1070
|
+
}
|
|
1071
|
+
return (!!evt && evt.initEvent);
|
|
1072
|
+
}
|
|
1063
1073
|
function emitEvent(target, evtName, populateEvent, useNewEvent) {
|
|
1064
1074
|
var doc = getDocument();
|
|
1065
|
-
!_hasInitEvent && (_hasInitEvent =
|
|
1066
|
-
var evt;
|
|
1067
|
-
if (doc && doc.createEvent) {
|
|
1068
|
-
evt = doc.createEvent("Event");
|
|
1069
|
-
}
|
|
1070
|
-
return (!!evt && evt.initEvent);
|
|
1071
|
-
}, null));
|
|
1075
|
+
!_hasInitEvent && (_hasInitEvent = createCachedValue(!!safe(_hasInitEventFn, [doc]).v));
|
|
1072
1076
|
var theEvt = _hasInitEvent.v ? doc.createEvent("Event") : (useNewEvent ? new Event(evtName) : {});
|
|
1073
1077
|
populateEvent && populateEvent(theEvt);
|
|
1074
1078
|
if (_hasInitEvent.v) {
|
|
@@ -1089,8 +1093,6 @@
|
|
|
1089
1093
|
}
|
|
1090
1094
|
}
|
|
1091
1095
|
|
|
1092
|
-
var STR_PROMISE = "Promise";
|
|
1093
|
-
|
|
1094
1096
|
var NODE_UNHANDLED_REJECTION = "unhandledRejection";
|
|
1095
1097
|
var UNHANDLED_REJECTION = NODE_UNHANDLED_REJECTION.toLowerCase();
|
|
1096
1098
|
var _unhandledRejectionTimeout = 10;
|
|
@@ -1111,7 +1113,7 @@
|
|
|
1111
1113
|
var _unHandledRejectionHandler = null;
|
|
1112
1114
|
var _thePromise;
|
|
1113
1115
|
!_hasPromiseRejectionEvent && (_hasPromiseRejectionEvent = lazySafeGetInst(STR_PROMISE + "RejectionEvent"));
|
|
1114
|
-
|
|
1116
|
+
function _then(onResolved, onRejected) {
|
|
1115
1117
|
try {
|
|
1116
1118
|
_handled = true;
|
|
1117
1119
|
_unHandledRejectionHandler && _unHandledRejectionHandler.cancel();
|
|
@@ -1146,11 +1148,11 @@
|
|
|
1146
1148
|
}
|
|
1147
1149
|
finally {
|
|
1148
1150
|
}
|
|
1149
|
-
}
|
|
1150
|
-
|
|
1151
|
+
}
|
|
1152
|
+
function _catch(onRejected) {
|
|
1151
1153
|
return _then(undefined, onRejected);
|
|
1152
|
-
}
|
|
1153
|
-
|
|
1154
|
+
}
|
|
1155
|
+
function _finally(onFinally) {
|
|
1154
1156
|
var thenFinally = onFinally;
|
|
1155
1157
|
var catchFinally = onFinally;
|
|
1156
1158
|
if (isFunction(onFinally)) {
|
|
@@ -1164,21 +1166,21 @@
|
|
|
1164
1166
|
};
|
|
1165
1167
|
}
|
|
1166
1168
|
return _then(thenFinally, catchFinally);
|
|
1167
|
-
}
|
|
1168
|
-
|
|
1169
|
+
}
|
|
1170
|
+
function _strState() {
|
|
1169
1171
|
return STRING_STATES[_state];
|
|
1170
|
-
}
|
|
1171
|
-
|
|
1172
|
+
}
|
|
1173
|
+
function _processQueue() {
|
|
1172
1174
|
if (_queue.length > 0) {
|
|
1173
1175
|
var pending = _queue.slice();
|
|
1174
1176
|
_queue = [];
|
|
1175
1177
|
_handled = true;
|
|
1176
|
-
processor(pending);
|
|
1177
1178
|
_unHandledRejectionHandler && _unHandledRejectionHandler.cancel();
|
|
1178
1179
|
_unHandledRejectionHandler = null;
|
|
1180
|
+
processor(pending);
|
|
1179
1181
|
}
|
|
1180
|
-
}
|
|
1181
|
-
|
|
1182
|
+
}
|
|
1183
|
+
function _createSettleIfFn(newState, allowState) {
|
|
1182
1184
|
return function (theValue) {
|
|
1183
1185
|
if (_state === allowState) {
|
|
1184
1186
|
if (newState === 2 && isPromiseLike(theValue)) {
|
|
@@ -1195,9 +1197,10 @@
|
|
|
1195
1197
|
}
|
|
1196
1198
|
}
|
|
1197
1199
|
};
|
|
1198
|
-
}
|
|
1199
|
-
|
|
1200
|
+
}
|
|
1201
|
+
function _notifyUnhandledRejection() {
|
|
1200
1202
|
if (!_handled) {
|
|
1203
|
+
_handled = true;
|
|
1201
1204
|
if (isNode()) {
|
|
1202
1205
|
process.emit(NODE_UNHANDLED_REJECTION, _settledValue, _thePromise);
|
|
1203
1206
|
}
|
|
@@ -1210,7 +1213,7 @@
|
|
|
1210
1213
|
}, !!_hasPromiseRejectionEvent.v);
|
|
1211
1214
|
}
|
|
1212
1215
|
}
|
|
1213
|
-
}
|
|
1216
|
+
}
|
|
1214
1217
|
_thePromise = {
|
|
1215
1218
|
then: _then,
|
|
1216
1219
|
"catch": _catch,
|
|
@@ -1222,9 +1225,9 @@
|
|
|
1222
1225
|
if (hasSymbol()) {
|
|
1223
1226
|
_thePromise[getKnownSymbol(11 )] = "IPromise";
|
|
1224
1227
|
}
|
|
1225
|
-
|
|
1226
|
-
return "IPromise" + ("") + " " + _strState() + (_hasResolved ? (" - " + dumpFnObj(_settledValue)) : "");
|
|
1227
|
-
}
|
|
1228
|
+
function _toString() {
|
|
1229
|
+
return "IPromise" + ("") + " " + _strState() + (_hasResolved ? (" - " + dumpFnObj(_settledValue)) : "") + ("");
|
|
1230
|
+
}
|
|
1228
1231
|
_thePromise.toString = _toString;
|
|
1229
1232
|
(function _initialize() {
|
|
1230
1233
|
if (!isFunction(executor)) {
|
|
@@ -1241,7 +1244,7 @@
|
|
|
1241
1244
|
return _thePromise;
|
|
1242
1245
|
}
|
|
1243
1246
|
|
|
1244
|
-
|
|
1247
|
+
function syncItemProcessor(pending) {
|
|
1245
1248
|
arrForEach(pending, function (fn) {
|
|
1246
1249
|
try {
|
|
1247
1250
|
fn();
|
|
@@ -1249,12 +1252,12 @@
|
|
|
1249
1252
|
catch (e) {
|
|
1250
1253
|
}
|
|
1251
1254
|
});
|
|
1252
|
-
}
|
|
1255
|
+
}
|
|
1253
1256
|
function timeoutItemProcessor(timeout) {
|
|
1254
1257
|
var callbackTimeout = isNumber(timeout) ? timeout : 0;
|
|
1255
1258
|
return function (pending) {
|
|
1256
1259
|
scheduleTimeout(function () {
|
|
1257
|
-
|
|
1260
|
+
syncItemProcessor(pending);
|
|
1258
1261
|
}, callbackTimeout);
|
|
1259
1262
|
};
|
|
1260
1263
|
}
|
|
@@ -1263,10 +1266,10 @@
|
|
|
1263
1266
|
return _createPromise(createAsyncPromise, timeoutItemProcessor(timeout), executor, timeout);
|
|
1264
1267
|
}
|
|
1265
1268
|
|
|
1266
|
-
var
|
|
1269
|
+
var _promiseCls;
|
|
1267
1270
|
function createNativePromise(executor, timeout) {
|
|
1268
|
-
!
|
|
1269
|
-
var PrmCls =
|
|
1271
|
+
!_promiseCls && (_promiseCls = createCachedValue((safe(getInst, [STR_PROMISE]).v) || null));
|
|
1272
|
+
var PrmCls = _promiseCls.v;
|
|
1270
1273
|
if (!PrmCls) {
|
|
1271
1274
|
return createAsyncPromise(executor);
|
|
1272
1275
|
}
|
|
@@ -1296,7 +1299,7 @@
|
|
|
1296
1299
|
|
|
1297
1300
|
var _promiseCreator;
|
|
1298
1301
|
function createPromise(executor, timeout) {
|
|
1299
|
-
!_promiseCreator && (_promiseCreator =
|
|
1302
|
+
!_promiseCreator && (_promiseCreator = createCachedValue(createNativePromise));
|
|
1300
1303
|
return _promiseCreator.v.call(this, executor, timeout);
|
|
1301
1304
|
}
|
|
1302
1305
|
|