@statoscope/stats-extension-custom-reports
Advanced tools
@@ -17,4 +17,4 @@ import { Extension, ExtensionDescriptor } from '@statoscope/stats/spec/extension'; | ||
| constructor(adapter?: ExtensionDescriptor | undefined); | ||
| handleReport(report: Report<unknown, unknown>): void; | ||
| handleReport(report: Report<unknown, unknown>): boolean; | ||
| get(): Format; | ||
| } |
@@ -36,5 +36,6 @@ "use strict"; | ||
| if (compilation.reports.find((r) => r.id === report.id)) { | ||
| throw new Error(`A report with ${report.id} already exits`); | ||
| return false; | ||
| } | ||
| compilation.reports.push(report); | ||
| return true; | ||
| } | ||
@@ -41,0 +42,0 @@ get() { |
+2
-2
| { | ||
| "name": "@statoscope/stats-extension-custom-reports", | ||
| "version": "5.13.1", | ||
| "version": "5.14.0", | ||
| "description": "Statoscope extension to store custom reports in stats", | ||
@@ -26,3 +26,3 @@ "main": "./dist/index.js", | ||
| }, | ||
| "gitHead": "111ba2744aab448043deafa2dc7763844d1518cd" | ||
| "gitHead": "e61731cc7d177d2e58cfe0d300c41b6bc8dd16f3" | ||
| } |
154
0.65%10150
-0.23%