@microsoft/applicationinsights-channel-js 2.8.0-beta.2203-10 → 2.8.0-beta.2203-13

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 (30) hide show
  1. package/browser/applicationinsights-channel-js.integrity.json +9 -9
  2. package/browser/applicationinsights-channel-js.js +7 -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 +1 -30
  7. package/dist/applicationinsights-channel-js.api.md +0 -2
  8. package/dist/applicationinsights-channel-js.d.ts +1 -2
  9. package/dist/applicationinsights-channel-js.js +7 -4
  10. package/dist/applicationinsights-channel-js.js.map +1 -1
  11. package/dist/applicationinsights-channel-js.min.js +2 -2
  12. package/dist/applicationinsights-channel-js.min.js.map +1 -1
  13. package/dist/applicationinsights-channel-js.rollup.d.ts +1 -2
  14. package/dist-esm/EnvelopeCreator.js +2 -2
  15. package/dist-esm/EnvelopeCreator.js.map +1 -1
  16. package/dist-esm/Interfaces.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 +4 -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/applicationinsights-channel-js.js +1 -1
  26. package/package.json +4 -4
  27. package/src/EnvelopeCreator.ts +1 -1
  28. package/src/Sender.ts +5 -5
  29. package/types/Sender.d.ts +0 -1
  30. 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.19.4",
4
+ "toolVersion": "7.19.5",
5
5
  "schemaVersion": 1004,
6
6
  "oldestForwardsCompatibleVersion": 1001,
7
7
  "tsdocConfig": {
@@ -1183,35 +1183,6 @@
1183
1183
  "parameters": [],
1184
1184
  "name": "resume"
1185
1185
  },
1186
- {
1187
- "kind": "Method",
1188
- "canonicalReference": "@microsoft/applicationinsights-channel-js!Sender#teardown:member(1)",
1189
- "docComment": "",
1190
- "excerptTokens": [
1191
- {
1192
- "kind": "Content",
1193
- "text": "teardown(): "
1194
- },
1195
- {
1196
- "kind": "Content",
1197
- "text": "void"
1198
- },
1199
- {
1200
- "kind": "Content",
1201
- "text": ";"
1202
- }
1203
- ],
1204
- "isOptional": false,
1205
- "isStatic": false,
1206
- "returnTypeTokenRange": {
1207
- "startIndex": 1,
1208
- "endIndex": 2
1209
- },
1210
- "releaseTag": "Public",
1211
- "overloadIndex": 1,
1212
- "parameters": [],
1213
- "name": "teardown"
1214
- },
1215
1186
  {
1216
1187
  "kind": "Method",
1217
1188
  "canonicalReference": "@microsoft/applicationinsights-channel-js!Sender#triggerSend:member(1)",
@@ -49,8 +49,6 @@ export class Sender extends BaseTelemetryPlugin implements IChannelControlsAI {
49
49
  _sender: SenderFunction;
50
50
  // Warning: (ae-forgotten-export) The symbol "ISenderConfig" needs to be exported by the entry point applicationinsights-channel-js.d.ts
51
51
  readonly _senderConfig: ISenderConfig;
52
- // (undocumented)
53
- teardown(): void;
54
52
  triggerSend(async?: boolean, forcedSender?: SenderFunction, sendReason?: SendRequestReason): void;
55
53
  // Warning: (ae-forgotten-export) The symbol "XDomainRequest" needs to be exported by the entry point applicationinsights-channel-js.d.ts
56
54
  _xdrOnLoad(xdr: XDomainRequest, payload: string[]): void;
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Microsoft Application Insights JavaScript SDK Channel, 2.8.0-beta.2203-10
2
+ * Microsoft Application Insights JavaScript SDK Channel, 2.8.0-beta.2203-13
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  *
5
5
  * Microsoft Application Insights Team
@@ -194,7 +194,6 @@ declare namespace ApplicationInsights {
194
194
  * Will not flush if the Send has been paused.
195
195
  */
196
196
  onunloadFlush(): void;
197
- teardown(): void;
198
197
  initialize(config: IConfiguration & IConfig, core: IAppInsightsCore, extensions: IPlugin[], pluginChain?: ITelemetryPluginChain): void;
199
198
  processTelemetry(telemetryItem: ITelemetryItem, itemCtx?: IProcessTelemetryContext): void;
200
199
  /**
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Application Insights JavaScript SDK - Channel, 2.8.0-beta.2203-10
2
+ * Application Insights JavaScript SDK - Channel, 2.8.0-beta.2203-13
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
  (function (global, factory) {
@@ -1255,7 +1255,7 @@
1255
1255
  }
1256
1256
 
1257
1257
  var _objDefineProperty = ObjDefineProperty;
1258
- var version = "2.7.3";
1258
+ var version = "2.8.0-beta.2203-13";
1259
1259
  var instanceName = "." + newId(6);
1260
1260
  var _dataUid = 0;
1261
1261
  function _createAccessor(target, prop, value) {
@@ -1891,7 +1891,7 @@
1891
1891
  eventName = (eventName || "") + theNamespace_1;
1892
1892
  }
1893
1893
  }
1894
- var parsedEvent = (eventNamespace.exec(eventName) || []);
1894
+ var parsedEvent = (eventNamespace.exec(eventName || "") || []);
1895
1895
  return {
1896
1896
  type: parsedEvent[1],
1897
1897
  ns: ((parsedEvent[2] || "").replace(rRemoveEmptyNs, ".").replace(rRemoveTrailingEmptyNs, "").split(".").sort()).join(".")
@@ -3595,7 +3595,7 @@
3595
3595
  }
3596
3596
  }
3597
3597
  var EnvelopeCreator = {
3598
- Version: "2.8.0-beta.2203-10"
3598
+ Version: "2.8.0-beta.2203-13"
3599
3599
  };
3600
3600
  function DependencyEnvelopeCreator(logger, telemetryItem, customUndefinedValue) {
3601
3601
  EnvelopeCreatorInit(logger, telemetryItem);
@@ -4153,6 +4153,9 @@
4153
4153
  _headers[name] = value;
4154
4154
  };
4155
4155
  _self.initialize = function (config, core, extensions, pluginChain) {
4156
+ if (_self.isInitialized()) {
4157
+ _throwInternal(_self.diagLog(), LoggingSeverity.CRITICAL, _InternalMessageId.SenderNotInitialized, "Sender is already initialized");
4158
+ }
4156
4159
  _base.initialize(config, core, extensions, pluginChain);
4157
4160
  var ctx = _self._getTelCtx();
4158
4161
  var identifier = _self.identifier;