@microsoft/applicationinsights-common 3.4.6-nightly3.2610-15 → 3.4.6

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.
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Application Insights JavaScript SDK - Common, 3.4.6-nightly3.2610-15
2
+ * Application Insights JavaScript SDK - Common, 3.4.6
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
 
package/package.json CHANGED
@@ -1,69 +1,66 @@
1
- {
2
- "name": "@microsoft/applicationinsights-common",
3
- "version": "3.4.6-nightly3.2610-15",
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": "",
22
- "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/applicationinsights-rollup-plugin-uglify3-js": "1.0.0",
33
- "@microsoft/applicationinsights-rollup-es5": "1.0.2",
34
- "@microsoft/api-extractor": "^7.40.0",
35
- "grunt": "^1.6.1",
36
- "grunt-cli": "^1.5.0",
37
- "@nevware21/grunt-ts-plugin": "^0.5.2",
38
- "@nevware21/grunt-eslint-ts": "^0.5.2",
39
- "@rollup/plugin-commonjs": "^24.0.0",
40
- "@rollup/plugin-node-resolve": "^15.0.1",
41
- "@rollup/plugin-replace": "^5.0.2",
42
- "rollup": "^3.20.0",
43
- "rollup-plugin-cleanup": "^3.2.1",
44
- "rollup-plugin-sourcemaps": "^0.6.3",
45
- "typescript": "^4.9.3",
46
- "tslib": "^2.0.0",
47
- "typedoc": "^0.26.6",
48
- "globby": "^11.0.0",
49
- "magic-string": "^0.25.7",
50
- "sinon": "^7.3.1",
51
- "eslint": "^8.56.0",
52
- "@typescript-eslint/eslint-plugin": "^7.14.1",
53
- "@typescript-eslint/parser": "^7.14.1",
54
- "eslint-plugin-security": "^1.5.0"
55
- },
56
- "peerDependencies": {
57
- "tslib": ">= 1.0.0"
58
- },
59
- "dependencies": {
60
- "@microsoft/applicationinsights-shims": "3.0.1",
61
- "@microsoft/applicationinsights-core-js": "3.4.6-nightly3.2610-15",
62
- "@microsoft/dynamicproto-js": "^2.0.3",
63
- "@nevware21/ts-utils": ">= 0.14.0 < 2.x"
64
- },
65
- "license": "MIT",
66
- "publishConfig": {
67
- "tag": "nightly3"
68
- }
69
- }
1
+ {
2
+ "name": "@microsoft/applicationinsights-common",
3
+ "version": "3.4.6",
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": "",
22
+ "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/applicationinsights-rollup-plugin-uglify3-js": "1.0.0",
33
+ "@microsoft/applicationinsights-rollup-es5": "1.0.2",
34
+ "@microsoft/api-extractor": "^7.40.0",
35
+ "grunt": "^1.6.1",
36
+ "grunt-cli": "^1.5.0",
37
+ "@nevware21/grunt-ts-plugin": "^0.5.2",
38
+ "@nevware21/grunt-eslint-ts": "^0.5.2",
39
+ "@rollup/plugin-commonjs": "^24.0.0",
40
+ "@rollup/plugin-node-resolve": "^15.0.1",
41
+ "@rollup/plugin-replace": "^5.0.2",
42
+ "rollup": "^3.20.0",
43
+ "rollup-plugin-cleanup": "^3.2.1",
44
+ "rollup-plugin-sourcemaps": "^0.6.3",
45
+ "typescript": "^4.9.3",
46
+ "tslib": "^2.0.0",
47
+ "typedoc": "^0.26.6",
48
+ "globby": "^11.0.0",
49
+ "magic-string": "^0.25.7",
50
+ "sinon": "^7.3.1",
51
+ "eslint": "^8.56.0",
52
+ "@typescript-eslint/eslint-plugin": "^7.14.1",
53
+ "@typescript-eslint/parser": "^7.14.1",
54
+ "eslint-plugin-security": "^1.5.0"
55
+ },
56
+ "peerDependencies": {
57
+ "tslib": ">= 1.0.0"
58
+ },
59
+ "dependencies": {
60
+ "@microsoft/applicationinsights-shims": "3.0.1",
61
+ "@microsoft/applicationinsights-core-js": "3.4.6",
62
+ "@microsoft/dynamicproto-js": "^2.0.3",
63
+ "@nevware21/ts-utils": ">= 0.14.0 < 2.x"
64
+ },
65
+ "license": "MIT"
66
+ }
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Microsoft Application Insights Common JavaScript Library, 3.4.6-nightly3.2610-15
2
+ * Microsoft Application Insights Common JavaScript Library, 3.4.6
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.4.6-nightly3.2610-15
2
+ * Microsoft Application Insights Common JavaScript Library, 3.4.6
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  *
5
5
  * Microsoft Application Insights Team
@@ -3670,6 +3670,17 @@ declare namespace ApplicationInsights {
3670
3670
  */
3671
3671
  interface INotificationManager {
3672
3672
  listeners: INotificationListener[];
3673
+ /**
3674
+ * Optional hint indicating whether a notification has a matching listener or custom handler.
3675
+ * @param name - The notification method to query.
3676
+ * @returns False only when calling the method would have no effect. Callers must retain their
3677
+ * existing dispatch behavior when this hint is absent or does not return false.
3678
+ * @remarks
3679
+ * Implementations must account for custom notification handling as well as registered listeners.
3680
+ * The built-in manager returns true for overridden notification methods, even without matching listeners.
3681
+ * This method must not dispatch notifications or change listener state.
3682
+ */
3683
+ hasListener?(name: string): boolean;
3673
3684
  /**
3674
3685
  * Adds a notification listener.
3675
3686
  * @param listener - The notification listener to be added.