@microsoft/applicationinsights-core-js 3.0.0-beta.2208-14 → 3.0.0-beta.2208-19
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/README.md +7 -0
- package/browser/applicationinsights-core-js.integrity.json +9 -9
- package/browser/applicationinsights-core-js.js +2040 -2149
- 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 +8265 -12112
- package/dist/applicationinsights-core-js.api.md +87 -177
- package/dist/applicationinsights-core-js.d.ts +88 -494
- package/dist/applicationinsights-core-js.js +2040 -2149
- 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 +88 -494
- package/dist-esm/JavaScriptSDK/AppInsightsCore.js +2 -2
- package/dist-esm/JavaScriptSDK/AppInsightsCore.js.map +1 -1
- package/dist-esm/JavaScriptSDK/BaseCore.js +11 -12
- package/dist-esm/JavaScriptSDK/BaseCore.js.map +1 -1
- package/dist-esm/JavaScriptSDK/BaseTelemetryPlugin.js +3 -2
- package/dist-esm/JavaScriptSDK/BaseTelemetryPlugin.js.map +1 -1
- package/dist-esm/JavaScriptSDK/ChannelController.js +2 -2
- package/dist-esm/JavaScriptSDK/ChannelController.js.map +1 -1
- package/dist-esm/JavaScriptSDK/CookieMgr.js +27 -26
- package/dist-esm/JavaScriptSDK/CookieMgr.js.map +1 -1
- package/dist-esm/JavaScriptSDK/CoreUtils.js +6 -133
- 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 -3
- package/dist-esm/JavaScriptSDK/DbgExtensionUtils.js.map +1 -1
- package/dist-esm/JavaScriptSDK/DiagnosticLogger.js +4 -3
- package/dist-esm/JavaScriptSDK/DiagnosticLogger.js.map +1 -1
- package/dist-esm/JavaScriptSDK/EnvUtils.js +132 -136
- 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 +23 -470
- package/dist-esm/JavaScriptSDK/HelperFuncs.js.map +1 -1
- package/dist-esm/JavaScriptSDK/InstrumentHooks.js +5 -5
- package/dist-esm/JavaScriptSDK/InstrumentHooks.js.map +1 -1
- package/dist-esm/JavaScriptSDK/InternalConstants.js +4 -4
- package/dist-esm/JavaScriptSDK/InternalConstants.js.map +1 -1
- package/dist-esm/JavaScriptSDK/NotificationManager.js +2 -2
- package/dist-esm/JavaScriptSDK/NotificationManager.js.map +1 -1
- package/dist-esm/JavaScriptSDK/PerfManager.js +4 -8
- package/dist-esm/JavaScriptSDK/PerfManager.js.map +1 -1
- package/dist-esm/JavaScriptSDK/ProcessTelemetryContext.js +3 -3
- package/dist-esm/JavaScriptSDK/ProcessTelemetryContext.js.map +1 -1
- package/dist-esm/JavaScriptSDK/RandomHelper.js +1 -1
- package/dist-esm/JavaScriptSDK/TelemetryHelpers.js +2 -2
- package/dist-esm/JavaScriptSDK/TelemetryHelpers.js.map +1 -1
- package/dist-esm/JavaScriptSDK/TelemetryInitializerPlugin.js +3 -3
- package/dist-esm/JavaScriptSDK/TelemetryInitializerPlugin.js.map +1 -1
- package/dist-esm/JavaScriptSDK/UnloadHandlerContainer.js +2 -3
- package/dist-esm/JavaScriptSDK/UnloadHandlerContainer.js.map +1 -1
- package/dist-esm/JavaScriptSDK/W3cTraceParent.js +2 -2
- package/dist-esm/JavaScriptSDK/W3cTraceParent.js.map +1 -1
- package/dist-esm/JavaScriptSDK.Enums/EnumHelperFuncs.js +5 -31
- package/dist-esm/JavaScriptSDK.Enums/EnumHelperFuncs.js.map +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 +10 -12
- package/dist-esm/__DynamicConstants.js.map +1 -1
- package/dist-esm/applicationinsights-core-js.js +6 -5
- package/dist-esm/applicationinsights-core-js.js.map +1 -1
- package/package.json +4 -3
- package/src/JavaScriptSDK/AppInsightsCore.ts +1 -1
- package/src/JavaScriptSDK/BaseCore.ts +2 -4
- package/src/JavaScriptSDK/BaseTelemetryPlugin.ts +2 -1
- package/src/JavaScriptSDK/ChannelController.ts +1 -1
- package/src/JavaScriptSDK/CookieMgr.ts +6 -5
- package/src/JavaScriptSDK/CoreUtils.ts +4 -416
- package/src/JavaScriptSDK/DbgExtensionUtils.ts +2 -2
- package/src/JavaScriptSDK/DiagnosticLogger.ts +3 -2
- package/src/JavaScriptSDK/EnvUtils.ts +145 -148
- package/src/JavaScriptSDK/EventHelpers.ts +1 -2
- package/src/JavaScriptSDK/HelperFuncs.ts +22 -536
- package/src/JavaScriptSDK/InstrumentHooks.ts +4 -4
- package/src/JavaScriptSDK/InternalConstants.ts +3 -3
- package/src/JavaScriptSDK/NotificationManager.ts +1 -1
- package/src/JavaScriptSDK/PerfManager.ts +3 -7
- package/src/JavaScriptSDK/ProcessTelemetryContext.ts +4 -4
- package/src/JavaScriptSDK/TelemetryHelpers.ts +1 -1
- package/src/JavaScriptSDK/TelemetryInitializerPlugin.ts +2 -2
- package/src/JavaScriptSDK/UnloadHandlerContainer.ts +1 -2
- package/src/JavaScriptSDK/W3cTraceParent.ts +1 -1
- package/src/JavaScriptSDK.Enums/EnumHelperFuncs.ts +5 -36
- package/tsconfig.json +1 -1
- package/types/JavaScriptSDK/CoreUtils.d.ts +0 -270
- package/types/JavaScriptSDK/EnvUtils.d.ts +0 -65
- package/types/JavaScriptSDK/HelperFuncs.d.ts +3 -154
- package/types/JavaScriptSDK.Enums/EnumHelperFuncs.d.ts +6 -18
- package/types/__DynamicConstants.d.ts +1 -3
- package/types/applicationinsights-core-js.d.ts +5 -4
- package/types/tsdoc-metadata.json +1 -1
|
@@ -4,12 +4,53 @@
|
|
|
4
4
|
|
|
5
5
|
```ts
|
|
6
6
|
|
|
7
|
+
import { arrForEach } from '@nevware21/ts-utils';
|
|
8
|
+
import { arrIndexOf } from '@nevware21/ts-utils';
|
|
9
|
+
import { arrMap } from '@nevware21/ts-utils';
|
|
10
|
+
import { arrReduce } from '@nevware21/ts-utils';
|
|
11
|
+
import { objDeepFreeze as deepFreeze } from '@nevware21/ts-utils';
|
|
12
|
+
import { dumpObj } from '@nevware21/ts-utils';
|
|
13
|
+
import { EnumCls } from '@nevware21/ts-utils';
|
|
14
|
+
import { getDocument } from '@nevware21/ts-utils';
|
|
7
15
|
import { getGlobal } from '@microsoft/applicationinsights-shims';
|
|
16
|
+
import { getInst as getGlobalInst } from '@nevware21/ts-utils';
|
|
17
|
+
import { getHistory } from '@nevware21/ts-utils';
|
|
18
|
+
import { getNavigator } from '@nevware21/ts-utils';
|
|
19
|
+
import { getWindow } from '@nevware21/ts-utils';
|
|
20
|
+
import { hasDocument } from '@nevware21/ts-utils';
|
|
21
|
+
import { hasHistory } from '@nevware21/ts-utils';
|
|
22
|
+
import { hasNavigator } from '@nevware21/ts-utils';
|
|
23
|
+
import { objHasOwnProperty as hasOwnProperty } from '@nevware21/ts-utils';
|
|
24
|
+
import { hasWindow } from '@nevware21/ts-utils';
|
|
25
|
+
import { isArray } from '@nevware21/ts-utils';
|
|
26
|
+
import { isBoolean } from '@nevware21/ts-utils';
|
|
27
|
+
import { isDate } from '@nevware21/ts-utils';
|
|
28
|
+
import { isError } from '@nevware21/ts-utils';
|
|
29
|
+
import { isFunction } from '@nevware21/ts-utils';
|
|
30
|
+
import { isNotTruthy } from '@nevware21/ts-utils';
|
|
31
|
+
import { isNullOrUndefined } from '@nevware21/ts-utils';
|
|
32
|
+
import { isNumber } from '@nevware21/ts-utils';
|
|
33
|
+
import { isObject } from '@nevware21/ts-utils';
|
|
34
|
+
import { isString } from '@nevware21/ts-utils';
|
|
35
|
+
import { isSymbol } from '@nevware21/ts-utils';
|
|
36
|
+
import { isTruthy } from '@nevware21/ts-utils';
|
|
37
|
+
import { isTypeof } from '@nevware21/ts-utils';
|
|
38
|
+
import { isUndefined } from '@nevware21/ts-utils';
|
|
8
39
|
import { objCreateFn as objCreate } from '@microsoft/applicationinsights-shims';
|
|
40
|
+
import { objDefineAccessors } from '@nevware21/ts-utils';
|
|
41
|
+
import { objForEachKey } from '@nevware21/ts-utils';
|
|
42
|
+
import { objFreeze } from '@nevware21/ts-utils';
|
|
43
|
+
import { objKeys } from '@nevware21/ts-utils';
|
|
44
|
+
import { objSeal } from '@nevware21/ts-utils';
|
|
45
|
+
import { objToString } from '@nevware21/ts-utils';
|
|
46
|
+
import { strEndsWith } from '@nevware21/ts-utils';
|
|
9
47
|
import { strShimFunction as strFunction } from '@microsoft/applicationinsights-shims';
|
|
10
48
|
import { strShimObject as strObject } from '@microsoft/applicationinsights-shims';
|
|
11
49
|
import { strShimPrototype as strPrototype } from '@microsoft/applicationinsights-shims';
|
|
50
|
+
import { strStartsWith } from '@nevware21/ts-utils';
|
|
51
|
+
import { strTrim } from '@nevware21/ts-utils';
|
|
12
52
|
import { strShimUndefined as strUndefined } from '@microsoft/applicationinsights-shims';
|
|
53
|
+
import { throwError } from '@nevware21/ts-utils';
|
|
13
54
|
|
|
14
55
|
// @public
|
|
15
56
|
export function __getRegisteredEvents(target: any, eventName?: string, evtNamespace?: string | string[]): _IRegisteredEvents[];
|
|
@@ -41,17 +82,13 @@ export class AppInsightsCore extends BaseCore implements IAppInsightsCore {
|
|
|
41
82
|
// @public (undocumented)
|
|
42
83
|
export function areCookiesSupported(logger?: IDiagnosticLogger): any;
|
|
43
84
|
|
|
44
|
-
|
|
45
|
-
export function arrForEach<T = any>(arr: T[], callbackfn: (value: T, index?: number, array?: T[]) => undefined | void | number, thisArg?: any): void;
|
|
85
|
+
export { arrForEach }
|
|
46
86
|
|
|
47
|
-
|
|
48
|
-
export function arrIndexOf<T>(arr: T[], searchElement: T, fromIndex?: number): number;
|
|
87
|
+
export { arrIndexOf }
|
|
49
88
|
|
|
50
|
-
|
|
51
|
-
export function arrMap<T, R>(arr: T[], callbackfn: (value: T, index?: number, array?: T[]) => R, thisArg?: any): R[];
|
|
89
|
+
export { arrMap }
|
|
52
90
|
|
|
53
|
-
|
|
54
|
-
export function arrReduce<T, R>(arr: T[], callbackfn: (previousValue: T | R, currentValue?: T, currentIndex?: number, array?: T[]) => R, initialValue?: R): R;
|
|
91
|
+
export { arrReduce }
|
|
55
92
|
|
|
56
93
|
// @public
|
|
57
94
|
export function attachEvent(obj: any, eventNameWithoutOn: string, handlerRef: any, useCapture?: boolean): boolean;
|
|
@@ -134,12 +171,6 @@ export abstract class BaseTelemetryPlugin implements ITelemetryPlugin {
|
|
|
134
171
|
version?: string;
|
|
135
172
|
}
|
|
136
173
|
|
|
137
|
-
// @public @deprecated (undocumented)
|
|
138
|
-
export function canUseCookies(logger: IDiagnosticLogger): any;
|
|
139
|
-
|
|
140
|
-
// @public @deprecated
|
|
141
|
-
export const CoreUtils: ICoreUtils;
|
|
142
|
-
|
|
143
174
|
// @public
|
|
144
175
|
export function createClassFromInterface<T>(defaults?: T): new () => T;
|
|
145
176
|
|
|
@@ -147,14 +178,9 @@ export function createClassFromInterface<T>(defaults?: T): new () => T;
|
|
|
147
178
|
export function createCookieMgr(rootConfig?: IConfiguration, logger?: IDiagnosticLogger): ICookieMgr;
|
|
148
179
|
|
|
149
180
|
// @public
|
|
150
|
-
export
|
|
151
|
-
[key in keyof E]: E[keyof E];
|
|
152
|
-
}): EnumMap<E, I>;
|
|
153
|
-
|
|
154
|
-
// @public
|
|
155
|
-
export function createEnumStyle<E>(values: {
|
|
181
|
+
export const createEnumStyle: <E>(values: {
|
|
156
182
|
[key in keyof E]: E[keyof E];
|
|
157
|
-
})
|
|
183
|
+
}) => EnumValue<E>;
|
|
158
184
|
|
|
159
185
|
// @public
|
|
160
186
|
export function createProcessTelemetryContext(telemetryChain: ITelemetryPluginChain | null, config: IConfiguration, core: IAppInsightsCore, startAt?: IPlugin): IProcessTelemetryContext;
|
|
@@ -172,18 +198,14 @@ export function createUnloadHandlerContainer(): {
|
|
|
172
198
|
};
|
|
173
199
|
|
|
174
200
|
// @public
|
|
175
|
-
export
|
|
201
|
+
export const createValueMap: <E, V = E>(values: {
|
|
176
202
|
[key in keyof E]: [E[keyof E], V[keyof V]];
|
|
177
|
-
})
|
|
203
|
+
}) => V;
|
|
178
204
|
|
|
179
205
|
// @public
|
|
180
206
|
export function dateNow(): number;
|
|
181
207
|
|
|
182
|
-
|
|
183
|
-
export function deepFreeze<T>(obj: T): T;
|
|
184
|
-
|
|
185
|
-
// @public @deprecated (undocumented)
|
|
186
|
-
export function deleteCookie(logger: IDiagnosticLogger, name: string): boolean;
|
|
208
|
+
export { deepFreeze }
|
|
187
209
|
|
|
188
210
|
// @public
|
|
189
211
|
export function detachEvent(obj: any, eventNameWithoutOn: string, handlerRef: any, useCapture?: boolean): void;
|
|
@@ -205,14 +227,10 @@ export class DiagnosticLogger implements IDiagnosticLogger {
|
|
|
205
227
|
warnToConsole(message: string): void;
|
|
206
228
|
}
|
|
207
229
|
|
|
208
|
-
// @public @deprecated (undocumented)
|
|
209
|
-
export function disableCookies(): void;
|
|
210
|
-
|
|
211
230
|
// @public
|
|
212
231
|
export function doPerf<T>(mgrSource: IPerfManagerProvider | IPerfManager, getSource: () => string, func: (perfEvt?: IPerfEvent) => T, details?: () => any, isAsync?: boolean): T;
|
|
213
232
|
|
|
214
|
-
|
|
215
|
-
export function dumpObj(object: any): string;
|
|
233
|
+
export { dumpObj }
|
|
216
234
|
|
|
217
235
|
// @public
|
|
218
236
|
export const enum eEventsDiscardedReason {
|
|
@@ -401,17 +419,7 @@ export const enum eLoggingSeverity {
|
|
|
401
419
|
}
|
|
402
420
|
|
|
403
421
|
// @public (undocumented)
|
|
404
|
-
export type
|
|
405
|
-
readonly [key in keyof E extends string ? keyof E : never]: key extends string ? key : keyof E;
|
|
406
|
-
} & I;
|
|
407
|
-
|
|
408
|
-
// @public (undocumented)
|
|
409
|
-
export type EnumValue<E = any> = {
|
|
410
|
-
readonly [key in keyof E]: E[key];
|
|
411
|
-
};
|
|
412
|
-
|
|
413
|
-
// @public (undocumented)
|
|
414
|
-
export const EventHelper: IEventHelper;
|
|
422
|
+
export type EnumValue<E = any> = EnumCls<E>;
|
|
415
423
|
|
|
416
424
|
// @public
|
|
417
425
|
export function eventOff<T>(target: T, eventName: string, handlerRef: any, evtNamespace?: string | string[] | null, useCapture?: boolean): void;
|
|
@@ -443,9 +451,6 @@ export function generateW3CId(): string;
|
|
|
443
451
|
// @public
|
|
444
452
|
export function getConsole(): Console | null;
|
|
445
453
|
|
|
446
|
-
// @public @deprecated (undocumented)
|
|
447
|
-
export function getCookie(logger: IDiagnosticLogger, name: string): string;
|
|
448
|
-
|
|
449
454
|
// @public
|
|
450
455
|
export function getCrypto(): Crypto | null;
|
|
451
456
|
|
|
@@ -455,8 +460,7 @@ export function getDebugExt(config: IConfiguration): IDbgExtension;
|
|
|
455
460
|
// @public (undocumented)
|
|
456
461
|
export function getDebugListener(config: IConfiguration): INotificationListener;
|
|
457
462
|
|
|
458
|
-
|
|
459
|
-
export function getDocument(): Document | null;
|
|
463
|
+
export { getDocument }
|
|
460
464
|
|
|
461
465
|
// @public
|
|
462
466
|
export function getExceptionName(object: any): string;
|
|
@@ -476,11 +480,9 @@ export function getGblPerfMgr(): IPerfManager;
|
|
|
476
480
|
|
|
477
481
|
export { getGlobal }
|
|
478
482
|
|
|
479
|
-
|
|
480
|
-
export function getGlobalInst<T>(name: string): T;
|
|
483
|
+
export { getGlobalInst }
|
|
481
484
|
|
|
482
|
-
|
|
483
|
-
export function getHistory(): History | null;
|
|
485
|
+
export { getHistory }
|
|
484
486
|
|
|
485
487
|
// @public
|
|
486
488
|
export function getIEVersion(userAgentStr?: string): number;
|
|
@@ -494,8 +496,7 @@ export function getLocation(checkForMock?: boolean): Location | null;
|
|
|
494
496
|
// @public
|
|
495
497
|
export function getMsCrypto(): Crypto | null;
|
|
496
498
|
|
|
497
|
-
|
|
498
|
-
export function getNavigator(): Navigator | null;
|
|
499
|
+
export { getNavigator }
|
|
499
500
|
|
|
500
501
|
// @public
|
|
501
502
|
export function getPerformance(): Performance | null;
|
|
@@ -503,26 +504,20 @@ export function getPerformance(): Performance | null;
|
|
|
503
504
|
// @public
|
|
504
505
|
export function getSetValue<T, K extends keyof T>(target: T, field: K, defValue?: T[K]): T[K];
|
|
505
506
|
|
|
506
|
-
|
|
507
|
-
export function getWindow(): Window | null;
|
|
507
|
+
export { getWindow }
|
|
508
508
|
|
|
509
|
-
|
|
510
|
-
export function hasDocument(): boolean;
|
|
509
|
+
export { hasDocument }
|
|
511
510
|
|
|
512
|
-
|
|
513
|
-
export function hasHistory(): boolean;
|
|
511
|
+
export { hasHistory }
|
|
514
512
|
|
|
515
513
|
// @public
|
|
516
514
|
export function hasJSON(): boolean;
|
|
517
515
|
|
|
518
|
-
|
|
519
|
-
export function hasNavigator(): boolean;
|
|
516
|
+
export { hasNavigator }
|
|
520
517
|
|
|
521
|
-
|
|
522
|
-
export function hasOwnProperty(obj: any, prop: string): boolean;
|
|
518
|
+
export { hasOwnProperty }
|
|
523
519
|
|
|
524
|
-
|
|
525
|
-
export function hasWindow(): boolean;
|
|
520
|
+
export { hasWindow }
|
|
526
521
|
|
|
527
522
|
// @public (undocumented)
|
|
528
523
|
export interface IAppInsightsCore extends IPerfManagerProvider {
|
|
@@ -630,51 +625,6 @@ export interface ICookieMgrConfig {
|
|
|
630
625
|
setCookie?: (name: string, value: string) => void;
|
|
631
626
|
}
|
|
632
627
|
|
|
633
|
-
// @public @deprecated
|
|
634
|
-
export interface ICoreUtils {
|
|
635
|
-
addEventHandler: (eventName: string, callback: any, evtNamespace?: string | string[]) => boolean;
|
|
636
|
-
arrForEach: <T>(arr: T[], callbackfn: (value: T, index?: number, array?: T[]) => void | number, thisArg?: any) => void;
|
|
637
|
-
arrIndexOf: <T>(arr: T[], searchElement: T, fromIndex?: number) => number;
|
|
638
|
-
arrMap: <T, R>(arr: T[], callbackfn: (value: T, index?: number, array?: T[]) => R, thisArg?: any) => R[];
|
|
639
|
-
arrReduce: <T, R>(arr: T[], callbackfn: (previousValue: T | R, currentValue?: T, currentIndex?: number, array?: T[]) => R, initialValue?: R) => R;
|
|
640
|
-
// @deprecated
|
|
641
|
-
_canUseCookies: boolean;
|
|
642
|
-
dateNow: () => number;
|
|
643
|
-
// @deprecated (undocumented)
|
|
644
|
-
disableCookies: () => void;
|
|
645
|
-
generateW3CId: () => string;
|
|
646
|
-
// (undocumented)
|
|
647
|
-
hasOwnProperty: (obj: any, prop: string) => boolean;
|
|
648
|
-
isArray: (obj: any) => boolean;
|
|
649
|
-
isBoolean: (value: any) => value is boolean;
|
|
650
|
-
isDate: (obj: any) => obj is Date;
|
|
651
|
-
isError: (obj: any) => obj is Error;
|
|
652
|
-
isFunction: (value: any) => value is Function;
|
|
653
|
-
isIE: () => boolean;
|
|
654
|
-
// (undocumented)
|
|
655
|
-
isNullOrUndefined: (value: any) => boolean;
|
|
656
|
-
isNumber: (value: any) => value is number;
|
|
657
|
-
isObject: (value: any) => boolean;
|
|
658
|
-
isString: (value: any) => value is string;
|
|
659
|
-
// (undocumented)
|
|
660
|
-
isTypeof: (value: any, theType: string) => boolean;
|
|
661
|
-
// (undocumented)
|
|
662
|
-
isUndefined: (value: any) => boolean;
|
|
663
|
-
mwcRandom32: (signed?: boolean) => number;
|
|
664
|
-
mwcRandomSeed: (value?: number) => void;
|
|
665
|
-
// (undocumented)
|
|
666
|
-
newGuid: () => string;
|
|
667
|
-
newId: (maxLength?: number) => string;
|
|
668
|
-
objCreate: (obj: object) => any;
|
|
669
|
-
objDefineAccessors: <T>(target: any, prop: string, getProp?: () => T, setProp?: (v: T) => void) => boolean;
|
|
670
|
-
objKeys: (obj: {}) => string[];
|
|
671
|
-
perfNow: () => number;
|
|
672
|
-
random32: (signed?: boolean) => number;
|
|
673
|
-
randomValue: (maxValue: number) => number;
|
|
674
|
-
strTrim: (str: any) => string;
|
|
675
|
-
toISOString: (date: Date) => string;
|
|
676
|
-
}
|
|
677
|
-
|
|
678
628
|
// @public (undocumented)
|
|
679
629
|
export interface ICustomProperties {
|
|
680
630
|
// (undocumented)
|
|
@@ -725,16 +675,6 @@ export interface IDistributedTraceContext {
|
|
|
725
675
|
setTraceId(newValue: string): void;
|
|
726
676
|
}
|
|
727
677
|
|
|
728
|
-
// @public (undocumented)
|
|
729
|
-
export interface IEventHelper {
|
|
730
|
-
Attach: (obj: any, eventNameWithoutOn: string, handlerRef: any) => boolean;
|
|
731
|
-
// @deprecated
|
|
732
|
-
AttachEvent: (obj: any, eventNameWithoutOn: string, handlerRef: any) => boolean;
|
|
733
|
-
Detach: (obj: any, eventNameWithoutOn: string, handlerRef: any) => void;
|
|
734
|
-
// @deprecated
|
|
735
|
-
DetachEvent: (obj: any, eventNameWithoutOn: string, handlerRef: any) => void;
|
|
736
|
-
}
|
|
737
|
-
|
|
738
678
|
// @public (undocumented)
|
|
739
679
|
export interface IInstrumentCallDetails {
|
|
740
680
|
ctx: () => any;
|
|
@@ -910,26 +850,21 @@ export interface _IRegisteredEvents {
|
|
|
910
850
|
name: string;
|
|
911
851
|
}
|
|
912
852
|
|
|
913
|
-
|
|
914
|
-
export let isArray: <T = any>(obj: any) => obj is Array<T>;
|
|
853
|
+
export { isArray }
|
|
915
854
|
|
|
916
855
|
// @public
|
|
917
856
|
export function isBeaconsSupported(): boolean;
|
|
918
857
|
|
|
919
|
-
|
|
920
|
-
export function isBoolean(value: any): value is boolean;
|
|
858
|
+
export { isBoolean }
|
|
921
859
|
|
|
922
|
-
|
|
923
|
-
export function isDate(obj: any): obj is Date;
|
|
860
|
+
export { isDate }
|
|
924
861
|
|
|
925
|
-
|
|
926
|
-
export function isError(obj: any): obj is Error;
|
|
862
|
+
export { isError }
|
|
927
863
|
|
|
928
864
|
// @public
|
|
929
865
|
export function isFetchSupported(withKeepAlive?: boolean): boolean;
|
|
930
866
|
|
|
931
|
-
|
|
932
|
-
export function isFunction(value: any): value is Function;
|
|
867
|
+
export { isFunction }
|
|
933
868
|
|
|
934
869
|
// @public
|
|
935
870
|
export function isIE(): boolean;
|
|
@@ -937,20 +872,16 @@ export function isIE(): boolean;
|
|
|
937
872
|
// @public (undocumented)
|
|
938
873
|
export function isNotNullOrUndefined<T>(value: T): value is T;
|
|
939
874
|
|
|
940
|
-
|
|
941
|
-
export function isNotTruthy(value: any): boolean;
|
|
875
|
+
export { isNotTruthy }
|
|
942
876
|
|
|
943
877
|
// @public (undocumented)
|
|
944
878
|
export function isNotUndefined<T>(value: T): value is T;
|
|
945
879
|
|
|
946
|
-
|
|
947
|
-
export function isNullOrUndefined(value: any): value is null | undefined;
|
|
880
|
+
export { isNullOrUndefined }
|
|
948
881
|
|
|
949
|
-
|
|
950
|
-
export function isNumber(value: any): value is number;
|
|
882
|
+
export { isNumber }
|
|
951
883
|
|
|
952
|
-
|
|
953
|
-
export function isObject<T>(value: T): value is T;
|
|
884
|
+
export { isObject }
|
|
954
885
|
|
|
955
886
|
// @public
|
|
956
887
|
export function isReactNative(): boolean;
|
|
@@ -961,20 +892,15 @@ export function isSafari(userAgentStr?: string): boolean;
|
|
|
961
892
|
// @public
|
|
962
893
|
export function isSampledFlag(value: ITraceParent): boolean;
|
|
963
894
|
|
|
964
|
-
|
|
965
|
-
export function isString(value: any): value is string;
|
|
895
|
+
export { isString }
|
|
966
896
|
|
|
967
|
-
|
|
968
|
-
export function isSymbol(value: any): boolean;
|
|
897
|
+
export { isSymbol }
|
|
969
898
|
|
|
970
|
-
|
|
971
|
-
export function isTruthy(value: any): boolean;
|
|
899
|
+
export { isTruthy }
|
|
972
900
|
|
|
973
|
-
|
|
974
|
-
export function isTypeof(value: any, theType: string): boolean;
|
|
901
|
+
export { isTypeof }
|
|
975
902
|
|
|
976
|
-
|
|
977
|
-
export function isUndefined(value: any): value is undefined;
|
|
903
|
+
export { isUndefined }
|
|
978
904
|
|
|
979
905
|
// @public
|
|
980
906
|
export function isValidSpanId(value: string): boolean;
|
|
@@ -1069,9 +995,6 @@ export interface IUnloadHandlerContainer {
|
|
|
1069
995
|
run: (itemCtx: IProcessTelemetryUnloadContext, unloadState: ITelemetryUnloadState) => void;
|
|
1070
996
|
}
|
|
1071
997
|
|
|
1072
|
-
// @public
|
|
1073
|
-
export function _legacyCookieMgr(config?: IConfiguration, logger?: IDiagnosticLogger): ICookieMgr;
|
|
1074
|
-
|
|
1075
998
|
// @public (undocumented)
|
|
1076
999
|
export const LoggingSeverity: EnumValue<typeof eLoggingSeverity>;
|
|
1077
1000
|
|
|
@@ -1117,8 +1040,7 @@ export class NotificationManager implements INotificationManager {
|
|
|
1117
1040
|
|
|
1118
1041
|
export { objCreate }
|
|
1119
1042
|
|
|
1120
|
-
|
|
1121
|
-
export function objDefineAccessors<T>(target: any, prop: string, getProp?: () => T, setProp?: (v: T) => void): boolean;
|
|
1043
|
+
export { objDefineAccessors }
|
|
1122
1044
|
|
|
1123
1045
|
// @public
|
|
1124
1046
|
export function objExtend<T2, T3, T4, T5, T6>(deepExtend?: boolean, obj2?: T2, obj3?: T3, obj4?: T4, obj5?: T5, obj6?: T6): T2 & T3 & T4 & T5 & T6;
|
|
@@ -1126,20 +1048,15 @@ export function objExtend<T2, T3, T4, T5, T6>(deepExtend?: boolean, obj2?: T2, o
|
|
|
1126
1048
|
// @public (undocumented)
|
|
1127
1049
|
export function objExtend<T1, T2, T3, T4, T5, T6>(obj1?: T1, obj2?: T2, obj3?: T3, obj4?: T4, obj5?: T5, obj6?: T6): T1 & T2 & T3 & T4 & T5 & T6;
|
|
1128
1050
|
|
|
1129
|
-
|
|
1130
|
-
export function objForEachKey<T = any>(target: T, callbackfn: (name: string, value: T[keyof T]) => void): void;
|
|
1051
|
+
export { objForEachKey }
|
|
1131
1052
|
|
|
1132
|
-
|
|
1133
|
-
export const objFreeze: <T>(value: T) => T;
|
|
1053
|
+
export { objFreeze }
|
|
1134
1054
|
|
|
1135
|
-
|
|
1136
|
-
export function objKeys(obj: {}): string[];
|
|
1055
|
+
export { objKeys }
|
|
1137
1056
|
|
|
1138
|
-
|
|
1139
|
-
export const objSeal: <T>(value: T) => T;
|
|
1057
|
+
export { objSeal }
|
|
1140
1058
|
|
|
1141
|
-
|
|
1142
|
-
export function objToString(obj: any): any;
|
|
1059
|
+
export { objToString }
|
|
1143
1060
|
|
|
1144
1061
|
// @public
|
|
1145
1062
|
export function optimizeObject<T>(theObject: T): T;
|
|
@@ -1250,9 +1167,6 @@ export const enum SendRequestReason {
|
|
|
1250
1167
|
Unload = 2
|
|
1251
1168
|
}
|
|
1252
1169
|
|
|
1253
|
-
// @public @deprecated (undocumented)
|
|
1254
|
-
export function setCookie(logger: IDiagnosticLogger, name: string, value: string, domain?: string): void;
|
|
1255
|
-
|
|
1256
1170
|
// @public
|
|
1257
1171
|
export function setEnableEnvMocks(enabled: boolean): void;
|
|
1258
1172
|
|
|
@@ -1268,8 +1182,7 @@ export function sortPlugins<T = IPlugin>(plugins: T[]): T[];
|
|
|
1268
1182
|
// @public
|
|
1269
1183
|
export function strContains(value: string, search: string): boolean;
|
|
1270
1184
|
|
|
1271
|
-
|
|
1272
|
-
export function strEndsWith(value: string, search: string): boolean;
|
|
1185
|
+
export { strEndsWith }
|
|
1273
1186
|
|
|
1274
1187
|
export { strFunction }
|
|
1275
1188
|
|
|
@@ -1277,11 +1190,9 @@ export { strObject }
|
|
|
1277
1190
|
|
|
1278
1191
|
export { strPrototype }
|
|
1279
1192
|
|
|
1280
|
-
|
|
1281
|
-
export function strStartsWith(value: string, checkValue: string): boolean;
|
|
1193
|
+
export { strStartsWith }
|
|
1282
1194
|
|
|
1283
|
-
|
|
1284
|
-
export function strTrim(str: any): string;
|
|
1195
|
+
export { strTrim }
|
|
1285
1196
|
|
|
1286
1197
|
export { strUndefined }
|
|
1287
1198
|
|
|
@@ -1309,14 +1220,13 @@ export const enum TelemetryUpdateReason {
|
|
|
1309
1220
|
Unknown = 0
|
|
1310
1221
|
}
|
|
1311
1222
|
|
|
1312
|
-
|
|
1313
|
-
export function throwError(message: string): never;
|
|
1223
|
+
export { throwError }
|
|
1314
1224
|
|
|
1315
1225
|
// @public
|
|
1316
1226
|
export function _throwInternal(logger: IDiagnosticLogger, severity: LoggingSeverity, msgId: _InternalMessageId, msg: string, properties?: Object, isUserAct?: boolean): void;
|
|
1317
1227
|
|
|
1318
1228
|
// @public
|
|
1319
|
-
export function toISOString(date: Date):
|
|
1229
|
+
export function toISOString(date: Date): any;
|
|
1320
1230
|
|
|
1321
1231
|
// @public (undocumented)
|
|
1322
1232
|
export function uaDisallowsSameSiteNone(userAgent: string): boolean;
|