@microsoft/applicationinsights-osplugin-js 3.4.0-nightlybeta3.2602-27 → 3.4.1

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 (49) hide show
  1. package/browser/es5/{ai.osplugin.3.4.0-nightlybeta3.2602-27.cjs.js → ai.osplugin.3.4.1.cjs.js} +139 -90
  2. package/browser/es5/ai.osplugin.3.4.1.cjs.js.map +1 -0
  3. package/browser/es5/ai.osplugin.3.4.1.cjs.min.js +6 -0
  4. package/browser/es5/ai.osplugin.3.4.1.cjs.min.js.map +1 -0
  5. package/browser/es5/{ai.osplugin.3.4.0-nightlybeta3.2602-27.gbl.js → ai.osplugin.3.4.1.gbl.js} +141 -92
  6. package/browser/es5/ai.osplugin.3.4.1.gbl.js.map +1 -0
  7. package/browser/es5/ai.osplugin.3.4.1.gbl.min.js +6 -0
  8. package/browser/es5/ai.osplugin.3.4.1.gbl.min.js.map +1 -0
  9. package/browser/es5/ai.osplugin.3.4.1.integrity.json +66 -0
  10. package/browser/es5/{ai.osplugin.3.4.0-nightlybeta3.2602-27.js → ai.osplugin.3.4.1.js} +141 -92
  11. package/browser/es5/ai.osplugin.3.4.1.js.map +1 -0
  12. package/browser/es5/ai.osplugin.3.4.1.min.js +6 -0
  13. package/browser/es5/ai.osplugin.3.4.1.min.js.map +1 -0
  14. package/browser/es5/ai.osplugin.3.cjs.js +138 -89
  15. package/browser/es5/ai.osplugin.3.cjs.js.map +1 -1
  16. package/browser/es5/ai.osplugin.3.cjs.min.js +2 -2
  17. package/browser/es5/ai.osplugin.3.cjs.min.js.map +1 -1
  18. package/browser/es5/ai.osplugin.3.gbl.js +140 -91
  19. package/browser/es5/ai.osplugin.3.gbl.js.map +1 -1
  20. package/browser/es5/ai.osplugin.3.gbl.min.js +2 -2
  21. package/browser/es5/ai.osplugin.3.gbl.min.js.map +1 -1
  22. package/browser/es5/ai.osplugin.3.integrity.json +25 -25
  23. package/browser/es5/ai.osplugin.3.js +140 -91
  24. package/browser/es5/ai.osplugin.3.js.map +1 -1
  25. package/browser/es5/ai.osplugin.3.min.js +2 -2
  26. package/browser/es5/ai.osplugin.3.min.js.map +1 -1
  27. package/dist/es5/applicationinsights-osplugin-js.js +138 -89
  28. package/dist/es5/applicationinsights-osplugin-js.js.map +1 -1
  29. package/dist/es5/applicationinsights-osplugin-js.min.js +2 -2
  30. package/dist/es5/applicationinsights-osplugin-js.min.js.map +1 -1
  31. package/dist-es5/DataModels.js +1 -1
  32. package/dist-es5/OsPlugin.js +135 -86
  33. package/dist-es5/OsPlugin.js.map +1 -1
  34. package/dist-es5/__DynamicConstants.js +3 -2
  35. package/dist-es5/__DynamicConstants.js.map +1 -1
  36. package/dist-es5/applicationinsights-osplugin-js.js +1 -1
  37. package/package.json +57 -60
  38. package/types/applicationinsights-osplugin-js.d.ts +1 -1
  39. package/types/applicationinsights-osplugin-js.namespaced.d.ts +39 -3
  40. package/browser/es5/ai.osplugin.3.4.0-nightlybeta3.2602-27.cjs.js.map +0 -1
  41. package/browser/es5/ai.osplugin.3.4.0-nightlybeta3.2602-27.cjs.min.js +0 -6
  42. package/browser/es5/ai.osplugin.3.4.0-nightlybeta3.2602-27.cjs.min.js.map +0 -1
  43. package/browser/es5/ai.osplugin.3.4.0-nightlybeta3.2602-27.gbl.js.map +0 -1
  44. package/browser/es5/ai.osplugin.3.4.0-nightlybeta3.2602-27.gbl.min.js +0 -6
  45. package/browser/es5/ai.osplugin.3.4.0-nightlybeta3.2602-27.gbl.min.js.map +0 -1
  46. package/browser/es5/ai.osplugin.3.4.0-nightlybeta3.2602-27.integrity.json +0 -66
  47. package/browser/es5/ai.osplugin.3.4.0-nightlybeta3.2602-27.js.map +0 -1
  48. package/browser/es5/ai.osplugin.3.4.0-nightlybeta3.2602-27.min.js +0 -6
  49. package/browser/es5/ai.osplugin.3.4.0-nightlybeta3.2602-27.min.js.map +0 -1
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Microsoft Application Insights osplugin plugin, 3.4.0-nightlybeta3.2602-27
2
+ * Microsoft Application Insights osplugin plugin, 3.4.1
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  *
5
5
  * Microsoft Application Insights Team
@@ -461,6 +461,38 @@ declare namespace ApplicationInsights {
461
461
  All = 3
462
462
  }
463
463
 
464
+ /**
465
+ * Controls how the user can configure which parts of the URL should be redacted. Example, certain query parameters, username and password, etc.
466
+ */
467
+ const enum eUrlRedactionOptions {
468
+ /**
469
+ * The default value, will redact the username and password as well as the default set of query parameters
470
+ */
471
+ true = 1,
472
+ /**
473
+ * Does not redact username and password or any query parameters, the URL will be left as is. Note: this is not recommended as it may lead
474
+ * to sensitive data being sent in clear text.
475
+ */
476
+ false = 2,
477
+ /**
478
+ * This will append any additional queryParams that the user has provided through redactQueryParams config to the default set i.e to
479
+ * @defaultValue ["sig", "Signature", "AWSAccessKeyId", "X-Goog-Signature"].
480
+ */
481
+ appendToDefault = 3,
482
+ /**
483
+ * This will replace the default set of query parameters to redact with the query parameters defined in redactQueryParams config, if provided by the user.
484
+ */
485
+ replaceDefault = 4,
486
+ /**
487
+ * This will redact username and password in the URL but will not redact any query parameters, even those in the default set.
488
+ */
489
+ usernamePasswordOnly = 5,
490
+ /**
491
+ * This will only redact the query parameter in the default set of query parameters to redact. It will not redact username and password.
492
+ */
493
+ queryParamsOnly = 6
494
+ }
495
+
464
496
  const enum FeatureOptInMode {
465
497
  /**
466
498
  * not set, completely depends on cdn cfg
@@ -1502,10 +1534,10 @@ declare namespace ApplicationInsights {
1502
1534
  */
1503
1535
  expCfg?: IExceptionConfig;
1504
1536
  /**
1505
- * [Optional] A flag to enable or disable the use of the field redaction for urls.
1537
+ * [Optional] A flag to enable or disable redaction for query parameters and username/password.
1506
1538
  * @defaultValue true
1507
1539
  */
1508
- redactUrls?: boolean;
1540
+ redactUrls?: UrlRedactionOptions;
1509
1541
  /**
1510
1542
  * [Optional] Additional query parameters to redact beyond the default set.
1511
1543
  * Use this to specify custom parameters that contain sensitive information.
@@ -4719,6 +4751,10 @@ declare namespace ApplicationInsights {
4719
4751
 
4720
4752
  type UnloadHandler = (itemCtx: IProcessTelemetryUnloadContext, unloadState: ITelemetryUnloadState) => void;
4721
4753
 
4754
+ const UrlRedactionOptions: EnumValue<typeof eUrlRedactionOptions>;
4755
+
4756
+ type UrlRedactionOptions = boolean | eUrlRedactionOptions;
4757
+
4722
4758
  type WatcherFunction<T = IConfiguration> = (details: IWatchDetails<T>) => void;
4723
4759
 
4724
4760
  }