@microsoft/applicationinsights-channel-js 3.0.7 → 3.0.9

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 (58) hide show
  1. package/browser/es5/{applicationinsights-channel-js.3.0.7.cjs.js → applicationinsights-channel-js.3.0.9.cjs.js} +273 -239
  2. package/browser/es5/applicationinsights-channel-js.3.0.9.cjs.js.map +1 -0
  3. package/browser/es5/applicationinsights-channel-js.3.0.9.cjs.min.js +6 -0
  4. package/browser/es5/applicationinsights-channel-js.3.0.9.cjs.min.js.map +1 -0
  5. package/browser/es5/{applicationinsights-channel-js.3.0.7.gbl.js → applicationinsights-channel-js.3.0.9.gbl.js} +275 -241
  6. package/browser/es5/applicationinsights-channel-js.3.0.9.gbl.js.map +1 -0
  7. package/browser/es5/applicationinsights-channel-js.3.0.9.gbl.min.js +6 -0
  8. package/browser/es5/applicationinsights-channel-js.3.0.9.gbl.min.js.map +1 -0
  9. package/browser/es5/applicationinsights-channel-js.3.0.9.integrity.json +66 -0
  10. package/browser/es5/{applicationinsights-channel-js.3.0.7.js → applicationinsights-channel-js.3.0.9.js} +275 -241
  11. package/browser/es5/applicationinsights-channel-js.3.0.9.js.map +1 -0
  12. package/browser/es5/applicationinsights-channel-js.3.0.9.min.js +6 -0
  13. package/browser/es5/applicationinsights-channel-js.3.0.9.min.js.map +1 -0
  14. package/browser/es5/applicationinsights-channel-js.3.cjs.js +272 -238
  15. package/browser/es5/applicationinsights-channel-js.3.cjs.js.map +1 -1
  16. package/browser/es5/applicationinsights-channel-js.3.cjs.min.js +2 -2
  17. package/browser/es5/applicationinsights-channel-js.3.cjs.min.js.map +1 -1
  18. package/browser/es5/applicationinsights-channel-js.3.gbl.js +274 -240
  19. package/browser/es5/applicationinsights-channel-js.3.gbl.js.map +1 -1
  20. package/browser/es5/applicationinsights-channel-js.3.gbl.min.js +2 -2
  21. package/browser/es5/applicationinsights-channel-js.3.gbl.min.js.map +1 -1
  22. package/browser/es5/applicationinsights-channel-js.3.integrity.json +25 -25
  23. package/browser/es5/applicationinsights-channel-js.3.js +274 -240
  24. package/browser/es5/applicationinsights-channel-js.3.js.map +1 -1
  25. package/browser/es5/applicationinsights-channel-js.3.min.js +2 -2
  26. package/browser/es5/applicationinsights-channel-js.3.min.js.map +1 -1
  27. package/dist/es5/applicationinsights-channel-js.js +272 -238
  28. package/dist/es5/applicationinsights-channel-js.js.map +1 -1
  29. package/dist/es5/applicationinsights-channel-js.min.js +2 -2
  30. package/dist/es5/applicationinsights-channel-js.min.js.map +1 -1
  31. package/dist-es5/EnvelopeCreator.js +2 -2
  32. package/dist-es5/EnvelopeCreator.js.map +1 -1
  33. package/dist-es5/Interfaces.js +1 -1
  34. package/dist-es5/InternalConstants.js +1 -1
  35. package/dist-es5/Offline.js +1 -1
  36. package/dist-es5/SendBuffer.js +1 -1
  37. package/dist-es5/Sender.js +14 -5
  38. package/dist-es5/Sender.js.map +1 -1
  39. package/dist-es5/Serializer.js +1 -1
  40. package/dist-es5/TelemetryProcessors/Sample.js +1 -1
  41. package/dist-es5/TelemetryProcessors/SamplingScoreGenerators/HashCodeScoreGenerator.js +1 -1
  42. package/dist-es5/TelemetryProcessors/SamplingScoreGenerators/SamplingScoreGenerator.js +1 -1
  43. package/dist-es5/__DynamicConstants.js +3 -3
  44. package/dist-es5/__DynamicConstants.js.map +1 -1
  45. package/dist-es5/applicationinsights-channel-js.js +1 -1
  46. package/package.json +65 -62
  47. package/types/applicationinsights-channel-js.d.ts +7 -2
  48. package/types/applicationinsights-channel-js.namespaced.d.ts +2477 -42
  49. package/browser/es5/applicationinsights-channel-js.3.0.7.cjs.js.map +0 -1
  50. package/browser/es5/applicationinsights-channel-js.3.0.7.cjs.min.js +0 -6
  51. package/browser/es5/applicationinsights-channel-js.3.0.7.cjs.min.js.map +0 -1
  52. package/browser/es5/applicationinsights-channel-js.3.0.7.gbl.js.map +0 -1
  53. package/browser/es5/applicationinsights-channel-js.3.0.7.gbl.min.js +0 -6
  54. package/browser/es5/applicationinsights-channel-js.3.0.7.gbl.min.js.map +0 -1
  55. package/browser/es5/applicationinsights-channel-js.3.0.7.integrity.json +0 -66
  56. package/browser/es5/applicationinsights-channel-js.3.0.7.js.map +0 -1
  57. package/browser/es5/applicationinsights-channel-js.3.0.7.min.js +0 -6
  58. package/browser/es5/applicationinsights-channel-js.3.0.7.min.js.map +0 -1
package/package.json CHANGED
@@ -1,62 +1,65 @@
1
- {
2
- "name": "@microsoft/applicationinsights-channel-js",
3
- "version": "3.0.7",
4
- "description": "Microsoft Application Insights JavaScript SDK Channel",
5
- "homepage": "https://github.com/microsoft/ApplicationInsights-JS#readme",
6
- "author": "Microsoft Application Insights Team",
7
- "main": "dist/es5/applicationinsights-channel-js.js",
8
- "module": "dist-es5/applicationinsights-channel-js.js",
9
- "types": "types/applicationinsights-channel-js.d.ts",
10
- "sideEffects": false,
11
- "repository": "github:Microsoft/applicationinsights-js",
12
- "scripts": {
13
- "clean": "git clean -xdf",
14
- "build": "npm run build:esm && npm run build:browser && npm run sri && npm run dtsgen",
15
- "build:esm": "grunt aichannel",
16
- "build:browser": "rollup -c rollup.config.js --bundleConfigAsCjs",
17
- "rebuild": "npm run build",
18
- "test": "grunt aichanneltest",
19
- "mintest": "grunt aichannel-mintest",
20
- "lint": "tslint -p tsconfig.json",
21
- "dtsgen": "api-extractor run --local && node ../../scripts/dtsgen.js \"Microsoft Application Insights JavaScript SDK Channel\"",
22
- "sri": "node ../../tools/subResourceIntegrity/generateIntegrityFile.js",
23
- "ai-min": "grunt aichannel-min",
24
- "ai-restore": "grunt aichannel-restore",
25
- "npm-pack": "npm pack",
26
- "api-docs": "typedoc"
27
- },
28
- "devDependencies": {
29
- "@microsoft/ai-test-framework": "0.0.1",
30
- "@microsoft/applicationinsights-rollup-plugin-uglify3-js": "1.0.0",
31
- "@microsoft/applicationinsights-rollup-es5": "1.0.2",
32
- "@microsoft/api-extractor": "^7.18.19",
33
- "@types/sinon": "4.3.3",
34
- "grunt": "^1.5.3",
35
- "grunt-cli": "^1.4.3",
36
- "@nevware21/grunt-ts-plugin": "^0.4.3",
37
- "@nevware21/grunt-eslint-ts": "^0.2.2",
38
- "globby": "^11.0.0",
39
- "magic-string": "^0.25.7",
40
- "@rollup/plugin-commonjs": "^24.0.0",
41
- "@rollup/plugin-node-resolve": "^15.0.1",
42
- "@rollup/plugin-replace": "^5.0.2",
43
- "rollup-plugin-cleanup": "^3.2.1",
44
- "rollup": "^3.20.0",
45
- "typescript": "^4.9.3",
46
- "tslib": "^2.0.0",
47
- "sinon": "^7.3.1",
48
- "typedoc": "^0.24.8"
49
- },
50
- "peerDependencies": {
51
- "tslib": "*"
52
- },
53
- "dependencies": {
54
- "@microsoft/dynamicproto-js": "^2.0.2",
55
- "@microsoft/applicationinsights-shims": "3.0.1",
56
- "@microsoft/applicationinsights-core-js": "3.0.7",
57
- "@microsoft/applicationinsights-common": "3.0.7",
58
- "@nevware21/ts-utils": ">= 0.10.1 < 2.x",
59
- "@nevware21/ts-async": ">= 0.3.0 < 2.x"
60
- },
61
- "license": "MIT"
62
- }
1
+ {
2
+ "name": "@microsoft/applicationinsights-channel-js",
3
+ "version": "3.0.9",
4
+ "description": "Microsoft Application Insights JavaScript SDK Channel",
5
+ "homepage": "https://github.com/microsoft/ApplicationInsights-JS#readme",
6
+ "author": "Microsoft Application Insights Team",
7
+ "main": "dist/es5/applicationinsights-channel-js.js",
8
+ "module": "dist-es5/applicationinsights-channel-js.js",
9
+ "types": "types/applicationinsights-channel-js.d.ts",
10
+ "sideEffects": false,
11
+ "repository": "github:Microsoft/applicationinsights-js",
12
+ "scripts": {
13
+ "clean": "git clean -xdf",
14
+ "build": "npm run build:esm && npm run build:browser && npm run sri && npm run dtsgen",
15
+ "build:esm": "grunt aichannel",
16
+ "build:browser": "rollup -c rollup.config.js --bundleConfigAsCjs",
17
+ "rebuild": "npm run build",
18
+ "test": "grunt aichanneltest",
19
+ "mintest": "grunt aichannel-mintest",
20
+ "lint": "tslint -p tsconfig.json",
21
+ "dtsgen": "api-extractor run --local && node ../../scripts/dtsgen.js \"Microsoft Application Insights JavaScript SDK Channel\"",
22
+ "sri": "node ../../tools/subResourceIntegrity/generateIntegrityFile.js",
23
+ "ai-min": "grunt aichannel-min",
24
+ "ai-restore": "grunt aichannel-restore",
25
+ "npm-pack": "npm pack",
26
+ "api-docs": "typedoc"
27
+ },
28
+ "devDependencies": {
29
+ "@microsoft/ai-test-framework": "0.0.1",
30
+ "@microsoft/applicationinsights-rollup-plugin-uglify3-js": "1.0.0",
31
+ "@microsoft/applicationinsights-rollup-es5": "1.0.2",
32
+ "@microsoft/api-extractor": "^7.40.0",
33
+ "@types/sinon": "4.3.3",
34
+ "grunt": "^1.5.3",
35
+ "grunt-cli": "^1.4.3",
36
+ "@nevware21/grunt-ts-plugin": "^0.4.3",
37
+ "@nevware21/grunt-eslint-ts": "^0.2.2",
38
+ "globby": "^11.0.0",
39
+ "magic-string": "^0.25.7",
40
+ "@rollup/plugin-commonjs": "^24.0.0",
41
+ "@rollup/plugin-node-resolve": "^15.0.1",
42
+ "@rollup/plugin-replace": "^5.0.2",
43
+ "rollup-plugin-cleanup": "^3.2.1",
44
+ "rollup": "^3.20.0",
45
+ "typescript": "^4.9.3",
46
+ "tslib": "^2.0.0",
47
+ "sinon": "^7.3.1",
48
+ "typedoc": "^0.24.8"
49
+ },
50
+ "peerDependencies": {
51
+ "tslib": "*"
52
+ },
53
+ "dependencies": {
54
+ "@microsoft/dynamicproto-js": "^2.0.3",
55
+ "@microsoft/applicationinsights-shims": "3.0.1",
56
+ "@microsoft/applicationinsights-core-js": "3.0.9",
57
+ "@microsoft/applicationinsights-common": "3.0.9",
58
+ "@nevware21/ts-utils": ">= 0.11.0 < 2.x",
59
+ "@nevware21/ts-async": ">= 0.3.0 < 2.x"
60
+ },
61
+ "license": "MIT",
62
+ "publishConfig": {
63
+ "tag": "release3"
64
+ }
65
+ }
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Microsoft Application Insights JavaScript SDK Channel, 3.0.7
2
+ * Microsoft Application Insights JavaScript SDK Channel, 3.0.9
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  *
5
5
  * Microsoft Application Insights Team
@@ -219,6 +219,11 @@ export declare interface ISenderConfig {
219
219
  * @since 3.0.6
220
220
  */
221
221
  disableSendBeaconSplit?: boolean;
222
+ /**
223
+ * (Optional) The specific error codes that will cause a retry of sending data to the backend.
224
+ * @since 3.1.1
225
+ */
226
+ retryCodes?: number[];
222
227
  }
223
228
 
224
229
  export declare class Sender extends BaseTelemetryPlugin implements IChannelControls {
@@ -340,4 +345,4 @@ declare interface XDomainRequest extends XMLHttpRequestEventTarget {
340
345
  open(method: string, url: string): void;
341
346
  }
342
347
 
343
- export { }
348
+ export { }