@statoscope/stats-extension-custom-reports
Advanced tools
Comparing version 5.28.0 to 5.28.1
@@ -5,3 +5,3 @@ import { APIFactory } from '@statoscope/extensions'; | ||
import { Format } from './generator'; | ||
export declare type API = { | ||
export type API = { | ||
getReports: (compilationId?: string | null, type?: RelationItem['type'] | null, relatedId?: string | number) => Report<unknown, unknown>[]; | ||
@@ -8,0 +8,0 @@ getById(id: string): Report<unknown, unknown> | null; |
import { Extension, ExtensionDescriptor } from '@statoscope/stats/spec/extension'; | ||
import { Report } from '@statoscope/types/types/custom-report'; | ||
export declare type Format = Extension<Payload>; | ||
export declare type Compilation = { | ||
export type Format = Extension<Payload>; | ||
export type Compilation = { | ||
id: string | null; | ||
reports: Array<Report<unknown, unknown>>; | ||
}; | ||
export declare type Payload = { | ||
export type Payload = { | ||
compilations: Array<Compilation>; | ||
@@ -10,0 +10,0 @@ }; |
@@ -24,2 +24,3 @@ "use strict"; | ||
this.resolveCompilation = (0, entity_resolver_1.default)(this.payload.compilations, (item) => item.id, null, false); | ||
this.descriptor.adapter = this.adapter; | ||
} | ||
@@ -26,0 +27,0 @@ handleReport(report) { |
{ | ||
"name": "@statoscope/stats-extension-custom-reports", | ||
"version": "5.28.0", | ||
"version": "5.28.1", | ||
"description": "Statoscope extension to store custom reports in stats", | ||
"main": "./dist/index.js", | ||
"scripts": { | ||
"build": "../../node_modules/.bin/tsc", | ||
"prepublishOnly": "npm run build" | ||
"build": "../../node_modules/.bin/tsc" | ||
}, | ||
@@ -21,8 +20,8 @@ "repository": "https://github.com/statoscope/statoscope.git", | ||
"dependencies": { | ||
"@statoscope/extensions": "5.14.1", | ||
"@statoscope/helpers": "5.28.0", | ||
"@statoscope/stats": "5.14.1", | ||
"@statoscope/types": "5.27.0" | ||
"@statoscope/extensions": "5.28.1", | ||
"@statoscope/helpers": "5.28.1", | ||
"@statoscope/stats": "5.28.1", | ||
"@statoscope/types": "5.28.1" | ||
}, | ||
"gitHead": "8593d1728fba7201855ba496eb5c01d28333c60b" | ||
"gitHead": "a89f68a6251a1c914791e22b643dd94ca2a70253" | ||
} |
155
10202
+ Added@statoscope/extensions@5.28.1(transitive)
+ Added@statoscope/helpers@5.28.1(transitive)
+ Added@statoscope/stats@5.28.1(transitive)
+ Added@statoscope/types@5.28.1(transitive)
- Removed@statoscope/extensions@5.14.1(transitive)
- Removed@statoscope/helpers@5.28.0(transitive)
- Removed@statoscope/stats@5.14.1(transitive)
- Removed@statoscope/types@5.27.0(transitive)
Updated@statoscope/helpers@5.28.1
Updated@statoscope/stats@5.28.1
Updated@statoscope/types@5.28.1