@moonrepo/report 0.0.7 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/action.d.ts +1 -1
- package/cjs/action.d.ts.map +1 -1
- package/cjs/report.d.ts +1 -1
- package/cjs/report.d.ts.map +1 -1
- package/cjs/time.d.ts +1 -1
- package/cjs/time.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/action.ts +1 -1
- package/src/report.ts +1 -1
- package/src/time.ts +1 -1
package/cjs/action.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Action, ActionStatus } from '@moonrepo/types';
|
|
1
|
+
import type { Action, ActionStatus } from '@moonrepo/types';
|
|
2
2
|
export declare function getIconForStatus(status: ActionStatus): string;
|
|
3
3
|
export declare function hasFailed(status: ActionStatus): boolean;
|
|
4
4
|
export declare function hasPassed(status: ActionStatus): boolean;
|
package/cjs/action.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action.d.ts","sourceRoot":"","sources":["../src/action.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"action.d.ts","sourceRoot":"","sources":["../src/action.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAG5D,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,YAAY,GAAG,MAAM,CAqB7D;AAED,wBAAgB,SAAS,CAAC,MAAM,EAAE,YAAY,GAAG,OAAO,CAEvD;AAED,wBAAgB,SAAS,CAAC,MAAM,EAAE,YAAY,GAAG,OAAO,CAEvD;AAED,wBAAgB,OAAO,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAW/C;AAED,wBAAgB,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,GAAG,OAAO,CASrE"}
|
package/cjs/report.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ActionStatus, Duration, RunReport } from '@moonrepo/types';
|
|
1
|
+
import type { ActionStatus, Duration, RunReport } from '@moonrepo/types';
|
|
2
2
|
export declare function sortReport(report: RunReport, sortBy: 'label' | 'time', sortDir: 'asc' | 'desc'): void;
|
|
3
3
|
export interface PreparedAction {
|
|
4
4
|
comments: string[];
|
package/cjs/report.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"report.d.ts","sourceRoot":"","sources":["../src/report.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"report.d.ts","sourceRoot":"","sources":["../src/report.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAIzE,wBAAgB,UAAU,CAAC,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,OAAO,GAAG,MAAM,EAAE,OAAO,EAAE,KAAK,GAAG,MAAM,QAuB9F;AAED,MAAM,WAAW,cAAc;IAC9B,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,QAAQ,EAAE,QAAQ,GAAG,IAAI,CAAC;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,YAAY,CAAC;IACrB,IAAI,EAAE,MAAM,CAAC;CACb;AAED,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,GAAG,cAAc,EAAE,CAyB/F"}
|
package/cjs/time.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Duration } from '@moonrepo/types';
|
|
1
|
+
import type { Duration } from '@moonrepo/types';
|
|
2
2
|
export declare function getDurationInMillis(duration: Duration): number;
|
|
3
3
|
export declare function formatTime(mins: number, secs: number, millis: number): string;
|
|
4
4
|
export declare function formatDuration(duration: Duration | null): string;
|
package/cjs/time.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"time.d.ts","sourceRoot":"","sources":["../src/time.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"time.d.ts","sourceRoot":"","sources":["../src/time.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAEhD,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,QAAQ,GAAG,MAAM,CAE9D;AAED,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAsC7E;AAED,wBAAgB,cAAc,CAAC,QAAQ,EAAE,QAAQ,GAAG,IAAI,GAAG,MAAM,CAmBhE"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moonrepo/report",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"description": "Utilities working with moon run reports.",
|
|
6
6
|
"keywords": [
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"bundle": true
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@moonrepo/types": "^0.0
|
|
31
|
+
"@moonrepo/types": "^1.0.0"
|
|
32
32
|
},
|
|
33
33
|
"engines": {
|
|
34
34
|
"node": ">=14.15.0",
|
package/src/action.ts
CHANGED
package/src/report.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ActionStatus, Duration, RunReport } from '@moonrepo/types';
|
|
1
|
+
import type { ActionStatus, Duration, RunReport } from '@moonrepo/types';
|
|
2
2
|
import { getIconForStatus, isFlaky, isSlow } from './action';
|
|
3
3
|
import { formatDuration, getDurationInMillis } from './time';
|
|
4
4
|
|
package/src/time.ts
CHANGED