@microsoft/applicationinsights-debugplugin-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 (53) hide show
  1. package/browser/es5/{ai.dbg.3.4.0-nightlybeta3.2602-27.cjs.js → ai.dbg.3.4.1.cjs.js} +12 -10
  2. package/browser/es5/ai.dbg.3.4.1.cjs.js.map +1 -0
  3. package/browser/es5/ai.dbg.3.4.1.cjs.min.js +6 -0
  4. package/browser/es5/ai.dbg.3.4.1.cjs.min.js.map +1 -0
  5. package/browser/es5/{ai.dbg.3.4.0-nightlybeta3.2602-27.gbl.js → ai.dbg.3.4.1.gbl.js} +14 -12
  6. package/browser/es5/ai.dbg.3.4.1.gbl.js.map +1 -0
  7. package/browser/es5/ai.dbg.3.4.1.gbl.min.js +6 -0
  8. package/browser/es5/ai.dbg.3.4.1.gbl.min.js.map +1 -0
  9. package/browser/es5/ai.dbg.3.4.1.integrity.json +66 -0
  10. package/browser/es5/{ai.dbg.3.4.0-nightlybeta3.2602-27.js → ai.dbg.3.4.1.js} +14 -12
  11. package/browser/es5/ai.dbg.3.4.1.js.map +1 -0
  12. package/browser/es5/ai.dbg.3.4.1.min.js +6 -0
  13. package/browser/es5/ai.dbg.3.4.1.min.js.map +1 -0
  14. package/browser/es5/ai.dbg.3.cjs.js +11 -9
  15. package/browser/es5/ai.dbg.3.cjs.js.map +1 -1
  16. package/browser/es5/ai.dbg.3.cjs.min.js +2 -2
  17. package/browser/es5/ai.dbg.3.cjs.min.js.map +1 -1
  18. package/browser/es5/ai.dbg.3.gbl.js +13 -11
  19. package/browser/es5/ai.dbg.3.gbl.js.map +1 -1
  20. package/browser/es5/ai.dbg.3.gbl.min.js +2 -2
  21. package/browser/es5/ai.dbg.3.gbl.min.js.map +1 -1
  22. package/browser/es5/ai.dbg.3.integrity.json +25 -25
  23. package/browser/es5/ai.dbg.3.js +13 -11
  24. package/browser/es5/ai.dbg.3.js.map +1 -1
  25. package/browser/es5/ai.dbg.3.min.js +2 -2
  26. package/browser/es5/ai.dbg.3.min.js.map +1 -1
  27. package/dist/es5/applicationinsights-debugplugin-js.js +11 -9
  28. package/dist/es5/applicationinsights-debugplugin-js.js.map +1 -1
  29. package/dist/es5/applicationinsights-debugplugin-js.min.js +2 -2
  30. package/dist/es5/applicationinsights-debugplugin-js.min.js.map +1 -1
  31. package/dist-es5/DebugPlugin.js +1 -1
  32. package/dist-es5/__DynamicConstants.js +1 -1
  33. package/dist-es5/applicationinsights-debugplugin-js.js +1 -1
  34. package/dist-es5/components/Dashboard.js +1 -1
  35. package/dist-es5/components/LogEntry.js +1 -1
  36. package/dist-es5/components/debugBins.js +1 -1
  37. package/dist-es5/components/filterList.js +1 -1
  38. package/dist-es5/components/helpers.js +1 -1
  39. package/dist-es5/components/styleNodeSrc.js +1 -1
  40. package/dist-es5/interfaces/IDebugPluginConfig.js +1 -1
  41. package/package.json +60 -63
  42. package/types/applicationinsights-debugplugin-js.d.ts +1 -1
  43. package/types/applicationinsights-debugplugin-js.namespaced.d.ts +39 -3
  44. package/browser/es5/ai.dbg.3.4.0-nightlybeta3.2602-27.cjs.js.map +0 -1
  45. package/browser/es5/ai.dbg.3.4.0-nightlybeta3.2602-27.cjs.min.js +0 -6
  46. package/browser/es5/ai.dbg.3.4.0-nightlybeta3.2602-27.cjs.min.js.map +0 -1
  47. package/browser/es5/ai.dbg.3.4.0-nightlybeta3.2602-27.gbl.js.map +0 -1
  48. package/browser/es5/ai.dbg.3.4.0-nightlybeta3.2602-27.gbl.min.js +0 -6
  49. package/browser/es5/ai.dbg.3.4.0-nightlybeta3.2602-27.gbl.min.js.map +0 -1
  50. package/browser/es5/ai.dbg.3.4.0-nightlybeta3.2602-27.integrity.json +0 -66
  51. package/browser/es5/ai.dbg.3.4.0-nightlybeta3.2602-27.js.map +0 -1
  52. package/browser/es5/ai.dbg.3.4.0-nightlybeta3.2602-27.min.js +0 -6
  53. package/browser/es5/ai.dbg.3.4.0-nightlybeta3.2602-27.min.js.map +0 -1
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Application Insights JavaScript SDK - Debug Plugin, 3.4.0-nightlybeta3.2602-27
2
+ * Application Insights JavaScript SDK - Debug 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 - Debug Plugin, 3.4.0-nightlybeta3.2602-27
2
+ * Application Insights JavaScript SDK - Debug 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 - Debug Plugin, 3.4.0-nightlybeta3.2602-27
2
+ * Application Insights JavaScript SDK - Debug 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 - Debug Plugin, 3.4.0-nightlybeta3.2602-27
2
+ * Application Insights JavaScript SDK - Debug Plugin, 3.4.1
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
  import dynamicProto from "@microsoft/dynamicproto-js";
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Application Insights JavaScript SDK - Debug Plugin, 3.4.0-nightlybeta3.2602-27
2
+ * Application Insights JavaScript SDK - Debug Plugin, 3.4.1
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
  import { isArray, isBoolean, isError, isNumber, isObject, isString, objToString } from "@microsoft/applicationinsights-core-js";
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Application Insights JavaScript SDK - Debug Plugin, 3.4.0-nightlybeta3.2602-27
2
+ * Application Insights JavaScript SDK - Debug 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 - Debug Plugin, 3.4.0-nightlybeta3.2602-27
2
+ * Application Insights JavaScript SDK - Debug 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 - Debug Plugin, 3.4.0-nightlybeta3.2602-27
2
+ * Application Insights JavaScript SDK - Debug 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 - Debug Plugin, 3.4.0-nightlybeta3.2602-27
2
+ * Application Insights JavaScript SDK - Debug 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 - Debug Plugin, 3.4.0-nightlybeta3.2602-27
2
+ * Application Insights JavaScript SDK - Debug Plugin, 3.4.1
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
 
package/package.json CHANGED
@@ -1,63 +1,60 @@
1
- {
2
- "name": "@microsoft/applicationinsights-debugplugin-js",
3
- "version": "3.4.0-nightlybeta3.2602-27",
4
- "description": "Microsoft Application Insights JavaScript SDK - Debug Plugin extension",
5
- "homepage": "https://github.com/microsoft/ApplicationInsights-JS#readme",
6
- "author": "Microsoft Application Insights Team",
7
- "main": "dist/es5/applicationinsights-debugplugin-js.js",
8
- "module": "dist-es5/applicationinsights-debugplugin-js.js",
9
- "types": "types/applicationinsights-debugplugin-js.d.ts",
10
- "sideEffects": false,
11
- "repository": {
12
- "type": "git",
13
- "url": "https://github.com/microsoft/ApplicationInsights-JS/tree/main/extensions/applicationinsights-debugplugin-js"
14
- },
15
- "scripts": {
16
- "clean": "git clean -xdf",
17
- "build": "npm run build:esm && npm run build:browser && npm run sri && npm run dtsgen",
18
- "build:esm": "grunt debugplugin",
19
- "build:browser": "rollup -c rollup.config.js --bundleConfigAsCjs",
20
- "rebuild": "npm run build",
21
- "test": "",
22
- "lint": "tslint -p tsconfig.json",
23
- "dtsgen": "api-extractor run --local && node ../../scripts/dtsgen.js 'Microsoft.ApplicationInsights'",
24
- "sri": "node ../../tools/subResourceIntegrity/generateIntegrityFile.js",
25
- "ai-min": "grunt debugplugin-min",
26
- "ai-restore": "grunt debugplugin-restore",
27
- "npm-pack": "npm pack",
28
- "api-docs": "typedoc"
29
- },
30
- "devDependencies": {
31
- "@microsoft/applicationinsights-rollup-plugin-uglify3-js": "1.0.0",
32
- "@microsoft/applicationinsights-rollup-es5": "1.0.2",
33
- "@microsoft/api-extractor": "^7.40.0",
34
- "typescript": "^4.9.3",
35
- "tslib": "^2.0.0",
36
- "grunt": "^1.6.1",
37
- "grunt-cli": "^1.5.0",
38
- "@nevware21/grunt-ts-plugin": "^0.5.1",
39
- "@nevware21/grunt-eslint-ts": "^0.5.1",
40
- "globby": "^11.0.0",
41
- "magic-string": "^0.25.7",
42
- "@rollup/plugin-commonjs": "^24.0.0",
43
- "@rollup/plugin-node-resolve": "^15.0.1",
44
- "@rollup/plugin-replace": "^5.0.2",
45
- "rollup": "^3.20.0",
46
- "rollup-plugin-cleanup": "^3.2.1",
47
- "rollup-plugin-sourcemaps": "^0.6.3",
48
- "typedoc": "^0.26.6"
49
- },
50
- "peerDependencies": {
51
- "tslib": ">= 1.0.0"
52
- },
53
- "dependencies": {
54
- "@microsoft/dynamicproto-js": "^2.0.3",
55
- "@microsoft/applicationinsights-core-js": "3.4.0-nightlybeta3.2602-27",
56
- "@microsoft/applicationinsights-shims": "3.0.1",
57
- "@nevware21/ts-utils": ">= 0.12.6 < 2.x"
58
- },
59
- "license": "MIT",
60
- "publishConfig": {
61
- "tag": "nightlybeta3"
62
- }
63
- }
1
+ {
2
+ "name": "@microsoft/applicationinsights-debugplugin-js",
3
+ "version": "3.4.1",
4
+ "description": "Microsoft Application Insights JavaScript SDK - Debug Plugin extension",
5
+ "homepage": "https://github.com/microsoft/ApplicationInsights-JS#readme",
6
+ "author": "Microsoft Application Insights Team",
7
+ "main": "dist/es5/applicationinsights-debugplugin-js.js",
8
+ "module": "dist-es5/applicationinsights-debugplugin-js.js",
9
+ "types": "types/applicationinsights-debugplugin-js.d.ts",
10
+ "sideEffects": false,
11
+ "repository": {
12
+ "type": "git",
13
+ "url": "https://github.com/microsoft/ApplicationInsights-JS/tree/main/extensions/applicationinsights-debugplugin-js"
14
+ },
15
+ "scripts": {
16
+ "clean": "git clean -xdf",
17
+ "build": "npm run build:esm && npm run build:browser && npm run sri && npm run dtsgen",
18
+ "build:esm": "grunt debugplugin",
19
+ "build:browser": "rollup -c rollup.config.js --bundleConfigAsCjs",
20
+ "rebuild": "npm run build",
21
+ "test": "",
22
+ "lint": "tslint -p tsconfig.json",
23
+ "dtsgen": "api-extractor run --local && node ../../scripts/dtsgen.js 'Microsoft.ApplicationInsights'",
24
+ "sri": "node ../../tools/subResourceIntegrity/generateIntegrityFile.js",
25
+ "ai-min": "grunt debugplugin-min",
26
+ "ai-restore": "grunt debugplugin-restore",
27
+ "npm-pack": "npm pack",
28
+ "api-docs": "typedoc"
29
+ },
30
+ "devDependencies": {
31
+ "@microsoft/applicationinsights-rollup-plugin-uglify3-js": "1.0.0",
32
+ "@microsoft/applicationinsights-rollup-es5": "1.0.2",
33
+ "@microsoft/api-extractor": "^7.40.0",
34
+ "typescript": "^4.9.3",
35
+ "tslib": "^2.0.0",
36
+ "grunt": "^1.6.1",
37
+ "grunt-cli": "^1.5.0",
38
+ "@nevware21/grunt-ts-plugin": "^0.5.1",
39
+ "@nevware21/grunt-eslint-ts": "^0.5.1",
40
+ "globby": "^11.0.0",
41
+ "magic-string": "^0.25.7",
42
+ "@rollup/plugin-commonjs": "^24.0.0",
43
+ "@rollup/plugin-node-resolve": "^15.0.1",
44
+ "@rollup/plugin-replace": "^5.0.2",
45
+ "rollup": "^3.20.0",
46
+ "rollup-plugin-cleanup": "^3.2.1",
47
+ "rollup-plugin-sourcemaps": "^0.6.3",
48
+ "typedoc": "^0.26.6"
49
+ },
50
+ "peerDependencies": {
51
+ "tslib": ">= 1.0.0"
52
+ },
53
+ "dependencies": {
54
+ "@microsoft/dynamicproto-js": "^2.0.3",
55
+ "@microsoft/applicationinsights-core-js": "3.4.1",
56
+ "@microsoft/applicationinsights-shims": "3.0.1",
57
+ "@nevware21/ts-utils": ">= 0.12.6 < 2.x"
58
+ },
59
+ "license": "MIT"
60
+ }
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Microsoft.ApplicationInsights, 3.4.0-nightlybeta3.2602-27
2
+ * Microsoft.ApplicationInsights, 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.ApplicationInsights, 3.4.0-nightlybeta3.2602-27
2
+ * Microsoft.ApplicationInsights, 3.4.1
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  *
5
5
  * Microsoft Application Insights Team
@@ -389,6 +389,38 @@ declare namespace ApplicationInsights {
389
389
  All = 3
390
390
  }
391
391
 
392
+ /**
393
+ * Controls how the user can configure which parts of the URL should be redacted. Example, certain query parameters, username and password, etc.
394
+ */
395
+ const enum eUrlRedactionOptions {
396
+ /**
397
+ * The default value, will redact the username and password as well as the default set of query parameters
398
+ */
399
+ true = 1,
400
+ /**
401
+ * 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
402
+ * to sensitive data being sent in clear text.
403
+ */
404
+ false = 2,
405
+ /**
406
+ * This will append any additional queryParams that the user has provided through redactQueryParams config to the default set i.e to
407
+ * @defaultValue ["sig", "Signature", "AWSAccessKeyId", "X-Goog-Signature"].
408
+ */
409
+ appendToDefault = 3,
410
+ /**
411
+ * This will replace the default set of query parameters to redact with the query parameters defined in redactQueryParams config, if provided by the user.
412
+ */
413
+ replaceDefault = 4,
414
+ /**
415
+ * This will redact username and password in the URL but will not redact any query parameters, even those in the default set.
416
+ */
417
+ usernamePasswordOnly = 5,
418
+ /**
419
+ * This will only redact the query parameter in the default set of query parameters to redact. It will not redact username and password.
420
+ */
421
+ queryParamsOnly = 6
422
+ }
423
+
392
424
  const enum FeatureOptInMode {
393
425
  /**
394
426
  * not set, completely depends on cdn cfg
@@ -1105,10 +1137,10 @@ declare namespace ApplicationInsights {
1105
1137
  */
1106
1138
  expCfg?: IExceptionConfig;
1107
1139
  /**
1108
- * [Optional] A flag to enable or disable the use of the field redaction for urls.
1140
+ * [Optional] A flag to enable or disable redaction for query parameters and username/password.
1109
1141
  * @defaultValue true
1110
1142
  */
1111
- redactUrls?: boolean;
1143
+ redactUrls?: UrlRedactionOptions;
1112
1144
  /**
1113
1145
  * [Optional] Additional query parameters to redact beyond the default set.
1114
1146
  * Use this to specify custom parameters that contain sensitive information.
@@ -4224,6 +4256,10 @@ declare namespace ApplicationInsights {
4224
4256
 
4225
4257
  type UnloadHandler = (itemCtx: IProcessTelemetryUnloadContext, unloadState: ITelemetryUnloadState) => void;
4226
4258
 
4259
+ const UrlRedactionOptions: EnumValue<typeof eUrlRedactionOptions>;
4260
+
4261
+ type UrlRedactionOptions = boolean | eUrlRedactionOptions;
4262
+
4227
4263
  type WatcherFunction<T = IConfiguration> = (details: IWatchDetails<T>) => void;
4228
4264
 
4229
4265
  }