@microsoft/applicationinsights-channel-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.
- package/browser/es5/{applicationinsights-channel-js.3.3.0-nightly3.2406-07.cjs.js → applicationinsights-channel-js.3.3.0-nightly3.2406-09.cjs.js} +70 -49
- package/browser/es5/applicationinsights-channel-js.3.3.0-nightly3.2406-09.cjs.js.map +1 -0
- package/browser/es5/applicationinsights-channel-js.3.3.0-nightly3.2406-09.cjs.min.js +6 -0
- package/browser/es5/applicationinsights-channel-js.3.3.0-nightly3.2406-09.cjs.min.js.map +1 -0
- package/browser/es5/{applicationinsights-channel-js.3.3.0-nightly3.2406-07.gbl.js → applicationinsights-channel-js.3.3.0-nightly3.2406-09.gbl.js} +72 -51
- package/browser/es5/applicationinsights-channel-js.3.3.0-nightly3.2406-09.gbl.js.map +1 -0
- package/browser/es5/applicationinsights-channel-js.3.3.0-nightly3.2406-09.gbl.min.js +6 -0
- package/browser/es5/applicationinsights-channel-js.3.3.0-nightly3.2406-09.gbl.min.js.map +1 -0
- package/browser/es5/applicationinsights-channel-js.3.3.0-nightly3.2406-09.integrity.json +66 -0
- package/browser/es5/{applicationinsights-channel-js.3.3.0-nightly3.2406-07.js → applicationinsights-channel-js.3.3.0-nightly3.2406-09.js} +72 -51
- package/browser/es5/applicationinsights-channel-js.3.3.0-nightly3.2406-09.js.map +1 -0
- package/browser/es5/applicationinsights-channel-js.3.3.0-nightly3.2406-09.min.js +6 -0
- package/browser/es5/applicationinsights-channel-js.3.3.0-nightly3.2406-09.min.js.map +1 -0
- package/browser/es5/applicationinsights-channel-js.3.cjs.js +69 -48
- package/browser/es5/applicationinsights-channel-js.3.cjs.js.map +1 -1
- package/browser/es5/applicationinsights-channel-js.3.cjs.min.js +2 -2
- package/browser/es5/applicationinsights-channel-js.3.cjs.min.js.map +1 -1
- package/browser/es5/applicationinsights-channel-js.3.gbl.js +71 -50
- package/browser/es5/applicationinsights-channel-js.3.gbl.js.map +1 -1
- package/browser/es5/applicationinsights-channel-js.3.gbl.min.js +2 -2
- package/browser/es5/applicationinsights-channel-js.3.gbl.min.js.map +1 -1
- package/browser/es5/applicationinsights-channel-js.3.integrity.json +25 -25
- package/browser/es5/applicationinsights-channel-js.3.js +71 -50
- package/browser/es5/applicationinsights-channel-js.3.js.map +1 -1
- package/browser/es5/applicationinsights-channel-js.3.min.js +2 -2
- package/browser/es5/applicationinsights-channel-js.3.min.js.map +1 -1
- package/dist/es5/applicationinsights-channel-js.js +69 -48
- package/dist/es5/applicationinsights-channel-js.js.map +1 -1
- package/dist/es5/applicationinsights-channel-js.min.js +2 -2
- package/dist/es5/applicationinsights-channel-js.min.js.map +1 -1
- package/dist-es5/EnvelopeCreator.js +2 -2
- package/dist-es5/EnvelopeCreator.js.map +1 -1
- package/dist-es5/Interfaces.js +1 -1
- package/dist-es5/InternalConstants.js +1 -1
- package/dist-es5/SendBuffer.js +1 -1
- package/dist-es5/Sender.js +13 -3
- package/dist-es5/Sender.js.map +1 -1
- package/dist-es5/Serializer.js +1 -1
- package/dist-es5/TelemetryProcessors/Sample.js +1 -1
- package/dist-es5/TelemetryProcessors/SamplingScoreGenerators/HashCodeScoreGenerator.js +1 -1
- package/dist-es5/TelemetryProcessors/SamplingScoreGenerators/SamplingScoreGenerator.js +1 -1
- package/dist-es5/__DynamicConstants.js +1 -1
- package/dist-es5/applicationinsights-channel-js.js +1 -1
- package/package.json +3 -3
- package/types/applicationinsights-channel-js.d.ts +1 -1
- package/types/applicationinsights-channel-js.namespaced.d.ts +52 -5
- package/browser/es5/applicationinsights-channel-js.3.3.0-nightly3.2406-07.cjs.js.map +0 -1
- package/browser/es5/applicationinsights-channel-js.3.3.0-nightly3.2406-07.cjs.min.js +0 -6
- package/browser/es5/applicationinsights-channel-js.3.3.0-nightly3.2406-07.cjs.min.js.map +0 -1
- package/browser/es5/applicationinsights-channel-js.3.3.0-nightly3.2406-07.gbl.js.map +0 -1
- package/browser/es5/applicationinsights-channel-js.3.3.0-nightly3.2406-07.gbl.min.js +0 -6
- package/browser/es5/applicationinsights-channel-js.3.3.0-nightly3.2406-07.gbl.min.js.map +0 -1
- package/browser/es5/applicationinsights-channel-js.3.3.0-nightly3.2406-07.integrity.json +0 -66
- package/browser/es5/applicationinsights-channel-js.3.3.0-nightly3.2406-07.js.map +0 -1
- package/browser/es5/applicationinsights-channel-js.3.3.0-nightly3.2406-07.min.js +0 -6
- package/browser/es5/applicationinsights-channel-js.3.3.0-nightly3.2406-07.min.js.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Application Insights JavaScript SDK - Channel, 3.3.0-nightly3.2406-
|
|
2
|
+
* Application Insights JavaScript SDK - Channel, 3.3.0-nightly3.2406-09
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*/
|
|
5
5
|
(function (global, factory) {
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
var ObjClass$1 = Object;
|
|
16
16
|
var ObjProto$1 = ObjClass$1[strShimPrototype];
|
|
17
17
|
|
|
18
|
-
/*! https://github.com/nevware21/ts-utils v0.11.
|
|
18
|
+
/*! https://github.com/nevware21/ts-utils v0.11.3 */
|
|
19
19
|
/*#__NO_SIDE_EFFECTS__*/
|
|
20
20
|
function _pureAssign(func1, func2) {
|
|
21
21
|
return func1 || func2;
|
|
@@ -137,14 +137,52 @@
|
|
|
137
137
|
}
|
|
138
138
|
}
|
|
139
139
|
}
|
|
140
|
+
var propMap = {
|
|
141
|
+
e: "enumerable",
|
|
142
|
+
c: "configurable",
|
|
143
|
+
v: "value",
|
|
144
|
+
w: "writable",
|
|
145
|
+
g: "get",
|
|
146
|
+
s: "set"
|
|
147
|
+
};
|
|
148
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
149
|
+
function _createProp(value) {
|
|
150
|
+
var prop = {};
|
|
151
|
+
prop[propMap["c"]] = true;
|
|
152
|
+
prop[propMap["e"]] = true;
|
|
153
|
+
if (value.l) {
|
|
154
|
+
prop.get = function () { return value.l.v; };
|
|
155
|
+
var desc = objGetOwnPropertyDescriptor(value.l, "v");
|
|
156
|
+
if (desc && desc.set) {
|
|
157
|
+
prop.set = function (newValue) {
|
|
158
|
+
value.l.v = newValue;
|
|
159
|
+
};
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
objForEachKey(value, function (key, value) {
|
|
163
|
+
prop[propMap[key]] = isUndefined(value) ? prop[propMap[key]] : value;
|
|
164
|
+
});
|
|
165
|
+
return prop;
|
|
166
|
+
}
|
|
167
|
+
var objDefineProp = ( /*#__PURE__*/_pureRef(ObjClass, "defineProperty"));
|
|
168
|
+
function objDefine(target, key, propDesc) {
|
|
169
|
+
return objDefineProp(target, key, _createProp(propDesc));
|
|
170
|
+
}
|
|
140
171
|
/*#__NO_SIDE_EFFECTS__*/
|
|
141
|
-
function _createKeyValueMap(values, keyType, valueType, completeFn) {
|
|
172
|
+
function _createKeyValueMap(values, keyType, valueType, completeFn, writable) {
|
|
142
173
|
var theMap = {};
|
|
143
174
|
objForEachKey(values, function (key, value) {
|
|
144
|
-
theMap
|
|
145
|
-
theMap
|
|
175
|
+
_assignMapValue(theMap, key, keyType ? value : key, writable);
|
|
176
|
+
_assignMapValue(theMap, value, valueType ? value : key, writable);
|
|
177
|
+
});
|
|
178
|
+
return completeFn ? completeFn(theMap) : theMap;
|
|
179
|
+
}
|
|
180
|
+
function _assignMapValue(theMap, key, value, writable) {
|
|
181
|
+
objDefineProp(theMap, key, {
|
|
182
|
+
value: value,
|
|
183
|
+
enumerable: true,
|
|
184
|
+
writable: !!writable
|
|
146
185
|
});
|
|
147
|
-
return completeFn(theMap);
|
|
148
186
|
}
|
|
149
187
|
var asString = ( /* #__PURE__ */_pureAssign(StrCls));
|
|
150
188
|
var ERROR_TYPE = "[object Error]";
|
|
@@ -181,7 +219,7 @@
|
|
|
181
219
|
if (_objFreeze) {
|
|
182
220
|
objForEachKey(value, function (key, value) {
|
|
183
221
|
if (isArray(value) || isObject(value)) {
|
|
184
|
-
|
|
222
|
+
objDeepFreeze(value);
|
|
185
223
|
}
|
|
186
224
|
});
|
|
187
225
|
}
|
|
@@ -191,20 +229,20 @@
|
|
|
191
229
|
var objGetPrototypeOf = ( /* #__PURE__*/_pureAssign(( /* #__PURE__*/_pureRef(ObjClass, "getPrototypeOf")), _getProto));
|
|
192
230
|
/*#__NO_SIDE_EFFECTS__*/
|
|
193
231
|
function createEnum(values) {
|
|
194
|
-
return _createKeyValueMap(values, 1 , 0 ,
|
|
232
|
+
return _createKeyValueMap(values, 1 , 0 , objFreeze);
|
|
195
233
|
}
|
|
196
234
|
/*#__NO_SIDE_EFFECTS__*/
|
|
197
235
|
function createEnumKeyMap(values) {
|
|
198
|
-
return _createKeyValueMap(values, 0 , 0 ,
|
|
236
|
+
return _createKeyValueMap(values, 0 , 0 , objFreeze);
|
|
199
237
|
}
|
|
200
238
|
/*#__NO_SIDE_EFFECTS__*/
|
|
201
239
|
function createSimpleMap(values) {
|
|
202
240
|
var mapClass = {};
|
|
203
241
|
objForEachKey(values, function (key, value) {
|
|
204
|
-
mapClass
|
|
205
|
-
mapClass
|
|
242
|
+
_assignMapValue(mapClass, key, value[1]);
|
|
243
|
+
_assignMapValue(mapClass, value[0], value[1]);
|
|
206
244
|
});
|
|
207
|
-
return
|
|
245
|
+
return objFreeze(mapClass);
|
|
208
246
|
}
|
|
209
247
|
/*#__NO_SIDE_EFFECTS__*/
|
|
210
248
|
function createTypeMap(values) {
|
|
@@ -328,37 +366,6 @@
|
|
|
328
366
|
}
|
|
329
367
|
return result;
|
|
330
368
|
}
|
|
331
|
-
var propMap = {
|
|
332
|
-
e: "enumerable",
|
|
333
|
-
c: "configurable",
|
|
334
|
-
v: "value",
|
|
335
|
-
w: "writable",
|
|
336
|
-
g: "get",
|
|
337
|
-
s: "set"
|
|
338
|
-
};
|
|
339
|
-
/*#__NO_SIDE_EFFECTS__*/
|
|
340
|
-
function _createProp(value) {
|
|
341
|
-
var prop = {};
|
|
342
|
-
prop[propMap["c"]] = true;
|
|
343
|
-
prop[propMap["e"]] = true;
|
|
344
|
-
if (value.l) {
|
|
345
|
-
prop.get = function () { return value.l.v; };
|
|
346
|
-
var desc = objGetOwnPropertyDescriptor(value.l, "v");
|
|
347
|
-
if (desc && desc.set) {
|
|
348
|
-
prop.set = function (newValue) {
|
|
349
|
-
value.l.v = newValue;
|
|
350
|
-
};
|
|
351
|
-
}
|
|
352
|
-
}
|
|
353
|
-
objForEachKey(value, function (key, value) {
|
|
354
|
-
prop[propMap[key]] = isUndefined(value) ? prop[propMap[key]] : value;
|
|
355
|
-
});
|
|
356
|
-
return prop;
|
|
357
|
-
}
|
|
358
|
-
var objDefineProp = ( /*#__PURE__*/_pureRef(ObjClass, "defineProperty"));
|
|
359
|
-
function objDefine(target, key, propDesc) {
|
|
360
|
-
return objDefineProp(target, key, _createProp(propDesc));
|
|
361
|
-
}
|
|
362
369
|
var _globalLazyTestHooks;
|
|
363
370
|
function _initTestHooks() {
|
|
364
371
|
_globalLazyTestHooks = _getGlobalConfig();
|
|
@@ -1028,6 +1035,13 @@
|
|
|
1028
1035
|
var createEnumStyle = createEnum;
|
|
1029
1036
|
var createValueMap = createTypeMap;
|
|
1030
1037
|
|
|
1038
|
+
var ActiveStatus = createEnumStyle({
|
|
1039
|
+
NONE: 0 ,
|
|
1040
|
+
PENDING: 3 ,
|
|
1041
|
+
INACTIVE: 1 ,
|
|
1042
|
+
ACTIVE: 2
|
|
1043
|
+
});
|
|
1044
|
+
|
|
1031
1045
|
var _DYN_TO_LOWER_CASE$1 = "toLowerCase";
|
|
1032
1046
|
var _DYN_BLK_VAL = "blkVal";
|
|
1033
1047
|
var _DYN_LENGTH$2 = "length";
|
|
@@ -1046,6 +1060,7 @@
|
|
|
1046
1060
|
var _DYN_INITIALIZE$1 = "initialize";
|
|
1047
1061
|
var _DYN_IDENTIFIER = "identifier";
|
|
1048
1062
|
var _DYN_IS_INITIALIZED = "isInitialized";
|
|
1063
|
+
var _DYN_VALUE = "value";
|
|
1049
1064
|
var _DYN_GET_PLUGIN = "getPlugin";
|
|
1050
1065
|
var _DYN_NAME$2 = "name";
|
|
1051
1066
|
var _DYN_TIME = "time";
|
|
@@ -1879,7 +1894,7 @@
|
|
|
1879
1894
|
return result;
|
|
1880
1895
|
}
|
|
1881
1896
|
|
|
1882
|
-
var version = '3.3.0-nightly3.2406-
|
|
1897
|
+
var version = '3.3.0-nightly3.2406-09';
|
|
1883
1898
|
var instanceName = "." + newId(6);
|
|
1884
1899
|
var _dataUid = 0;
|
|
1885
1900
|
function _canAcceptData(target) {
|
|
@@ -3777,7 +3792,7 @@
|
|
|
3777
3792
|
if (!responseHandled) {
|
|
3778
3793
|
responseHandled = true;
|
|
3779
3794
|
if (!result.rejected) {
|
|
3780
|
-
var response_1 = result
|
|
3795
|
+
var response_1 = result[_DYN_VALUE ];
|
|
3781
3796
|
try {
|
|
3782
3797
|
if (!_isOneDs && !response_1.ok) {
|
|
3783
3798
|
_handleError(response_1.statusText);
|
|
@@ -3790,7 +3805,7 @@
|
|
|
3790
3805
|
}
|
|
3791
3806
|
else {
|
|
3792
3807
|
doAwaitResponse(response_1.text(), function (resp) {
|
|
3793
|
-
_onFetchComplete(response_1, payload, resp
|
|
3808
|
+
_onFetchComplete(response_1, payload, resp[_DYN_VALUE ]);
|
|
3794
3809
|
resolveFunc && resolveFunc(true);
|
|
3795
3810
|
});
|
|
3796
3811
|
}
|
|
@@ -5502,7 +5517,7 @@
|
|
|
5502
5517
|
}
|
|
5503
5518
|
}
|
|
5504
5519
|
var EnvelopeCreator = {
|
|
5505
|
-
Version: '3.3.0-nightly3.2406-
|
|
5520
|
+
Version: '3.3.0-nightly3.2406-09'
|
|
5506
5521
|
};
|
|
5507
5522
|
function DependencyEnvelopeCreator(logger, telemetryItem, customUndefinedValue) {
|
|
5508
5523
|
EnvelopeCreatorInit(logger, telemetryItem);
|
|
@@ -6304,6 +6319,12 @@
|
|
|
6304
6319
|
return senderConfig;
|
|
6305
6320
|
}
|
|
6306
6321
|
});
|
|
6322
|
+
if (core.activeStatus() === ActiveStatus.PENDING) {
|
|
6323
|
+
_self.pause();
|
|
6324
|
+
}
|
|
6325
|
+
else if (core.activeStatus() === ActiveStatus.ACTIVE) {
|
|
6326
|
+
_self.resume();
|
|
6327
|
+
}
|
|
6307
6328
|
if (_orgEndpointUrl !== senderConfig.endpointUrl) {
|
|
6308
6329
|
_endpointUrl = _orgEndpointUrl = senderConfig.endpointUrl;
|
|
6309
6330
|
}
|
|
@@ -6352,7 +6373,7 @@
|
|
|
6352
6373
|
_throwInternal(diagLog, 1 , 100 , "Invalid Instrumentation key " + _instrumentationKey);
|
|
6353
6374
|
}
|
|
6354
6375
|
_customHeaders = senderConfig[_DYN_CUSTOM_HEADERS ];
|
|
6355
|
-
if (!isInternalApplicationInsightsEndpoint(_endpointUrl) && _customHeaders && _customHeaders[_DYN_LENGTH ] > 0) {
|
|
6376
|
+
if (isString(_endpointUrl) && !isInternalApplicationInsightsEndpoint(_endpointUrl) && _customHeaders && _customHeaders[_DYN_LENGTH ] > 0) {
|
|
6356
6377
|
arrForEach(_customHeaders, function (customHeader) {
|
|
6357
6378
|
_this.addHeader(customHeader.header, customHeader.value);
|
|
6358
6379
|
});
|