@microsoft/applicationinsights-dependencies-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 (30) hide show
  1. package/browser/applicationinsights-dependencies-js.integrity.json +9 -9
  2. package/browser/applicationinsights-dependencies-js.js +5 -5
  3. package/browser/applicationinsights-dependencies-js.js.map +1 -1
  4. package/browser/applicationinsights-dependencies-js.min.js +2 -2
  5. package/browser/applicationinsights-dependencies-js.min.js.map +1 -1
  6. package/dist/applicationinsights-dependencies-js.d.ts +1 -1
  7. package/dist/applicationinsights-dependencies-js.js +5 -5
  8. package/dist/applicationinsights-dependencies-js.js.map +1 -1
  9. package/dist/applicationinsights-dependencies-js.min.js +2 -2
  10. package/dist/applicationinsights-dependencies-js.min.js.map +1 -1
  11. package/dist/applicationinsights-dependencies-js.rollup.d.ts +1 -1
  12. package/dist-esm/TraceParent.js +2 -2
  13. package/dist-esm/TraceParent.js.map +1 -1
  14. package/dist-esm/ajax.js +3 -3
  15. package/dist-esm/ajax.js.map +1 -1
  16. package/dist-esm/ajaxRecord.js +1 -1
  17. package/dist-esm/ajaxUtils.js +1 -1
  18. package/dist-esm/applicationinsights-dependencies-js.js +1 -1
  19. package/package.json +3 -3
  20. package/Tests/Unit/src/ajax.tests.ts +0 -2708
  21. package/Tests/Unit/src/dependencies.tests.ts +0 -7
  22. package/Tests/UnitTests.html +0 -52
  23. package/Tests/tsconfig.json +0 -13
  24. package/api-extractor.json +0 -361
  25. package/applicationinsights-dependencies-js.build.error.log +0 -20
  26. package/applicationinsights-dependencies-js.build.log +0 -249
  27. package/microsoft-applicationinsights-dependencies-js-2.7.2-nightly.2111-09.tgz +0 -0
  28. package/rollup.config.js +0 -139
  29. package/temp/applicationinsights-dependencies-js.api.md +0 -136
  30. package/tslint.json +0 -8
@@ -1,249 +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\extensions\applicationinsights-dependencies-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-dependencies-js@2.7.2-nightly.2111-09 build D:\a\1\s\extensions\applicationinsights-dependencies-js
10
- > npm run build:esm && npm run build:browser && npm run sri && npm run dtsgen
11
-
12
-
13
- > @microsoft/applicationinsights-dependencies-js@2.7.2-nightly.2111-09 build:esm D:\a\1\s\extensions\applicationinsights-dependencies-js
14
- > grunt deps
15
-
16
- (node:5156) ExperimentalWarning: The fs.promises API is experimental
17
- Running "eslint-ts:deps-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 [./extensions/applicationinsights-dependencies-js/tsconfig.json] is invalid as it assumes the current working directory.
23
- >> - [extensions/applicationinsights-dependencies-js/src] resolves to [D:\a\1\s\extensions\applicationinsights-dependencies-js\extensions\applicationinsights-dependencies-js\src]
24
- >> - Overridding to use: [D:\a\1\s\extensions\applicationinsights-dependencies-js\src]
25
- >> -- Update or remove to fix this warning
26
- >> The declarationDir specified in your project file [./extensions/applicationinsights-dependencies-js/tsconfig.json] is invalid as it assumes the current working directory.
27
- >> - [extensions/applicationinsights-dependencies-js/types] resolves to [D:\a\1\s\extensions\applicationinsights-dependencies-js\src\extensions\applicationinsights-dependencies-js\types]
28
- >> - Overridding to use: [D:\a\1\s\extensions\applicationinsights-dependencies-js\types]
29
- >> -- Update or remove to fix this warning
30
- Using tsconfig: ./extensions/applicationinsights-dependencies-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": "./extensions/applicationinsights-dependencies-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
- - ./extensions/applicationinsights-dependencies-js/./src/**/*.ts
55
-
56
- 5 Linting Results
57
- No lint fixes identified...
58
- warning: 'strUndefined' is defined but never used (@typescript-eslint/no-unused-vars) at extensions\applicationinsights-dependencies-js\src\ajax.ts:12:29:
59
- 10 | isNullOrUndefined, arrForEach, isString, strTrim, isFunction, LoggingSeverity, _InternalMessageId,
60
- 11 | IAppInsightsCore, BaseTelemetryPlugin, ITelemetryPluginChain, IConfiguration, IPlugin, ITelemetryItem, IProcessTelemetryContext,
61
- > 12 | getLocation, getGlobal, strUndefined, strPrototype, IInstrumentCallDetails, InstrumentFunc, InstrumentProto, getPerformance,
62
- | ^
63
- 13 | IInstrumentHooksCallbacks, IInstrumentHook, objForEachKey, generateW3CId, getIEVersion, dumpObj,objKeys, ICustomProperties, isXhrSupported, attachEvent
64
- 14 | } from "@microsoft/applicationinsights-core-js";
65
- 15 | import { ajaxRecord, IAjaxRecordResponse } from "./ajaxRecord";
66
-
67
-
68
- warning: 'objKeys' is defined but never used (@typescript-eslint/no-unused-vars) at extensions\applicationinsights-dependencies-js\src\ajax.ts:13:101:
69
- 11 | IAppInsightsCore, BaseTelemetryPlugin, ITelemetryPluginChain, IConfiguration, IPlugin, ITelemetryItem, IProcessTelemetryContext,
70
- 12 | getLocation, getGlobal, strUndefined, strPrototype, IInstrumentCallDetails, InstrumentFunc, InstrumentProto, getPerformance,
71
- > 13 | IInstrumentHooksCallbacks, IInstrumentHook, objForEachKey, generateW3CId, getIEVersion, dumpObj,objKeys, ICustomProperties, isXhrSupported, attachEvent
72
- | ^
73
- 14 | } from "@microsoft/applicationinsights-core-js";
74
- 15 | import { ajaxRecord, IAjaxRecordResponse } from "./ajaxRecord";
75
- 16 | import { Traceparent } from "./TraceParent";
76
-
77
-
78
- warning: Found non-literal argument to RegExp Constructor (security/detect-non-literal-regexp) at extensions\applicationinsights-dependencies-js\src\ajax.ts:570:36:
79
- 568 | let theRegex = regex;
80
- 569 | if (isString(regex)) {
81
- > 570 | theRegex = new RegExp(regex);
82
- | ^
83
- 571 | }
84
- 572 |
85
- 573 | if (!isDisabled) {
86
-
87
-
88
- 3 warnings found.
89
-
90
- Running "ts:deps" (ts) task
91
- Module Path: D:/a/1/s/node_modules/@nevware21/grunt-ts-plugin
92
- Using tsc version: 4.4.4 via grunt-ts-plugin v0.4.3
93
- >> The rootDir specified in your project file [./extensions/applicationinsights-dependencies-js/tsconfig.json] is invalid as it assumes the current working directory.
94
- >> - [extensions/applicationinsights-dependencies-js/src] resolves to [D:\a\1\s\extensions\applicationinsights-dependencies-js\extensions\applicationinsights-dependencies-js\src]
95
- >> - Overridding to use: [D:\a\1\s\extensions\applicationinsights-dependencies-js\src]
96
- >> -- Update or remove to fix this warning
97
- >> The declarationDir specified in your project file [./extensions/applicationinsights-dependencies-js/tsconfig.json] is invalid as it assumes the current working directory.
98
- >> - [extensions/applicationinsights-dependencies-js/types] resolves to [D:\a\1\s\extensions\applicationinsights-dependencies-js\src\extensions\applicationinsights-dependencies-js\types]
99
- >> - Overridding to use: [D:\a\1\s\extensions\applicationinsights-dependencies-js\types]
100
- >> -- Update or remove to fix this warning
101
- Ts-Plugin...
102
- rootDir from [cwd:D:\a\1\s]
103
- - TSConfig: D:\a\1\s\extensions\applicationinsights-dependencies-js
104
- - Project : <assuming tsconfig location>
105
- - Actual : D:\a\1\s\extensions\applicationinsights-dependencies-js\src
106
- Ts-Plugin Invoking: D:\a\1\s\node_modules\typescript\bin\tsc @tscommand-4f98fa7d.tmp
107
- Contents...
108
- --declarationDir extensions/applicationinsights-dependencies-js/types
109
- --rootDir extensions/applicationinsights-dependencies-js/src
110
- --project ./extensions/applicationinsights-dependencies-js/tsconfig.json
111
-
112
- TypeScript compiliation completed: 2.51s
113
-
114
- Running "eslint-ts:deps-lint" (eslint-ts) task
115
- grunt-eslint-typescript options: [object Object]{
116
- "format": "codeframe"
117
- }
118
- >> The rootDir specified in your project file [./extensions/applicationinsights-dependencies-js/tsconfig.json] is invalid as it assumes the current working directory.
119
- >> - [extensions/applicationinsights-dependencies-js/src] resolves to [D:\a\1\s\extensions\applicationinsights-dependencies-js\extensions\applicationinsights-dependencies-js\src]
120
- >> - Overridding to use: [D:\a\1\s\extensions\applicationinsights-dependencies-js\src]
121
- >> -- Update or remove to fix this warning
122
- >> The declarationDir specified in your project file [./extensions/applicationinsights-dependencies-js/tsconfig.json] is invalid as it assumes the current working directory.
123
- >> - [extensions/applicationinsights-dependencies-js/types] resolves to [D:\a\1\s\extensions\applicationinsights-dependencies-js\src\extensions\applicationinsights-dependencies-js\types]
124
- >> - Overridding to use: [D:\a\1\s\extensions\applicationinsights-dependencies-js\types]
125
- >> -- Update or remove to fix this warning
126
- Using tsconfig: ./extensions/applicationinsights-dependencies-js/tsconfig.json
127
- Found eslint-plugin-security -- automatically adding, to avoid this specify a null or empty parser option in your grunt config.
128
- Module Path: D:/a/1/s/node_modules/@nevware21/grunt-eslint-ts
129
- Using ESLint from : D:\a\1\s\node_modules\eslint\lib\api.js via grunt-eslint-ts v0.2.2
130
- Using EsLint Options: [object Object]{
131
- "baseConfig": {
132
- "parserOptions": {
133
- "project": "./extensions/applicationinsights-dependencies-js/tsconfig.json"
134
- },
135
- "plugins": [
136
- "@typescript-eslint",
137
- "security"
138
- ],
139
- "extends": [
140
- "eslint:recommended",
141
- "plugin:@typescript-eslint/recommended",
142
- "plugin:security/recommended"
143
- ],
144
- "parser": "@typescript-eslint/parser",
145
- "rules": {}
146
- }
147
- }
148
- Linting 1 files...
149
- - ./extensions/applicationinsights-dependencies-js/./src/**/*.ts
150
-
151
- 5 Linting Results
152
- No lint fixes identified...
153
- warning: 'strUndefined' is defined but never used (@typescript-eslint/no-unused-vars) at extensions\applicationinsights-dependencies-js\src\ajax.ts:12:29:
154
- 10 | isNullOrUndefined, arrForEach, isString, strTrim, isFunction, LoggingSeverity, _InternalMessageId,
155
- 11 | IAppInsightsCore, BaseTelemetryPlugin, ITelemetryPluginChain, IConfiguration, IPlugin, ITelemetryItem, IProcessTelemetryContext,
156
- > 12 | getLocation, getGlobal, strUndefined, strPrototype, IInstrumentCallDetails, InstrumentFunc, InstrumentProto, getPerformance,
157
- | ^
158
- 13 | IInstrumentHooksCallbacks, IInstrumentHook, objForEachKey, generateW3CId, getIEVersion, dumpObj,objKeys, ICustomProperties, isXhrSupported, attachEvent
159
- 14 | } from "@microsoft/applicationinsights-core-js";
160
- 15 | import { ajaxRecord, IAjaxRecordResponse } from "./ajaxRecord";
161
-
162
-
163
- warning: 'objKeys' is defined but never used (@typescript-eslint/no-unused-vars) at extensions\applicationinsights-dependencies-js\src\ajax.ts:13:101:
164
- 11 | IAppInsightsCore, BaseTelemetryPlugin, ITelemetryPluginChain, IConfiguration, IPlugin, ITelemetryItem, IProcessTelemetryContext,
165
- 12 | getLocation, getGlobal, strUndefined, strPrototype, IInstrumentCallDetails, InstrumentFunc, InstrumentProto, getPerformance,
166
- > 13 | IInstrumentHooksCallbacks, IInstrumentHook, objForEachKey, generateW3CId, getIEVersion, dumpObj,objKeys, ICustomProperties, isXhrSupported, attachEvent
167
- | ^
168
- 14 | } from "@microsoft/applicationinsights-core-js";
169
- 15 | import { ajaxRecord, IAjaxRecordResponse } from "./ajaxRecord";
170
- 16 | import { Traceparent } from "./TraceParent";
171
-
172
-
173
- warning: Found non-literal argument to RegExp Constructor (security/detect-non-literal-regexp) at extensions\applicationinsights-dependencies-js\src\ajax.ts:570:36:
174
- 568 | let theRegex = regex;
175
- 569 | if (isString(regex)) {
176
- > 570 | theRegex = new RegExp(regex);
177
- | ^
178
- 571 | }
179
- 572 |
180
- 573 | if (!isDisabled) {
181
-
182
-
183
- 3 warnings found.
184
-
185
- Done.
186
-
187
- > @microsoft/applicationinsights-dependencies-js@2.7.2-nightly.2111-09 build:browser D:\a\1\s\extensions\applicationinsights-dependencies-js
188
- > rollup -c
189
-
190
- Loading - ./dist-esm/ajax.js
191
- Prototypes removed...
192
- Line Changed: AjaxMonitor.prototype.initialize = function (config, core, extensions, pluginChain) {
193
- Detected Removed lines 856 to 861
194
- Line Changed: /**
195
- Detected Removed lines 865 to 883
196
- Replacing [import { __assign, __extends } from "tslib";] with [import { __assignFn as __assign, __extendsFn as __extends } from "@microsoft/applicationinsights-shims";]
197
- Rewriting Map file - ./dist-esm/ajax.js.map
198
- Loading - ./dist-esm/ajaxRecord.js
199
- Prototypes removed...
200
- Line Changed: ajaxRecord.prototype.getAbsoluteUrl = function () {
201
- Detected Removed lines 254 to 265
202
- Rewriting Map file - ./dist-esm/ajaxRecord.js.map
203
- Loading - ./dist-esm/ajaxUtils.js
204
- Rewriting Map file - ./dist-esm/ajaxUtils.js.map
205
- Loading - ./dist-esm/applicationinsights-dependencies-js.js
206
- Rewriting Map file - ./dist-esm/applicationinsights-dependencies-js.js.map
207
- Loading - ./dist-esm/TraceParent.js
208
- Rewriting Map file - ./dist-esm/TraceParent.js.map
209
-
210
- dist-esm/applicationinsights-dependencies-js.js → dist/applicationinsights-dependencies-js.min.js...
211
- created dist/applicationinsights-dependencies-js.min.js in 4.2s
212
-
213
- dist-esm/applicationinsights-dependencies-js.js → dist/applicationinsights-dependencies-js.js...
214
- created dist/applicationinsights-dependencies-js.js in 1.1s
215
-
216
- dist-esm/applicationinsights-dependencies-js.js → browser/applicationinsights-dependencies-js.min.js...
217
- created browser/applicationinsights-dependencies-js.min.js in 4s
218
-
219
- dist-esm/applicationinsights-dependencies-js.js → browser/applicationinsights-dependencies-js.js...
220
- created browser/applicationinsights-dependencies-js.js in 928ms
221
-
222
- > @microsoft/applicationinsights-dependencies-js@2.7.2-nightly.2111-09 sri D:\a\1\s\extensions\applicationinsights-dependencies-js
223
- > node ../../tools/subResourceIntegrity/generateIntegrityFile.js
224
-
225
- Loading - ./browser/applicationinsights-dependencies-js.js (Extension) => (["./browser/applicationinsights-dependencies-js.js","./browser/applicationinsights-dependencies-js","2.7.2-nightly.2111-09","js"])
226
- Loading - ./browser/applicationinsights-dependencies-js.min.js (Extension) => (["./browser/applicationinsights-dependencies-js.min.js","./browser/applicationinsights-dependencies-js","2.7.2-nightly.2111-09","min.js"])
227
- Writing - ./browser/applicationinsights-dependencies-js.integrity.json
228
-
229
- > @microsoft/applicationinsights-dependencies-js@2.7.2-nightly.2111-09 dtsgen D:\a\1\s\extensions\applicationinsights-dependencies-js
230
- > api-extractor run --local && node ../../scripts/dtsgen.js "Microsoft Application Insights XHR dependencies plugin"
231
-
232
-
233
- api-extractor 7.18.19 - https://api-extractor.com/
234
-
235
- Using configuration from ./api-extractor.json
236
- Analysis will use the bundled TypeScript version 4.4.4
237
- Warning: The API report file was missing, so a new file was created. Please add this file to Git:
238
- D:\a\1\s\extensions\applicationinsights-dependencies-js\dist\applicationinsights-dependencies-js.api.md
239
- Warning: types/ajax.d.ts:10:8 - (tsdoc-param-tag-missing-hyphen) The @param block should be followed by a parameter name and then a hyphen
240
- Warning: types/ajax.d.ts:29:8 - (tsdoc-param-tag-missing-hyphen) The @param block should be followed by a parameter name and then a hyphen
241
- Warning: types/ajax.d.ts:39:8 - (tsdoc-param-tag-missing-hyphen) The @param block should be followed by a parameter name and then a hyphen
242
- 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
243
- 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
244
-
245
- API Extractor completed successfully
246
- Using Package: D:\a\1\s\extensions\applicationinsights-dependencies-js\package.json, current path cwd D:\a\1\s\extensions\applicationinsights-dependencies-js
247
- Transforming: D:\a\1\s\extensions\applicationinsights-dependencies-js\dist\applicationinsights-dependencies-js.d.ts
248
- File...
249
- Lines: 112
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-dependencies-js";
11
- const banner = [
12
- "/*!",
13
- ` * Application Insights JavaScript SDK - Dependencies Plugin, ${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/${outputName}.js`,
36
- output: {
37
- file: `browser/${outputName}.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-dependencies-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/${outputName}.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-dependencies-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,136 +0,0 @@
1
- ## API Report File for "@microsoft/applicationinsights-dependencies-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 { IConfig } from '@microsoft/applicationinsights-common';
10
- import { IConfiguration } from '@microsoft/applicationinsights-core-js';
11
- import { ICorrelationConfig } from '@microsoft/applicationinsights-common';
12
- import { IDependencyTelemetry } from '@microsoft/applicationinsights-common';
13
- import { IDiagnosticLogger } from '@microsoft/applicationinsights-core-js';
14
- import { IPlugin } from '@microsoft/applicationinsights-core-js';
15
- import { IProcessTelemetryContext } from '@microsoft/applicationinsights-core-js';
16
- import { ITelemetryItem } from '@microsoft/applicationinsights-core-js';
17
- import { ITelemetryPluginChain } from '@microsoft/applicationinsights-core-js';
18
-
19
- // @public (undocumented)
20
- export class AjaxPlugin extends BaseTelemetryPlugin implements IDependenciesPlugin, IInstrumentationRequirements {
21
- constructor();
22
- // (undocumented)
23
- static getDefaultConfig(): ICorrelationConfig;
24
- // (undocumented)
25
- static getEmptyConfig(): ICorrelationConfig;
26
- // (undocumented)
27
- static identifier: string;
28
- // (undocumented)
29
- identifier: string;
30
- // (undocumented)
31
- includeCorrelationHeaders(ajaxData: ajaxRecord, input?: Request | string, init?: RequestInit, xhr?: XMLHttpRequestInstrumented): any;
32
- // (undocumented)
33
- initialize(config: IConfiguration & IConfig, core: IAppInsightsCore, extensions: IPlugin[], pluginChain?: ITelemetryPluginChain): void;
34
- // (undocumented)
35
- priority: number;
36
- // (undocumented)
37
- processTelemetry(item: ITelemetryItem, itemCtx?: IProcessTelemetryContext): void;
38
- // (undocumented)
39
- teardown(): void;
40
- trackDependencyData(dependency: IDependencyTelemetry, properties?: {
41
- [key: string]: any;
42
- }): void;
43
- protected trackDependencyDataInternal(dependency: IDependencyTelemetry, properties?: {
44
- [key: string]: any;
45
- }, systemProperties?: {
46
- [key: string]: any;
47
- }): void;
48
- }
49
-
50
- // @public (undocumented)
51
- export class ajaxRecord {
52
- constructor(traceID: string, spanID: string, logger: IDiagnosticLogger);
53
- // (undocumented)
54
- aborted: number;
55
- // (undocumented)
56
- ajaxTotalDuration: number;
57
- // (undocumented)
58
- async?: boolean;
59
- // (undocumented)
60
- callbackDuration: number;
61
- // (undocumented)
62
- callbackFinishedTime: number;
63
- // (undocumented)
64
- clientFailure: number;
65
- // (undocumented)
66
- completed: boolean;
67
- // Warning: (ae-forgotten-export) The symbol "IAjaxRecordResponse" needs to be exported by the entry point applicationinsights-dependencies-js.d.ts
68
- //
69
- // (undocumented)
70
- CreateTrackItem(ajaxType: string, enableRequestHeaderTracking: boolean, getResponse: () => IAjaxRecordResponse): IDependencyTelemetry;
71
- // (undocumented)
72
- endTime: number;
73
- // (undocumented)
74
- errorStatusText?: boolean;
75
- // (undocumented)
76
- getAbsoluteUrl(): string;
77
- // (undocumented)
78
- getPathName(): string;
79
- // (undocumented)
80
- method: string;
81
- // (undocumented)
82
- pageUrl: string;
83
- // (undocumented)
84
- perfAttempts?: number;
85
- // (undocumented)
86
- perfMark: PerformanceMark;
87
- // (undocumented)
88
- perfTiming: PerformanceResourceTiming;
89
- // (undocumented)
90
- requestHeaders: any;
91
- // (undocumented)
92
- requestHeadersSize: number;
93
- // (undocumented)
94
- requestSentTime: number;
95
- // (undocumented)
96
- requestSize: number;
97
- // (undocumented)
98
- requestUrl: string;
99
- // (undocumented)
100
- responseFinishedTime: number;
101
- // (undocumented)
102
- responseReceivingDuration: number;
103
- // (undocumented)
104
- responseStartedTime: number;
105
- // (undocumented)
106
- spanID: string;
107
- // (undocumented)
108
- status: string | number;
109
- // (undocumented)
110
- traceID: string;
111
- // Warning: (ae-forgotten-export) The symbol "XHRMonitoringState" needs to be exported by the entry point applicationinsights-dependencies-js.d.ts
112
- //
113
- // (undocumented)
114
- xhrMonitoringState: XHRMonitoringState;
115
- }
116
-
117
- // @public (undocumented)
118
- export interface IDependenciesPlugin {
119
- trackDependencyData(dependency: IDependencyTelemetry): void;
120
- }
121
-
122
- // @public (undocumented)
123
- export interface IInstrumentationRequirements extends IDependenciesPlugin {
124
- // (undocumented)
125
- includeCorrelationHeaders: (ajaxData: ajaxRecord, input?: Request | string, init?: RequestInit, xhr?: XMLHttpRequestInstrumented) => any;
126
- }
127
-
128
- // @public (undocumented)
129
- export interface XMLHttpRequestInstrumented extends XMLHttpRequest {
130
- // (undocumented)
131
- ajaxData: ajaxRecord;
132
- }
133
-
134
- // (No @packageDocumentation comment for this package)
135
-
136
- ```
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
- }