@microsoft/1ds-post-js 4.0.3-nightly3.2309-09 → 4.0.3-nightly3.2309-10

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 (42) hide show
  1. package/bundle/es5/{ms.post-4.0.3-nightly3.2309-09.gbl.js → ms.post-4.0.3-nightly3.2309-10.gbl.js} +8 -8
  2. package/bundle/es5/{ms.post-4.0.3-nightly3.2309-09.gbl.js.map → ms.post-4.0.3-nightly3.2309-10.gbl.js.map} +1 -1
  3. package/bundle/es5/{ms.post-4.0.3-nightly3.2309-09.gbl.min.js → ms.post-4.0.3-nightly3.2309-10.gbl.min.js} +3 -3
  4. package/bundle/es5/{ms.post-4.0.3-nightly3.2309-09.gbl.min.js.map → ms.post-4.0.3-nightly3.2309-10.gbl.min.js.map} +1 -1
  5. package/bundle/es5/ms.post-4.0.3-nightly3.2309-10.integrity.json +46 -0
  6. package/bundle/es5/{ms.post-4.0.3-nightly3.2309-09.js → ms.post-4.0.3-nightly3.2309-10.js} +8 -8
  7. package/bundle/es5/{ms.post-4.0.3-nightly3.2309-09.js.map → ms.post-4.0.3-nightly3.2309-10.js.map} +1 -1
  8. package/bundle/es5/{ms.post-4.0.3-nightly3.2309-09.min.js → ms.post-4.0.3-nightly3.2309-10.min.js} +3 -3
  9. package/bundle/es5/{ms.post-4.0.3-nightly3.2309-09.min.js.map → ms.post-4.0.3-nightly3.2309-10.min.js.map} +1 -1
  10. package/bundle/es5/ms.post.gbl.js +7 -7
  11. package/bundle/es5/ms.post.gbl.js.map +1 -1
  12. package/bundle/es5/ms.post.gbl.min.js +2 -2
  13. package/bundle/es5/ms.post.gbl.min.js.map +1 -1
  14. package/bundle/es5/ms.post.integrity.json +17 -17
  15. package/bundle/es5/ms.post.js +7 -7
  16. package/bundle/es5/ms.post.js.map +1 -1
  17. package/bundle/es5/ms.post.min.js +2 -2
  18. package/bundle/es5/ms.post.min.js.map +1 -1
  19. package/dist/es5/ms.post.js +5 -5
  20. package/dist/es5/ms.post.js.map +1 -1
  21. package/dist/es5/ms.post.min.js +2 -2
  22. package/dist/es5/ms.post.min.js.map +1 -1
  23. package/dist-es5/BatchNotificationActions.js +1 -1
  24. package/dist-es5/ClockSkewManager.js +1 -1
  25. package/dist-es5/DataModels.js +1 -1
  26. package/dist-es5/EventBatch.js +1 -1
  27. package/dist-es5/HttpManager.js +1 -1
  28. package/dist-es5/Index.js +1 -1
  29. package/dist-es5/InternalConstants.js +1 -1
  30. package/dist-es5/KillSwitch.js +1 -1
  31. package/dist-es5/PostChannel.js +2 -2
  32. package/dist-es5/PostChannel.js.map +1 -1
  33. package/dist-es5/RetryPolicy.js +1 -1
  34. package/dist-es5/Serializer.js +1 -1
  35. package/dist-es5/TimeoutOverrideWrapper.js +1 -1
  36. package/dist-es5/__DynamicConstants.js +2 -2
  37. package/dist-es5/__DynamicConstants.js.map +1 -1
  38. package/dist-es5/typings/XDomainRequest.js +1 -1
  39. package/package.json +2 -2
  40. package/types/1ds-post-js.d.ts +9 -35
  41. package/types/1ds-post-js.namespaced.d.ts +9 -35
  42. package/bundle/es5/ms.post-4.0.3-nightly3.2309-09.integrity.json +0 -46
@@ -1,5 +1,5 @@
1
1
  /*
2
- * 1DS JS SDK Post Channel, 4.0.3-nightly3.2309-09
2
+ * 1DS JS SDK Post Channel, 4.0.3-nightly3.2309-10
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  *
5
5
  * Microsoft Application Insights Team
@@ -12,6 +12,7 @@ declare namespace oneDS {
12
12
  import { IChannelControls } from '@microsoft/1ds-core-js';
13
13
  import { IDiagnosticLogger } from '@microsoft/1ds-core-js';
14
14
  import { IExtendedConfiguration } from '@microsoft/1ds-core-js';
15
+ import { IPayloadData } from '@microsoft/1ds-core-js';
15
16
  import { IPlugin } from '@microsoft/1ds-core-js';
16
17
  import { IProcessTelemetryContext } from '@microsoft/1ds-core-js';
17
18
  import { IPromise } from '@nevware21/ts-async';
@@ -19,6 +20,9 @@ declare namespace oneDS {
19
20
  import { ITelemetryPlugin } from '@microsoft/1ds-core-js';
20
21
  import { IUnloadHook } from '@microsoft/1ds-core-js';
21
22
  import { IValueSanitizer } from '@microsoft/1ds-core-js';
23
+ import { IXHROverride } from '@microsoft/1ds-core-js';
24
+ import { OnCompleteCallback } from '@microsoft/1ds-core-js';
25
+ import { SendPOSTFunction } from '@microsoft/1ds-core-js';
22
26
  import { SendRequestReason } from '@microsoft/1ds-core-js';
23
27
 
24
28
  /**
@@ -202,18 +206,7 @@ declare namespace oneDS {
202
206
  addNoResponse?: boolean;
203
207
  }
204
208
 
205
- /** IPayloadData describes interface of payload sent via POST channel */
206
- interface IPayloadData {
207
- urlString: string;
208
- data: Uint8Array | string;
209
- headers?: {
210
- [name: string]: string;
211
- };
212
- timeout?: number;
213
- disableXhrSync?: boolean;
214
- disableFetchKeepAlive?: boolean;
215
- }
216
-
209
+
217
210
  /**
218
211
  * Post channel interface
219
212
  */
@@ -240,24 +233,14 @@ declare namespace oneDS {
240
233
  addResponseHandler(responseHandler: (responseText: string) => void): IUnloadHook;
241
234
  }
242
235
 
243
- /**
244
- * The IXHROverride interface overrides the way HTTP requests are sent.
245
- */
246
- interface IXHROverride {
247
- /**
248
- * This method sends data to the specified URI using a POST request. If sync is true,
249
- * then the request is sent synchronously. The <i>oncomplete</i> function should always be called after the request is
250
- * completed (either successfully or timed out or failed due to errors).
251
- */
252
- sendPOST: SendPOSTFunction;
253
- }
254
-
236
+
255
237
  /**
256
238
  * Near Real Time profile. RealTime Latency events are sent every 3 sec and
257
239
  * Normal Latency events are sent every 6 sec.
258
240
  */
259
241
  const NRT_PROFILE = "NEAR_REAL_TIME";
260
242
 
243
+
261
244
  /**
262
245
  * Defines the function signature of a payload listener, which is called after the payload has been sent to the server. The listener is passed
263
246
  * both the initial payload object and any altered (modified) payload from a preprocessor so it can determine what payload it may want to log or send.
@@ -392,15 +375,6 @@ declare namespace oneDS {
392
375
  */
393
376
  const RT_PROFILE = "REAL_TIME";
394
377
 
395
- /**
396
- * SendPOSTFunction type defines how an HTTP POST request is sent to an ingestion server
397
- * @param payload - The payload object that should be sent, contains the url, bytes/string and headers for the request
398
- * @param oncomplete - The function to call once the request has completed whether a success, failure or timeout
399
- * @param sync - A boolean flag indicating whether the request should be sent as a synchronous request.
400
- */
401
- type SendPOSTFunction = (payload: IPayloadData, oncomplete: (status: number, headers: {
402
- [headerName: string]: string;
403
- }, response?: string) => void, sync?: boolean) => void;
404
-
378
+
405
379
 
406
380
  }
@@ -1,46 +0,0 @@
1
- {
2
- "name": "ms.post",
3
- "version": "4.0.3-nightly3.2309-09",
4
- "ext": {
5
- "@gbl.js": {
6
- "file": "ms.post-4.0.3-nightly3.2309-09.gbl.js",
7
- "type": "text/javascript; charset=utf-8",
8
- "integrity": "sha256-q7a5xHIQsBe0kIGlYXD9bYE+Oj+vu4vnADZVGPbzlHc= sha384-n7BAV+5EUI1HksLulLPnA4hXczbb4GMHImvg9g61x6AP+bKshpjQLjwU1dUCxih7 sha512-sDNqGBo6+nCVTs0HFWl8nmpKQI6GifMBnyhErb4HrP5lFgrsncgBVBvQRhIUj2v0gg/icSdr1lccAjivPxQ8jA==",
9
- "hashes": {
10
- "sha256": "q7a5xHIQsBe0kIGlYXD9bYE+Oj+vu4vnADZVGPbzlHc=",
11
- "sha384": "n7BAV+5EUI1HksLulLPnA4hXczbb4GMHImvg9g61x6AP+bKshpjQLjwU1dUCxih7",
12
- "sha512": "sDNqGBo6+nCVTs0HFWl8nmpKQI6GifMBnyhErb4HrP5lFgrsncgBVBvQRhIUj2v0gg/icSdr1lccAjivPxQ8jA=="
13
- }
14
- },
15
- "@gbl.min.js": {
16
- "file": "ms.post-4.0.3-nightly3.2309-09.gbl.min.js",
17
- "type": "text/javascript; charset=utf-8",
18
- "integrity": "sha256-hxTdYa1lixuHQCYkuNd+UfkFM11TpUSPI17RtegOn8Q= sha384-4QfCXFdgLS8EO0v1I5NiAIsYVFk+OUXKPnlbuI+u7O4vcEGm/nAR4rLe22YYCHX+ sha512-kFelwtX6kdIcV8zkcTu08nUebYjWIhZ90Eha61qY1as9iJTRCcIBvNIPrx2v/aXNCnslxq+Whx8lgBROcF2/Mw==",
19
- "hashes": {
20
- "sha256": "hxTdYa1lixuHQCYkuNd+UfkFM11TpUSPI17RtegOn8Q=",
21
- "sha384": "4QfCXFdgLS8EO0v1I5NiAIsYVFk+OUXKPnlbuI+u7O4vcEGm/nAR4rLe22YYCHX+",
22
- "sha512": "kFelwtX6kdIcV8zkcTu08nUebYjWIhZ90Eha61qY1as9iJTRCcIBvNIPrx2v/aXNCnslxq+Whx8lgBROcF2/Mw=="
23
- }
24
- },
25
- "@js": {
26
- "file": "ms.post-4.0.3-nightly3.2309-09.js",
27
- "type": "text/javascript; charset=utf-8",
28
- "integrity": "sha256-D5kyyIHm6ZwgP6ZfPoWrk1mrSGUJnLkQx1P8xiDpuBM= sha384-xnD5vJfdi71qAgVDjo4veQO9vcsvveidPwFfx1HjoPF8I/yIfX3mxj6SMXuw4Kzq sha512-PlhLooe/U3hrJk8HLu0RGvEhKwRy+eWhdi3wA3fwB0ryRvi6wPy3f5yNcSk+hmicbm/w7g6KffsdvNvphZYb/g==",
29
- "hashes": {
30
- "sha256": "D5kyyIHm6ZwgP6ZfPoWrk1mrSGUJnLkQx1P8xiDpuBM=",
31
- "sha384": "xnD5vJfdi71qAgVDjo4veQO9vcsvveidPwFfx1HjoPF8I/yIfX3mxj6SMXuw4Kzq",
32
- "sha512": "PlhLooe/U3hrJk8HLu0RGvEhKwRy+eWhdi3wA3fwB0ryRvi6wPy3f5yNcSk+hmicbm/w7g6KffsdvNvphZYb/g=="
33
- }
34
- },
35
- "@min.js": {
36
- "file": "ms.post-4.0.3-nightly3.2309-09.min.js",
37
- "type": "text/javascript; charset=utf-8",
38
- "integrity": "sha256-j5scDIDQHNKUwoTZhYHUQ+jfWJAuHHCF8um5D9K2rQs= sha384-SmMN/7D0hS+sogqpeXqoujzWYlAf3FpOoxINfzkxgJY4+ogILVQHgjLeuKG1m9F9 sha512-YkAPhuDruAZqYFcIOzoho+jCo6RtdCUi55ZbWSZDlARyk6eU7XWJL684r3nQudlPfKt5KjK1YoucwxDx3iNaUw==",
39
- "hashes": {
40
- "sha256": "j5scDIDQHNKUwoTZhYHUQ+jfWJAuHHCF8um5D9K2rQs=",
41
- "sha384": "SmMN/7D0hS+sogqpeXqoujzWYlAf3FpOoxINfzkxgJY4+ogILVQHgjLeuKG1m9F9",
42
- "sha512": "YkAPhuDruAZqYFcIOzoho+jCo6RtdCUi55ZbWSZDlARyk6eU7XWJL684r3nQudlPfKt5KjK1YoucwxDx3iNaUw=="
43
- }
44
- }
45
- }
46
- }