@microsoft/applicationinsights-web-basic 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 (45) hide show
  1. package/browser/es5/{aib.3.3.2.cjs.js → aib.3.3.3-nightly3.2409-01.cjs.js} +4 -4
  2. package/browser/es5/aib.3.3.3-nightly3.2409-01.cjs.js.map +1 -0
  3. package/browser/es5/aib.3.3.3-nightly3.2409-01.cjs.min.js +6 -0
  4. package/browser/es5/aib.3.3.3-nightly3.2409-01.cjs.min.js.map +1 -0
  5. package/browser/es5/{aib.3.3.2.gbl.js → aib.3.3.3-nightly3.2409-01.gbl.js} +6 -6
  6. package/browser/es5/aib.3.3.3-nightly3.2409-01.gbl.js.map +1 -0
  7. package/browser/es5/aib.3.3.3-nightly3.2409-01.gbl.min.js +6 -0
  8. package/browser/es5/aib.3.3.3-nightly3.2409-01.gbl.min.js.map +1 -0
  9. package/browser/es5/aib.3.3.3-nightly3.2409-01.integrity.json +66 -0
  10. package/browser/es5/{aib.3.3.2.js → aib.3.3.3-nightly3.2409-01.js} +6 -6
  11. package/browser/es5/aib.3.3.3-nightly3.2409-01.js.map +1 -0
  12. package/browser/es5/aib.3.3.3-nightly3.2409-01.min.js +6 -0
  13. package/browser/es5/aib.3.3.3-nightly3.2409-01.min.js.map +1 -0
  14. package/browser/es5/aib.3.cjs.js +3 -3
  15. package/browser/es5/aib.3.cjs.js.map +1 -1
  16. package/browser/es5/aib.3.cjs.min.js +2 -2
  17. package/browser/es5/aib.3.cjs.min.js.map +1 -1
  18. package/browser/es5/aib.3.gbl.js +5 -5
  19. package/browser/es5/aib.3.gbl.js.map +1 -1
  20. package/browser/es5/aib.3.gbl.min.js +2 -2
  21. package/browser/es5/aib.3.gbl.min.js.map +1 -1
  22. package/browser/es5/aib.3.integrity.json +25 -25
  23. package/browser/es5/aib.3.js +5 -5
  24. package/browser/es5/aib.3.js.map +1 -1
  25. package/browser/es5/aib.3.min.js +2 -2
  26. package/browser/es5/aib.3.min.js.map +1 -1
  27. package/dist/es5/applicationinsights-web-basic.js +3 -3
  28. package/dist/es5/applicationinsights-web-basic.js.map +1 -1
  29. package/dist/es5/applicationinsights-web-basic.min.js +2 -2
  30. package/dist/es5/applicationinsights-web-basic.min.js.map +1 -1
  31. package/dist-es5/__DynamicConstants.js +1 -1
  32. package/dist-es5/index.js +1 -1
  33. package/package.json +70 -67
  34. package/types/applicationinsights-web-basic.d.ts +1 -1
  35. package/types/applicationinsights-web-basic.namespaced.d.ts +29 -3
  36. package/browser/es5/aib.3.3.2.cjs.js.map +0 -1
  37. package/browser/es5/aib.3.3.2.cjs.min.js +0 -6
  38. package/browser/es5/aib.3.3.2.cjs.min.js.map +0 -1
  39. package/browser/es5/aib.3.3.2.gbl.js.map +0 -1
  40. package/browser/es5/aib.3.3.2.gbl.min.js +0 -6
  41. package/browser/es5/aib.3.3.2.gbl.min.js.map +0 -1
  42. package/browser/es5/aib.3.3.2.integrity.json +0 -66
  43. package/browser/es5/aib.3.3.2.js.map +0 -1
  44. package/browser/es5/aib.3.3.2.min.js +0 -6
  45. package/browser/es5/aib.3.3.2.min.js.map +0 -1
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Application Insights JavaScript Web SDK - Basic, 3.3.2
2
+ * Application Insights JavaScript Web SDK - Basic, 3.3.3-nightly3.2409-01
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
 
package/dist-es5/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Application Insights JavaScript Web SDK - Basic, 3.3.2
2
+ * Application Insights JavaScript Web SDK - Basic, 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,67 +1,70 @@
1
- {
2
- "name": "@microsoft/applicationinsights-web-basic",
3
- "version": "3.3.2",
4
- "description": "Microsoft Application Insights JavaScript SDK - Web Basic",
5
- "homepage": "https://github.com/microsoft/ApplicationInsights-JS#readme",
6
- "author": "Microsoft Application Insights Team",
7
- "main": "dist/es5/applicationinsights-web-basic.js",
8
- "module": "dist-es5/index.js",
9
- "types": "types/applicationinsights-web-basic.d.ts",
10
- "sideEffects": false,
11
- "scripts": {
12
- "clean": "git clean -xdf",
13
- "build": "npm run build:esm && npm run build:browser && npm run sri && npm run dtsgen",
14
- "build:esm": "grunt aiskulite",
15
- "build:browser": "rollup -c rollup.config.js --bundleConfigAsCjs",
16
- "rebuild": "npm run build",
17
- "test": "grunt aiskuliteunittests",
18
- "mintest": "grunt aiskulite-mintests",
19
- "lint": "tslint -p tsconfig.json",
20
- "dtsgen": "api-extractor run --local && node ../scripts/dtsgen.js 'Microsoft.ApplicationInsights'",
21
- "sri": "node ../tools/subResourceIntegrity/generateIntegrityFile.js",
22
- "ai-min": "grunt aiskulite-min",
23
- "ai-restore": "grunt aiskulite-restore",
24
- "npm-pack": "npm pack",
25
- "api-docs": "typedoc"
26
- },
27
- "repository": {
28
- "type": "git",
29
- "url": "https://github.com/microsoft/ApplicationInsights-JS.git",
30
- "directory": "AISKULight"
31
- },
32
- "devDependencies": {
33
- "@microsoft/ai-test-framework": "0.0.1",
34
- "@microsoft/applicationinsights-rollup-plugin-uglify3-js": "1.0.0",
35
- "@microsoft/applicationinsights-rollup-es5": "1.0.2",
36
- "@microsoft/api-extractor": "^7.40.0",
37
- "grunt": "^1.5.3",
38
- "grunt-cli": "^1.4.3",
39
- "grunt-contrib-qunit": "^6.2.1",
40
- "@nevware21/grunt-ts-plugin": "^0.4.3",
41
- "@nevware21/grunt-eslint-ts": "^0.2.2",
42
- "globby": "^11.0.0",
43
- "magic-string": "^0.25.7",
44
- "pako": "^2.0.3",
45
- "@rollup/plugin-commonjs": "^24.0.0",
46
- "@rollup/plugin-node-resolve": "^15.0.1",
47
- "@rollup/plugin-replace": "^5.0.2",
48
- "rollup-plugin-cleanup": "^3.2.1",
49
- "rollup": "^3.20.0",
50
- "typescript": "^4.9.3",
51
- "typedoc": "^0.26.6",
52
- "tslib": "^2.0.0"
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-common": "3.3.2",
61
- "@microsoft/applicationinsights-channel-js": "3.3.2",
62
- "@microsoft/applicationinsights-core-js": "3.3.2",
63
- "@nevware21/ts-utils": ">= 0.11.3 < 2.x",
64
- "@nevware21/ts-async": ">= 0.5.2 < 2.x"
65
- },
66
- "license": "MIT"
67
- }
1
+ {
2
+ "name": "@microsoft/applicationinsights-web-basic",
3
+ "version": "3.3.3-nightly3.2409-01",
4
+ "description": "Microsoft Application Insights JavaScript SDK - Web Basic",
5
+ "homepage": "https://github.com/microsoft/ApplicationInsights-JS#readme",
6
+ "author": "Microsoft Application Insights Team",
7
+ "main": "dist/es5/applicationinsights-web-basic.js",
8
+ "module": "dist-es5/index.js",
9
+ "types": "types/applicationinsights-web-basic.d.ts",
10
+ "sideEffects": false,
11
+ "scripts": {
12
+ "clean": "git clean -xdf",
13
+ "build": "npm run build:esm && npm run build:browser && npm run sri && npm run dtsgen",
14
+ "build:esm": "grunt aiskulite",
15
+ "build:browser": "rollup -c rollup.config.js --bundleConfigAsCjs",
16
+ "rebuild": "npm run build",
17
+ "test": "grunt aiskuliteunittests",
18
+ "mintest": "grunt aiskulite-mintests",
19
+ "lint": "tslint -p tsconfig.json",
20
+ "dtsgen": "api-extractor run --local && node ../scripts/dtsgen.js 'Microsoft.ApplicationInsights'",
21
+ "sri": "node ../tools/subResourceIntegrity/generateIntegrityFile.js",
22
+ "ai-min": "grunt aiskulite-min",
23
+ "ai-restore": "grunt aiskulite-restore",
24
+ "npm-pack": "npm pack",
25
+ "api-docs": "typedoc"
26
+ },
27
+ "repository": {
28
+ "type": "git",
29
+ "url": "https://github.com/microsoft/ApplicationInsights-JS.git",
30
+ "directory": "AISKULight"
31
+ },
32
+ "devDependencies": {
33
+ "@microsoft/ai-test-framework": "0.0.1",
34
+ "@microsoft/applicationinsights-rollup-plugin-uglify3-js": "1.0.0",
35
+ "@microsoft/applicationinsights-rollup-es5": "1.0.2",
36
+ "@microsoft/api-extractor": "^7.40.0",
37
+ "grunt": "^1.5.3",
38
+ "grunt-cli": "^1.4.3",
39
+ "grunt-contrib-qunit": "^6.2.1",
40
+ "@nevware21/grunt-ts-plugin": "^0.4.3",
41
+ "@nevware21/grunt-eslint-ts": "^0.2.2",
42
+ "globby": "^11.0.0",
43
+ "magic-string": "^0.25.7",
44
+ "pako": "^2.0.3",
45
+ "@rollup/plugin-commonjs": "^24.0.0",
46
+ "@rollup/plugin-node-resolve": "^15.0.1",
47
+ "@rollup/plugin-replace": "^5.0.2",
48
+ "rollup-plugin-cleanup": "^3.2.1",
49
+ "rollup": "^3.20.0",
50
+ "typescript": "^4.9.3",
51
+ "typedoc": "^0.26.6",
52
+ "tslib": "^2.0.0"
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-common": "3.3.3-nightly3.2409-01",
61
+ "@microsoft/applicationinsights-channel-js": "3.3.3-nightly3.2409-01",
62
+ "@microsoft/applicationinsights-core-js": "3.3.3-nightly3.2409-01",
63
+ "@nevware21/ts-utils": ">= 0.11.3 < 2.x",
64
+ "@nevware21/ts-async": ">= 0.5.2 < 2.x"
65
+ },
66
+ "license": "MIT",
67
+ "publishConfig": {
68
+ "tag": "nightly3"
69
+ }
70
+ }
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Microsoft.ApplicationInsights, 3.3.2
2
+ * Microsoft.ApplicationInsights, 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.ApplicationInsights, 3.3.2
2
+ * Microsoft.ApplicationInsights, 3.3.3-nightly3.2409-01
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  *
5
5
  * Microsoft Application Insights Team
@@ -1827,10 +1827,31 @@ declare namespace ApplicationInsights {
1827
1827
  iKey?: string;
1828
1828
  }
1829
1829
 
1830
+ /**
1831
+ * Configuration for extra exceptions information sent with the exception telemetry.
1832
+ * @example
1833
+ * ```js
1834
+ * const appInsights = new ApplicationInsights({
1835
+ config: {
1836
+ connectionString: 'InstrumentationKey=YOUR_INSTRUMENTATION_KEY_GOES_HERE',
1837
+ expCfg: {
1838
+ inclScripts: true,
1839
+ expLog : () => {
1840
+ return {logs: ["log info 1", "log info 2"]};
1841
+ },
1842
+ maxLogs : 100
1843
+ }
1844
+ }
1845
+ });
1846
+ appInsights.trackException({error: new Error(), severityLevel: SeverityLevel.Critical});
1847
+ * ```
1848
+ * @interface IExceptionConfig
1849
+ */
1830
1850
  interface IExceptionConfig {
1831
1851
  /**
1832
1852
  * 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.
1833
1853
  * Notice: This would increase the size of the exception telemetry.
1854
+ * @defaultvalue true
1834
1855
  */
1835
1856
  inclScripts?: boolean;
1836
1857
  /**
@@ -1845,10 +1866,15 @@ declare namespace ApplicationInsights {
1845
1866
  *
1846
1867
  * @property {number} maxLogs - Specifies the maximum number of logs that can be generated. If not explicitly set, it defaults to 50.
1847
1868
  */
1848
- expLog: () => {
1869
+ expLog?: () => {
1849
1870
  logs: string[];
1850
1871
  };
1851
- maxLogs: number;
1872
+ /**
1873
+ * The maximum number of logs to include in the telemetry data.
1874
+ * If not explicitly set, it defaults to 50.
1875
+ * This is used in conjunction with the `expLog` callback.
1876
+ */
1877
+ maxLogs?: number;
1852
1878
  }
1853
1879
 
1854
1880
  interface IFeatureOptIn {