UNPKG

@azure/msal-common

Version:
60 lines (57 loc) 1.46 kB
/*! @azure/msal-common v16.6.2 2026-05-19 */ 'use strict'; import { PerformanceEventStatus } from './PerformanceEvent.mjs'; /* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ class StubPerformanceClient { generateId() { return "callback-id"; } startMeasurement(measureName, correlationId) { return { end: () => null, discard: () => { }, add: () => { }, increment: () => { }, event: { eventId: this.generateId(), status: PerformanceEventStatus.InProgress, authority: "", libraryName: "", libraryVersion: "", clientId: "", name: measureName, startTimeMs: Date.now(), correlationId: correlationId || "", }, }; } endMeasurement() { return null; } discardMeasurements() { return; } removePerformanceCallback() { return true; } addPerformanceCallback() { return ""; } emitEvents() { return; } addFields() { return; } incrementFields() { return; } cacheEventByCorrelationId() { return; } } export { StubPerformanceClient }; //# sourceMappingURL=StubPerformanceClient.mjs.map