@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,11 +1,11 @@
|
|
|
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) {
|
|
6
6
|
var undef = "undefined";
|
|
7
|
-
var nsKey, key, nm, theExports = {}, modName = "
|
|
8
|
-
var mods={}, modDetail=mods[modName]={}, ver="3.3.0-nightly3.2406-
|
|
7
|
+
var nsKey, key, nm, theExports = {}, modName = "es5_applicationinsights_channel_js_3_3_0_nightly3_2406_09", msMod="__ms$mod__";
|
|
8
|
+
var mods={}, modDetail=mods[modName]={}, ver="3.3.0-nightly3.2406-09";
|
|
9
9
|
var baseNs=global, nsKey="Microsoft", baseNs=baseNs[nsKey]=(baseNs[nsKey]||{});
|
|
10
10
|
// Versioned namespace "Microsoft.ApplicationInsights3"
|
|
11
11
|
var exportNs=baseNs, nsKey="ApplicationInsights3", exportNs=exportNs[nsKey]=(exportNs[nsKey]||{});
|
|
@@ -33,7 +33,7 @@ var strShimPrototype = "prototype";
|
|
|
33
33
|
var ObjClass$1 = Object;
|
|
34
34
|
var ObjProto$1 = ObjClass$1[strShimPrototype];
|
|
35
35
|
|
|
36
|
-
/*! https://github.com/nevware21/ts-utils v0.11.
|
|
36
|
+
/*! https://github.com/nevware21/ts-utils v0.11.3 */
|
|
37
37
|
/*#__NO_SIDE_EFFECTS__*/
|
|
38
38
|
function _pureAssign(func1, func2) {
|
|
39
39
|
return func1 || func2;
|
|
@@ -155,14 +155,52 @@ function objForEachKey(theObject, callbackfn, thisArg) {
|
|
|
155
155
|
}
|
|
156
156
|
}
|
|
157
157
|
}
|
|
158
|
+
var propMap = {
|
|
159
|
+
e: "enumerable",
|
|
160
|
+
c: "configurable",
|
|
161
|
+
v: "value",
|
|
162
|
+
w: "writable",
|
|
163
|
+
g: "get",
|
|
164
|
+
s: "set"
|
|
165
|
+
};
|
|
166
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
167
|
+
function _createProp(value) {
|
|
168
|
+
var prop = {};
|
|
169
|
+
prop[propMap["c"]] = true;
|
|
170
|
+
prop[propMap["e"]] = true;
|
|
171
|
+
if (value.l) {
|
|
172
|
+
prop.get = function () { return value.l.v; };
|
|
173
|
+
var desc = objGetOwnPropertyDescriptor(value.l, "v");
|
|
174
|
+
if (desc && desc.set) {
|
|
175
|
+
prop.set = function (newValue) {
|
|
176
|
+
value.l.v = newValue;
|
|
177
|
+
};
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
objForEachKey(value, function (key, value) {
|
|
181
|
+
prop[propMap[key]] = isUndefined(value) ? prop[propMap[key]] : value;
|
|
182
|
+
});
|
|
183
|
+
return prop;
|
|
184
|
+
}
|
|
185
|
+
var objDefineProp = ( /*#__PURE__*/_pureRef(ObjClass, "defineProperty"));
|
|
186
|
+
function objDefine(target, key, propDesc) {
|
|
187
|
+
return objDefineProp(target, key, _createProp(propDesc));
|
|
188
|
+
}
|
|
158
189
|
/*#__NO_SIDE_EFFECTS__*/
|
|
159
|
-
function _createKeyValueMap(values, keyType, valueType, completeFn) {
|
|
190
|
+
function _createKeyValueMap(values, keyType, valueType, completeFn, writable) {
|
|
160
191
|
var theMap = {};
|
|
161
192
|
objForEachKey(values, function (key, value) {
|
|
162
|
-
theMap
|
|
163
|
-
theMap
|
|
193
|
+
_assignMapValue(theMap, key, keyType ? value : key, writable);
|
|
194
|
+
_assignMapValue(theMap, value, valueType ? value : key, writable);
|
|
195
|
+
});
|
|
196
|
+
return completeFn ? completeFn(theMap) : theMap;
|
|
197
|
+
}
|
|
198
|
+
function _assignMapValue(theMap, key, value, writable) {
|
|
199
|
+
objDefineProp(theMap, key, {
|
|
200
|
+
value: value,
|
|
201
|
+
enumerable: true,
|
|
202
|
+
writable: !!writable
|
|
164
203
|
});
|
|
165
|
-
return completeFn(theMap);
|
|
166
204
|
}
|
|
167
205
|
var asString = ( /* #__PURE__ */_pureAssign(StrCls));
|
|
168
206
|
var ERROR_TYPE = "[object Error]";
|
|
@@ -199,7 +237,7 @@ function objDeepFreeze(value) {
|
|
|
199
237
|
if (_objFreeze) {
|
|
200
238
|
objForEachKey(value, function (key, value) {
|
|
201
239
|
if (isArray(value) || isObject(value)) {
|
|
202
|
-
|
|
240
|
+
objDeepFreeze(value);
|
|
203
241
|
}
|
|
204
242
|
});
|
|
205
243
|
}
|
|
@@ -209,20 +247,20 @@ var objFreeze = ( /* #__PURE__*/_pureAssign(_objFreeze, _doNothing));
|
|
|
209
247
|
var objGetPrototypeOf = ( /* #__PURE__*/_pureAssign(( /* #__PURE__*/_pureRef(ObjClass, "getPrototypeOf")), _getProto));
|
|
210
248
|
/*#__NO_SIDE_EFFECTS__*/
|
|
211
249
|
function createEnum(values) {
|
|
212
|
-
return _createKeyValueMap(values, 1 , 0 ,
|
|
250
|
+
return _createKeyValueMap(values, 1 , 0 , objFreeze);
|
|
213
251
|
}
|
|
214
252
|
/*#__NO_SIDE_EFFECTS__*/
|
|
215
253
|
function createEnumKeyMap(values) {
|
|
216
|
-
return _createKeyValueMap(values, 0 , 0 ,
|
|
254
|
+
return _createKeyValueMap(values, 0 , 0 , objFreeze);
|
|
217
255
|
}
|
|
218
256
|
/*#__NO_SIDE_EFFECTS__*/
|
|
219
257
|
function createSimpleMap(values) {
|
|
220
258
|
var mapClass = {};
|
|
221
259
|
objForEachKey(values, function (key, value) {
|
|
222
|
-
mapClass
|
|
223
|
-
mapClass
|
|
260
|
+
_assignMapValue(mapClass, key, value[1]);
|
|
261
|
+
_assignMapValue(mapClass, value[0], value[1]);
|
|
224
262
|
});
|
|
225
|
-
return
|
|
263
|
+
return objFreeze(mapClass);
|
|
226
264
|
}
|
|
227
265
|
/*#__NO_SIDE_EFFECTS__*/
|
|
228
266
|
function createTypeMap(values) {
|
|
@@ -346,37 +384,6 @@ function polyGetKnownSymbol(name) {
|
|
|
346
384
|
}
|
|
347
385
|
return result;
|
|
348
386
|
}
|
|
349
|
-
var propMap = {
|
|
350
|
-
e: "enumerable",
|
|
351
|
-
c: "configurable",
|
|
352
|
-
v: "value",
|
|
353
|
-
w: "writable",
|
|
354
|
-
g: "get",
|
|
355
|
-
s: "set"
|
|
356
|
-
};
|
|
357
|
-
/*#__NO_SIDE_EFFECTS__*/
|
|
358
|
-
function _createProp(value) {
|
|
359
|
-
var prop = {};
|
|
360
|
-
prop[propMap["c"]] = true;
|
|
361
|
-
prop[propMap["e"]] = true;
|
|
362
|
-
if (value.l) {
|
|
363
|
-
prop.get = function () { return value.l.v; };
|
|
364
|
-
var desc = objGetOwnPropertyDescriptor(value.l, "v");
|
|
365
|
-
if (desc && desc.set) {
|
|
366
|
-
prop.set = function (newValue) {
|
|
367
|
-
value.l.v = newValue;
|
|
368
|
-
};
|
|
369
|
-
}
|
|
370
|
-
}
|
|
371
|
-
objForEachKey(value, function (key, value) {
|
|
372
|
-
prop[propMap[key]] = isUndefined(value) ? prop[propMap[key]] : value;
|
|
373
|
-
});
|
|
374
|
-
return prop;
|
|
375
|
-
}
|
|
376
|
-
var objDefineProp = ( /*#__PURE__*/_pureRef(ObjClass, "defineProperty"));
|
|
377
|
-
function objDefine(target, key, propDesc) {
|
|
378
|
-
return objDefineProp(target, key, _createProp(propDesc));
|
|
379
|
-
}
|
|
380
387
|
var _globalLazyTestHooks;
|
|
381
388
|
function _initTestHooks() {
|
|
382
389
|
_globalLazyTestHooks = _getGlobalConfig();
|
|
@@ -1046,6 +1053,13 @@ dynamicProto[DynProtoDefaultOptions] = _gblInst.o;
|
|
|
1046
1053
|
var createEnumStyle = createEnum;
|
|
1047
1054
|
var createValueMap = createTypeMap;
|
|
1048
1055
|
|
|
1056
|
+
var ActiveStatus = createEnumStyle({
|
|
1057
|
+
NONE: 0 ,
|
|
1058
|
+
PENDING: 3 ,
|
|
1059
|
+
INACTIVE: 1 ,
|
|
1060
|
+
ACTIVE: 2
|
|
1061
|
+
});
|
|
1062
|
+
|
|
1049
1063
|
var _DYN_TO_LOWER_CASE$1 = "toLowerCase";
|
|
1050
1064
|
var _DYN_BLK_VAL = "blkVal";
|
|
1051
1065
|
var _DYN_LENGTH$2 = "length";
|
|
@@ -1064,6 +1078,7 @@ var _DYN_CANCEL = "cancel";
|
|
|
1064
1078
|
var _DYN_INITIALIZE$1 = "initialize";
|
|
1065
1079
|
var _DYN_IDENTIFIER = "identifier";
|
|
1066
1080
|
var _DYN_IS_INITIALIZED = "isInitialized";
|
|
1081
|
+
var _DYN_VALUE = "value";
|
|
1067
1082
|
var _DYN_GET_PLUGIN = "getPlugin";
|
|
1068
1083
|
var _DYN_NAME$2 = "name";
|
|
1069
1084
|
var _DYN_TIME = "time";
|
|
@@ -1897,7 +1912,7 @@ function newId(maxLength) {
|
|
|
1897
1912
|
return result;
|
|
1898
1913
|
}
|
|
1899
1914
|
|
|
1900
|
-
var version = '3.3.0-nightly3.2406-
|
|
1915
|
+
var version = '3.3.0-nightly3.2406-09';
|
|
1901
1916
|
var instanceName = "." + newId(6);
|
|
1902
1917
|
var _dataUid = 0;
|
|
1903
1918
|
function _canAcceptData(target) {
|
|
@@ -3795,7 +3810,7 @@ var SenderPostManager = /** @class */ (function () {
|
|
|
3795
3810
|
if (!responseHandled) {
|
|
3796
3811
|
responseHandled = true;
|
|
3797
3812
|
if (!result.rejected) {
|
|
3798
|
-
var response_1 = result
|
|
3813
|
+
var response_1 = result[_DYN_VALUE ];
|
|
3799
3814
|
try {
|
|
3800
3815
|
if (!_isOneDs && !response_1.ok) {
|
|
3801
3816
|
_handleError(response_1.statusText);
|
|
@@ -3808,7 +3823,7 @@ var SenderPostManager = /** @class */ (function () {
|
|
|
3808
3823
|
}
|
|
3809
3824
|
else {
|
|
3810
3825
|
doAwaitResponse(response_1.text(), function (resp) {
|
|
3811
|
-
_onFetchComplete(response_1, payload, resp
|
|
3826
|
+
_onFetchComplete(response_1, payload, resp[_DYN_VALUE ]);
|
|
3812
3827
|
resolveFunc && resolveFunc(true);
|
|
3813
3828
|
});
|
|
3814
3829
|
}
|
|
@@ -5520,7 +5535,7 @@ function EnvelopeCreatorInit(logger, telemetryItem) {
|
|
|
5520
5535
|
}
|
|
5521
5536
|
}
|
|
5522
5537
|
var EnvelopeCreator = {
|
|
5523
|
-
Version: '3.3.0-nightly3.2406-
|
|
5538
|
+
Version: '3.3.0-nightly3.2406-09'
|
|
5524
5539
|
};
|
|
5525
5540
|
function DependencyEnvelopeCreator(logger, telemetryItem, customUndefinedValue) {
|
|
5526
5541
|
EnvelopeCreatorInit(logger, telemetryItem);
|
|
@@ -6322,6 +6337,12 @@ var Sender = /** @class */ (function (_super) {
|
|
|
6322
6337
|
return senderConfig;
|
|
6323
6338
|
}
|
|
6324
6339
|
});
|
|
6340
|
+
if (core.activeStatus() === ActiveStatus.PENDING) {
|
|
6341
|
+
_self.pause();
|
|
6342
|
+
}
|
|
6343
|
+
else if (core.activeStatus() === ActiveStatus.ACTIVE) {
|
|
6344
|
+
_self.resume();
|
|
6345
|
+
}
|
|
6325
6346
|
if (_orgEndpointUrl !== senderConfig.endpointUrl) {
|
|
6326
6347
|
_endpointUrl = _orgEndpointUrl = senderConfig.endpointUrl;
|
|
6327
6348
|
}
|
|
@@ -6370,7 +6391,7 @@ var Sender = /** @class */ (function (_super) {
|
|
|
6370
6391
|
_throwInternal(diagLog, 1 , 100 , "Invalid Instrumentation key " + _instrumentationKey);
|
|
6371
6392
|
}
|
|
6372
6393
|
_customHeaders = senderConfig[_DYN_CUSTOM_HEADERS ];
|
|
6373
|
-
if (!isInternalApplicationInsightsEndpoint(_endpointUrl) && _customHeaders && _customHeaders[_DYN_LENGTH ] > 0) {
|
|
6394
|
+
if (isString(_endpointUrl) && !isInternalApplicationInsightsEndpoint(_endpointUrl) && _customHeaders && _customHeaders[_DYN_LENGTH ] > 0) {
|
|
6374
6395
|
arrForEach(_customHeaders, function (customHeader) {
|
|
6375
6396
|
_this.addHeader(customHeader.header, customHeader.value);
|
|
6376
6397
|
});
|
|
@@ -7086,4 +7107,4 @@ var Sender = /** @class */ (function (_super) {
|
|
|
7086
7107
|
exports.Sender = Sender;
|
|
7087
7108
|
|
|
7088
7109
|
}));
|
|
7089
|
-
//# sourceMappingURL=applicationinsights-channel-js.3.3.0-nightly3.2406-
|
|
7110
|
+
//# sourceMappingURL=applicationinsights-channel-js.3.3.0-nightly3.2406-09.gbl.js.map
|