@microsoft/applicationinsights-core-js 2.8.15-nightly.2307-23 → 2.8.15-nightly.2308-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/applicationinsights-core-js.integrity.json +9 -9
- package/browser/applicationinsights-core-js.js +40 -2
- package/browser/applicationinsights-core-js.js.map +1 -1
- package/browser/applicationinsights-core-js.min.js +2 -2
- package/browser/applicationinsights-core-js.min.js.map +1 -1
- package/dist/applicationinsights-core-js.api.json +284 -1
- package/dist/applicationinsights-core-js.api.md +14 -0
- package/dist/applicationinsights-core-js.d.ts +19 -1
- package/dist/applicationinsights-core-js.js +40 -2
- package/dist/applicationinsights-core-js.js.map +1 -1
- package/dist/applicationinsights-core-js.min.js +2 -2
- package/dist/applicationinsights-core-js.min.js.map +1 -1
- package/dist/applicationinsights-core-js.rollup.d.ts +19 -1
- package/dist-esm/JavaScriptSDK/AppInsightsCore.js +1 -1
- package/dist-esm/JavaScriptSDK/BaseCore.js +1 -1
- package/dist-esm/JavaScriptSDK/BaseTelemetryPlugin.js +1 -1
- package/dist-esm/JavaScriptSDK/ChannelController.js +1 -1
- package/dist-esm/JavaScriptSDK/CookieMgr.js +1 -1
- package/dist-esm/JavaScriptSDK/CoreUtils.js +1 -1
- package/dist-esm/JavaScriptSDK/DataCacheHelper.js +2 -2
- package/dist-esm/JavaScriptSDK/DataCacheHelper.js.map +1 -1
- package/dist-esm/JavaScriptSDK/DbgExtensionUtils.js +1 -1
- package/dist-esm/JavaScriptSDK/DiagnosticLogger.js +1 -1
- package/dist-esm/JavaScriptSDK/EnvUtils.js +38 -2
- package/dist-esm/JavaScriptSDK/EnvUtils.js.map +1 -1
- package/dist-esm/JavaScriptSDK/EventHelpers.js +1 -1
- package/dist-esm/JavaScriptSDK/HelperFuncs.js +1 -1
- package/dist-esm/JavaScriptSDK/InstrumentHooks.js +1 -1
- package/dist-esm/JavaScriptSDK/InternalConstants.js +1 -1
- package/dist-esm/JavaScriptSDK/NotificationManager.js +1 -1
- package/dist-esm/JavaScriptSDK/PerfManager.js +1 -1
- package/dist-esm/JavaScriptSDK/ProcessTelemetryContext.js +1 -1
- package/dist-esm/JavaScriptSDK/RandomHelper.js +1 -1
- package/dist-esm/JavaScriptSDK/TelemetryHelpers.js +1 -1
- package/dist-esm/JavaScriptSDK/TelemetryInitializerPlugin.js +1 -1
- package/dist-esm/JavaScriptSDK/UnloadHandlerContainer.js +1 -1
- package/dist-esm/JavaScriptSDK/W3cTraceParent.js +1 -1
- package/dist-esm/JavaScriptSDK.Enums/EnumHelperFuncs.js +1 -1
- package/dist-esm/JavaScriptSDK.Enums/EventsDiscardedReason.js +1 -1
- package/dist-esm/JavaScriptSDK.Enums/LoggingEnums.js +1 -1
- package/dist-esm/JavaScriptSDK.Enums/SendRequestReason.js +1 -1
- package/dist-esm/JavaScriptSDK.Enums/TelemetryUnloadReason.js +1 -1
- package/dist-esm/JavaScriptSDK.Enums/TelemetryUpdateReason.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/IAppInsightsCore.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/IChannelControls.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/IConfiguration.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/ICookieMgr.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/IDbgExtension.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/IDiagnosticLogger.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/IDistributedTraceContext.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/IInstrumentHooks.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/INotificationListener.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/INotificationManager.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/IPerfEvent.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/IPerfManager.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/IProcessTelemetryContext.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryInitializers.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryItem.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryPlugin.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryPluginChain.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryUnloadState.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryUpdateState.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/ITraceParent.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/IUnloadableComponent.js +1 -1
- package/dist-esm/__DynamicConstants.js +1 -1
- package/dist-esm/applicationinsights-core-js.js +3 -3
- package/dist-esm/applicationinsights-core-js.js.map +1 -1
- package/package.json +1 -1
- package/src/JavaScriptSDK/EnvUtils.ts +42 -1
- package/src/JavaScriptSDK.Interfaces/IConfiguration.ts +7 -0
- package/types/JavaScriptSDK/EnvUtils.d.ts +3 -0
- package/types/JavaScriptSDK.Interfaces/IConfiguration.d.ts +5 -0
- package/types/applicationinsights-core-js.d.ts +2 -2
- package/types/tsdoc-metadata.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"metadata": {
|
|
3
3
|
"toolPackage": "@microsoft/api-extractor",
|
|
4
|
-
"toolVersion": "7.
|
|
4
|
+
"toolVersion": "7.36.3",
|
|
5
5
|
"schemaVersion": 1011,
|
|
6
6
|
"oldestForwardsCompatibleVersion": 1001,
|
|
7
7
|
"tsdocConfig": {
|
|
@@ -6486,6 +6486,68 @@
|
|
|
6486
6486
|
],
|
|
6487
6487
|
"name": "createCookieMgr"
|
|
6488
6488
|
},
|
|
6489
|
+
{
|
|
6490
|
+
"kind": "Function",
|
|
6491
|
+
"canonicalReference": "@microsoft/applicationinsights-core-js!createCustomDomEvent:function(1)",
|
|
6492
|
+
"docComment": "",
|
|
6493
|
+
"excerptTokens": [
|
|
6494
|
+
{
|
|
6495
|
+
"kind": "Content",
|
|
6496
|
+
"text": "export declare function createCustomDomEvent(eventName: "
|
|
6497
|
+
},
|
|
6498
|
+
{
|
|
6499
|
+
"kind": "Content",
|
|
6500
|
+
"text": "string"
|
|
6501
|
+
},
|
|
6502
|
+
{
|
|
6503
|
+
"kind": "Content",
|
|
6504
|
+
"text": ", details?: "
|
|
6505
|
+
},
|
|
6506
|
+
{
|
|
6507
|
+
"kind": "Content",
|
|
6508
|
+
"text": "any"
|
|
6509
|
+
},
|
|
6510
|
+
{
|
|
6511
|
+
"kind": "Content",
|
|
6512
|
+
"text": "): "
|
|
6513
|
+
},
|
|
6514
|
+
{
|
|
6515
|
+
"kind": "Reference",
|
|
6516
|
+
"text": "CustomEvent",
|
|
6517
|
+
"canonicalReference": "!CustomEvent:interface"
|
|
6518
|
+
},
|
|
6519
|
+
{
|
|
6520
|
+
"kind": "Content",
|
|
6521
|
+
"text": ";"
|
|
6522
|
+
}
|
|
6523
|
+
],
|
|
6524
|
+
"fileUrlPath": "types/JavaScriptSDK/EnvUtils.d.ts",
|
|
6525
|
+
"returnTypeTokenRange": {
|
|
6526
|
+
"startIndex": 5,
|
|
6527
|
+
"endIndex": 6
|
|
6528
|
+
},
|
|
6529
|
+
"releaseTag": "Public",
|
|
6530
|
+
"overloadIndex": 1,
|
|
6531
|
+
"parameters": [
|
|
6532
|
+
{
|
|
6533
|
+
"parameterName": "eventName",
|
|
6534
|
+
"parameterTypeTokenRange": {
|
|
6535
|
+
"startIndex": 1,
|
|
6536
|
+
"endIndex": 2
|
|
6537
|
+
},
|
|
6538
|
+
"isOptional": false
|
|
6539
|
+
},
|
|
6540
|
+
{
|
|
6541
|
+
"parameterName": "details",
|
|
6542
|
+
"parameterTypeTokenRange": {
|
|
6543
|
+
"startIndex": 3,
|
|
6544
|
+
"endIndex": 4
|
|
6545
|
+
},
|
|
6546
|
+
"isOptional": true
|
|
6547
|
+
}
|
|
6548
|
+
],
|
|
6549
|
+
"name": "createCustomDomEvent"
|
|
6550
|
+
},
|
|
6489
6551
|
{
|
|
6490
6552
|
"kind": "Function",
|
|
6491
6553
|
"canonicalReference": "@microsoft/applicationinsights-core-js!createEnumMap:function(1)",
|
|
@@ -7852,6 +7914,78 @@
|
|
|
7852
7914
|
"parameters": [],
|
|
7853
7915
|
"name": "disableCookies"
|
|
7854
7916
|
},
|
|
7917
|
+
{
|
|
7918
|
+
"kind": "Function",
|
|
7919
|
+
"canonicalReference": "@microsoft/applicationinsights-core-js!dispatchEvent_2:function(1)",
|
|
7920
|
+
"docComment": "",
|
|
7921
|
+
"excerptTokens": [
|
|
7922
|
+
{
|
|
7923
|
+
"kind": "Content",
|
|
7924
|
+
"text": "export declare function dispatchEvent(target: "
|
|
7925
|
+
},
|
|
7926
|
+
{
|
|
7927
|
+
"kind": "Reference",
|
|
7928
|
+
"text": "EventTarget",
|
|
7929
|
+
"canonicalReference": "!EventTarget:interface"
|
|
7930
|
+
},
|
|
7931
|
+
{
|
|
7932
|
+
"kind": "Content",
|
|
7933
|
+
"text": ", evnt: "
|
|
7934
|
+
},
|
|
7935
|
+
{
|
|
7936
|
+
"kind": "Reference",
|
|
7937
|
+
"text": "Event",
|
|
7938
|
+
"canonicalReference": "!Event:interface"
|
|
7939
|
+
},
|
|
7940
|
+
{
|
|
7941
|
+
"kind": "Content",
|
|
7942
|
+
"text": " | "
|
|
7943
|
+
},
|
|
7944
|
+
{
|
|
7945
|
+
"kind": "Reference",
|
|
7946
|
+
"text": "CustomEvent",
|
|
7947
|
+
"canonicalReference": "!CustomEvent:interface"
|
|
7948
|
+
},
|
|
7949
|
+
{
|
|
7950
|
+
"kind": "Content",
|
|
7951
|
+
"text": "): "
|
|
7952
|
+
},
|
|
7953
|
+
{
|
|
7954
|
+
"kind": "Content",
|
|
7955
|
+
"text": "boolean"
|
|
7956
|
+
},
|
|
7957
|
+
{
|
|
7958
|
+
"kind": "Content",
|
|
7959
|
+
"text": ";"
|
|
7960
|
+
}
|
|
7961
|
+
],
|
|
7962
|
+
"fileUrlPath": "types/JavaScriptSDK/EnvUtils.d.ts",
|
|
7963
|
+
"returnTypeTokenRange": {
|
|
7964
|
+
"startIndex": 7,
|
|
7965
|
+
"endIndex": 8
|
|
7966
|
+
},
|
|
7967
|
+
"releaseTag": "Public",
|
|
7968
|
+
"overloadIndex": 1,
|
|
7969
|
+
"parameters": [
|
|
7970
|
+
{
|
|
7971
|
+
"parameterName": "target",
|
|
7972
|
+
"parameterTypeTokenRange": {
|
|
7973
|
+
"startIndex": 1,
|
|
7974
|
+
"endIndex": 2
|
|
7975
|
+
},
|
|
7976
|
+
"isOptional": false
|
|
7977
|
+
},
|
|
7978
|
+
{
|
|
7979
|
+
"parameterName": "evnt",
|
|
7980
|
+
"parameterTypeTokenRange": {
|
|
7981
|
+
"startIndex": 3,
|
|
7982
|
+
"endIndex": 6
|
|
7983
|
+
},
|
|
7984
|
+
"isOptional": false
|
|
7985
|
+
}
|
|
7986
|
+
],
|
|
7987
|
+
"name": "dispatchEvent_2"
|
|
7988
|
+
},
|
|
7855
7989
|
{
|
|
7856
7990
|
"kind": "Function",
|
|
7857
7991
|
"canonicalReference": "@microsoft/applicationinsights-core-js!doPerf:function(1)",
|
|
@@ -12501,6 +12635,33 @@
|
|
|
12501
12635
|
"startIndex": 1,
|
|
12502
12636
|
"endIndex": 2
|
|
12503
12637
|
}
|
|
12638
|
+
},
|
|
12639
|
+
{
|
|
12640
|
+
"kind": "PropertySignature",
|
|
12641
|
+
"canonicalReference": "@microsoft/applicationinsights-core-js!IConfiguration#storagePrefix:member",
|
|
12642
|
+
"docComment": "/**\n * Custom optional value that will be added as a prefix for storage name.\n *\n * @defaultValue\n *\n * undefined\n */\n",
|
|
12643
|
+
"excerptTokens": [
|
|
12644
|
+
{
|
|
12645
|
+
"kind": "Content",
|
|
12646
|
+
"text": "storagePrefix?: "
|
|
12647
|
+
},
|
|
12648
|
+
{
|
|
12649
|
+
"kind": "Content",
|
|
12650
|
+
"text": "string"
|
|
12651
|
+
},
|
|
12652
|
+
{
|
|
12653
|
+
"kind": "Content",
|
|
12654
|
+
"text": ";"
|
|
12655
|
+
}
|
|
12656
|
+
],
|
|
12657
|
+
"isReadonly": false,
|
|
12658
|
+
"isOptional": true,
|
|
12659
|
+
"releaseTag": "Public",
|
|
12660
|
+
"name": "storagePrefix",
|
|
12661
|
+
"propertyTypeTokenRange": {
|
|
12662
|
+
"startIndex": 1,
|
|
12663
|
+
"endIndex": 2
|
|
12664
|
+
}
|
|
12504
12665
|
}
|
|
12505
12666
|
],
|
|
12506
12667
|
"extendsTokenRanges": []
|
|
@@ -19141,6 +19302,51 @@
|
|
|
19141
19302
|
],
|
|
19142
19303
|
"name": "isObject"
|
|
19143
19304
|
},
|
|
19305
|
+
{
|
|
19306
|
+
"kind": "Function",
|
|
19307
|
+
"canonicalReference": "@microsoft/applicationinsights-core-js!isPlainObject:function(1)",
|
|
19308
|
+
"docComment": "/**\n * Checks if the type of the value is a normal plain object (not a null or data)\n *\n * @param value - \n */\n",
|
|
19309
|
+
"excerptTokens": [
|
|
19310
|
+
{
|
|
19311
|
+
"kind": "Content",
|
|
19312
|
+
"text": "export declare function isPlainObject(value: "
|
|
19313
|
+
},
|
|
19314
|
+
{
|
|
19315
|
+
"kind": "Content",
|
|
19316
|
+
"text": "any"
|
|
19317
|
+
},
|
|
19318
|
+
{
|
|
19319
|
+
"kind": "Content",
|
|
19320
|
+
"text": "): "
|
|
19321
|
+
},
|
|
19322
|
+
{
|
|
19323
|
+
"kind": "Content",
|
|
19324
|
+
"text": "boolean"
|
|
19325
|
+
},
|
|
19326
|
+
{
|
|
19327
|
+
"kind": "Content",
|
|
19328
|
+
"text": ";"
|
|
19329
|
+
}
|
|
19330
|
+
],
|
|
19331
|
+
"fileUrlPath": "types/JavaScriptSDK/HelperFuncs.d.ts",
|
|
19332
|
+
"returnTypeTokenRange": {
|
|
19333
|
+
"startIndex": 3,
|
|
19334
|
+
"endIndex": 4
|
|
19335
|
+
},
|
|
19336
|
+
"releaseTag": "Public",
|
|
19337
|
+
"overloadIndex": 1,
|
|
19338
|
+
"parameters": [
|
|
19339
|
+
{
|
|
19340
|
+
"parameterName": "value",
|
|
19341
|
+
"parameterTypeTokenRange": {
|
|
19342
|
+
"startIndex": 1,
|
|
19343
|
+
"endIndex": 2
|
|
19344
|
+
},
|
|
19345
|
+
"isOptional": false
|
|
19346
|
+
}
|
|
19347
|
+
],
|
|
19348
|
+
"name": "isPlainObject"
|
|
19349
|
+
},
|
|
19144
19350
|
{
|
|
19145
19351
|
"kind": "Function",
|
|
19146
19352
|
"canonicalReference": "@microsoft/applicationinsights-core-js!isReactNative:function(1)",
|
|
@@ -24723,6 +24929,83 @@
|
|
|
24723
24929
|
],
|
|
24724
24930
|
"name": "safeGetLogger"
|
|
24725
24931
|
},
|
|
24932
|
+
{
|
|
24933
|
+
"kind": "Function",
|
|
24934
|
+
"canonicalReference": "@microsoft/applicationinsights-core-js!sendCustomEvent:function(1)",
|
|
24935
|
+
"docComment": "",
|
|
24936
|
+
"excerptTokens": [
|
|
24937
|
+
{
|
|
24938
|
+
"kind": "Content",
|
|
24939
|
+
"text": "export declare function sendCustomEvent(evtName: "
|
|
24940
|
+
},
|
|
24941
|
+
{
|
|
24942
|
+
"kind": "Content",
|
|
24943
|
+
"text": "string"
|
|
24944
|
+
},
|
|
24945
|
+
{
|
|
24946
|
+
"kind": "Content",
|
|
24947
|
+
"text": ", cfg?: "
|
|
24948
|
+
},
|
|
24949
|
+
{
|
|
24950
|
+
"kind": "Content",
|
|
24951
|
+
"text": "any"
|
|
24952
|
+
},
|
|
24953
|
+
{
|
|
24954
|
+
"kind": "Content",
|
|
24955
|
+
"text": ", customDetails?: "
|
|
24956
|
+
},
|
|
24957
|
+
{
|
|
24958
|
+
"kind": "Content",
|
|
24959
|
+
"text": "any"
|
|
24960
|
+
},
|
|
24961
|
+
{
|
|
24962
|
+
"kind": "Content",
|
|
24963
|
+
"text": "): "
|
|
24964
|
+
},
|
|
24965
|
+
{
|
|
24966
|
+
"kind": "Content",
|
|
24967
|
+
"text": "boolean"
|
|
24968
|
+
},
|
|
24969
|
+
{
|
|
24970
|
+
"kind": "Content",
|
|
24971
|
+
"text": ";"
|
|
24972
|
+
}
|
|
24973
|
+
],
|
|
24974
|
+
"fileUrlPath": "types/JavaScriptSDK/EnvUtils.d.ts",
|
|
24975
|
+
"returnTypeTokenRange": {
|
|
24976
|
+
"startIndex": 7,
|
|
24977
|
+
"endIndex": 8
|
|
24978
|
+
},
|
|
24979
|
+
"releaseTag": "Public",
|
|
24980
|
+
"overloadIndex": 1,
|
|
24981
|
+
"parameters": [
|
|
24982
|
+
{
|
|
24983
|
+
"parameterName": "evtName",
|
|
24984
|
+
"parameterTypeTokenRange": {
|
|
24985
|
+
"startIndex": 1,
|
|
24986
|
+
"endIndex": 2
|
|
24987
|
+
},
|
|
24988
|
+
"isOptional": false
|
|
24989
|
+
},
|
|
24990
|
+
{
|
|
24991
|
+
"parameterName": "cfg",
|
|
24992
|
+
"parameterTypeTokenRange": {
|
|
24993
|
+
"startIndex": 3,
|
|
24994
|
+
"endIndex": 4
|
|
24995
|
+
},
|
|
24996
|
+
"isOptional": true
|
|
24997
|
+
},
|
|
24998
|
+
{
|
|
24999
|
+
"parameterName": "customDetails",
|
|
25000
|
+
"parameterTypeTokenRange": {
|
|
25001
|
+
"startIndex": 5,
|
|
25002
|
+
"endIndex": 6
|
|
25003
|
+
},
|
|
25004
|
+
"isOptional": true
|
|
25005
|
+
}
|
|
25006
|
+
],
|
|
25007
|
+
"name": "sendCustomEvent"
|
|
25008
|
+
},
|
|
24726
25009
|
{
|
|
24727
25010
|
"kind": "Enum",
|
|
24728
25011
|
"canonicalReference": "@microsoft/applicationinsights-core-js!SendRequestReason:enum",
|
|
@@ -146,6 +146,9 @@ export function createClassFromInterface<T>(defaults?: T): new () => T;
|
|
|
146
146
|
// @public (undocumented)
|
|
147
147
|
export function createCookieMgr(rootConfig?: IConfiguration, logger?: IDiagnosticLogger): ICookieMgr;
|
|
148
148
|
|
|
149
|
+
// @public (undocumented)
|
|
150
|
+
export function createCustomDomEvent(eventName: string, details?: any): CustomEvent;
|
|
151
|
+
|
|
149
152
|
// @public
|
|
150
153
|
export function createEnumMap<E, I = keyof E>(values: {
|
|
151
154
|
[key in keyof E]: E[keyof E];
|
|
@@ -208,6 +211,10 @@ export class DiagnosticLogger implements IDiagnosticLogger {
|
|
|
208
211
|
// @public @deprecated (undocumented)
|
|
209
212
|
export function disableCookies(): void;
|
|
210
213
|
|
|
214
|
+
// @public (undocumented)
|
|
215
|
+
function dispatchEvent_2(target: EventTarget, evnt: Event | CustomEvent): boolean;
|
|
216
|
+
export { dispatchEvent_2 as dispatchEvent }
|
|
217
|
+
|
|
211
218
|
// @public
|
|
212
219
|
export function doPerf<T>(mgrSource: IPerfManagerProvider | IPerfManager, getSource: () => string, func: (perfEvt?: IPerfEvent) => T, details?: () => any, isAsync?: boolean): T;
|
|
213
220
|
|
|
@@ -609,6 +616,7 @@ export interface IConfiguration {
|
|
|
609
616
|
loggingLevelTelemetry?: number;
|
|
610
617
|
maxMessageLimit?: number;
|
|
611
618
|
perfEvtsSendAll?: boolean;
|
|
619
|
+
storagePrefix?: string;
|
|
612
620
|
}
|
|
613
621
|
|
|
614
622
|
// @public (undocumented)
|
|
@@ -955,6 +963,9 @@ export function isNumber(value: any): value is number;
|
|
|
955
963
|
// @public (undocumented)
|
|
956
964
|
export function isObject<T>(value: T): value is T;
|
|
957
965
|
|
|
966
|
+
// @public
|
|
967
|
+
export function isPlainObject(value: any): boolean;
|
|
968
|
+
|
|
958
969
|
// @public
|
|
959
970
|
export function isReactNative(): boolean;
|
|
960
971
|
|
|
@@ -1239,6 +1250,9 @@ export function safeGetCookieMgr(core: IAppInsightsCore, config?: IConfiguration
|
|
|
1239
1250
|
// @public (undocumented)
|
|
1240
1251
|
export function safeGetLogger(core: IAppInsightsCore, config?: IConfiguration): IDiagnosticLogger;
|
|
1241
1252
|
|
|
1253
|
+
// @public (undocumented)
|
|
1254
|
+
export function sendCustomEvent(evtName: string, cfg?: any, customDetails?: any): boolean;
|
|
1255
|
+
|
|
1242
1256
|
// @public
|
|
1243
1257
|
export const enum SendRequestReason {
|
|
1244
1258
|
ManualFlush = 1,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Microsoft Application Insights Core Javascript SDK, 2.8.15-nightly.
|
|
2
|
+
* Microsoft Application Insights Core Javascript SDK, 2.8.15-nightly.2308-01
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*
|
|
5
5
|
* Microsoft Application Insights Team
|
|
@@ -368,6 +368,8 @@ declare namespace ApplicationInsights {
|
|
|
368
368
|
|
|
369
369
|
function createCookieMgr(rootConfig?: IConfiguration, logger?: IDiagnosticLogger): ICookieMgr;
|
|
370
370
|
|
|
371
|
+
function createCustomDomEvent(eventName: string, details?: any): CustomEvent;
|
|
372
|
+
|
|
371
373
|
/**
|
|
372
374
|
* Create a 2 index map that maps an enum's key as both the key and value, X["key"] => "key" and X[0] => "keyof 0".
|
|
373
375
|
* @param values - The values to populate on the new object
|
|
@@ -513,6 +515,9 @@ declare namespace ApplicationInsights {
|
|
|
513
515
|
*/
|
|
514
516
|
function disableCookies(): void;
|
|
515
517
|
|
|
518
|
+
function dispatchEvent_2(target: EventTarget, evnt: Event | CustomEvent): boolean;
|
|
519
|
+
export { dispatchEvent_2 as dispatchEvent }
|
|
520
|
+
|
|
516
521
|
/**
|
|
517
522
|
* Helper function to wrap a function with a perf event
|
|
518
523
|
* @param mgrSource - The Performance Manager or a Performance provider source (may be null)
|
|
@@ -1236,6 +1241,11 @@ declare namespace ApplicationInsights {
|
|
|
1236
1241
|
* this will not send any notifications.
|
|
1237
1242
|
*/
|
|
1238
1243
|
disableDbgExt?: boolean;
|
|
1244
|
+
/**
|
|
1245
|
+
* Custom optional value that will be added as a prefix for storage name.
|
|
1246
|
+
* @defaultValue undefined
|
|
1247
|
+
*/
|
|
1248
|
+
storagePrefix?: string;
|
|
1239
1249
|
}
|
|
1240
1250
|
|
|
1241
1251
|
interface ICookieMgr {
|
|
@@ -2184,6 +2194,12 @@ declare namespace ApplicationInsights {
|
|
|
2184
2194
|
|
|
2185
2195
|
function isObject<T>(value: T): value is T;
|
|
2186
2196
|
|
|
2197
|
+
/**
|
|
2198
|
+
* Checks if the type of the value is a normal plain object (not a null or data)
|
|
2199
|
+
* @param value
|
|
2200
|
+
*/
|
|
2201
|
+
function isPlainObject(value: any): boolean;
|
|
2202
|
+
|
|
2187
2203
|
/**
|
|
2188
2204
|
* Returns whether the environment is reporting that we are running in a React Native Environment
|
|
2189
2205
|
*/
|
|
@@ -2867,6 +2883,8 @@ declare namespace ApplicationInsights {
|
|
|
2867
2883
|
|
|
2868
2884
|
function safeGetLogger(core: IAppInsightsCore, config?: IConfiguration): IDiagnosticLogger;
|
|
2869
2885
|
|
|
2886
|
+
function sendCustomEvent(evtName: string, cfg?: any, customDetails?: any): boolean;
|
|
2887
|
+
|
|
2870
2888
|
/**
|
|
2871
2889
|
* The EventsDiscardedReason enumeration contains a set of values that specify the reason for discarding an event.
|
|
2872
2890
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Application Insights JavaScript SDK - Core, 2.8.15-nightly.
|
|
2
|
+
* Application Insights JavaScript SDK - Core, 2.8.15-nightly.2308-01
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*/
|
|
5
5
|
(function (global, factory) {
|
|
@@ -1258,6 +1258,40 @@
|
|
|
1258
1258
|
}
|
|
1259
1259
|
return value;
|
|
1260
1260
|
}
|
|
1261
|
+
function dispatchEvent(target, evnt) {
|
|
1262
|
+
if (target && target.dispatchEvent && evnt) {
|
|
1263
|
+
target.dispatchEvent(evnt);
|
|
1264
|
+
return true;
|
|
1265
|
+
}
|
|
1266
|
+
return false;
|
|
1267
|
+
}
|
|
1268
|
+
function createCustomDomEvent(eventName, details) {
|
|
1269
|
+
var event = null;
|
|
1270
|
+
var detail = { detail: details || null };
|
|
1271
|
+
if (isFunction(CustomEvent)) {
|
|
1272
|
+
event = new CustomEvent(eventName, detail);
|
|
1273
|
+
}
|
|
1274
|
+
else {
|
|
1275
|
+
var doc = getDocument();
|
|
1276
|
+
if (doc && doc.createEvent) {
|
|
1277
|
+
event = doc.createEvent("CustomEvent");
|
|
1278
|
+
event.initCustomEvent(eventName, true, true, detail);
|
|
1279
|
+
}
|
|
1280
|
+
}
|
|
1281
|
+
return event;
|
|
1282
|
+
}
|
|
1283
|
+
function sendCustomEvent(evtName, cfg, customDetails) {
|
|
1284
|
+
var global = getGlobal();
|
|
1285
|
+
if (global && global.CustomEvent) {
|
|
1286
|
+
try {
|
|
1287
|
+
var details = { cfg: cfg || null, customDetails: customDetails || null };
|
|
1288
|
+
return dispatchEvent(global, createCustomDomEvent(evtName, details));
|
|
1289
|
+
}
|
|
1290
|
+
catch (e) {
|
|
1291
|
+
}
|
|
1292
|
+
}
|
|
1293
|
+
return false;
|
|
1294
|
+
}
|
|
1261
1295
|
|
|
1262
1296
|
var listenerFuncs = ["eventsSent", "eventsDiscarded", "eventsSendRequest", "perfEvent"];
|
|
1263
1297
|
var _aiNamespace = null;
|
|
@@ -1696,7 +1730,7 @@
|
|
|
1696
1730
|
}
|
|
1697
1731
|
|
|
1698
1732
|
var _objDefineProperty = ObjDefineProperty;
|
|
1699
|
-
var version = "2.8.15-nightly.
|
|
1733
|
+
var version = "2.8.15-nightly.2308-01";
|
|
1700
1734
|
var instanceName = "." + newId(6);
|
|
1701
1735
|
var _dataUid = 0;
|
|
1702
1736
|
function _createAccessor(target, prop, value) {
|
|
@@ -4436,6 +4470,7 @@
|
|
|
4436
4470
|
exports.canUseCookies = canUseCookies;
|
|
4437
4471
|
exports.createClassFromInterface = createClassFromInterface;
|
|
4438
4472
|
exports.createCookieMgr = createCookieMgr;
|
|
4473
|
+
exports.createCustomDomEvent = createCustomDomEvent;
|
|
4439
4474
|
exports.createEnumMap = createEnumMap;
|
|
4440
4475
|
exports.createEnumStyle = createEnumStyle;
|
|
4441
4476
|
exports.createProcessTelemetryContext = createProcessTelemetryContext;
|
|
@@ -4448,6 +4483,7 @@
|
|
|
4448
4483
|
exports.deleteCookie = deleteCookie;
|
|
4449
4484
|
exports.detachEvent = detachEvent;
|
|
4450
4485
|
exports.disableCookies = disableCookies;
|
|
4486
|
+
exports.dispatchEvent = dispatchEvent;
|
|
4451
4487
|
exports.doPerf = doPerf;
|
|
4452
4488
|
exports.dumpObj = dumpObj;
|
|
4453
4489
|
exports.eventOff = eventOff;
|
|
@@ -4497,6 +4533,7 @@
|
|
|
4497
4533
|
exports.isNullOrUndefined = isNullOrUndefined;
|
|
4498
4534
|
exports.isNumber = isNumber;
|
|
4499
4535
|
exports.isObject = isObject;
|
|
4536
|
+
exports.isPlainObject = isPlainObject;
|
|
4500
4537
|
exports.isReactNative = isReactNative;
|
|
4501
4538
|
exports.isSafari = isSafari;
|
|
4502
4539
|
exports.isSampledFlag = isSampledFlag;
|
|
@@ -4538,6 +4575,7 @@
|
|
|
4538
4575
|
exports.removePageUnloadEventListener = removePageUnloadEventListener;
|
|
4539
4576
|
exports.safeGetCookieMgr = safeGetCookieMgr;
|
|
4540
4577
|
exports.safeGetLogger = safeGetLogger;
|
|
4578
|
+
exports.sendCustomEvent = sendCustomEvent;
|
|
4541
4579
|
exports.setCookie = setCookie;
|
|
4542
4580
|
exports.setEnableEnvMocks = setEnableEnvMocks;
|
|
4543
4581
|
exports.setGblPerfMgr = setGblPerfMgr;
|