@microsoft/1ds-post-js 4.3.2 → 4.3.3-nightly3.2409-01

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 (47) hide show
  1. package/bundle/es5/{ms.post-4.3.2.gbl.js → ms.post-4.3.3-nightly3.2409-01.gbl.js} +7 -7
  2. package/bundle/es5/ms.post-4.3.3-nightly3.2409-01.gbl.js.map +1 -0
  3. package/bundle/es5/ms.post-4.3.3-nightly3.2409-01.gbl.min.js +7 -0
  4. package/bundle/es5/ms.post-4.3.3-nightly3.2409-01.gbl.min.js.map +1 -0
  5. package/bundle/es5/ms.post-4.3.3-nightly3.2409-01.integrity.json +46 -0
  6. package/bundle/es5/{ms.post-4.3.2.js → ms.post-4.3.3-nightly3.2409-01.js} +7 -7
  7. package/bundle/es5/ms.post-4.3.3-nightly3.2409-01.js.map +1 -0
  8. package/bundle/es5/ms.post-4.3.3-nightly3.2409-01.min.js +7 -0
  9. package/bundle/es5/ms.post-4.3.3-nightly3.2409-01.min.js.map +1 -0
  10. package/bundle/es5/ms.post.gbl.js +6 -6
  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 +6 -6
  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 +4 -4
  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 +1 -1
  37. package/dist-es5/typings/XDomainRequest.js +1 -1
  38. package/package.json +66 -63
  39. package/types/1ds-post-js.d.ts +1 -1
  40. package/types/1ds-post-js.namespaced.d.ts +29 -3
  41. package/bundle/es5/ms.post-4.3.2.gbl.js.map +0 -1
  42. package/bundle/es5/ms.post-4.3.2.gbl.min.js +0 -7
  43. package/bundle/es5/ms.post-4.3.2.gbl.min.js.map +0 -1
  44. package/bundle/es5/ms.post-4.3.2.integrity.json +0 -46
  45. package/bundle/es5/ms.post-4.3.2.js.map +0 -1
  46. package/bundle/es5/ms.post-4.3.2.min.js +0 -7
  47. package/bundle/es5/ms.post-4.3.2.min.js.map +0 -1
@@ -1,5 +1,5 @@
1
1
  /*
2
- * 1DS JS SDK Post Channel, 4.3.2
2
+ * 1DS JS SDK Post Channel, 4.3.3-nightly3.2409-01
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  *
5
5
  * Microsoft Application Insights Team
@@ -1,5 +1,5 @@
1
1
  /*
2
- * 1DS JS SDK Post Channel, 4.3.2
2
+ * 1DS JS SDK Post Channel, 4.3.3-nightly3.2409-01
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  *
5
5
  * Microsoft Application Insights Team
@@ -1245,10 +1245,31 @@ declare namespace oneDS {
1245
1245
  propertyType?: number;
1246
1246
  }
1247
1247
 
1248
+ /**
1249
+ * Configuration for extra exceptions information sent with the exception telemetry.
1250
+ * @example
1251
+ * ```js
1252
+ * const appInsights = new ApplicationInsights({
1253
+ config: {
1254
+ connectionString: 'InstrumentationKey=YOUR_INSTRUMENTATION_KEY_GOES_HERE',
1255
+ expCfg: {
1256
+ inclScripts: true,
1257
+ expLog : () => {
1258
+ return {logs: ["log info 1", "log info 2"]};
1259
+ },
1260
+ maxLogs : 100
1261
+ }
1262
+ }
1263
+ });
1264
+ appInsights.trackException({error: new Error(), severityLevel: SeverityLevel.Critical});
1265
+ * ```
1266
+ * @interface IExceptionConfig
1267
+ */
1248
1268
  interface IExceptionConfig {
1249
1269
  /**
1250
1270
  * If set to true, when exception is sent out, the SDK will also send out all scripts basic info that are loaded on the page.
1251
1271
  * Notice: This would increase the size of the exception telemetry.
1272
+ * @defaultvalue true
1252
1273
  */
1253
1274
  inclScripts?: boolean;
1254
1275
  /**
@@ -1263,10 +1284,15 @@ declare namespace oneDS {
1263
1284
  *
1264
1285
  * @property {number} maxLogs - Specifies the maximum number of logs that can be generated. If not explicitly set, it defaults to 50.
1265
1286
  */
1266
- expLog: () => {
1287
+ expLog?: () => {
1267
1288
  logs: string[];
1268
1289
  };
1269
- maxLogs: number;
1290
+ /**
1291
+ * The maximum number of logs to include in the telemetry data.
1292
+ * If not explicitly set, it defaults to 50.
1293
+ * This is used in conjunction with the `expLog` callback.
1294
+ */
1295
+ maxLogs?: number;
1270
1296
  }
1271
1297
 
1272
1298
  /**