@microsoft/applicationinsights-web-basic 3.0.0-beta.2210-21 → 3.0.0-beta.2211-01
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/aib.2.js +83 -19
- package/browser/aib.2.js.map +1 -1
- package/browser/aib.2.min.js +2 -2
- package/browser/aib.2.min.js.map +1 -1
- package/browser/aib.3.0.0-beta.2211-01.integrity.json +26 -0
- package/browser/{aib.3.0.0-beta.2210-21.js → aib.3.0.0-beta.2211-01.js} +84 -20
- package/browser/aib.3.0.0-beta.2211-01.js.map +1 -0
- package/browser/aib.3.0.0-beta.2211-01.min.js +6 -0
- package/browser/aib.3.0.0-beta.2211-01.min.js.map +1 -0
- package/dist/applicationinsights-web-basic.api.json +197 -36
- package/dist/applicationinsights-web-basic.api.md +7 -3
- package/dist/applicationinsights-web-basic.d.ts +33 -2
- package/dist/applicationinsights-web-basic.js +83 -19
- package/dist/applicationinsights-web-basic.js.map +1 -1
- package/dist/applicationinsights-web-basic.min.js +2 -2
- package/dist/applicationinsights-web-basic.min.js.map +1 -1
- package/dist/applicationinsights-web-basic.rollup.d.ts +33 -2
- package/dist-esm/__DynamicConstants.js +1 -1
- package/dist-esm/index.js +1 -1
- package/package.json +4 -4
- package/types/tsdoc-metadata.json +1 -1
- package/browser/aib.3.0.0-beta.2210-21.integrity.json +0 -26
- package/browser/aib.3.0.0-beta.2210-21.js.map +0 -1
- package/browser/aib.3.0.0-beta.2210-21.min.js +0 -6
- package/browser/aib.3.0.0-beta.2210-21.min.js.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"metadata": {
|
|
3
3
|
"toolPackage": "@microsoft/api-extractor",
|
|
4
|
-
"toolVersion": "7.33.
|
|
4
|
+
"toolVersion": "7.33.6",
|
|
5
5
|
"schemaVersion": 1010,
|
|
6
6
|
"oldestForwardsCompatibleVersion": 1001,
|
|
7
7
|
"tsdocConfig": {
|
|
@@ -1998,40 +1998,6 @@
|
|
|
1998
1998
|
"name": "AppInsightsCore",
|
|
1999
1999
|
"preserveMemberOrder": false,
|
|
2000
2000
|
"members": [
|
|
2001
|
-
{
|
|
2002
|
-
"kind": "Property",
|
|
2003
|
-
"canonicalReference": "@microsoft/applicationinsights-web-basic!AppInsightsCore#_extensions:member",
|
|
2004
|
-
"docComment": "",
|
|
2005
|
-
"excerptTokens": [
|
|
2006
|
-
{
|
|
2007
|
-
"kind": "Content",
|
|
2008
|
-
"text": "_extensions: "
|
|
2009
|
-
},
|
|
2010
|
-
{
|
|
2011
|
-
"kind": "Reference",
|
|
2012
|
-
"text": "IPlugin",
|
|
2013
|
-
"canonicalReference": "@microsoft/applicationinsights-web-basic!IPlugin:interface"
|
|
2014
|
-
},
|
|
2015
|
-
{
|
|
2016
|
-
"kind": "Content",
|
|
2017
|
-
"text": "[]"
|
|
2018
|
-
},
|
|
2019
|
-
{
|
|
2020
|
-
"kind": "Content",
|
|
2021
|
-
"text": ";"
|
|
2022
|
-
}
|
|
2023
|
-
],
|
|
2024
|
-
"isReadonly": false,
|
|
2025
|
-
"isOptional": false,
|
|
2026
|
-
"releaseTag": "Public",
|
|
2027
|
-
"name": "_extensions",
|
|
2028
|
-
"propertyTypeTokenRange": {
|
|
2029
|
-
"startIndex": 1,
|
|
2030
|
-
"endIndex": 3
|
|
2031
|
-
},
|
|
2032
|
-
"isStatic": false,
|
|
2033
|
-
"isProtected": false
|
|
2034
|
-
},
|
|
2035
2001
|
{
|
|
2036
2002
|
"kind": "Method",
|
|
2037
2003
|
"canonicalReference": "@microsoft/applicationinsights-web-basic!AppInsightsCore#_updateHook:member(1)",
|
|
@@ -2992,6 +2958,35 @@
|
|
|
2992
2958
|
"isOptional": false,
|
|
2993
2959
|
"name": "getTransmissionControls"
|
|
2994
2960
|
},
|
|
2961
|
+
{
|
|
2962
|
+
"kind": "Property",
|
|
2963
|
+
"canonicalReference": "@microsoft/applicationinsights-web-basic!AppInsightsCore#getWParam:member",
|
|
2964
|
+
"docComment": "/**\n * Function used to identify the get w parameter used to identify status bit to some channels\n */\n",
|
|
2965
|
+
"excerptTokens": [
|
|
2966
|
+
{
|
|
2967
|
+
"kind": "Content",
|
|
2968
|
+
"text": "getWParam: "
|
|
2969
|
+
},
|
|
2970
|
+
{
|
|
2971
|
+
"kind": "Content",
|
|
2972
|
+
"text": "() => number"
|
|
2973
|
+
},
|
|
2974
|
+
{
|
|
2975
|
+
"kind": "Content",
|
|
2976
|
+
"text": ";"
|
|
2977
|
+
}
|
|
2978
|
+
],
|
|
2979
|
+
"isReadonly": false,
|
|
2980
|
+
"isOptional": false,
|
|
2981
|
+
"releaseTag": "Public",
|
|
2982
|
+
"name": "getWParam",
|
|
2983
|
+
"propertyTypeTokenRange": {
|
|
2984
|
+
"startIndex": 1,
|
|
2985
|
+
"endIndex": 2
|
|
2986
|
+
},
|
|
2987
|
+
"isStatic": false,
|
|
2988
|
+
"isProtected": false
|
|
2989
|
+
},
|
|
2995
2990
|
{
|
|
2996
2991
|
"kind": "Method",
|
|
2997
2992
|
"canonicalReference": "@microsoft/applicationinsights-web-basic!AppInsightsCore#initialize:member(1)",
|
|
@@ -3098,7 +3093,7 @@
|
|
|
3098
3093
|
{
|
|
3099
3094
|
"kind": "Property",
|
|
3100
3095
|
"canonicalReference": "@microsoft/applicationinsights-web-basic!AppInsightsCore#isInitialized:member",
|
|
3101
|
-
"docComment": "",
|
|
3096
|
+
"docComment": "/**\n * Returns a value that indicates whether the instance has already been previously initialized.\n */\n",
|
|
3102
3097
|
"excerptTokens": [
|
|
3103
3098
|
{
|
|
3104
3099
|
"kind": "Content",
|
|
@@ -3238,6 +3233,64 @@
|
|
|
3238
3233
|
"isOptional": false,
|
|
3239
3234
|
"name": "onCfgChange"
|
|
3240
3235
|
},
|
|
3236
|
+
{
|
|
3237
|
+
"kind": "Property",
|
|
3238
|
+
"canonicalReference": "@microsoft/applicationinsights-web-basic!AppInsightsCore#pluginVersionString:member",
|
|
3239
|
+
"docComment": "/**\n * The formatted string of the installed plugins that contain a version number\n */\n",
|
|
3240
|
+
"excerptTokens": [
|
|
3241
|
+
{
|
|
3242
|
+
"kind": "Content",
|
|
3243
|
+
"text": "readonly pluginVersionString: "
|
|
3244
|
+
},
|
|
3245
|
+
{
|
|
3246
|
+
"kind": "Content",
|
|
3247
|
+
"text": "string"
|
|
3248
|
+
},
|
|
3249
|
+
{
|
|
3250
|
+
"kind": "Content",
|
|
3251
|
+
"text": ";"
|
|
3252
|
+
}
|
|
3253
|
+
],
|
|
3254
|
+
"isReadonly": true,
|
|
3255
|
+
"isOptional": false,
|
|
3256
|
+
"releaseTag": "Public",
|
|
3257
|
+
"name": "pluginVersionString",
|
|
3258
|
+
"propertyTypeTokenRange": {
|
|
3259
|
+
"startIndex": 1,
|
|
3260
|
+
"endIndex": 2
|
|
3261
|
+
},
|
|
3262
|
+
"isStatic": false,
|
|
3263
|
+
"isProtected": false
|
|
3264
|
+
},
|
|
3265
|
+
{
|
|
3266
|
+
"kind": "Property",
|
|
3267
|
+
"canonicalReference": "@microsoft/applicationinsights-web-basic!AppInsightsCore#pluginVersionStringArr:member",
|
|
3268
|
+
"docComment": "/**\n * An array of the installed plugins that provide a version\n */\n",
|
|
3269
|
+
"excerptTokens": [
|
|
3270
|
+
{
|
|
3271
|
+
"kind": "Content",
|
|
3272
|
+
"text": "readonly pluginVersionStringArr: "
|
|
3273
|
+
},
|
|
3274
|
+
{
|
|
3275
|
+
"kind": "Content",
|
|
3276
|
+
"text": "string[]"
|
|
3277
|
+
},
|
|
3278
|
+
{
|
|
3279
|
+
"kind": "Content",
|
|
3280
|
+
"text": ";"
|
|
3281
|
+
}
|
|
3282
|
+
],
|
|
3283
|
+
"isReadonly": true,
|
|
3284
|
+
"isOptional": false,
|
|
3285
|
+
"releaseTag": "Public",
|
|
3286
|
+
"name": "pluginVersionStringArr",
|
|
3287
|
+
"propertyTypeTokenRange": {
|
|
3288
|
+
"startIndex": 1,
|
|
3289
|
+
"endIndex": 2
|
|
3290
|
+
},
|
|
3291
|
+
"isStatic": false,
|
|
3292
|
+
"isProtected": false
|
|
3293
|
+
},
|
|
3241
3294
|
{
|
|
3242
3295
|
"kind": "Method",
|
|
3243
3296
|
"canonicalReference": "@microsoft/applicationinsights-web-basic!AppInsightsCore#pollInternalLogs:member(1)",
|
|
@@ -5362,6 +5415,33 @@
|
|
|
5362
5415
|
"parameters": [],
|
|
5363
5416
|
"name": "getTransmissionControls"
|
|
5364
5417
|
},
|
|
5418
|
+
{
|
|
5419
|
+
"kind": "PropertySignature",
|
|
5420
|
+
"canonicalReference": "@microsoft/applicationinsights-web-basic!IAppInsightsCore#getWParam:member",
|
|
5421
|
+
"docComment": "/**\n * Function used to identify the get w parameter used to identify status bit to some channels\n */\n",
|
|
5422
|
+
"excerptTokens": [
|
|
5423
|
+
{
|
|
5424
|
+
"kind": "Content",
|
|
5425
|
+
"text": "getWParam: "
|
|
5426
|
+
},
|
|
5427
|
+
{
|
|
5428
|
+
"kind": "Content",
|
|
5429
|
+
"text": "() => number"
|
|
5430
|
+
},
|
|
5431
|
+
{
|
|
5432
|
+
"kind": "Content",
|
|
5433
|
+
"text": ";"
|
|
5434
|
+
}
|
|
5435
|
+
],
|
|
5436
|
+
"isReadonly": false,
|
|
5437
|
+
"isOptional": false,
|
|
5438
|
+
"releaseTag": "Public",
|
|
5439
|
+
"name": "getWParam",
|
|
5440
|
+
"propertyTypeTokenRange": {
|
|
5441
|
+
"startIndex": 1,
|
|
5442
|
+
"endIndex": 2
|
|
5443
|
+
}
|
|
5444
|
+
},
|
|
5365
5445
|
{
|
|
5366
5446
|
"kind": "MethodSignature",
|
|
5367
5447
|
"canonicalReference": "@microsoft/applicationinsights-web-basic!IAppInsightsCore#initialize:member(1)",
|
|
@@ -5600,6 +5680,60 @@
|
|
|
5600
5680
|
],
|
|
5601
5681
|
"name": "onCfgChange"
|
|
5602
5682
|
},
|
|
5683
|
+
{
|
|
5684
|
+
"kind": "PropertySignature",
|
|
5685
|
+
"canonicalReference": "@microsoft/applicationinsights-web-basic!IAppInsightsCore#pluginVersionString:member",
|
|
5686
|
+
"docComment": "/**\n * The formatted string of the installed plugins that contain a version number\n */\n",
|
|
5687
|
+
"excerptTokens": [
|
|
5688
|
+
{
|
|
5689
|
+
"kind": "Content",
|
|
5690
|
+
"text": "readonly pluginVersionString: "
|
|
5691
|
+
},
|
|
5692
|
+
{
|
|
5693
|
+
"kind": "Content",
|
|
5694
|
+
"text": "string"
|
|
5695
|
+
},
|
|
5696
|
+
{
|
|
5697
|
+
"kind": "Content",
|
|
5698
|
+
"text": ";"
|
|
5699
|
+
}
|
|
5700
|
+
],
|
|
5701
|
+
"isReadonly": true,
|
|
5702
|
+
"isOptional": false,
|
|
5703
|
+
"releaseTag": "Public",
|
|
5704
|
+
"name": "pluginVersionString",
|
|
5705
|
+
"propertyTypeTokenRange": {
|
|
5706
|
+
"startIndex": 1,
|
|
5707
|
+
"endIndex": 2
|
|
5708
|
+
}
|
|
5709
|
+
},
|
|
5710
|
+
{
|
|
5711
|
+
"kind": "PropertySignature",
|
|
5712
|
+
"canonicalReference": "@microsoft/applicationinsights-web-basic!IAppInsightsCore#pluginVersionStringArr:member",
|
|
5713
|
+
"docComment": "/**\n * An array of the installed plugins that provide a version\n */\n",
|
|
5714
|
+
"excerptTokens": [
|
|
5715
|
+
{
|
|
5716
|
+
"kind": "Content",
|
|
5717
|
+
"text": "readonly pluginVersionStringArr: "
|
|
5718
|
+
},
|
|
5719
|
+
{
|
|
5720
|
+
"kind": "Content",
|
|
5721
|
+
"text": "string[]"
|
|
5722
|
+
},
|
|
5723
|
+
{
|
|
5724
|
+
"kind": "Content",
|
|
5725
|
+
"text": ";"
|
|
5726
|
+
}
|
|
5727
|
+
],
|
|
5728
|
+
"isReadonly": true,
|
|
5729
|
+
"isOptional": false,
|
|
5730
|
+
"releaseTag": "Public",
|
|
5731
|
+
"name": "pluginVersionStringArr",
|
|
5732
|
+
"propertyTypeTokenRange": {
|
|
5733
|
+
"startIndex": 1,
|
|
5734
|
+
"endIndex": 2
|
|
5735
|
+
}
|
|
5736
|
+
},
|
|
5603
5737
|
{
|
|
5604
5738
|
"kind": "MethodSignature",
|
|
5605
5739
|
"canonicalReference": "@microsoft/applicationinsights-web-basic!IAppInsightsCore#pollInternalLogs:member(1)",
|
|
@@ -6736,6 +6870,33 @@
|
|
|
6736
6870
|
"endIndex": 2
|
|
6737
6871
|
}
|
|
6738
6872
|
},
|
|
6873
|
+
{
|
|
6874
|
+
"kind": "PropertySignature",
|
|
6875
|
+
"canonicalReference": "@microsoft/applicationinsights-web-basic!IConfiguration#enableWParam:member",
|
|
6876
|
+
"docComment": "/**\n * Add \"&w=0\" parameter to support UA Parsing when web-workers don't have access to Document. Default is false\n */\n",
|
|
6877
|
+
"excerptTokens": [
|
|
6878
|
+
{
|
|
6879
|
+
"kind": "Content",
|
|
6880
|
+
"text": "enableWParam?: "
|
|
6881
|
+
},
|
|
6882
|
+
{
|
|
6883
|
+
"kind": "Content",
|
|
6884
|
+
"text": "boolean"
|
|
6885
|
+
},
|
|
6886
|
+
{
|
|
6887
|
+
"kind": "Content",
|
|
6888
|
+
"text": ";"
|
|
6889
|
+
}
|
|
6890
|
+
],
|
|
6891
|
+
"isReadonly": false,
|
|
6892
|
+
"isOptional": true,
|
|
6893
|
+
"releaseTag": "Public",
|
|
6894
|
+
"name": "enableWParam",
|
|
6895
|
+
"propertyTypeTokenRange": {
|
|
6896
|
+
"startIndex": 1,
|
|
6897
|
+
"endIndex": 2
|
|
6898
|
+
}
|
|
6899
|
+
},
|
|
6739
6900
|
{
|
|
6740
6901
|
"kind": "PropertySignature",
|
|
6741
6902
|
"canonicalReference": "@microsoft/applicationinsights-web-basic!IConfiguration#endpointUrl:member",
|
|
@@ -30,8 +30,6 @@ export class AppInsightsCore implements IAppInsightsCore {
|
|
|
30
30
|
// (undocumented)
|
|
31
31
|
eventCnt(): number;
|
|
32
32
|
evtNamespace(): string;
|
|
33
|
-
// (undocumented)
|
|
34
|
-
_extensions: IPlugin[];
|
|
35
33
|
flush(isAsync?: boolean, callBack?: (flushComplete?: boolean) => void, sendReason?: SendRequestReason): void;
|
|
36
34
|
// Warning: (ae-forgotten-export) The symbol "ICookieMgr" needs to be exported by the entry point index.d.ts
|
|
37
35
|
getCookieMgr(): ICookieMgr;
|
|
@@ -53,11 +51,11 @@ export class AppInsightsCore implements IAppInsightsCore {
|
|
|
53
51
|
//
|
|
54
52
|
// (undocumented)
|
|
55
53
|
getTransmissionControls(): IChannelControls[][];
|
|
54
|
+
getWParam: () => number;
|
|
56
55
|
// Warning: (ae-forgotten-export) The symbol "INotificationManager" needs to be exported by the entry point index.d.ts
|
|
57
56
|
//
|
|
58
57
|
// (undocumented)
|
|
59
58
|
initialize(config: IConfiguration, extensions: IPlugin[], logger?: IDiagnosticLogger, notificationManager?: INotificationManager): void;
|
|
60
|
-
// (undocumented)
|
|
61
59
|
isInitialized: () => boolean;
|
|
62
60
|
// Warning: (ae-forgotten-export) The symbol "IDiagnosticLogger" needs to be exported by the entry point index.d.ts
|
|
63
61
|
//
|
|
@@ -65,6 +63,8 @@ export class AppInsightsCore implements IAppInsightsCore {
|
|
|
65
63
|
logger: IDiagnosticLogger;
|
|
66
64
|
// Warning: (ae-forgotten-export) The symbol "WatcherFunction" needs to be exported by the entry point index.d.ts
|
|
67
65
|
onCfgChange<T extends IConfiguration = IConfiguration>(handler: WatcherFunction<T>): IUnloadHook;
|
|
66
|
+
readonly pluginVersionString: string;
|
|
67
|
+
readonly pluginVersionStringArr: string[];
|
|
68
68
|
pollInternalLogs(eventName?: string): number;
|
|
69
69
|
// (undocumented)
|
|
70
70
|
protected releaseQueue(): void;
|
|
@@ -317,12 +317,15 @@ export interface IAppInsightsCore extends IPerfManagerProvider {
|
|
|
317
317
|
getTraceCtx(createNew?: boolean): IDistributedTraceContext | null;
|
|
318
318
|
// (undocumented)
|
|
319
319
|
getTransmissionControls(): IChannelControls[][];
|
|
320
|
+
getWParam: () => number;
|
|
320
321
|
// (undocumented)
|
|
321
322
|
initialize(config: IConfiguration, extensions: IPlugin[], logger?: IDiagnosticLogger, notificationManager?: INotificationManager): void;
|
|
322
323
|
isInitialized?: () => boolean;
|
|
323
324
|
// (undocumented)
|
|
324
325
|
logger: IDiagnosticLogger;
|
|
325
326
|
onCfgChange<T extends IConfiguration = IConfiguration>(handler: WatcherFunction<T>): IUnloadHook;
|
|
327
|
+
readonly pluginVersionString: string;
|
|
328
|
+
readonly pluginVersionStringArr: string[];
|
|
326
329
|
// (undocumented)
|
|
327
330
|
pollInternalLogs?(eventName?: string): number;
|
|
328
331
|
removeNotificationListener?(listener: INotificationListener): void;
|
|
@@ -367,6 +370,7 @@ export interface IConfiguration {
|
|
|
367
370
|
disablePageUnloadEvents?: string[];
|
|
368
371
|
enableDebugExceptions?: boolean;
|
|
369
372
|
enablePerfMgr?: boolean;
|
|
373
|
+
enableWParam?: boolean;
|
|
370
374
|
endpointUrl?: string;
|
|
371
375
|
extensionConfig?: {
|
|
372
376
|
[key: string]: any;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Microsoft.ApplicationInsights, 3.0.0-beta.
|
|
2
|
+
* Microsoft.ApplicationInsights, 3.0.0-beta.2211-01
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*
|
|
5
5
|
* Microsoft Application Insights Team
|
|
@@ -16,8 +16,22 @@ declare namespace ApplicationInsights {
|
|
|
16
16
|
static defaultConfig: IConfiguration;
|
|
17
17
|
config: IConfiguration;
|
|
18
18
|
logger: IDiagnosticLogger;
|
|
19
|
-
|
|
19
|
+
/**
|
|
20
|
+
* An array of the installed plugins that provide a version
|
|
21
|
+
*/
|
|
22
|
+
readonly pluginVersionStringArr: string[];
|
|
23
|
+
/**
|
|
24
|
+
* The formatted string of the installed plugins that contain a version number
|
|
25
|
+
*/
|
|
26
|
+
readonly pluginVersionString: string;
|
|
27
|
+
/**
|
|
28
|
+
* Returns a value that indicates whether the instance has already been previously initialized.
|
|
29
|
+
*/
|
|
20
30
|
isInitialized: () => boolean;
|
|
31
|
+
/**
|
|
32
|
+
* Function used to identify the get w parameter used to identify status bit to some channels
|
|
33
|
+
*/
|
|
34
|
+
getWParam: () => number;
|
|
21
35
|
constructor();
|
|
22
36
|
initialize(config: IConfiguration, extensions: IPlugin[], logger?: IDiagnosticLogger, notificationManager?: INotificationManager): void;
|
|
23
37
|
getTransmissionControls(): IChannelControls[][];
|
|
@@ -437,6 +451,14 @@ declare namespace ApplicationInsights {
|
|
|
437
451
|
interface IAppInsightsCore extends IPerfManagerProvider {
|
|
438
452
|
config: IConfiguration;
|
|
439
453
|
logger: IDiagnosticLogger;
|
|
454
|
+
/**
|
|
455
|
+
* An array of the installed plugins that provide a version
|
|
456
|
+
*/
|
|
457
|
+
readonly pluginVersionStringArr: string[];
|
|
458
|
+
/**
|
|
459
|
+
* The formatted string of the installed plugins that contain a version number
|
|
460
|
+
*/
|
|
461
|
+
readonly pluginVersionString: string;
|
|
440
462
|
/**
|
|
441
463
|
* Returns a value that indicates whether the instance has already been previously initialized.
|
|
442
464
|
*/
|
|
@@ -554,6 +576,10 @@ declare namespace ApplicationInsights {
|
|
|
554
576
|
* @returns A watcher handler instance that can be used to remove itself when being unloaded
|
|
555
577
|
*/
|
|
556
578
|
onCfgChange<T extends IConfiguration = IConfiguration>(handler: WatcherFunction<T>): IUnloadHook;
|
|
579
|
+
/**
|
|
580
|
+
* Function used to identify the get w parameter used to identify status bit to some channels
|
|
581
|
+
*/
|
|
582
|
+
getWParam: () => number;
|
|
557
583
|
}
|
|
558
584
|
|
|
559
585
|
/**
|
|
@@ -1234,6 +1260,11 @@ declare namespace ApplicationInsights {
|
|
|
1234
1260
|
* this will not send any notifications.
|
|
1235
1261
|
*/
|
|
1236
1262
|
disableDbgExt?: boolean;
|
|
1263
|
+
/**
|
|
1264
|
+
* Add "&w=0" parameter to support UA Parsing when web-workers don't have access to Document.
|
|
1265
|
+
* Default is false
|
|
1266
|
+
*/
|
|
1267
|
+
enableWParam?: boolean;
|
|
1237
1268
|
}
|
|
1238
1269
|
|
|
1239
1270
|
interface ICookieMgr {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Application Insights JavaScript Web SDK - Basic, 3.0.0-beta.
|
|
2
|
+
* Application Insights JavaScript Web SDK - Basic, 3.0.0-beta.2211-01
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*/
|
|
5
5
|
(function (global, factory) {
|
|
@@ -747,6 +747,9 @@
|
|
|
747
747
|
}
|
|
748
748
|
return null;
|
|
749
749
|
}
|
|
750
|
+
function hasDocument() {
|
|
751
|
+
return !!getDocument();
|
|
752
|
+
}
|
|
750
753
|
function getDocument() {
|
|
751
754
|
(!_cachedDocument || (_globalLazyTestHooks.lzy && !_cachedDocument.b)) && (_cachedDocument = _lazySafeGet(function () { return getInst(DOCUMENT); }, UNDEF_VALUE));
|
|
752
755
|
return _cachedDocument.v;
|
|
@@ -1106,8 +1109,8 @@
|
|
|
1106
1109
|
var _DYN_CALL = "call";
|
|
1107
1110
|
var _DYN_GET_PLUGIN = "getPlugin";
|
|
1108
1111
|
var _DYN_FLUSH = "flush";
|
|
1112
|
+
var _DYN_VERSION = "version";
|
|
1109
1113
|
var _DYN_LOGGING_LEVEL_CONSOL4 = "loggingLevelConsole";
|
|
1110
|
-
var _DYN__EXTENSIONS = "_extensions";
|
|
1111
1114
|
var _DYN_TEARDOWN = "teardown";
|
|
1112
1115
|
var _DYN_MESSAGE_ID = "messageId";
|
|
1113
1116
|
var _DYN_MESSAGE$1 = "message";
|
|
@@ -1544,7 +1547,7 @@
|
|
|
1544
1547
|
}
|
|
1545
1548
|
|
|
1546
1549
|
var _objDefineProperty = ObjDefineProperty;
|
|
1547
|
-
var version = "3.0.0-beta.
|
|
1550
|
+
var version = "3.0.0-beta.2211-01";
|
|
1548
1551
|
var instanceName = "." + newId(6);
|
|
1549
1552
|
var _dataUid = 0;
|
|
1550
1553
|
function _createAccessor(target, prop, value) {
|
|
@@ -3759,9 +3762,15 @@
|
|
|
3759
3762
|
var _traceCtx;
|
|
3760
3763
|
var _instrumentationKey;
|
|
3761
3764
|
var _cfgListeners;
|
|
3765
|
+
var _extensions;
|
|
3766
|
+
var _pluginVersionStringArr;
|
|
3767
|
+
var _pluginVersionString;
|
|
3762
3768
|
var _internalLogPoller = 0;
|
|
3763
3769
|
dynamicProto(AppInsightsCore, this, function (_self) {
|
|
3764
3770
|
_initDefaults();
|
|
3771
|
+
_self["_getDbgPlgTargets"] = function () {
|
|
3772
|
+
return [_extensions];
|
|
3773
|
+
};
|
|
3765
3774
|
_self[_DYN_IS_INITIALIZED ] = function () { return _isInitialized; };
|
|
3766
3775
|
_self[_DYN_INITIALIZE$1 ] = function (config, extensions, logger, notificationManager) {
|
|
3767
3776
|
if (_isUnloading) {
|
|
@@ -4053,8 +4062,34 @@
|
|
|
4053
4062
|
}
|
|
4054
4063
|
};
|
|
4055
4064
|
};
|
|
4065
|
+
_self.getWParam = function () {
|
|
4066
|
+
return (hasDocument() || !!_configHandler.cfg.enableWParam) ? 0 : -1;
|
|
4067
|
+
};
|
|
4068
|
+
function _setPluginVersions() {
|
|
4069
|
+
_pluginVersionStringArr = [];
|
|
4070
|
+
if (_channelConfig) {
|
|
4071
|
+
arrForEach(_channelConfig, function (channels) {
|
|
4072
|
+
if (channels) {
|
|
4073
|
+
arrForEach(channels, function (channel) {
|
|
4074
|
+
if (channel[_DYN_IDENTIFIER ] && channel[_DYN_VERSION ]) {
|
|
4075
|
+
var ver = channel[_DYN_IDENTIFIER ] + "=" + channel[_DYN_VERSION ];
|
|
4076
|
+
_pluginVersionStringArr[_DYN_PUSH$1 ](ver);
|
|
4077
|
+
}
|
|
4078
|
+
});
|
|
4079
|
+
}
|
|
4080
|
+
});
|
|
4081
|
+
}
|
|
4082
|
+
if (_configExtensions) {
|
|
4083
|
+
arrForEach(_configExtensions, function (ext) {
|
|
4084
|
+
if (ext && ext[_DYN_IDENTIFIER ] && ext[_DYN_VERSION ]) {
|
|
4085
|
+
var ver = ext[_DYN_IDENTIFIER ] + "=" + ext[_DYN_VERSION ];
|
|
4086
|
+
_pluginVersionStringArr[_DYN_PUSH$1 ](ver);
|
|
4087
|
+
}
|
|
4088
|
+
});
|
|
4089
|
+
}
|
|
4090
|
+
}
|
|
4056
4091
|
function _initDefaults() {
|
|
4057
|
-
var _a;
|
|
4092
|
+
var _a, _b, _c;
|
|
4058
4093
|
_isInitialized = false;
|
|
4059
4094
|
_configHandler = createDynamicConfig({}, defaultConfig, _self[_DYN_LOGGER ]);
|
|
4060
4095
|
_configHandler.cfg[_DYN_LOGGING_LEVEL_CONSOL4 ] = 1 ;
|
|
@@ -4066,8 +4101,31 @@
|
|
|
4066
4101
|
_self.updateCfg(newValue, false);
|
|
4067
4102
|
},
|
|
4068
4103
|
_a));
|
|
4104
|
+
objDefineProp(_self, "pluginVersionStringArr", (_b = {},
|
|
4105
|
+
_b[_DYN_CONFIGURABLE ] = true,
|
|
4106
|
+
_b[_DYN_ENUMERABLE ] = true,
|
|
4107
|
+
_b.get = function () {
|
|
4108
|
+
if (!_pluginVersionStringArr) {
|
|
4109
|
+
_setPluginVersions();
|
|
4110
|
+
}
|
|
4111
|
+
return _pluginVersionStringArr;
|
|
4112
|
+
},
|
|
4113
|
+
_b));
|
|
4114
|
+
objDefineProp(_self, "pluginVersionString", (_c = {},
|
|
4115
|
+
_c[_DYN_CONFIGURABLE ] = true,
|
|
4116
|
+
_c[_DYN_ENUMERABLE ] = true,
|
|
4117
|
+
_c.get = function () {
|
|
4118
|
+
if (!_pluginVersionString) {
|
|
4119
|
+
if (!_pluginVersionStringArr) {
|
|
4120
|
+
_setPluginVersions();
|
|
4121
|
+
}
|
|
4122
|
+
_pluginVersionString = _pluginVersionStringArr.join(";");
|
|
4123
|
+
}
|
|
4124
|
+
return _pluginVersionString || STR_EMPTY;
|
|
4125
|
+
},
|
|
4126
|
+
_c));
|
|
4069
4127
|
_self[_DYN_LOGGER ] = new DiagnosticLogger(_configHandler.cfg);
|
|
4070
|
-
|
|
4128
|
+
_extensions = [];
|
|
4071
4129
|
_telemetryInitializerPlugin = new TelemetryInitializerPlugin();
|
|
4072
4130
|
_eventQueue = [];
|
|
4073
4131
|
_notificationManager = null;
|
|
@@ -4088,6 +4146,8 @@
|
|
|
4088
4146
|
_instrumentationKey = null;
|
|
4089
4147
|
_hooks = [];
|
|
4090
4148
|
_cfgListeners = [];
|
|
4149
|
+
_pluginVersionString = null;
|
|
4150
|
+
_pluginVersionStringArr = null;
|
|
4091
4151
|
}
|
|
4092
4152
|
function _createTelCtx() {
|
|
4093
4153
|
return createProcessTelemetryContext(_getPluginChain(), _configHandler.cfg, _self);
|
|
@@ -4096,6 +4156,8 @@
|
|
|
4096
4156
|
var theExtensions = _validateExtensions(_self[_DYN_LOGGER ], ChannelControllerPriority, _configExtensions);
|
|
4097
4157
|
_coreExtensions = theExtensions[STR_CORE ];
|
|
4098
4158
|
_pluginChain = null;
|
|
4159
|
+
_pluginVersionString = null;
|
|
4160
|
+
_pluginVersionStringArr = null;
|
|
4099
4161
|
var allExtensions = theExtensions.all;
|
|
4100
4162
|
_channelQueue = objFreeze(createChannelQueues(_channelConfig, allExtensions, _self));
|
|
4101
4163
|
if (_channelControl) {
|
|
@@ -4114,10 +4176,10 @@
|
|
|
4114
4176
|
}
|
|
4115
4177
|
allExtensions[_DYN_PUSH$1 ](_channelControl);
|
|
4116
4178
|
_coreExtensions[_DYN_PUSH$1 ](_channelControl);
|
|
4117
|
-
|
|
4179
|
+
_extensions = sortPlugins(allExtensions);
|
|
4118
4180
|
_channelControl[_DYN_INITIALIZE$1 ](_configHandler.cfg, _self, allExtensions);
|
|
4119
4181
|
initializePlugins(_createTelCtx(), allExtensions);
|
|
4120
|
-
|
|
4182
|
+
_extensions = objFreeze(sortPlugins(_coreExtensions || [])).slice();
|
|
4121
4183
|
if (updateState) {
|
|
4122
4184
|
_doUpdate(updateState);
|
|
4123
4185
|
}
|
|
@@ -4125,7 +4187,7 @@
|
|
|
4125
4187
|
function _getPlugin(pluginIdentifier) {
|
|
4126
4188
|
var theExt = null;
|
|
4127
4189
|
var thePlugin = null;
|
|
4128
|
-
arrForEach(
|
|
4190
|
+
arrForEach(_extensions, function (ext) {
|
|
4129
4191
|
if (ext[_DYN_IDENTIFIER ] === pluginIdentifier && ext !== _channelControl && ext !== _telemetryInitializerPlugin) {
|
|
4130
4192
|
thePlugin = ext;
|
|
4131
4193
|
return -1;
|
|
@@ -4193,6 +4255,8 @@
|
|
|
4193
4255
|
}
|
|
4194
4256
|
});
|
|
4195
4257
|
_configExtensions = newConfigExtensions;
|
|
4258
|
+
_pluginVersionString = null;
|
|
4259
|
+
_pluginVersionStringArr = null;
|
|
4196
4260
|
var newChannelConfig = [];
|
|
4197
4261
|
if (_channelConfig) {
|
|
4198
4262
|
arrForEach(_channelConfig, function (queue, idx) {
|
|
@@ -4496,31 +4560,31 @@
|
|
|
4496
4560
|
var _DYN_LENGTH$1 = "length";
|
|
4497
4561
|
var _DYN_TO_LOWER_CASE = "toLowerCase";
|
|
4498
4562
|
var _DYN_TO_STRING$1 = "toString";
|
|
4499
|
-
var _DYN_REMOVE_ITEM = "removeItem";
|
|
4500
|
-
var _DYN_NAME$1 = "name";
|
|
4501
|
-
var _DYN_MESSAGE = "message";
|
|
4502
|
-
var _DYN_COUNT$1 = "count";
|
|
4503
|
-
var _DYN_STRINGIFY$1 = "stringify";
|
|
4504
|
-
var _DYN_PATHNAME = "pathname";
|
|
4505
4563
|
var _DYN_EXCEPTIONS = "exceptions";
|
|
4506
4564
|
var _DYN_PARSED_STACK = "parsedStack";
|
|
4565
|
+
var _DYN_REMOVE_ITEM = "removeItem";
|
|
4566
|
+
var _DYN_SUBSTRING = "substring";
|
|
4567
|
+
var _DYN_STRINGIFY$1 = "stringify";
|
|
4568
|
+
var _DYN_NAME$1 = "name";
|
|
4507
4569
|
var _DYN_PROPERTIES = "properties";
|
|
4508
4570
|
var _DYN_MEASUREMENTS$1 = "measurements";
|
|
4571
|
+
var _DYN_MESSAGE = "message";
|
|
4509
4572
|
var _DYN_SIZE_IN_BYTES = "sizeInBytes";
|
|
4510
4573
|
var _DYN_TYPE_NAME = "typeName";
|
|
4511
4574
|
var _DYN_SEVERITY_LEVEL = "severityLevel";
|
|
4512
4575
|
var _DYN_PROBLEM_GROUP = "problemGroup";
|
|
4513
4576
|
var _DYN_IS_MANUAL = "isManual";
|
|
4514
|
-
var
|
|
4577
|
+
var _DYN__CREATE_FROM_INTERFA0 = "CreateFromInterface";
|
|
4515
4578
|
var _DYN_HAS_FULL_STACK = "hasFullStack";
|
|
4516
4579
|
var _DYN_LEVEL = "level";
|
|
4517
4580
|
var _DYN_METHOD = "method";
|
|
4518
4581
|
var _DYN_ASSEMBLY = "assembly";
|
|
4519
4582
|
var _DYN_FILE_NAME = "fileName";
|
|
4520
4583
|
var _DYN_LINE = "line";
|
|
4584
|
+
var _DYN_COUNT$1 = "count";
|
|
4521
4585
|
var _DYN_DURATION = "duration";
|
|
4522
4586
|
var _DYN_RECEIVED_RESPONSE = "receivedResponse";
|
|
4523
|
-
var
|
|
4587
|
+
var _DYN_PATHNAME = "pathname";
|
|
4524
4588
|
|
|
4525
4589
|
function dataSanitizeKeyAndAddUniqueness(logger, key, map) {
|
|
4526
4590
|
var origLength = key[_DYN_LENGTH$1 ];
|
|
@@ -5141,7 +5205,7 @@
|
|
|
5141
5205
|
};
|
|
5142
5206
|
Exception.CreateFromInterface = function (logger, exception, properties, measurements) {
|
|
5143
5207
|
var exceptions = exception[_DYN_EXCEPTIONS ]
|
|
5144
|
-
&& arrMap(exception[_DYN_EXCEPTIONS ], function (ex) { return _ExceptionDetails[
|
|
5208
|
+
&& arrMap(exception[_DYN_EXCEPTIONS ], function (ex) { return _ExceptionDetails[_DYN__CREATE_FROM_INTERFA0 ](logger, ex); });
|
|
5145
5209
|
var exceptionData = new Exception(logger, __assignFn(__assignFn({}, exception), { exceptions: exceptions }), properties, measurements);
|
|
5146
5210
|
return exceptionData;
|
|
5147
5211
|
};
|
|
@@ -5236,7 +5300,7 @@
|
|
|
5236
5300
|
};
|
|
5237
5301
|
_ExceptionDetails.CreateFromInterface = function (logger, exception) {
|
|
5238
5302
|
var parsedStack = (exception[_DYN_PARSED_STACK ] instanceof Array
|
|
5239
|
-
&& arrMap(exception[_DYN_PARSED_STACK ], function (frame) { return _StackFrame[
|
|
5303
|
+
&& arrMap(exception[_DYN_PARSED_STACK ], function (frame) { return _StackFrame[_DYN__CREATE_FROM_INTERFA0 ](frame); }))
|
|
5240
5304
|
|| exception[_DYN_PARSED_STACK ];
|
|
5241
5305
|
var exceptionDetails = new _ExceptionDetails(logger, __assignFn(__assignFn({}, exception), { parsedStack: parsedStack }));
|
|
5242
5306
|
return exceptionDetails;
|
|
@@ -5761,7 +5825,7 @@
|
|
|
5761
5825
|
}
|
|
5762
5826
|
}
|
|
5763
5827
|
var EnvelopeCreator = {
|
|
5764
|
-
Version: "3.0.0-beta.
|
|
5828
|
+
Version: "3.0.0-beta.2211-01"
|
|
5765
5829
|
};
|
|
5766
5830
|
function DependencyEnvelopeCreator(logger, telemetryItem, customUndefinedValue) {
|
|
5767
5831
|
EnvelopeCreatorInit(logger, telemetryItem);
|