@microsoft/1ds-post-js 4.3.7-nightly3.2504-18 → 4.3.7-nightly3.2505-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 (50) hide show
  1. package/README.md +1 -0
  2. package/bundle/es5/{ms.post-4.3.7-nightly3.2504-18.gbl.js → ms.post-4.3.7-nightly3.2505-02.gbl.js} +118 -22
  3. package/bundle/es5/ms.post-4.3.7-nightly3.2505-02.gbl.js.map +1 -0
  4. package/bundle/es5/ms.post-4.3.7-nightly3.2505-02.gbl.min.js +7 -0
  5. package/bundle/es5/ms.post-4.3.7-nightly3.2505-02.gbl.min.js.map +1 -0
  6. package/bundle/es5/ms.post-4.3.7-nightly3.2505-02.integrity.json +46 -0
  7. package/bundle/es5/{ms.post-4.3.7-nightly3.2504-18.js → ms.post-4.3.7-nightly3.2505-02.js} +118 -22
  8. package/bundle/es5/ms.post-4.3.7-nightly3.2505-02.js.map +1 -0
  9. package/bundle/es5/ms.post-4.3.7-nightly3.2505-02.min.js +7 -0
  10. package/bundle/es5/ms.post-4.3.7-nightly3.2505-02.min.js.map +1 -0
  11. package/bundle/es5/ms.post.gbl.js +117 -21
  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 +117 -21
  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 +115 -19
  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 +1 -1
  26. package/dist-es5/DataModels.js +1 -1
  27. package/dist-es5/EventBatch.js +1 -1
  28. package/dist-es5/HttpManager.js +25 -14
  29. package/dist-es5/HttpManager.js.map +1 -1
  30. package/dist-es5/Index.js +1 -1
  31. package/dist-es5/InternalConstants.js +1 -1
  32. package/dist-es5/KillSwitch.js +1 -1
  33. package/dist-es5/PostChannel.js +4 -3
  34. package/dist-es5/PostChannel.js.map +1 -1
  35. package/dist-es5/RetryPolicy.js +1 -1
  36. package/dist-es5/Serializer.js +26 -4
  37. package/dist-es5/Serializer.js.map +1 -1
  38. package/dist-es5/TimeoutOverrideWrapper.js +1 -1
  39. package/dist-es5/__DynamicConstants.js +1 -1
  40. package/dist-es5/typings/XDomainRequest.js +1 -1
  41. package/package.json +2 -2
  42. package/types/1ds-post-js.d.ts +21 -1
  43. package/types/1ds-post-js.namespaced.d.ts +21 -1
  44. package/bundle/es5/ms.post-4.3.7-nightly3.2504-18.gbl.js.map +0 -1
  45. package/bundle/es5/ms.post-4.3.7-nightly3.2504-18.gbl.min.js +0 -7
  46. package/bundle/es5/ms.post-4.3.7-nightly3.2504-18.gbl.min.js.map +0 -1
  47. package/bundle/es5/ms.post-4.3.7-nightly3.2504-18.integrity.json +0 -46
  48. package/bundle/es5/ms.post-4.3.7-nightly3.2504-18.js.map +0 -1
  49. package/bundle/es5/ms.post-4.3.7-nightly3.2504-18.min.js +0 -7
  50. package/bundle/es5/ms.post-4.3.7-nightly3.2504-18.min.js.map +0 -1
@@ -1,5 +1,5 @@
1
1
  /*
2
- * 1DS JS SDK Post Channel, 4.3.7-nightly3.2504-18
2
+ * 1DS JS SDK Post Channel, 4.3.7-nightly3.2505-02
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  *
5
5
  * Microsoft Application Insights Team
@@ -63,6 +63,13 @@ export declare interface IChannelConfiguration {
63
63
  * default transmission profile timers, autoFlushEventsLimit and eventsLimitInMem config values.
64
64
  */
65
65
  disableAutoBatchFlushLimit?: boolean;
66
+ /**
67
+ * [Optional] Sets the record and request size limit in bytes for serializer.
68
+ * Default for record size (sync) is 65000, record size (async) is 2000000.
69
+ * Default for request size (sync) is 65000, request size (async) is 3145728.
70
+ * @since 3.3.7
71
+ */
72
+ requestLimit?: IRequestSizeLimit;
66
73
  /**
67
74
  * [Optional] The HTTP override that should be used to send requests, as an IXHROverride object.
68
75
  * By default during the unload of a page or if the event specifies that it wants to use sendBeacon() or sync fetch (with keep-alive),
@@ -266,6 +273,19 @@ export declare interface IPostChannel extends ITelemetryPlugin {
266
273
  addResponseHandler(responseHandler: (responseText: string) => void): IUnloadHook;
267
274
  }
268
275
 
276
+ export declare interface IRequestSizeLimit {
277
+ /**
278
+ * Request size limit in bytes for serializer.
279
+ * The value should be two numbers array, with format [async request size limit, sync request size limit]
280
+ */
281
+ requestLimit?: number[];
282
+ /**
283
+ * Record size limit in bytes for serializer.
284
+ * The value should be two numbers array, with format [async record size limit, sync record size limit]
285
+ */
286
+ recordLimit?: number[];
287
+ }
288
+
269
289
  export { IXHROverride }
270
290
 
271
291
  /**
@@ -1,5 +1,5 @@
1
1
  /*
2
- * 1DS JS SDK Post Channel, 4.3.7-nightly3.2504-18
2
+ * 1DS JS SDK Post Channel, 4.3.7-nightly3.2505-02
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  *
5
5
  * Microsoft Application Insights Team
@@ -536,6 +536,13 @@ declare namespace oneDS {
536
536
  * default transmission profile timers, autoFlushEventsLimit and eventsLimitInMem config values.
537
537
  */
538
538
  disableAutoBatchFlushLimit?: boolean;
539
+ /**
540
+ * [Optional] Sets the record and request size limit in bytes for serializer.
541
+ * Default for record size (sync) is 65000, record size (async) is 2000000.
542
+ * Default for request size (sync) is 65000, request size (async) is 3145728.
543
+ * @since 3.3.7
544
+ */
545
+ requestLimit?: IRequestSizeLimit;
539
546
  /**
540
547
  * [Optional] The HTTP override that should be used to send requests, as an IXHROverride object.
541
548
  * By default during the unload of a page or if the event specifies that it wants to use sendBeacon() or sync fetch (with keep-alive),
@@ -2084,6 +2091,19 @@ declare namespace oneDS {
2084
2091
  getProperty: (key: string) => string;
2085
2092
  }
2086
2093
 
2094
+ interface IRequestSizeLimit {
2095
+ /**
2096
+ * Request size limit in bytes for serializer.
2097
+ * The value should be two numbers array, with format [async request size limit, sync request size limit]
2098
+ */
2099
+ requestLimit?: number[];
2100
+ /**
2101
+ * Record size limit in bytes for serializer.
2102
+ * The value should be two numbers array, with format [async record size limit, sync record size limit]
2103
+ */
2104
+ recordLimit?: number[];
2105
+ }
2106
+
2087
2107
  interface IStatsBeat {
2088
2108
  initialize(core: IAppInsightsCore, statsBeatConfig: IStatsBeatConfig): void;
2089
2109
  isInitialized(): boolean;