@microsoft/applicationinsights-channel-js 3.0.0-beta.2209-03 → 3.0.0-beta.2210-02

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 (38) hide show
  1. package/browser/applicationinsights-channel-js.integrity.json +9 -9
  2. package/browser/applicationinsights-channel-js.js +946 -428
  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 +2 -2
  7. package/dist/applicationinsights-channel-js.d.ts +22 -22
  8. package/dist/applicationinsights-channel-js.js +946 -428
  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 +22 -22
  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 +9 -11
  19. package/dist-esm/SendBuffer.js.map +1 -1
  20. package/dist-esm/Sender.js +186 -135
  21. package/dist-esm/Sender.js.map +1 -1
  22. package/dist-esm/Serializer.js +2 -3
  23. package/dist-esm/Serializer.js.map +1 -1
  24. package/dist-esm/TelemetryProcessors/Sample.js +1 -1
  25. package/dist-esm/TelemetryProcessors/SamplingScoreGenerators/HashCodeScoreGenerator.js +1 -1
  26. package/dist-esm/TelemetryProcessors/SamplingScoreGenerators/SamplingScoreGenerator.js +1 -1
  27. package/dist-esm/__DynamicConstants.js +11 -15
  28. package/dist-esm/__DynamicConstants.js.map +1 -1
  29. package/dist-esm/applicationinsights-channel-js.js +1 -1
  30. package/package.json +4 -4
  31. package/src/Interfaces.ts +17 -17
  32. package/src/SendBuffer.ts +5 -5
  33. package/src/Sender.ts +194 -129
  34. package/src/__DynamicConstants.ts +10 -14
  35. package/types/Interfaces.d.ts +17 -17
  36. package/types/Sender.d.ts +4 -4
  37. package/types/__DynamicConstants.d.ts +5 -9
  38. 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.31.1",
4
+ "toolVersion": "7.32.0",
5
5
  "schemaVersion": 1009,
6
6
  "oldestForwardsCompatibleVersion": 1001,
7
7
  "tsdocConfig": {
@@ -1238,7 +1238,7 @@
1238
1238
  {
1239
1239
  "kind": "Method",
1240
1240
  "canonicalReference": "@microsoft/applicationinsights-channel-js!Sender#triggerSend:member(1)",
1241
- "docComment": "/**\n * Immediately send buffered data\n *\n * @param async - Indicates if the events should be sent asynchronously\n *\n * @param forcedSender - Indicates the forcedSender, undefined if not passed\n */\n",
1241
+ "docComment": "/**\n * Immediately send buffered data\n *\n * @param async - - Indicates if the events should be sent asynchronously\n *\n * @param forcedSender - - Indicates the forcedSender, undefined if not passed\n */\n",
1242
1242
  "excerptTokens": [
1243
1243
  {
1244
1244
  "kind": "Content",
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Microsoft Application Insights JavaScript SDK Channel, 3.0.0-beta.2209-03
2
+ * Microsoft Application Insights JavaScript SDK Channel, 3.0.0-beta.2210-02
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  *
5
5
  * Microsoft Application Insights Team
@@ -86,68 +86,68 @@ declare namespace ApplicationInsights {
86
86
  /**
87
87
  * The url to which payloads will be sent
88
88
  */
89
- endpointUrl: () => string;
89
+ endpointUrl: string;
90
90
  /**
91
91
  * The JSON format (normal vs line delimited). True means line delimited JSON.
92
92
  */
93
- emitLineDelimitedJson: () => boolean;
93
+ emitLineDelimitedJson: boolean;
94
94
  /**
95
95
  * The maximum size of a batch in bytes
96
96
  */
97
- maxBatchSizeInBytes: () => number;
97
+ maxBatchSizeInBytes: number;
98
98
  /**
99
99
  * The maximum interval allowed between calls to batchInvoke
100
100
  */
101
- maxBatchInterval: () => number;
101
+ maxBatchInterval: number;
102
102
  /**
103
103
  * The master off switch. Do not send any data if set to TRUE
104
104
  */
105
- disableTelemetry: () => boolean;
105
+ disableTelemetry: boolean;
106
106
  /**
107
107
  * Store a copy of a send buffer in the session storage
108
108
  */
109
- enableSessionStorageBuffer: () => boolean;
109
+ enableSessionStorageBuffer: boolean;
110
110
  /**
111
111
  * Is retry handler disabled.
112
112
  * If enabled, retry on 206 (partial success), 408 (timeout), 429 (too many requests), 500 (internal server error) and 503 (service unavailable).
113
113
  */
114
- isRetryDisabled: () => boolean;
115
- isBeaconApiDisabled: () => boolean;
114
+ isRetryDisabled: boolean;
115
+ isBeaconApiDisabled: boolean;
116
116
  /**
117
117
  * Don't use XMLHttpRequest or XDomainRequest (for IE < 9) by default instead attempt to use fetch() or sendBeacon.
118
118
  * If no other transport is available it will still use XMLHttpRequest
119
119
  */
120
- disableXhr: () => boolean;
120
+ disableXhr: boolean;
121
121
  /**
122
122
  * If fetch keepalive is supported do not use it for sending events during unload, it may still fallback to fetch() without keepalive
123
123
  */
124
- onunloadDisableFetch: () => boolean;
124
+ onunloadDisableFetch: boolean;
125
125
  /**
126
126
  * Is beacon disabled on page unload.
127
127
  * If enabled, flush events through beaconSender.
128
128
  */
129
- onunloadDisableBeacon: () => boolean;
129
+ onunloadDisableBeacon: boolean;
130
130
  /**
131
131
  * (Optional) Override the instrumentation key that this channel instance sends to
132
132
  */
133
- instrumentationKey: () => string;
134
- namePrefix: () => string;
135
- samplingPercentage: () => number;
133
+ instrumentationKey: string;
134
+ namePrefix: string;
135
+ samplingPercentage: number;
136
136
  /**
137
137
  * (Optional) The ability for the user to provide extra headers
138
138
  */
139
- customHeaders: () => [{
139
+ customHeaders: [{
140
140
  header: string;
141
141
  value: string;
142
142
  }];
143
143
  /**
144
144
  * (Optional) Provide user an option to convert undefined field to user defined value.
145
145
  */
146
- convertUndefined: () => any;
146
+ convertUndefined: any;
147
147
  /**
148
148
  * (Optional) The number of events that can be kept in memory before the SDK starts to drop events. By default, this is 10,000.
149
149
  */
150
- eventsLimitInMem: () => number;
150
+ eventsLimitInMem: number;
151
151
  }
152
152
 
153
153
  class Sender extends BaseTelemetryPlugin implements IChannelControlsAI {
@@ -202,8 +202,8 @@ declare namespace ApplicationInsights {
202
202
  _xhrReadyStateChange(xhr: XMLHttpRequest, payload: string[], countOfItemsInPayload: number): void;
203
203
  /**
204
204
  * Immediately send buffered data
205
- * @param async {boolean} - Indicates if the events should be sent asynchronously
206
- * @param forcedSender {SenderFunction} - Indicates the forcedSender, undefined if not passed
205
+ * @param async - {boolean} - Indicates if the events should be sent asynchronously
206
+ * @param forcedSender - {SenderFunction} - Indicates the forcedSender, undefined if not passed
207
207
  */
208
208
  triggerSend(async?: boolean, forcedSender?: SenderFunction, sendReason?: SendRequestReason): void;
209
209
  /**
@@ -224,8 +224,8 @@ declare namespace ApplicationInsights {
224
224
  _xdrOnLoad(xdr: XDomainRequest, payload: string[]): void;
225
225
  /**
226
226
  * Add header to request
227
- * @param name - Header name.
228
- * @param value - Header value.
227
+ * @param name - Header name.
228
+ * @param value - Header value.
229
229
  */
230
230
  addHeader(name: string, value: string): void;
231
231
  }