@microsoft/applicationinsights-core-js 3.4.6-nightly3.2610-15 → 3.4.6
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/es5/applicationinsights-core-js.cjs.js +26 -3
- package/browser/es5/applicationinsights-core-js.cjs.js.map +1 -1
- package/browser/es5/applicationinsights-core-js.cjs.min.js +2 -2
- package/browser/es5/applicationinsights-core-js.cjs.min.js.map +1 -1
- package/browser/es5/applicationinsights-core-js.gbl.js +28 -5
- package/browser/es5/applicationinsights-core-js.gbl.js.map +1 -1
- package/browser/es5/applicationinsights-core-js.gbl.min.js +2 -2
- package/browser/es5/applicationinsights-core-js.gbl.min.js.map +1 -1
- package/browser/es5/applicationinsights-core-js.integrity.json +25 -25
- package/browser/es5/applicationinsights-core-js.js +28 -5
- package/browser/es5/applicationinsights-core-js.js.map +1 -1
- package/browser/es5/applicationinsights-core-js.min.js +2 -2
- package/browser/es5/applicationinsights-core-js.min.js.map +1 -1
- package/dist/es5/index.js +26 -3
- package/dist/es5/index.js.map +1 -1
- package/dist/es5/index.min.js +2 -2
- package/dist/es5/index.min.js.map +1 -1
- package/dist-es5/__DynamicConstants.js +2 -2
- package/dist-es5/__DynamicConstants.js.map +1 -1
- package/dist-es5/config/ConfigDefaultHelpers.js +1 -1
- package/dist-es5/config/ConfigDefaults.js +1 -1
- package/dist-es5/config/DynamicConfig.js +1 -1
- package/dist-es5/config/DynamicProperty.js +1 -1
- package/dist-es5/config/DynamicState.js +1 -1
- package/dist-es5/config/DynamicSupport.js +1 -1
- package/dist-es5/constants/Constants.js +1 -1
- package/dist-es5/constants/InternalConstants.js +1 -1
- package/dist-es5/core/AggregationError.js +1 -1
- package/dist-es5/core/AppInsightsCore.js +1 -1
- package/dist-es5/core/AsyncUtils.js +1 -1
- package/dist-es5/core/BaseTelemetryPlugin.js +1 -1
- package/dist-es5/core/CookieMgr.js +1 -1
- package/dist-es5/core/DbgExtensionUtils.js +1 -1
- package/dist-es5/core/InstrumentHooks.js +1 -1
- package/dist-es5/core/InternalSdkStats.js +1 -1
- package/dist-es5/core/NotificationManager.js +27 -2
- package/dist-es5/core/NotificationManager.js.map +1 -1
- package/dist-es5/core/PerfManager.js +1 -1
- package/dist-es5/core/ProcessTelemetryContext.js +1 -1
- package/dist-es5/core/ResponseHelpers.js +1 -1
- package/dist-es5/core/SdkStatsNotificationCbk.js +1 -1
- package/dist-es5/core/SenderPostManager.js +1 -1
- package/dist-es5/core/TelemetryHelpers.js +1 -1
- package/dist-es5/core/TelemetryInitializerPlugin.js +1 -1
- package/dist-es5/core/UnloadHandlerContainer.js +1 -1
- package/dist-es5/core/UnloadHookContainer.js +1 -1
- package/dist-es5/diagnostics/DiagnosticLogger.js +1 -1
- package/dist-es5/diagnostics/ThrottleMgr.js +1 -1
- package/dist-es5/enums/EnumHelperFuncs.js +1 -1
- package/dist-es5/enums/W3CTraceFlags.js +1 -1
- package/dist-es5/enums/ai/DependencyTypes.js +1 -1
- package/dist-es5/enums/ai/Enums.js +1 -1
- package/dist-es5/enums/ai/EventsDiscardedReason.js +1 -1
- package/dist-es5/enums/ai/FeatureOptInEnums.js +1 -1
- package/dist-es5/enums/ai/InitActiveStatusEnum.js +1 -1
- package/dist-es5/enums/ai/LoggingEnums.js +1 -1
- package/dist-es5/enums/ai/SendRequestReason.js +1 -1
- package/dist-es5/enums/ai/TelemetryUnloadReason.js +1 -1
- package/dist-es5/enums/ai/TelemetryUpdateReason.js +1 -1
- package/dist-es5/enums/ai/TraceHeadersMode.js +1 -1
- package/dist-es5/enums/ai/UrlRedactionOptions.js +1 -1
- package/dist-es5/enums/ext/Enums.js +1 -1
- package/dist-es5/enums/otel/OTelSamplingDecision.js +1 -1
- package/dist-es5/enums/otel/OTelSpanKind.js +1 -1
- package/dist-es5/enums/otel/OTelSpanStatus.js +1 -1
- package/dist-es5/enums/otel/eAttributeChangeOp.js +1 -1
- package/dist-es5/ext/AppInsightsExtCore.js +1 -1
- package/dist-es5/ext/ValueSanitizer.js +1 -1
- package/dist-es5/ext/extSpanUtils.js +1 -1
- package/dist-es5/ext/extUtils.js +2 -2
- package/dist-es5/ext/extUtils.js.map +1 -1
- package/dist-es5/index.js +1 -1
- package/dist-es5/interfaces/IException.js +1 -1
- package/dist-es5/interfaces/IOTelHrTime.js +1 -1
- package/dist-es5/interfaces/ai/ConnectionString.js +1 -1
- package/dist-es5/interfaces/ai/IAppInsights.js +1 -1
- package/dist-es5/interfaces/ai/IAppInsightsCore.js +1 -1
- package/dist-es5/interfaces/ai/IChannelControls.js +1 -1
- package/dist-es5/interfaces/ai/IChannelControlsHost.js +1 -1
- package/dist-es5/interfaces/ai/IConfig.js +1 -1
- package/dist-es5/interfaces/ai/IConfiguration.js +1 -1
- package/dist-es5/interfaces/ai/ICookieMgr.js +1 -1
- package/dist-es5/interfaces/ai/ICorrelationConfig.js +1 -1
- package/dist-es5/interfaces/ai/IDbgExtension.js +1 -1
- package/dist-es5/interfaces/ai/IDependencyTelemetry.js +1 -1
- package/dist-es5/interfaces/ai/IDiagnosticLogger.js +1 -1
- package/dist-es5/interfaces/ai/IDistributedTraceContext.js +1 -1
- package/dist-es5/interfaces/ai/IEventTelemetry.js +1 -1
- package/dist-es5/interfaces/ai/IExceptionConfig.js +1 -1
- package/dist-es5/interfaces/ai/IExceptionTelemetry.js +1 -1
- package/dist-es5/interfaces/ai/IFeatureOptIn.js +1 -1
- package/dist-es5/interfaces/ai/IInstrumentHooks.js +1 -1
- package/dist-es5/interfaces/ai/IInternalSdkStats.js +1 -1
- package/dist-es5/interfaces/ai/IInternalSdkStatsNetwork.js +1 -1
- package/dist-es5/interfaces/ai/IMetricTelemetry.js +1 -1
- package/dist-es5/interfaces/ai/INotificationListener.js +1 -1
- package/dist-es5/interfaces/ai/INotificationManager.js +1 -1
- package/dist-es5/interfaces/ai/IPageViewPerformanceTelemetry.js +1 -1
- package/dist-es5/interfaces/ai/IPageViewTelemetry.js +1 -1
- package/dist-es5/interfaces/ai/IPartC.js +1 -1
- package/dist-es5/interfaces/ai/IPerfEvent.js +1 -1
- package/dist-es5/interfaces/ai/IPerfManager.js +1 -1
- package/dist-es5/interfaces/ai/IProcessTelemetryContext.js +1 -1
- package/dist-es5/interfaces/ai/IPropertiesPlugin.js +1 -1
- package/dist-es5/interfaces/ai/IRequestContext.js +1 -1
- package/dist-es5/interfaces/ai/IRequestTelemetry.js +1 -1
- package/dist-es5/interfaces/ai/ISenderPostManager.js +1 -1
- package/dist-es5/interfaces/ai/IStatsEventData.js +1 -1
- package/dist-es5/interfaces/ai/IStatsMgr.js +1 -1
- package/dist-es5/interfaces/ai/IStorageBuffer.js +1 -1
- package/dist-es5/interfaces/ai/ITelemetryContext.js +1 -1
- package/dist-es5/interfaces/ai/ITelemetryInitializers.js +1 -1
- package/dist-es5/interfaces/ai/ITelemetryItem.js +1 -1
- package/dist-es5/interfaces/ai/ITelemetryPlugin.js +1 -1
- package/dist-es5/interfaces/ai/ITelemetryPluginChain.js +1 -1
- package/dist-es5/interfaces/ai/ITelemetryUnloadState.js +1 -1
- package/dist-es5/interfaces/ai/ITelemetryUpdateState.js +1 -1
- package/dist-es5/interfaces/ai/IThrottleMgr.js +1 -1
- package/dist-es5/interfaces/ai/ITraceParent.js +1 -1
- package/dist-es5/interfaces/ai/ITraceProvider.js +1 -1
- package/dist-es5/interfaces/ai/ITraceTelemetry.js +1 -1
- package/dist-es5/interfaces/ai/IUnloadHook.js +1 -1
- package/dist-es5/interfaces/ai/IUnloadableComponent.js +1 -1
- package/dist-es5/interfaces/ai/IW3cTraceState.js +1 -1
- package/dist-es5/interfaces/ai/IXDomainRequest.js +1 -1
- package/dist-es5/interfaces/ai/IXHROverride.js +1 -1
- package/dist-es5/interfaces/ai/PartAExtensions.js +1 -1
- package/dist-es5/interfaces/ai/context/IApplication.js +1 -1
- package/dist-es5/interfaces/ai/context/IDevice.js +1 -1
- package/dist-es5/interfaces/ai/context/IInternal.js +1 -1
- package/dist-es5/interfaces/ai/context/ILocation.js +1 -1
- package/dist-es5/interfaces/ai/context/IOperatingSystem.js +1 -1
- package/dist-es5/interfaces/ai/context/ISample.js +1 -1
- package/dist-es5/interfaces/ai/context/ISession.js +1 -1
- package/dist-es5/interfaces/ai/context/ISessionManager.js +1 -1
- package/dist-es5/interfaces/ai/context/ITelemetryTrace.js +1 -1
- package/dist-es5/interfaces/ai/context/IUser.js +1 -1
- package/dist-es5/interfaces/ai/context/IWeb.js +1 -1
- package/dist-es5/interfaces/ai/contracts/AvailabilityData.js +1 -1
- package/dist-es5/interfaces/ai/contracts/ContextTagKeys.js +1 -1
- package/dist-es5/interfaces/ai/contracts/DataPointType.js +1 -1
- package/dist-es5/interfaces/ai/contracts/DependencyKind.js +1 -1
- package/dist-es5/interfaces/ai/contracts/DependencySourceType.js +1 -1
- package/dist-es5/interfaces/ai/contracts/IBase.js +1 -1
- package/dist-es5/interfaces/ai/contracts/IData.js +1 -1
- package/dist-es5/interfaces/ai/contracts/IDataPoint.js +1 -1
- package/dist-es5/interfaces/ai/contracts/IDomain.js +1 -1
- package/dist-es5/interfaces/ai/contracts/IEventData.js +1 -1
- package/dist-es5/interfaces/ai/contracts/IExceptionData.js +1 -1
- package/dist-es5/interfaces/ai/contracts/IExceptionDetails.js +1 -1
- package/dist-es5/interfaces/ai/contracts/IMessageData.js +1 -1
- package/dist-es5/interfaces/ai/contracts/IMetricData.js +1 -1
- package/dist-es5/interfaces/ai/contracts/IPageViewData.js +1 -1
- package/dist-es5/interfaces/ai/contracts/IPageViewPerfData.js +1 -1
- package/dist-es5/interfaces/ai/contracts/IRemoteDependencyData.js +1 -1
- package/dist-es5/interfaces/ai/contracts/IStackFrame.js +1 -1
- package/dist-es5/interfaces/ai/contracts/SeverityLevel.js +1 -1
- package/dist-es5/interfaces/ai/telemetry/IEnvelope.js +1 -1
- package/dist-es5/interfaces/ai/telemetry/ISerializable.js +1 -1
- package/dist-es5/interfaces/config/IConfigDefaults.js +1 -1
- package/dist-es5/interfaces/config/IDynamicConfigHandler.js +1 -1
- package/dist-es5/interfaces/config/IDynamicPropertyHandler.js +1 -1
- package/dist-es5/interfaces/config/IDynamicWatcher.js +1 -1
- package/dist-es5/interfaces/config/_IDynamicConfigHandlerState.js +1 -1
- package/dist-es5/interfaces/ext/DataModels.js +1 -1
- package/dist-es5/interfaces/otel/IOTelApi.js +1 -1
- package/dist-es5/interfaces/otel/IOTelApiCtx.js +1 -1
- package/dist-es5/interfaces/otel/IOTelAttributes.js +1 -1
- package/dist-es5/interfaces/otel/attribute/IAttributeContainer.js +1 -1
- package/dist-es5/interfaces/otel/config/IOTelAttributeLimits.js +1 -1
- package/dist-es5/interfaces/otel/config/IOTelConfig.js +1 -1
- package/dist-es5/interfaces/otel/config/IOTelErrorHandlers.js +1 -1
- package/dist-es5/interfaces/otel/config/IOTelSpanLimits.js +1 -1
- package/dist-es5/interfaces/otel/config/IOTelTraceCfg.js +1 -1
- package/dist-es5/interfaces/otel/trace/IOTelSpan.js +1 -1
- package/dist-es5/interfaces/otel/trace/IOTelSpanContext.js +1 -1
- package/dist-es5/interfaces/otel/trace/IOTelSpanCtx.js +1 -1
- package/dist-es5/interfaces/otel/trace/IOTelSpanOptions.js +1 -1
- package/dist-es5/interfaces/otel/trace/IOTelSpanStatus.js +1 -1
- package/dist-es5/interfaces/otel/trace/IOTelTraceApi.js +1 -1
- package/dist-es5/interfaces/otel/trace/IOTelTraceState.js +1 -1
- package/dist-es5/interfaces/otel/trace/IOTelTracer.js +1 -1
- package/dist-es5/interfaces/otel/trace/IOTelTracerOptions.js +1 -1
- package/dist-es5/interfaces/otel/trace/IOTelTracerProvider.js +1 -1
- package/dist-es5/interfaces/otel/trace/IReadableSpan.js +1 -1
- package/dist-es5/internal/EventHelpers.js +1 -1
- package/dist-es5/internal/attributeHelpers.js +1 -1
- package/dist-es5/internal/commonUtils.js +1 -1
- package/dist-es5/internal/handleErrors.js +1 -1
- package/dist-es5/internal/noopHelpers.js +1 -1
- package/dist-es5/internal/timeHelpers.js +1 -1
- package/dist-es5/otel/api/OTelApi.js +1 -1
- package/dist-es5/otel/api/errors/OTelError.js +1 -1
- package/dist-es5/otel/api/errors/OTelInvalidAttributeError.js +1 -1
- package/dist-es5/otel/api/errors/OTelSpanError.js +1 -1
- package/dist-es5/otel/api/trace/span.js +1 -1
- package/dist-es5/otel/api/trace/spanContext.js +1 -1
- package/dist-es5/otel/api/trace/traceApi.js +1 -1
- package/dist-es5/otel/api/trace/traceProvider.js +1 -1
- package/dist-es5/otel/api/trace/traceState.js +1 -1
- package/dist-es5/otel/api/trace/tracer.js +1 -1
- package/dist-es5/otel/api/trace/tracerProvider.js +1 -1
- package/dist-es5/otel/api/trace/utils.js +1 -1
- package/dist-es5/otel/attribute/SemanticConventions.js +1 -1
- package/dist-es5/otel/attribute/attributeContainer.js +1 -1
- package/dist-es5/telemetry/ConnectionStringParser.js +1 -1
- package/dist-es5/telemetry/RequestResponseHeaders.js +1 -1
- package/dist-es5/telemetry/TelemetryItemCreator.js +1 -1
- package/dist-es5/telemetry/W3cTraceState.js +1 -1
- package/dist-es5/telemetry/ai/Common/Data.js +1 -1
- package/dist-es5/telemetry/ai/Common/DataPoint.js +1 -1
- package/dist-es5/telemetry/ai/Common/DataSanitizer.js +1 -1
- package/dist-es5/telemetry/ai/Common/Envelope.js +1 -1
- package/dist-es5/telemetry/ai/DataTypes.js +1 -1
- package/dist-es5/telemetry/ai/EnvelopeTypes.js +1 -1
- package/dist-es5/telemetry/ai/Event.js +1 -1
- package/dist-es5/telemetry/ai/Exception.js +1 -1
- package/dist-es5/telemetry/ai/Metric.js +1 -1
- package/dist-es5/telemetry/ai/PageView.js +1 -1
- package/dist-es5/telemetry/ai/PageViewPerformance.js +1 -1
- package/dist-es5/telemetry/ai/RemoteDependencyData.js +1 -1
- package/dist-es5/telemetry/ai/Trace.js +1 -1
- package/dist-es5/utils/CoreUtils.js +1 -1
- package/dist-es5/utils/DataCacheHelper.js +2 -2
- package/dist-es5/utils/DataCacheHelper.js.map +1 -1
- package/dist-es5/utils/DomHelperFuncs.js +1 -1
- package/dist-es5/utils/EnvUtils.js +1 -1
- package/dist-es5/utils/HelperFuncs.js +1 -1
- package/dist-es5/utils/Offline.js +1 -1
- package/dist-es5/utils/RandomHelper.js +1 -1
- package/dist-es5/utils/StorageHelperFuncs.js +1 -1
- package/dist-es5/utils/TraceParent.js +1 -1
- package/dist-es5/utils/UrlHelperFuncs.js +1 -1
- package/dist-es5/utils/Util.js +1 -1
- package/package.json +82 -85
- package/types/applicationinsights-core-js.d.ts +20 -3
- package/types/applicationinsights-core-js.namespaced.d.ts +20 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Application Insights JavaScript SDK - Core, 3.4.6
|
|
2
|
+
* Application Insights JavaScript SDK - Core, 3.4.6
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -8,7 +8,7 @@ import { objDefine } from "@nevware21/ts-utils";
|
|
|
8
8
|
import { STR_EMPTY } from "../constants/InternalConstants";
|
|
9
9
|
import { normalizeJsName } from "./HelperFuncs";
|
|
10
10
|
import { newId } from "./RandomHelper";
|
|
11
|
-
var version = '3.4.6
|
|
11
|
+
var version = '3.4.6';
|
|
12
12
|
var instanceName = "." + newId(6);
|
|
13
13
|
var _dataUid = 0;
|
|
14
14
|
// Accepts only:
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataCacheHelper.js.map","sources":["DataCacheHelper.js"],"sourcesContent":["// Copyright (c) Microsoft Corporation. All rights reserved.\r\n// Licensed under the MIT License.\r\nimport { objDefine } from \"@nevware21/ts-utils\";\r\nimport { STR_EMPTY } from \"../constants/InternalConstants\";\r\nimport { normalizeJsName } from \"./HelperFuncs\";\r\nimport { newId } from \"./RandomHelper\";\r\nvar version = '3.4.6
|
|
1
|
+
{"version":3,"file":"DataCacheHelper.js.map","sources":["DataCacheHelper.js"],"sourcesContent":["// Copyright (c) Microsoft Corporation. All rights reserved.\r\n// Licensed under the MIT License.\r\nimport { objDefine } from \"@nevware21/ts-utils\";\r\nimport { STR_EMPTY } from \"../constants/InternalConstants\";\r\nimport { normalizeJsName } from \"./HelperFuncs\";\r\nimport { newId } from \"./RandomHelper\";\r\nvar version = '3.4.6';\r\nvar instanceName = \".\" + newId(6);\r\nvar _dataUid = 0;\r\n// Accepts only:\r\n// - Node\r\n// - Node.ELEMENT_NODE\r\n// - Node.DOCUMENT_NODE\r\n// - Object\r\n// - Any\r\nfunction _canAcceptData(target) {\r\n return target.nodeType === 1 || target.nodeType === 9 || !(+target.nodeType);\r\n}\r\nfunction _getCache(data, target) {\r\n var theCache = target[data.id];\r\n if (!theCache) {\r\n theCache = {};\r\n try {\r\n if (_canAcceptData(target)) {\r\n objDefine(target, data.id, {\r\n e: false,\r\n v: theCache\r\n });\r\n }\r\n }\r\n catch (e) {\r\n // Not all environments allow extending all objects, so just ignore the cache in those cases\r\n }\r\n }\r\n return theCache;\r\n}\r\nexport function createUniqueNamespace(name, includeVersion) {\r\n if (includeVersion === void 0) { includeVersion = false; }\r\n return normalizeJsName(name + (_dataUid++) + (includeVersion ? \".\" + version : STR_EMPTY) + instanceName);\r\n}\r\nexport function createElmNodeData(name) {\r\n var data = {\r\n id: createUniqueNamespace(\"_aiData-\" + (name || STR_EMPTY) + \".\" + version),\r\n accept: function (target) {\r\n return _canAcceptData(target);\r\n },\r\n get: function (target, name, defValue, addDefault) {\r\n var theCache = target[data.id];\r\n if (!theCache) {\r\n if (addDefault) {\r\n // Side effect is adds the cache\r\n theCache = _getCache(data, target);\r\n theCache[normalizeJsName(name)] = defValue;\r\n }\r\n return defValue;\r\n }\r\n return theCache[normalizeJsName(name)];\r\n },\r\n kill: function (target, name) {\r\n if (target && target[name]) {\r\n try {\r\n delete target[name];\r\n }\r\n catch (e) {\r\n // Just cleaning up, so if this fails -- ignore\r\n }\r\n }\r\n }\r\n };\r\n return data;\r\n}\r\n//# sourceMappingURL=DataCacheHelper.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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA"}
|
package/dist-es5/utils/Util.js
CHANGED
package/package.json
CHANGED
|
@@ -1,85 +1,82 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@microsoft/applicationinsights-core-js",
|
|
3
|
-
"author": "Microsoft Application Insights Team",
|
|
4
|
-
"version": "3.4.6
|
|
5
|
-
"description": "Microsoft Application Insights Core Javascript SDK",
|
|
6
|
-
"homepage": "https://github.com/microsoft/ApplicationInsights-JS#readme",
|
|
7
|
-
"keywords": [
|
|
8
|
-
"azure",
|
|
9
|
-
"cloud",
|
|
10
|
-
"script errors",
|
|
11
|
-
"microsoft",
|
|
12
|
-
"application insights",
|
|
13
|
-
"browser performance monitoring",
|
|
14
|
-
"web analytics"
|
|
15
|
-
],
|
|
16
|
-
"main": "dist/es5/index.js",
|
|
17
|
-
"module": "dist-es5/index.js",
|
|
18
|
-
"types": "types/applicationinsights-core-js.d.ts",
|
|
19
|
-
"scripts": {
|
|
20
|
-
"clean": "git clean -xdf",
|
|
21
|
-
"build": "npm run build:esm && npm run build:browser && npm run sri && npm run dtsgen",
|
|
22
|
-
"build:esm": "grunt core",
|
|
23
|
-
"build:browser": "rollup -c rollup.config.js --bundleConfigAsCjs",
|
|
24
|
-
"rebuild": "npm run build",
|
|
25
|
-
"test": "grunt coreunittest",
|
|
26
|
-
"mintest": "grunt core-mintest",
|
|
27
|
-
"perftest": "grunt coreperftest",
|
|
28
|
-
"lint": "tslint -p tsconfig.json",
|
|
29
|
-
"dtsgen": "api-extractor run --local && node ../../scripts/dtsgen.js \"Microsoft Application Insights Core Javascript SDK\"",
|
|
30
|
-
"sri": "node ../../tools/subResourceIntegrity/generateIntegrityFile.js",
|
|
31
|
-
"ai-min": "grunt core-min",
|
|
32
|
-
"ai-restore": "grunt core-restore",
|
|
33
|
-
"npm-pack": "npm pack",
|
|
34
|
-
"api-docs": "typedoc"
|
|
35
|
-
},
|
|
36
|
-
"repository": {
|
|
37
|
-
"type": "git",
|
|
38
|
-
"url": "https://github.com/microsoft/ApplicationInsights-JS/tree/main/shared/AppInsightsCore"
|
|
39
|
-
},
|
|
40
|
-
"license": "MIT",
|
|
41
|
-
"sideEffects": false,
|
|
42
|
-
"devDependencies": {
|
|
43
|
-
"@microsoft/ai-test-framework": "0.0.1",
|
|
44
|
-
"@microsoft/applicationinsights-rollup-plugin-uglify3-js": "1.0.0",
|
|
45
|
-
"@microsoft/applicationinsights-rollup-es5": "1.0.2",
|
|
46
|
-
"@microsoft/api-extractor": "^7.40.0",
|
|
47
|
-
"grunt": "^1.6.1",
|
|
48
|
-
"grunt-cli": "^1.5.0",
|
|
49
|
-
"@nevware21/grunt-ts-plugin": "^0.5.2",
|
|
50
|
-
"@nevware21/grunt-eslint-ts": "^0.5.2",
|
|
51
|
-
"globby": "^11.0.0",
|
|
52
|
-
"magic-string": "^0.25.7",
|
|
53
|
-
"pako": "^2.0.3",
|
|
54
|
-
"@rollup/plugin-commonjs": "^24.0.0",
|
|
55
|
-
"@rollup/plugin-node-resolve": "^15.0.1",
|
|
56
|
-
"@rollup/plugin-replace": "^5.0.2",
|
|
57
|
-
"rollup": "^3.20.0",
|
|
58
|
-
"rollup-plugin-cleanup": "^3.2.1",
|
|
59
|
-
"rollup-plugin-sourcemaps": "^0.6.3",
|
|
60
|
-
"typedoc": "^0.26.6",
|
|
61
|
-
"typescript": "^4.9.3",
|
|
62
|
-
"tslib": "^2.0.0",
|
|
63
|
-
"qunit": "^2.11.2",
|
|
64
|
-
"sinon": "^7.3.1",
|
|
65
|
-
"eslint": "^8.56.0",
|
|
66
|
-
"@typescript-eslint/eslint-plugin": "^7.14.1",
|
|
67
|
-
"@typescript-eslint/parser": "^7.14.1",
|
|
68
|
-
"eslint-plugin-security": "^1.5.0",
|
|
69
|
-
"grunt-contrib-connect": "^5.0.0",
|
|
70
|
-
"eventemitter2": "6.4.9",
|
|
71
|
-
"puppeteer": "^24.40.0"
|
|
72
|
-
},
|
|
73
|
-
"peerDependencies": {
|
|
74
|
-
"tslib": ">= 1.0.0"
|
|
75
|
-
},
|
|
76
|
-
"dependencies": {
|
|
77
|
-
"@microsoft/applicationinsights-shims": "3.0.1",
|
|
78
|
-
"@microsoft/dynamicproto-js": "^2.0.3",
|
|
79
|
-
"@nevware21/ts-utils": ">= 0.14.0 < 2.x",
|
|
80
|
-
"@nevware21/ts-async": ">= 0.5.5 < 0.6.0"
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
"tag": "nightly3"
|
|
84
|
-
}
|
|
85
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@microsoft/applicationinsights-core-js",
|
|
3
|
+
"author": "Microsoft Application Insights Team",
|
|
4
|
+
"version": "3.4.6",
|
|
5
|
+
"description": "Microsoft Application Insights Core Javascript SDK",
|
|
6
|
+
"homepage": "https://github.com/microsoft/ApplicationInsights-JS#readme",
|
|
7
|
+
"keywords": [
|
|
8
|
+
"azure",
|
|
9
|
+
"cloud",
|
|
10
|
+
"script errors",
|
|
11
|
+
"microsoft",
|
|
12
|
+
"application insights",
|
|
13
|
+
"browser performance monitoring",
|
|
14
|
+
"web analytics"
|
|
15
|
+
],
|
|
16
|
+
"main": "dist/es5/index.js",
|
|
17
|
+
"module": "dist-es5/index.js",
|
|
18
|
+
"types": "types/applicationinsights-core-js.d.ts",
|
|
19
|
+
"scripts": {
|
|
20
|
+
"clean": "git clean -xdf",
|
|
21
|
+
"build": "npm run build:esm && npm run build:browser && npm run sri && npm run dtsgen",
|
|
22
|
+
"build:esm": "grunt core",
|
|
23
|
+
"build:browser": "rollup -c rollup.config.js --bundleConfigAsCjs",
|
|
24
|
+
"rebuild": "npm run build",
|
|
25
|
+
"test": "grunt coreunittest",
|
|
26
|
+
"mintest": "grunt core-mintest",
|
|
27
|
+
"perftest": "grunt coreperftest",
|
|
28
|
+
"lint": "tslint -p tsconfig.json",
|
|
29
|
+
"dtsgen": "api-extractor run --local && node ../../scripts/dtsgen.js \"Microsoft Application Insights Core Javascript SDK\"",
|
|
30
|
+
"sri": "node ../../tools/subResourceIntegrity/generateIntegrityFile.js",
|
|
31
|
+
"ai-min": "grunt core-min",
|
|
32
|
+
"ai-restore": "grunt core-restore",
|
|
33
|
+
"npm-pack": "npm pack",
|
|
34
|
+
"api-docs": "typedoc"
|
|
35
|
+
},
|
|
36
|
+
"repository": {
|
|
37
|
+
"type": "git",
|
|
38
|
+
"url": "https://github.com/microsoft/ApplicationInsights-JS/tree/main/shared/AppInsightsCore"
|
|
39
|
+
},
|
|
40
|
+
"license": "MIT",
|
|
41
|
+
"sideEffects": false,
|
|
42
|
+
"devDependencies": {
|
|
43
|
+
"@microsoft/ai-test-framework": "0.0.1",
|
|
44
|
+
"@microsoft/applicationinsights-rollup-plugin-uglify3-js": "1.0.0",
|
|
45
|
+
"@microsoft/applicationinsights-rollup-es5": "1.0.2",
|
|
46
|
+
"@microsoft/api-extractor": "^7.40.0",
|
|
47
|
+
"grunt": "^1.6.1",
|
|
48
|
+
"grunt-cli": "^1.5.0",
|
|
49
|
+
"@nevware21/grunt-ts-plugin": "^0.5.2",
|
|
50
|
+
"@nevware21/grunt-eslint-ts": "^0.5.2",
|
|
51
|
+
"globby": "^11.0.0",
|
|
52
|
+
"magic-string": "^0.25.7",
|
|
53
|
+
"pako": "^2.0.3",
|
|
54
|
+
"@rollup/plugin-commonjs": "^24.0.0",
|
|
55
|
+
"@rollup/plugin-node-resolve": "^15.0.1",
|
|
56
|
+
"@rollup/plugin-replace": "^5.0.2",
|
|
57
|
+
"rollup": "^3.20.0",
|
|
58
|
+
"rollup-plugin-cleanup": "^3.2.1",
|
|
59
|
+
"rollup-plugin-sourcemaps": "^0.6.3",
|
|
60
|
+
"typedoc": "^0.26.6",
|
|
61
|
+
"typescript": "^4.9.3",
|
|
62
|
+
"tslib": "^2.0.0",
|
|
63
|
+
"qunit": "^2.11.2",
|
|
64
|
+
"sinon": "^7.3.1",
|
|
65
|
+
"eslint": "^8.56.0",
|
|
66
|
+
"@typescript-eslint/eslint-plugin": "^7.14.1",
|
|
67
|
+
"@typescript-eslint/parser": "^7.14.1",
|
|
68
|
+
"eslint-plugin-security": "^1.5.0",
|
|
69
|
+
"grunt-contrib-connect": "^5.0.0",
|
|
70
|
+
"eventemitter2": "6.4.9",
|
|
71
|
+
"puppeteer": "^24.40.0"
|
|
72
|
+
},
|
|
73
|
+
"peerDependencies": {
|
|
74
|
+
"tslib": ">= 1.0.0"
|
|
75
|
+
},
|
|
76
|
+
"dependencies": {
|
|
77
|
+
"@microsoft/applicationinsights-shims": "3.0.1",
|
|
78
|
+
"@microsoft/dynamicproto-js": "^2.0.3",
|
|
79
|
+
"@nevware21/ts-utils": ">= 0.14.0 < 2.x",
|
|
80
|
+
"@nevware21/ts-async": ">= 0.5.5 < 0.6.0"
|
|
81
|
+
}
|
|
82
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Microsoft Application Insights Core Javascript SDK, 3.4.6
|
|
2
|
+
* Microsoft Application Insights Core Javascript SDK, 3.4.6
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*
|
|
5
5
|
* Microsoft Application Insights Team
|
|
@@ -2405,7 +2405,7 @@ export declare const ExtFullVersionString: string;
|
|
|
2405
2405
|
/**
|
|
2406
2406
|
* Identifies the version for the extended SDK
|
|
2407
2407
|
*/
|
|
2408
|
-
export declare const ExtVersion = "4.4.6
|
|
2408
|
+
export declare const ExtVersion = "4.4.6";
|
|
2409
2409
|
|
|
2410
2410
|
export declare const enum FeatureOptInMode {
|
|
2411
2411
|
/**
|
|
@@ -5952,6 +5952,17 @@ export declare interface INotificationListener {
|
|
|
5952
5952
|
*/
|
|
5953
5953
|
export declare interface INotificationManager {
|
|
5954
5954
|
listeners: INotificationListener[];
|
|
5955
|
+
/**
|
|
5956
|
+
* Optional hint indicating whether a notification has a matching listener or custom handler.
|
|
5957
|
+
* @param name - The notification method to query.
|
|
5958
|
+
* @returns False only when calling the method would have no effect. Callers must retain their
|
|
5959
|
+
* existing dispatch behavior when this hint is absent or does not return false.
|
|
5960
|
+
* @remarks
|
|
5961
|
+
* Implementations must account for custom notification handling as well as registered listeners.
|
|
5962
|
+
* The built-in manager returns true for overridden notification methods, even without matching listeners.
|
|
5963
|
+
* This method must not dispatch notifications or change listener state.
|
|
5964
|
+
*/
|
|
5965
|
+
hasListener?(name: string): boolean;
|
|
5955
5966
|
/**
|
|
5956
5967
|
* Adds a notification listener.
|
|
5957
5968
|
* @param listener - The notification listener to be added.
|
|
@@ -9480,6 +9491,12 @@ export declare function normalizeJsName(name: string): string;
|
|
|
9480
9491
|
export declare class NotificationManager implements INotificationManager {
|
|
9481
9492
|
readonly listeners: INotificationListener[];
|
|
9482
9493
|
constructor(config?: IConfiguration);
|
|
9494
|
+
/**
|
|
9495
|
+
* Indicates whether the named notification has a matching listener or an overridden handler.
|
|
9496
|
+
* @param name - The notification method to query.
|
|
9497
|
+
* @returns True for a matching listener or custom handler; false when the notification has no consumers.
|
|
9498
|
+
*/
|
|
9499
|
+
hasListener?(name: string): boolean;
|
|
9483
9500
|
/**
|
|
9484
9501
|
* Adds a notification listener.
|
|
9485
9502
|
* @param listener - The notification listener to be added.
|
|
@@ -10898,7 +10915,7 @@ export declare class ValueSanitizer implements IValueSanitizer {
|
|
|
10898
10915
|
* Identifies the version for the extended SDK (legacy constant)
|
|
10899
10916
|
* @deprecated Use {@link ExtVersion} instead
|
|
10900
10917
|
*/
|
|
10901
|
-
export declare const Version = "4.4.6
|
|
10918
|
+
export declare const Version = "4.4.6";
|
|
10902
10919
|
|
|
10903
10920
|
/**
|
|
10904
10921
|
* This is a helper method which will call warnToConsole on the passed logger with the provided message.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Microsoft Application Insights Core Javascript SDK, 3.4.6
|
|
2
|
+
* Microsoft Application Insights Core Javascript SDK, 3.4.6
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*
|
|
5
5
|
* Microsoft Application Insights Team
|
|
@@ -2703,7 +2703,7 @@ declare namespace ApplicationInsights {
|
|
|
2703
2703
|
/**
|
|
2704
2704
|
* Identifies the version for the extended SDK
|
|
2705
2705
|
*/
|
|
2706
|
-
const ExtVersion = "4.4.6
|
|
2706
|
+
const ExtVersion = "4.4.6";
|
|
2707
2707
|
|
|
2708
2708
|
const enum FeatureOptInMode {
|
|
2709
2709
|
/**
|
|
@@ -6419,6 +6419,17 @@ declare namespace ApplicationInsights {
|
|
|
6419
6419
|
*/
|
|
6420
6420
|
interface INotificationManager {
|
|
6421
6421
|
listeners: INotificationListener[];
|
|
6422
|
+
/**
|
|
6423
|
+
* Optional hint indicating whether a notification has a matching listener or custom handler.
|
|
6424
|
+
* @param name - The notification method to query.
|
|
6425
|
+
* @returns False only when calling the method would have no effect. Callers must retain their
|
|
6426
|
+
* existing dispatch behavior when this hint is absent or does not return false.
|
|
6427
|
+
* @remarks
|
|
6428
|
+
* Implementations must account for custom notification handling as well as registered listeners.
|
|
6429
|
+
* The built-in manager returns true for overridden notification methods, even without matching listeners.
|
|
6430
|
+
* This method must not dispatch notifications or change listener state.
|
|
6431
|
+
*/
|
|
6432
|
+
hasListener?(name: string): boolean;
|
|
6422
6433
|
/**
|
|
6423
6434
|
* Adds a notification listener.
|
|
6424
6435
|
* @param listener - The notification listener to be added.
|
|
@@ -10477,6 +10488,12 @@ declare namespace ApplicationInsights {
|
|
|
10477
10488
|
class NotificationManager implements INotificationManager {
|
|
10478
10489
|
readonly listeners: INotificationListener[];
|
|
10479
10490
|
constructor(config?: IConfiguration);
|
|
10491
|
+
/**
|
|
10492
|
+
* Indicates whether the named notification has a matching listener or an overridden handler.
|
|
10493
|
+
* @param name - The notification method to query.
|
|
10494
|
+
* @returns True for a matching listener or custom handler; false when the notification has no consumers.
|
|
10495
|
+
*/
|
|
10496
|
+
hasListener?(name: string): boolean;
|
|
10480
10497
|
/**
|
|
10481
10498
|
* Adds a notification listener.
|
|
10482
10499
|
* @param listener - The notification listener to be added.
|
|
@@ -12210,7 +12227,7 @@ declare namespace ApplicationInsights {
|
|
|
12210
12227
|
* Identifies the version for the extended SDK (legacy constant)
|
|
12211
12228
|
* @deprecated Use {@link ExtVersion} instead
|
|
12212
12229
|
*/
|
|
12213
|
-
const Version = "4.4.6
|
|
12230
|
+
const Version = "4.4.6";
|
|
12214
12231
|
|
|
12215
12232
|
/**
|
|
12216
12233
|
* This is a helper method which will call warnToConsole on the passed logger with the provided message.
|