@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.
Files changed (51) hide show
  1. 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
  2. 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
  3. package/browser/es5/applicationinsights-channel-js.3.3.3-nightly3.2409-11.cjs.min.js +6 -0
  4. 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
  5. 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
  6. 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
  7. package/browser/es5/applicationinsights-channel-js.3.3.3-nightly3.2409-11.gbl.min.js +6 -0
  8. 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
  9. package/browser/es5/applicationinsights-channel-js.3.3.3-nightly3.2409-11.integrity.json +66 -0
  10. 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
  11. 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
  12. package/browser/es5/applicationinsights-channel-js.3.3.3-nightly3.2409-11.min.js +6 -0
  13. 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
  14. package/browser/es5/applicationinsights-channel-js.3.cjs.js +14 -7
  15. package/browser/es5/applicationinsights-channel-js.3.cjs.js.map +1 -1
  16. package/browser/es5/applicationinsights-channel-js.3.cjs.min.js +2 -2
  17. package/browser/es5/applicationinsights-channel-js.3.cjs.min.js.map +1 -1
  18. package/browser/es5/applicationinsights-channel-js.3.gbl.js +16 -9
  19. package/browser/es5/applicationinsights-channel-js.3.gbl.js.map +1 -1
  20. package/browser/es5/applicationinsights-channel-js.3.gbl.min.js +2 -2
  21. package/browser/es5/applicationinsights-channel-js.3.gbl.min.js.map +1 -1
  22. package/browser/es5/applicationinsights-channel-js.3.integrity.json +25 -25
  23. package/browser/es5/applicationinsights-channel-js.3.js +16 -9
  24. package/browser/es5/applicationinsights-channel-js.3.js.map +1 -1
  25. package/browser/es5/applicationinsights-channel-js.3.min.js +2 -2
  26. package/browser/es5/applicationinsights-channel-js.3.min.js.map +1 -1
  27. package/dist/es5/applicationinsights-channel-js.js +14 -7
  28. package/dist/es5/applicationinsights-channel-js.js.map +1 -1
  29. package/dist/es5/applicationinsights-channel-js.min.js +2 -2
  30. package/dist/es5/applicationinsights-channel-js.min.js.map +1 -1
  31. package/dist-es5/EnvelopeCreator.js +2 -2
  32. package/dist-es5/EnvelopeCreator.js.map +1 -1
  33. package/dist-es5/Interfaces.js +1 -1
  34. package/dist-es5/InternalConstants.js +1 -1
  35. package/dist-es5/SendBuffer.js +1 -1
  36. package/dist-es5/Sender.js +15 -6
  37. package/dist-es5/Sender.js.map +1 -1
  38. package/dist-es5/Serializer.js +1 -1
  39. package/dist-es5/TelemetryProcessors/Sample.js +1 -1
  40. package/dist-es5/TelemetryProcessors/SamplingScoreGenerators/HashCodeScoreGenerator.js +1 -1
  41. package/dist-es5/TelemetryProcessors/SamplingScoreGenerators/SamplingScoreGenerator.js +1 -1
  42. package/dist-es5/__DynamicConstants.js +3 -2
  43. package/dist-es5/__DynamicConstants.js.map +1 -1
  44. package/dist-es5/applicationinsights-channel-js.js +1 -1
  45. package/package.json +3 -3
  46. package/types/applicationinsights-channel-js.d.ts +1 -1
  47. package/types/applicationinsights-channel-js.namespaced.d.ts +1 -1
  48. package/browser/es5/applicationinsights-channel-js.3.3.3-nightly3.2409-10.cjs.min.js +0 -6
  49. package/browser/es5/applicationinsights-channel-js.3.3.3-nightly3.2409-10.gbl.min.js +0 -6
  50. package/browser/es5/applicationinsights-channel-js.3.3.3-nightly3.2409-10.integrity.json +0 -66
  51. package/browser/es5/applicationinsights-channel-js.3.3.3-nightly3.2409-10.min.js +0 -6
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Application Insights JavaScript SDK - Channel, 3.3.3-nightly3.2409-10
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) {
@@ -1894,7 +1894,7 @@
1894
1894
  return result;
1895
1895
  }
1896
1896
 
1897
- var version = '3.3.3-nightly3.2409-10';
1897
+ var version = '3.3.3-nightly3.2409-11';
1898
1898
  var instanceName = "." + newId(6);
1899
1899
  var _dataUid = 0;
1900
1900
  function _canAcceptData(target) {
@@ -5384,6 +5384,8 @@
5384
5384
  var _DYN_DIAG_LOG = "diagLog";
5385
5385
  var _DYN_INITIALIZE = "initialize";
5386
5386
  var _DYN__SENDER = "_sender";
5387
+ var _DYN_ENDPOINT_URL = "endpointUrl";
5388
+ var _DYN_INSTRUMENTATION_KEY = "instrumentationKey";
5387
5389
  var _DYN_CUSTOM_HEADERS = "customHeaders";
5388
5390
  var _DYN_MAX_BATCH_SIZE_IN_BY1 = "maxBatchSizeInBytes";
5389
5391
  var _DYN_ONUNLOAD_DISABLE_BEA2 = "onunloadDisableBeacon";
@@ -5394,7 +5396,6 @@
5394
5396
  var _DYN__BUFFER = "_buffer";
5395
5397
  var _DYN_ONUNLOAD_DISABLE_FET6 = "onunloadDisableFetch";
5396
5398
  var _DYN_DISABLE_SEND_BEACON_7 = "disableSendBeaconSplit";
5397
- var _DYN_INSTRUMENTATION_KEY = "instrumentationKey";
5398
5399
  var _DYN_ENABLE_SEND_PROMISE = "enableSendPromise";
5399
5400
  var _DYN_GET_SENDER_INST = "getSenderInst";
5400
5401
  var _DYN_UNLOAD_TRANSPORTS = "unloadTransports";
@@ -5523,7 +5524,7 @@
5523
5524
  }
5524
5525
  }
5525
5526
  var EnvelopeCreator = {
5526
- Version: '3.3.3-nightly3.2409-10'
5527
+ Version: '3.3.3-nightly3.2409-11'
5527
5528
  };
5528
5529
  function DependencyEnvelopeCreator(logger, telemetryItem, customUndefinedValue) {
5529
5530
  EnvelopeCreatorInit(logger, telemetryItem);
@@ -6320,6 +6321,12 @@
6320
6321
  }
6321
6322
  var ctx = createProcessTelemetryContext(null, config, core);
6322
6323
  var senderConfig = ctx.getExtCfg(identifier, defaultAppInsightsChannelConfig);
6324
+ if (isPromiseLike(senderConfig[_DYN_ENDPOINT_URL ])) {
6325
+ senderConfig[_DYN_ENDPOINT_URL ] = config[_DYN_ENDPOINT_URL ];
6326
+ }
6327
+ if (isPromiseLike(senderConfig[_DYN_INSTRUMENTATION_KEY ])) {
6328
+ senderConfig[_DYN_INSTRUMENTATION_KEY ] = config[_DYN_INSTRUMENTATION_KEY ];
6329
+ }
6323
6330
  objDefine(_self, "_senderConfig", {
6324
6331
  g: function () {
6325
6332
  return senderConfig;
@@ -6331,8 +6338,8 @@
6331
6338
  else if (core.activeStatus() === ActiveStatus.ACTIVE) {
6332
6339
  _self.resume();
6333
6340
  }
6334
- if (_orgEndpointUrl !== senderConfig.endpointUrl) {
6335
- _endpointUrl = _orgEndpointUrl = senderConfig.endpointUrl;
6341
+ if (_orgEndpointUrl !== senderConfig[_DYN_ENDPOINT_URL ]) {
6342
+ _endpointUrl = _orgEndpointUrl = senderConfig[_DYN_ENDPOINT_URL ];
6336
6343
  }
6337
6344
  if (_customHeaders && _customHeaders !== senderConfig[_DYN_CUSTOM_HEADERS ]) {
6338
6345
  arrForEach(_customHeaders, function (customHeader) {
@@ -6375,7 +6382,7 @@
6375
6382
  _disableBeaconSplit = !!senderConfig[_DYN_DISABLE_SEND_BEACON_7 ];
6376
6383
  _self._sample = new Sample(senderConfig.samplingPercentage, diagLog);
6377
6384
  _instrumentationKey = senderConfig[_DYN_INSTRUMENTATION_KEY ];
6378
- if (!_validateInstrumentationKey(_instrumentationKey, config)) {
6385
+ if (!isPromiseLike(_instrumentationKey) && !_validateInstrumentationKey(_instrumentationKey, config)) {
6379
6386
  _throwInternal(diagLog, 1 , 100 , "Invalid Instrumentation key " + _instrumentationKey);
6380
6387
  }
6381
6388
  _customHeaders = senderConfig[_DYN_CUSTOM_HEADERS ];