@microsoft/applicationinsights-core-js 3.0.0-beta.2210-16 → 3.0.0-beta.2210-18
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 +131 -117
- 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 +0 -89
- package/dist/applicationinsights-core-js.api.md +6 -6
- package/dist/applicationinsights-core-js.d.ts +7 -17
- package/dist/applicationinsights-core-js.js +131 -117
- 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 +7 -17
- package/dist-esm/Config/ConfigDefaults.js +2 -3
- package/dist-esm/Config/ConfigDefaults.js.map +1 -1
- package/dist-esm/Config/DynamicConfig.js +2 -3
- package/dist-esm/Config/DynamicConfig.js.map +1 -1
- package/dist-esm/Config/DynamicProperty.js +31 -18
- package/dist-esm/Config/DynamicProperty.js.map +1 -1
- package/dist-esm/Config/DynamicState.js +58 -47
- package/dist-esm/Config/DynamicState.js.map +1 -1
- package/dist-esm/Config/DynamicSupport.js +2 -3
- package/dist-esm/Config/DynamicSupport.js.map +1 -1
- package/dist-esm/Config/IConfigDefaults.js +1 -1
- package/dist-esm/Config/IDynamicConfigHandler.js +1 -1
- package/dist-esm/Config/IDynamicPropertyHandler.js +1 -1
- package/dist-esm/Config/IDynamicWatcher.js +1 -1
- package/dist-esm/Config/_IDynamicConfigHandlerState.js +1 -1
- package/dist-esm/JavaScriptSDK/AggregationError.js +1 -1
- package/dist-esm/JavaScriptSDK/AppInsightsCore.js +3 -3
- package/dist-esm/JavaScriptSDK/AppInsightsCore.js.map +1 -1
- package/dist-esm/JavaScriptSDK/BaseTelemetryPlugin.js +1 -1
- package/dist-esm/JavaScriptSDK/ChannelController.js +5 -7
- package/dist-esm/JavaScriptSDK/ChannelController.js.map +1 -1
- package/dist-esm/JavaScriptSDK/CookieMgr.js +12 -12
- package/dist-esm/JavaScriptSDK/CookieMgr.js.map +1 -1
- package/dist-esm/JavaScriptSDK/CoreUtils.js +1 -14
- package/dist-esm/JavaScriptSDK/CoreUtils.js.map +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 +3 -2
- package/dist-esm/JavaScriptSDK/DbgExtensionUtils.js.map +1 -1
- package/dist-esm/JavaScriptSDK/DiagnosticLogger.js +1 -1
- package/dist-esm/JavaScriptSDK/EnvUtils.js +4 -12
- package/dist-esm/JavaScriptSDK/EnvUtils.js.map +1 -1
- package/dist-esm/JavaScriptSDK/EventHelpers.js +2 -3
- package/dist-esm/JavaScriptSDK/EventHelpers.js.map +1 -1
- package/dist-esm/JavaScriptSDK/HelperFuncs.js +3 -41
- package/dist-esm/JavaScriptSDK/HelperFuncs.js.map +1 -1
- package/dist-esm/JavaScriptSDK/InstrumentHooks.js +1 -1
- package/dist-esm/JavaScriptSDK/InternalConstants.js +1 -1
- package/dist-esm/JavaScriptSDK/NotificationManager.js +4 -4
- package/dist-esm/JavaScriptSDK/NotificationManager.js.map +1 -1
- package/dist-esm/JavaScriptSDK/PerfManager.js +4 -5
- package/dist-esm/JavaScriptSDK/PerfManager.js.map +1 -1
- package/dist-esm/JavaScriptSDK/ProcessTelemetryContext.js +4 -4
- package/dist-esm/JavaScriptSDK/ProcessTelemetryContext.js.map +1 -1
- package/dist-esm/JavaScriptSDK/RandomHelper.js +3 -3
- package/dist-esm/JavaScriptSDK/RandomHelper.js.map +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 +3 -3
- package/dist-esm/JavaScriptSDK/W3cTraceParent.js.map +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/IUnloadHook.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/IUnloadableComponent.js +1 -1
- package/dist-esm/__DynamicConstants.js +4 -6
- package/dist-esm/__DynamicConstants.js.map +1 -1
- package/dist-esm/applicationinsights-core-js.js +5 -5
- package/dist-esm/applicationinsights-core-js.js.map +1 -1
- package/package.json +1 -1
- package/src/JavaScriptSDK/AppInsightsCore.ts +3 -3
- package/src/JavaScriptSDK/ChannelController.ts +5 -7
- package/src/JavaScriptSDK/CookieMgr.ts +11 -11
- package/src/JavaScriptSDK/CoreUtils.ts +0 -15
- package/src/JavaScriptSDK/DbgExtensionUtils.ts +2 -1
- package/src/JavaScriptSDK/EnvUtils.ts +2 -11
- package/src/JavaScriptSDK/EventHelpers.ts +1 -2
- package/src/JavaScriptSDK/HelperFuncs.ts +3 -47
- package/src/JavaScriptSDK/NotificationManager.ts +3 -3
- package/src/JavaScriptSDK/PerfManager.ts +3 -4
- package/src/JavaScriptSDK/ProcessTelemetryContext.ts +6 -4
- package/src/JavaScriptSDK/RandomHelper.ts +2 -2
- package/src/JavaScriptSDK/W3cTraceParent.ts +2 -2
- package/types/Config/IDynamicWatcher.d.ts +5 -1
- package/types/Config/_IDynamicConfigHandlerState.d.ts +17 -1
- package/types/JavaScriptSDK/CoreUtils.d.ts +0 -5
- package/types/JavaScriptSDK/EnvUtils.d.ts +0 -6
- package/types/JavaScriptSDK/HelperFuncs.d.ts +0 -18
- package/types/__DynamicConstants.d.ts +1 -3
- package/types/applicationinsights-core-js.d.ts +4 -4
|
@@ -6495,34 +6495,6 @@
|
|
|
6495
6495
|
"endIndex": 2
|
|
6496
6496
|
}
|
|
6497
6497
|
},
|
|
6498
|
-
{
|
|
6499
|
-
"kind": "Function",
|
|
6500
|
-
"canonicalReference": "@microsoft/applicationinsights-core-js!dateNow:function(1)",
|
|
6501
|
-
"docComment": "/**\n * Return the current time via the Date now() function (if available) and falls back to (new Date()).getTime() if now() is unavailable (IE8 or less) https://caniuse.com/#search=Date.now\n */\n",
|
|
6502
|
-
"excerptTokens": [
|
|
6503
|
-
{
|
|
6504
|
-
"kind": "Content",
|
|
6505
|
-
"text": "export declare function dateNow(): "
|
|
6506
|
-
},
|
|
6507
|
-
{
|
|
6508
|
-
"kind": "Content",
|
|
6509
|
-
"text": "number"
|
|
6510
|
-
},
|
|
6511
|
-
{
|
|
6512
|
-
"kind": "Content",
|
|
6513
|
-
"text": ";"
|
|
6514
|
-
}
|
|
6515
|
-
],
|
|
6516
|
-
"fileUrlPath": "types/JavaScriptSDK/HelperFuncs.d.ts",
|
|
6517
|
-
"returnTypeTokenRange": {
|
|
6518
|
-
"startIndex": 1,
|
|
6519
|
-
"endIndex": 2
|
|
6520
|
-
},
|
|
6521
|
-
"releaseTag": "Public",
|
|
6522
|
-
"overloadIndex": 1,
|
|
6523
|
-
"parameters": [],
|
|
6524
|
-
"name": "dateNow"
|
|
6525
|
-
},
|
|
6526
6498
|
{
|
|
6527
6499
|
"kind": "Function",
|
|
6528
6500
|
"canonicalReference": "@microsoft/applicationinsights-core-js!detachEvent:function(1)",
|
|
@@ -8535,39 +8507,6 @@
|
|
|
8535
8507
|
"parameters": [],
|
|
8536
8508
|
"name": "getMsCrypto"
|
|
8537
8509
|
},
|
|
8538
|
-
{
|
|
8539
|
-
"kind": "Function",
|
|
8540
|
-
"canonicalReference": "@microsoft/applicationinsights-core-js!getPerformance:function(1)",
|
|
8541
|
-
"docComment": "/**\n * Returns the performance object if it is present otherwise null. This helper is used to access the performance object from the current global instance which could be window or globalThis for a web worker\n */\n",
|
|
8542
|
-
"excerptTokens": [
|
|
8543
|
-
{
|
|
8544
|
-
"kind": "Content",
|
|
8545
|
-
"text": "export declare function getPerformance(): "
|
|
8546
|
-
},
|
|
8547
|
-
{
|
|
8548
|
-
"kind": "Reference",
|
|
8549
|
-
"text": "Performance",
|
|
8550
|
-
"canonicalReference": "!Performance:interface"
|
|
8551
|
-
},
|
|
8552
|
-
{
|
|
8553
|
-
"kind": "Content",
|
|
8554
|
-
"text": " | null"
|
|
8555
|
-
},
|
|
8556
|
-
{
|
|
8557
|
-
"kind": "Content",
|
|
8558
|
-
"text": ";"
|
|
8559
|
-
}
|
|
8560
|
-
],
|
|
8561
|
-
"fileUrlPath": "types/JavaScriptSDK/EnvUtils.d.ts",
|
|
8562
|
-
"returnTypeTokenRange": {
|
|
8563
|
-
"startIndex": 1,
|
|
8564
|
-
"endIndex": 3
|
|
8565
|
-
},
|
|
8566
|
-
"releaseTag": "Public",
|
|
8567
|
-
"overloadIndex": 1,
|
|
8568
|
-
"parameters": [],
|
|
8569
|
-
"name": "getPerformance"
|
|
8570
|
-
},
|
|
8571
8510
|
{
|
|
8572
8511
|
"kind": "Function",
|
|
8573
8512
|
"canonicalReference": "@microsoft/applicationinsights-core-js!getSetValue:function(1)",
|
|
@@ -21347,34 +21286,6 @@
|
|
|
21347
21286
|
}
|
|
21348
21287
|
]
|
|
21349
21288
|
},
|
|
21350
|
-
{
|
|
21351
|
-
"kind": "Function",
|
|
21352
|
-
"canonicalReference": "@microsoft/applicationinsights-core-js!perfNow:function(1)",
|
|
21353
|
-
"docComment": "/**\n * Return the current value of the Performance Api now() function (if available) and fallback to dateNow() if it is unavailable (IE9 or less) https://caniuse.com/#search=performance.now\n */\n",
|
|
21354
|
-
"excerptTokens": [
|
|
21355
|
-
{
|
|
21356
|
-
"kind": "Content",
|
|
21357
|
-
"text": "export declare function perfNow(): "
|
|
21358
|
-
},
|
|
21359
|
-
{
|
|
21360
|
-
"kind": "Content",
|
|
21361
|
-
"text": "number"
|
|
21362
|
-
},
|
|
21363
|
-
{
|
|
21364
|
-
"kind": "Content",
|
|
21365
|
-
"text": ";"
|
|
21366
|
-
}
|
|
21367
|
-
],
|
|
21368
|
-
"fileUrlPath": "types/JavaScriptSDK/CoreUtils.d.ts",
|
|
21369
|
-
"returnTypeTokenRange": {
|
|
21370
|
-
"startIndex": 1,
|
|
21371
|
-
"endIndex": 2
|
|
21372
|
-
},
|
|
21373
|
-
"releaseTag": "Public",
|
|
21374
|
-
"overloadIndex": 1,
|
|
21375
|
-
"parameters": [],
|
|
21376
|
-
"name": "perfNow"
|
|
21377
|
-
},
|
|
21378
21289
|
{
|
|
21379
21290
|
"kind": "Class",
|
|
21380
21291
|
"canonicalReference": "@microsoft/applicationinsights-core-js!ProcessTelemetryContext:class",
|
|
@@ -9,6 +9,7 @@ import { arrIndexOf } from '@nevware21/ts-utils';
|
|
|
9
9
|
import { arrMap } from '@nevware21/ts-utils';
|
|
10
10
|
import { arrReduce } from '@nevware21/ts-utils';
|
|
11
11
|
import { asString } from '@nevware21/ts-utils';
|
|
12
|
+
import { utcNow as dateNow } from '@nevware21/ts-utils';
|
|
12
13
|
import { objDeepFreeze as deepFreeze } from '@nevware21/ts-utils';
|
|
13
14
|
import { dumpObj } from '@nevware21/ts-utils';
|
|
14
15
|
import { EnumCls } from '@nevware21/ts-utils';
|
|
@@ -17,6 +18,7 @@ import { getGlobal } from '@microsoft/applicationinsights-shims';
|
|
|
17
18
|
import { getInst as getGlobalInst } from '@nevware21/ts-utils';
|
|
18
19
|
import { getHistory } from '@nevware21/ts-utils';
|
|
19
20
|
import { getNavigator } from '@nevware21/ts-utils';
|
|
21
|
+
import { getPerformance } from '@nevware21/ts-utils';
|
|
20
22
|
import { getWindow } from '@nevware21/ts-utils';
|
|
21
23
|
import { hasDocument } from '@nevware21/ts-utils';
|
|
22
24
|
import { hasHistory } from '@nevware21/ts-utils';
|
|
@@ -44,6 +46,7 @@ import { objFreeze } from '@nevware21/ts-utils';
|
|
|
44
46
|
import { objKeys } from '@nevware21/ts-utils';
|
|
45
47
|
import { objSeal } from '@nevware21/ts-utils';
|
|
46
48
|
import { objToString } from '@nevware21/ts-utils';
|
|
49
|
+
import { perfNow } from '@nevware21/ts-utils';
|
|
47
50
|
import { strEndsWith } from '@nevware21/ts-utils';
|
|
48
51
|
import { strShimFunction as strFunction } from '@microsoft/applicationinsights-shims';
|
|
49
52
|
import { strShimObject as strObject } from '@microsoft/applicationinsights-shims';
|
|
@@ -202,8 +205,7 @@ export const createValueMap: <E, V = E>(values: {
|
|
|
202
205
|
[key in keyof E]: [E[keyof E], V[keyof V]];
|
|
203
206
|
}) => V;
|
|
204
207
|
|
|
205
|
-
|
|
206
|
-
export function dateNow(): number;
|
|
208
|
+
export { dateNow }
|
|
207
209
|
|
|
208
210
|
export { deepFreeze }
|
|
209
211
|
|
|
@@ -500,8 +502,7 @@ export function getMsCrypto(): Crypto | null;
|
|
|
500
502
|
|
|
501
503
|
export { getNavigator }
|
|
502
504
|
|
|
503
|
-
|
|
504
|
-
export function getPerformance(): Performance | null;
|
|
505
|
+
export { getPerformance }
|
|
505
506
|
|
|
506
507
|
// @public
|
|
507
508
|
export function getSetValue<T, K extends keyof T>(target: T, field: K, defValue?: T[K]): T[K];
|
|
@@ -1170,8 +1171,7 @@ export class PerfManager implements IPerfManager {
|
|
|
1170
1171
|
setCtx(key: string, value: any): void;
|
|
1171
1172
|
}
|
|
1172
1173
|
|
|
1173
|
-
|
|
1174
|
-
export function perfNow(): number;
|
|
1174
|
+
export { perfNow }
|
|
1175
1175
|
|
|
1176
1176
|
// @public @deprecated
|
|
1177
1177
|
export class ProcessTelemetryContext implements IProcessTelemetryContext {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Microsoft Application Insights Core Javascript SDK, 3.0.0-beta.2210-
|
|
2
|
+
* Microsoft Application Insights Core Javascript SDK, 3.0.0-beta.2210-18
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*
|
|
5
5
|
* Microsoft Application Insights Team
|
|
@@ -12,6 +12,7 @@ declare namespace ApplicationInsights {
|
|
|
12
12
|
import { arrMap } from '@nevware21/ts-utils';
|
|
13
13
|
import { arrReduce } from '@nevware21/ts-utils';
|
|
14
14
|
import { asString } from '@nevware21/ts-utils';
|
|
15
|
+
import { utcNow as dateNow } from '@nevware21/ts-utils';
|
|
15
16
|
import { objDeepFreeze as deepFreeze } from '@nevware21/ts-utils';
|
|
16
17
|
import { dumpObj } from '@nevware21/ts-utils';
|
|
17
18
|
import { EnumCls } from '@nevware21/ts-utils';
|
|
@@ -20,6 +21,7 @@ declare namespace ApplicationInsights {
|
|
|
20
21
|
import { getInst as getGlobalInst } from '@nevware21/ts-utils';
|
|
21
22
|
import { getHistory } from '@nevware21/ts-utils';
|
|
22
23
|
import { getNavigator } from '@nevware21/ts-utils';
|
|
24
|
+
import { getPerformance } from '@nevware21/ts-utils';
|
|
23
25
|
import { getWindow } from '@nevware21/ts-utils';
|
|
24
26
|
import { hasDocument } from '@nevware21/ts-utils';
|
|
25
27
|
import { hasHistory } from '@nevware21/ts-utils';
|
|
@@ -47,6 +49,7 @@ declare namespace ApplicationInsights {
|
|
|
47
49
|
import { objKeys } from '@nevware21/ts-utils';
|
|
48
50
|
import { objSeal } from '@nevware21/ts-utils';
|
|
49
51
|
import { objToString } from '@nevware21/ts-utils';
|
|
52
|
+
import { perfNow } from '@nevware21/ts-utils';
|
|
50
53
|
import { strEndsWith } from '@nevware21/ts-utils';
|
|
51
54
|
import { strShimFunction as strFunction } from '@microsoft/applicationinsights-shims';
|
|
52
55
|
import { strShimObject as strObject } from '@microsoft/applicationinsights-shims';
|
|
@@ -432,11 +435,7 @@ declare namespace ApplicationInsights {
|
|
|
432
435
|
[key in keyof E]: [E[keyof E], V[keyof V]];
|
|
433
436
|
}) => V;
|
|
434
437
|
|
|
435
|
-
|
|
436
|
-
* Return the current time via the Date now() function (if available) and falls back to (new Date()).getTime() if now() is unavailable (IE8 or less)
|
|
437
|
-
* https://caniuse.com/#search=Date.now
|
|
438
|
-
*/
|
|
439
|
-
function dateNow(): number;
|
|
438
|
+
export { dateNow }
|
|
440
439
|
|
|
441
440
|
export { deepFreeze }
|
|
442
441
|
|
|
@@ -793,12 +792,7 @@ declare namespace ApplicationInsights {
|
|
|
793
792
|
|
|
794
793
|
export { getNavigator }
|
|
795
794
|
|
|
796
|
-
|
|
797
|
-
* Returns the performance object if it is present otherwise null.
|
|
798
|
-
* This helper is used to access the performance object from the current
|
|
799
|
-
* global instance which could be window or globalThis for a web worker
|
|
800
|
-
*/
|
|
801
|
-
function getPerformance(): Performance | null;
|
|
795
|
+
export { getPerformance }
|
|
802
796
|
|
|
803
797
|
/**
|
|
804
798
|
* Returns the current value from the target object if not null or undefined otherwise sets the new value and returns it
|
|
@@ -2505,11 +2499,7 @@ declare namespace ApplicationInsights {
|
|
|
2505
2499
|
getCtx(key: string): any;
|
|
2506
2500
|
}
|
|
2507
2501
|
|
|
2508
|
-
|
|
2509
|
-
* Return the current value of the Performance Api now() function (if available) and fallback to dateNow() if it is unavailable (IE9 or less)
|
|
2510
|
-
* https://caniuse.com/#search=performance.now
|
|
2511
|
-
*/
|
|
2512
|
-
function perfNow(): number;
|
|
2502
|
+
export { perfNow }
|
|
2513
2503
|
|
|
2514
2504
|
/**
|
|
2515
2505
|
* This class will be removed!
|