@microsoft/applicationinsights-web-basic 3.1.1-nightly3.2403-03 → 3.1.1

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.1.1-nightly3.2403-03.js → aib.3.1.1.cjs.js} +2668 -2523
  2. package/browser/es5/aib.3.1.1.cjs.js.map +1 -0
  3. package/browser/es5/aib.3.1.1.cjs.min.js +6 -0
  4. package/browser/es5/aib.3.1.1.cjs.min.js.map +1 -0
  5. package/browser/es5/{aib.3.1.1-nightly3.2403-03.gbl.js → aib.3.1.1.gbl.js} +2671 -2499
  6. package/browser/es5/aib.3.1.1.gbl.js.map +1 -0
  7. package/browser/es5/aib.3.1.1.gbl.min.js +6 -0
  8. package/browser/es5/aib.3.1.1.gbl.min.js.map +1 -0
  9. package/browser/es5/aib.3.1.1.integrity.json +66 -0
  10. package/browser/es5/{aib.3.1.1-nightly3.2403-03.cjs.js → aib.3.1.1.js} +2695 -2496
  11. package/browser/es5/aib.3.1.1.js.map +1 -0
  12. package/browser/es5/aib.3.1.1.min.js +6 -0
  13. package/browser/es5/aib.3.1.1.min.js.map +1 -0
  14. package/browser/es5/aib.3.cjs.js +2668 -2496
  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 +2670 -2498
  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 +2670 -2498
  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 +2668 -2496
  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 +67 -70
  34. package/types/applicationinsights-web-basic.d.ts +1 -1
  35. package/types/applicationinsights-web-basic.namespaced.d.ts +18 -8
  36. package/browser/es5/aib.3.1.1-nightly3.2403-03.cjs.js.map +0 -1
  37. package/browser/es5/aib.3.1.1-nightly3.2403-03.cjs.min.js +0 -6
  38. package/browser/es5/aib.3.1.1-nightly3.2403-03.cjs.min.js.map +0 -1
  39. package/browser/es5/aib.3.1.1-nightly3.2403-03.gbl.js.map +0 -1
  40. package/browser/es5/aib.3.1.1-nightly3.2403-03.gbl.min.js +0 -6
  41. package/browser/es5/aib.3.1.1-nightly3.2403-03.gbl.min.js.map +0 -1
  42. package/browser/es5/aib.3.1.1-nightly3.2403-03.integrity.json +0 -66
  43. package/browser/es5/aib.3.1.1-nightly3.2403-03.js.map +0 -1
  44. package/browser/es5/aib.3.1.1-nightly3.2403-03.min.js +0 -6
  45. package/browser/es5/aib.3.1.1-nightly3.2403-03.min.js.map +0 -1
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Application Insights JavaScript Web SDK - Basic, 3.1.1-nightly3.2403-03
2
+ * Application Insights JavaScript Web SDK - Basic, 3.1.1
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.1.1-nightly3.2403-03
2
+ * Application Insights JavaScript Web SDK - Basic, 3.1.1
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
 
package/package.json CHANGED
@@ -1,70 +1,67 @@
1
- {
2
- "name": "@microsoft/applicationinsights-web-basic",
3
- "version": "3.1.1-nightly3.2403-03",
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.24.8",
52
- "tslib": "^2.0.0"
53
- },
54
- "peerDependencies": {
55
- "tslib": "*"
56
- },
57
- "dependencies": {
58
- "@microsoft/dynamicproto-js": "^2.0.3",
59
- "@microsoft/applicationinsights-shims": "3.0.1",
60
- "@microsoft/applicationinsights-common": "3.1.1-nightly3.2403-03",
61
- "@microsoft/applicationinsights-channel-js": "3.1.1-nightly3.2403-03",
62
- "@microsoft/applicationinsights-core-js": "3.1.1-nightly3.2403-03",
63
- "@nevware21/ts-utils": ">= 0.10.5 < 2.x",
64
- "@nevware21/ts-async": ">= 0.3.0 < 2.x"
65
- },
66
- "license": "MIT",
67
- "publishConfig": {
68
- "tag": "nightly3"
69
- }
70
- }
1
+ {
2
+ "name": "@microsoft/applicationinsights-web-basic",
3
+ "version": "3.1.1",
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.24.8",
52
+ "tslib": "^2.0.0"
53
+ },
54
+ "peerDependencies": {
55
+ "tslib": "*"
56
+ },
57
+ "dependencies": {
58
+ "@microsoft/dynamicproto-js": "^2.0.3",
59
+ "@microsoft/applicationinsights-shims": "3.0.1",
60
+ "@microsoft/applicationinsights-common": "3.1.1",
61
+ "@microsoft/applicationinsights-channel-js": "3.1.1",
62
+ "@microsoft/applicationinsights-core-js": "3.1.1",
63
+ "@nevware21/ts-utils": ">= 0.10.5 < 2.x",
64
+ "@nevware21/ts-async": ">= 0.3.0 < 2.x"
65
+ },
66
+ "license": "MIT"
67
+ }
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Microsoft.ApplicationInsights, 3.1.1-nightly3.2403-03
2
+ * Microsoft.ApplicationInsights, 3.1.1
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.1.1-nightly3.2403-03
2
+ * Microsoft.ApplicationInsights, 3.1.1
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  *
5
5
  * Microsoft Application Insights Team
@@ -2733,6 +2733,11 @@ declare namespace ApplicationInsights {
2733
2733
  * is provided and alwaysUseXhrOverride is true.
2734
2734
  */
2735
2735
  unloadTransports?: number | number[];
2736
+ /**
2737
+ * (Optional) The specific error codes that will cause a retry of sending data to the backend.
2738
+ * @since 3.1.1
2739
+ */
2740
+ retryCodes?: number[];
2736
2741
  }
2737
2742
 
2738
2743
  interface ISerializable {
@@ -3186,6 +3191,17 @@ declare namespace ApplicationInsights {
3186
3191
  rdOnly: <C, V = any>(target: C, name: string) => V;
3187
3192
  }
3188
3193
 
3194
+ interface IXDomainRequest extends XMLHttpRequestEventTarget {
3195
+ readonly responseText: string;
3196
+ send(payload: string): void;
3197
+ open(method: string, url: string): void;
3198
+ timeout: number;
3199
+ contentType: string;
3200
+ addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void;
3201
+ addEventListener(type: "load" | "timeout", listener: (ev: Event) => any, useCapture?: boolean): void;
3202
+ addEventListener(type: "progress", listener: (ev: ProgressEvent) => any, useCapture?: boolean): void;
3203
+ }
3204
+
3189
3205
  /**
3190
3206
  * The IXHROverride interface overrides the way HTTP requests are sent.
3191
3207
  */
@@ -3315,7 +3331,7 @@ declare namespace ApplicationInsights {
3315
3331
  * xdr state changes
3316
3332
  * @deprecated
3317
3333
  */
3318
- _xdrOnLoad(xdr: XDomainRequest, payload: string[]): void;
3334
+ _xdrOnLoad(xdr: IXDomainRequest, payload: string[]): void;
3319
3335
  /**
3320
3336
  * Add header to request
3321
3337
  * @param name - Header name.
@@ -3470,10 +3486,4 @@ declare namespace ApplicationInsights {
3470
3486
 
3471
3487
  type WatcherFunction<T = IConfiguration> = (details: IWatchDetails<T>) => void;
3472
3488
 
3473
- interface XDomainRequest extends XMLHttpRequestEventTarget {
3474
- readonly responseText: string;
3475
- send(payload: string): void;
3476
- open(method: string, url: string): void;
3477
- }
3478
-
3479
3489
  }