@microsoft/applicationinsights-channel-js 2.7.2-nightly.2111-09 → 2.7.2-nightly.2111-10

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 (37) hide show
  1. package/browser/applicationinsights-channel-js.integrity.json +9 -9
  2. package/browser/applicationinsights-channel-js.js +5 -5
  3. package/browser/applicationinsights-channel-js.js.map +1 -1
  4. package/browser/applicationinsights-channel-js.min.js +2 -2
  5. package/browser/applicationinsights-channel-js.min.js.map +1 -1
  6. package/dist/applicationinsights-channel-js.d.ts +1 -1
  7. package/dist/applicationinsights-channel-js.js +5 -5
  8. package/dist/applicationinsights-channel-js.js.map +1 -1
  9. package/dist/applicationinsights-channel-js.min.js +2 -2
  10. package/dist/applicationinsights-channel-js.min.js.map +1 -1
  11. package/dist/applicationinsights-channel-js.rollup.d.ts +1 -1
  12. package/dist-esm/EnvelopeCreator.js +3 -3
  13. package/dist-esm/EnvelopeCreator.js.map +1 -1
  14. package/dist-esm/Interfaces.js +1 -1
  15. package/dist-esm/Offline.js +1 -1
  16. package/dist-esm/SendBuffer.js +1 -1
  17. package/dist-esm/Sender.js +2 -2
  18. package/dist-esm/Sender.js.map +1 -1
  19. package/dist-esm/Serializer.js +1 -1
  20. package/dist-esm/TelemetryProcessors/Sample.js +1 -1
  21. package/dist-esm/TelemetryProcessors/SamplingScoreGenerators/HashCodeScoreGenerator.js +1 -1
  22. package/dist-esm/TelemetryProcessors/SamplingScoreGenerators/SamplingScoreGenerator.js +1 -1
  23. package/dist-esm/applicationinsights-channel-js.js +1 -1
  24. package/package.json +3 -3
  25. package/src/EnvelopeCreator.ts +1 -1
  26. package/Tests/Unit/src/Sample.tests.ts +0 -154
  27. package/Tests/Unit/src/Sender.tests.ts +0 -1578
  28. package/Tests/Unit/src/aichannel.tests.ts +0 -7
  29. package/Tests/UnitTests.html +0 -53
  30. package/Tests/tsconfig.json +0 -17
  31. package/api-extractor.json +0 -361
  32. package/applicationinsights-channel-js.build.error.log +0 -20
  33. package/applicationinsights-channel-js.build.log +0 -265
  34. package/microsoft-applicationinsights-channel-js-2.7.2-nightly.2111-09.tgz +0 -0
  35. package/rollup.config.js +0 -139
  36. package/temp/applicationinsights-channel-js.api.md +0 -62
  37. package/tslint.json +0 -8
@@ -1,265 +0,0 @@
1
- Unable to calculate incremental build state: Error: Cannot read property 'readFile' of undefined
2
- Error loading config file: D:\a\1\s\channels\applicationinsights-channel-js\config\rig.json
3
-
4
- Rush will proceed without incremental build, caching, and change detection.
5
-
6
- Invoking: npm run build
7
-
8
-
9
- > @microsoft/applicationinsights-channel-js@2.7.2-nightly.2111-09 build D:\a\1\s\channels\applicationinsights-channel-js
10
- > npm run build:esm && npm run build:browser && npm run sri && npm run dtsgen
11
-
12
-
13
- > @microsoft/applicationinsights-channel-js@2.7.2-nightly.2111-09 build:esm D:\a\1\s\channels\applicationinsights-channel-js
14
- > grunt aichannel
15
-
16
- (node:724) ExperimentalWarning: The fs.promises API is experimental
17
- Running "eslint-ts:aichannel-lint-fix" (eslint-ts) task
18
- grunt-eslint-typescript options: [object Object]{
19
- "format": "codeframe",
20
- "fix": true
21
- }
22
- >> The rootDir specified in your project file [./channels/applicationinsights-channel-js/tsconfig.json] is invalid as it assumes the current working directory.
23
- >> - [./channels/applicationinsights-channel-js/src] resolves to [D:\a\1\s\channels\applicationinsights-channel-js\channels\applicationinsights-channel-js\src]
24
- >> - Overridding to use: [D:\a\1\s\channels\applicationinsights-channel-js\src]
25
- >> -- Update or remove to fix this warning
26
- >> The declarationDir specified in your project file [./channels/applicationinsights-channel-js/tsconfig.json] is invalid as it assumes the current working directory.
27
- >> - [channels/applicationinsights-channel-js/types] resolves to [D:\a\1\s\channels\applicationinsights-channel-js\src\channels\applicationinsights-channel-js\types]
28
- >> - Overridding to use: [D:\a\1\s\channels\applicationinsights-channel-js\types]
29
- >> -- Update or remove to fix this warning
30
- Using tsconfig: ./channels/applicationinsights-channel-js/tsconfig.json
31
- Found eslint-plugin-security -- automatically adding, to avoid this specify a null or empty parser option in your grunt config.
32
- Module Path: D:/a/1/s/node_modules/@nevware21/grunt-eslint-ts
33
- Using ESLint from : D:\a\1\s\node_modules\eslint\lib\api.js via grunt-eslint-ts v0.2.2
34
- Using EsLint Options: [object Object]{
35
- "baseConfig": {
36
- "parserOptions": {
37
- "project": "./channels/applicationinsights-channel-js/tsconfig.json"
38
- },
39
- "plugins": [
40
- "@typescript-eslint",
41
- "security"
42
- ],
43
- "extends": [
44
- "eslint:recommended",
45
- "plugin:@typescript-eslint/recommended",
46
- "plugin:security/recommended"
47
- ],
48
- "parser": "@typescript-eslint/parser",
49
- "rules": {}
50
- },
51
- "fix": true
52
- }
53
- Linting 1 files...
54
- - ./channels/applicationinsights-channel-js/./src/**/*.ts
55
-
56
- 10 Linting Results
57
- No lint fixes identified...
58
- warning: 'EventHelper' is defined but never used (@typescript-eslint/no-unused-vars) at channels\applicationinsights-channel-js\src\Offline.ts:1:10:
59
- > 1 | import { EventHelper, getWindow, getDocument, getNavigator, isUndefined, isNullOrUndefined, attachEvent } from "@microsoft/applicationinsights-core-js";
60
- | ^
61
- 2 | import dynamicProto from "@microsoft/dynamicproto-js";
62
- 3 |
63
- 4 | /**
64
-
65
-
66
- warning: '_lastSend' is assigned a value but never used (@typescript-eslint/no-unused-vars) at channels\applicationinsights-channel-js\src\Sender.ts:450:29:
67
- 448 |
68
- 449 | // update lastSend time to enable throttling
69
- > 450 | _lastSend = +new Date;
70
- | ^
71
- 451 | } else {
72
- 452 | buffer.clear();
73
- 453 | }
74
-
75
-
76
- warning: Found non-literal argument to RegExp Constructor (security/detect-non-literal-regexp) at channels\applicationinsights-channel-js\src\Sender.ts:1026:32:
77
- 1024 | }
78
- 1025 | const UUID_Regex = "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$";
79
- > 1026 | const regexp = new RegExp(UUID_Regex);
80
- | ^
81
- 1027 | return regexp.test(config.instrumentationKey);
82
- 1028 | }
83
- 1029 |
84
-
85
-
86
- 3 warnings found.
87
-
88
- Running "ts:aichannel" (ts) task
89
- Module Path: D:/a/1/s/node_modules/@nevware21/grunt-ts-plugin
90
- Using tsc version: 4.4.4 via grunt-ts-plugin v0.4.3
91
- >> The rootDir specified in your project file [./channels/applicationinsights-channel-js/tsconfig.json] is invalid as it assumes the current working directory.
92
- >> - [./channels/applicationinsights-channel-js/src] resolves to [D:\a\1\s\channels\applicationinsights-channel-js\channels\applicationinsights-channel-js\src]
93
- >> - Overridding to use: [D:\a\1\s\channels\applicationinsights-channel-js\src]
94
- >> -- Update or remove to fix this warning
95
- >> The declarationDir specified in your project file [./channels/applicationinsights-channel-js/tsconfig.json] is invalid as it assumes the current working directory.
96
- >> - [channels/applicationinsights-channel-js/types] resolves to [D:\a\1\s\channels\applicationinsights-channel-js\src\channels\applicationinsights-channel-js\types]
97
- >> - Overridding to use: [D:\a\1\s\channels\applicationinsights-channel-js\types]
98
- >> -- Update or remove to fix this warning
99
- Ts-Plugin...
100
- rootDir from [cwd:D:\a\1\s]
101
- - TSConfig: D:\a\1\s\channels\applicationinsights-channel-js
102
- - Project : <assuming tsconfig location>
103
- - Actual : D:\a\1\s\channels\applicationinsights-channel-js\src
104
- Ts-Plugin Invoking: D:\a\1\s\node_modules\typescript\bin\tsc @tscommand-422d0286.tmp
105
- Contents...
106
- --declarationDir channels/applicationinsights-channel-js/types
107
- --rootDir channels/applicationinsights-channel-js/src
108
- --project ./channels/applicationinsights-channel-js/tsconfig.json
109
-
110
- TypeScript compiliation completed: 2.80s
111
-
112
- Running "eslint-ts:aichannel-lint" (eslint-ts) task
113
- grunt-eslint-typescript options: [object Object]{
114
- "format": "codeframe"
115
- }
116
- >> The rootDir specified in your project file [./channels/applicationinsights-channel-js/tsconfig.json] is invalid as it assumes the current working directory.
117
- >> - [./channels/applicationinsights-channel-js/src] resolves to [D:\a\1\s\channels\applicationinsights-channel-js\channels\applicationinsights-channel-js\src]
118
- >> - Overridding to use: [D:\a\1\s\channels\applicationinsights-channel-js\src]
119
- >> -- Update or remove to fix this warning
120
- >> The declarationDir specified in your project file [./channels/applicationinsights-channel-js/tsconfig.json] is invalid as it assumes the current working directory.
121
- >> - [channels/applicationinsights-channel-js/types] resolves to [D:\a\1\s\channels\applicationinsights-channel-js\src\channels\applicationinsights-channel-js\types]
122
- >> - Overridding to use: [D:\a\1\s\channels\applicationinsights-channel-js\types]
123
- >> -- Update or remove to fix this warning
124
- Using tsconfig: ./channels/applicationinsights-channel-js/tsconfig.json
125
- Found eslint-plugin-security -- automatically adding, to avoid this specify a null or empty parser option in your grunt config.
126
- Module Path: D:/a/1/s/node_modules/@nevware21/grunt-eslint-ts
127
- Using ESLint from : D:\a\1\s\node_modules\eslint\lib\api.js via grunt-eslint-ts v0.2.2
128
- Using EsLint Options: [object Object]{
129
- "baseConfig": {
130
- "parserOptions": {
131
- "project": "./channels/applicationinsights-channel-js/tsconfig.json"
132
- },
133
- "plugins": [
134
- "@typescript-eslint",
135
- "security"
136
- ],
137
- "extends": [
138
- "eslint:recommended",
139
- "plugin:@typescript-eslint/recommended",
140
- "plugin:security/recommended"
141
- ],
142
- "parser": "@typescript-eslint/parser",
143
- "rules": {}
144
- }
145
- }
146
- Linting 1 files...
147
- - ./channels/applicationinsights-channel-js/./src/**/*.ts
148
-
149
- 10 Linting Results
150
- No lint fixes identified...
151
- warning: 'EventHelper' is defined but never used (@typescript-eslint/no-unused-vars) at channels\applicationinsights-channel-js\src\Offline.ts:1:10:
152
- > 1 | import { EventHelper, getWindow, getDocument, getNavigator, isUndefined, isNullOrUndefined, attachEvent } from "@microsoft/applicationinsights-core-js";
153
- | ^
154
- 2 | import dynamicProto from "@microsoft/dynamicproto-js";
155
- 3 |
156
- 4 | /**
157
-
158
-
159
- warning: '_lastSend' is assigned a value but never used (@typescript-eslint/no-unused-vars) at channels\applicationinsights-channel-js\src\Sender.ts:450:29:
160
- 448 |
161
- 449 | // update lastSend time to enable throttling
162
- > 450 | _lastSend = +new Date;
163
- | ^
164
- 451 | } else {
165
- 452 | buffer.clear();
166
- 453 | }
167
-
168
-
169
- warning: Found non-literal argument to RegExp Constructor (security/detect-non-literal-regexp) at channels\applicationinsights-channel-js\src\Sender.ts:1026:32:
170
- 1024 | }
171
- 1025 | const UUID_Regex = "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$";
172
- > 1026 | const regexp = new RegExp(UUID_Regex);
173
- | ^
174
- 1027 | return regexp.test(config.instrumentationKey);
175
- 1028 | }
176
- 1029 |
177
-
178
-
179
- 3 warnings found.
180
-
181
- Done.
182
-
183
- > @microsoft/applicationinsights-channel-js@2.7.2-nightly.2111-09 build:browser D:\a\1\s\channels\applicationinsights-channel-js
184
- > rollup -c
185
-
186
- Loading - ./dist-esm/applicationinsights-channel-js.js
187
- Rewriting Map file - ./dist-esm/applicationinsights-channel-js.js.map
188
- Loading - ./dist-esm/EnvelopeCreator.js
189
- Replacing [import { __assign } from "tslib";] with [import { __assignFn as __assign } from "@microsoft/applicationinsights-shims";]
190
- Rewriting Map file - ./dist-esm/EnvelopeCreator.js.map
191
- Loading - ./dist-esm/Interfaces.js
192
- Rewriting Map file - ./dist-esm/Interfaces.js.map
193
- Loading - ./dist-esm/Offline.js
194
- Prototypes removed...
195
- Line Changed: OfflineListener.prototype.isOnline = function () {
196
- Detected Removed lines 66 to 73
197
- Rewriting Map file - ./dist-esm/Offline.js.map
198
- Loading - ./dist-esm/SendBuffer.js
199
- Prototypes removed...
200
- Line Changed: BaseSendBuffer.prototype.enqueue = function (payload) {
201
- Detected Removed lines 59 to 80
202
- Line Changed: ArraySendBuffer.prototype.markAsSent = function (payload) {
203
- Detected Removed lines 100 to 105
204
- Line Changed: SessionStorageSendBuffer.prototype.enqueue = function (payload) {
205
- Detected Removed lines 211 to 222
206
- Replacing [import { __extends } from "tslib";] with [import { __extendsFn as __extends } from "@microsoft/applicationinsights-shims";]
207
- Rewriting Map file - ./dist-esm/SendBuffer.js.map
208
- Loading - ./dist-esm/Sender.js
209
- Prototypes removed...
210
- Line Changed: /**
211
- Detected Removed lines 838 to 923
212
- Replacing [import { __assign, __extends } from "tslib";] with [import { __assignFn as __assign, __extendsFn as __extends } from "@microsoft/applicationinsights-shims";]
213
- Rewriting Map file - ./dist-esm/Sender.js.map
214
- Loading - ./dist-esm/Serializer.js
215
- Prototypes removed...
216
- Line Changed: /**
217
- Detected Removed lines 157 to 163
218
- Rewriting Map file - ./dist-esm/Serializer.js.map
219
- Loading - ./dist-esm/TelemetryProcessors/Sample.js
220
- Rewriting Map file - ./dist-esm/TelemetryProcessors/Sample.js.map
221
- Loading - ./dist-esm/TelemetryProcessors/SamplingScoreGenerators/HashCodeScoreGenerator.js
222
- Rewriting Map file - ./dist-esm/TelemetryProcessors/SamplingScoreGenerators/HashCodeScoreGenerator.js.map
223
- Loading - ./dist-esm/TelemetryProcessors/SamplingScoreGenerators/SamplingScoreGenerator.js
224
- Rewriting Map file - ./dist-esm/TelemetryProcessors/SamplingScoreGenerators/SamplingScoreGenerator.js.map
225
-
226
- dist-esm/applicationinsights-channel-js.js → dist/applicationinsights-channel-js.min.js...
227
- created dist/applicationinsights-channel-js.min.js in 4.9s
228
-
229
- dist-esm/applicationinsights-channel-js.js → dist/applicationinsights-channel-js.js...
230
- created dist/applicationinsights-channel-js.js in 1.1s
231
-
232
- dist-esm/applicationinsights-channel-js.js → browser/applicationinsights-channel-js.min.js...
233
- created browser/applicationinsights-channel-js.min.js in 4s
234
-
235
- dist-esm/applicationinsights-channel-js.js → browser/applicationinsights-channel-js.js...
236
- created browser/applicationinsights-channel-js.js in 1.2s
237
-
238
- > @microsoft/applicationinsights-channel-js@2.7.2-nightly.2111-09 sri D:\a\1\s\channels\applicationinsights-channel-js
239
- > node ../../tools/subResourceIntegrity/generateIntegrityFile.js
240
-
241
- Loading - ./browser/applicationinsights-channel-js.js (Extension) => (["./browser/applicationinsights-channel-js.js","./browser/applicationinsights-channel-js","2.7.2-nightly.2111-09","js"])
242
- Loading - ./browser/applicationinsights-channel-js.min.js (Extension) => (["./browser/applicationinsights-channel-js.min.js","./browser/applicationinsights-channel-js","2.7.2-nightly.2111-09","min.js"])
243
- Writing - ./browser/applicationinsights-channel-js.integrity.json
244
-
245
- > @microsoft/applicationinsights-channel-js@2.7.2-nightly.2111-09 dtsgen D:\a\1\s\channels\applicationinsights-channel-js
246
- > api-extractor run --local && node ../../scripts/dtsgen.js "Microsoft Application Insights JavaScript SDK Channel"
247
-
248
-
249
- api-extractor 7.18.19 - https://api-extractor.com/
250
-
251
- Using configuration from ./api-extractor.json
252
- Analysis will use the bundled TypeScript version 4.4.4
253
- Warning: The API report file was missing, so a new file was created. Please add this file to Git:
254
- D:\a\1\s\channels\applicationinsights-channel-js\dist\applicationinsights-channel-js.api.md
255
- Warning: types/Interfaces.d.ts:33:59 - (tsdoc-malformed-html-name) Invalid HTML element: A space is not allowed here
256
- Warning: types/Sender.d.ts:59:21 - (tsdoc-param-tag-with-invalid-type) The @param block should not include a JSDoc-style '{type}'
257
- Warning: types/Sender.d.ts:60:28 - (tsdoc-param-tag-with-invalid-type) The @param block should not include a JSDoc-style '{type}'
258
- Warning: D:/a/1/s/shared/AppInsightsCommon/types/Interfaces/IConfig.d.ts:6:4 - (tsdoc-undefined-tag) The TSDoc tag "@export" is not defined in this configuration
259
- Warning: D:/a/1/s/shared/AppInsightsCommon/types/Interfaces/IConfig.d.ts:7:4 - (tsdoc-undefined-tag) The TSDoc tag "@interface" is not defined in this configuration
260
-
261
- API Extractor completed successfully
262
- Using Package: D:\a\1\s\channels\applicationinsights-channel-js\package.json, current path cwd D:\a\1\s\channels\applicationinsights-channel-js
263
- Transforming: D:\a\1\s\channels\applicationinsights-channel-js\dist\applicationinsights-channel-js.d.ts
264
- File...
265
- Lines: 234
package/rollup.config.js DELETED
@@ -1,139 +0,0 @@
1
- import nodeResolve from "@rollup/plugin-node-resolve";
2
- import { uglify } from "@microsoft/applicationinsights-rollup-plugin-uglify3-js";
3
- import replace from "@rollup/plugin-replace";
4
- import cleanup from "rollup-plugin-cleanup";
5
- import dynamicRemove from "@microsoft/dynamicproto-js/tools/rollup/node/removedynamic";
6
- import { es3Poly, es3Check, importCheck } from "@microsoft/applicationinsights-rollup-es3";
7
- import { updateDistEsmFiles } from "../../tools/updateDistEsm/updateDistEsm";
8
-
9
- const version = require("./package.json").version;
10
- const outputName = "applicationinsights-channel-js";
11
- const banner = [
12
- "/*!",
13
- ` * Application Insights JavaScript SDK - Channel, ${version}`,
14
- " * Copyright (c) Microsoft and contributors. All rights reserved.",
15
- " */"
16
- ].join("\n");
17
-
18
- const replaceValues = {
19
- "// Copyright (c) Microsoft Corporation. All rights reserved.": "",
20
- "// Licensed under the MIT License.": ""
21
- };
22
-
23
- function doCleanup() {
24
- return cleanup({
25
- comments: [
26
- 'some',
27
- /^.\s*@DynamicProtoStub/i,
28
- /^\*\*\s*@class\s*$/
29
- ]
30
- })
31
- }
32
-
33
- const browserRollupConfigFactory = isProduction => {
34
- const browserRollupConfig = {
35
- input: "dist-esm/applicationinsights-channel-js.js",
36
- output: {
37
- file: "browser/applicationinsights-channel-js.js",
38
- banner: banner,
39
- format: "umd",
40
- name: "Microsoft.ApplicationInsights",
41
- extend: true,
42
- freeze: false,
43
- sourcemap: true
44
- },
45
- plugins: [
46
- dynamicRemove(),
47
- replace({
48
- preventAssignment: true,
49
- delimiters: ["", ""],
50
- values: replaceValues
51
- }),
52
- importCheck({ exclude: [ "applicationinsights-channel-js" ] }),
53
- nodeResolve({
54
- browser: false,
55
- preferBuiltins: false
56
- }),
57
- doCleanup(),
58
- es3Poly(),
59
- es3Check()
60
- ]
61
- };
62
-
63
- if (isProduction) {
64
- browserRollupConfig.output.file = "browser/applicationinsights-channel-js.min.js";
65
- browserRollupConfig.plugins.push(
66
- uglify({
67
- ie8: true,
68
- toplevel: true,
69
- compress: {
70
- passes:3,
71
- unsafe: true
72
- },
73
- output: {
74
- preamble: banner,
75
- webkit:true
76
- }
77
- })
78
- );
79
- }
80
-
81
- return browserRollupConfig;
82
- };
83
-
84
- const nodeUmdRollupConfigFactory = (isProduction) => {
85
- const nodeRollupConfig = {
86
- input: `dist-esm/${outputName}.js`,
87
- output: {
88
- file: `dist/${outputName}.js`,
89
- banner: banner,
90
- format: "umd",
91
- name: "Microsoft.ApplicationInsights",
92
- extend: true,
93
- freeze: false,
94
- sourcemap: true
95
- },
96
- plugins: [
97
- dynamicRemove(),
98
- replace({
99
- preventAssignment: true,
100
- delimiters: ["", ""],
101
- values: replaceValues
102
- }),
103
- importCheck({ exclude: [ "applicationinsights-channel-js" ] }),
104
- nodeResolve(),
105
- doCleanup(),
106
- es3Poly(),
107
- es3Check()
108
- ]
109
- };
110
-
111
- if (isProduction) {
112
- nodeRollupConfig.output.file = `dist/${outputName}.min.js`;
113
- nodeRollupConfig.plugins.push(
114
- uglify({
115
- ie8: true,
116
- toplevel: true,
117
- compress: {
118
- passes:3,
119
- unsafe: true
120
- },
121
- output: {
122
- preamble: banner,
123
- webkit:true
124
- }
125
- })
126
- );
127
- }
128
-
129
- return nodeRollupConfig;
130
- };
131
-
132
- updateDistEsmFiles(replaceValues, banner);
133
-
134
- export default [
135
- nodeUmdRollupConfigFactory(true),
136
- nodeUmdRollupConfigFactory(false),
137
- browserRollupConfigFactory(true),
138
- browserRollupConfigFactory(false)
139
- ];
@@ -1,62 +0,0 @@
1
- ## API Report File for "@microsoft/applicationinsights-channel-js"
2
-
3
- > Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
4
-
5
- ```ts
6
-
7
- import { BaseTelemetryPlugin } from '@microsoft/applicationinsights-core-js';
8
- import { IAppInsightsCore } from '@microsoft/applicationinsights-core-js';
9
- import { IChannelControlsAI } from '@microsoft/applicationinsights-common';
10
- import { IConfig } from '@microsoft/applicationinsights-common';
11
- import { IConfiguration } from '@microsoft/applicationinsights-core-js';
12
- import { IDiagnosticLogger } from '@microsoft/applicationinsights-core-js';
13
- import { IEnvelope } from '@microsoft/applicationinsights-common';
14
- import { IPlugin } from '@microsoft/applicationinsights-core-js';
15
- import { IProcessTelemetryContext } from '@microsoft/applicationinsights-core-js';
16
- import { ISample } from '@microsoft/applicationinsights-common';
17
- import { ITelemetryItem } from '@microsoft/applicationinsights-core-js';
18
- import { ITelemetryPluginChain } from '@microsoft/applicationinsights-core-js';
19
- import { SendRequestReason } from '@microsoft/applicationinsights-core-js';
20
-
21
- // @public (undocumented)
22
- export class Sender extends BaseTelemetryPlugin implements IChannelControlsAI {
23
- constructor();
24
- addHeader(name: string, value: string): void;
25
- _appId: string;
26
- // Warning: (ae-forgotten-export) The symbol "ISendBuffer" needs to be exported by the entry point applicationinsights-channel-js.d.ts
27
- _buffer: ISendBuffer;
28
- // (undocumented)
29
- static constructEnvelope(orig: ITelemetryItem, iKey: string, logger: IDiagnosticLogger, convertUndefined?: any): IEnvelope;
30
- flush(): void;
31
- // (undocumented)
32
- readonly identifier: string;
33
- // (undocumented)
34
- initialize(config: IConfiguration & IConfig, core: IAppInsightsCore, extensions: IPlugin[], pluginChain?: ITelemetryPluginChain): void;
35
- _onError(payload: string[], message: string, event?: ErrorEvent): void;
36
- // Warning: (ae-forgotten-export) The symbol "IBackendResponse" needs to be exported by the entry point applicationinsights-channel-js.d.ts
37
- _onPartialSuccess(payload: string[], results: IBackendResponse): void;
38
- _onSuccess(payload: string[], countOfItemsInPayload: number): void;
39
- onunloadFlush(): void;
40
- pause(): void;
41
- // (undocumented)
42
- readonly priority: number;
43
- // (undocumented)
44
- processTelemetry(telemetryItem: ITelemetryItem, itemCtx?: IProcessTelemetryContext): void;
45
- resume(): void;
46
- // (undocumented)
47
- protected _sample: ISample;
48
- // Warning: (ae-forgotten-export) The symbol "SenderFunction" needs to be exported by the entry point applicationinsights-channel-js.d.ts
49
- _sender: SenderFunction;
50
- // Warning: (ae-forgotten-export) The symbol "ISenderConfig" needs to be exported by the entry point applicationinsights-channel-js.d.ts
51
- readonly _senderConfig: ISenderConfig;
52
- // (undocumented)
53
- teardown(): void;
54
- triggerSend(async?: boolean, forcedSender?: SenderFunction, sendReason?: SendRequestReason): void;
55
- // Warning: (ae-forgotten-export) The symbol "XDomainRequest" needs to be exported by the entry point applicationinsights-channel-js.d.ts
56
- _xdrOnLoad(xdr: XDomainRequest, payload: string[]): void;
57
- _xhrReadyStateChange(xhr: XMLHttpRequest, payload: string[], countOfItemsInPayload: number): void;
58
- }
59
-
60
- // (No @packageDocumentation comment for this package)
61
-
62
- ```
package/tslint.json DELETED
@@ -1,8 +0,0 @@
1
- {
2
- "extends": [
3
- "../../tslint-base.json"
4
- ],
5
- "rules": {
6
- "prefer-conditional-expression": false
7
- }
8
- }