@microsoft/1ds-post-js 4.0.0 → 4.0.2-nightly3.2307-24

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 (55) hide show
  1. package/README.md +10 -26
  2. package/bundle/es5/{ms.post-4.0.0.gbl.js → ms.post-4.0.2-nightly3.2307-24.gbl.js} +707 -524
  3. package/bundle/es5/ms.post-4.0.2-nightly3.2307-24.gbl.js.map +1 -0
  4. package/bundle/es5/ms.post-4.0.2-nightly3.2307-24.gbl.min.js +7 -0
  5. package/bundle/es5/ms.post-4.0.2-nightly3.2307-24.gbl.min.js.map +1 -0
  6. package/bundle/es5/ms.post-4.0.2-nightly3.2307-24.integrity.json +46 -0
  7. package/bundle/es5/{ms.post-4.0.0.js → ms.post-4.0.2-nightly3.2307-24.js} +707 -524
  8. package/bundle/es5/ms.post-4.0.2-nightly3.2307-24.js.map +1 -0
  9. package/bundle/es5/ms.post-4.0.2-nightly3.2307-24.min.js +7 -0
  10. package/bundle/es5/ms.post-4.0.2-nightly3.2307-24.min.js.map +1 -0
  11. package/bundle/es5/ms.post.gbl.js +706 -523
  12. package/bundle/es5/ms.post.gbl.js.map +1 -1
  13. package/bundle/es5/ms.post.gbl.min.js +2 -2
  14. package/bundle/es5/ms.post.gbl.min.js.map +1 -1
  15. package/bundle/es5/ms.post.integrity.json +17 -17
  16. package/bundle/es5/ms.post.js +706 -523
  17. package/bundle/es5/ms.post.js.map +1 -1
  18. package/bundle/es5/ms.post.min.js +2 -2
  19. package/bundle/es5/ms.post.min.js.map +1 -1
  20. package/dist/es5/ms.post.js +704 -521
  21. package/dist/es5/ms.post.js.map +1 -1
  22. package/dist/es5/ms.post.min.js +2 -2
  23. package/dist/es5/ms.post.min.js.map +1 -1
  24. package/dist-es5/BatchNotificationActions.js +1 -1
  25. package/dist-es5/ClockSkewManager.js +8 -8
  26. package/dist-es5/ClockSkewManager.js.map +1 -1
  27. package/dist-es5/DataModels.js +1 -1
  28. package/dist-es5/EventBatch.js +13 -12
  29. package/dist-es5/EventBatch.js.map +1 -1
  30. package/dist-es5/HttpManager.js +173 -173
  31. package/dist-es5/HttpManager.js.map +1 -1
  32. package/dist-es5/Index.js +3 -3
  33. package/dist-es5/Index.js.map +1 -1
  34. package/dist-es5/InternalConstants.js +1 -1
  35. package/dist-es5/KillSwitch.js +8 -8
  36. package/dist-es5/KillSwitch.js.map +1 -1
  37. package/dist-es5/PostChannel.js +92 -90
  38. package/dist-es5/PostChannel.js.map +1 -1
  39. package/dist-es5/RetryPolicy.js +1 -1
  40. package/dist-es5/Serializer.js +4 -5
  41. package/dist-es5/Serializer.js.map +1 -1
  42. package/dist-es5/TimeoutOverrideWrapper.js +1 -1
  43. package/dist-es5/__DynamicConstants.js +83 -0
  44. package/dist-es5/__DynamicConstants.js.map +1 -0
  45. package/dist-es5/typings/XDomainRequest.js +1 -1
  46. package/package.json +40 -24
  47. package/types/1ds-post-js.d.ts +5 -3
  48. package/types/1ds-post-js.namespaced.d.ts +5 -3
  49. package/bundle/es5/ms.post-4.0.0.gbl.js.map +0 -1
  50. package/bundle/es5/ms.post-4.0.0.gbl.min.js +0 -7
  51. package/bundle/es5/ms.post-4.0.0.gbl.min.js.map +0 -1
  52. package/bundle/es5/ms.post-4.0.0.integrity.json +0 -46
  53. package/bundle/es5/ms.post-4.0.0.js.map +0 -1
  54. package/bundle/es5/ms.post-4.0.0.min.js +0 -7
  55. package/bundle/es5/ms.post-4.0.0.min.js.map +0 -1
package/README.md CHANGED
@@ -1,13 +1,3 @@
1
- ---
2
- ArtifactType: npm package.
3
- Documentation: https://1dsdocs.azurewebsites.net/getting-started/javascript-getting_started.html
4
- Language: typescript
5
- Platform: various
6
- Stackoverflow: N/A
7
- Tags: 1DSJSSDK
8
- ms.reviewedAt: 02/21/2019
9
- ms.reviewedBy: ramthi
10
- ---
11
1
  # Microsoft 1DS Web SDK Post Plugin
12
2
 
13
3
  ## Description
@@ -15,7 +5,7 @@ ms.reviewedBy: ramthi
15
5
 
16
6
  ## npm
17
7
 
18
- Packages available [here](https://msasg.visualstudio.com/Shared%20Data/_artifacts/feed/1DS-SDK/Npm/%40microsoft%2F1ds-post-js/overview/4.0.0).
8
+ Packages available [here](https://www.npmjs.com/package/@microsoft/1ds-post-js).
19
9
 
20
10
  ## Basic Usage
21
11
 
@@ -46,7 +36,7 @@ appInsightsCore.initialize(coreConfig, []);
46
36
 
47
37
  ## Configuration
48
38
 
49
- ### [IChannelConfiguration](https://1dsdocs.azurewebsites.net/api/webSDK/chnl/post/3.0/f/interfaces/ichannelconfiguration.html)
39
+ ### [IChannelConfiguration](https://microsoft.github.io/ApplicationInsights-JS/webSdk/1ds-post-js/interfaces/IChannelConfiguration.html)
50
40
 
51
41
  | Config | Description | Type
52
42
  |----------------|--------------|----
@@ -61,7 +51,7 @@ appInsightsCore.initialize(coreConfig, []);
61
51
  | payloadPreprocessor |POST channel preprocessing function. Can be used to gzip the payload (and set appropriate HTTP headers) before transmission. |[Function](./src/DataModels.ts)
62
52
  | payloadListener |POST channel function hook to listen to events being sent, called after the batched events have been committed to be sent. Also used by Remote DDV Channel to send requests. |[Function](./src/DataModels.ts)
63
53
  | disableEventTimings | [Optional] By default additional timing metrics details are added to each event after they are sent to allow you to review how long it took to create serialized request. As not all users require this level of detail and it's now possible to get the same metrics via the IPerfManager and IPerfEvent, so you can now disabled this previous level. Default value is false to retain the previous behavior, if you are not using these metrics and performance is a concern then it is recommended to set this value to true. | boolean
64
- | valueSanitizer | [Optional] The value sanitizer to use while constructing the envelope, if not provided the default sanitizeProperty() method is called to validate and convert the fields for serialization. The path / fields names are based on the format of the envelope (serialized object) as defined via the [Common Schema 4.0](https://1dsdocs.azurewebsites.net/schema/README.html) specification. | IValueSanitizer
54
+ | valueSanitizer | [Optional] The value sanitizer to use while constructing the envelope, if not provided the default sanitizeProperty() method is called to validate and convert the fields for serialization. The path / fields names are based on the format of the envelope (serialized object) as defined via the [Common Schema 4.0](https://aka.ms/CommonSchema) specification. | IValueSanitizer
65
55
  | stringifyObjects | [Optional] During serialization, when an object is identified should the object serialized by true => JSON.stringify(theObject); otherwise theObject.toString(). Defaults to false. | boolean
66
56
  | enableCompoundKey | [Optional] Enables support for objects with compound keys which indirectly represent an object eg. event: { "somedata.embeddedvalue": 123 } where the "key" of the object contains a "." as part of it's name. Defaults to false. | boolean
67
57
  | disableOptimizeObj | [Optional] Switch to disable the v8 `optimizeObject()` calls used to provide better serialization performance. Defaults to false. | boolean
@@ -77,7 +67,7 @@ appInsightsCore.initialize(coreConfig, []);
77
67
  | maxUnloadEventRetryAttempts<br /><sub><i>(Since 3.1.11+)</i></sub> | [Optional] Identifies the number of times any single event will be retried if it receives a failed (retriable) response as part of processing / flushing events once a page unload state has been detected, this causes the event to be internally "requeued" and resent in the next batch, which during page unload. Unlike the normal batching process, send requests are never retried, so the value listed here is always the maximum number of attempts for any single event.<br/>Notes: The SDK by default will use the sendBeacon() API if it exists which is treated as a fire and forget successful response, so for environments that support or supply this API the events won't be retried (because they will be deeded to be successfully sent). When an environment (IE) doesn't support sendBeacon(), this will cause multiple synchronous (by default) XMLHttpRequests to be sent, which will block the UI until a response is received. You can disable ALL synchronous XHR requests by setting the 'disableXhrSync' configuration setting and/or changing this value to 0 or 1. | number<br/>Default: 2
78
68
  | addNoResponse <br /><sub><i>(Since 3.2.8+)</i></sub> | [Optional] flag to indicate whether the sendBeacon and fetch (with keep-alive flag) should add the "NoResponseBody" query string value to indicate that the server should return a 204 for successful requests. | boolean<br/>Default: true
79
69
 
80
- ### [IXHROverride](https://1dsdocs.azurewebsites.net/api/webSDK/chnl/post/3.0/f/interfaces/ixhroverride.html)
70
+ ### [IXHROverride](https://microsoft.github.io/ApplicationInsights-JS/webSdk/1ds-post-js/interfaces/IXHROverride.html)
81
71
 
82
72
  | Config | Description | Type
83
73
  |----------------|----------------------------------------|----|
@@ -261,16 +251,16 @@ let postChannelConfig: IChannelConfiguration = {
261
251
  To ensure that the service can continue to accept events that are sent from the SDK, some paths and fields are explicitly blocked and are never processed
262
252
  via any configured valueSanitizer. These fields are blocked at the serialization level and cannot be overridden.
263
253
 
264
- The path / fields names are based on the format of the envelope (serialized object) as defined via the [Common Schema 4.0](https://1dsdocs.azurewebsites.net/schema/README.html) specification, so the path / field names used for the IValueSanitizer are based on how the data is serialized to the service (CS 4.0 location) and not specifically the location
254
+ The path / fields names are based on the format of the envelope (serialized object) as defined via the [Common Schema 4.0](https://aka.ms/CommonSchema) specification, so the path / field names used for the IValueSanitizer are based on how the data is serialized to the service (CS 4.0 location) and not specifically the location
265
255
  on the event object you pass into the track methods (unless they are the same).
266
256
 
267
257
  The currently configured set of fields include
268
258
 
269
259
  ### Excluded Part A fields
270
260
 
271
- - All direct top-level fields of the envelope, this includes "ver"; "name"; "time" and "iKey". see [Common Schema 4.0 - Part A](https://1dsdocs.azurewebsites.net/schema/PartA/README.html) for all defined fields. Note: This exclusion does does not match sub-keys (objects) like "ext", "data" and "properties".
272
- - All fields of the web extension, this includes all fields and sub keys of "ext.web" (example fields include "ext.web.browser"; "ext.web.domain"; "ext.web.consentDetails"). see [Common Schema 4.0 - Part A Extension - web](https://1dsdocs.azurewebsites.net/schema/PartA/web.html) for the complete set of defined fields.
273
- - All fields and paths of the metadata extension, this includes all fields and sub keys of "ext.metadata". see [Common Schema 4.0 - Part A Extension - metadata](https://1dsdocs.azurewebsites.net/schema/PartA/metadata.html) for the complete set of defined fields.
261
+ - All direct top-level fields of the envelope, this includes "ver"; "name"; "time" and "iKey". see [Common Schema 4.0 - Part A](https://aka.ms/CommonSchema/PartA) for all defined fields. Note: This exclusion does does not match sub-keys (objects) like "ext", "data" and "properties".
262
+ - All fields of the web extension, this includes all fields and sub keys of "ext.web" (example fields include "ext.web.browser"; "ext.web.domain"; "ext.web.consentDetails"). see [Common Schema 4.0 - Part A Extension - web](https://aka.ms/CommonSchema/PartA/Web) for the complete set of defined fields.
263
+ - All fields and paths of the metadata extension, this includes all fields and sub keys of "ext.metadata". see [Common Schema 4.0 - Part A Extension - metadata](https://aka.ms/CommonSchema/PartA/MetaData) for the complete set of defined fields.
274
264
 
275
265
  ## Synchronous Events
276
266
 
@@ -323,17 +313,11 @@ There are effectively 2 scenarios where you should consider adding the `sync` pr
323
313
 
324
314
  ## API documentation
325
315
 
326
- [https://1dsdocs.azurewebsites.net/api/webSDK/chnl/post/3.0/f/index.html](https://1dsdocs.azurewebsites.net/api/webSDK/chnl/post/3.0/f/index.html)
327
-
328
- ## Sample App
329
-
330
- [React sample App](https://msasg.visualstudio.com/Shared%20Data/_git/1DS.JavaScript.SampleApps.React?path=%2FREADME.md&version=GBmaster&_a=preview).
331
-
332
- [React Native sample App](https://msasg.visualstudio.com/Shared%20Data/_git/1DS.JavaScript.SampleApps.ReactNative?path=%2FREADME.md&version=GBmaster&_a=preview).
316
+ [Typedoc generated API reference](https://microsoft.github.io/ApplicationInsights-JS/webSdk/1ds-post-js/index.html)
333
317
 
334
318
  ## Learn More
335
319
 
336
- You can learn more in [1DS First party getting started](https://1dsdocs.azurewebsites.net/getting-started/javascript-getting_started.html).
320
+ You can learn more in [1DS First party getting started](https://aka.ms/1dsjs).
337
321
 
338
322
  ## Data Collection
339
323