@microsoft/applicationinsights-cfgsync-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.
Files changed (50) hide show
  1. package/browser/es5/{ai.cfgsync.3.4.0-nightlybeta3.2602-17.cjs.js → ai.cfgsync.3.4.1.cjs.js} +15 -12
  2. package/browser/es5/ai.cfgsync.3.4.1.cjs.js.map +1 -0
  3. package/browser/es5/ai.cfgsync.3.4.1.cjs.min.js +6 -0
  4. package/browser/es5/ai.cfgsync.3.4.1.cjs.min.js.map +1 -0
  5. package/browser/es5/{ai.cfgsync.3.4.0-nightlybeta3.2602-17.gbl.js → ai.cfgsync.3.4.1.gbl.js} +17 -14
  6. package/browser/es5/ai.cfgsync.3.4.1.gbl.js.map +1 -0
  7. package/browser/es5/ai.cfgsync.3.4.1.gbl.min.js +6 -0
  8. package/browser/es5/ai.cfgsync.3.4.1.gbl.min.js.map +1 -0
  9. package/browser/es5/ai.cfgsync.3.4.1.integrity.json +66 -0
  10. package/browser/es5/{ai.cfgsync.3.4.0-nightlybeta3.2602-17.js → ai.cfgsync.3.4.1.js} +17 -14
  11. package/browser/es5/ai.cfgsync.3.4.1.js.map +1 -0
  12. package/browser/es5/ai.cfgsync.3.4.1.min.js +6 -0
  13. package/browser/es5/ai.cfgsync.3.4.1.min.js.map +1 -0
  14. package/browser/es5/ai.cfgsync.3.cjs.js +14 -11
  15. package/browser/es5/ai.cfgsync.3.cjs.js.map +1 -1
  16. package/browser/es5/ai.cfgsync.3.cjs.min.js +2 -2
  17. package/browser/es5/ai.cfgsync.3.cjs.min.js.map +1 -1
  18. package/browser/es5/ai.cfgsync.3.gbl.js +16 -13
  19. package/browser/es5/ai.cfgsync.3.gbl.js.map +1 -1
  20. package/browser/es5/ai.cfgsync.3.gbl.min.js +2 -2
  21. package/browser/es5/ai.cfgsync.3.gbl.min.js.map +1 -1
  22. package/browser/es5/ai.cfgsync.3.integrity.json +25 -25
  23. package/browser/es5/ai.cfgsync.3.js +16 -13
  24. package/browser/es5/ai.cfgsync.3.js.map +1 -1
  25. package/browser/es5/ai.cfgsync.3.min.js +2 -2
  26. package/browser/es5/ai.cfgsync.3.min.js.map +1 -1
  27. package/dist/es5/applicationinsights-cfgsync-js.js +14 -11
  28. package/dist/es5/applicationinsights-cfgsync-js.js.map +1 -1
  29. package/dist/es5/applicationinsights-cfgsync-js.min.js +2 -2
  30. package/dist/es5/applicationinsights-cfgsync-js.min.js.map +1 -1
  31. package/dist-es5/CfgSyncHelperFuncs.js +1 -1
  32. package/dist-es5/CfgSyncPlugin.js +1 -1
  33. package/dist-es5/Interfaces/ICfgSyncCdnConfig.js +1 -1
  34. package/dist-es5/Interfaces/ICfgSyncConfig.js +1 -1
  35. package/dist-es5/Interfaces/ICfgSyncPlugin.js +1 -1
  36. package/dist-es5/__DynamicConstants.js +1 -1
  37. package/dist-es5/applicationinsights-cfgsync-js.js +1 -1
  38. package/package.json +65 -68
  39. package/types/applicationinsights-cfgsync-js.d.ts +1 -1
  40. package/types/applicationinsights-cfgsync-js.namespaced.d.ts +39 -3
  41. package/browser/es5/ai.cfgsync.3.4.0-nightlybeta3.2602-17.cjs.js.map +0 -1
  42. package/browser/es5/ai.cfgsync.3.4.0-nightlybeta3.2602-17.cjs.min.js +0 -6
  43. package/browser/es5/ai.cfgsync.3.4.0-nightlybeta3.2602-17.cjs.min.js.map +0 -1
  44. package/browser/es5/ai.cfgsync.3.4.0-nightlybeta3.2602-17.gbl.js.map +0 -1
  45. package/browser/es5/ai.cfgsync.3.4.0-nightlybeta3.2602-17.gbl.min.js +0 -6
  46. package/browser/es5/ai.cfgsync.3.4.0-nightlybeta3.2602-17.gbl.min.js.map +0 -1
  47. package/browser/es5/ai.cfgsync.3.4.0-nightlybeta3.2602-17.integrity.json +0 -66
  48. package/browser/es5/ai.cfgsync.3.4.0-nightlybeta3.2602-17.js.map +0 -1
  49. package/browser/es5/ai.cfgsync.3.4.0-nightlybeta3.2602-17.min.js +0 -6
  50. package/browser/es5/ai.cfgsync.3.4.0-nightlybeta3.2602-17.min.js.map +0 -1
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Application Insights JavaScript SDK - Properties Plugin, 3.4.0-nightlybeta3.2602-17
2
+ * Application Insights JavaScript SDK - Properties Plugin, 3.4.1
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
  import { isNullOrUndefined, isObject, objExtend, objForEachKey, setValueByKey } from "@nevware21/ts-utils";
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Application Insights JavaScript SDK - Properties Plugin, 3.4.0-nightlybeta3.2602-17
2
+ * Application Insights JavaScript SDK - Properties Plugin, 3.4.1
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Application Insights JavaScript SDK - Properties Plugin, 3.4.0-nightlybeta3.2602-17
2
+ * Application Insights JavaScript SDK - Properties Plugin, 3.4.1
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
  export {};
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Application Insights JavaScript SDK - Properties Plugin, 3.4.0-nightlybeta3.2602-17
2
+ * Application Insights JavaScript SDK - Properties Plugin, 3.4.1
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
  export {};
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Application Insights JavaScript SDK - Properties Plugin, 3.4.0-nightlybeta3.2602-17
2
+ * Application Insights JavaScript SDK - Properties Plugin, 3.4.1
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
  export {};
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Application Insights JavaScript SDK - Properties Plugin, 3.4.0-nightlybeta3.2602-17
2
+ * Application Insights JavaScript SDK - Properties Plugin, 3.4.1
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Application Insights JavaScript SDK - Properties Plugin, 3.4.0-nightlybeta3.2602-17
2
+ * Application Insights JavaScript SDK - Properties Plugin, 3.4.1
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
  import { CfgSyncPlugin } from "./CfgSyncPlugin";
package/package.json CHANGED
@@ -1,68 +1,65 @@
1
- {
2
- "name": "@microsoft/applicationinsights-cfgsync-js",
3
- "version": "3.4.0-nightlybeta3.2602-17",
4
- "description": "Microsoft Application Insights CfgSync Plugin",
5
- "homepage": "https://github.com/microsoft/ApplicationInsights-JS#readme",
6
- "author": "Microsoft Application Insights Team",
7
- "main": "dist/es5/applicationinsights-cfgsync-js.js",
8
- "module": "dist-es5/applicationinsights-cfgsync-js.js",
9
- "types": "types/applicationinsights-cfgsync-js.d.ts",
10
- "sideEffects": false,
11
- "repository": {
12
- "type": "git",
13
- "url": "https://github.com/microsoft/ApplicationInsights-JS/tree/main/extensions/applicationinsights-cfgsync-js"
14
- },
15
- "scripts": {
16
- "build": "npm run build:esm && npm run build:browser && npm run sri && npm run dtsgen",
17
- "build:esm": "grunt cfgsync",
18
- "build:browser": "rollup -c rollup.config.js --bundleConfigAsCjs",
19
- "rebuild": "npm run build",
20
- "test": "grunt cfgsynctests",
21
- "mintest": "grunt cfgsync-mintests",
22
- "lint": "tslint -p tsconfig.json",
23
- "dtsgen": "api-extractor run --local && node ../../scripts/dtsgen.js \"Microsoft Application Insights idsync plugin\"",
24
- "sri": "node ../../tools/subResourceIntegrity/generateIntegrityFile.js",
25
- "ai-min": "grunt cfgsync-min",
26
- "ai-restore": "grunt cfgsync-restore",
27
- "npm-pack": "npm pack",
28
- "api-docs": "typedoc"
29
- },
30
- "devDependencies": {
31
- "@microsoft/ai-test-framework": "0.0.1",
32
- "@microsoft/applicationinsights-rollup-plugin-uglify3-js": "1.0.0",
33
- "@microsoft/applicationinsights-rollup-es5": "1.0.2",
34
- "@microsoft/api-extractor": "^7.40.0",
35
- "typescript": "^4.9.3",
36
- "tslib": "^2.0.0",
37
- "grunt": "^1.6.1",
38
- "grunt-cli": "^1.5.0",
39
- "@nevware21/grunt-ts-plugin": "^0.5.1",
40
- "@nevware21/grunt-eslint-ts": "^0.5.1",
41
- "globby": "^11.0.0",
42
- "magic-string": "^0.25.7",
43
- "pako": "^2.0.3",
44
- "@rollup/plugin-commonjs": "^24.0.0",
45
- "@rollup/plugin-node-resolve": "^15.0.1",
46
- "@rollup/plugin-replace": "^5.0.2",
47
- "rollup": "^3.20.0",
48
- "rollup-plugin-cleanup": "^3.2.1",
49
- "rollup-plugin-sourcemaps": "^0.6.3",
50
- "typedoc": "^0.26.6",
51
- "qunit": "^2.11.2",
52
- "sinon": "^7.3.1"
53
- },
54
- "peerDependencies": {
55
- "tslib": ">= 1.0.0"
56
- },
57
- "dependencies": {
58
- "@microsoft/dynamicproto-js": "^2.0.3",
59
- "@microsoft/applicationinsights-shims": "3.0.1",
60
- "@microsoft/applicationinsights-core-js": "3.4.0-nightlybeta3.2602-17",
61
- "@nevware21/ts-utils": ">= 0.12.6 < 2.x",
62
- "@nevware21/ts-async": ">= 0.5.5 < 2.x"
63
- },
64
- "license": "MIT",
65
- "publishConfig": {
66
- "tag": "nightlybeta3"
67
- }
68
- }
1
+ {
2
+ "name": "@microsoft/applicationinsights-cfgsync-js",
3
+ "version": "3.4.1",
4
+ "description": "Microsoft Application Insights CfgSync Plugin",
5
+ "homepage": "https://github.com/microsoft/ApplicationInsights-JS#readme",
6
+ "author": "Microsoft Application Insights Team",
7
+ "main": "dist/es5/applicationinsights-cfgsync-js.js",
8
+ "module": "dist-es5/applicationinsights-cfgsync-js.js",
9
+ "types": "types/applicationinsights-cfgsync-js.d.ts",
10
+ "sideEffects": false,
11
+ "repository": {
12
+ "type": "git",
13
+ "url": "https://github.com/microsoft/ApplicationInsights-JS/tree/main/extensions/applicationinsights-cfgsync-js"
14
+ },
15
+ "scripts": {
16
+ "build": "npm run build:esm && npm run build:browser && npm run sri && npm run dtsgen",
17
+ "build:esm": "grunt cfgsync",
18
+ "build:browser": "rollup -c rollup.config.js --bundleConfigAsCjs",
19
+ "rebuild": "npm run build",
20
+ "test": "grunt cfgsynctests",
21
+ "mintest": "grunt cfgsync-mintests",
22
+ "lint": "tslint -p tsconfig.json",
23
+ "dtsgen": "api-extractor run --local && node ../../scripts/dtsgen.js \"Microsoft Application Insights idsync plugin\"",
24
+ "sri": "node ../../tools/subResourceIntegrity/generateIntegrityFile.js",
25
+ "ai-min": "grunt cfgsync-min",
26
+ "ai-restore": "grunt cfgsync-restore",
27
+ "npm-pack": "npm pack",
28
+ "api-docs": "typedoc"
29
+ },
30
+ "devDependencies": {
31
+ "@microsoft/ai-test-framework": "0.0.1",
32
+ "@microsoft/applicationinsights-rollup-plugin-uglify3-js": "1.0.0",
33
+ "@microsoft/applicationinsights-rollup-es5": "1.0.2",
34
+ "@microsoft/api-extractor": "^7.40.0",
35
+ "typescript": "^4.9.3",
36
+ "tslib": "^2.0.0",
37
+ "grunt": "^1.6.1",
38
+ "grunt-cli": "^1.5.0",
39
+ "@nevware21/grunt-ts-plugin": "^0.5.1",
40
+ "@nevware21/grunt-eslint-ts": "^0.5.1",
41
+ "globby": "^11.0.0",
42
+ "magic-string": "^0.25.7",
43
+ "pako": "^2.0.3",
44
+ "@rollup/plugin-commonjs": "^24.0.0",
45
+ "@rollup/plugin-node-resolve": "^15.0.1",
46
+ "@rollup/plugin-replace": "^5.0.2",
47
+ "rollup": "^3.20.0",
48
+ "rollup-plugin-cleanup": "^3.2.1",
49
+ "rollup-plugin-sourcemaps": "^0.6.3",
50
+ "typedoc": "^0.26.6",
51
+ "qunit": "^2.11.2",
52
+ "sinon": "^7.3.1"
53
+ },
54
+ "peerDependencies": {
55
+ "tslib": ">= 1.0.0"
56
+ },
57
+ "dependencies": {
58
+ "@microsoft/dynamicproto-js": "^2.0.3",
59
+ "@microsoft/applicationinsights-shims": "3.0.1",
60
+ "@microsoft/applicationinsights-core-js": "3.4.1",
61
+ "@nevware21/ts-utils": ">= 0.12.6 < 2.x",
62
+ "@nevware21/ts-async": ">= 0.5.5 < 2.x"
63
+ },
64
+ "license": "MIT"
65
+ }
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Microsoft Application Insights idsync plugin, 3.4.0-nightlybeta3.2602-17
2
+ * Microsoft Application Insights idsync plugin, 3.4.1
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
- * Microsoft Application Insights idsync plugin, 3.4.0-nightlybeta3.2602-17
2
+ * Microsoft Application Insights idsync plugin, 3.4.1
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  *
5
5
  * Microsoft Application Insights Team
@@ -499,6 +499,38 @@ declare namespace ApplicationInsights {
499
499
  All = 3
500
500
  }
501
501
 
502
+ /**
503
+ * Controls how the user can configure which parts of the URL should be redacted. Example, certain query parameters, username and password, etc.
504
+ */
505
+ const enum eUrlRedactionOptions {
506
+ /**
507
+ * The default value, will redact the username and password as well as the default set of query parameters
508
+ */
509
+ true = 1,
510
+ /**
511
+ * 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
512
+ * to sensitive data being sent in clear text.
513
+ */
514
+ false = 2,
515
+ /**
516
+ * This will append any additional queryParams that the user has provided through redactQueryParams config to the default set i.e to
517
+ * @defaultValue ["sig", "Signature", "AWSAccessKeyId", "X-Goog-Signature"].
518
+ */
519
+ appendToDefault = 3,
520
+ /**
521
+ * This will replace the default set of query parameters to redact with the query parameters defined in redactQueryParams config, if provided by the user.
522
+ */
523
+ replaceDefault = 4,
524
+ /**
525
+ * This will redact username and password in the URL but will not redact any query parameters, even those in the default set.
526
+ */
527
+ usernamePasswordOnly = 5,
528
+ /**
529
+ * This will only redact the query parameter in the default set of query parameters to redact. It will not redact username and password.
530
+ */
531
+ queryParamsOnly = 6
532
+ }
533
+
502
534
  const enum FeatureOptInMode {
503
535
  /**
504
536
  * not set, completely depends on cdn cfg
@@ -1657,10 +1689,10 @@ declare namespace ApplicationInsights {
1657
1689
  */
1658
1690
  expCfg?: IExceptionConfig;
1659
1691
  /**
1660
- * [Optional] A flag to enable or disable the use of the field redaction for urls.
1692
+ * [Optional] A flag to enable or disable redaction for query parameters and username/password.
1661
1693
  * @defaultValue true
1662
1694
  */
1663
- redactUrls?: boolean;
1695
+ redactUrls?: UrlRedactionOptions;
1664
1696
  /**
1665
1697
  * [Optional] Additional query parameters to redact beyond the default set.
1666
1698
  * Use this to specify custom parameters that contain sensitive information.
@@ -4842,6 +4874,10 @@ declare namespace ApplicationInsights {
4842
4874
 
4843
4875
  type UnloadHandler = (itemCtx: IProcessTelemetryUnloadContext, unloadState: ITelemetryUnloadState) => void;
4844
4876
 
4877
+ const UrlRedactionOptions: EnumValue<typeof eUrlRedactionOptions>;
4878
+
4879
+ type UrlRedactionOptions = boolean | eUrlRedactionOptions;
4880
+
4845
4881
  type WatcherFunction<T = IConfiguration> = (details: IWatchDetails<T>) => void;
4846
4882
 
4847
4883
  }