@stryker-mutator/dashboard-badge-api 0.15.2-pr-1092.0 → 0.15.2-pr-1090.1
Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,5 @@
|
|
1
|
-
import { MutationTestingReportMapper } from '@stryker-mutator/dashboard-data-access';
|
2
|
-
import { Shield } from './Shield.js';
|
1
|
+
import type { MutationTestingReportMapper } from '@stryker-mutator/dashboard-data-access';
|
2
|
+
import type { Shield } from './Shield.js';
|
3
3
|
export declare class ShieldMapper {
|
4
4
|
private readonly reportMapper;
|
5
5
|
constructor(reportMapper: MutationTestingReportMapper);
|
package/dist/badge/handler.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { HttpHandler } from '@azure/functions';
|
2
|
-
import { ShieldMapper } from './ShieldMapper.js';
|
1
|
+
import type { HttpHandler } from '@azure/functions';
|
2
|
+
import type { ShieldMapper } from './ShieldMapper.js';
|
3
3
|
export declare function handler(mapper: ShieldMapper): HttpHandler;
|
4
4
|
//# sourceMappingURL=handler.d.ts.map
|
package/dist/badge/handler.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
+
import { InvalidSlugError, Slug } from '@stryker-mutator/dashboard-common';
|
1
2
|
import fs from 'fs';
|
2
|
-
import { Slug, InvalidSlugError } from '@stryker-mutator/dashboard-common';
|
3
3
|
const headers = {
|
4
4
|
['X-Badge-Api-Version']: JSON.parse(fs.readFileSync(new URL('../../package.json', import.meta.url), 'utf-8')).version,
|
5
5
|
};
|
package/dist/badge/index.mjs
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
import 'source-map-support/register.js';
|
2
2
|
import { app } from '@azure/functions';
|
3
|
-
import { ShieldMapper } from './ShieldMapper.js';
|
4
3
|
import { createMutationTestingReportMapper } from '@stryker-mutator/dashboard-data-access';
|
5
4
|
import { handler } from './handler.js';
|
5
|
+
import { ShieldMapper } from './ShieldMapper.js';
|
6
6
|
const httpTrigger = handler(new ShieldMapper(createMutationTestingReportMapper()));
|
7
7
|
app.http('badge', {
|
8
8
|
methods: ['GET'],
|
package/package.json
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
"name": "@stryker-mutator/dashboard-badge-api",
|
3
3
|
"description": "The stryker dashboard badge-api serverless app",
|
4
4
|
"type": "module",
|
5
|
-
"version": "0.15.2-pr-
|
5
|
+
"version": "0.15.2-pr-1090.1",
|
6
6
|
"main": "dist/badge/index.mjs",
|
7
7
|
"publishConfig": {
|
8
8
|
"access": "public"
|
@@ -21,12 +21,12 @@
|
|
21
21
|
},
|
22
22
|
"dependencies": {
|
23
23
|
"@azure/functions": "4.6.0",
|
24
|
-
"@stryker-mutator/dashboard-common": "0.15.2-pr-
|
25
|
-
"@stryker-mutator/dashboard-data-access": "0.15.2-pr-
|
24
|
+
"@stryker-mutator/dashboard-common": "0.15.2-pr-1090.1",
|
25
|
+
"@stryker-mutator/dashboard-data-access": "0.15.2-pr-1090.1",
|
26
26
|
"source-map-support": "0.5.21"
|
27
27
|
},
|
28
28
|
"devDependencies": {
|
29
29
|
"azure-functions-core-tools": "4.0.6610"
|
30
30
|
},
|
31
|
-
"gitHead": "
|
31
|
+
"gitHead": "26c4c8349b9bf0b31d01bcf1318130446763e31f"
|
32
32
|
}
|