@microsoft/applicationinsights-web-basic 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 +8 -1
- package/browser/aib.2.js +1153 -1328
- package/browser/aib.2.js.map +1 -1
- package/browser/aib.2.min.js +2 -2
- package/browser/aib.2.min.js.map +1 -1
- package/browser/aib.3.0.0-beta.2208-16.integrity.json +26 -0
- package/browser/{aib.3.0.0-beta.2208-03.js → aib.3.0.0-beta.2208-16.js} +1154 -1329
- package/browser/aib.3.0.0-beta.2208-16.js.map +1 -0
- package/browser/aib.3.0.0-beta.2208-16.min.js +6 -0
- package/browser/aib.3.0.0-beta.2208-16.min.js.map +1 -0
- package/dist/applicationinsights-web-basic.api.json +75 -284
- package/dist/applicationinsights-web-basic.api.md +9 -11
- package/dist/applicationinsights-web-basic.d.ts +16 -212
- package/dist/applicationinsights-web-basic.js +1153 -1328
- package/dist/applicationinsights-web-basic.js.map +1 -1
- package/dist/applicationinsights-web-basic.min.js +2 -2
- package/dist/applicationinsights-web-basic.min.js.map +1 -1
- package/dist/applicationinsights-web-basic.rollup.d.ts +16 -212
- package/dist-esm/__DynamicConstants.js +4 -4
- package/dist-esm/__DynamicConstants.js.map +1 -1
- package/dist-esm/index.js +5 -5
- package/dist-esm/index.js.map +1 -1
- package/package.json +6 -5
- package/src/__DynamicConstants.ts +3 -3
- package/src/index.ts +6 -7
- package/tsconfig.json +1 -1
- package/types/index.d.ts +1 -1
- package/types/tsdoc-metadata.json +1 -1
- package/browser/aib.3.0.0-beta.2208-03.integrity.json +0 -26
- package/browser/aib.3.0.0-beta.2208-03.js.map +0 -1
- package/browser/aib.3.0.0-beta.2208-03.min.js +0 -6
- package/browser/aib.3.0.0-beta.2208-03.min.js.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Microsoft.ApplicationInsights, 3.0.0-beta.2208-
|
|
2
|
+
* Microsoft.ApplicationInsights, 3.0.0-beta.2208-16
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*
|
|
5
5
|
* Microsoft Application Insights Team
|
|
@@ -13,6 +13,11 @@
|
|
|
13
13
|
* ---------------------------------------------------------------------------
|
|
14
14
|
*/
|
|
15
15
|
|
|
16
|
+
import { arrForEach } from '@nevware21/ts-utils';
|
|
17
|
+
import { EnumCls } from '@nevware21/ts-utils';
|
|
18
|
+
import { isNullOrUndefined } from '@nevware21/ts-utils';
|
|
19
|
+
import { throwError } from '@nevware21/ts-utils';
|
|
20
|
+
|
|
16
21
|
export declare class AppInsightsCore extends BaseCore implements IAppInsightsCore {
|
|
17
22
|
constructor();
|
|
18
23
|
initialize(config: IConfiguration, extensions: IPlugin[], logger?: IDiagnosticLogger, notificationManager?: INotificationManager): void;
|
|
@@ -85,15 +90,7 @@ export declare class ApplicationInsights {
|
|
|
85
90
|
addUnloadCb(handler: UnloadHandler): void;
|
|
86
91
|
}
|
|
87
92
|
|
|
88
|
-
|
|
89
|
-
* Performs the specified action for each element in an array. This helper exists to avoid adding a polyfil for older browsers
|
|
90
|
-
* that do not define Array.prototype.xxxx (eg. ES3 only, IE8) just in case any page checks for presence/absence of the prototype
|
|
91
|
-
* implementation. Note: For consistency this will not use the Array.prototype.xxxx implementation if it exists as this would
|
|
92
|
-
* cause a testing requirement to test with and without the implementations
|
|
93
|
-
* @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array. It can return -1 to break out of the loop
|
|
94
|
-
* @param thisArg [Optional] An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.
|
|
95
|
-
*/
|
|
96
|
-
export declare function arrForEach<T = any>(arr: T[], callbackfn: (value: T, index?: number, array?: T[]) => undefined | void | number, thisArg?: any): void;
|
|
93
|
+
export { arrForEach }
|
|
97
94
|
|
|
98
95
|
declare class BaseCore implements IAppInsightsCore {
|
|
99
96
|
static defaultConfig: IConfiguration;
|
|
@@ -296,14 +293,6 @@ declare abstract class BaseTelemetryPlugin implements ITelemetryPlugin {
|
|
|
296
293
|
protected _addHook(hooks: IInstrumentHook | IInstrumentHook[]): void;
|
|
297
294
|
}
|
|
298
295
|
|
|
299
|
-
/**
|
|
300
|
-
* Provides a collection of utility functions, included for backward compatibility with previous releases.
|
|
301
|
-
* @deprecated Marking this instance as deprecated in favor of direct usage of the helper functions
|
|
302
|
-
* as direct usage provides better tree-shaking and minification by avoiding the inclusion of the unused items
|
|
303
|
-
* in your resulting code.
|
|
304
|
-
*/
|
|
305
|
-
export declare const CoreUtils: ICoreUtils;
|
|
306
|
-
|
|
307
296
|
declare const DistributedTracingModes: EnumValue<typeof eDistributedTracingModes>;
|
|
308
297
|
|
|
309
298
|
declare type DistributedTracingModes = number | eDistributedTracingModes;
|
|
@@ -420,9 +409,7 @@ declare const enum eLoggingSeverity {
|
|
|
420
409
|
WARNING = 2
|
|
421
410
|
}
|
|
422
411
|
|
|
423
|
-
declare type EnumValue<E = any> =
|
|
424
|
-
readonly [key in keyof E]: E[key];
|
|
425
|
-
};
|
|
412
|
+
declare type EnumValue<E = any> = EnumCls<E>;
|
|
426
413
|
|
|
427
414
|
/**
|
|
428
415
|
* Defines the level of severity for the event.
|
|
@@ -1252,195 +1239,6 @@ declare interface ICookieMgrConfig {
|
|
|
1252
1239
|
delCookie?: (name: string, cookieValue: string) => void;
|
|
1253
1240
|
}
|
|
1254
1241
|
|
|
1255
|
-
/**
|
|
1256
|
-
* Provides a collection of utility functions, included for backward compatibility with previous releases.
|
|
1257
|
-
* @deprecated Marking this interface and instance as deprecated in favor of direct usage of the helper functions
|
|
1258
|
-
* as direct usage provides better tree-shaking and minification by avoiding the inclusion of the unused items
|
|
1259
|
-
* in your resulting code.
|
|
1260
|
-
*/
|
|
1261
|
-
declare interface ICoreUtils {
|
|
1262
|
-
/**
|
|
1263
|
-
* Internal - Do not use directly.
|
|
1264
|
-
* @deprecated Direct usage of this property is not recommend
|
|
1265
|
-
*/
|
|
1266
|
-
_canUseCookies: boolean;
|
|
1267
|
-
isTypeof: (value: any, theType: string) => boolean;
|
|
1268
|
-
isUndefined: (value: any) => boolean;
|
|
1269
|
-
isNullOrUndefined: (value: any) => boolean;
|
|
1270
|
-
hasOwnProperty: (obj: any, prop: string) => boolean;
|
|
1271
|
-
/**
|
|
1272
|
-
* Checks if the passed of value is a function.
|
|
1273
|
-
* @param {any} value - Value to be checked.
|
|
1274
|
-
* @return {boolean} True if the value is a boolean, false otherwise.
|
|
1275
|
-
*/
|
|
1276
|
-
isFunction: (value: any) => value is Function;
|
|
1277
|
-
/**
|
|
1278
|
-
* Checks if the passed of value is a function.
|
|
1279
|
-
* @param {any} value - Value to be checked.
|
|
1280
|
-
* @return {boolean} True if the value is a boolean, false otherwise.
|
|
1281
|
-
*/
|
|
1282
|
-
isObject: (value: any) => boolean;
|
|
1283
|
-
/**
|
|
1284
|
-
* Check if an object is of type Date
|
|
1285
|
-
*/
|
|
1286
|
-
isDate: (obj: any) => obj is Date;
|
|
1287
|
-
/**
|
|
1288
|
-
* Check if an object is of type Array
|
|
1289
|
-
*/
|
|
1290
|
-
isArray: (obj: any) => boolean;
|
|
1291
|
-
/**
|
|
1292
|
-
* Check if an object is of type Error
|
|
1293
|
-
*/
|
|
1294
|
-
isError: (obj: any) => obj is Error;
|
|
1295
|
-
/**
|
|
1296
|
-
* Checks if the type of value is a string.
|
|
1297
|
-
* @param {any} value - Value to be checked.
|
|
1298
|
-
* @return {boolean} True if the value is a string, false otherwise.
|
|
1299
|
-
*/
|
|
1300
|
-
isString: (value: any) => value is string;
|
|
1301
|
-
/**
|
|
1302
|
-
* Checks if the type of value is a number.
|
|
1303
|
-
* @param {any} value - Value to be checked.
|
|
1304
|
-
* @return {boolean} True if the value is a number, false otherwise.
|
|
1305
|
-
*/
|
|
1306
|
-
isNumber: (value: any) => value is number;
|
|
1307
|
-
/**
|
|
1308
|
-
* Checks if the type of value is a boolean.
|
|
1309
|
-
* @param {any} value - Value to be checked.
|
|
1310
|
-
* @return {boolean} True if the value is a boolean, false otherwise.
|
|
1311
|
-
*/
|
|
1312
|
-
isBoolean: (value: any) => value is boolean;
|
|
1313
|
-
/**
|
|
1314
|
-
* Convert a date to I.S.O. format in IE8
|
|
1315
|
-
*/
|
|
1316
|
-
toISOString: (date: Date) => string;
|
|
1317
|
-
/**
|
|
1318
|
-
* Performs the specified action for each element in an array. This helper exists to avoid adding a polyfil for older browsers
|
|
1319
|
-
* that do not define Array.prototype.xxxx (eg. ES3 only, IE8) just in case any page checks for presence/absence of the prototype
|
|
1320
|
-
* implementation. Note: For consistency this will not use the Array.prototype.xxxx implementation if it exists as this would
|
|
1321
|
-
* cause a testing requirement to test with and without the implementations
|
|
1322
|
-
* @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array. It can return -1 to break out of the loop
|
|
1323
|
-
* @param thisArg [Optional] An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.
|
|
1324
|
-
*/
|
|
1325
|
-
arrForEach: <T>(arr: T[], callbackfn: (value: T, index?: number, array?: T[]) => void | number, thisArg?: any) => void;
|
|
1326
|
-
/**
|
|
1327
|
-
* Returns the index of the first occurrence of a value in an array. This helper exists to avoid adding a polyfil for older browsers
|
|
1328
|
-
* that do not define Array.prototype.xxxx (eg. ES3 only, IE8) just in case any page checks for presence/absence of the prototype
|
|
1329
|
-
* implementation. Note: For consistency this will not use the Array.prototype.xxxx implementation if it exists as this would
|
|
1330
|
-
* cause a testing requirement to test with and without the implementations
|
|
1331
|
-
* @param searchElement The value to locate in the array.
|
|
1332
|
-
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the search starts at index 0.
|
|
1333
|
-
*/
|
|
1334
|
-
arrIndexOf: <T>(arr: T[], searchElement: T, fromIndex?: number) => number;
|
|
1335
|
-
/**
|
|
1336
|
-
* Calls a defined callback function on each element of an array, and returns an array that contains the results. This helper exists
|
|
1337
|
-
* to avoid adding a polyfil for older browsers that do not define Array.prototype.xxxx (eg. ES3 only, IE8) just in case any page
|
|
1338
|
-
* checks for presence/absence of the prototype implementation. Note: For consistency this will not use the Array.prototype.xxxx
|
|
1339
|
-
* implementation if it exists as this would cause a testing requirement to test with and without the implementations
|
|
1340
|
-
* @param callbackfn A function that accepts up to three arguments. The map method calls the callbackfn function one time for each element in the array.
|
|
1341
|
-
* @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.
|
|
1342
|
-
*/
|
|
1343
|
-
arrMap: <T, R>(arr: T[], callbackfn: (value: T, index?: number, array?: T[]) => R, thisArg?: any) => R[];
|
|
1344
|
-
/**
|
|
1345
|
-
* Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is
|
|
1346
|
-
* provided as an argument in the next call to the callback function. This helper exists to avoid adding a polyfil for older browsers that do not define
|
|
1347
|
-
* Array.prototype.xxxx (eg. ES3 only, IE8) just in case any page checks for presence/absence of the prototype implementation. Note: For consistency
|
|
1348
|
-
* this will not use the Array.prototype.xxxx implementation if it exists as this would cause a testing requirement to test with and without the implementations
|
|
1349
|
-
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.
|
|
1350
|
-
* @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
|
|
1351
|
-
*/
|
|
1352
|
-
arrReduce: <T, R>(arr: T[], callbackfn: (previousValue: T | R, currentValue?: T, currentIndex?: number, array?: T[]) => R, initialValue?: R) => R;
|
|
1353
|
-
/**
|
|
1354
|
-
* helper method to trim strings (IE8 does not implement String.prototype.trim)
|
|
1355
|
-
*/
|
|
1356
|
-
strTrim: (str: any) => string;
|
|
1357
|
-
/**
|
|
1358
|
-
* Creates an object that has the specified prototype, and that optionally contains specified properties. This helper exists to avoid adding a polyfil
|
|
1359
|
-
* for older browsers that do not define Object.create eg. ES3 only, IE8 just in case any page checks for presence/absence of the prototype implementation.
|
|
1360
|
-
* Note: For consistency this will not use the Object.create implementation if it exists as this would cause a testing requirement to test with and without the implementations
|
|
1361
|
-
* @param obj Object to use as a prototype. May be null
|
|
1362
|
-
*/
|
|
1363
|
-
objCreate: (obj: object) => any;
|
|
1364
|
-
/**
|
|
1365
|
-
* Returns the names of the enumerable string properties and methods of an object. This helper exists to avoid adding a polyfil for older browsers
|
|
1366
|
-
* that do not define Object.keys eg. ES3 only, IE8 just in case any page checks for presence/absence of the prototype implementation.
|
|
1367
|
-
* Note: For consistency this will not use the Object.keys implementation if it exists as this would cause a testing requirement to test with and without the implementations
|
|
1368
|
-
* @param obj Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
|
|
1369
|
-
*/
|
|
1370
|
-
objKeys: (obj: {}) => string[];
|
|
1371
|
-
/**
|
|
1372
|
-
* Try to define get/set object property accessors for the target object/prototype, this will provide compatibility with
|
|
1373
|
-
* existing API definition when run within an ES5+ container that supports accessors but still enable the code to be loaded
|
|
1374
|
-
* and executed in an ES3 container, providing basic IE8 compatibility.
|
|
1375
|
-
* @param target The object on which to define the property.
|
|
1376
|
-
* @param prop The name of the property to be defined or modified.
|
|
1377
|
-
* @param getProp The getter function to wire against the getter.
|
|
1378
|
-
* @param setProp The setter function to wire against the setter.
|
|
1379
|
-
* @returns True if it was able to create the accessors otherwise false
|
|
1380
|
-
*/
|
|
1381
|
-
objDefineAccessors: <T>(target: any, prop: string, getProp?: () => T, setProp?: (v: T) => void) => boolean;
|
|
1382
|
-
/**
|
|
1383
|
-
* Trys to add an event handler for the specified event to the window, body and document
|
|
1384
|
-
* @param eventName {string} - The name of the event
|
|
1385
|
-
* @param callback {any} - The callback function that needs to be executed for the given event
|
|
1386
|
-
* @return {boolean} - true if the handler was successfully added
|
|
1387
|
-
*/
|
|
1388
|
-
addEventHandler: (eventName: string, callback: any, evtNamespace?: string | string[]) => boolean;
|
|
1389
|
-
/**
|
|
1390
|
-
* 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)
|
|
1391
|
-
* https://caniuse.com/#search=Date.now
|
|
1392
|
-
*/
|
|
1393
|
-
dateNow: () => number;
|
|
1394
|
-
/**
|
|
1395
|
-
* Identifies whether the current environment appears to be IE
|
|
1396
|
-
*/
|
|
1397
|
-
isIE: () => boolean;
|
|
1398
|
-
/**
|
|
1399
|
-
* @deprecated - Use the core.getCookieMgr().disable()
|
|
1400
|
-
* Force the SDK not to store and read any data from cookies.
|
|
1401
|
-
*/
|
|
1402
|
-
disableCookies: () => void;
|
|
1403
|
-
newGuid: () => string;
|
|
1404
|
-
/**
|
|
1405
|
-
* Return the current value of the Performance Api now() function (if available) and fallback to dateNow() if it is unavailable (IE9 or less)
|
|
1406
|
-
* https://caniuse.com/#search=performance.now
|
|
1407
|
-
*/
|
|
1408
|
-
perfNow: () => number;
|
|
1409
|
-
/**
|
|
1410
|
-
* Generate random base64 id string.
|
|
1411
|
-
* The default length is 22 which is 132-bits so almost the same as a GUID but as base64 (the previous default was 5)
|
|
1412
|
-
* @param maxLength - Optional value to specify the length of the id to be generated, defaults to 22
|
|
1413
|
-
*/
|
|
1414
|
-
newId: (maxLength?: number) => string;
|
|
1415
|
-
/**
|
|
1416
|
-
* Generate a random value between 0 and maxValue, max value should be limited to a 32-bit maximum.
|
|
1417
|
-
* So maxValue(16) will produce a number from 0..16 (range of 17)
|
|
1418
|
-
* @param maxValue
|
|
1419
|
-
*/
|
|
1420
|
-
randomValue: (maxValue: number) => number;
|
|
1421
|
-
/**
|
|
1422
|
-
* generate a random 32-bit number (0x000000..0xFFFFFFFF) or (-0x80000000..0x7FFFFFFF), defaults un-unsigned.
|
|
1423
|
-
* @param signed - True to return a signed 32-bit number (-0x80000000..0x7FFFFFFF) otherwise an unsigned one (0x000000..0xFFFFFFFF)
|
|
1424
|
-
*/
|
|
1425
|
-
random32: (signed?: boolean) => number;
|
|
1426
|
-
/**
|
|
1427
|
-
* Seed the MWC random number generator with the specified seed or a random value
|
|
1428
|
-
* @param value - optional the number to used as the seed, if undefined, null or zero a random value will be chosen
|
|
1429
|
-
*/
|
|
1430
|
-
mwcRandomSeed: (value?: number) => void;
|
|
1431
|
-
/**
|
|
1432
|
-
* Generate a random 32-bit number between (0x000000..0xFFFFFFFF) or (-0x80000000..0x7FFFFFFF), using MWC (Multiply with carry)
|
|
1433
|
-
* instead of Math.random() defaults to un-signed.
|
|
1434
|
-
* Used as a replacement random generator for IE to avoid issues with older IE instances.
|
|
1435
|
-
* @param signed - True to return a signed 32-bit number (-0x80000000..0x7FFFFFFF) otherwise an unsigned one (0x000000..0xFFFFFFFF)
|
|
1436
|
-
*/
|
|
1437
|
-
mwcRandom32: (signed?: boolean) => number;
|
|
1438
|
-
/**
|
|
1439
|
-
* generate W3C trace id
|
|
1440
|
-
*/
|
|
1441
|
-
generateW3CId: () => string;
|
|
1442
|
-
}
|
|
1443
|
-
|
|
1444
1242
|
declare interface ICustomProperties {
|
|
1445
1243
|
[key: string]: any;
|
|
1446
1244
|
}
|
|
@@ -2070,6 +1868,12 @@ export declare interface IPlugin {
|
|
|
2070
1868
|
* Plugin version (available in data.properties.version in common schema)
|
|
2071
1869
|
*/
|
|
2072
1870
|
readonly version?: string;
|
|
1871
|
+
/**
|
|
1872
|
+
* The App Insights core to use for backward compatibility.
|
|
1873
|
+
* Therefore the interface will be able to access the core without needing to cast to "any".
|
|
1874
|
+
* [optional] any 3rd party plugins which are already implementing this interface don't fail to compile.
|
|
1875
|
+
*/
|
|
1876
|
+
core?: IAppInsightsCore;
|
|
2073
1877
|
}
|
|
2074
1878
|
|
|
2075
1879
|
/**
|
|
@@ -2269,7 +2073,7 @@ declare interface ISerializable {
|
|
|
2269
2073
|
aiDataContract: any;
|
|
2270
2074
|
}
|
|
2271
2075
|
|
|
2272
|
-
export
|
|
2076
|
+
export { isNullOrUndefined }
|
|
2273
2077
|
|
|
2274
2078
|
declare interface IStackDetails {
|
|
2275
2079
|
src: string;
|
|
@@ -2629,7 +2433,7 @@ declare const enum TelemetryUpdateReason {
|
|
|
2629
2433
|
PluginRemoved = 32
|
|
2630
2434
|
}
|
|
2631
2435
|
|
|
2632
|
-
export
|
|
2436
|
+
export { throwError }
|
|
2633
2437
|
|
|
2634
2438
|
declare type UnloadHandler = (itemCtx: IProcessTelemetryUnloadContext, unloadState: ITelemetryUnloadState) => void;
|
|
2635
2439
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Application Insights JavaScript Web SDK - Basic, 3.0.0-beta.2208-
|
|
2
|
+
* Application Insights JavaScript Web SDK - Basic, 3.0.0-beta.2208-16
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
// ##############################################################
|
|
9
9
|
// AUTO GENERATED FILE: This file is Auto Generated during build.
|
|
10
10
|
// ##############################################################
|
|
11
|
-
//
|
|
12
|
-
// Note: DON'T Export these const from the package as we are still targeting
|
|
13
|
-
//
|
|
11
|
+
// ###########################################################################################################################################
|
|
12
|
+
// Note: DON'T Export these const from the package as we are still targeting IE this will export a mutable variables that someone could change
|
|
13
|
+
// ###########################################################################################################################################
|
|
14
14
|
export var _DYN_INITIALIZE = "initialize"; // Count: 3
|
|
15
15
|
export var _DYN_DIAGNOSTIC_LOG_INTER0 = "diagnosticLogInterval"; // Count: 4
|
|
16
16
|
//# sourceMappingURL=__DynamicConstants.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"__DynamicConstants.js.map","sources":["__DynamicConstants.js"],"sourcesContent":["// Copyright (c) Microsoft Corporation. All rights reserved.\r\n// Licensed under the MIT License.\r\n// @skip-file-minify\r\n// ##############################################################\r\n// AUTO GENERATED FILE: This file is Auto Generated during build.\r\n// ##############################################################\r\n//
|
|
1
|
+
{"version":3,"file":"__DynamicConstants.js.map","sources":["__DynamicConstants.js"],"sourcesContent":["// Copyright (c) Microsoft Corporation. All rights reserved.\r\n// Licensed under the MIT License.\r\n// @skip-file-minify\r\n// ##############################################################\r\n// AUTO GENERATED FILE: This file is Auto Generated during build.\r\n// ##############################################################\r\n// ###########################################################################################################################################\r\n// Note: DON'T Export these const from the package as we are still targeting IE this will export a mutable variables that someone could change\r\n// ###########################################################################################################################################\r\nexport var _DYN_INITIALIZE = \"initialize\"; // Count: 3\r\nexport var _DYN_DIAGNOSTIC_LOG_INTER0 = \"diagnosticLogInterval\"; // Count: 4\r\n//# sourceMappingURL=__DynamicConstants.js.map"],"names":[],"mappings":";;;;AAA4D;AAC1B;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA"}
|
package/dist-esm/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Application Insights JavaScript Web SDK - Basic, 3.0.0-beta.2208-
|
|
2
|
+
* Application Insights JavaScript Web SDK - Basic, 3.0.0-beta.2208-16
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -27,13 +27,13 @@ var ApplicationInsights = /** @class */ (function () {
|
|
|
27
27
|
}
|
|
28
28
|
dynamicProto(ApplicationInsights, this, function (_self) {
|
|
29
29
|
_self.config = config;
|
|
30
|
-
_self.getSKUDefaults();
|
|
31
30
|
_initialize();
|
|
32
31
|
_self[_DYN_INITIALIZE /* @min:%2einitialize */] = _initialize;
|
|
33
32
|
_self.getSKUDefaults = function () {
|
|
34
33
|
_self.config[_DYN_DIAGNOSTIC_LOG_INTER0 /* @min:%2ediagnosticLogInterval */] =
|
|
35
34
|
_self.config[_DYN_DIAGNOSTIC_LOG_INTER0 /* @min:%2ediagnosticLogInterval */] && _self.config[_DYN_DIAGNOSTIC_LOG_INTER0 /* @min:%2ediagnosticLogInterval */] > 0 ? _self.config[_DYN_DIAGNOSTIC_LOG_INTER0 /* @min:%2ediagnosticLogInterval */] : 10000;
|
|
36
35
|
};
|
|
36
|
+
_self.getSKUDefaults();
|
|
37
37
|
proxyFunctions(_self, core, [
|
|
38
38
|
"track",
|
|
39
39
|
"flush",
|
|
@@ -50,9 +50,9 @@ var ApplicationInsights = /** @class */ (function () {
|
|
|
50
50
|
var appInsightsChannel = new Sender();
|
|
51
51
|
extensions.push(appInsightsChannel);
|
|
52
52
|
// initialize core
|
|
53
|
-
core[_DYN_INITIALIZE /* @min:%2einitialize */](
|
|
53
|
+
core[_DYN_INITIALIZE /* @min:%2einitialize */](_self.config, extensions);
|
|
54
54
|
// initialize extensions
|
|
55
|
-
appInsightsChannel[_DYN_INITIALIZE /* @min:%2einitialize */](
|
|
55
|
+
appInsightsChannel[_DYN_INITIALIZE /* @min:%2einitialize */](_self.config, core, extensions);
|
|
56
56
|
core.pollInternalLogs();
|
|
57
57
|
}
|
|
58
58
|
});
|
|
@@ -76,7 +76,7 @@ var ApplicationInsights = /** @class */ (function () {
|
|
|
76
76
|
return ApplicationInsights;
|
|
77
77
|
}());
|
|
78
78
|
export { ApplicationInsights };
|
|
79
|
-
export { AppInsightsCore,
|
|
79
|
+
export { AppInsightsCore, arrForEach, _InternalMessageId, isNullOrUndefined, throwError, proxyFunctions } from "@microsoft/applicationinsights-core-js";
|
|
80
80
|
export { SeverityLevel } from "@microsoft/applicationinsights-common";
|
|
81
81
|
export { Sender } from "@microsoft/applicationinsights-channel-js";
|
|
82
82
|
//# sourceMappingURL=index.js.map
|
package/dist-esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js.map","sources":["index.js"],"sourcesContent":["// Copyright (c) Microsoft Corporation. All rights reserved.\r\n// Licensed under the MIT License.\r\nimport dynamicProto from \"@microsoft/dynamicproto-js\";\r\nimport { Sender } from \"@microsoft/applicationinsights-channel-js\";\r\nimport { AppInsightsCore, isNullOrUndefined, proxyFunctions, throwError } from \"@microsoft/applicationinsights-core-js\";\r\nimport { _DYN_DIAGNOSTIC_LOG_INTER0, _DYN_INITIALIZE } from \"./__DynamicConstants\";\r\n/**\r\n * @export\r\n * @class ApplicationInsights\r\n */\r\nvar ApplicationInsights = /** @class */ (function () {\r\n /**\r\n * Creates an instance of ApplicationInsights.\r\n * @param {IConfiguration & IConfig} config\r\n * @memberof ApplicationInsights\r\n */\r\n function ApplicationInsights(config) {\r\n var core = new AppInsightsCore();\r\n // initialize the queue and config in case they are undefined\r\n if (isNullOrUndefined(config) ||\r\n isNullOrUndefined(config.instrumentationKey)) {\r\n throwError(\"Invalid input configuration\");\r\n }\r\n dynamicProto(ApplicationInsights, this, function (_self) {\r\n _self.config = config;\r\n
|
|
1
|
+
{"version":3,"file":"index.js.map","sources":["index.js"],"sourcesContent":["// Copyright (c) Microsoft Corporation. All rights reserved.\r\n// Licensed under the MIT License.\r\nimport dynamicProto from \"@microsoft/dynamicproto-js\";\r\nimport { Sender } from \"@microsoft/applicationinsights-channel-js\";\r\nimport { AppInsightsCore, isNullOrUndefined, proxyFunctions, throwError } from \"@microsoft/applicationinsights-core-js\";\r\nimport { _DYN_DIAGNOSTIC_LOG_INTER0, _DYN_INITIALIZE } from \"./__DynamicConstants\";\r\n/**\r\n * @export\r\n * @class ApplicationInsights\r\n */\r\nvar ApplicationInsights = /** @class */ (function () {\r\n /**\r\n * Creates an instance of ApplicationInsights.\r\n * @param {IConfiguration & IConfig} config\r\n * @memberof ApplicationInsights\r\n */\r\n function ApplicationInsights(config) {\r\n var core = new AppInsightsCore();\r\n // initialize the queue and config in case they are undefined\r\n if (isNullOrUndefined(config) ||\r\n isNullOrUndefined(config.instrumentationKey)) {\r\n throwError(\"Invalid input configuration\");\r\n }\r\n dynamicProto(ApplicationInsights, this, function (_self) {\r\n _self.config = config;\r\n _initialize();\r\n _self[_DYN_INITIALIZE /* @min:%2einitialize */] = _initialize;\r\n _self.getSKUDefaults = function () {\r\n _self.config[_DYN_DIAGNOSTIC_LOG_INTER0 /* @min:%2ediagnosticLogInterval */] =\r\n _self.config[_DYN_DIAGNOSTIC_LOG_INTER0 /* @min:%2ediagnosticLogInterval */] && _self.config[_DYN_DIAGNOSTIC_LOG_INTER0 /* @min:%2ediagnosticLogInterval */] > 0 ? _self.config[_DYN_DIAGNOSTIC_LOG_INTER0 /* @min:%2ediagnosticLogInterval */] : 10000;\r\n };\r\n _self.getSKUDefaults();\r\n proxyFunctions(_self, core, [\r\n \"track\",\r\n \"flush\",\r\n \"pollInternalLogs\",\r\n \"stopPollingInternalLogs\",\r\n \"unload\",\r\n \"getPlugin\",\r\n \"addPlugin\",\r\n \"evtNamespace\",\r\n \"addUnloadCb\"\r\n ]);\r\n function _initialize() {\r\n var extensions = [];\r\n var appInsightsChannel = new Sender();\r\n extensions.push(appInsightsChannel);\r\n // initialize core\r\n core[_DYN_INITIALIZE /* @min:%2einitialize */](_self.config, extensions);\r\n // initialize extensions\r\n appInsightsChannel[_DYN_INITIALIZE /* @min:%2einitialize */](_self.config, core, extensions);\r\n core.pollInternalLogs();\r\n }\r\n });\r\n }\r\n /**\r\n * Initialize this instance of ApplicationInsights\r\n *\r\n * @memberof ApplicationInsights\r\n */\r\n ApplicationInsights.prototype.initialize = function () {\r\n // @DynamicProtoStub -- DO NOT add any code as this will be removed during packaging\r\n };\r\n /**\r\n * Send a manually constructed custom event\r\n *\r\n * @param {ITelemetryItem} item\r\n * @memberof ApplicationInsights\r\n */\r\n ApplicationInsights.prototype.track = function (item) {\r\n // @DynamicProtoStub -- DO NOT add any code as this will be removed during packaging\r\n };\r\n /**\r\n * Immediately send all batched telemetry\r\n * @param {boolean} [async=true]\r\n * @memberof ApplicationInsights\r\n */\r\n ApplicationInsights.prototype.flush = function (async) {\r\n if (async === void 0) { async = true; }\r\n // @DynamicProtoStub -- DO NOT add any code as this will be removed during packaging\r\n };\r\n ApplicationInsights.prototype.pollInternalLogs = function () {\r\n // @DynamicProtoStub -- DO NOT add any code as this will be removed during packaging\r\n };\r\n ApplicationInsights.prototype.stopPollingInternalLogs = function () {\r\n // @DynamicProtoStub -- DO NOT add any code as this will be removed during packaging\r\n };\r\n ApplicationInsights.prototype.getSKUDefaults = function () {\r\n // @DynamicProtoStub -- DO NOT add any code as this will be removed during packaging\r\n };\r\n /**\r\n * Unload and Tear down the SDK and any initialized plugins, after calling this the SDK will be considered\r\n * to be un-initialized and non-operational, re-initializing the SDK should only be attempted if the previous\r\n * unload call return `true` stating that all plugins reported that they also unloaded, the recommended\r\n * approach is to create a new instance and initialize that instance.\r\n * This is due to possible unexpected side effects caused by plugins not supporting unload / teardown, unable\r\n * to successfully remove any global references or they may just be completing the unload process asynchronously.\r\n */\r\n ApplicationInsights.prototype.unload = function (isAsync, unloadComplete) {\r\n // @DynamicProtoStub -- DO NOT add any code as this will be removed during packaging\r\n return null;\r\n };\r\n /**\r\n * Find and return the (first) plugin with the specified identifier if present\r\n * @param pluginIdentifier\r\n */\r\n ApplicationInsights.prototype.getPlugin = function (pluginIdentifier) {\r\n // @DynamicProtoStub -- DO NOT add any code as this will be removed during packaging\r\n return null;\r\n };\r\n /**\r\n * Add a new plugin to the installation\r\n * @param plugin - The new plugin to add\r\n * @param replaceExisting - should any existing plugin be replaced\r\n * @param doAsync - Should the add be performed asynchronously\r\n */\r\n ApplicationInsights.prototype.addPlugin = function (plugin, replaceExisting, doAsync, addCb) {\r\n // @DynamicProtoStub -- DO NOT add any code as this will be removed during packaging\r\n };\r\n /**\r\n * Returns the unique event namespace that should be used\r\n */\r\n ApplicationInsights.prototype.evtNamespace = function () {\r\n // @DynamicProtoStub -- DO NOT add any code as this will be removed during packaging\r\n return null;\r\n };\r\n /**\r\n * Add an unload handler that will be called when the SDK is being unloaded\r\n * @param handler - the handler\r\n */\r\n ApplicationInsights.prototype.addUnloadCb = function (handler) {\r\n // @DynamicProtoStub -- DO NOT add any code as this will be removed during packaging\r\n };\r\n return ApplicationInsights;\r\n}());\r\nexport { ApplicationInsights };\r\nexport { AppInsightsCore, arrForEach, _InternalMessageId, isNullOrUndefined, throwError, proxyFunctions } from \"@microsoft/applicationinsights-core-js\";\r\nexport { SeverityLevel } from \"@microsoft/applicationinsights-common\";\r\nexport { Sender } from \"@microsoft/applicationinsights-channel-js\";\r\n//# sourceMappingURL=index.js.map"],"names":[],"mappings":";;;;AAA4D;AAC1B;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;8DA6EM,CAAC;;;;;;+BACwB;AAC/B;AACA;AACA;AACA;AACA;AACA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@microsoft/applicationinsights-web-basic",
|
|
3
|
-
"version": "3.0.0-beta.2208-
|
|
3
|
+
"version": "3.0.0-beta.2208-16",
|
|
4
4
|
"description": "Microsoft Application Insights Javascript SDK core and channel",
|
|
5
5
|
"homepage": "https://github.com/microsoft/ApplicationInsights-JS#readme",
|
|
6
6
|
"author": "Microsoft Application Insights Team",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@microsoft/ai-test-framework": "0.0.1",
|
|
31
31
|
"@microsoft/applicationinsights-rollup-plugin-uglify3-js": "1.0.0",
|
|
32
|
-
"@microsoft/applicationinsights-rollup-
|
|
32
|
+
"@microsoft/applicationinsights-rollup-es5": "1.0.0",
|
|
33
33
|
"@microsoft/api-extractor": "^7.18.1",
|
|
34
34
|
"grunt": "^1.5.3",
|
|
35
35
|
"grunt-cli": "^1.4.3",
|
|
@@ -54,9 +54,10 @@
|
|
|
54
54
|
"dependencies": {
|
|
55
55
|
"@microsoft/dynamicproto-js": "^1.1.6",
|
|
56
56
|
"@microsoft/applicationinsights-shims": "2.0.1",
|
|
57
|
-
"@microsoft/applicationinsights-common": "3.0.0-beta.2208-
|
|
58
|
-
"@microsoft/applicationinsights-channel-js": "3.0.0-beta.2208-
|
|
59
|
-
"@microsoft/applicationinsights-core-js": "3.0.0-beta.2208-
|
|
57
|
+
"@microsoft/applicationinsights-common": "3.0.0-beta.2208-16",
|
|
58
|
+
"@microsoft/applicationinsights-channel-js": "3.0.0-beta.2208-16",
|
|
59
|
+
"@microsoft/applicationinsights-core-js": "3.0.0-beta.2208-16",
|
|
60
|
+
"@nevware21/ts-utils": "^0.4.1"
|
|
60
61
|
},
|
|
61
62
|
"license": "MIT",
|
|
62
63
|
"publishConfig": {
|
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
// AUTO GENERATED FILE: This file is Auto Generated during build.
|
|
7
7
|
// ##############################################################
|
|
8
8
|
|
|
9
|
-
//
|
|
10
|
-
// Note: DON'T Export these const from the package as we are still targeting
|
|
11
|
-
//
|
|
9
|
+
// ###########################################################################################################################################
|
|
10
|
+
// Note: DON'T Export these const from the package as we are still targeting IE this will export a mutable variables that someone could change
|
|
11
|
+
// ###########################################################################################################################################
|
|
12
12
|
|
|
13
13
|
export const _DYN_INITIALIZE = "initialize"; // Count: 3
|
|
14
14
|
export const _DYN_DIAGNOSTIC_LOG_INTER0 = "diagnosticLogInterval"; // Count: 4
|
package/src/index.ts
CHANGED
|
@@ -34,16 +34,16 @@ export class ApplicationInsights {
|
|
|
34
34
|
|
|
35
35
|
dynamicProto(ApplicationInsights, this, (_self) => {
|
|
36
36
|
_self.config = config;
|
|
37
|
-
|
|
38
|
-
|
|
37
|
+
|
|
39
38
|
_initialize();
|
|
40
|
-
|
|
39
|
+
|
|
41
40
|
_self.initialize = _initialize;
|
|
42
|
-
|
|
41
|
+
|
|
43
42
|
_self.getSKUDefaults = () => {
|
|
44
43
|
_self.config.diagnosticLogInterval =
|
|
45
44
|
_self.config.diagnosticLogInterval && _self.config.diagnosticLogInterval > 0 ? _self.config.diagnosticLogInterval : 10000;
|
|
46
45
|
};
|
|
46
|
+
_self.getSKUDefaults();
|
|
47
47
|
|
|
48
48
|
proxyFunctions(_self, core, [
|
|
49
49
|
"track",
|
|
@@ -64,10 +64,10 @@ export class ApplicationInsights {
|
|
|
64
64
|
extensions.push(appInsightsChannel);
|
|
65
65
|
|
|
66
66
|
// initialize core
|
|
67
|
-
core.initialize(
|
|
67
|
+
core.initialize(_self.config, extensions);
|
|
68
68
|
|
|
69
69
|
// initialize extensions
|
|
70
|
-
appInsightsChannel.initialize(
|
|
70
|
+
appInsightsChannel.initialize(_self.config, core, extensions);
|
|
71
71
|
|
|
72
72
|
core.pollInternalLogs();
|
|
73
73
|
}
|
|
@@ -167,7 +167,6 @@ export {
|
|
|
167
167
|
IConfiguration,
|
|
168
168
|
AppInsightsCore,
|
|
169
169
|
IAppInsightsCore,
|
|
170
|
-
CoreUtils,
|
|
171
170
|
ITelemetryItem,
|
|
172
171
|
ILoadedPlugin,
|
|
173
172
|
arrForEach,
|
package/tsconfig.json
CHANGED
package/types/index.d.ts
CHANGED
|
@@ -65,6 +65,6 @@ export declare class ApplicationInsights {
|
|
|
65
65
|
*/
|
|
66
66
|
addUnloadCb(handler: UnloadHandler): void;
|
|
67
67
|
}
|
|
68
|
-
export { IConfiguration, AppInsightsCore, IAppInsightsCore,
|
|
68
|
+
export { IConfiguration, AppInsightsCore, IAppInsightsCore, ITelemetryItem, ILoadedPlugin, arrForEach, SendRequestReason, _eInternalMessageId, _InternalMessageId, isNullOrUndefined, throwError, proxyFunctions, IPlugin, ITelemetryPlugin } from "@microsoft/applicationinsights-core-js";
|
|
69
69
|
export { SeverityLevel, eSeverityLevel, IPageViewTelemetry, IDependencyTelemetry, IAutoExceptionTelemetry, IEventTelemetry, IMetricTelemetry, IPageViewPerformanceTelemetry, ITraceTelemetry } from "@microsoft/applicationinsights-common";
|
|
70
70
|
export { Sender } from "@microsoft/applicationinsights-channel-js";
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "aib",
|
|
3
|
-
"version": "3.0.0-beta.2208-03",
|
|
4
|
-
"ext": {
|
|
5
|
-
"@js": {
|
|
6
|
-
"file": "aib.3.0.0-beta.2208-03.js",
|
|
7
|
-
"type": "text/javascript; charset=utf-8",
|
|
8
|
-
"integrity": "sha256-k63J7FJ6E0A90epy6oWmIXPQDTvGJ0XwlAzyDvqzNPo= sha384-ijU4Cot3xG2T4Szm6EX0hEB0ilSYcKpPhwEpRPCqtv50d8FZ0Me6aMupWE27UUf4 sha512-kWJbE0Fua2/iZuexXfHHEQ/UtmkWtAbcBlBjtfXZh5V0yhDPnG1sp2Lp/HjJgYjpnRfgJxPk1Obn7R54z6UQQA==",
|
|
9
|
-
"hashes": {
|
|
10
|
-
"sha256": "k63J7FJ6E0A90epy6oWmIXPQDTvGJ0XwlAzyDvqzNPo=",
|
|
11
|
-
"sha384": "ijU4Cot3xG2T4Szm6EX0hEB0ilSYcKpPhwEpRPCqtv50d8FZ0Me6aMupWE27UUf4",
|
|
12
|
-
"sha512": "kWJbE0Fua2/iZuexXfHHEQ/UtmkWtAbcBlBjtfXZh5V0yhDPnG1sp2Lp/HjJgYjpnRfgJxPk1Obn7R54z6UQQA=="
|
|
13
|
-
}
|
|
14
|
-
},
|
|
15
|
-
"@min.js": {
|
|
16
|
-
"file": "aib.3.0.0-beta.2208-03.min.js",
|
|
17
|
-
"type": "text/javascript; charset=utf-8",
|
|
18
|
-
"integrity": "sha256-axEon8omIxguFnT4tmHB1LDgm2RyubOiOPK6GxXVKXQ= sha384-Bb4ZSz1ZwSS9fPgPB8knmWBhaiDz1yR1J7fctDMV8Z0euyzQgp9GqQhrM6nR9aoR sha512-wD4pve2eX7RM+WlTkEzYqUl9BOoCsXss4Xwk7BDW7VyoWwf1Whwsq+u1o+OwY7Ms/6Bfq0jvE0xqts8sI7i2EA==",
|
|
19
|
-
"hashes": {
|
|
20
|
-
"sha256": "axEon8omIxguFnT4tmHB1LDgm2RyubOiOPK6GxXVKXQ=",
|
|
21
|
-
"sha384": "Bb4ZSz1ZwSS9fPgPB8knmWBhaiDz1yR1J7fctDMV8Z0euyzQgp9GqQhrM6nR9aoR",
|
|
22
|
-
"sha512": "wD4pve2eX7RM+WlTkEzYqUl9BOoCsXss4Xwk7BDW7VyoWwf1Whwsq+u1o+OwY7Ms/6Bfq0jvE0xqts8sI7i2EA=="
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
}
|