UNPKG

@alithanar/react-automation-profiler

Version:

Automated React profiling and data visualization using React's Profiler API, Puppeteer, and D3.

24 lines 665 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.AutomationResultsStorage = void 0; class AutomationResultsStorage { constructor() { this.storage = {}; } appendResult(flowKey, result) { if (!this.storage[flowKey]) { this.storage[flowKey] = [result]; } else { this.storage[flowKey].push(result); } } removeResultsByKey(flowKey) { delete this.storage[flowKey]; } getAllResults() { return this.storage; } } exports.AutomationResultsStorage = AutomationResultsStorage; //# sourceMappingURL=AutomationResultsStorage.js.map