@microsoft/applicationinsights-common 3.0.0-beta.2303-10 → 3.0.0-beta.2304-07
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-common.cjs.js +3965 -0
- package/browser/es5/applicationinsights-common.cjs.js.map +1 -0
- package/browser/es5/applicationinsights-common.cjs.min.js +6 -0
- package/browser/es5/applicationinsights-common.cjs.min.js.map +1 -0
- package/browser/es5/applicationinsights-common.gbl.js +3969 -0
- package/browser/es5/applicationinsights-common.gbl.js.map +1 -0
- package/browser/es5/applicationinsights-common.gbl.min.js +6 -0
- package/browser/es5/applicationinsights-common.gbl.min.js.map +1 -0
- package/browser/es5/applicationinsights-common.integrity.json +66 -0
- package/browser/{applicationinsights-common.js → es5/applicationinsights-common.js} +221 -189
- package/browser/es5/applicationinsights-common.js.map +1 -0
- package/browser/es5/applicationinsights-common.min.js +6 -0
- package/browser/es5/applicationinsights-common.min.js.map +1 -0
- package/dist/{applicationinsights-common.js → es5/applicationinsights-common.js} +221 -189
- package/dist/es5/applicationinsights-common.js.map +1 -0
- package/dist/es5/applicationinsights-common.min.js +6 -0
- package/dist/es5/applicationinsights-common.min.js.map +1 -0
- package/{dist-esm → dist-es5}/ConnectionStringParser.js +1 -1
- package/{dist-esm → dist-es5}/Constants.js +1 -1
- package/{dist-esm → dist-es5}/DomHelperFuncs.js +1 -1
- package/{dist-esm → dist-es5}/Enums.js +1 -1
- package/{dist-esm → dist-es5}/HelperFuncs.js +1 -1
- package/dist-es5/Interfaces/ConnectionString.js +6 -0
- package/dist-es5/Interfaces/Context/IApplication.js +8 -0
- package/dist-es5/Interfaces/Context/IDevice.js +8 -0
- package/dist-es5/Interfaces/Context/IInternal.js +8 -0
- package/dist-es5/Interfaces/Context/ILocation.js +8 -0
- package/dist-es5/Interfaces/Context/IOperatingSystem.js +8 -0
- package/dist-es5/Interfaces/Context/ISample.js +8 -0
- package/dist-es5/Interfaces/Context/ISession.js +8 -0
- package/dist-es5/Interfaces/Context/ITelemetryTrace.js +8 -0
- package/dist-es5/Interfaces/Context/IUser.js +8 -0
- package/dist-es5/Interfaces/Context/IWeb.js +8 -0
- package/{dist-esm → dist-es5}/Interfaces/Contracts/AvailabilityData.js +1 -1
- package/{dist-esm → dist-es5}/Interfaces/Contracts/ContextTagKeys.js +1 -1
- package/dist-es5/Interfaces/Contracts/DataPointType.js +8 -0
- package/dist-es5/Interfaces/Contracts/DependencyKind.js +8 -0
- package/dist-es5/Interfaces/Contracts/DependencySourceType.js +8 -0
- package/dist-es5/Interfaces/Contracts/IBase.js +8 -0
- package/dist-es5/Interfaces/Contracts/IData.js +8 -0
- package/dist-es5/Interfaces/Contracts/IDataPoint.js +6 -0
- package/dist-es5/Interfaces/Contracts/IDomain.js +8 -0
- package/{dist-esm → dist-es5}/Interfaces/Contracts/IEnvelope.js +1 -1
- package/dist-es5/Interfaces/Contracts/IEventData.js +8 -0
- package/dist-es5/Interfaces/Contracts/IExceptionData.js +8 -0
- package/dist-es5/Interfaces/Contracts/IExceptionDetails.js +8 -0
- package/dist-es5/Interfaces/Contracts/IMessageData.js +8 -0
- package/dist-es5/Interfaces/Contracts/IMetricData.js +8 -0
- package/dist-es5/Interfaces/Contracts/IPageViewData.js +8 -0
- package/dist-es5/Interfaces/Contracts/IPageViewPerfData.js +8 -0
- package/dist-es5/Interfaces/Contracts/IRemoteDependencyData.js +8 -0
- package/dist-es5/Interfaces/Contracts/IStackFrame.js +8 -0
- package/{dist-esm → dist-es5}/Interfaces/Contracts/RequestData.js +1 -1
- package/{dist-esm → dist-es5}/Interfaces/Contracts/SeverityLevel.js +1 -1
- package/dist-es5/Interfaces/IAppInsights.js +8 -0
- package/{dist-esm → dist-es5}/Interfaces/IConfig.js +1 -1
- package/dist-es5/Interfaces/ICorrelationConfig.js +8 -0
- package/dist-es5/Interfaces/IDependencyTelemetry.js +8 -0
- package/dist-es5/Interfaces/IEventTelemetry.js +6 -0
- package/dist-es5/Interfaces/IExceptionTelemetry.js +8 -0
- package/dist-es5/Interfaces/IMetricTelemetry.js +6 -0
- package/dist-es5/Interfaces/IPageViewPerformanceTelemetry.js +6 -0
- package/dist-es5/Interfaces/IPageViewTelemetry.js +6 -0
- package/dist-es5/Interfaces/IPartC.js +8 -0
- package/dist-es5/Interfaces/IPropertiesPlugin.js +8 -0
- package/dist-es5/Interfaces/IRequestContext.js +6 -0
- package/dist-es5/Interfaces/ITelemetryContext.js +8 -0
- package/dist-es5/Interfaces/IThrottleMgr.js +6 -0
- package/dist-es5/Interfaces/ITraceTelemetry.js +8 -0
- package/{dist-esm → dist-es5}/Interfaces/PartAExtensions.js +1 -1
- package/dist-es5/Interfaces/Telemetry/IEnvelope.js +8 -0
- package/dist-es5/Interfaces/Telemetry/ISerializable.js +8 -0
- package/{dist-esm → dist-es5}/RequestResponseHeaders.js +1 -1
- package/{dist-esm → dist-es5}/StorageHelperFuncs.js +1 -1
- package/{dist-esm → dist-es5}/Telemetry/Common/Data.js +1 -1
- package/{dist-esm → dist-es5}/Telemetry/Common/DataPoint.js +1 -1
- package/{dist-esm → dist-es5}/Telemetry/Common/DataSanitizer.js +3 -2
- package/dist-es5/Telemetry/Common/DataSanitizer.js.map +1 -0
- package/{dist-esm → dist-es5}/Telemetry/Common/Envelope.js +1 -1
- package/{dist-esm → dist-es5}/Telemetry/Event.js +1 -1
- package/{dist-esm → dist-es5}/Telemetry/Exception.js +1 -1
- package/{dist-esm → dist-es5}/Telemetry/Metric.js +1 -1
- package/{dist-esm → dist-es5}/Telemetry/PageView.js +1 -1
- package/{dist-esm → dist-es5}/Telemetry/PageViewPerformance.js +1 -1
- package/{dist-esm → dist-es5}/Telemetry/RemoteDependencyData.js +1 -1
- package/{dist-esm → dist-es5}/Telemetry/Trace.js +1 -1
- package/{dist-esm → dist-es5}/TelemetryItemCreator.js +1 -1
- package/{dist-esm → dist-es5}/ThrottleMgr.js +1 -1
- package/{dist-esm → dist-es5}/UrlHelperFuncs.js +1 -1
- package/{dist-esm → dist-es5}/Util.js +1 -1
- package/{dist-esm → dist-es5}/__DynamicConstants.js +1 -1
- package/{dist-esm → dist-es5}/applicationinsights-common.js +1 -1
- package/package.json +17 -16
- package/tsconfig.json +4 -3
- package/types/applicationinsights-common.d.ts +2561 -58
- package/{dist/applicationinsights-common.d.ts → types/applicationinsights-common.namespaced.d.ts} +1 -1
- package/browser/applicationinsights-common.integrity.json +0 -26
- package/browser/applicationinsights-common.js.map +0 -1
- package/browser/applicationinsights-common.min.js +0 -6
- package/browser/applicationinsights-common.min.js.map +0 -1
- package/dist/applicationinsights-common.api.json +0 -19540
- package/dist/applicationinsights-common.api.md +0 -1224
- package/dist/applicationinsights-common.js.map +0 -1
- package/dist/applicationinsights-common.min.js +0 -6
- package/dist/applicationinsights-common.min.js.map +0 -1
- package/dist/applicationinsights-common.rollup.d.ts +0 -2562
- package/dist-esm/Interfaces/ConnectionString.js +0 -6
- package/dist-esm/Interfaces/Context/IApplication.js +0 -8
- package/dist-esm/Interfaces/Context/IDevice.js +0 -8
- package/dist-esm/Interfaces/Context/IInternal.js +0 -8
- package/dist-esm/Interfaces/Context/ILocation.js +0 -8
- package/dist-esm/Interfaces/Context/IOperatingSystem.js +0 -8
- package/dist-esm/Interfaces/Context/ISample.js +0 -8
- package/dist-esm/Interfaces/Context/ISession.js +0 -8
- package/dist-esm/Interfaces/Context/ITelemetryTrace.js +0 -8
- package/dist-esm/Interfaces/Context/IUser.js +0 -8
- package/dist-esm/Interfaces/Context/IWeb.js +0 -8
- package/dist-esm/Interfaces/Contracts/DataPointType.js +0 -8
- package/dist-esm/Interfaces/Contracts/DependencyKind.js +0 -8
- package/dist-esm/Interfaces/Contracts/DependencySourceType.js +0 -8
- package/dist-esm/Interfaces/Contracts/IBase.js +0 -8
- package/dist-esm/Interfaces/Contracts/IData.js +0 -8
- package/dist-esm/Interfaces/Contracts/IDataPoint.js +0 -6
- package/dist-esm/Interfaces/Contracts/IDomain.js +0 -8
- package/dist-esm/Interfaces/Contracts/IEventData.js +0 -8
- package/dist-esm/Interfaces/Contracts/IExceptionData.js +0 -8
- package/dist-esm/Interfaces/Contracts/IExceptionDetails.js +0 -8
- package/dist-esm/Interfaces/Contracts/IMessageData.js +0 -8
- package/dist-esm/Interfaces/Contracts/IMetricData.js +0 -8
- package/dist-esm/Interfaces/Contracts/IPageViewData.js +0 -8
- package/dist-esm/Interfaces/Contracts/IPageViewPerfData.js +0 -8
- package/dist-esm/Interfaces/Contracts/IRemoteDependencyData.js +0 -8
- package/dist-esm/Interfaces/Contracts/IStackFrame.js +0 -8
- package/dist-esm/Interfaces/IAppInsights.js +0 -8
- package/dist-esm/Interfaces/ICorrelationConfig.js +0 -8
- package/dist-esm/Interfaces/IDependencyTelemetry.js +0 -8
- package/dist-esm/Interfaces/IEventTelemetry.js +0 -6
- package/dist-esm/Interfaces/IExceptionTelemetry.js +0 -8
- package/dist-esm/Interfaces/IMetricTelemetry.js +0 -6
- package/dist-esm/Interfaces/IPageViewPerformanceTelemetry.js +0 -6
- package/dist-esm/Interfaces/IPageViewTelemetry.js +0 -6
- package/dist-esm/Interfaces/IPartC.js +0 -8
- package/dist-esm/Interfaces/IPropertiesPlugin.js +0 -8
- package/dist-esm/Interfaces/IRequestContext.js +0 -6
- package/dist-esm/Interfaces/ITelemetryContext.js +0 -8
- package/dist-esm/Interfaces/IThrottleMgr.js +0 -6
- package/dist-esm/Interfaces/ITraceTelemetry.js +0 -8
- package/dist-esm/Interfaces/Telemetry/IEnvelope.js +0 -8
- package/dist-esm/Interfaces/Telemetry/ISerializable.js +0 -8
- package/dist-esm/Telemetry/Common/DataSanitizer.js.map +0 -1
- package/src/ConnectionStringParser.ts +0 -47
- package/src/Constants.ts +0 -18
- package/src/DomHelperFuncs.ts +0 -19
- package/src/Enums.ts +0 -65
- package/src/HelperFuncs.ts +0 -54
- package/src/Interfaces/ConnectionString.ts +0 -3
- package/src/Interfaces/Context/IApplication.ts +0 -14
- package/src/Interfaces/Context/IDevice.ts +0 -28
- package/src/Interfaces/Context/IInternal.ts +0 -29
- package/src/Interfaces/Context/ILocation.ts +0 -9
- package/src/Interfaces/Context/IOperatingSystem.ts +0 -7
- package/src/Interfaces/Context/ISample.ts +0 -13
- package/src/Interfaces/Context/ISession.ts +0 -22
- package/src/Interfaces/Context/ITelemetryTrace.ts +0 -33
- package/src/Interfaces/Context/IUser.ts +0 -50
- package/src/Interfaces/Context/IWeb.ts +0 -39
- package/src/Interfaces/Contracts/AvailabilityData.ts +0 -57
- package/src/Interfaces/Contracts/ContextTagKeys.ts +0 -299
- package/src/Interfaces/Contracts/DataPointType.ts +0 -10
- package/src/Interfaces/Contracts/DependencyKind.ts +0 -11
- package/src/Interfaces/Contracts/DependencySourceType.ts +0 -11
- package/src/Interfaces/Contracts/IBase.ts +0 -13
- package/src/Interfaces/Contracts/IData.ts +0 -19
- package/src/Interfaces/Contracts/IDataPoint.ts +0 -44
- package/src/Interfaces/Contracts/IDomain.ts +0 -8
- package/src/Interfaces/Contracts/IEnvelope.ts +0 -50
- package/src/Interfaces/Contracts/IEventData.ts +0 -30
- package/src/Interfaces/Contracts/IExceptionData.ts +0 -37
- package/src/Interfaces/Contracts/IExceptionDetails.ts +0 -45
- package/src/Interfaces/Contracts/IMessageData.ts +0 -36
- package/src/Interfaces/Contracts/IMetricData.ts +0 -31
- package/src/Interfaces/Contracts/IPageViewData.ts +0 -26
- package/src/Interfaces/Contracts/IPageViewPerfData.ts +0 -35
- package/src/Interfaces/Contracts/IRemoteDependencyData.ts +0 -65
- package/src/Interfaces/Contracts/IStackFrame.ts +0 -33
- package/src/Interfaces/Contracts/RequestData.ts +0 -50
- package/src/Interfaces/Contracts/SeverityLevel.ts +0 -28
- package/src/Interfaces/IAppInsights.ts +0 -31
- package/src/Interfaces/IConfig.ts +0 -396
- package/src/Interfaces/ICorrelationConfig.ts +0 -71
- package/src/Interfaces/IDependencyTelemetry.ts +0 -22
- package/src/Interfaces/IEventTelemetry.ts +0 -20
- package/src/Interfaces/IExceptionTelemetry.ts +0 -143
- package/src/Interfaces/IMetricTelemetry.ts +0 -56
- package/src/Interfaces/IPageViewPerformanceTelemetry.ts +0 -61
- package/src/Interfaces/IPageViewTelemetry.ts +0 -65
- package/src/Interfaces/IPartC.ts +0 -18
- package/src/Interfaces/IPropertiesPlugin.ts +0 -8
- package/src/Interfaces/IRequestContext.ts +0 -6
- package/src/Interfaces/ITelemetryContext.ts +0 -69
- package/src/Interfaces/IThrottleMgr.ts +0 -111
- package/src/Interfaces/ITraceTelemetry.ts +0 -28
- package/src/Interfaces/PartAExtensions.ts +0 -14
- package/src/Interfaces/Telemetry/IEnvelope.ts +0 -47
- package/src/Interfaces/Telemetry/ISerializable.ts +0 -11
- package/src/RequestResponseHeaders.ts +0 -96
- package/src/StorageHelperFuncs.ts +0 -223
- package/src/Telemetry/Common/Data.ts +0 -35
- package/src/Telemetry/Common/DataPoint.ts +0 -58
- package/src/Telemetry/Common/DataSanitizer.ts +0 -197
- package/src/Telemetry/Common/Envelope.ts +0 -81
- package/src/Telemetry/Event.ts +0 -52
- package/src/Telemetry/Exception.ts +0 -681
- package/src/Telemetry/Metric.ts +0 -61
- package/src/Telemetry/PageView.ts +0 -79
- package/src/Telemetry/PageViewPerformance.ts +0 -113
- package/src/Telemetry/RemoteDependencyData.ts +0 -122
- package/src/Telemetry/Trace.ts +0 -64
- package/src/TelemetryItemCreator.ts +0 -75
- package/src/ThrottleMgr.ts +0 -345
- package/src/UrlHelperFuncs.ts +0 -101
- package/src/Util.ts +0 -221
- package/src/__DynamicConstants.ts +0 -50
- package/src/applicationinsights-common.ts +0 -76
- package/types/ConnectionStringParser.d.ts +0 -5
- package/types/Constants.d.ts +0 -15
- package/types/DomHelperFuncs.d.ts +0 -1
- package/types/Enums.d.ts +0 -49
- package/types/HelperFuncs.d.ts +0 -8
- package/types/Interfaces/ConnectionString.d.ts +0 -4
- package/types/Interfaces/Context/IApplication.d.ts +0 -10
- package/types/Interfaces/Context/IDevice.d.ts +0 -22
- package/types/Interfaces/Context/IInternal.d.ts +0 -23
- package/types/Interfaces/Context/ILocation.d.ts +0 -6
- package/types/Interfaces/Context/IOperatingSystem.d.ts +0 -3
- package/types/Interfaces/Context/ISample.d.ts +0 -8
- package/types/Interfaces/Context/ISession.d.ts +0 -17
- package/types/Interfaces/Context/ITelemetryTrace.d.ts +0 -25
- package/types/Interfaces/Context/IUser.d.ts +0 -39
- package/types/Interfaces/Context/IWeb.d.ts +0 -30
- package/types/Interfaces/Contracts/AvailabilityData.d.ts +0 -0
- package/types/Interfaces/Contracts/ContextTagKeys.d.ts +0 -175
- package/types/Interfaces/Contracts/DataPointType.d.ts +0 -7
- package/types/Interfaces/Contracts/DependencyKind.d.ts +0 -8
- package/types/Interfaces/Contracts/DependencySourceType.d.ts +0 -8
- package/types/Interfaces/Contracts/IBase.d.ts +0 -9
- package/types/Interfaces/Contracts/IData.d.ts +0 -14
- package/types/Interfaces/Contracts/IDataPoint.d.ts +0 -34
- package/types/Interfaces/Contracts/IDomain.d.ts +0 -5
- package/types/Interfaces/Contracts/IEnvelope.d.ts +0 -0
- package/types/Interfaces/Contracts/IEventData.d.ts +0 -22
- package/types/Interfaces/Contracts/IExceptionData.d.ts +0 -28
- package/types/Interfaces/Contracts/IExceptionDetails.d.ts +0 -34
- package/types/Interfaces/Contracts/IMessageData.d.ts +0 -27
- package/types/Interfaces/Contracts/IMetricData.d.ts +0 -23
- package/types/Interfaces/Contracts/IPageViewData.d.ts +0 -18
- package/types/Interfaces/Contracts/IPageViewPerfData.d.ts +0 -26
- package/types/Interfaces/Contracts/IRemoteDependencyData.d.ts +0 -50
- package/types/Interfaces/Contracts/IStackFrame.d.ts +0 -25
- package/types/Interfaces/Contracts/RequestData.d.ts +0 -0
- package/types/Interfaces/Contracts/SeverityLevel.d.ts +0 -15
- package/types/Interfaces/IAppInsights.d.ts +0 -37
- package/types/Interfaces/IConfig.d.ts +0 -323
- package/types/Interfaces/ICorrelationConfig.d.ts +0 -59
- package/types/Interfaces/IDependencyTelemetry.d.ts +0 -17
- package/types/Interfaces/IEventTelemetry.d.ts +0 -15
- package/types/Interfaces/IExceptionTelemetry.d.ts +0 -123
- package/types/Interfaces/IMetricTelemetry.d.ts +0 -46
- package/types/Interfaces/IPageViewPerformanceTelemetry.d.ts +0 -55
- package/types/Interfaces/IPageViewTelemetry.d.ts +0 -52
- package/types/Interfaces/IPartC.d.ts +0 -18
- package/types/Interfaces/IPropertiesPlugin.d.ts +0 -4
- package/types/Interfaces/IRequestContext.d.ts +0 -6
- package/types/Interfaces/ITelemetryContext.d.ts +0 -55
- package/types/Interfaces/IThrottleMgr.d.ts +0 -96
- package/types/Interfaces/ITraceTelemetry.d.ts +0 -22
- package/types/Interfaces/PartAExtensions.d.ts +0 -12
- package/types/Interfaces/Telemetry/IEnvelope.d.ts +0 -37
- package/types/Interfaces/Telemetry/ISerializable.d.ts +0 -8
- package/types/RequestResponseHeaders.d.ts +0 -68
- package/types/StorageHelperFuncs.d.ts +0 -23
- package/types/Telemetry/Common/Data.d.ts +0 -24
- package/types/Telemetry/Common/DataPoint.d.ts +0 -46
- package/types/Telemetry/Common/DataSanitizer.d.ts +0 -42
- package/types/Telemetry/Common/Envelope.d.ts +0 -45
- package/types/Telemetry/Event.d.ts +0 -34
- package/types/Telemetry/Exception.d.ts +0 -150
- package/types/Telemetry/Metric.d.ts +0 -36
- package/types/Telemetry/PageView.d.ts +0 -53
- package/types/Telemetry/PageViewPerformance.d.ts +0 -78
- package/types/Telemetry/RemoteDependencyData.d.ts +0 -79
- package/types/Telemetry/Trace.d.ts +0 -41
- package/types/TelemetryItemCreator.d.ts +0 -27
- package/types/ThrottleMgr.d.ts +0 -13
- package/types/UrlHelperFuncs.d.ts +0 -6
- package/types/Util.d.ts +0 -36
- package/types/__DynamicConstants.d.ts +0 -38
- package/types/tsdoc-metadata.json +0 -11
- /package/{dist-esm → dist-es5}/ConnectionStringParser.js.map +0 -0
- /package/{dist-esm → dist-es5}/Constants.js.map +0 -0
- /package/{dist-esm → dist-es5}/DomHelperFuncs.js.map +0 -0
- /package/{dist-esm → dist-es5}/Enums.js.map +0 -0
- /package/{dist-esm → dist-es5}/HelperFuncs.js.map +0 -0
- /package/{dist-esm → dist-es5}/Interfaces/ConnectionString.js.map +0 -0
- /package/{dist-esm → dist-es5}/Interfaces/Context/IApplication.js.map +0 -0
- /package/{dist-esm → dist-es5}/Interfaces/Context/IDevice.js.map +0 -0
- /package/{dist-esm → dist-es5}/Interfaces/Context/IInternal.js.map +0 -0
- /package/{dist-esm → dist-es5}/Interfaces/Context/ILocation.js.map +0 -0
- /package/{dist-esm → dist-es5}/Interfaces/Context/IOperatingSystem.js.map +0 -0
- /package/{dist-esm → dist-es5}/Interfaces/Context/ISample.js.map +0 -0
- /package/{dist-esm → dist-es5}/Interfaces/Context/ISession.js.map +0 -0
- /package/{dist-esm → dist-es5}/Interfaces/Context/ITelemetryTrace.js.map +0 -0
- /package/{dist-esm → dist-es5}/Interfaces/Context/IUser.js.map +0 -0
- /package/{dist-esm → dist-es5}/Interfaces/Context/IWeb.js.map +0 -0
- /package/{dist-esm → dist-es5}/Interfaces/Contracts/AvailabilityData.js.map +0 -0
- /package/{dist-esm → dist-es5}/Interfaces/Contracts/ContextTagKeys.js.map +0 -0
- /package/{dist-esm → dist-es5}/Interfaces/Contracts/DataPointType.js.map +0 -0
- /package/{dist-esm → dist-es5}/Interfaces/Contracts/DependencyKind.js.map +0 -0
- /package/{dist-esm → dist-es5}/Interfaces/Contracts/DependencySourceType.js.map +0 -0
- /package/{dist-esm → dist-es5}/Interfaces/Contracts/IBase.js.map +0 -0
- /package/{dist-esm → dist-es5}/Interfaces/Contracts/IData.js.map +0 -0
- /package/{dist-esm → dist-es5}/Interfaces/Contracts/IDataPoint.js.map +0 -0
- /package/{dist-esm → dist-es5}/Interfaces/Contracts/IDomain.js.map +0 -0
- /package/{dist-esm → dist-es5}/Interfaces/Contracts/IEnvelope.js.map +0 -0
- /package/{dist-esm → dist-es5}/Interfaces/Contracts/IEventData.js.map +0 -0
- /package/{dist-esm → dist-es5}/Interfaces/Contracts/IExceptionData.js.map +0 -0
- /package/{dist-esm → dist-es5}/Interfaces/Contracts/IExceptionDetails.js.map +0 -0
- /package/{dist-esm → dist-es5}/Interfaces/Contracts/IMessageData.js.map +0 -0
- /package/{dist-esm → dist-es5}/Interfaces/Contracts/IMetricData.js.map +0 -0
- /package/{dist-esm → dist-es5}/Interfaces/Contracts/IPageViewData.js.map +0 -0
- /package/{dist-esm → dist-es5}/Interfaces/Contracts/IPageViewPerfData.js.map +0 -0
- /package/{dist-esm → dist-es5}/Interfaces/Contracts/IRemoteDependencyData.js.map +0 -0
- /package/{dist-esm → dist-es5}/Interfaces/Contracts/IStackFrame.js.map +0 -0
- /package/{dist-esm → dist-es5}/Interfaces/Contracts/RequestData.js.map +0 -0
- /package/{dist-esm → dist-es5}/Interfaces/Contracts/SeverityLevel.js.map +0 -0
- /package/{dist-esm → dist-es5}/Interfaces/IAppInsights.js.map +0 -0
- /package/{dist-esm → dist-es5}/Interfaces/IConfig.js.map +0 -0
- /package/{dist-esm → dist-es5}/Interfaces/ICorrelationConfig.js.map +0 -0
- /package/{dist-esm → dist-es5}/Interfaces/IDependencyTelemetry.js.map +0 -0
- /package/{dist-esm → dist-es5}/Interfaces/IEventTelemetry.js.map +0 -0
- /package/{dist-esm → dist-es5}/Interfaces/IExceptionTelemetry.js.map +0 -0
- /package/{dist-esm → dist-es5}/Interfaces/IMetricTelemetry.js.map +0 -0
- /package/{dist-esm → dist-es5}/Interfaces/IPageViewPerformanceTelemetry.js.map +0 -0
- /package/{dist-esm → dist-es5}/Interfaces/IPageViewTelemetry.js.map +0 -0
- /package/{dist-esm → dist-es5}/Interfaces/IPartC.js.map +0 -0
- /package/{dist-esm → dist-es5}/Interfaces/IPropertiesPlugin.js.map +0 -0
- /package/{dist-esm → dist-es5}/Interfaces/IRequestContext.js.map +0 -0
- /package/{dist-esm → dist-es5}/Interfaces/ITelemetryContext.js.map +0 -0
- /package/{dist-esm → dist-es5}/Interfaces/IThrottleMgr.js.map +0 -0
- /package/{dist-esm → dist-es5}/Interfaces/ITraceTelemetry.js.map +0 -0
- /package/{dist-esm → dist-es5}/Interfaces/PartAExtensions.js.map +0 -0
- /package/{dist-esm → dist-es5}/Interfaces/Telemetry/IEnvelope.js.map +0 -0
- /package/{dist-esm → dist-es5}/Interfaces/Telemetry/ISerializable.js.map +0 -0
- /package/{dist-esm → dist-es5}/RequestResponseHeaders.js.map +0 -0
- /package/{dist-esm → dist-es5}/StorageHelperFuncs.js.map +0 -0
- /package/{dist-esm → dist-es5}/Telemetry/Common/Data.js.map +0 -0
- /package/{dist-esm → dist-es5}/Telemetry/Common/DataPoint.js.map +0 -0
- /package/{dist-esm → dist-es5}/Telemetry/Common/Envelope.js.map +0 -0
- /package/{dist-esm → dist-es5}/Telemetry/Event.js.map +0 -0
- /package/{dist-esm → dist-es5}/Telemetry/Exception.js.map +0 -0
- /package/{dist-esm → dist-es5}/Telemetry/Metric.js.map +0 -0
- /package/{dist-esm → dist-es5}/Telemetry/PageView.js.map +0 -0
- /package/{dist-esm → dist-es5}/Telemetry/PageViewPerformance.js.map +0 -0
- /package/{dist-esm → dist-es5}/Telemetry/RemoteDependencyData.js.map +0 -0
- /package/{dist-esm → dist-es5}/Telemetry/Trace.js.map +0 -0
- /package/{dist-esm → dist-es5}/TelemetryItemCreator.js.map +0 -0
- /package/{dist-esm → dist-es5}/ThrottleMgr.js.map +0 -0
- /package/{dist-esm → dist-es5}/UrlHelperFuncs.js.map +0 -0
- /package/{dist-esm → dist-es5}/Util.js.map +0 -0
- /package/{dist-esm → dist-es5}/__DynamicConstants.js.map +0 -0
- /package/{dist-esm → dist-es5}/applicationinsights-common.js.map +0 -0
|
@@ -1,19 +1,13 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Application Insights JavaScript SDK - Common, 3.0.0-beta.
|
|
2
|
+
* Application Insights JavaScript SDK - Common, 3.0.0-beta.2304-07
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*/
|
|
5
5
|
(function (global, factory) {
|
|
6
6
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
|
|
7
7
|
typeof define === 'function' && define.amd ? define(['exports'], factory) :
|
|
8
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.Microsoft = global.Microsoft || {}, global.Microsoft.
|
|
8
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.Microsoft = global.Microsoft || {}, global.Microsoft.ApplicationInsights3 = global.Microsoft.ApplicationInsights3 || {})));
|
|
9
9
|
})(this, (function (exports) { 'use strict';
|
|
10
10
|
|
|
11
|
-
/*!
|
|
12
|
-
* NevWare21 - ts-utils, 0.8.1
|
|
13
|
-
* https://github.com/nevware21/ts-utils
|
|
14
|
-
* Copyright (c) NevWare21 and contributors. All rights reserved.
|
|
15
|
-
* Licensed under the MIT license.
|
|
16
|
-
*/
|
|
17
11
|
var UNDEF_VALUE = undefined;
|
|
18
12
|
var EMPTY = "";
|
|
19
13
|
var FUNCTION = "function";
|
|
@@ -21,9 +15,8 @@
|
|
|
21
15
|
var OBJECT = "object";
|
|
22
16
|
var PROTOTYPE = "prototype";
|
|
23
17
|
var STRING = "string";
|
|
24
|
-
var UNDEFINED
|
|
18
|
+
var UNDEFINED = "undefined";
|
|
25
19
|
var CONSTRUCTOR = "constructor";
|
|
26
|
-
var HAS_OWN_PROPERTY = "hasOwnProperty";
|
|
27
20
|
var SYMBOL = "Symbol";
|
|
28
21
|
var POLYFILL_TAG = "_polyfill";
|
|
29
22
|
var INDEX_OF = "indexOf";
|
|
@@ -31,12 +24,15 @@
|
|
|
31
24
|
var DONE = "done";
|
|
32
25
|
var VALUE = "value";
|
|
33
26
|
var NAME = "name";
|
|
27
|
+
var SLICE = "slice";
|
|
34
28
|
var ObjClass$1 = Object;
|
|
35
29
|
var ObjProto$1 = ObjClass$1[PROTOTYPE];
|
|
36
30
|
var StrCls = String;
|
|
31
|
+
var StrProto = StrCls[PROTOTYPE];
|
|
37
32
|
var MathCls = Math;
|
|
38
33
|
var ArrCls = Array;
|
|
39
34
|
var ArrProto = ArrCls[PROTOTYPE];
|
|
35
|
+
|
|
40
36
|
function _safeGet(cb, defValue) {
|
|
41
37
|
var result = defValue;
|
|
42
38
|
try {
|
|
@@ -46,6 +42,7 @@
|
|
|
46
42
|
}
|
|
47
43
|
return result;
|
|
48
44
|
}
|
|
45
|
+
|
|
49
46
|
function _createIs(theType) {
|
|
50
47
|
return function (value) {
|
|
51
48
|
return typeof value === theType;
|
|
@@ -61,11 +58,14 @@
|
|
|
61
58
|
return ObjProto$1.toString.call(value);
|
|
62
59
|
}
|
|
63
60
|
function isUndefined(value) {
|
|
64
|
-
return typeof value === UNDEFINED
|
|
61
|
+
return typeof value === UNDEFINED || value === UNDEFINED;
|
|
65
62
|
}
|
|
66
63
|
function isNullOrUndefined(value) {
|
|
67
64
|
return value === null || isUndefined(value);
|
|
68
65
|
}
|
|
66
|
+
function isStrictNullOrUndefined(value) {
|
|
67
|
+
return value === null || !isDefined(value);
|
|
68
|
+
}
|
|
69
69
|
function isDefined(arg) {
|
|
70
70
|
return !!arg || arg !== UNDEF_VALUE;
|
|
71
71
|
}
|
|
@@ -80,14 +80,18 @@
|
|
|
80
80
|
var isArray = ArrCls.isArray;
|
|
81
81
|
var isNumber = _createIs(NUMBER);
|
|
82
82
|
var isError = _createObjIs("Error");
|
|
83
|
+
|
|
83
84
|
var objGetOwnPropertyDescriptor = ObjClass$1.getOwnPropertyDescriptor;
|
|
85
|
+
|
|
84
86
|
function objHasOwnProperty(obj, prop) {
|
|
85
|
-
return obj && ObjProto$1
|
|
87
|
+
return obj && ObjProto$1.hasOwnProperty.call(obj, prop);
|
|
86
88
|
}
|
|
89
|
+
|
|
87
90
|
var objHasOwn = ObjClass$1["hasOwn"] || polyObjHasOwn;
|
|
88
91
|
function polyObjHasOwn(obj, prop) {
|
|
89
92
|
return objHasOwnProperty(obj, prop) || !!objGetOwnPropertyDescriptor(obj, prop);
|
|
90
93
|
}
|
|
94
|
+
|
|
91
95
|
function objForEachKey(theObject, callbackfn, thisArg) {
|
|
92
96
|
if (theObject && isObject(theObject)) {
|
|
93
97
|
for (var prop in theObject) {
|
|
@@ -99,6 +103,7 @@
|
|
|
99
103
|
}
|
|
100
104
|
}
|
|
101
105
|
}
|
|
106
|
+
|
|
102
107
|
function _createKeyValueMap(values, keyType, valueType, completeFn) {
|
|
103
108
|
var theMap = {};
|
|
104
109
|
objForEachKey(values, function (key, value) {
|
|
@@ -107,17 +112,20 @@
|
|
|
107
112
|
});
|
|
108
113
|
return completeFn(theMap);
|
|
109
114
|
}
|
|
115
|
+
|
|
110
116
|
function throwError(message) {
|
|
111
117
|
throw new Error(message);
|
|
112
118
|
}
|
|
113
|
-
function throwTypeError
|
|
119
|
+
function throwTypeError(message) {
|
|
114
120
|
throw new TypeError(message);
|
|
115
121
|
}
|
|
122
|
+
|
|
116
123
|
var _objFreeze = ObjClass$1["freeze"];
|
|
117
124
|
var _doNothing = function (value) { return value; };
|
|
125
|
+
var objAssign = ObjClass$1["assign"];
|
|
118
126
|
function objKeys(value) {
|
|
119
127
|
if (!isObject(value) || value === null) {
|
|
120
|
-
throwTypeError
|
|
128
|
+
throwTypeError("objKeys called on non-object");
|
|
121
129
|
}
|
|
122
130
|
return ObjClass$1.keys(value);
|
|
123
131
|
}
|
|
@@ -133,6 +141,7 @@
|
|
|
133
141
|
}
|
|
134
142
|
var objFreeze = _objFreeze || _doNothing;
|
|
135
143
|
var objGetPrototypeOf = ObjClass$1["getPrototypeOf"] || _doNothing;
|
|
144
|
+
|
|
136
145
|
function createEnum(values) {
|
|
137
146
|
return _createKeyValueMap(values, 1 , 0 , objDeepFreeze);
|
|
138
147
|
}
|
|
@@ -150,7 +159,8 @@
|
|
|
150
159
|
function createTypeMap(values) {
|
|
151
160
|
return createSimpleMap(values);
|
|
152
161
|
}
|
|
153
|
-
|
|
162
|
+
|
|
163
|
+
var _wellKnownSymbolMap = createEnumKeyMap({
|
|
154
164
|
asyncIterator: 0 ,
|
|
155
165
|
hasInstance: 1 ,
|
|
156
166
|
isConcatSpreadable: 2 ,
|
|
@@ -165,21 +175,23 @@
|
|
|
165
175
|
toStringTag: 11 ,
|
|
166
176
|
unscopables: 12
|
|
167
177
|
});
|
|
178
|
+
|
|
168
179
|
var asString = StrCls;
|
|
180
|
+
|
|
169
181
|
var GLOBAL_CONFIG_KEY = "__tsUtils$gblCfg";
|
|
170
182
|
var _globalCfg;
|
|
171
183
|
function _getGlobalValue() {
|
|
172
184
|
var result;
|
|
173
|
-
if (typeof globalThis !== UNDEFINED
|
|
185
|
+
if (typeof globalThis !== UNDEFINED) {
|
|
174
186
|
result = globalThis;
|
|
175
187
|
}
|
|
176
|
-
if (!result && typeof self !== UNDEFINED
|
|
188
|
+
if (!result && typeof self !== UNDEFINED) {
|
|
177
189
|
result = self;
|
|
178
190
|
}
|
|
179
|
-
if (!result && typeof window !== UNDEFINED
|
|
191
|
+
if (!result && typeof window !== UNDEFINED) {
|
|
180
192
|
result = window;
|
|
181
193
|
}
|
|
182
|
-
if (!result && typeof global !== UNDEFINED
|
|
194
|
+
if (!result && typeof global !== UNDEFINED) {
|
|
183
195
|
result = global;
|
|
184
196
|
}
|
|
185
197
|
return result;
|
|
@@ -191,8 +203,9 @@
|
|
|
191
203
|
}
|
|
192
204
|
return _globalCfg;
|
|
193
205
|
}
|
|
206
|
+
|
|
194
207
|
function dumpObj(object, format) {
|
|
195
|
-
var propertyValueDump =
|
|
208
|
+
var propertyValueDump = EMPTY;
|
|
196
209
|
if (isError(object)) {
|
|
197
210
|
propertyValueDump = "{ stack: '" + object.stack + "', message: '" + object.message + "', name: '" + object.name + "'";
|
|
198
211
|
}
|
|
@@ -206,35 +219,27 @@
|
|
|
206
219
|
}
|
|
207
220
|
return objToString(object) + ": " + propertyValueDump;
|
|
208
221
|
}
|
|
209
|
-
|
|
210
|
-
var theArgs = [];
|
|
211
|
-
for (var lp = startAt; lp < args[LENGTH]; lp++) {
|
|
212
|
-
theArgs[lp - startAt] = args[lp];
|
|
213
|
-
}
|
|
214
|
-
return theArgs;
|
|
215
|
-
}
|
|
222
|
+
|
|
216
223
|
function _unwrapFunction(funcName, target, polyFunc) {
|
|
217
224
|
return function (thisArg) {
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
}
|
|
223
|
-
if (polyFunc) {
|
|
224
|
-
return polyFunc.apply(thisArg, arguments);
|
|
225
|
-
}
|
|
225
|
+
var theFunc = (thisArg && thisArg[funcName]) || (target && target[funcName]);
|
|
226
|
+
if (theFunc || polyFunc) {
|
|
227
|
+
var theArgs = arguments;
|
|
228
|
+
return (theFunc || polyFunc).apply(thisArg, theFunc ? ArrProto[SLICE].call(theArgs, 1) : theArgs);
|
|
226
229
|
}
|
|
227
|
-
throwTypeError
|
|
230
|
+
throwTypeError("'" + asString(funcName) + "' not defined for " + dumpObj(thisArg));
|
|
228
231
|
};
|
|
229
232
|
}
|
|
233
|
+
|
|
230
234
|
var mathMax = MathCls.max;
|
|
231
|
-
|
|
232
|
-
var
|
|
233
|
-
|
|
234
|
-
var
|
|
235
|
+
|
|
236
|
+
var strSlice = _unwrapFunction(SLICE, StrProto);
|
|
237
|
+
|
|
238
|
+
var strSubstring = _unwrapFunction("substring", StrProto);
|
|
239
|
+
var strSubstr = _unwrapFunction("substr", StrProto, polyStrSubstr);
|
|
235
240
|
function polyStrSubstr(value, start, length) {
|
|
236
241
|
if (isNullOrUndefined(value)) {
|
|
237
|
-
throwTypeError
|
|
242
|
+
throwTypeError("'polyStrSubstr called with invalid " + dumpObj(value));
|
|
238
243
|
}
|
|
239
244
|
if (length < 0) {
|
|
240
245
|
return EMPTY;
|
|
@@ -251,6 +256,7 @@
|
|
|
251
256
|
function strLeft(value, count) {
|
|
252
257
|
return strSubstring(value, 0, count);
|
|
253
258
|
}
|
|
259
|
+
|
|
254
260
|
var _polySymbols;
|
|
255
261
|
function _globalSymbolRegistry() {
|
|
256
262
|
if (!_polySymbols) {
|
|
@@ -259,6 +265,7 @@
|
|
|
259
265
|
}
|
|
260
266
|
return _polySymbols;
|
|
261
267
|
}
|
|
268
|
+
var _wellKnownSymbolCache = {};
|
|
262
269
|
function polyNewSymbol(description) {
|
|
263
270
|
var theSymbol = {
|
|
264
271
|
description: asString(description),
|
|
@@ -276,6 +283,15 @@
|
|
|
276
283
|
}
|
|
277
284
|
return registry.k[key];
|
|
278
285
|
}
|
|
286
|
+
function polyGetKnownSymbol(name) {
|
|
287
|
+
var result;
|
|
288
|
+
var knownName = _wellKnownSymbolMap[name];
|
|
289
|
+
if (knownName) {
|
|
290
|
+
result = _wellKnownSymbolCache[knownName] = _wellKnownSymbolCache[knownName] || polyNewSymbol(SYMBOL + "." + knownName);
|
|
291
|
+
}
|
|
292
|
+
return result;
|
|
293
|
+
}
|
|
294
|
+
|
|
279
295
|
var propMap = {
|
|
280
296
|
e: "enumerable",
|
|
281
297
|
c: "configurable",
|
|
@@ -288,6 +304,15 @@
|
|
|
288
304
|
var prop = {};
|
|
289
305
|
prop[propMap["c"]] = true;
|
|
290
306
|
prop[propMap["e"]] = true;
|
|
307
|
+
if (value.l) {
|
|
308
|
+
prop.get = function () { return value.l.v; };
|
|
309
|
+
var desc = objGetOwnPropertyDescriptor(value.l, "v");
|
|
310
|
+
if (desc && desc.set) {
|
|
311
|
+
prop.set = function (newValue) {
|
|
312
|
+
value.l.v = newValue;
|
|
313
|
+
};
|
|
314
|
+
}
|
|
315
|
+
}
|
|
291
316
|
objForEachKey(value, function (key, value) {
|
|
292
317
|
prop[propMap[key]] = isUndefined(value) ? prop[propMap[key]] : value;
|
|
293
318
|
});
|
|
@@ -297,6 +322,7 @@
|
|
|
297
322
|
function objDefine(target, key, propDesc) {
|
|
298
323
|
return objDefineProp(target, key, _createProp(propDesc));
|
|
299
324
|
}
|
|
325
|
+
|
|
300
326
|
var _globalLazyTestHooks;
|
|
301
327
|
var _fetchLazyTestHooks = function () {
|
|
302
328
|
_globalLazyTestHooks = _getGlobalConfig();
|
|
@@ -306,11 +332,14 @@
|
|
|
306
332
|
var lazyValue = {};
|
|
307
333
|
_fetchLazyTestHooks && _fetchLazyTestHooks();
|
|
308
334
|
lazyValue.b = _globalLazyTestHooks.lzy;
|
|
309
|
-
|
|
310
|
-
|
|
335
|
+
objDefineProp(lazyValue, "v", {
|
|
336
|
+
configurable: true,
|
|
337
|
+
get: function () {
|
|
311
338
|
var result = cb();
|
|
312
339
|
if (!_globalLazyTestHooks.lzy) {
|
|
313
|
-
|
|
340
|
+
objDefineProp(lazyValue, "v", {
|
|
341
|
+
value: result
|
|
342
|
+
});
|
|
314
343
|
if (lazyValue.b) {
|
|
315
344
|
delete lazyValue.b;
|
|
316
345
|
}
|
|
@@ -323,25 +352,25 @@
|
|
|
323
352
|
});
|
|
324
353
|
return lazyValue;
|
|
325
354
|
}
|
|
355
|
+
|
|
326
356
|
function _lazySafeGet(cb, defValue) {
|
|
327
357
|
return getLazy(function () { return _safeGet(cb, defValue); });
|
|
328
358
|
}
|
|
329
|
-
|
|
330
|
-
var NAVIGATOR = "navigator";
|
|
359
|
+
|
|
331
360
|
var WINDOW = "window";
|
|
332
|
-
var _cachedGlobal
|
|
361
|
+
var _cachedGlobal;
|
|
333
362
|
var _cachedWindow;
|
|
334
363
|
var _cachedDocument;
|
|
335
364
|
var _cachedNavigator;
|
|
336
365
|
function _lazySafeGetInst(name) {
|
|
337
366
|
return _lazySafeGet(function () { return getInst(name) || UNDEF_VALUE; }, UNDEF_VALUE);
|
|
338
367
|
}
|
|
339
|
-
function getGlobal
|
|
340
|
-
(!_cachedGlobal
|
|
341
|
-
return _cachedGlobal
|
|
368
|
+
function getGlobal(useCached) {
|
|
369
|
+
(!_cachedGlobal || useCached === false || (_globalLazyTestHooks.lzy && !_cachedGlobal.b)) && (_cachedGlobal = _lazySafeGet(_getGlobalValue, null));
|
|
370
|
+
return _cachedGlobal.v;
|
|
342
371
|
}
|
|
343
372
|
function getInst(name, useCached) {
|
|
344
|
-
var gbl = getGlobal
|
|
373
|
+
var gbl = getGlobal(useCached);
|
|
345
374
|
if (gbl && gbl[name]) {
|
|
346
375
|
return gbl[name];
|
|
347
376
|
}
|
|
@@ -351,7 +380,7 @@
|
|
|
351
380
|
return null;
|
|
352
381
|
}
|
|
353
382
|
function getDocument() {
|
|
354
|
-
(!_cachedDocument || (_globalLazyTestHooks.lzy && !_cachedDocument.b)) && (_cachedDocument = _lazySafeGetInst(
|
|
383
|
+
(!_cachedDocument || (_globalLazyTestHooks.lzy && !_cachedDocument.b)) && (_cachedDocument = _lazySafeGetInst("document"));
|
|
355
384
|
return _cachedDocument.v;
|
|
356
385
|
}
|
|
357
386
|
function hasWindow() {
|
|
@@ -365,9 +394,10 @@
|
|
|
365
394
|
return !!getNavigator();
|
|
366
395
|
}
|
|
367
396
|
function getNavigator() {
|
|
368
|
-
(!_cachedNavigator || (_globalLazyTestHooks.lzy && !_cachedNavigator.b)) && (_cachedNavigator = _lazySafeGetInst(
|
|
397
|
+
(!_cachedNavigator || (_globalLazyTestHooks.lzy && !_cachedNavigator.b)) && (_cachedNavigator = _lazySafeGetInst("navigator"));
|
|
369
398
|
return _cachedNavigator.v;
|
|
370
399
|
}
|
|
400
|
+
|
|
371
401
|
var _symbol;
|
|
372
402
|
var _symbolFor;
|
|
373
403
|
var _symbolKeyFor;
|
|
@@ -383,6 +413,11 @@
|
|
|
383
413
|
(!_symbolKeyFor || resetCache) && (_symbolKeyFor = _getSymbolValue("keyFor"));
|
|
384
414
|
return _symbol.v;
|
|
385
415
|
}
|
|
416
|
+
function getKnownSymbol(name, noPoly) {
|
|
417
|
+
var knownName = _wellKnownSymbolMap[name];
|
|
418
|
+
(!_symbol || (_globalLazyTestHooks.lzy && !_symbol.b)) && getSymbol();
|
|
419
|
+
return _symbol.v ? _symbol.v[knownName || name] : (!noPoly ? polyGetKnownSymbol(name) : UNDEF_VALUE);
|
|
420
|
+
}
|
|
386
421
|
function newSymbol(description, noPoly) {
|
|
387
422
|
(!_symbol || (_globalLazyTestHooks.lzy && !_symbol.b)) && getSymbol();
|
|
388
423
|
return _symbol.v ? _symbol.v(description) : (!noPoly ? polyNewSymbol(description) : null);
|
|
@@ -391,20 +426,49 @@
|
|
|
391
426
|
(!_symbolFor || (_globalLazyTestHooks.lzy && !_symbol.b)) && getSymbol();
|
|
392
427
|
return (_symbolFor.v || polySymbolFor)(key);
|
|
393
428
|
}
|
|
429
|
+
|
|
394
430
|
function isIterator(value) {
|
|
395
431
|
return !!value && isFunction(value.next);
|
|
396
432
|
}
|
|
433
|
+
function isIterable(value) {
|
|
434
|
+
return !isStrictNullOrUndefined(value) && isFunction(value[getKnownSymbol(3 )]);
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
function iterForOf(iter, callbackfn, thisArg) {
|
|
438
|
+
if (iter) {
|
|
439
|
+
if (!isIterator(iter)) {
|
|
440
|
+
var itSymbol = getKnownSymbol(3 );
|
|
441
|
+
iter = iter[itSymbol] ? iter[itSymbol]() : null;
|
|
442
|
+
}
|
|
443
|
+
if (isIterator(iter)) {
|
|
444
|
+
try {
|
|
445
|
+
var count = 0;
|
|
446
|
+
var value = iter.next();
|
|
447
|
+
while (!value[DONE]) {
|
|
448
|
+
if (callbackfn.call(thisArg || iter, value[VALUE], count, iter) === -1) {
|
|
449
|
+
break;
|
|
450
|
+
}
|
|
451
|
+
count++;
|
|
452
|
+
value = iter.next();
|
|
453
|
+
}
|
|
454
|
+
iter.return && iter.return(value);
|
|
455
|
+
}
|
|
456
|
+
catch (e) {
|
|
457
|
+
iter.throw && iter.throw(e);
|
|
458
|
+
}
|
|
459
|
+
}
|
|
460
|
+
}
|
|
461
|
+
}
|
|
462
|
+
|
|
397
463
|
function arrAppend(target, elms) {
|
|
398
464
|
if (!isUndefined(elms) && target) {
|
|
399
465
|
if (isArray(elms)) {
|
|
400
466
|
target.push.apply(target, elms);
|
|
401
467
|
}
|
|
402
|
-
else if (isIterator(elms)) {
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
value = elms.next();
|
|
407
|
-
}
|
|
468
|
+
else if (isIterator(elms) || isIterable(elms)) {
|
|
469
|
+
iterForOf(elms, function (elm) {
|
|
470
|
+
target.push(elm);
|
|
471
|
+
});
|
|
408
472
|
}
|
|
409
473
|
else {
|
|
410
474
|
target.push(elms);
|
|
@@ -412,6 +476,7 @@
|
|
|
412
476
|
}
|
|
413
477
|
return target;
|
|
414
478
|
}
|
|
479
|
+
|
|
415
480
|
function arrForEach(theArray, callbackfn, thisArg) {
|
|
416
481
|
if (theArray) {
|
|
417
482
|
var len = theArray[LENGTH] >>> 0;
|
|
@@ -424,9 +489,15 @@
|
|
|
424
489
|
}
|
|
425
490
|
}
|
|
426
491
|
}
|
|
492
|
+
|
|
427
493
|
var arrIndexOf = _unwrapFunction(INDEX_OF, ArrProto);
|
|
494
|
+
|
|
428
495
|
var arrMap = _unwrapFunction("map", ArrProto);
|
|
496
|
+
|
|
429
497
|
var arrReduce = _unwrapFunction("reduce", ArrProto);
|
|
498
|
+
|
|
499
|
+
var arrSlice = _unwrapFunction(SLICE, ArrProto);
|
|
500
|
+
|
|
430
501
|
function objSetPrototypeOf(obj, proto) {
|
|
431
502
|
var fn = ObjClass$1["setPrototypeOf"] ||
|
|
432
503
|
({ __proto__: [] } instanceof Array && function (d, b) {
|
|
@@ -437,6 +508,7 @@
|
|
|
437
508
|
};
|
|
438
509
|
return fn(obj, proto);
|
|
439
510
|
}
|
|
511
|
+
|
|
440
512
|
function _createCustomError(name, d, baseClass) {
|
|
441
513
|
objSetPrototypeOf(d, baseClass);
|
|
442
514
|
function __() {
|
|
@@ -472,12 +544,29 @@
|
|
|
472
544
|
}, baseClass);
|
|
473
545
|
return customError;
|
|
474
546
|
}
|
|
547
|
+
|
|
475
548
|
function utcNow() {
|
|
476
549
|
return (Date.now || polyUtcNow)();
|
|
477
550
|
}
|
|
478
551
|
function polyUtcNow() {
|
|
479
552
|
return new Date().getTime();
|
|
480
553
|
}
|
|
554
|
+
|
|
555
|
+
function _createTrimFn(exp) {
|
|
556
|
+
return function _doTrim(value) {
|
|
557
|
+
if (isNullOrUndefined(value)) {
|
|
558
|
+
throwTypeError("strTrim called [" + dumpObj(value) + "]");
|
|
559
|
+
}
|
|
560
|
+
if (value && value.replace) {
|
|
561
|
+
value = value.replace(exp, EMPTY);
|
|
562
|
+
}
|
|
563
|
+
return value;
|
|
564
|
+
};
|
|
565
|
+
}
|
|
566
|
+
var polyStrTrim = _createTrimFn(/^\s+|(?=\s)\s+$/g);
|
|
567
|
+
|
|
568
|
+
var strTrim = _unwrapFunction("trim", StrProto, polyStrTrim);
|
|
569
|
+
|
|
481
570
|
var _fnToString;
|
|
482
571
|
var _objCtrFnString;
|
|
483
572
|
var _gblWindow;
|
|
@@ -509,26 +598,30 @@
|
|
|
509
598
|
}
|
|
510
599
|
return result;
|
|
511
600
|
}
|
|
601
|
+
|
|
512
602
|
var _perf;
|
|
513
603
|
function getPerformance() {
|
|
514
604
|
(!_perf || (_globalLazyTestHooks.lzy && !_perf.b)) && (_perf = _lazySafeGetInst("performance"));
|
|
515
605
|
return _perf.v;
|
|
516
606
|
}
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
}
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
}
|
|
607
|
+
|
|
608
|
+
var _objCreate = ObjClass$1["create"];
|
|
609
|
+
var objCreate = _objCreate || polyObjCreate;
|
|
610
|
+
function polyObjCreate(obj) {
|
|
611
|
+
if (!obj) {
|
|
612
|
+
return {};
|
|
613
|
+
}
|
|
614
|
+
var type = typeof obj;
|
|
615
|
+
if (type !== OBJECT && type !== FUNCTION) {
|
|
616
|
+
throw new TypeError("Prototype must be an Object or function: " + dumpObj(obj));
|
|
617
|
+
}
|
|
618
|
+
function tempFunc() { }
|
|
619
|
+
tempFunc[PROTOTYPE] = obj;
|
|
620
|
+
return new tempFunc();
|
|
528
621
|
}
|
|
529
|
-
|
|
530
|
-
var
|
|
531
|
-
|
|
622
|
+
|
|
623
|
+
var strIndexOf = _unwrapFunction(INDEX_OF, StrProto);
|
|
624
|
+
|
|
532
625
|
var REF = "ref";
|
|
533
626
|
var UNREF = "un" + REF;
|
|
534
627
|
var HAS_REF = "hasRef";
|
|
@@ -589,6 +682,7 @@
|
|
|
589
682
|
}
|
|
590
683
|
};
|
|
591
684
|
}
|
|
685
|
+
|
|
592
686
|
function _createTimeoutWith(self, startTimer, overrideFn, theArgs) {
|
|
593
687
|
var isArr = isArray(overrideFn);
|
|
594
688
|
var len = isArr ? overrideFn.length : 0;
|
|
@@ -614,7 +708,7 @@
|
|
|
614
708
|
return handler.h;
|
|
615
709
|
}
|
|
616
710
|
function scheduleTimeout(callback, timeout) {
|
|
617
|
-
return _createTimeoutWith(this, true, UNDEF_VALUE,
|
|
711
|
+
return _createTimeoutWith(this, true, UNDEF_VALUE, arrSlice(arguments));
|
|
618
712
|
}
|
|
619
713
|
|
|
620
714
|
var createEnumStyle = createEnum;
|
|
@@ -640,7 +734,6 @@
|
|
|
640
734
|
var _DYN_DIAG_LOG = "diagLog";
|
|
641
735
|
var _DYN_USER_AGENT = "userAgent";
|
|
642
736
|
var _DYN_REPLACE = "replace";
|
|
643
|
-
var _DYN_ENABLE_DEBUG_EXCEPTI5 = "enableDebugExceptions";
|
|
644
737
|
var _DYN_LOG_INTERNAL_MESSAGE = "logInternalMessage";
|
|
645
738
|
var _DYN_TRACE_ID = "traceId";
|
|
646
739
|
var _DYN_SPAN_ID = "spanId";
|
|
@@ -659,74 +752,31 @@
|
|
|
659
752
|
arrForEach(sourceErrors, function (srcError, idx) {
|
|
660
753
|
theMessage += "\n".concat(idx, " > ").concat(dumpObj(srcError));
|
|
661
754
|
});
|
|
662
|
-
throw new aggregationErrorType(
|
|
755
|
+
throw new aggregationErrorType(theMessage, sourceErrors || []);
|
|
663
756
|
}
|
|
664
757
|
|
|
665
758
|
var strShimFunction = "function";
|
|
666
759
|
var strShimObject = "object";
|
|
667
760
|
var strShimUndefined = "undefined";
|
|
668
761
|
var strShimPrototype = "prototype";
|
|
669
|
-
var strShimHasOwnProperty = "hasOwnProperty";
|
|
670
762
|
var ObjClass = Object;
|
|
671
763
|
var ObjProto = ObjClass[strShimPrototype];
|
|
672
|
-
var ObjAssign = ObjClass["assign"];
|
|
673
|
-
var ObjCreate = ObjClass["create"];
|
|
674
|
-
|
|
675
|
-
var _cachedGlobal = null;
|
|
676
|
-
function getGlobal(useCached) {
|
|
677
|
-
if (useCached === void 0) { useCached = true; }
|
|
678
|
-
var result = useCached === false ? null : _cachedGlobal;
|
|
679
|
-
if (!result) {
|
|
680
|
-
if (typeof globalThis !== strShimUndefined) {
|
|
681
|
-
result = globalThis;
|
|
682
|
-
}
|
|
683
|
-
if (!result && typeof self !== strShimUndefined) {
|
|
684
|
-
result = self;
|
|
685
|
-
}
|
|
686
|
-
if (!result && typeof window !== strShimUndefined) {
|
|
687
|
-
result = window;
|
|
688
|
-
}
|
|
689
|
-
if (!result && typeof global !== strShimUndefined) {
|
|
690
|
-
result = global;
|
|
691
|
-
}
|
|
692
|
-
_cachedGlobal = result;
|
|
693
|
-
}
|
|
694
|
-
return result;
|
|
695
|
-
}
|
|
696
|
-
function throwTypeError(message) {
|
|
697
|
-
throw new TypeError(message);
|
|
698
|
-
}
|
|
699
|
-
function objCreateFn(obj) {
|
|
700
|
-
var func = ObjCreate;
|
|
701
|
-
if (func) {
|
|
702
|
-
return func(obj);
|
|
703
|
-
}
|
|
704
|
-
if (obj == null) {
|
|
705
|
-
return {};
|
|
706
|
-
}
|
|
707
|
-
var type = typeof obj;
|
|
708
|
-
if (type !== strShimObject && type !== strShimFunction) {
|
|
709
|
-
throwTypeError("Object prototype may only be an Object:" + obj);
|
|
710
|
-
}
|
|
711
|
-
function tmpFunc() { }
|
|
712
|
-
tmpFunc[strShimPrototype] = obj;
|
|
713
|
-
return new tmpFunc();
|
|
714
|
-
}
|
|
715
764
|
|
|
716
765
|
(getGlobal() || {})["Symbol"];
|
|
717
766
|
(getGlobal() || {})["Reflect"];
|
|
767
|
+
var strHasOwnProperty = "hasOwnProperty";
|
|
718
768
|
var __objAssignFnImpl = function (t) {
|
|
719
769
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
720
770
|
s = arguments[i];
|
|
721
771
|
for (var p in s) {
|
|
722
|
-
if (ObjProto[
|
|
772
|
+
if (ObjProto[strHasOwnProperty].call(s, p)) {
|
|
723
773
|
t[p] = s[p];
|
|
724
774
|
}
|
|
725
775
|
}
|
|
726
776
|
}
|
|
727
777
|
return t;
|
|
728
778
|
};
|
|
729
|
-
var __assignFn =
|
|
779
|
+
var __assignFn = objAssign || __objAssignFnImpl;
|
|
730
780
|
var extendStaticsFn = function (d, b) {
|
|
731
781
|
extendStaticsFn = ObjClass["setPrototypeOf"] ||
|
|
732
782
|
({ __proto__: [] } instanceof Array && function (d, b) {
|
|
@@ -734,7 +784,7 @@
|
|
|
734
784
|
}) ||
|
|
735
785
|
function (d, b) {
|
|
736
786
|
for (var p in b) {
|
|
737
|
-
if (b[
|
|
787
|
+
if (b[strHasOwnProperty](p)) {
|
|
738
788
|
d[p] = b[p];
|
|
739
789
|
}
|
|
740
790
|
}
|
|
@@ -749,15 +799,10 @@
|
|
|
749
799
|
function __() {
|
|
750
800
|
this.constructor = d;
|
|
751
801
|
}
|
|
752
|
-
d[strShimPrototype] = b === null ?
|
|
802
|
+
d[strShimPrototype] = b === null ? objCreate(b) : (__[strShimPrototype] = b[strShimPrototype], new __());
|
|
753
803
|
}
|
|
754
804
|
|
|
755
|
-
|
|
756
|
-
* Microsoft Dynamic Proto Utility, 1.1.8
|
|
757
|
-
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
758
|
-
*/
|
|
759
|
-
var _a$1;
|
|
760
|
-
var UNDEFINED = "undefined";
|
|
805
|
+
var _a;
|
|
761
806
|
var Constructor = 'constructor';
|
|
762
807
|
var Prototype = 'prototype';
|
|
763
808
|
var strFunction = 'function';
|
|
@@ -778,33 +823,14 @@
|
|
|
778
823
|
var Obj = Object;
|
|
779
824
|
var _objGetPrototypeOf = Obj["getPrototypeOf"];
|
|
780
825
|
var _objGetOwnProps = Obj["getOwnPropertyNames"];
|
|
781
|
-
|
|
782
|
-
var result;
|
|
783
|
-
if (typeof globalThis !== UNDEFINED) {
|
|
784
|
-
result = globalThis;
|
|
785
|
-
}
|
|
786
|
-
if (!result && typeof self !== UNDEFINED) {
|
|
787
|
-
result = self;
|
|
788
|
-
}
|
|
789
|
-
if (!result && typeof window !== UNDEFINED) {
|
|
790
|
-
result = window;
|
|
791
|
-
}
|
|
792
|
-
if (!result && typeof global !== UNDEFINED) {
|
|
793
|
-
result = global;
|
|
794
|
-
}
|
|
795
|
-
return result || {};
|
|
796
|
-
}
|
|
797
|
-
var _gbl = _getGlobal();
|
|
826
|
+
var _gbl = getGlobal();
|
|
798
827
|
var _gblInst = _gbl[DynProtoGlobalSettings] || (_gbl[DynProtoGlobalSettings] = {
|
|
799
|
-
o: (_a
|
|
800
|
-
_a
|
|
801
|
-
_a
|
|
802
|
-
_a
|
|
828
|
+
o: (_a = {},
|
|
829
|
+
_a[strSetInstFuncs] = true,
|
|
830
|
+
_a[strUseBaseInst] = true,
|
|
831
|
+
_a),
|
|
803
832
|
n: 1000
|
|
804
833
|
});
|
|
805
|
-
function _hasOwnProperty(obj, prop) {
|
|
806
|
-
return obj && Obj[Prototype].hasOwnProperty.call(obj, prop);
|
|
807
|
-
}
|
|
808
834
|
function _isObjectOrArrayPrototype(target) {
|
|
809
835
|
return target && (target === Obj[Prototype] || target === Array[Prototype]);
|
|
810
836
|
}
|
|
@@ -819,7 +845,7 @@
|
|
|
819
845
|
}
|
|
820
846
|
var curProto = target[str__Proto] || target[Prototype] || (target[Constructor] ? target[Constructor][Prototype] : null);
|
|
821
847
|
newProto = target[DynProtoBaseProto] || curProto;
|
|
822
|
-
if (!
|
|
848
|
+
if (!objHasOwnProperty(target, DynProtoBaseProto)) {
|
|
823
849
|
delete target[DynProtoCurrent];
|
|
824
850
|
newProto = target[DynProtoBaseProto] = target[DynProtoCurrent] || target[DynProtoBaseProto];
|
|
825
851
|
target[DynProtoCurrent] = curProto;
|
|
@@ -834,7 +860,7 @@
|
|
|
834
860
|
}
|
|
835
861
|
else {
|
|
836
862
|
for (var name_1 in target) {
|
|
837
|
-
if (typeof name_1 === "string" &&
|
|
863
|
+
if (typeof name_1 === "string" && objHasOwnProperty(target, name_1)) {
|
|
838
864
|
props.push(name_1);
|
|
839
865
|
}
|
|
840
866
|
}
|
|
@@ -846,10 +872,10 @@
|
|
|
846
872
|
}
|
|
847
873
|
}
|
|
848
874
|
function _isDynamicCandidate(target, funcName, skipOwn) {
|
|
849
|
-
return (funcName !== Constructor && typeof target[funcName] === strFunction && (skipOwn ||
|
|
875
|
+
return (funcName !== Constructor && typeof target[funcName] === strFunction && (skipOwn || objHasOwnProperty(target, funcName)));
|
|
850
876
|
}
|
|
851
877
|
function _throwTypeError(message) {
|
|
852
|
-
|
|
878
|
+
throwTypeError("DynamicProto: " + message);
|
|
853
879
|
}
|
|
854
880
|
function _getInstanceFuncs(thisTarget) {
|
|
855
881
|
var instFuncs = {};
|
|
@@ -900,14 +926,14 @@
|
|
|
900
926
|
}
|
|
901
927
|
function _getInstFunc(target, funcName, proto, currentDynProtoProxy) {
|
|
902
928
|
var instFunc = null;
|
|
903
|
-
if (target &&
|
|
929
|
+
if (target && objHasOwnProperty(proto, DynClassName)) {
|
|
904
930
|
var instFuncTable = target[DynInstFuncTable] || {};
|
|
905
931
|
instFunc = (instFuncTable[proto[DynClassName]] || {})[funcName];
|
|
906
932
|
if (!instFunc) {
|
|
907
933
|
_throwTypeError("Missing [" + funcName + "] " + strFunction);
|
|
908
934
|
}
|
|
909
935
|
if (!instFunc[DynInstChkTag] && instFuncTable[DynAllowInstChkTag] !== false) {
|
|
910
|
-
var canAddInst = !
|
|
936
|
+
var canAddInst = !objHasOwnProperty(target, funcName);
|
|
911
937
|
var objProto = _getObjProto(target);
|
|
912
938
|
var visited = [];
|
|
913
939
|
while (canAddInst && objProto && !_isObjectArrayOrFunctionPrototype(objProto) && !_hasVisited(visited, objProto)) {
|
|
@@ -961,7 +987,7 @@
|
|
|
961
987
|
if (_isDynamicCandidate(target, name, false) && target[name] !== baseInstFuncs[name]) {
|
|
962
988
|
instFuncs_1[name] = target[name];
|
|
963
989
|
delete target[name];
|
|
964
|
-
if (!
|
|
990
|
+
if (!objHasOwnProperty(proto, name) || (proto[name] && !proto[name][DynProxyTag])) {
|
|
965
991
|
proto[name] = _createDynamicPrototype(proto, name);
|
|
966
992
|
}
|
|
967
993
|
}
|
|
@@ -984,13 +1010,13 @@
|
|
|
984
1010
|
return true;
|
|
985
1011
|
}
|
|
986
1012
|
function _getObjName(target, unknownValue) {
|
|
987
|
-
if (
|
|
1013
|
+
if (objHasOwnProperty(target, Prototype)) {
|
|
988
1014
|
return target.name || unknownValue || UnknownValue;
|
|
989
1015
|
}
|
|
990
1016
|
return (((target || {})[Constructor]) || {}).name || unknownValue || UnknownValue;
|
|
991
1017
|
}
|
|
992
1018
|
function dynamicProto(theClass, target, delegateFunc, options) {
|
|
993
|
-
if (!
|
|
1019
|
+
if (!objHasOwnProperty(theClass, Prototype)) {
|
|
994
1020
|
_throwTypeError("theClass is an invalid class definition.");
|
|
995
1021
|
}
|
|
996
1022
|
var classProto = theClass[Prototype];
|
|
@@ -998,7 +1024,7 @@
|
|
|
998
1024
|
_throwTypeError("[" + _getObjName(theClass) + "] not in hierarchy of [" + _getObjName(target) + "]");
|
|
999
1025
|
}
|
|
1000
1026
|
var className = null;
|
|
1001
|
-
if (
|
|
1027
|
+
if (objHasOwnProperty(classProto, DynClassName)) {
|
|
1002
1028
|
className = classProto[DynClassName];
|
|
1003
1029
|
}
|
|
1004
1030
|
else {
|
|
@@ -1153,15 +1179,17 @@
|
|
|
1153
1179
|
|
|
1154
1180
|
var UInt32Mask = 0x100000000;
|
|
1155
1181
|
var MaxUInt32 = 0xffffffff;
|
|
1182
|
+
var SEED1 = 123456789;
|
|
1183
|
+
var SEED2 = 987654321;
|
|
1156
1184
|
var _mwcSeeded = false;
|
|
1157
|
-
var _mwcW =
|
|
1158
|
-
var _mwcZ =
|
|
1185
|
+
var _mwcW = SEED1;
|
|
1186
|
+
var _mwcZ = SEED2;
|
|
1159
1187
|
function _mwcSeed(seedValue) {
|
|
1160
1188
|
if (seedValue < 0) {
|
|
1161
1189
|
seedValue >>>= 0;
|
|
1162
1190
|
}
|
|
1163
|
-
_mwcW = (
|
|
1164
|
-
_mwcZ = (
|
|
1191
|
+
_mwcW = (SEED1 + seedValue) & MaxUInt32;
|
|
1192
|
+
_mwcZ = (SEED2 - seedValue) & MaxUInt32;
|
|
1165
1193
|
_mwcSeeded = true;
|
|
1166
1194
|
}
|
|
1167
1195
|
function _autoSeedMwc() {
|
|
@@ -1225,7 +1253,7 @@
|
|
|
1225
1253
|
return result;
|
|
1226
1254
|
}
|
|
1227
1255
|
|
|
1228
|
-
var version = "3.0.0-beta.
|
|
1256
|
+
var version = "3.0.0-beta.2304-07";
|
|
1229
1257
|
var instanceName = "." + newId(6);
|
|
1230
1258
|
var _dataUid = 0;
|
|
1231
1259
|
function createUniqueNamespace(name, includeVersion) {
|
|
@@ -1399,7 +1427,7 @@
|
|
|
1399
1427
|
return result;
|
|
1400
1428
|
}
|
|
1401
1429
|
function throwInvalidAccess(message) {
|
|
1402
|
-
throwTypeError
|
|
1430
|
+
throwTypeError("InvalidAccess:" + message);
|
|
1403
1431
|
}
|
|
1404
1432
|
|
|
1405
1433
|
var arrayMethodsToPatch = [
|
|
@@ -1698,8 +1726,19 @@
|
|
|
1698
1726
|
function _watch(configHandler) {
|
|
1699
1727
|
return _createAndUseHandler(theState, configHandler);
|
|
1700
1728
|
}
|
|
1701
|
-
function _block(configHandler) {
|
|
1702
|
-
theState.use(null,
|
|
1729
|
+
function _block(configHandler, allowUpdate) {
|
|
1730
|
+
theState.use(null, function (details) {
|
|
1731
|
+
var prevUpd = theState.upd;
|
|
1732
|
+
try {
|
|
1733
|
+
if (!isUndefined(allowUpdate)) {
|
|
1734
|
+
theState.upd = allowUpdate;
|
|
1735
|
+
}
|
|
1736
|
+
configHandler(details);
|
|
1737
|
+
}
|
|
1738
|
+
finally {
|
|
1739
|
+
theState.upd = prevUpd;
|
|
1740
|
+
}
|
|
1741
|
+
});
|
|
1703
1742
|
}
|
|
1704
1743
|
function _ref(target, name) {
|
|
1705
1744
|
return _setDynamicProperty(theState, target, name, target[name], true)[name];
|
|
@@ -1779,17 +1818,15 @@
|
|
|
1779
1818
|
return ns ? ns["ChromeDbgExt"] : null;
|
|
1780
1819
|
}
|
|
1781
1820
|
|
|
1782
|
-
var _a;
|
|
1783
1821
|
var AiNonUserActionablePrefix = "AI (Internal): ";
|
|
1784
1822
|
var AiUserActionablePrefix = "AI: ";
|
|
1785
1823
|
var AIInternalMessagePrefix = "AITR_";
|
|
1786
|
-
var defaultValues =
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
_a);
|
|
1824
|
+
var defaultValues = {
|
|
1825
|
+
loggingLevelConsole: 0,
|
|
1826
|
+
loggingLevelTelemetry: 1,
|
|
1827
|
+
maxMessageLimit: 25,
|
|
1828
|
+
enableDebug: false
|
|
1829
|
+
};
|
|
1793
1830
|
function _sanitizeDiagnosticText(text) {
|
|
1794
1831
|
if (text) {
|
|
1795
1832
|
return "\"" + text[_DYN_REPLACE ](/\"/g, STR_EMPTY) + "\"";
|
|
@@ -1839,17 +1876,14 @@
|
|
|
1839
1876
|
var _loggingLevelConsole;
|
|
1840
1877
|
var _loggingLevelTelemetry;
|
|
1841
1878
|
var _maxInternalMessageLimit;
|
|
1842
|
-
var
|
|
1879
|
+
var _enableDebug;
|
|
1843
1880
|
dynamicProto(DiagnosticLogger, this, function (_self) {
|
|
1844
1881
|
_setDefaultsFromConfig(config || {});
|
|
1845
1882
|
_self.consoleLoggingLevel = function () { return _loggingLevelConsole; };
|
|
1846
|
-
_self.telemetryLoggingLevel = function () { return _loggingLevelTelemetry; };
|
|
1847
|
-
_self.maxInternalMessageLimit = function () { return _maxInternalMessageLimit; };
|
|
1848
|
-
_self[_DYN_ENABLE_DEBUG_EXCEPTI5 ] = function () { return _enableDebugExceptions; };
|
|
1849
1883
|
_self[_DYN_THROW_INTERNAL ] = function (severity, msgId, msg, properties, isUserAct) {
|
|
1850
1884
|
if (isUserAct === void 0) { isUserAct = false; }
|
|
1851
1885
|
var message = new _InternalLogMessage(msgId, msg, isUserAct, properties);
|
|
1852
|
-
if (
|
|
1886
|
+
if (_enableDebug) {
|
|
1853
1887
|
throw dumpObj(message);
|
|
1854
1888
|
}
|
|
1855
1889
|
else {
|
|
@@ -1925,7 +1959,7 @@
|
|
|
1925
1959
|
_loggingLevelConsole = config[_DYN_LOGGING_LEVEL_CONSOL4 ];
|
|
1926
1960
|
_loggingLevelTelemetry = config.loggingLevelTelemetry;
|
|
1927
1961
|
_maxInternalMessageLimit = config.maxMessageLimit;
|
|
1928
|
-
|
|
1962
|
+
_enableDebug = config.enableDebug;
|
|
1929
1963
|
});
|
|
1930
1964
|
}
|
|
1931
1965
|
function _areInternalMessagesThrottled() {
|
|
@@ -2271,7 +2305,7 @@
|
|
|
2271
2305
|
}
|
|
2272
2306
|
function dsPadNumber(num) {
|
|
2273
2307
|
var s = "00" + num;
|
|
2274
|
-
return
|
|
2308
|
+
return strSubstr(s, s[_DYN_LENGTH ] - 3);
|
|
2275
2309
|
}
|
|
2276
2310
|
|
|
2277
2311
|
var _document = getDocument() || {};
|
|
@@ -3933,7 +3967,5 @@
|
|
|
3933
3967
|
exports.utlSetLocalStorage = utlSetLocalStorage;
|
|
3934
3968
|
exports.utlSetSessionStorage = utlSetSessionStorage;
|
|
3935
3969
|
|
|
3936
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
3937
|
-
|
|
3938
3970
|
}));
|
|
3939
3971
|
//# sourceMappingURL=applicationinsights-common.js.map
|