@microsoft/applicationinsights-web 2.8.0-beta.2203-06 → 2.8.0-beta.2203-09
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/browser/{ai.2.8.0-beta.2203-06.cjs.js → ai.2.8.0-beta.2203-09.cjs.js} +43 -21
- package/browser/ai.2.8.0-beta.2203-09.cjs.js.map +1 -0
- package/browser/ai.2.8.0-beta.2203-09.cjs.min.js +6 -0
- package/browser/ai.2.8.0-beta.2203-09.cjs.min.js.map +1 -0
- package/browser/{ai.2.8.0-beta.2203-06.gbl.js → ai.2.8.0-beta.2203-09.gbl.js} +43 -21
- package/browser/ai.2.8.0-beta.2203-09.gbl.js.map +1 -0
- package/browser/ai.2.8.0-beta.2203-09.gbl.min.js +6 -0
- package/browser/ai.2.8.0-beta.2203-09.gbl.min.js.map +1 -0
- package/browser/ai.2.8.0-beta.2203-09.integrity.json +66 -0
- package/browser/{ai.2.8.0-beta.2203-06.js → ai.2.8.0-beta.2203-09.js} +43 -21
- package/browser/ai.2.8.0-beta.2203-09.js.map +1 -0
- package/browser/ai.2.8.0-beta.2203-09.min.js +6 -0
- package/browser/ai.2.8.0-beta.2203-09.min.js.map +1 -0
- package/browser/ai.2.cjs.js +42 -20
- package/browser/ai.2.cjs.js.map +1 -1
- package/browser/ai.2.cjs.min.js +2 -2
- package/browser/ai.2.cjs.min.js.map +1 -1
- package/browser/ai.2.gbl.js +42 -20
- package/browser/ai.2.gbl.js.map +1 -1
- package/browser/ai.2.gbl.min.js +2 -2
- package/browser/ai.2.gbl.min.js.map +1 -1
- package/browser/ai.2.js +42 -20
- package/browser/ai.2.js.map +1 -1
- package/browser/ai.2.min.js +2 -2
- package/browser/ai.2.min.js.map +1 -1
- package/dist/applicationinsights-web.api.json +202 -12
- package/dist/applicationinsights-web.api.md +6 -5
- package/dist/applicationinsights-web.d.ts +38 -5
- package/dist/applicationinsights-web.js +42 -20
- package/dist/applicationinsights-web.js.map +1 -1
- package/dist/applicationinsights-web.min.js +2 -2
- package/dist/applicationinsights-web.min.js.map +1 -1
- package/dist/applicationinsights-web.rollup.d.ts +38 -5
- package/dist-esm/ApplicationInsightsContainer.js +1 -1
- package/dist-esm/ApplicationInsightsDeprecated.js +1 -1
- package/dist-esm/Init.js +1 -1
- package/dist-esm/Initialization.js +1 -1
- package/dist-esm/applicationinsights-web.js +1 -1
- package/package.json +7 -7
- package/browser/ai.2.8.0-beta.2203-06.cjs.js.map +0 -1
- package/browser/ai.2.8.0-beta.2203-06.cjs.min.js +0 -6
- package/browser/ai.2.8.0-beta.2203-06.cjs.min.js.map +0 -1
- package/browser/ai.2.8.0-beta.2203-06.gbl.js.map +0 -1
- package/browser/ai.2.8.0-beta.2203-06.gbl.min.js +0 -6
- package/browser/ai.2.8.0-beta.2203-06.gbl.min.js.map +0 -1
- package/browser/ai.2.8.0-beta.2203-06.integrity.json +0 -66
- package/browser/ai.2.8.0-beta.2203-06.js.map +0 -1
- package/browser/ai.2.8.0-beta.2203-06.min.js +0 -6
- package/browser/ai.2.8.0-beta.2203-06.min.js.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Microsoft.ApplicationInsights, 2.8.0-beta.2203-
|
|
2
|
+
* Microsoft.ApplicationInsights, 2.8.0-beta.2203-09
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*
|
|
5
5
|
* Microsoft Application Insights Team
|
|
@@ -426,10 +426,20 @@ export declare class BaseCore implements IAppInsightsCore {
|
|
|
426
426
|
* approach is to create a new instance and initialize that instance.
|
|
427
427
|
* This is due to possible unexpected side effects caused by plugins not supporting unload / teardown, unable
|
|
428
428
|
* to successfully remove any global references or they may just be completing the unload process asynchronously.
|
|
429
|
+
* @param isAsync - Can the unload be performed asynchronously (default)
|
|
430
|
+
* @param unloadComplete - An optional callback that will be called once the unload has completed
|
|
431
|
+
* @param cbTimeout - An optional timeout to wait for any flush operations to complete before proceeding with the unload. Defaults to 5 seconds.
|
|
429
432
|
*/
|
|
430
433
|
unload(isAsync?: boolean, unloadComplete?: (unloadState: ITelemetryUnloadState) => void, cbTimeout?: number): void;
|
|
431
434
|
getPlugin<T extends IPlugin = IPlugin>(pluginIdentifier: string): ILoadedPlugin<T>;
|
|
432
|
-
|
|
435
|
+
/**
|
|
436
|
+
* Add a new plugin to the installation
|
|
437
|
+
* @param plugin - The new plugin to add
|
|
438
|
+
* @param replaceExisting - should any existing plugin be replaced, default is false
|
|
439
|
+
* @param doAsync - Should the add be performed asynchronously
|
|
440
|
+
* @param addCb - [Optional] callback to call after the plugin has been added
|
|
441
|
+
*/
|
|
442
|
+
addPlugin<T extends IPlugin = ITelemetryPlugin>(plugin: T, replaceExisting?: boolean, doAsync?: boolean, addCb?: (added?: boolean) => void): void;
|
|
433
443
|
/**
|
|
434
444
|
* Returns the unique event namespace that should be used
|
|
435
445
|
*/
|
|
@@ -439,6 +449,15 @@ export declare class BaseCore implements IAppInsightsCore {
|
|
|
439
449
|
* @param handler - the handler
|
|
440
450
|
*/
|
|
441
451
|
addUnloadCb(handler: UnloadHandler): void;
|
|
452
|
+
/**
|
|
453
|
+
* Flush and send any batched / cached data immediately
|
|
454
|
+
* @param async - send data asynchronously when true (defaults to true)
|
|
455
|
+
* @param callBack - if specified, notify caller when send is complete, the channel should return true to indicate to the caller that it will be called.
|
|
456
|
+
* If the caller doesn't return true the caller should assume that it may never be called.
|
|
457
|
+
* @param sendReason - specify the reason that you are calling "flush" defaults to ManualFlush (1) if not specified
|
|
458
|
+
* @returns - true if the callback will be return after the flush is complete otherwise the caller should assume that any provided callback will never be called
|
|
459
|
+
*/
|
|
460
|
+
flush(isAsync?: boolean, callBack?: (flushComplete?: boolean) => void, sendReason?: SendRequestReason): void;
|
|
442
461
|
protected releaseQueue(): void;
|
|
443
462
|
/**
|
|
444
463
|
* Hook for Core extensions to allow them to update their own configuration before updating all of the plugins.
|
|
@@ -1103,8 +1122,11 @@ export declare interface IAppInsightsCore extends IPerfManagerProvider {
|
|
|
1103
1122
|
* approach is to create a new instance and initialize that instance.
|
|
1104
1123
|
* This is due to possible unexpected side effects caused by plugins not supporting unload / teardown, unable
|
|
1105
1124
|
* to successfully remove any global references or they may just be completing the unload process asynchronously.
|
|
1125
|
+
* @param isAsync - Can the unload be performed asynchronously (default)
|
|
1126
|
+
* @param unloadComplete - An optional callback that will be called once the unload has completed
|
|
1127
|
+
* @param cbTimeout - An optional timeout to wait for any flush operations to complete before proceeding with the unload. Defaults to 5 seconds.
|
|
1106
1128
|
*/
|
|
1107
|
-
unload(isAsync?: boolean, unloadComplete?: () => void): void;
|
|
1129
|
+
unload(isAsync?: boolean, unloadComplete?: (unloadState: ITelemetryUnloadState) => void, cbTimeout?: number): void;
|
|
1108
1130
|
/**
|
|
1109
1131
|
* Find and return the (first) plugin with the specified identifier if present
|
|
1110
1132
|
* @param pluginIdentifier
|
|
@@ -1113,10 +1135,11 @@ export declare interface IAppInsightsCore extends IPerfManagerProvider {
|
|
|
1113
1135
|
/**
|
|
1114
1136
|
* Add a new plugin to the installation
|
|
1115
1137
|
* @param plugin - The new plugin to add
|
|
1116
|
-
* @param replaceExisting - should any existing plugin be replaced
|
|
1138
|
+
* @param replaceExisting - should any existing plugin be replaced, default is false
|
|
1117
1139
|
* @param doAsync - Should the add be performed asynchronously
|
|
1140
|
+
* @param addCb - [Optional] callback to call after the plugin has been added
|
|
1118
1141
|
*/
|
|
1119
|
-
addPlugin<T extends IPlugin = ITelemetryPlugin>(plugin: T, replaceExisting
|
|
1142
|
+
addPlugin<T extends IPlugin = ITelemetryPlugin>(plugin: T, replaceExisting?: boolean, doAsync?: boolean, addCb?: (added?: boolean) => void): void;
|
|
1120
1143
|
/**
|
|
1121
1144
|
* Returns the unique event namespace that should be used when registering events
|
|
1122
1145
|
*/
|
|
@@ -1126,6 +1149,16 @@ export declare interface IAppInsightsCore extends IPerfManagerProvider {
|
|
|
1126
1149
|
* @param handler - the handler
|
|
1127
1150
|
*/
|
|
1128
1151
|
addUnloadCb(handler: UnloadHandler): void;
|
|
1152
|
+
/**
|
|
1153
|
+
* Flush and send any batched / cached data immediately
|
|
1154
|
+
* @param async - send data asynchronously when true (defaults to true)
|
|
1155
|
+
* @param callBack - if specified, notify caller when send is complete, the channel should return true to indicate to the caller that it will be called.
|
|
1156
|
+
* If the caller doesn't return true the caller should assume that it may never be called.
|
|
1157
|
+
* @param sendReason - specify the reason that you are calling "flush" defaults to ManualFlush (1) if not specified
|
|
1158
|
+
* @param cbTimeout - An optional timeout to wait for any flush operations to complete before proceeding with the unload. Defaults to 5 seconds.
|
|
1159
|
+
* @returns - true if the callback will be return after the flush is complete otherwise the caller should assume that any provided callback will never be called
|
|
1160
|
+
*/
|
|
1161
|
+
flush(isAsync?: boolean, callBack?: (flushComplete?: boolean) => void, sendReason?: SendRequestReason, cbTimeout?: number): boolean | void;
|
|
1129
1162
|
}
|
|
1130
1163
|
|
|
1131
1164
|
export declare interface IAppInsightsDeprecated {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Application Insights JavaScript SDK - Web, 2.8.0-beta.2203-
|
|
2
|
+
* Application Insights JavaScript SDK - Web, 2.8.0-beta.2203-09
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*/
|
|
5
5
|
import { AppInsightsDeprecated } from "./ApplicationInsightsDeprecated";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Application Insights JavaScript SDK - Web, 2.8.0-beta.2203-
|
|
2
|
+
* Application Insights JavaScript SDK - Web, 2.8.0-beta.2203-09
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*/
|
|
5
5
|
import { stringToBoolOrDefault, ProcessLegacy } from "@microsoft/applicationinsights-common";
|
package/dist-esm/Init.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Application Insights JavaScript SDK - Web, 2.8.0-beta.2203-
|
|
2
|
+
* Application Insights JavaScript SDK - Web, 2.8.0-beta.2203-09
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*/
|
|
5
5
|
export { Initialization as ApplicationInsights, Telemetry } from "./Initialization";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@microsoft/applicationinsights-web",
|
|
3
|
-
"version": "2.8.0-beta.2203-
|
|
3
|
+
"version": "2.8.0-beta.2203-09",
|
|
4
4
|
"description": "Microsoft Application Insights JavaScript SDK - Web",
|
|
5
5
|
"homepage": "https://github.com/microsoft/ApplicationInsights-JS#readme",
|
|
6
6
|
"author": "Microsoft Application Insights Team",
|
|
@@ -66,12 +66,12 @@
|
|
|
66
66
|
"dependencies": {
|
|
67
67
|
"@microsoft/dynamicproto-js": "^1.1.4",
|
|
68
68
|
"@microsoft/applicationinsights-shims": "2.0.1",
|
|
69
|
-
"@microsoft/applicationinsights-analytics-js": "2.8.0-beta.2203-
|
|
70
|
-
"@microsoft/applicationinsights-channel-js": "2.8.0-beta.2203-
|
|
71
|
-
"@microsoft/applicationinsights-common": "2.8.0-beta.2203-
|
|
72
|
-
"@microsoft/applicationinsights-core-js": "2.8.0-beta.2203-
|
|
73
|
-
"@microsoft/applicationinsights-dependencies-js": "2.8.0-beta.2203-
|
|
74
|
-
"@microsoft/applicationinsights-properties-js": "2.8.0-beta.2203-
|
|
69
|
+
"@microsoft/applicationinsights-analytics-js": "2.8.0-beta.2203-09",
|
|
70
|
+
"@microsoft/applicationinsights-channel-js": "2.8.0-beta.2203-09",
|
|
71
|
+
"@microsoft/applicationinsights-common": "2.8.0-beta.2203-09",
|
|
72
|
+
"@microsoft/applicationinsights-core-js": "2.8.0-beta.2203-09",
|
|
73
|
+
"@microsoft/applicationinsights-dependencies-js": "2.8.0-beta.2203-09",
|
|
74
|
+
"@microsoft/applicationinsights-properties-js": "2.8.0-beta.2203-09"
|
|
75
75
|
},
|
|
76
76
|
"license": "MIT",
|
|
77
77
|
"publishConfig": {
|