@microsoft/1ds-post-js 4.0.3-nightly3.2309-08 → 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.
- package/bundle/es5/{ms.post-4.0.3-nightly3.2309-08.gbl.js → ms.post-4.0.3-nightly3.2309-10.gbl.js} +8 -8
- package/bundle/es5/{ms.post-4.0.3-nightly3.2309-08.gbl.js.map → ms.post-4.0.3-nightly3.2309-10.gbl.js.map} +1 -1
- package/bundle/es5/{ms.post-4.0.3-nightly3.2309-08.gbl.min.js → ms.post-4.0.3-nightly3.2309-10.gbl.min.js} +3 -3
- package/bundle/es5/{ms.post-4.0.3-nightly3.2309-08.gbl.min.js.map → ms.post-4.0.3-nightly3.2309-10.gbl.min.js.map} +1 -1
- package/bundle/es5/ms.post-4.0.3-nightly3.2309-10.integrity.json +46 -0
- package/bundle/es5/{ms.post-4.0.3-nightly3.2309-08.js → ms.post-4.0.3-nightly3.2309-10.js} +8 -8
- package/bundle/es5/{ms.post-4.0.3-nightly3.2309-08.js.map → ms.post-4.0.3-nightly3.2309-10.js.map} +1 -1
- package/bundle/es5/{ms.post-4.0.3-nightly3.2309-08.min.js → ms.post-4.0.3-nightly3.2309-10.min.js} +3 -3
- package/bundle/es5/{ms.post-4.0.3-nightly3.2309-08.min.js.map → ms.post-4.0.3-nightly3.2309-10.min.js.map} +1 -1
- package/bundle/es5/ms.post.gbl.js +7 -7
- package/bundle/es5/ms.post.gbl.js.map +1 -1
- package/bundle/es5/ms.post.gbl.min.js +2 -2
- package/bundle/es5/ms.post.gbl.min.js.map +1 -1
- package/bundle/es5/ms.post.integrity.json +17 -17
- package/bundle/es5/ms.post.js +7 -7
- package/bundle/es5/ms.post.js.map +1 -1
- package/bundle/es5/ms.post.min.js +2 -2
- package/bundle/es5/ms.post.min.js.map +1 -1
- package/dist/es5/ms.post.js +5 -5
- package/dist/es5/ms.post.js.map +1 -1
- package/dist/es5/ms.post.min.js +2 -2
- package/dist/es5/ms.post.min.js.map +1 -1
- package/dist-es5/BatchNotificationActions.js +1 -1
- package/dist-es5/ClockSkewManager.js +1 -1
- package/dist-es5/DataModels.js +1 -1
- package/dist-es5/EventBatch.js +1 -1
- package/dist-es5/HttpManager.js +1 -1
- package/dist-es5/Index.js +1 -1
- package/dist-es5/InternalConstants.js +1 -1
- package/dist-es5/KillSwitch.js +1 -1
- package/dist-es5/PostChannel.js +2 -2
- package/dist-es5/PostChannel.js.map +1 -1
- package/dist-es5/RetryPolicy.js +1 -1
- package/dist-es5/Serializer.js +1 -1
- package/dist-es5/TimeoutOverrideWrapper.js +1 -1
- package/dist-es5/__DynamicConstants.js +2 -2
- package/dist-es5/__DynamicConstants.js.map +1 -1
- package/dist-es5/typings/XDomainRequest.js +1 -1
- package/package.json +2 -2
- package/types/1ds-post-js.d.ts +9 -35
- package/types/1ds-post-js.namespaced.d.ts +9 -35
- package/bundle/es5/ms.post-4.0.3-nightly3.2309-08.integrity.json +0 -46
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* 1DS JS SDK Post Channel, 4.0.3-nightly3.2309-
|
|
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
|
-
|
|
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-08",
|
|
4
|
-
"ext": {
|
|
5
|
-
"@gbl.js": {
|
|
6
|
-
"file": "ms.post-4.0.3-nightly3.2309-08.gbl.js",
|
|
7
|
-
"type": "text/javascript; charset=utf-8",
|
|
8
|
-
"integrity": "sha256-fgN5LMpPDULVLapIBsQKVVOZJ0Kf3o9LDi4xh13paKM= sha384-YvrN8Ztn8us43PBIsDtEBl8wYboCWsCLQ7ys4I4kYRGW0L3nDJ7DAh3um/imTe3n sha512-1fOSbQTZbXjosMiSKGl8cr6PjfLMRtFEbf/eGX8Yzn4yGbs4Ebs7yHmvIMOU3CLBdDU6pLVLRDhSPdSxG0XZ2A==",
|
|
9
|
-
"hashes": {
|
|
10
|
-
"sha256": "fgN5LMpPDULVLapIBsQKVVOZJ0Kf3o9LDi4xh13paKM=",
|
|
11
|
-
"sha384": "YvrN8Ztn8us43PBIsDtEBl8wYboCWsCLQ7ys4I4kYRGW0L3nDJ7DAh3um/imTe3n",
|
|
12
|
-
"sha512": "1fOSbQTZbXjosMiSKGl8cr6PjfLMRtFEbf/eGX8Yzn4yGbs4Ebs7yHmvIMOU3CLBdDU6pLVLRDhSPdSxG0XZ2A=="
|
|
13
|
-
}
|
|
14
|
-
},
|
|
15
|
-
"@gbl.min.js": {
|
|
16
|
-
"file": "ms.post-4.0.3-nightly3.2309-08.gbl.min.js",
|
|
17
|
-
"type": "text/javascript; charset=utf-8",
|
|
18
|
-
"integrity": "sha256-tioS4SNs7lUBfL5J9U9SW9pZzHa+f32rX7hm5IZE8as= sha384-phYYky/n85DeQKDfuWMZ8k1l6HrbKAGXMh3U88ScZVM92xcOdfJsZsJGzMnAZtrv sha512-l0cFRxcVQQTOwCpiVyviFWMJQd+Vzf+9ZYSRMVV2rYy9UlD1eYUK+rVnCzHW9IBORyIwDp9q8yG2iwY6uIM1xQ==",
|
|
19
|
-
"hashes": {
|
|
20
|
-
"sha256": "tioS4SNs7lUBfL5J9U9SW9pZzHa+f32rX7hm5IZE8as=",
|
|
21
|
-
"sha384": "phYYky/n85DeQKDfuWMZ8k1l6HrbKAGXMh3U88ScZVM92xcOdfJsZsJGzMnAZtrv",
|
|
22
|
-
"sha512": "l0cFRxcVQQTOwCpiVyviFWMJQd+Vzf+9ZYSRMVV2rYy9UlD1eYUK+rVnCzHW9IBORyIwDp9q8yG2iwY6uIM1xQ=="
|
|
23
|
-
}
|
|
24
|
-
},
|
|
25
|
-
"@js": {
|
|
26
|
-
"file": "ms.post-4.0.3-nightly3.2309-08.js",
|
|
27
|
-
"type": "text/javascript; charset=utf-8",
|
|
28
|
-
"integrity": "sha256-efsD1rLmnQwi/helXfkVulIGhoyjSkUAmFCqIFK/Vmc= sha384-A0UEHIIUKsylttiM1wCUovDwN71ZcEjl8aI9rJmsXcxOrFHCeaQPeIa136ZFod+q sha512-KwRU2fEQU+JoSvSKBe6fEIbmkZ87hYZ64NR6zDGx4WLCDvnUlhoDf9yPH2+29LilzS9IhIl7JFkRGShaYSm2tQ==",
|
|
29
|
-
"hashes": {
|
|
30
|
-
"sha256": "efsD1rLmnQwi/helXfkVulIGhoyjSkUAmFCqIFK/Vmc=",
|
|
31
|
-
"sha384": "A0UEHIIUKsylttiM1wCUovDwN71ZcEjl8aI9rJmsXcxOrFHCeaQPeIa136ZFod+q",
|
|
32
|
-
"sha512": "KwRU2fEQU+JoSvSKBe6fEIbmkZ87hYZ64NR6zDGx4WLCDvnUlhoDf9yPH2+29LilzS9IhIl7JFkRGShaYSm2tQ=="
|
|
33
|
-
}
|
|
34
|
-
},
|
|
35
|
-
"@min.js": {
|
|
36
|
-
"file": "ms.post-4.0.3-nightly3.2309-08.min.js",
|
|
37
|
-
"type": "text/javascript; charset=utf-8",
|
|
38
|
-
"integrity": "sha256-8DqKzmuJxr62ciwgF0DInS+bzbYYw5ums9FAzWrHRFk= sha384-CVfFsVaMISssDlGH5tXPEVpUzWr+tTj4ltWsQoZhncWAWAr93aacvg024LECWGh0 sha512-h6eUPvCdX/toqnj8noTWqoGGN3RPeWgwT30QzbTHF54GgV7p1FPvDMcKuU2cBRzjfrxvdi4IFj9VPf/Pgn373g==",
|
|
39
|
-
"hashes": {
|
|
40
|
-
"sha256": "8DqKzmuJxr62ciwgF0DInS+bzbYYw5ums9FAzWrHRFk=",
|
|
41
|
-
"sha384": "CVfFsVaMISssDlGH5tXPEVpUzWr+tTj4ltWsQoZhncWAWAr93aacvg024LECWGh0",
|
|
42
|
-
"sha512": "h6eUPvCdX/toqnj8noTWqoGGN3RPeWgwT30QzbTHF54GgV7p1FPvDMcKuU2cBRzjfrxvdi4IFj9VPf/Pgn373g=="
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
}
|