@microsoft/applicationinsights-core-js 3.0.0-beta.2208-03 → 3.0.0-beta.2208-16
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 -2155
- 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 +6998 -10817
- package/dist/applicationinsights-core-js.api.md +88 -177
- package/dist/applicationinsights-core-js.d.ts +94 -494
- package/dist/applicationinsights-core-js.js +2040 -2155
- 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 +94 -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 +8 -140
- 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 +11 -13
- 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 +7 -423
- 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/src/JavaScriptSDK.Interfaces/ITelemetryPlugin.ts +7 -0
- 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/JavaScriptSDK.Interfaces/ITelemetryPlugin.d.ts +6 -0
- package/types/__DynamicConstants.d.ts +2 -4
- 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;
|
|
@@ -876,6 +816,7 @@ export interface IPerfManagerProvider {
|
|
|
876
816
|
|
|
877
817
|
// @public (undocumented)
|
|
878
818
|
export interface IPlugin {
|
|
819
|
+
core?: IAppInsightsCore;
|
|
879
820
|
readonly identifier: string;
|
|
880
821
|
initialize: (config: IConfiguration, core: IAppInsightsCore, extensions: IPlugin[], pluginChain?: ITelemetryPluginChain) => void;
|
|
881
822
|
isInitialized?: () => boolean;
|
|
@@ -909,26 +850,21 @@ export interface _IRegisteredEvents {
|
|
|
909
850
|
name: string;
|
|
910
851
|
}
|
|
911
852
|
|
|
912
|
-
|
|
913
|
-
export let isArray: <T = any>(obj: any) => obj is Array<T>;
|
|
853
|
+
export { isArray }
|
|
914
854
|
|
|
915
855
|
// @public
|
|
916
856
|
export function isBeaconsSupported(): boolean;
|
|
917
857
|
|
|
918
|
-
|
|
919
|
-
export function isBoolean(value: any): value is boolean;
|
|
858
|
+
export { isBoolean }
|
|
920
859
|
|
|
921
|
-
|
|
922
|
-
export function isDate(obj: any): obj is Date;
|
|
860
|
+
export { isDate }
|
|
923
861
|
|
|
924
|
-
|
|
925
|
-
export function isError(obj: any): obj is Error;
|
|
862
|
+
export { isError }
|
|
926
863
|
|
|
927
864
|
// @public
|
|
928
865
|
export function isFetchSupported(withKeepAlive?: boolean): boolean;
|
|
929
866
|
|
|
930
|
-
|
|
931
|
-
export function isFunction(value: any): value is Function;
|
|
867
|
+
export { isFunction }
|
|
932
868
|
|
|
933
869
|
// @public
|
|
934
870
|
export function isIE(): boolean;
|
|
@@ -936,20 +872,16 @@ export function isIE(): boolean;
|
|
|
936
872
|
// @public (undocumented)
|
|
937
873
|
export function isNotNullOrUndefined<T>(value: T): value is T;
|
|
938
874
|
|
|
939
|
-
|
|
940
|
-
export function isNotTruthy(value: any): boolean;
|
|
875
|
+
export { isNotTruthy }
|
|
941
876
|
|
|
942
877
|
// @public (undocumented)
|
|
943
878
|
export function isNotUndefined<T>(value: T): value is T;
|
|
944
879
|
|
|
945
|
-
|
|
946
|
-
export function isNullOrUndefined(value: any): value is null | undefined;
|
|
880
|
+
export { isNullOrUndefined }
|
|
947
881
|
|
|
948
|
-
|
|
949
|
-
export function isNumber(value: any): value is number;
|
|
882
|
+
export { isNumber }
|
|
950
883
|
|
|
951
|
-
|
|
952
|
-
export function isObject<T>(value: T): value is T;
|
|
884
|
+
export { isObject }
|
|
953
885
|
|
|
954
886
|
// @public
|
|
955
887
|
export function isReactNative(): boolean;
|
|
@@ -960,20 +892,15 @@ export function isSafari(userAgentStr?: string): boolean;
|
|
|
960
892
|
// @public
|
|
961
893
|
export function isSampledFlag(value: ITraceParent): boolean;
|
|
962
894
|
|
|
963
|
-
|
|
964
|
-
export function isString(value: any): value is string;
|
|
895
|
+
export { isString }
|
|
965
896
|
|
|
966
|
-
|
|
967
|
-
export function isSymbol(value: any): boolean;
|
|
897
|
+
export { isSymbol }
|
|
968
898
|
|
|
969
|
-
|
|
970
|
-
export function isTruthy(value: any): boolean;
|
|
899
|
+
export { isTruthy }
|
|
971
900
|
|
|
972
|
-
|
|
973
|
-
export function isTypeof(value: any, theType: string): boolean;
|
|
901
|
+
export { isTypeof }
|
|
974
902
|
|
|
975
|
-
|
|
976
|
-
export function isUndefined(value: any): value is undefined;
|
|
903
|
+
export { isUndefined }
|
|
977
904
|
|
|
978
905
|
// @public
|
|
979
906
|
export function isValidSpanId(value: string): boolean;
|
|
@@ -1068,9 +995,6 @@ export interface IUnloadHandlerContainer {
|
|
|
1068
995
|
run: (itemCtx: IProcessTelemetryUnloadContext, unloadState: ITelemetryUnloadState) => void;
|
|
1069
996
|
}
|
|
1070
997
|
|
|
1071
|
-
// @public
|
|
1072
|
-
export function _legacyCookieMgr(config?: IConfiguration, logger?: IDiagnosticLogger): ICookieMgr;
|
|
1073
|
-
|
|
1074
998
|
// @public (undocumented)
|
|
1075
999
|
export const LoggingSeverity: EnumValue<typeof eLoggingSeverity>;
|
|
1076
1000
|
|
|
@@ -1116,8 +1040,7 @@ export class NotificationManager implements INotificationManager {
|
|
|
1116
1040
|
|
|
1117
1041
|
export { objCreate }
|
|
1118
1042
|
|
|
1119
|
-
|
|
1120
|
-
export function objDefineAccessors<T>(target: any, prop: string, getProp?: () => T, setProp?: (v: T) => void): boolean;
|
|
1043
|
+
export { objDefineAccessors }
|
|
1121
1044
|
|
|
1122
1045
|
// @public
|
|
1123
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;
|
|
@@ -1125,20 +1048,15 @@ export function objExtend<T2, T3, T4, T5, T6>(deepExtend?: boolean, obj2?: T2, o
|
|
|
1125
1048
|
// @public (undocumented)
|
|
1126
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;
|
|
1127
1050
|
|
|
1128
|
-
|
|
1129
|
-
export function objForEachKey<T = any>(target: T, callbackfn: (name: string, value: T[keyof T]) => void): void;
|
|
1051
|
+
export { objForEachKey }
|
|
1130
1052
|
|
|
1131
|
-
|
|
1132
|
-
export const objFreeze: <T>(value: T) => T;
|
|
1053
|
+
export { objFreeze }
|
|
1133
1054
|
|
|
1134
|
-
|
|
1135
|
-
export function objKeys(obj: {}): string[];
|
|
1055
|
+
export { objKeys }
|
|
1136
1056
|
|
|
1137
|
-
|
|
1138
|
-
export const objSeal: <T>(value: T) => T;
|
|
1057
|
+
export { objSeal }
|
|
1139
1058
|
|
|
1140
|
-
|
|
1141
|
-
export function objToString(obj: any): any;
|
|
1059
|
+
export { objToString }
|
|
1142
1060
|
|
|
1143
1061
|
// @public
|
|
1144
1062
|
export function optimizeObject<T>(theObject: T): T;
|
|
@@ -1249,9 +1167,6 @@ export const enum SendRequestReason {
|
|
|
1249
1167
|
Unload = 2
|
|
1250
1168
|
}
|
|
1251
1169
|
|
|
1252
|
-
// @public @deprecated (undocumented)
|
|
1253
|
-
export function setCookie(logger: IDiagnosticLogger, name: string, value: string, domain?: string): void;
|
|
1254
|
-
|
|
1255
1170
|
// @public
|
|
1256
1171
|
export function setEnableEnvMocks(enabled: boolean): void;
|
|
1257
1172
|
|
|
@@ -1267,8 +1182,7 @@ export function sortPlugins<T = IPlugin>(plugins: T[]): T[];
|
|
|
1267
1182
|
// @public
|
|
1268
1183
|
export function strContains(value: string, search: string): boolean;
|
|
1269
1184
|
|
|
1270
|
-
|
|
1271
|
-
export function strEndsWith(value: string, search: string): boolean;
|
|
1185
|
+
export { strEndsWith }
|
|
1272
1186
|
|
|
1273
1187
|
export { strFunction }
|
|
1274
1188
|
|
|
@@ -1276,11 +1190,9 @@ export { strObject }
|
|
|
1276
1190
|
|
|
1277
1191
|
export { strPrototype }
|
|
1278
1192
|
|
|
1279
|
-
|
|
1280
|
-
export function strStartsWith(value: string, checkValue: string): boolean;
|
|
1193
|
+
export { strStartsWith }
|
|
1281
1194
|
|
|
1282
|
-
|
|
1283
|
-
export function strTrim(str: any): string;
|
|
1195
|
+
export { strTrim }
|
|
1284
1196
|
|
|
1285
1197
|
export { strUndefined }
|
|
1286
1198
|
|
|
@@ -1308,14 +1220,13 @@ export const enum TelemetryUpdateReason {
|
|
|
1308
1220
|
Unknown = 0
|
|
1309
1221
|
}
|
|
1310
1222
|
|
|
1311
|
-
|
|
1312
|
-
export function throwError(message: string): never;
|
|
1223
|
+
export { throwError }
|
|
1313
1224
|
|
|
1314
1225
|
// @public
|
|
1315
1226
|
export function _throwInternal(logger: IDiagnosticLogger, severity: LoggingSeverity, msgId: _InternalMessageId, msg: string, properties?: Object, isUserAct?: boolean): void;
|
|
1316
1227
|
|
|
1317
1228
|
// @public
|
|
1318
|
-
export function toISOString(date: Date):
|
|
1229
|
+
export function toISOString(date: Date): any;
|
|
1319
1230
|
|
|
1320
1231
|
// @public (undocumented)
|
|
1321
1232
|
export function uaDisallowsSameSiteNone(userAgent: string): boolean;
|