@microsoft/applicationinsights-channel-js 2.8.7-nightly.2208-09 → 2.8.7

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 (29) hide show
  1. package/browser/applicationinsights-channel-js.integrity.json +9 -9
  2. package/browser/applicationinsights-channel-js.js +10 -4
  3. package/browser/applicationinsights-channel-js.js.map +1 -1
  4. package/browser/applicationinsights-channel-js.min.js +2 -2
  5. package/browser/applicationinsights-channel-js.min.js.map +1 -1
  6. package/dist/applicationinsights-channel-js.api.json +10 -14
  7. package/dist/applicationinsights-channel-js.d.ts +1 -1
  8. package/dist/applicationinsights-channel-js.js +10 -4
  9. package/dist/applicationinsights-channel-js.js.map +1 -1
  10. package/dist/applicationinsights-channel-js.min.js +2 -2
  11. package/dist/applicationinsights-channel-js.min.js.map +1 -1
  12. package/dist/applicationinsights-channel-js.rollup.d.ts +1 -1
  13. package/dist-esm/EnvelopeCreator.js +2 -2
  14. package/dist-esm/EnvelopeCreator.js.map +1 -1
  15. package/dist-esm/Interfaces.js +1 -1
  16. package/dist-esm/InternalConstants.js +1 -1
  17. package/dist-esm/Offline.js +1 -1
  18. package/dist-esm/SendBuffer.js +1 -1
  19. package/dist-esm/Sender.js +10 -2
  20. package/dist-esm/Sender.js.map +1 -1
  21. package/dist-esm/Serializer.js +1 -1
  22. package/dist-esm/TelemetryProcessors/Sample.js +1 -1
  23. package/dist-esm/TelemetryProcessors/SamplingScoreGenerators/HashCodeScoreGenerator.js +1 -1
  24. package/dist-esm/TelemetryProcessors/SamplingScoreGenerators/SamplingScoreGenerator.js +1 -1
  25. package/dist-esm/__DynamicConstants.js +1 -1
  26. package/dist-esm/applicationinsights-channel-js.js +1 -1
  27. package/package.json +57 -60
  28. package/src/Sender.ts +9 -1
  29. package/types/tsdoc-metadata.json +1 -1
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "metadata": {
3
3
  "toolPackage": "@microsoft/api-extractor",
4
- "toolVersion": "7.29.0",
4
+ "toolVersion": "7.30.0",
5
5
  "schemaVersion": 1009,
6
6
  "oldestForwardsCompatibleVersion": 1001,
7
7
  "tsdocConfig": {
@@ -188,11 +188,7 @@
188
188
  },
189
189
  {
190
190
  "kind": "Content",
191
- "text": " "
192
- },
193
- {
194
- "kind": "Content",
195
- "text": "implements "
191
+ "text": " implements "
196
192
  },
197
193
  {
198
194
  "kind": "Reference",
@@ -249,7 +245,7 @@
249
245
  {
250
246
  "kind": "Reference",
251
247
  "text": "ISendBuffer",
252
- "canonicalReference": "@microsoft/applicationinsights-channel-js!ISendBuffer:interface"
248
+ "canonicalReference": "@microsoft/applicationinsights-channel-js!~ISendBuffer:interface"
253
249
  },
254
250
  {
255
251
  "kind": "Content",
@@ -367,7 +363,7 @@
367
363
  {
368
364
  "kind": "Reference",
369
365
  "text": "IBackendResponse",
370
- "canonicalReference": "@microsoft/applicationinsights-channel-js!IBackendResponse:interface"
366
+ "canonicalReference": "@microsoft/applicationinsights-channel-js!~IBackendResponse:interface"
371
367
  },
372
368
  {
373
369
  "kind": "Content",
@@ -516,7 +512,7 @@
516
512
  {
517
513
  "kind": "Reference",
518
514
  "text": "SenderFunction",
519
- "canonicalReference": "@microsoft/applicationinsights-channel-js!SenderFunction:type"
515
+ "canonicalReference": "@microsoft/applicationinsights-channel-js!~SenderFunction:type"
520
516
  },
521
517
  {
522
518
  "kind": "Content",
@@ -546,7 +542,7 @@
546
542
  {
547
543
  "kind": "Reference",
548
544
  "text": "ISenderConfig",
549
- "canonicalReference": "@microsoft/applicationinsights-channel-js!ISenderConfig:interface"
545
+ "canonicalReference": "@microsoft/applicationinsights-channel-js!~ISenderConfig:interface"
550
546
  },
551
547
  {
552
548
  "kind": "Content",
@@ -576,7 +572,7 @@
576
572
  {
577
573
  "kind": "Reference",
578
574
  "text": "IXDomainRequest",
579
- "canonicalReference": "@microsoft/applicationinsights-channel-js!XDomainRequest:interface"
575
+ "canonicalReference": "@microsoft/applicationinsights-channel-js!~XDomainRequest:interface"
580
576
  },
581
577
  {
582
578
  "kind": "Content",
@@ -1259,7 +1255,7 @@
1259
1255
  {
1260
1256
  "kind": "Reference",
1261
1257
  "text": "SenderFunction",
1262
- "canonicalReference": "@microsoft/applicationinsights-channel-js!SenderFunction:type"
1258
+ "canonicalReference": "@microsoft/applicationinsights-channel-js!~SenderFunction:type"
1263
1259
  },
1264
1260
  {
1265
1261
  "kind": "Content",
@@ -1327,8 +1323,8 @@
1327
1323
  },
1328
1324
  "implementsTokenRanges": [
1329
1325
  {
1330
- "startIndex": 4,
1331
- "endIndex": 5
1326
+ "startIndex": 3,
1327
+ "endIndex": 4
1332
1328
  }
1333
1329
  ]
1334
1330
  }
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Microsoft Application Insights JavaScript SDK Channel, 2.8.7-nightly.2208-09
2
+ * Microsoft Application Insights JavaScript SDK Channel, 2.8.7
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  *
5
5
  * Microsoft Application Insights Team
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Application Insights JavaScript SDK - Channel, 2.8.7-nightly.2208-09
2
+ * Application Insights JavaScript SDK - Channel, 2.8.7
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
  (function (global, factory) {
@@ -1331,7 +1331,7 @@
1331
1331
  }
1332
1332
 
1333
1333
  var _objDefineProperty = ObjDefineProperty;
1334
- var version = "2.8.7-nightly.2208-09";
1334
+ var version = '2.8.7';
1335
1335
  var instanceName = "." + newId(6);
1336
1336
  var _dataUid = 0;
1337
1337
  function _createAccessor(target, prop, value) {
@@ -3413,7 +3413,7 @@
3413
3413
  }
3414
3414
  }
3415
3415
  var EnvelopeCreator = {
3416
- Version: "2.8.7-nightly.2208-09"
3416
+ Version: '2.8.7'
3417
3417
  };
3418
3418
  function DependencyEnvelopeCreator(logger, telemetryItem, customUndefinedValue) {
3419
3419
  EnvelopeCreatorInit(logger, telemetryItem);
@@ -4162,7 +4162,13 @@
4162
4162
  _offlineListener = createOfflineListener(_evtNamespace);
4163
4163
  var defaultConfig = _getDefaultAppInsightsChannelConfig();
4164
4164
  objForEachKey(defaultConfig, function (field, value) {
4165
- _self[_DYN__SENDER_CONFIG ][field] = function () { return ctx.getConfig(identifier, field, value()); };
4165
+ _self[_DYN__SENDER_CONFIG ][field] = function () {
4166
+ var theValue = ctx.getConfig(identifier, field, value());
4167
+ if (!theValue && field === "endpointUrl") {
4168
+ theValue = value();
4169
+ }
4170
+ return theValue;
4171
+ };
4166
4172
  });
4167
4173
  _self._buffer = (_self[_DYN__SENDER_CONFIG ][_DYN_ENABLE_SESSION_STORA4 ]() && utlCanUseSessionStorage())
4168
4174
  ? new SessionStorageSendBuffer(diagLog, _self[_DYN__SENDER_CONFIG ]) : new ArraySendBuffer(diagLog, _self[_DYN__SENDER_CONFIG ]);