@microsoft/applicationinsights-cfgsync-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 (50) hide show
  1. package/browser/es5/{ai.cfgsync.3.3.2.cjs.js → ai.cfgsync.3.3.3-nightly3.2409-01.cjs.js} +3 -3
  2. package/browser/es5/ai.cfgsync.3.3.3-nightly3.2409-01.cjs.js.map +1 -0
  3. package/browser/es5/ai.cfgsync.3.3.3-nightly3.2409-01.cjs.min.js +6 -0
  4. package/browser/es5/ai.cfgsync.3.3.3-nightly3.2409-01.cjs.min.js.map +1 -0
  5. package/browser/es5/{ai.cfgsync.3.3.2.gbl.js → ai.cfgsync.3.3.3-nightly3.2409-01.gbl.js} +5 -5
  6. package/browser/es5/ai.cfgsync.3.3.3-nightly3.2409-01.gbl.js.map +1 -0
  7. package/browser/es5/ai.cfgsync.3.3.3-nightly3.2409-01.gbl.min.js +6 -0
  8. package/browser/es5/ai.cfgsync.3.3.3-nightly3.2409-01.gbl.min.js.map +1 -0
  9. package/browser/es5/ai.cfgsync.3.3.3-nightly3.2409-01.integrity.json +66 -0
  10. package/browser/es5/{ai.cfgsync.3.3.2.js → ai.cfgsync.3.3.3-nightly3.2409-01.js} +5 -5
  11. package/browser/es5/ai.cfgsync.3.3.3-nightly3.2409-01.js.map +1 -0
  12. package/browser/es5/ai.cfgsync.3.3.3-nightly3.2409-01.min.js +6 -0
  13. package/browser/es5/ai.cfgsync.3.3.3-nightly3.2409-01.min.js.map +1 -0
  14. package/browser/es5/ai.cfgsync.3.cjs.js +2 -2
  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 +4 -4
  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 +4 -4
  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 +2 -2
  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 +69 -66
  39. package/types/applicationinsights-cfgsync-js.d.ts +1 -1
  40. package/types/applicationinsights-cfgsync-js.namespaced.d.ts +29 -3
  41. package/browser/es5/ai.cfgsync.3.3.2.cjs.js.map +0 -1
  42. package/browser/es5/ai.cfgsync.3.3.2.cjs.min.js +0 -6
  43. package/browser/es5/ai.cfgsync.3.3.2.cjs.min.js.map +0 -1
  44. package/browser/es5/ai.cfgsync.3.3.2.gbl.js.map +0 -1
  45. package/browser/es5/ai.cfgsync.3.3.2.gbl.min.js +0 -6
  46. package/browser/es5/ai.cfgsync.3.3.2.gbl.min.js.map +0 -1
  47. package/browser/es5/ai.cfgsync.3.3.2.integrity.json +0 -66
  48. package/browser/es5/ai.cfgsync.3.3.2.js.map +0 -1
  49. package/browser/es5/ai.cfgsync.3.3.2.min.js +0 -6
  50. package/browser/es5/ai.cfgsync.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
  import { isNullOrUndefined, isObject, objExtend, objForEachKey, setValueByKey } from "@nevware21/ts-utils";
@@ -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
  export {};
@@ -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
  export {};
@@ -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
  export {};
@@ -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
  import { CfgSyncPlugin } from "./CfgSyncPlugin";
package/package.json CHANGED
@@ -1,66 +1,69 @@
1
- {
2
- "name": "@microsoft/applicationinsights-cfgsync-js",
3
- "version": "3.3.2",
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.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
- "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.3.2",
61
- "@microsoft/applicationinsights-common": "3.3.2",
62
- "@nevware21/ts-utils": ">= 0.11.3 < 2.x",
63
- "@nevware21/ts-async": ">= 0.5.2 < 2.x"
64
- },
65
- "license": "MIT"
66
- }
1
+ {
2
+ "name": "@microsoft/applicationinsights-cfgsync-js",
3
+ "version": "3.3.3-nightly3.2409-01",
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.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
+ "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.3.3-nightly3.2409-01",
61
+ "@microsoft/applicationinsights-common": "3.3.3-nightly3.2409-01",
62
+ "@nevware21/ts-utils": ">= 0.11.3 < 2.x",
63
+ "@nevware21/ts-async": ">= 0.5.2 < 2.x"
64
+ },
65
+ "license": "MIT",
66
+ "publishConfig": {
67
+ "tag": "nightly3"
68
+ }
69
+ }
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Microsoft Application Insights idsync plugin, 3.3.2
2
+ * Microsoft Application Insights idsync 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 idsync plugin, 3.3.2
2
+ * Microsoft Application Insights idsync 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
@@ -1493,10 +1493,31 @@ declare namespace ApplicationInsights {
1493
1493
  setTraceFlags(newValue?: number): void;
1494
1494
  }
1495
1495
 
1496
+ /**
1497
+ * Configuration for extra exceptions information sent with the exception telemetry.
1498
+ * @example
1499
+ * ```js
1500
+ * const appInsights = new ApplicationInsights({
1501
+ config: {
1502
+ connectionString: 'InstrumentationKey=YOUR_INSTRUMENTATION_KEY_GOES_HERE',
1503
+ expCfg: {
1504
+ inclScripts: true,
1505
+ expLog : () => {
1506
+ return {logs: ["log info 1", "log info 2"]};
1507
+ },
1508
+ maxLogs : 100
1509
+ }
1510
+ }
1511
+ });
1512
+ appInsights.trackException({error: new Error(), severityLevel: SeverityLevel.Critical});
1513
+ * ```
1514
+ * @interface IExceptionConfig
1515
+ */
1496
1516
  interface IExceptionConfig {
1497
1517
  /**
1498
1518
  * 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.
1499
1519
  * Notice: This would increase the size of the exception telemetry.
1520
+ * @defaultvalue true
1500
1521
  */
1501
1522
  inclScripts?: boolean;
1502
1523
  /**
@@ -1511,10 +1532,15 @@ declare namespace ApplicationInsights {
1511
1532
  *
1512
1533
  * @property {number} maxLogs - Specifies the maximum number of logs that can be generated. If not explicitly set, it defaults to 50.
1513
1534
  */
1514
- expLog: () => {
1535
+ expLog?: () => {
1515
1536
  logs: string[];
1516
1537
  };
1517
- maxLogs: number;
1538
+ /**
1539
+ * The maximum number of logs to include in the telemetry data.
1540
+ * If not explicitly set, it defaults to 50.
1541
+ * This is used in conjunction with the `expLog` callback.
1542
+ */
1543
+ maxLogs?: number;
1518
1544
  }
1519
1545
 
1520
1546
  interface IFeatureOptIn {