@microsoft/applicationinsights-web-basic 3.0.0-beta.2301-15 → 3.0.0-beta.2301-18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/browser/aib.2.js +108 -68
- 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.2301-18.integrity.json +26 -0
- package/browser/{aib.3.0.0-beta.2301-15.js → aib.3.0.0-beta.2301-18.js} +109 -69
- package/browser/aib.3.0.0-beta.2301-18.js.map +1 -0
- package/browser/aib.3.0.0-beta.2301-18.min.js +6 -0
- package/browser/aib.3.0.0-beta.2301-18.min.js.map +1 -0
- package/dist/applicationinsights-web-basic.d.ts +31 -2
- package/dist/applicationinsights-web-basic.js +108 -68
- 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 +31 -2
- package/dist-esm/__DynamicConstants.js +1 -1
- package/dist-esm/index.js +1 -1
- package/package.json +4 -4
- package/browser/aib.3.0.0-beta.2301-15.integrity.json +0 -26
- package/browser/aib.3.0.0-beta.2301-15.js.map +0 -1
- package/browser/aib.3.0.0-beta.2301-15.min.js +0 -6
- package/browser/aib.3.0.0-beta.2301-15.min.js.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Microsoft.ApplicationInsights, 3.0.0-beta.2301-
|
|
2
|
+
* Microsoft.ApplicationInsights, 3.0.0-beta.2301-18
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*
|
|
5
5
|
* Microsoft Application Insights Team
|
|
@@ -314,6 +314,12 @@ declare abstract class BaseTelemetryPlugin implements ITelemetryPlugin {
|
|
|
314
314
|
* @returns boolean - true if the plugin has or will call asyncCallback, this allows the plugin to perform any asynchronous operations.
|
|
315
315
|
*/
|
|
316
316
|
protected _doUpdate?: (updateCtx?: IProcessTelemetryUpdateContext, updateState?: ITelemetryUpdateState, asyncCallback?: () => void) => void | boolean;
|
|
317
|
+
/**
|
|
318
|
+
* Exposes the underlying unload hook container instance for this extension to allow it to be passed down to any sub components of the class.
|
|
319
|
+
* This should NEVER be exposed or called publically as it's scope is for internal use by BaseTelemetryPlugin and any derived class (which is why
|
|
320
|
+
* it's scoped as protected)
|
|
321
|
+
*/
|
|
322
|
+
protected readonly _unloadHooks: IUnloadHookContainer;
|
|
317
323
|
constructor();
|
|
318
324
|
initialize(config: IConfiguration, core: IAppInsightsCore, extensions: IPlugin[], pluginChain?: ITelemetryPluginChain): void;
|
|
319
325
|
/**
|
|
@@ -342,7 +348,7 @@ declare abstract class BaseTelemetryPlugin implements ITelemetryPlugin {
|
|
|
342
348
|
* Add this hook so that it is automatically removed during unloading
|
|
343
349
|
* @param hooks - The single hook or an array of IInstrumentHook objects
|
|
344
350
|
*/
|
|
345
|
-
protected _addHook(hooks: IUnloadHook | IUnloadHook[] | ILegacyUnloadHook | ILegacyUnloadHook[]): void;
|
|
351
|
+
protected _addHook(hooks: IUnloadHook | IUnloadHook[] | Iterator<IUnloadHook> | ILegacyUnloadHook | ILegacyUnloadHook[] | Iterator<ILegacyUnloadHook>): void;
|
|
346
352
|
}
|
|
347
353
|
|
|
348
354
|
declare const DistributedTracingModes: EnumValue<typeof eDistributedTracingModes>;
|
|
@@ -2352,6 +2358,15 @@ declare interface IUnloadHook {
|
|
|
2352
2358
|
rm: () => void;
|
|
2353
2359
|
}
|
|
2354
2360
|
|
|
2361
|
+
/**
|
|
2362
|
+
* Interface which identifiesAdd this hook so that it is automatically removed during unloading
|
|
2363
|
+
* @param hooks - The single hook or an array of IInstrumentHook objects
|
|
2364
|
+
*/
|
|
2365
|
+
declare interface IUnloadHookContainer {
|
|
2366
|
+
add: (hooks: IUnloadHook | IUnloadHook[] | Iterator<IUnloadHook> | ILegacyUnloadHook | ILegacyUnloadHook[] | Iterator<ILegacyUnloadHook>) => void;
|
|
2367
|
+
run: (logger?: IDiagnosticLogger) => void;
|
|
2368
|
+
}
|
|
2369
|
+
|
|
2355
2370
|
declare interface IWatchDetails<T extends IConfiguration> {
|
|
2356
2371
|
/**
|
|
2357
2372
|
* The current config object
|
|
@@ -2370,6 +2385,20 @@ declare interface IWatchDetails<T extends IConfiguration> {
|
|
|
2370
2385
|
* @param defaultValues - The default values to apply to the config
|
|
2371
2386
|
*/
|
|
2372
2387
|
setDf: <C>(theConfig: C, defaultValues: IConfigDefaults<C>) => C;
|
|
2388
|
+
/**
|
|
2389
|
+
* Set this named property of the target as referenced, which will cause any object or array instance
|
|
2390
|
+
* to be updated in-place rather than being entirely replaced. All other values will continue to be replaced.
|
|
2391
|
+
* @returns The referenced properties current value
|
|
2392
|
+
*/
|
|
2393
|
+
ref: <C, V = any>(target: C, name: string) => V;
|
|
2394
|
+
/**
|
|
2395
|
+
* Set this named property of the target as read-only, which will block this single named property from
|
|
2396
|
+
* ever being changed for the target instance.
|
|
2397
|
+
* This does NOT freeze or seal the instance, it just stops the direct re-assignment of the named property,
|
|
2398
|
+
* if the value is a non-primitive (ie. an object or array) it's properties will still be mutable.
|
|
2399
|
+
* @returns The referenced properties current value
|
|
2400
|
+
*/
|
|
2401
|
+
rdOnly: <C, V = any>(target: C, name: string) => V;
|
|
2373
2402
|
}
|
|
2374
2403
|
|
|
2375
2404
|
declare const LoggingSeverity: EnumValue<typeof eLoggingSeverity>;
|
package/dist-esm/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@microsoft/applicationinsights-web-basic",
|
|
3
|
-
"version": "3.0.0-beta.2301-
|
|
3
|
+
"version": "3.0.0-beta.2301-18",
|
|
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",
|
|
@@ -53,9 +53,9 @@
|
|
|
53
53
|
"dependencies": {
|
|
54
54
|
"@microsoft/dynamicproto-js": "^1.1.7",
|
|
55
55
|
"@microsoft/applicationinsights-shims": "2.0.2",
|
|
56
|
-
"@microsoft/applicationinsights-common": "3.0.0-beta.2301-
|
|
57
|
-
"@microsoft/applicationinsights-channel-js": "3.0.0-beta.2301-
|
|
58
|
-
"@microsoft/applicationinsights-core-js": "3.0.0-beta.2301-
|
|
56
|
+
"@microsoft/applicationinsights-common": "3.0.0-beta.2301-18",
|
|
57
|
+
"@microsoft/applicationinsights-channel-js": "3.0.0-beta.2301-18",
|
|
58
|
+
"@microsoft/applicationinsights-core-js": "3.0.0-beta.2301-18",
|
|
59
59
|
"@nevware21/ts-utils": "^0.6.0"
|
|
60
60
|
},
|
|
61
61
|
"license": "MIT",
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "aib",
|
|
3
|
-
"version": "3.0.0-beta.2301-15",
|
|
4
|
-
"ext": {
|
|
5
|
-
"@js": {
|
|
6
|
-
"file": "aib.3.0.0-beta.2301-15.js",
|
|
7
|
-
"type": "text/javascript; charset=utf-8",
|
|
8
|
-
"integrity": "sha256-CXLoKnQ8dEJWmgz4wYY9Qe/66B2rscp0fq9Jua27aFQ= sha384-XSXwdDkD+g7BjrHR3ElQJP9/2sIgsg/f7ensipkh6qHDM9A5eZOYjY76OMPPLzDJ sha512-Y6rXqMqhXgnWw4/xZxKkNf6j+6hfRT3Wjre1ws1+byhqcFmHeg/v7k815dbSwcWR8KbQ47RPU0BdCC65UwALRg==",
|
|
9
|
-
"hashes": {
|
|
10
|
-
"sha256": "CXLoKnQ8dEJWmgz4wYY9Qe/66B2rscp0fq9Jua27aFQ=",
|
|
11
|
-
"sha384": "XSXwdDkD+g7BjrHR3ElQJP9/2sIgsg/f7ensipkh6qHDM9A5eZOYjY76OMPPLzDJ",
|
|
12
|
-
"sha512": "Y6rXqMqhXgnWw4/xZxKkNf6j+6hfRT3Wjre1ws1+byhqcFmHeg/v7k815dbSwcWR8KbQ47RPU0BdCC65UwALRg=="
|
|
13
|
-
}
|
|
14
|
-
},
|
|
15
|
-
"@min.js": {
|
|
16
|
-
"file": "aib.3.0.0-beta.2301-15.min.js",
|
|
17
|
-
"type": "text/javascript; charset=utf-8",
|
|
18
|
-
"integrity": "sha256-6ukheOZLTUrjkakVkD3pZNjAzc+uqH6d7QEXrKH172E= sha384-bjRk1bpDicMgsVf5gT+5qzeq03oF3nCumbZqFd5s3GsIB82hcgS54pO89QcR+d77 sha512-OfGDS+OEZVNfDB4WbbsD++hBLfHHZItJ2wqoK/7gXl1cntlkZQ0kgY/oe7UzX+ZoeY680CeYQRY86xUX7BIAWQ==",
|
|
19
|
-
"hashes": {
|
|
20
|
-
"sha256": "6ukheOZLTUrjkakVkD3pZNjAzc+uqH6d7QEXrKH172E=",
|
|
21
|
-
"sha384": "bjRk1bpDicMgsVf5gT+5qzeq03oF3nCumbZqFd5s3GsIB82hcgS54pO89QcR+d77",
|
|
22
|
-
"sha512": "OfGDS+OEZVNfDB4WbbsD++hBLfHHZItJ2wqoK/7gXl1cntlkZQ0kgY/oe7UzX+ZoeY680CeYQRY86xUX7BIAWQ=="
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
}
|