@microsoft/applicationinsights-core-js 3.0.0-beta.2208-04 → 3.0.0-beta.2208-14
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/applicationinsights-core-js.integrity.json +9 -9
- package/browser/applicationinsights-core-js.js +5 -11
- 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 +29 -1
- package/dist/applicationinsights-core-js.api.md +1 -0
- package/dist/applicationinsights-core-js.d.ts +7 -1
- package/dist/applicationinsights-core-js.js +5 -11
- 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 +7 -1
- package/dist-esm/JavaScriptSDK/AppInsightsCore.js +1 -1
- package/dist-esm/JavaScriptSDK/BaseCore.js +1 -1
- package/dist-esm/JavaScriptSDK/BaseTelemetryPlugin.js +1 -1
- package/dist-esm/JavaScriptSDK/ChannelController.js +1 -1
- package/dist-esm/JavaScriptSDK/CookieMgr.js +1 -1
- package/dist-esm/JavaScriptSDK/CoreUtils.js +4 -9
- 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 +1 -1
- package/dist-esm/JavaScriptSDK/DiagnosticLogger.js +1 -1
- package/dist-esm/JavaScriptSDK/EnvUtils.js +1 -1
- package/dist-esm/JavaScriptSDK/EventHelpers.js +1 -1
- package/dist-esm/JavaScriptSDK/HelperFuncs.js +1 -1
- package/dist-esm/JavaScriptSDK/InstrumentHooks.js +1 -1
- package/dist-esm/JavaScriptSDK/InternalConstants.js +1 -1
- package/dist-esm/JavaScriptSDK/NotificationManager.js +1 -1
- package/dist-esm/JavaScriptSDK/PerfManager.js +1 -1
- package/dist-esm/JavaScriptSDK/ProcessTelemetryContext.js +1 -1
- package/dist-esm/JavaScriptSDK/RandomHelper.js +1 -1
- package/dist-esm/JavaScriptSDK/TelemetryHelpers.js +1 -1
- package/dist-esm/JavaScriptSDK/TelemetryInitializerPlugin.js +1 -1
- package/dist-esm/JavaScriptSDK/UnloadHandlerContainer.js +1 -1
- package/dist-esm/JavaScriptSDK/W3cTraceParent.js +1 -1
- package/dist-esm/JavaScriptSDK.Enums/EnumHelperFuncs.js +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 +3 -3
- package/dist-esm/__DynamicConstants.js.map +1 -1
- package/dist-esm/applicationinsights-core-js.js +1 -1
- package/package.json +1 -1
- package/src/JavaScriptSDK/CoreUtils.ts +3 -7
- package/src/JavaScriptSDK.Interfaces/ITelemetryPlugin.ts +7 -0
- package/types/JavaScriptSDK.Interfaces/ITelemetryPlugin.d.ts +6 -0
- package/types/__DynamicConstants.d.ts +1 -1
- package/types/tsdoc-metadata.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"metadata": {
|
|
3
3
|
"toolPackage": "@microsoft/api-extractor",
|
|
4
|
-
"toolVersion": "7.
|
|
4
|
+
"toolVersion": "7.29.0",
|
|
5
5
|
"schemaVersion": 1009,
|
|
6
6
|
"oldestForwardsCompatibleVersion": 1001,
|
|
7
7
|
"tsdocConfig": {
|
|
@@ -17559,6 +17559,34 @@
|
|
|
17559
17559
|
"name": "IPlugin",
|
|
17560
17560
|
"preserveMemberOrder": false,
|
|
17561
17561
|
"members": [
|
|
17562
|
+
{
|
|
17563
|
+
"kind": "PropertySignature",
|
|
17564
|
+
"canonicalReference": "@microsoft/applicationinsights-core-js!IPlugin#core:member",
|
|
17565
|
+
"docComment": "/**\n * The App Insights core to use for backward compatibility. Therefore the interface will be able to access the core without needing to cast to \"any\". [optional] any 3rd party plugins which are already implementing this interface don't fail to compile.\n */\n",
|
|
17566
|
+
"excerptTokens": [
|
|
17567
|
+
{
|
|
17568
|
+
"kind": "Content",
|
|
17569
|
+
"text": "core?: "
|
|
17570
|
+
},
|
|
17571
|
+
{
|
|
17572
|
+
"kind": "Reference",
|
|
17573
|
+
"text": "IAppInsightsCore",
|
|
17574
|
+
"canonicalReference": "@microsoft/applicationinsights-core-js!IAppInsightsCore:interface"
|
|
17575
|
+
},
|
|
17576
|
+
{
|
|
17577
|
+
"kind": "Content",
|
|
17578
|
+
"text": ";"
|
|
17579
|
+
}
|
|
17580
|
+
],
|
|
17581
|
+
"isReadonly": false,
|
|
17582
|
+
"isOptional": true,
|
|
17583
|
+
"releaseTag": "Public",
|
|
17584
|
+
"name": "core",
|
|
17585
|
+
"propertyTypeTokenRange": {
|
|
17586
|
+
"startIndex": 1,
|
|
17587
|
+
"endIndex": 2
|
|
17588
|
+
}
|
|
17589
|
+
},
|
|
17562
17590
|
{
|
|
17563
17591
|
"kind": "PropertySignature",
|
|
17564
17592
|
"canonicalReference": "@microsoft/applicationinsights-core-js!IPlugin#identifier:member",
|
|
@@ -876,6 +876,7 @@ export interface IPerfManagerProvider {
|
|
|
876
876
|
|
|
877
877
|
// @public (undocumented)
|
|
878
878
|
export interface IPlugin {
|
|
879
|
+
core?: IAppInsightsCore;
|
|
879
880
|
readonly identifier: string;
|
|
880
881
|
initialize: (config: IConfiguration, core: IAppInsightsCore, extensions: IPlugin[], pluginChain?: ITelemetryPluginChain) => void;
|
|
881
882
|
isInitialized?: () => boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Microsoft Application Insights Core Javascript SDK, 3.0.0-beta.2208-
|
|
2
|
+
* Microsoft Application Insights Core Javascript SDK, 3.0.0-beta.2208-14
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*
|
|
5
5
|
* Microsoft Application Insights Team
|
|
@@ -2022,6 +2022,12 @@ declare namespace ApplicationInsights {
|
|
|
2022
2022
|
* Plugin version (available in data.properties.version in common schema)
|
|
2023
2023
|
*/
|
|
2024
2024
|
readonly version?: string;
|
|
2025
|
+
/**
|
|
2026
|
+
* The App Insights core to use for backward compatibility.
|
|
2027
|
+
* Therefore the interface will be able to access the core without needing to cast to "any".
|
|
2028
|
+
* [optional] any 3rd party plugins which are already implementing this interface don't fail to compile.
|
|
2029
|
+
*/
|
|
2030
|
+
core?: IAppInsightsCore;
|
|
2025
2031
|
}
|
|
2026
2032
|
|
|
2027
2033
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Application Insights JavaScript SDK - Core, 3.0.0-beta.2208-
|
|
2
|
+
* Application Insights JavaScript SDK - Core, 3.0.0-beta.2208-14
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*/
|
|
5
5
|
(function (global, factory) {
|
|
@@ -131,10 +131,10 @@
|
|
|
131
131
|
var _DYN_USER_AGENT = "userAgent";
|
|
132
132
|
var _DYN_SPLIT = "split";
|
|
133
133
|
var _DYN_SET_ENABLED = "setEnabled";
|
|
134
|
-
var _DYN_REPLACE = "replace";
|
|
135
134
|
var _DYN_SUBSTR = "substr";
|
|
136
135
|
var _DYN_NODE_TYPE = "nodeType";
|
|
137
136
|
var _DYN_APPLY = "apply";
|
|
137
|
+
var _DYN_REPLACE = "replace";
|
|
138
138
|
var _DYN_ENABLE_DEBUG_EXCEPTI4 = "enableDebugExceptions";
|
|
139
139
|
var _DYN_LOG_INTERNAL_MESSAGE = "logInternalMessage";
|
|
140
140
|
var _DYN_TO_LOWER_CASE = "toLowerCase";
|
|
@@ -1672,7 +1672,7 @@
|
|
|
1672
1672
|
}
|
|
1673
1673
|
|
|
1674
1674
|
var _objDefineProperty = ObjDefineProperty;
|
|
1675
|
-
var version = "3.0.0-beta.2208-
|
|
1675
|
+
var version = "3.0.0-beta.2208-14";
|
|
1676
1676
|
var instanceName = "." + newId(6);
|
|
1677
1677
|
var _dataUid = 0;
|
|
1678
1678
|
function _createAccessor(target, prop, value) {
|
|
@@ -2304,13 +2304,8 @@
|
|
|
2304
2304
|
var _canUseCookies;
|
|
2305
2305
|
var Undefined = strShimUndefined;
|
|
2306
2306
|
function newGuid() {
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
}
|
|
2310
|
-
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx"[_DYN_REPLACE ](GuidRegex, function (c) {
|
|
2311
|
-
var r = (randomHexDigit() | 0), v = (c === "x" ? r : r & 0x3 | 0x8);
|
|
2312
|
-
return v.toString(16);
|
|
2313
|
-
});
|
|
2307
|
+
var uuid = generateW3CId();
|
|
2308
|
+
return uuid[_DYN_SUBSTRING ](0, 8) + "-" + uuid[_DYN_SUBSTRING ](8, 12) + "-" + uuid[_DYN_SUBSTRING ](12, 16) + "-" + uuid[_DYN_SUBSTRING ](16, 20) + "-" + uuid[_DYN_SUBSTRING ](20);
|
|
2314
2309
|
}
|
|
2315
2310
|
function perfNow() {
|
|
2316
2311
|
var perf = getPerformance();
|
|
@@ -2373,7 +2368,6 @@
|
|
|
2373
2368
|
mwcRandom32: mwcRandom32,
|
|
2374
2369
|
generateW3CId: generateW3CId
|
|
2375
2370
|
};
|
|
2376
|
-
var GuidRegex = /[xy]/g;
|
|
2377
2371
|
var EventHelper = {
|
|
2378
2372
|
Attach: attachEvent,
|
|
2379
2373
|
AttachEvent: attachEvent,
|