@microsoft/applicationinsights-osplugin-js 3.4.0-nightlybeta3.2602-17 → 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.
- package/browser/es5/{ai.osplugin.3.4.0-nightlybeta3.2602-17.cjs.js → ai.osplugin.3.4.1.cjs.js} +139 -90
- package/browser/es5/ai.osplugin.3.4.1.cjs.js.map +1 -0
- package/browser/es5/ai.osplugin.3.4.1.cjs.min.js +6 -0
- package/browser/es5/ai.osplugin.3.4.1.cjs.min.js.map +1 -0
- package/browser/es5/{ai.osplugin.3.4.0-nightlybeta3.2602-17.gbl.js → ai.osplugin.3.4.1.gbl.js} +141 -92
- package/browser/es5/ai.osplugin.3.4.1.gbl.js.map +1 -0
- package/browser/es5/ai.osplugin.3.4.1.gbl.min.js +6 -0
- package/browser/es5/ai.osplugin.3.4.1.gbl.min.js.map +1 -0
- package/browser/es5/ai.osplugin.3.4.1.integrity.json +66 -0
- package/browser/es5/{ai.osplugin.3.4.0-nightlybeta3.2602-17.js → ai.osplugin.3.4.1.js} +141 -92
- package/browser/es5/ai.osplugin.3.4.1.js.map +1 -0
- package/browser/es5/ai.osplugin.3.4.1.min.js +6 -0
- package/browser/es5/ai.osplugin.3.4.1.min.js.map +1 -0
- package/browser/es5/ai.osplugin.3.cjs.js +138 -89
- package/browser/es5/ai.osplugin.3.cjs.js.map +1 -1
- package/browser/es5/ai.osplugin.3.cjs.min.js +2 -2
- package/browser/es5/ai.osplugin.3.cjs.min.js.map +1 -1
- package/browser/es5/ai.osplugin.3.gbl.js +140 -91
- package/browser/es5/ai.osplugin.3.gbl.js.map +1 -1
- package/browser/es5/ai.osplugin.3.gbl.min.js +2 -2
- package/browser/es5/ai.osplugin.3.gbl.min.js.map +1 -1
- package/browser/es5/ai.osplugin.3.integrity.json +25 -25
- package/browser/es5/ai.osplugin.3.js +140 -91
- package/browser/es5/ai.osplugin.3.js.map +1 -1
- package/browser/es5/ai.osplugin.3.min.js +2 -2
- package/browser/es5/ai.osplugin.3.min.js.map +1 -1
- package/dist/es5/applicationinsights-osplugin-js.js +138 -89
- package/dist/es5/applicationinsights-osplugin-js.js.map +1 -1
- package/dist/es5/applicationinsights-osplugin-js.min.js +2 -2
- package/dist/es5/applicationinsights-osplugin-js.min.js.map +1 -1
- package/dist-es5/DataModels.js +1 -1
- package/dist-es5/OsPlugin.js +135 -86
- package/dist-es5/OsPlugin.js.map +1 -1
- package/dist-es5/__DynamicConstants.js +3 -2
- package/dist-es5/__DynamicConstants.js.map +1 -1
- package/dist-es5/applicationinsights-osplugin-js.js +1 -1
- package/package.json +57 -60
- package/types/applicationinsights-osplugin-js.d.ts +1 -1
- package/types/applicationinsights-osplugin-js.namespaced.d.ts +39 -3
- package/browser/es5/ai.osplugin.3.4.0-nightlybeta3.2602-17.cjs.js.map +0 -1
- package/browser/es5/ai.osplugin.3.4.0-nightlybeta3.2602-17.cjs.min.js +0 -6
- package/browser/es5/ai.osplugin.3.4.0-nightlybeta3.2602-17.cjs.min.js.map +0 -1
- package/browser/es5/ai.osplugin.3.4.0-nightlybeta3.2602-17.gbl.js.map +0 -1
- package/browser/es5/ai.osplugin.3.4.0-nightlybeta3.2602-17.gbl.min.js +0 -6
- package/browser/es5/ai.osplugin.3.4.0-nightlybeta3.2602-17.gbl.min.js.map +0 -1
- package/browser/es5/ai.osplugin.3.4.0-nightlybeta3.2602-17.integrity.json +0 -66
- package/browser/es5/ai.osplugin.3.4.0-nightlybeta3.2602-17.js.map +0 -1
- package/browser/es5/ai.osplugin.3.4.0-nightlybeta3.2602-17.min.js +0 -6
- package/browser/es5/ai.osplugin.3.4.0-nightlybeta3.2602-17.min.js.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Microsoft Application Insights osplugin plugin, 3.4.
|
|
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
|
|
1537
|
+
* [Optional] A flag to enable or disable redaction for query parameters and username/password.
|
|
1506
1538
|
* @defaultValue true
|
|
1507
1539
|
*/
|
|
1508
|
-
redactUrls?:
|
|
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
|
}
|