@microsoft/applicationinsights-channel-js 3.3.3-nightly3.2409-10 → 3.3.3-nightly3.2409-11
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.3-nightly3.2409-10.cjs.js → applicationinsights-channel-js.3.3.3-nightly3.2409-11.cjs.js} +15 -8
- package/browser/es5/{applicationinsights-channel-js.3.3.3-nightly3.2409-10.cjs.js.map → applicationinsights-channel-js.3.3.3-nightly3.2409-11.cjs.js.map} +1 -1
- package/browser/es5/applicationinsights-channel-js.3.3.3-nightly3.2409-11.cjs.min.js +6 -0
- package/browser/es5/{applicationinsights-channel-js.3.3.3-nightly3.2409-10.cjs.min.js.map → applicationinsights-channel-js.3.3.3-nightly3.2409-11.cjs.min.js.map} +1 -1
- package/browser/es5/{applicationinsights-channel-js.3.3.3-nightly3.2409-10.gbl.js → applicationinsights-channel-js.3.3.3-nightly3.2409-11.gbl.js} +17 -10
- package/browser/es5/{applicationinsights-channel-js.3.3.3-nightly3.2409-10.gbl.js.map → applicationinsights-channel-js.3.3.3-nightly3.2409-11.gbl.js.map} +1 -1
- package/browser/es5/applicationinsights-channel-js.3.3.3-nightly3.2409-11.gbl.min.js +6 -0
- package/browser/es5/{applicationinsights-channel-js.3.3.3-nightly3.2409-10.gbl.min.js.map → applicationinsights-channel-js.3.3.3-nightly3.2409-11.gbl.min.js.map} +1 -1
- package/browser/es5/applicationinsights-channel-js.3.3.3-nightly3.2409-11.integrity.json +66 -0
- package/browser/es5/{applicationinsights-channel-js.3.3.3-nightly3.2409-10.js → applicationinsights-channel-js.3.3.3-nightly3.2409-11.js} +17 -10
- package/browser/es5/{applicationinsights-channel-js.3.3.3-nightly3.2409-10.js.map → applicationinsights-channel-js.3.3.3-nightly3.2409-11.js.map} +1 -1
- package/browser/es5/applicationinsights-channel-js.3.3.3-nightly3.2409-11.min.js +6 -0
- package/browser/es5/{applicationinsights-channel-js.3.3.3-nightly3.2409-10.min.js.map → applicationinsights-channel-js.3.3.3-nightly3.2409-11.min.js.map} +1 -1
- package/browser/es5/applicationinsights-channel-js.3.cjs.js +14 -7
- 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 +16 -9
- 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 +16 -9
- 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 +14 -7
- 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 +15 -6
- 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 +3 -2
- package/dist-es5/__DynamicConstants.js.map +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 +1 -1
- package/browser/es5/applicationinsights-channel-js.3.3.3-nightly3.2409-10.cjs.min.js +0 -6
- package/browser/es5/applicationinsights-channel-js.3.3.3-nightly3.2409-10.gbl.min.js +0 -6
- package/browser/es5/applicationinsights-channel-js.3.3.3-nightly3.2409-10.integrity.json +0 -66
- package/browser/es5/applicationinsights-channel-js.3.3.3-nightly3.2409-10.min.js +0 -6
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Application Insights JavaScript SDK - Channel, 3.3.3-nightly3.2409-
|
|
2
|
+
* Application Insights JavaScript SDK - Channel, 3.3.3-nightly3.2409-11
|
|
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.3-nightly3.2409-
|
|
7
|
+
var nsKey, key, nm, theExports = {}, modName = "es5_applicationinsights_channel_js_3_3_3_nightly3_2409_11", msMod="__ms$mod__";
|
|
8
|
+
var mods={}, modDetail=mods[modName]={}, ver="3.3.3-nightly3.2409-11";
|
|
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]||{});
|
|
@@ -1912,7 +1912,7 @@ function newId(maxLength) {
|
|
|
1912
1912
|
return result;
|
|
1913
1913
|
}
|
|
1914
1914
|
|
|
1915
|
-
var version = '3.3.3-nightly3.2409-
|
|
1915
|
+
var version = '3.3.3-nightly3.2409-11';
|
|
1916
1916
|
var instanceName = "." + newId(6);
|
|
1917
1917
|
var _dataUid = 0;
|
|
1918
1918
|
function _canAcceptData(target) {
|
|
@@ -5402,6 +5402,8 @@ var _DYN_TRIGGER_SEND = "triggerSend";
|
|
|
5402
5402
|
var _DYN_DIAG_LOG = "diagLog";
|
|
5403
5403
|
var _DYN_INITIALIZE = "initialize";
|
|
5404
5404
|
var _DYN__SENDER = "_sender";
|
|
5405
|
+
var _DYN_ENDPOINT_URL = "endpointUrl";
|
|
5406
|
+
var _DYN_INSTRUMENTATION_KEY = "instrumentationKey";
|
|
5405
5407
|
var _DYN_CUSTOM_HEADERS = "customHeaders";
|
|
5406
5408
|
var _DYN_MAX_BATCH_SIZE_IN_BY1 = "maxBatchSizeInBytes";
|
|
5407
5409
|
var _DYN_ONUNLOAD_DISABLE_BEA2 = "onunloadDisableBeacon";
|
|
@@ -5412,7 +5414,6 @@ var _DYN_ENABLE_SESSION_STORA5 = "enableSessionStorageBuffer";
|
|
|
5412
5414
|
var _DYN__BUFFER = "_buffer";
|
|
5413
5415
|
var _DYN_ONUNLOAD_DISABLE_FET6 = "onunloadDisableFetch";
|
|
5414
5416
|
var _DYN_DISABLE_SEND_BEACON_7 = "disableSendBeaconSplit";
|
|
5415
|
-
var _DYN_INSTRUMENTATION_KEY = "instrumentationKey";
|
|
5416
5417
|
var _DYN_ENABLE_SEND_PROMISE = "enableSendPromise";
|
|
5417
5418
|
var _DYN_GET_SENDER_INST = "getSenderInst";
|
|
5418
5419
|
var _DYN_UNLOAD_TRANSPORTS = "unloadTransports";
|
|
@@ -5541,7 +5542,7 @@ function EnvelopeCreatorInit(logger, telemetryItem) {
|
|
|
5541
5542
|
}
|
|
5542
5543
|
}
|
|
5543
5544
|
var EnvelopeCreator = {
|
|
5544
|
-
Version: '3.3.3-nightly3.2409-
|
|
5545
|
+
Version: '3.3.3-nightly3.2409-11'
|
|
5545
5546
|
};
|
|
5546
5547
|
function DependencyEnvelopeCreator(logger, telemetryItem, customUndefinedValue) {
|
|
5547
5548
|
EnvelopeCreatorInit(logger, telemetryItem);
|
|
@@ -6338,6 +6339,12 @@ var Sender = /** @class */ (function (_super) {
|
|
|
6338
6339
|
}
|
|
6339
6340
|
var ctx = createProcessTelemetryContext(null, config, core);
|
|
6340
6341
|
var senderConfig = ctx.getExtCfg(identifier, defaultAppInsightsChannelConfig);
|
|
6342
|
+
if (isPromiseLike(senderConfig[_DYN_ENDPOINT_URL ])) {
|
|
6343
|
+
senderConfig[_DYN_ENDPOINT_URL ] = config[_DYN_ENDPOINT_URL ];
|
|
6344
|
+
}
|
|
6345
|
+
if (isPromiseLike(senderConfig[_DYN_INSTRUMENTATION_KEY ])) {
|
|
6346
|
+
senderConfig[_DYN_INSTRUMENTATION_KEY ] = config[_DYN_INSTRUMENTATION_KEY ];
|
|
6347
|
+
}
|
|
6341
6348
|
objDefine(_self, "_senderConfig", {
|
|
6342
6349
|
g: function () {
|
|
6343
6350
|
return senderConfig;
|
|
@@ -6349,8 +6356,8 @@ var Sender = /** @class */ (function (_super) {
|
|
|
6349
6356
|
else if (core.activeStatus() === ActiveStatus.ACTIVE) {
|
|
6350
6357
|
_self.resume();
|
|
6351
6358
|
}
|
|
6352
|
-
if (_orgEndpointUrl !== senderConfig
|
|
6353
|
-
_endpointUrl = _orgEndpointUrl = senderConfig
|
|
6359
|
+
if (_orgEndpointUrl !== senderConfig[_DYN_ENDPOINT_URL ]) {
|
|
6360
|
+
_endpointUrl = _orgEndpointUrl = senderConfig[_DYN_ENDPOINT_URL ];
|
|
6354
6361
|
}
|
|
6355
6362
|
if (_customHeaders && _customHeaders !== senderConfig[_DYN_CUSTOM_HEADERS ]) {
|
|
6356
6363
|
arrForEach(_customHeaders, function (customHeader) {
|
|
@@ -6393,7 +6400,7 @@ var Sender = /** @class */ (function (_super) {
|
|
|
6393
6400
|
_disableBeaconSplit = !!senderConfig[_DYN_DISABLE_SEND_BEACON_7 ];
|
|
6394
6401
|
_self._sample = new Sample(senderConfig.samplingPercentage, diagLog);
|
|
6395
6402
|
_instrumentationKey = senderConfig[_DYN_INSTRUMENTATION_KEY ];
|
|
6396
|
-
if (!_validateInstrumentationKey(_instrumentationKey, config)) {
|
|
6403
|
+
if (!isPromiseLike(_instrumentationKey) && !_validateInstrumentationKey(_instrumentationKey, config)) {
|
|
6397
6404
|
_throwInternal(diagLog, 1 , 100 , "Invalid Instrumentation key " + _instrumentationKey);
|
|
6398
6405
|
}
|
|
6399
6406
|
_customHeaders = senderConfig[_DYN_CUSTOM_HEADERS ];
|