@microsoft/applicationinsights-properties-js 3.3.2 → 3.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 (57) hide show
  1. package/browser/es5/{ai.props.3.3.2.cjs.js → ai.props.3.3.3-nightly3.2409-01.cjs.js} +4 -4
  2. package/browser/es5/ai.props.3.3.3-nightly3.2409-01.cjs.js.map +1 -0
  3. package/browser/es5/ai.props.3.3.3-nightly3.2409-01.cjs.min.js +6 -0
  4. package/browser/es5/ai.props.3.3.3-nightly3.2409-01.cjs.min.js.map +1 -0
  5. package/browser/es5/{ai.props.3.3.2.gbl.js → ai.props.3.3.3-nightly3.2409-01.gbl.js} +6 -6
  6. package/browser/es5/ai.props.3.3.3-nightly3.2409-01.gbl.js.map +1 -0
  7. package/browser/es5/ai.props.3.3.3-nightly3.2409-01.gbl.min.js +6 -0
  8. package/browser/es5/ai.props.3.3.3-nightly3.2409-01.gbl.min.js.map +1 -0
  9. package/browser/es5/ai.props.3.3.3-nightly3.2409-01.integrity.json +66 -0
  10. package/browser/es5/{ai.props.3.3.2.js → ai.props.3.3.3-nightly3.2409-01.js} +6 -6
  11. package/browser/es5/ai.props.3.3.3-nightly3.2409-01.js.map +1 -0
  12. package/browser/es5/ai.props.3.3.3-nightly3.2409-01.min.js +6 -0
  13. package/browser/es5/ai.props.3.3.3-nightly3.2409-01.min.js.map +1 -0
  14. package/browser/es5/ai.props.3.cjs.js +3 -3
  15. package/browser/es5/ai.props.3.cjs.js.map +1 -1
  16. package/browser/es5/ai.props.3.cjs.min.js +2 -2
  17. package/browser/es5/ai.props.3.cjs.min.js.map +1 -1
  18. package/browser/es5/ai.props.3.gbl.js +5 -5
  19. package/browser/es5/ai.props.3.gbl.js.map +1 -1
  20. package/browser/es5/ai.props.3.gbl.min.js +2 -2
  21. package/browser/es5/ai.props.3.gbl.min.js.map +1 -1
  22. package/browser/es5/ai.props.3.integrity.json +25 -25
  23. package/browser/es5/ai.props.3.js +5 -5
  24. package/browser/es5/ai.props.3.js.map +1 -1
  25. package/browser/es5/ai.props.3.min.js +2 -2
  26. package/browser/es5/ai.props.3.min.js.map +1 -1
  27. package/dist/es5/applicationinsights-properties-js.js +3 -3
  28. package/dist/es5/applicationinsights-properties-js.js.map +1 -1
  29. package/dist/es5/applicationinsights-properties-js.min.js +2 -2
  30. package/dist/es5/applicationinsights-properties-js.min.js.map +1 -1
  31. package/dist-es5/Context/Application.js +1 -1
  32. package/dist-es5/Context/Device.js +1 -1
  33. package/dist-es5/Context/Internal.js +2 -2
  34. package/dist-es5/Context/Internal.js.map +1 -1
  35. package/dist-es5/Context/Location.js +1 -1
  36. package/dist-es5/Context/Session.js +1 -1
  37. package/dist-es5/Context/TelemetryTrace.js +1 -1
  38. package/dist-es5/Context/User.js +1 -1
  39. package/dist-es5/Interfaces/IPropTelemetryContext.js +1 -1
  40. package/dist-es5/Interfaces/IPropertiesConfig.js +1 -1
  41. package/dist-es5/PropertiesPlugin.js +1 -1
  42. package/dist-es5/TelemetryContext.js +1 -1
  43. package/dist-es5/__DynamicConstants.js +1 -1
  44. package/dist-es5/applicationinsights-properties-js.js +1 -1
  45. package/package.json +69 -66
  46. package/types/applicationinsights-properties-js.d.ts +1 -1
  47. package/types/applicationinsights-properties-js.namespaced.d.ts +29 -3
  48. package/browser/es5/ai.props.3.3.2.cjs.js.map +0 -1
  49. package/browser/es5/ai.props.3.3.2.cjs.min.js +0 -6
  50. package/browser/es5/ai.props.3.3.2.cjs.min.js.map +0 -1
  51. package/browser/es5/ai.props.3.3.2.gbl.js.map +0 -1
  52. package/browser/es5/ai.props.3.3.2.gbl.min.js +0 -6
  53. package/browser/es5/ai.props.3.3.2.gbl.min.js.map +0 -1
  54. package/browser/es5/ai.props.3.3.2.integrity.json +0 -66
  55. package/browser/es5/ai.props.3.3.2.js.map +0 -1
  56. package/browser/es5/ai.props.3.3.2.min.js +0 -6
  57. package/browser/es5/ai.props.3.3.2.min.js.map +0 -1
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Application Insights JavaScript SDK - Properties Plugin, 3.3.2
2
+ * Application Insights JavaScript SDK - Properties Plugin, 3.3.3-nightly3.2409-01
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.3.2
2
+ * Application Insights JavaScript SDK - Properties Plugin, 3.3.3-nightly3.2409-01
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
 
@@ -1,11 +1,11 @@
1
1
  /*
2
- * Application Insights JavaScript SDK - Properties Plugin, 3.3.2
2
+ * Application Insights JavaScript SDK - Properties Plugin, 3.3.3-nightly3.2409-01
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
 
6
6
 
7
7
  import { onConfigChange } from "@microsoft/applicationinsights-core-js";
8
- var Version = '3.3.2';
8
+ var Version = '3.3.3-nightly3.2409-01';
9
9
  var Internal = /** @class */ (function () {
10
10
  /**
11
11
  * Constructs a new instance of the internal telemetry data class.
@@ -1 +1 @@
1
- {"version":3,"file":"Internal.js.map","sources":["Internal.js"],"sourcesContent":["// Copyright (c) Microsoft Corporation. All rights reserved.\r\n// Licensed under the MIT License.\r\nimport { onConfigChange } from \"@microsoft/applicationinsights-core-js\";\r\nvar Version = '3.3.2';\r\nvar Internal = /** @class */ (function () {\r\n /**\r\n * Constructs a new instance of the internal telemetry data class.\r\n */\r\n function Internal(config, unloadHookContainer) {\r\n var _this = this;\r\n var unloadHook = onConfigChange((config), function () {\r\n var prefix = config.sdkExtension;\r\n _this.sdkVersion = (prefix ? prefix + \"_\" : \"\") + \"javascript:\" + Version;\r\n });\r\n unloadHookContainer && unloadHookContainer.add(unloadHook);\r\n }\r\n return Internal;\r\n}());\r\nexport { Internal };\r\n//# sourceMappingURL=Internal.js.map"],"names":[],"mappings":";;;;AAA4D;AAC1B;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA"}
1
+ {"version":3,"file":"Internal.js.map","sources":["Internal.js"],"sourcesContent":["// Copyright (c) Microsoft Corporation. All rights reserved.\r\n// Licensed under the MIT License.\r\nimport { onConfigChange } from \"@microsoft/applicationinsights-core-js\";\r\nvar Version = '3.3.3-nightly3.2409-01';\r\nvar Internal = /** @class */ (function () {\r\n /**\r\n * Constructs a new instance of the internal telemetry data class.\r\n */\r\n function Internal(config, unloadHookContainer) {\r\n var _this = this;\r\n var unloadHook = onConfigChange((config), function () {\r\n var prefix = config.sdkExtension;\r\n _this.sdkVersion = (prefix ? prefix + \"_\" : \"\") + \"javascript:\" + Version;\r\n });\r\n unloadHookContainer && unloadHookContainer.add(unloadHook);\r\n }\r\n return Internal;\r\n}());\r\nexport { Internal };\r\n//# sourceMappingURL=Internal.js.map"],"names":[],"mappings":";;;;AAA4D;AAC1B;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA"}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Application Insights JavaScript SDK - Properties Plugin, 3.3.2
2
+ * Application Insights JavaScript SDK - Properties Plugin, 3.3.3-nightly3.2409-01
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.3.2
2
+ * Application Insights JavaScript SDK - Properties Plugin, 3.3.3-nightly3.2409-01
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.3.2
2
+ * Application Insights JavaScript SDK - Properties Plugin, 3.3.3-nightly3.2409-01
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.3.2
2
+ * Application Insights JavaScript SDK - Properties Plugin, 3.3.3-nightly3.2409-01
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.3.2
2
+ * Application Insights JavaScript SDK - Properties Plugin, 3.3.3-nightly3.2409-01
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.3.2
2
+ * Application Insights JavaScript SDK - Properties Plugin, 3.3.3-nightly3.2409-01
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.3.2
2
+ * Application Insights JavaScript SDK - Properties Plugin, 3.3.3-nightly3.2409-01
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.3.2
2
+ * Application Insights JavaScript SDK - Properties Plugin, 3.3.3-nightly3.2409-01
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.3.2
2
+ * Application Insights JavaScript SDK - Properties Plugin, 3.3.3-nightly3.2409-01
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.3.2
2
+ * Application Insights JavaScript SDK - Properties Plugin, 3.3.3-nightly3.2409-01
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
 
package/package.json CHANGED
@@ -1,66 +1,69 @@
1
- {
2
- "name": "@microsoft/applicationinsights-properties-js",
3
- "version": "3.3.2",
4
- "description": "Microsoft Application Insights properties (Part A) plugin",
5
- "homepage": "https://github.com/microsoft/ApplicationInsights-JS#readme",
6
- "author": "Microsoft Application Insights Team",
7
- "main": "dist/es5/applicationinsights-properties-js.js",
8
- "module": "dist-es5/applicationinsights-properties-js.js",
9
- "types": "types/applicationinsights-properties-js.d.ts",
10
- "sideEffects": false,
11
- "repository": {
12
- "type": "git",
13
- "url": "https://github.com/microsoft/ApplicationInsights-JS/tree/main/extensions/applicationinsights-properties-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 properties",
19
- "build:browser": "rollup -c rollup.config.js --bundleConfigAsCjs",
20
- "rebuild": "npm run build",
21
- "test": "grunt propertiestests",
22
- "mintest": "grunt properties-mintests",
23
- "lint": "tslint -p tsconfig.json",
24
- "dtsgen": "api-extractor run --local && node ../../scripts/dtsgen.js \"Microsoft Application Insights properties plugin\"",
25
- "sri": "node ../../tools/subResourceIntegrity/generateIntegrityFile.js",
26
- "ai-min": "grunt properties-min",
27
- "ai-restore": "grunt properties-restore",
28
- "npm-pack": "npm pack",
29
- "api-docs": "typedoc"
30
- },
31
- "devDependencies": {
32
- "@microsoft/ai-test-framework": "0.0.1",
33
- "@microsoft/applicationinsights-rollup-plugin-uglify3-js": "1.0.0",
34
- "@microsoft/applicationinsights-rollup-es5": "1.0.2",
35
- "@microsoft/api-extractor": "^7.40.0",
36
- "typescript": "^4.9.3",
37
- "tslib": "^2.0.0",
38
- "grunt": "^1.5.3",
39
- "grunt-cli": "^1.4.3",
40
- "grunt-contrib-qunit": "^6.2.1",
41
- "@nevware21/grunt-ts-plugin": "^0.4.3",
42
- "@nevware21/grunt-eslint-ts": "^0.2.2",
43
- "globby": "^11.0.0",
44
- "magic-string": "^0.25.7",
45
- "pako": "^2.0.3",
46
- "@rollup/plugin-commonjs": "^24.0.0",
47
- "@rollup/plugin-node-resolve": "^15.0.1",
48
- "@rollup/plugin-replace": "^5.0.2",
49
- "rollup-plugin-cleanup": "^3.2.1",
50
- "rollup": "^3.20.0",
51
- "typedoc": "^0.26.6",
52
- "qunit": "^2.11.2",
53
- "sinon": "^7.3.1"
54
- },
55
- "peerDependencies": {
56
- "tslib": ">= 1.0.0"
57
- },
58
- "dependencies": {
59
- "@microsoft/dynamicproto-js": "^2.0.3",
60
- "@microsoft/applicationinsights-shims": "3.0.1",
61
- "@microsoft/applicationinsights-core-js": "3.3.2",
62
- "@microsoft/applicationinsights-common": "3.3.2",
63
- "@nevware21/ts-utils": ">= 0.11.3 < 2.x"
64
- },
65
- "license": "MIT"
66
- }
1
+ {
2
+ "name": "@microsoft/applicationinsights-properties-js",
3
+ "version": "3.3.3-nightly3.2409-01",
4
+ "description": "Microsoft Application Insights properties (Part A) plugin",
5
+ "homepage": "https://github.com/microsoft/ApplicationInsights-JS#readme",
6
+ "author": "Microsoft Application Insights Team",
7
+ "main": "dist/es5/applicationinsights-properties-js.js",
8
+ "module": "dist-es5/applicationinsights-properties-js.js",
9
+ "types": "types/applicationinsights-properties-js.d.ts",
10
+ "sideEffects": false,
11
+ "repository": {
12
+ "type": "git",
13
+ "url": "https://github.com/microsoft/ApplicationInsights-JS/tree/main/extensions/applicationinsights-properties-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 properties",
19
+ "build:browser": "rollup -c rollup.config.js --bundleConfigAsCjs",
20
+ "rebuild": "npm run build",
21
+ "test": "grunt propertiestests",
22
+ "mintest": "grunt properties-mintests",
23
+ "lint": "tslint -p tsconfig.json",
24
+ "dtsgen": "api-extractor run --local && node ../../scripts/dtsgen.js \"Microsoft Application Insights properties plugin\"",
25
+ "sri": "node ../../tools/subResourceIntegrity/generateIntegrityFile.js",
26
+ "ai-min": "grunt properties-min",
27
+ "ai-restore": "grunt properties-restore",
28
+ "npm-pack": "npm pack",
29
+ "api-docs": "typedoc"
30
+ },
31
+ "devDependencies": {
32
+ "@microsoft/ai-test-framework": "0.0.1",
33
+ "@microsoft/applicationinsights-rollup-plugin-uglify3-js": "1.0.0",
34
+ "@microsoft/applicationinsights-rollup-es5": "1.0.2",
35
+ "@microsoft/api-extractor": "^7.40.0",
36
+ "typescript": "^4.9.3",
37
+ "tslib": "^2.0.0",
38
+ "grunt": "^1.5.3",
39
+ "grunt-cli": "^1.4.3",
40
+ "grunt-contrib-qunit": "^6.2.1",
41
+ "@nevware21/grunt-ts-plugin": "^0.4.3",
42
+ "@nevware21/grunt-eslint-ts": "^0.2.2",
43
+ "globby": "^11.0.0",
44
+ "magic-string": "^0.25.7",
45
+ "pako": "^2.0.3",
46
+ "@rollup/plugin-commonjs": "^24.0.0",
47
+ "@rollup/plugin-node-resolve": "^15.0.1",
48
+ "@rollup/plugin-replace": "^5.0.2",
49
+ "rollup-plugin-cleanup": "^3.2.1",
50
+ "rollup": "^3.20.0",
51
+ "typedoc": "^0.26.6",
52
+ "qunit": "^2.11.2",
53
+ "sinon": "^7.3.1"
54
+ },
55
+ "peerDependencies": {
56
+ "tslib": ">= 1.0.0"
57
+ },
58
+ "dependencies": {
59
+ "@microsoft/dynamicproto-js": "^2.0.3",
60
+ "@microsoft/applicationinsights-shims": "3.0.1",
61
+ "@microsoft/applicationinsights-core-js": "3.3.3-nightly3.2409-01",
62
+ "@microsoft/applicationinsights-common": "3.3.3-nightly3.2409-01",
63
+ "@nevware21/ts-utils": ">= 0.11.3 < 2.x"
64
+ },
65
+ "license": "MIT",
66
+ "publishConfig": {
67
+ "tag": "nightly3"
68
+ }
69
+ }
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Microsoft Application Insights properties plugin, 3.3.2
2
+ * Microsoft Application Insights properties plugin, 3.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
- * Microsoft Application Insights properties plugin, 3.3.2
2
+ * Microsoft Application Insights properties plugin, 3.3.3-nightly3.2409-01
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  *
5
5
  * Microsoft Application Insights Team
@@ -1379,10 +1379,31 @@ declare namespace ApplicationInsights {
1379
1379
  setTraceFlags(newValue?: number): void;
1380
1380
  }
1381
1381
 
1382
+ /**
1383
+ * Configuration for extra exceptions information sent with the exception telemetry.
1384
+ * @example
1385
+ * ```js
1386
+ * const appInsights = new ApplicationInsights({
1387
+ config: {
1388
+ connectionString: 'InstrumentationKey=YOUR_INSTRUMENTATION_KEY_GOES_HERE',
1389
+ expCfg: {
1390
+ inclScripts: true,
1391
+ expLog : () => {
1392
+ return {logs: ["log info 1", "log info 2"]};
1393
+ },
1394
+ maxLogs : 100
1395
+ }
1396
+ }
1397
+ });
1398
+ appInsights.trackException({error: new Error(), severityLevel: SeverityLevel.Critical});
1399
+ * ```
1400
+ * @interface IExceptionConfig
1401
+ */
1382
1402
  interface IExceptionConfig {
1383
1403
  /**
1384
1404
  * 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.
1385
1405
  * Notice: This would increase the size of the exception telemetry.
1406
+ * @defaultvalue true
1386
1407
  */
1387
1408
  inclScripts?: boolean;
1388
1409
  /**
@@ -1397,10 +1418,15 @@ declare namespace ApplicationInsights {
1397
1418
  *
1398
1419
  * @property {number} maxLogs - Specifies the maximum number of logs that can be generated. If not explicitly set, it defaults to 50.
1399
1420
  */
1400
- expLog: () => {
1421
+ expLog?: () => {
1401
1422
  logs: string[];
1402
1423
  };
1403
- maxLogs: number;
1424
+ /**
1425
+ * The maximum number of logs to include in the telemetry data.
1426
+ * If not explicitly set, it defaults to 50.
1427
+ * This is used in conjunction with the `expLog` callback.
1428
+ */
1429
+ maxLogs?: number;
1404
1430
  }
1405
1431
 
1406
1432
  interface IFeatureOptIn {