@microsoft/applicationinsights-common 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 (97) hide show
  1. package/browser/es5/applicationinsights-common.cjs.js +2 -2
  2. package/browser/es5/applicationinsights-common.cjs.js.map +1 -1
  3. package/browser/es5/applicationinsights-common.cjs.min.js +2 -2
  4. package/browser/es5/applicationinsights-common.cjs.min.js.map +1 -1
  5. package/browser/es5/applicationinsights-common.gbl.js +4 -4
  6. package/browser/es5/applicationinsights-common.gbl.js.map +1 -1
  7. package/browser/es5/applicationinsights-common.gbl.min.js +2 -2
  8. package/browser/es5/applicationinsights-common.gbl.min.js.map +1 -1
  9. package/browser/es5/applicationinsights-common.integrity.json +25 -25
  10. package/browser/es5/applicationinsights-common.js +4 -4
  11. package/browser/es5/applicationinsights-common.js.map +1 -1
  12. package/browser/es5/applicationinsights-common.min.js +2 -2
  13. package/browser/es5/applicationinsights-common.min.js.map +1 -1
  14. package/dist/es5/applicationinsights-common.js +2 -2
  15. package/dist/es5/applicationinsights-common.js.map +1 -1
  16. package/dist/es5/applicationinsights-common.min.js +2 -2
  17. package/dist/es5/applicationinsights-common.min.js.map +1 -1
  18. package/dist-es5/ConnectionStringParser.js +1 -1
  19. package/dist-es5/Constants.js +1 -1
  20. package/dist-es5/DomHelperFuncs.js +1 -1
  21. package/dist-es5/Enums.js +1 -1
  22. package/dist-es5/HelperFuncs.js +1 -1
  23. package/dist-es5/Interfaces/ConnectionString.js +1 -1
  24. package/dist-es5/Interfaces/Context/IApplication.js +1 -1
  25. package/dist-es5/Interfaces/Context/IDevice.js +1 -1
  26. package/dist-es5/Interfaces/Context/IInternal.js +1 -1
  27. package/dist-es5/Interfaces/Context/ILocation.js +1 -1
  28. package/dist-es5/Interfaces/Context/IOperatingSystem.js +1 -1
  29. package/dist-es5/Interfaces/Context/ISample.js +1 -1
  30. package/dist-es5/Interfaces/Context/ISession.js +1 -1
  31. package/dist-es5/Interfaces/Context/ISessionManager.js +1 -1
  32. package/dist-es5/Interfaces/Context/ITelemetryTrace.js +1 -1
  33. package/dist-es5/Interfaces/Context/IUser.js +1 -1
  34. package/dist-es5/Interfaces/Context/IWeb.js +1 -1
  35. package/dist-es5/Interfaces/Contracts/AvailabilityData.js +1 -1
  36. package/dist-es5/Interfaces/Contracts/ContextTagKeys.js +1 -1
  37. package/dist-es5/Interfaces/Contracts/DataPointType.js +1 -1
  38. package/dist-es5/Interfaces/Contracts/DependencyKind.js +1 -1
  39. package/dist-es5/Interfaces/Contracts/DependencySourceType.js +1 -1
  40. package/dist-es5/Interfaces/Contracts/IBase.js +1 -1
  41. package/dist-es5/Interfaces/Contracts/IData.js +1 -1
  42. package/dist-es5/Interfaces/Contracts/IDataPoint.js +1 -1
  43. package/dist-es5/Interfaces/Contracts/IDomain.js +1 -1
  44. package/dist-es5/Interfaces/Contracts/IEnvelope.js +1 -1
  45. package/dist-es5/Interfaces/Contracts/IEventData.js +1 -1
  46. package/dist-es5/Interfaces/Contracts/IExceptionData.js +1 -1
  47. package/dist-es5/Interfaces/Contracts/IExceptionDetails.js +1 -1
  48. package/dist-es5/Interfaces/Contracts/IMessageData.js +1 -1
  49. package/dist-es5/Interfaces/Contracts/IMetricData.js +1 -1
  50. package/dist-es5/Interfaces/Contracts/IPageViewData.js +1 -1
  51. package/dist-es5/Interfaces/Contracts/IPageViewPerfData.js +1 -1
  52. package/dist-es5/Interfaces/Contracts/IRemoteDependencyData.js +1 -1
  53. package/dist-es5/Interfaces/Contracts/IStackFrame.js +1 -1
  54. package/dist-es5/Interfaces/Contracts/RequestData.js +1 -1
  55. package/dist-es5/Interfaces/Contracts/SeverityLevel.js +1 -1
  56. package/dist-es5/Interfaces/IAppInsights.js +1 -1
  57. package/dist-es5/Interfaces/IConfig.js +1 -1
  58. package/dist-es5/Interfaces/ICorrelationConfig.js +1 -1
  59. package/dist-es5/Interfaces/IDependencyTelemetry.js +1 -1
  60. package/dist-es5/Interfaces/IEventTelemetry.js +1 -1
  61. package/dist-es5/Interfaces/IExceptionTelemetry.js +1 -1
  62. package/dist-es5/Interfaces/IMetricTelemetry.js +1 -1
  63. package/dist-es5/Interfaces/IPageViewPerformanceTelemetry.js +1 -1
  64. package/dist-es5/Interfaces/IPageViewTelemetry.js +1 -1
  65. package/dist-es5/Interfaces/IPartC.js +1 -1
  66. package/dist-es5/Interfaces/IPropertiesPlugin.js +1 -1
  67. package/dist-es5/Interfaces/IRequestContext.js +1 -1
  68. package/dist-es5/Interfaces/IStorageBuffer.js +1 -1
  69. package/dist-es5/Interfaces/ITelemetryContext.js +1 -1
  70. package/dist-es5/Interfaces/IThrottleMgr.js +1 -1
  71. package/dist-es5/Interfaces/ITraceTelemetry.js +1 -1
  72. package/dist-es5/Interfaces/PartAExtensions.js +1 -1
  73. package/dist-es5/Interfaces/Telemetry/IEnvelope.js +1 -1
  74. package/dist-es5/Interfaces/Telemetry/ISerializable.js +1 -1
  75. package/dist-es5/Offline.js +1 -1
  76. package/dist-es5/RequestResponseHeaders.js +1 -1
  77. package/dist-es5/StorageHelperFuncs.js +1 -1
  78. package/dist-es5/Telemetry/Common/Data.js +1 -1
  79. package/dist-es5/Telemetry/Common/DataPoint.js +1 -1
  80. package/dist-es5/Telemetry/Common/DataSanitizer.js +1 -1
  81. package/dist-es5/Telemetry/Common/Envelope.js +1 -1
  82. package/dist-es5/Telemetry/Event.js +1 -1
  83. package/dist-es5/Telemetry/Exception.js +1 -1
  84. package/dist-es5/Telemetry/Metric.js +1 -1
  85. package/dist-es5/Telemetry/PageView.js +1 -1
  86. package/dist-es5/Telemetry/PageViewPerformance.js +1 -1
  87. package/dist-es5/Telemetry/RemoteDependencyData.js +1 -1
  88. package/dist-es5/Telemetry/Trace.js +1 -1
  89. package/dist-es5/TelemetryItemCreator.js +1 -1
  90. package/dist-es5/ThrottleMgr.js +1 -1
  91. package/dist-es5/UrlHelperFuncs.js +1 -1
  92. package/dist-es5/Util.js +1 -1
  93. package/dist-es5/__DynamicConstants.js +1 -1
  94. package/dist-es5/applicationinsights-common.js +1 -1
  95. package/package.json +66 -63
  96. package/types/applicationinsights-common.d.ts +1 -1
  97. package/types/applicationinsights-common.namespaced.d.ts +29 -3
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Application Insights JavaScript SDK - Common, 3.3.2
2
+ * Application Insights JavaScript SDK - Common, 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,63 +1,66 @@
1
- {
2
- "name": "@microsoft/applicationinsights-common",
3
- "version": "3.3.2",
4
- "description": "Microsoft Application Insights Common JavaScript Library",
5
- "homepage": "https://github.com/microsoft/ApplicationInsights-JS#readme",
6
- "author": "Microsoft Application Insights Team",
7
- "main": "dist/es5/applicationinsights-common.js",
8
- "module": "dist-es5/applicationinsights-common.js",
9
- "types": "types/applicationinsights-common.d.ts",
10
- "sideEffects": false,
11
- "repository": {
12
- "type": "git",
13
- "url": "https://github.com/microsoft/ApplicationInsights-JS/tree/main/shared/AppInsightsCommon"
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 common",
19
- "build:browser": "rollup -c rollup.config.js --bundleConfigAsCjs",
20
- "rebuild": "npm run build",
21
- "test": "grunt commontest",
22
- "mintest": "grunt common-mintest",
23
- "lint": "tslint -p tsconfig.json",
24
- "dtsgen": "api-extractor run --local && node ../../scripts/dtsgen.js \"Microsoft Application Insights Common JavaScript Library\"",
25
- "sri": "node ../../tools/subResourceIntegrity/generateIntegrityFile.js",
26
- "ai-min": "grunt common-min",
27
- "ai-restore": "grunt common-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
- "grunt": "^1.5.3",
37
- "grunt-cli": "^1.4.3",
38
- "grunt-contrib-qunit": "^6.2.1",
39
- "@nevware21/grunt-ts-plugin": "^0.4.3",
40
- "@nevware21/grunt-eslint-ts": "^0.2.2",
41
- "@rollup/plugin-commonjs": "^24.0.0",
42
- "@rollup/plugin-node-resolve": "^15.0.1",
43
- "@rollup/plugin-replace": "^5.0.2",
44
- "rollup-plugin-cleanup": "^3.2.1",
45
- "rollup": "^3.20.0",
46
- "typescript": "^4.9.3",
47
- "tslib": "^2.0.0",
48
- "typedoc": "^0.26.6",
49
- "globby": "^11.0.0",
50
- "magic-string": "^0.25.7",
51
- "sinon": "^7.3.1"
52
- },
53
- "peerDependencies": {
54
- "tslib": ">= 1.0.0"
55
- },
56
- "dependencies": {
57
- "@microsoft/applicationinsights-shims": "3.0.1",
58
- "@microsoft/applicationinsights-core-js": "3.3.2",
59
- "@microsoft/dynamicproto-js": "^2.0.3",
60
- "@nevware21/ts-utils": ">= 0.11.3 < 2.x"
61
- },
62
- "license": "MIT"
63
- }
1
+ {
2
+ "name": "@microsoft/applicationinsights-common",
3
+ "version": "3.3.3-nightly3.2409-01",
4
+ "description": "Microsoft Application Insights Common JavaScript Library",
5
+ "homepage": "https://github.com/microsoft/ApplicationInsights-JS#readme",
6
+ "author": "Microsoft Application Insights Team",
7
+ "main": "dist/es5/applicationinsights-common.js",
8
+ "module": "dist-es5/applicationinsights-common.js",
9
+ "types": "types/applicationinsights-common.d.ts",
10
+ "sideEffects": false,
11
+ "repository": {
12
+ "type": "git",
13
+ "url": "https://github.com/microsoft/ApplicationInsights-JS/tree/main/shared/AppInsightsCommon"
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 common",
19
+ "build:browser": "rollup -c rollup.config.js --bundleConfigAsCjs",
20
+ "rebuild": "npm run build",
21
+ "test": "grunt commontest",
22
+ "mintest": "grunt common-mintest",
23
+ "lint": "tslint -p tsconfig.json",
24
+ "dtsgen": "api-extractor run --local && node ../../scripts/dtsgen.js \"Microsoft Application Insights Common JavaScript Library\"",
25
+ "sri": "node ../../tools/subResourceIntegrity/generateIntegrityFile.js",
26
+ "ai-min": "grunt common-min",
27
+ "ai-restore": "grunt common-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
+ "grunt": "^1.5.3",
37
+ "grunt-cli": "^1.4.3",
38
+ "grunt-contrib-qunit": "^6.2.1",
39
+ "@nevware21/grunt-ts-plugin": "^0.4.3",
40
+ "@nevware21/grunt-eslint-ts": "^0.2.2",
41
+ "@rollup/plugin-commonjs": "^24.0.0",
42
+ "@rollup/plugin-node-resolve": "^15.0.1",
43
+ "@rollup/plugin-replace": "^5.0.2",
44
+ "rollup-plugin-cleanup": "^3.2.1",
45
+ "rollup": "^3.20.0",
46
+ "typescript": "^4.9.3",
47
+ "tslib": "^2.0.0",
48
+ "typedoc": "^0.26.6",
49
+ "globby": "^11.0.0",
50
+ "magic-string": "^0.25.7",
51
+ "sinon": "^7.3.1"
52
+ },
53
+ "peerDependencies": {
54
+ "tslib": ">= 1.0.0"
55
+ },
56
+ "dependencies": {
57
+ "@microsoft/applicationinsights-shims": "3.0.1",
58
+ "@microsoft/applicationinsights-core-js": "3.3.3-nightly3.2409-01",
59
+ "@microsoft/dynamicproto-js": "^2.0.3",
60
+ "@nevware21/ts-utils": ">= 0.11.3 < 2.x"
61
+ },
62
+ "license": "MIT",
63
+ "publishConfig": {
64
+ "tag": "nightly3"
65
+ }
66
+ }
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Microsoft Application Insights Common JavaScript Library, 3.3.2
2
+ * Microsoft Application Insights Common JavaScript Library, 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 Common JavaScript Library, 3.3.2
2
+ * Microsoft Application Insights Common JavaScript Library, 3.3.3-nightly3.2409-01
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  *
5
5
  * Microsoft Application Insights Team
@@ -2263,10 +2263,31 @@ declare namespace ApplicationInsights {
2263
2263
  iKey?: string;
2264
2264
  }
2265
2265
 
2266
+ /**
2267
+ * Configuration for extra exceptions information sent with the exception telemetry.
2268
+ * @example
2269
+ * ```js
2270
+ * const appInsights = new ApplicationInsights({
2271
+ config: {
2272
+ connectionString: 'InstrumentationKey=YOUR_INSTRUMENTATION_KEY_GOES_HERE',
2273
+ expCfg: {
2274
+ inclScripts: true,
2275
+ expLog : () => {
2276
+ return {logs: ["log info 1", "log info 2"]};
2277
+ },
2278
+ maxLogs : 100
2279
+ }
2280
+ }
2281
+ });
2282
+ appInsights.trackException({error: new Error(), severityLevel: SeverityLevel.Critical});
2283
+ * ```
2284
+ * @interface IExceptionConfig
2285
+ */
2266
2286
  interface IExceptionConfig {
2267
2287
  /**
2268
2288
  * 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.
2269
2289
  * Notice: This would increase the size of the exception telemetry.
2290
+ * @defaultvalue true
2270
2291
  */
2271
2292
  inclScripts?: boolean;
2272
2293
  /**
@@ -2281,10 +2302,15 @@ declare namespace ApplicationInsights {
2281
2302
  *
2282
2303
  * @property {number} maxLogs - Specifies the maximum number of logs that can be generated. If not explicitly set, it defaults to 50.
2283
2304
  */
2284
- expLog: () => {
2305
+ expLog?: () => {
2285
2306
  logs: string[];
2286
2307
  };
2287
- maxLogs: number;
2308
+ /**
2309
+ * The maximum number of logs to include in the telemetry data.
2310
+ * If not explicitly set, it defaults to 50.
2311
+ * This is used in conjunction with the `expLog` callback.
2312
+ */
2313
+ maxLogs?: number;
2288
2314
  }
2289
2315
 
2290
2316
  /**