@microsoft/applicationinsights-common 3.1.0-nightly3.2402-09 → 3.1.0
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/es5/applicationinsights-common.cjs.js +1 -1
- package/browser/es5/applicationinsights-common.cjs.js.map +1 -1
- package/browser/es5/applicationinsights-common.cjs.min.js +1 -1
- package/browser/es5/applicationinsights-common.cjs.min.js.map +1 -1
- package/browser/es5/applicationinsights-common.gbl.js +3 -3
- package/browser/es5/applicationinsights-common.gbl.js.map +1 -1
- package/browser/es5/applicationinsights-common.gbl.min.js +2 -2
- package/browser/es5/applicationinsights-common.gbl.min.js.map +1 -1
- package/browser/es5/applicationinsights-common.integrity.json +25 -25
- package/browser/es5/applicationinsights-common.js +3 -3
- package/browser/es5/applicationinsights-common.js.map +1 -1
- package/browser/es5/applicationinsights-common.min.js +2 -2
- package/browser/es5/applicationinsights-common.min.js.map +1 -1
- package/dist/es5/applicationinsights-common.js +1 -1
- package/dist/es5/applicationinsights-common.js.map +1 -1
- package/dist/es5/applicationinsights-common.min.js +1 -1
- package/dist/es5/applicationinsights-common.min.js.map +1 -1
- package/dist-es5/ConnectionStringParser.js +1 -1
- package/dist-es5/Constants.js +1 -1
- package/dist-es5/DomHelperFuncs.js +1 -1
- package/dist-es5/Enums.js +1 -1
- package/dist-es5/HelperFuncs.js +1 -1
- package/dist-es5/Interfaces/ConnectionString.js +1 -1
- package/dist-es5/Interfaces/Context/IApplication.js +1 -1
- package/dist-es5/Interfaces/Context/IDevice.js +1 -1
- package/dist-es5/Interfaces/Context/IInternal.js +1 -1
- package/dist-es5/Interfaces/Context/ILocation.js +1 -1
- package/dist-es5/Interfaces/Context/IOperatingSystem.js +1 -1
- package/dist-es5/Interfaces/Context/ISample.js +1 -1
- package/dist-es5/Interfaces/Context/ISession.js +1 -1
- package/dist-es5/Interfaces/Context/ISessionManager.js +1 -1
- package/dist-es5/Interfaces/Context/ITelemetryTrace.js +1 -1
- package/dist-es5/Interfaces/Context/IUser.js +1 -1
- package/dist-es5/Interfaces/Context/IWeb.js +1 -1
- package/dist-es5/Interfaces/Contracts/AvailabilityData.js +1 -1
- package/dist-es5/Interfaces/Contracts/ContextTagKeys.js +1 -1
- package/dist-es5/Interfaces/Contracts/DataPointType.js +1 -1
- package/dist-es5/Interfaces/Contracts/DependencyKind.js +1 -1
- package/dist-es5/Interfaces/Contracts/DependencySourceType.js +1 -1
- package/dist-es5/Interfaces/Contracts/IBase.js +1 -1
- package/dist-es5/Interfaces/Contracts/IData.js +1 -1
- package/dist-es5/Interfaces/Contracts/IDataPoint.js +1 -1
- package/dist-es5/Interfaces/Contracts/IDomain.js +1 -1
- package/dist-es5/Interfaces/Contracts/IEnvelope.js +1 -1
- package/dist-es5/Interfaces/Contracts/IEventData.js +1 -1
- package/dist-es5/Interfaces/Contracts/IExceptionData.js +1 -1
- package/dist-es5/Interfaces/Contracts/IExceptionDetails.js +1 -1
- package/dist-es5/Interfaces/Contracts/IMessageData.js +1 -1
- package/dist-es5/Interfaces/Contracts/IMetricData.js +1 -1
- package/dist-es5/Interfaces/Contracts/IPageViewData.js +1 -1
- package/dist-es5/Interfaces/Contracts/IPageViewPerfData.js +1 -1
- package/dist-es5/Interfaces/Contracts/IRemoteDependencyData.js +1 -1
- package/dist-es5/Interfaces/Contracts/IStackFrame.js +1 -1
- package/dist-es5/Interfaces/Contracts/RequestData.js +1 -1
- package/dist-es5/Interfaces/Contracts/SeverityLevel.js +1 -1
- package/dist-es5/Interfaces/IAppInsights.js +1 -1
- package/dist-es5/Interfaces/IConfig.js +1 -1
- package/dist-es5/Interfaces/ICorrelationConfig.js +1 -1
- package/dist-es5/Interfaces/IDependencyTelemetry.js +1 -1
- package/dist-es5/Interfaces/IEventTelemetry.js +1 -1
- package/dist-es5/Interfaces/IExceptionTelemetry.js +1 -1
- package/dist-es5/Interfaces/IMetricTelemetry.js +1 -1
- package/dist-es5/Interfaces/IPageViewPerformanceTelemetry.js +1 -1
- package/dist-es5/Interfaces/IPageViewTelemetry.js +1 -1
- package/dist-es5/Interfaces/IPartC.js +1 -1
- package/dist-es5/Interfaces/IPropertiesPlugin.js +1 -1
- package/dist-es5/Interfaces/IRequestContext.js +1 -1
- package/dist-es5/Interfaces/IStorageBuffer.js +1 -1
- package/dist-es5/Interfaces/ITelemetryContext.js +1 -1
- package/dist-es5/Interfaces/IThrottleMgr.js +1 -1
- package/dist-es5/Interfaces/ITraceTelemetry.js +1 -1
- package/dist-es5/Interfaces/PartAExtensions.js +1 -1
- package/dist-es5/Interfaces/Telemetry/IEnvelope.js +1 -1
- package/dist-es5/Interfaces/Telemetry/ISerializable.js +1 -1
- package/dist-es5/Offline.js +1 -1
- package/dist-es5/RequestResponseHeaders.js +1 -1
- package/dist-es5/StorageHelperFuncs.js +1 -1
- package/dist-es5/Telemetry/Common/Data.js +1 -1
- package/dist-es5/Telemetry/Common/DataPoint.js +1 -1
- package/dist-es5/Telemetry/Common/DataSanitizer.js +1 -1
- package/dist-es5/Telemetry/Common/Envelope.js +1 -1
- package/dist-es5/Telemetry/Event.js +1 -1
- package/dist-es5/Telemetry/Exception.js +1 -1
- package/dist-es5/Telemetry/Metric.js +1 -1
- package/dist-es5/Telemetry/PageView.js +1 -1
- package/dist-es5/Telemetry/PageViewPerformance.js +1 -1
- package/dist-es5/Telemetry/RemoteDependencyData.js +1 -1
- package/dist-es5/Telemetry/Trace.js +1 -1
- package/dist-es5/TelemetryItemCreator.js +1 -1
- package/dist-es5/ThrottleMgr.js +1 -1
- package/dist-es5/UrlHelperFuncs.js +1 -1
- package/dist-es5/Util.js +1 -1
- package/dist-es5/__DynamicConstants.js +1 -1
- package/dist-es5/applicationinsights-common.js +1 -1
- package/package.json +63 -66
- package/types/applicationinsights-common.d.ts +22 -4
- package/types/applicationinsights-common.namespaced.d.ts +2028 -58
package/package.json
CHANGED
|
@@ -1,66 +1,63 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@microsoft/applicationinsights-common",
|
|
3
|
-
"version": "3.1.0
|
|
4
|
-
"description": "Microsoft Application Insights Common JavaScript Library",
|
|
5
|
-
"homepage": "https://github.com/microsoft/ApplicationInsights-JS#readme",
|
|
6
|
-
"author": "Microsoft Application Insights Team",
|
|
7
|
-
"main": "dist/es5/applicationinsights-common.js",
|
|
8
|
-
"module": "dist-es5/applicationinsights-common.js",
|
|
9
|
-
"types": "types/applicationinsights-common.d.ts",
|
|
10
|
-
"sideEffects": false,
|
|
11
|
-
"repository": {
|
|
12
|
-
"type": "git",
|
|
13
|
-
"url": "https://github.com/microsoft/ApplicationInsights-JS/tree/main/shared/AppInsightsCommon"
|
|
14
|
-
},
|
|
15
|
-
"scripts": {
|
|
16
|
-
"clean": "git clean -xdf",
|
|
17
|
-
"build": "npm run build:esm && npm run build:browser && npm run sri && npm run dtsgen",
|
|
18
|
-
"build:esm": "grunt common",
|
|
19
|
-
"build:browser": "rollup -c rollup.config.js --bundleConfigAsCjs",
|
|
20
|
-
"rebuild": "npm run build",
|
|
21
|
-
"test": "grunt commontest",
|
|
22
|
-
"mintest": "grunt common-mintest",
|
|
23
|
-
"lint": "tslint -p tsconfig.json",
|
|
24
|
-
"dtsgen": "api-extractor run --local && node ../../scripts/dtsgen.js \"Microsoft Application Insights Common JavaScript Library\"",
|
|
25
|
-
"sri": "node ../../tools/subResourceIntegrity/generateIntegrityFile.js",
|
|
26
|
-
"ai-min": "grunt common-min",
|
|
27
|
-
"ai-restore": "grunt common-restore",
|
|
28
|
-
"npm-pack": "npm pack",
|
|
29
|
-
"api-docs": "typedoc"
|
|
30
|
-
},
|
|
31
|
-
"devDependencies": {
|
|
32
|
-
"@microsoft/ai-test-framework": "0.0.1",
|
|
33
|
-
"@microsoft/applicationinsights-rollup-plugin-uglify3-js": "1.0.0",
|
|
34
|
-
"@microsoft/applicationinsights-rollup-es5": "1.0.2",
|
|
35
|
-
"@microsoft/api-extractor": "^7.
|
|
36
|
-
"grunt": "^1.5.3",
|
|
37
|
-
"grunt-cli": "^1.4.3",
|
|
38
|
-
"grunt-contrib-qunit": "^6.2.1",
|
|
39
|
-
"@nevware21/grunt-ts-plugin": "^0.4.3",
|
|
40
|
-
"@nevware21/grunt-eslint-ts": "^0.2.2",
|
|
41
|
-
"@rollup/plugin-commonjs": "^24.0.0",
|
|
42
|
-
"@rollup/plugin-node-resolve": "^15.0.1",
|
|
43
|
-
"@rollup/plugin-replace": "^5.0.2",
|
|
44
|
-
"rollup-plugin-cleanup": "^3.2.1",
|
|
45
|
-
"rollup": "^3.20.0",
|
|
46
|
-
"typescript": "^4.9.3",
|
|
47
|
-
"tslib": "^2.0.0",
|
|
48
|
-
"typedoc": "^0.24.8",
|
|
49
|
-
"globby": "^11.0.0",
|
|
50
|
-
"magic-string": "^0.25.7",
|
|
51
|
-
"sinon": "^7.3.1"
|
|
52
|
-
},
|
|
53
|
-
"peerDependencies": {
|
|
54
|
-
"tslib": "*"
|
|
55
|
-
},
|
|
56
|
-
"dependencies": {
|
|
57
|
-
"@microsoft/applicationinsights-shims": "3.0.1",
|
|
58
|
-
"@microsoft/applicationinsights-core-js": "3.1.0
|
|
59
|
-
"@microsoft/dynamicproto-js": "^2.0.3",
|
|
60
|
-
"@nevware21/ts-utils": ">= 0.10.
|
|
61
|
-
},
|
|
62
|
-
"license": "MIT"
|
|
63
|
-
|
|
64
|
-
"tag": "nightly3"
|
|
65
|
-
}
|
|
66
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@microsoft/applicationinsights-common",
|
|
3
|
+
"version": "3.1.0",
|
|
4
|
+
"description": "Microsoft Application Insights Common JavaScript Library",
|
|
5
|
+
"homepage": "https://github.com/microsoft/ApplicationInsights-JS#readme",
|
|
6
|
+
"author": "Microsoft Application Insights Team",
|
|
7
|
+
"main": "dist/es5/applicationinsights-common.js",
|
|
8
|
+
"module": "dist-es5/applicationinsights-common.js",
|
|
9
|
+
"types": "types/applicationinsights-common.d.ts",
|
|
10
|
+
"sideEffects": false,
|
|
11
|
+
"repository": {
|
|
12
|
+
"type": "git",
|
|
13
|
+
"url": "https://github.com/microsoft/ApplicationInsights-JS/tree/main/shared/AppInsightsCommon"
|
|
14
|
+
},
|
|
15
|
+
"scripts": {
|
|
16
|
+
"clean": "git clean -xdf",
|
|
17
|
+
"build": "npm run build:esm && npm run build:browser && npm run sri && npm run dtsgen",
|
|
18
|
+
"build:esm": "grunt common",
|
|
19
|
+
"build:browser": "rollup -c rollup.config.js --bundleConfigAsCjs",
|
|
20
|
+
"rebuild": "npm run build",
|
|
21
|
+
"test": "grunt commontest",
|
|
22
|
+
"mintest": "grunt common-mintest",
|
|
23
|
+
"lint": "tslint -p tsconfig.json",
|
|
24
|
+
"dtsgen": "api-extractor run --local && node ../../scripts/dtsgen.js \"Microsoft Application Insights Common JavaScript Library\"",
|
|
25
|
+
"sri": "node ../../tools/subResourceIntegrity/generateIntegrityFile.js",
|
|
26
|
+
"ai-min": "grunt common-min",
|
|
27
|
+
"ai-restore": "grunt common-restore",
|
|
28
|
+
"npm-pack": "npm pack",
|
|
29
|
+
"api-docs": "typedoc"
|
|
30
|
+
},
|
|
31
|
+
"devDependencies": {
|
|
32
|
+
"@microsoft/ai-test-framework": "0.0.1",
|
|
33
|
+
"@microsoft/applicationinsights-rollup-plugin-uglify3-js": "1.0.0",
|
|
34
|
+
"@microsoft/applicationinsights-rollup-es5": "1.0.2",
|
|
35
|
+
"@microsoft/api-extractor": "^7.40.0",
|
|
36
|
+
"grunt": "^1.5.3",
|
|
37
|
+
"grunt-cli": "^1.4.3",
|
|
38
|
+
"grunt-contrib-qunit": "^6.2.1",
|
|
39
|
+
"@nevware21/grunt-ts-plugin": "^0.4.3",
|
|
40
|
+
"@nevware21/grunt-eslint-ts": "^0.2.2",
|
|
41
|
+
"@rollup/plugin-commonjs": "^24.0.0",
|
|
42
|
+
"@rollup/plugin-node-resolve": "^15.0.1",
|
|
43
|
+
"@rollup/plugin-replace": "^5.0.2",
|
|
44
|
+
"rollup-plugin-cleanup": "^3.2.1",
|
|
45
|
+
"rollup": "^3.20.0",
|
|
46
|
+
"typescript": "^4.9.3",
|
|
47
|
+
"tslib": "^2.0.0",
|
|
48
|
+
"typedoc": "^0.24.8",
|
|
49
|
+
"globby": "^11.0.0",
|
|
50
|
+
"magic-string": "^0.25.7",
|
|
51
|
+
"sinon": "^7.3.1"
|
|
52
|
+
},
|
|
53
|
+
"peerDependencies": {
|
|
54
|
+
"tslib": "*"
|
|
55
|
+
},
|
|
56
|
+
"dependencies": {
|
|
57
|
+
"@microsoft/applicationinsights-shims": "3.0.1",
|
|
58
|
+
"@microsoft/applicationinsights-core-js": "3.1.0",
|
|
59
|
+
"@microsoft/dynamicproto-js": "^2.0.3",
|
|
60
|
+
"@nevware21/ts-utils": ">= 0.10.5 < 2.x"
|
|
61
|
+
},
|
|
62
|
+
"license": "MIT"
|
|
63
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Microsoft Application Insights Common JavaScript Library, 3.1.0
|
|
2
|
+
* Microsoft Application Insights Common JavaScript Library, 3.1.0
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*
|
|
5
5
|
* Microsoft Application Insights Team
|
|
@@ -138,6 +138,7 @@ export declare function createTelemetryItem<T>(item: T, baseType: string, envelo
|
|
|
138
138
|
}): ITelemetryItem;
|
|
139
139
|
|
|
140
140
|
export { createTraceParent }
|
|
141
|
+
|
|
141
142
|
export declare let CtxTagKeys: ContextTagKeys;
|
|
142
143
|
|
|
143
144
|
export declare class Data<TDomain> implements AIData<TDomain>, ISerializable {
|
|
@@ -506,6 +507,7 @@ export declare const enum FieldType {
|
|
|
506
507
|
}
|
|
507
508
|
|
|
508
509
|
export { findW3cTraceParent }
|
|
510
|
+
|
|
509
511
|
/**
|
|
510
512
|
* Formats the provided errorObj for display and reporting, it may be a String, Object, integer or undefined depending on the browser.
|
|
511
513
|
* @param errorObj - The supplied errorObj
|
|
@@ -513,6 +515,7 @@ export { findW3cTraceParent }
|
|
|
513
515
|
declare function _formatErrorCode(errorObj: any): any;
|
|
514
516
|
|
|
515
517
|
export { formatTraceParent }
|
|
518
|
+
|
|
516
519
|
export declare function getExtensionByName(extensions: IPlugin[], identifier: string): IPlugin | null;
|
|
517
520
|
|
|
518
521
|
export declare const HttpMethod = "http.method";
|
|
@@ -539,9 +542,17 @@ export declare interface IAppInsights {
|
|
|
539
542
|
[key: string]: any;
|
|
540
543
|
}): void;
|
|
541
544
|
startTrackPage(name?: string): void;
|
|
542
|
-
stopTrackPage(name?: string, url?: string,
|
|
545
|
+
stopTrackPage(name?: string, url?: string, properties?: {
|
|
546
|
+
[key: string]: string;
|
|
547
|
+
}, measurements?: {
|
|
548
|
+
[key: string]: number;
|
|
549
|
+
}): void;
|
|
543
550
|
startTrackEvent(name: string): void;
|
|
544
|
-
stopTrackEvent(name: string, properties?:
|
|
551
|
+
stopTrackEvent(name: string, properties?: {
|
|
552
|
+
[key: string]: string;
|
|
553
|
+
}, measurements?: {
|
|
554
|
+
[key: string]: number;
|
|
555
|
+
}): void;
|
|
545
556
|
addTelemetryInitializer(telemetryInitializer: (item: ITelemetryItem) => boolean | void): void;
|
|
546
557
|
trackPageViewPerformance(pageViewPerformance: IPageViewPerformanceTelemetry, customProperties?: {
|
|
547
558
|
[key: string]: any;
|
|
@@ -1875,6 +1886,7 @@ export declare interface ISample {
|
|
|
1875
1886
|
}
|
|
1876
1887
|
|
|
1877
1888
|
export { isBeaconApiSupported }
|
|
1889
|
+
|
|
1878
1890
|
export declare function isCrossOriginError(message: string | Event, url: string, lineNumber: number, columnNumber: number, error: Error | Event): boolean;
|
|
1879
1891
|
|
|
1880
1892
|
export declare interface ISerializable {
|
|
@@ -1929,6 +1941,7 @@ export declare interface ISessionManager {
|
|
|
1929
1941
|
export declare function isInternalApplicationInsightsEndpoint(endpointUrl: string): boolean;
|
|
1930
1942
|
|
|
1931
1943
|
export { isSampledFlag }
|
|
1944
|
+
|
|
1932
1945
|
declare interface IStackDetails {
|
|
1933
1946
|
src: string;
|
|
1934
1947
|
obj: string[];
|
|
@@ -1978,8 +1991,11 @@ export declare interface IStorageBuffer {
|
|
|
1978
1991
|
}
|
|
1979
1992
|
|
|
1980
1993
|
export { isValidSpanId }
|
|
1994
|
+
|
|
1981
1995
|
export { isValidTraceId }
|
|
1996
|
+
|
|
1982
1997
|
export { isValidTraceParent }
|
|
1998
|
+
|
|
1983
1999
|
export declare interface ITelemetryContext {
|
|
1984
2000
|
/**
|
|
1985
2001
|
* The object describing a component tracked by this object.
|
|
@@ -2151,6 +2167,7 @@ export declare interface IThrottleResult {
|
|
|
2151
2167
|
}
|
|
2152
2168
|
|
|
2153
2169
|
export { ITraceParent }
|
|
2170
|
+
|
|
2154
2171
|
export declare interface ITraceState {
|
|
2155
2172
|
}
|
|
2156
2173
|
|
|
@@ -2417,6 +2434,7 @@ export declare class PageViewPerformance implements IPageViewPerfData, ISerializ
|
|
|
2417
2434
|
export declare function parseConnectionString(connectionString?: string): ConnectionString;
|
|
2418
2435
|
|
|
2419
2436
|
export { parseTraceParent }
|
|
2437
|
+
|
|
2420
2438
|
export declare const ProcessLegacy = "ProcessLegacy";
|
|
2421
2439
|
|
|
2422
2440
|
export declare const PropertiesPluginIdentifier = "AppInsightsPropertiesPlugin";
|
|
@@ -2641,4 +2659,4 @@ export declare function utlSetSessionStorage(logger: IDiagnosticLogger, name: st
|
|
|
2641
2659
|
|
|
2642
2660
|
export declare function utlSetStoragePrefix(storagePrefix: string): void;
|
|
2643
2661
|
|
|
2644
|
-
export { }
|
|
2662
|
+
export { }
|