@microsoft/applicationinsights-web-basic 3.0.0-beta.2211-01 → 3.0.0-beta.2211-03
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 +51 -30
- 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.2211-03.integrity.json +26 -0
- package/browser/{aib.3.0.0-beta.2211-01.js → aib.3.0.0-beta.2211-03.js} +52 -31
- package/browser/aib.3.0.0-beta.2211-03.js.map +1 -0
- package/browser/aib.3.0.0-beta.2211-03.min.js +6 -0
- package/browser/aib.3.0.0-beta.2211-03.min.js.map +1 -0
- package/dist/applicationinsights-web-basic.api.json +6 -4
- package/dist/applicationinsights-web-basic.api.md +3 -2
- package/dist/applicationinsights-web-basic.d.ts +4 -3
- package/dist/applicationinsights-web-basic.js +51 -30
- 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 +4 -3
- package/dist-esm/__DynamicConstants.js +1 -2
- package/dist-esm/__DynamicConstants.js.map +1 -1
- package/dist-esm/index.js +4 -10
- package/dist-esm/index.js.map +1 -1
- package/package.json +4 -4
- package/src/__DynamicConstants.ts +0 -1
- package/src/index.ts +1 -11
- package/types/__DynamicConstants.d.ts +0 -1
- package/browser/aib.3.0.0-beta.2211-01.integrity.json +0 -26
- package/browser/aib.3.0.0-beta.2211-01.js.map +0 -1
- package/browser/aib.3.0.0-beta.2211-01.min.js +0 -6
- package/browser/aib.3.0.0-beta.2211-01.min.js.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Microsoft.ApplicationInsights, 3.0.0-beta.2211-
|
|
2
|
+
* Microsoft.ApplicationInsights, 3.0.0-beta.2211-03
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*
|
|
5
5
|
* Microsoft Application Insights Team
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
import { arrForEach } from '@nevware21/ts-utils';
|
|
17
17
|
import { EnumCls } from '@nevware21/ts-utils';
|
|
18
18
|
import { isNullOrUndefined } from '@nevware21/ts-utils';
|
|
19
|
+
import { ITimerHandler } from '@nevware21/ts-utils';
|
|
19
20
|
import { throwError } from '@nevware21/ts-utils';
|
|
20
21
|
|
|
21
22
|
export declare class AppInsightsCore implements IAppInsightsCore {
|
|
@@ -71,7 +72,7 @@ export declare class AppInsightsCore implements IAppInsightsCore {
|
|
|
71
72
|
/**
|
|
72
73
|
* Periodically check logger.queue for
|
|
73
74
|
*/
|
|
74
|
-
pollInternalLogs(eventName?: string):
|
|
75
|
+
pollInternalLogs(eventName?: string): ITimerHandler;
|
|
75
76
|
/**
|
|
76
77
|
* Periodically check logger.queue for
|
|
77
78
|
*/
|
|
@@ -503,7 +504,7 @@ export declare interface IAppInsightsCore extends IPerfManagerProvider {
|
|
|
503
504
|
* @returns - A ITelemetryInitializerHandler to enable the initializer to be removed
|
|
504
505
|
*/
|
|
505
506
|
addTelemetryInitializer(telemetryInitializer: TelemetryInitializerFunction): ITelemetryInitializerHandler;
|
|
506
|
-
pollInternalLogs?(eventName?: string):
|
|
507
|
+
pollInternalLogs?(eventName?: string): ITimerHandler;
|
|
507
508
|
stopPollingInternalLogs?(): void;
|
|
508
509
|
/**
|
|
509
510
|
* Return a new instance of the IProcessTelemetryContext for processing events
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Application Insights JavaScript Web SDK - Basic, 3.0.0-beta.2211-
|
|
2
|
+
* Application Insights JavaScript Web SDK - Basic, 3.0.0-beta.2211-03
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -11,6 +11,5 @@
|
|
|
11
11
|
// ###########################################################################################################################################
|
|
12
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
13
|
// ###########################################################################################################################################
|
|
14
|
-
export var _DYN_INITIALIZE = "initialize"; // Count: 3
|
|
15
14
|
export var _DYN_DIAGNOSTIC_LOG_INTER0 = "diagnosticLogInterval"; // Count: 4
|
|
16
15
|
//# 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// ###########################################################################################################################################\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
|
|
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_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"}
|
package/dist-esm/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Application Insights JavaScript Web SDK - Basic, 3.0.0-beta.2211-
|
|
2
|
+
* Application Insights JavaScript Web SDK - Basic, 3.0.0-beta.2211-03
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -8,7 +8,7 @@ import dynamicProto from "@microsoft/dynamicproto-js";
|
|
|
8
8
|
import { Sender } from "@microsoft/applicationinsights-channel-js";
|
|
9
9
|
import { AppInsightsCore, isNullOrUndefined, proxyFunctions, throwError } from "@microsoft/applicationinsights-core-js";
|
|
10
10
|
import { objDefineProp } from "@nevware21/ts-utils";
|
|
11
|
-
import { _DYN_DIAGNOSTIC_LOG_INTER0
|
|
11
|
+
import { _DYN_DIAGNOSTIC_LOG_INTER0 } from "./__DynamicConstants";
|
|
12
12
|
/**
|
|
13
13
|
* @export
|
|
14
14
|
* @class ApplicationInsights
|
|
@@ -34,7 +34,7 @@ var ApplicationInsights = /** @class */ (function () {
|
|
|
34
34
|
get: function () { return config; }
|
|
35
35
|
});
|
|
36
36
|
_initialize();
|
|
37
|
-
_self
|
|
37
|
+
_self.initialize = _initialize;
|
|
38
38
|
_self.getSKUDefaults = function () {
|
|
39
39
|
_self.config[_DYN_DIAGNOSTIC_LOG_INTER0 /* @min:%2ediagnosticLogInterval */] =
|
|
40
40
|
_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;
|
|
@@ -52,14 +52,8 @@ var ApplicationInsights = /** @class */ (function () {
|
|
|
52
52
|
"addUnloadCb"
|
|
53
53
|
]);
|
|
54
54
|
function _initialize() {
|
|
55
|
-
var extensions = [];
|
|
56
|
-
var appInsightsChannel = new Sender();
|
|
57
|
-
extensions.push(appInsightsChannel);
|
|
58
55
|
// initialize core
|
|
59
|
-
core
|
|
60
|
-
// initialize extensions
|
|
61
|
-
appInsightsChannel[_DYN_INITIALIZE /* @min:%2einitialize */](_self.config, core, extensions);
|
|
62
|
-
core.pollInternalLogs();
|
|
56
|
+
core.initialize(_self.config, [new Sender()]);
|
|
63
57
|
}
|
|
64
58
|
});
|
|
65
59
|
}
|
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 { objDefineProp } from \"@nevware21/ts-utils\";\r\nimport { _DYN_DIAGNOSTIC_LOG_INTER0
|
|
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 { objDefineProp } from \"@nevware21/ts-utils\";\r\nimport { _DYN_DIAGNOSTIC_LOG_INTER0 } 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 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 // Define _self.config\r\n objDefineProp(_self, \"config\", {\r\n configurable: true,\r\n enumerable: true,\r\n get: function () { return config; }\r\n });\r\n _initialize();\r\n _self.initialize = _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 // initialize core\r\n core.initialize(_self.config, [new Sender()]);\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 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 [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, 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.2211-
|
|
3
|
+
"version": "3.0.0-beta.2211-03",
|
|
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.2211-
|
|
57
|
-
"@microsoft/applicationinsights-channel-js": "3.0.0-beta.2211-
|
|
58
|
-
"@microsoft/applicationinsights-core-js": "3.0.0-beta.2211-
|
|
56
|
+
"@microsoft/applicationinsights-common": "3.0.0-beta.2211-03",
|
|
57
|
+
"@microsoft/applicationinsights-channel-js": "3.0.0-beta.2211-03",
|
|
58
|
+
"@microsoft/applicationinsights-core-js": "3.0.0-beta.2211-03",
|
|
59
59
|
"@nevware21/ts-utils": "^0.5.0"
|
|
60
60
|
},
|
|
61
61
|
"license": "MIT",
|
|
@@ -10,5 +10,4 @@
|
|
|
10
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
11
|
// ###########################################################################################################################################
|
|
12
12
|
|
|
13
|
-
export const _DYN_INITIALIZE = "initialize"; // Count: 3
|
|
14
13
|
export const _DYN_DIAGNOSTIC_LOG_INTER0 = "diagnosticLogInterval"; // Count: 4
|
package/src/index.ts
CHANGED
|
@@ -65,18 +65,8 @@ export class ApplicationInsights {
|
|
|
65
65
|
]);
|
|
66
66
|
|
|
67
67
|
function _initialize(): void {
|
|
68
|
-
const extensions = [];
|
|
69
|
-
const appInsightsChannel: Sender = new Sender();
|
|
70
|
-
|
|
71
|
-
extensions.push(appInsightsChannel);
|
|
72
|
-
|
|
73
68
|
// initialize core
|
|
74
|
-
core.initialize(_self.config,
|
|
75
|
-
|
|
76
|
-
// initialize extensions
|
|
77
|
-
appInsightsChannel.initialize(_self.config, core, extensions);
|
|
78
|
-
|
|
79
|
-
core.pollInternalLogs();
|
|
69
|
+
core.initialize(_self.config, [new Sender()]);
|
|
80
70
|
}
|
|
81
71
|
});
|
|
82
72
|
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "aib",
|
|
3
|
-
"version": "3.0.0-beta.2211-01",
|
|
4
|
-
"ext": {
|
|
5
|
-
"@js": {
|
|
6
|
-
"file": "aib.3.0.0-beta.2211-01.js",
|
|
7
|
-
"type": "text/javascript; charset=utf-8",
|
|
8
|
-
"integrity": "sha256-eltLVj0lMiZGWm3xRqW9FUsKw3pTcLuK+U5qTuwuFtw= sha384-s63/VQRO8XjZK5mwC+Ux/ooT2/ZYIPJ9QXaX/Kk12VclhQzblyZcNPizoezO+iIS sha512-YumnjjGAezZT5vHP4R6ZxuIUcQrKs6k+LTGzTIoPyHOhw1hWUM9QATuz2RpcKWoeHZ15ieqPeKXZ59GKyT2S6Q==",
|
|
9
|
-
"hashes": {
|
|
10
|
-
"sha256": "eltLVj0lMiZGWm3xRqW9FUsKw3pTcLuK+U5qTuwuFtw=",
|
|
11
|
-
"sha384": "s63/VQRO8XjZK5mwC+Ux/ooT2/ZYIPJ9QXaX/Kk12VclhQzblyZcNPizoezO+iIS",
|
|
12
|
-
"sha512": "YumnjjGAezZT5vHP4R6ZxuIUcQrKs6k+LTGzTIoPyHOhw1hWUM9QATuz2RpcKWoeHZ15ieqPeKXZ59GKyT2S6Q=="
|
|
13
|
-
}
|
|
14
|
-
},
|
|
15
|
-
"@min.js": {
|
|
16
|
-
"file": "aib.3.0.0-beta.2211-01.min.js",
|
|
17
|
-
"type": "text/javascript; charset=utf-8",
|
|
18
|
-
"integrity": "sha256-+HPp07DLsi4k2wwM0oRa2Hhh7BvZxoYE83WgVofYKoc= sha384-R7DoEQMsBGmzPoxw9oGEOfX/gNxlQXh+fwF5oho/9LM6RJ0bONqdrzyPLlhMHAwI sha512-ZN7MS4DiIUUZ+eNoa5RPpQOc2GRDceN0vajtFhAXy0/yUfg0qCZ8paiVh5cBbJW/DjYBjKLKu+mDOGwksarJDA==",
|
|
19
|
-
"hashes": {
|
|
20
|
-
"sha256": "+HPp07DLsi4k2wwM0oRa2Hhh7BvZxoYE83WgVofYKoc=",
|
|
21
|
-
"sha384": "R7DoEQMsBGmzPoxw9oGEOfX/gNxlQXh+fwF5oho/9LM6RJ0bONqdrzyPLlhMHAwI",
|
|
22
|
-
"sha512": "ZN7MS4DiIUUZ+eNoa5RPpQOc2GRDceN0vajtFhAXy0/yUfg0qCZ8paiVh5cBbJW/DjYBjKLKu+mDOGwksarJDA=="
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
}
|