@microsoft/applicationinsights-dependencies-js 3.0.0-beta.2302-04 → 3.0.0-beta.2302-06
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.
- package/browser/applicationinsights-dependencies-js.integrity.json +9 -9
- package/browser/applicationinsights-dependencies-js.js +188 -124
- package/browser/applicationinsights-dependencies-js.js.map +1 -1
- package/browser/applicationinsights-dependencies-js.min.js +2 -2
- package/browser/applicationinsights-dependencies-js.min.js.map +1 -1
- package/dist/applicationinsights-dependencies-js.d.ts +1 -1
- package/dist/applicationinsights-dependencies-js.js +188 -124
- package/dist/applicationinsights-dependencies-js.js.map +1 -1
- package/dist/applicationinsights-dependencies-js.min.js +2 -2
- package/dist/applicationinsights-dependencies-js.min.js.map +1 -1
- package/dist/applicationinsights-dependencies-js.rollup.d.ts +1 -1
- package/dist-esm/DependencyInitializer.js +1 -1
- package/dist-esm/DependencyListener.js +1 -1
- package/dist-esm/InternalConstants.js +1 -1
- package/dist-esm/__DynamicConstants.js +2 -1
- package/dist-esm/__DynamicConstants.js.map +1 -1
- package/dist-esm/ajax.js +22 -17
- package/dist-esm/ajax.js.map +1 -1
- package/dist-esm/ajaxRecord.js +1 -1
- package/dist-esm/ajaxUtils.js +1 -1
- package/dist-esm/applicationinsights-dependencies-js.js +1 -1
- package/package.json +3 -3
- package/src/__DynamicConstants.ts +1 -0
- package/src/ajax.ts +4 -3
- package/types/__DynamicConstants.d.ts +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@microsoft/applicationinsights-dependencies-js",
|
|
3
|
-
"version": "3.0.0-beta.2302-
|
|
3
|
+
"version": "3.0.0-beta.2302-06",
|
|
4
4
|
"description": "Microsoft Application Insights XHR dependencies plugin",
|
|
5
5
|
"homepage": "https://github.com/microsoft/ApplicationInsights-JS#readme",
|
|
6
6
|
"author": "Microsoft Application Insights Team",
|
|
@@ -54,8 +54,8 @@
|
|
|
54
54
|
"dependencies": {
|
|
55
55
|
"@microsoft/dynamicproto-js": "^1.1.7",
|
|
56
56
|
"@microsoft/applicationinsights-shims": "2.0.2",
|
|
57
|
-
"@microsoft/applicationinsights-core-js": "3.0.0-beta.2302-
|
|
58
|
-
"@microsoft/applicationinsights-common": "3.0.0-beta.2302-
|
|
57
|
+
"@microsoft/applicationinsights-core-js": "3.0.0-beta.2302-06",
|
|
58
|
+
"@microsoft/applicationinsights-common": "3.0.0-beta.2302-06",
|
|
59
59
|
"@nevware21/ts-utils": ">= 0.7 < 2.x"
|
|
60
60
|
},
|
|
61
61
|
"license": "MIT",
|
|
@@ -61,6 +61,7 @@ export const _DYN_GET_PART_APROPS = "getPartAProps"; // Count: 3
|
|
|
61
61
|
export const _DYN_PERF_MARK = "perfMark"; // Count: 4
|
|
62
62
|
export const _DYN_NAME = "name"; // Count: 6
|
|
63
63
|
export const _DYN_PERF_TIMING = "perfTiming"; // Count: 3
|
|
64
|
+
export const _DYN_EXCEPTION = "exception"; // Count: 5
|
|
64
65
|
export const _DYN_AJAX_DIAGNOSTICS_MES16 = "ajaxDiagnosticsMessage"; // Count: 3
|
|
65
66
|
export const _DYN_CORRELATION_CONTEXT = "correlationContext"; // Count: 3
|
|
66
67
|
export const _DYN_AJAX_TOTAL_DURATION = "ajaxTotalDuration"; // Count: 3
|
package/src/ajax.ts
CHANGED
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
dumpObj, eLoggingSeverity, eventOn, generateW3CId, getExceptionName, getGlobal, getIEVersion, getLocation, getPerformance, isFunction,
|
|
16
16
|
isNullOrUndefined, isString, isXhrSupported, mergeEvtNamespace, onConfigChange, strPrototype, strTrim
|
|
17
17
|
} from "@microsoft/applicationinsights-core-js";
|
|
18
|
-
import { objFreeze, scheduleTimeout, strIndexOf } from "@nevware21/ts-utils";
|
|
18
|
+
import { isWebWorker, objFreeze, scheduleTimeout, strIndexOf } from "@nevware21/ts-utils";
|
|
19
19
|
import { DependencyInitializerFunction, IDependencyInitializerDetails, IDependencyInitializerHandler } from "./DependencyInitializer";
|
|
20
20
|
import {
|
|
21
21
|
DependencyListenerFunction, IDependencyHandler, IDependencyListenerContainer, IDependencyListenerDetails, IDependencyListenerHandler
|
|
@@ -262,7 +262,8 @@ const _defaultConfig: IConfigDefaults<ICorrelationConfig> = objFreeze({
|
|
|
262
262
|
ignoreHeaders:[
|
|
263
263
|
"Authorization",
|
|
264
264
|
"X-API-Key",
|
|
265
|
-
"WWW-Authenticate"
|
|
265
|
+
"WWW-Authenticate"
|
|
266
|
+
],
|
|
266
267
|
addRequestContext: undefined,
|
|
267
268
|
addIntEndpoints: true
|
|
268
269
|
});
|
|
@@ -617,7 +618,7 @@ export class AjaxMonitor extends BaseTelemetryPlugin implements IDependenciesPlu
|
|
|
617
618
|
// Create an error callback to report any hook errors
|
|
618
619
|
hkErr: _createErrorCallbackFunc(_self, _eInternalMessageId.FailedMonitorAjaxOpen,
|
|
619
620
|
"Failed to monitor Window.fetch" + ERROR_POSTFIX)
|
|
620
|
-
}));
|
|
621
|
+
}, true, isWebWorker()));
|
|
621
622
|
|
|
622
623
|
_fetchInitialized = true;
|
|
623
624
|
} else if (isPolyfill && !_polyfillInitialized) {
|
|
@@ -49,6 +49,7 @@ export declare const _DYN_GET_PART_APROPS = "getPartAProps";
|
|
|
49
49
|
export declare const _DYN_PERF_MARK = "perfMark";
|
|
50
50
|
export declare const _DYN_NAME = "name";
|
|
51
51
|
export declare const _DYN_PERF_TIMING = "perfTiming";
|
|
52
|
+
export declare const _DYN_EXCEPTION = "exception";
|
|
52
53
|
export declare const _DYN_AJAX_DIAGNOSTICS_MES16 = "ajaxDiagnosticsMessage";
|
|
53
54
|
export declare const _DYN_CORRELATION_CONTEXT = "correlationContext";
|
|
54
55
|
export declare const _DYN_AJAX_TOTAL_DURATION = "ajaxTotalDuration";
|