@allurereport/core-api 3.0.0-beta.3 → 3.0.0-beta.5

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/dist/index.d.ts CHANGED
@@ -1,14 +1,14 @@
1
- export * from "./aggregate.js";
1
+ export type * from "./aggregate.js";
2
2
  export * from "./constants.js";
3
- export * from "./environment.js";
4
- export * from "./history.js";
5
- export * from "./known.js";
6
- export * from "./metadata.js";
7
- export * from "./model.js";
8
- export * from "./testCase.js";
9
- export * from "./testPlan.js";
3
+ export type * from "./environment.js";
4
+ export type * from "./history.js";
5
+ export type * from "./known.js";
6
+ export type * from "./metadata.js";
7
+ export type * from "./model.js";
8
+ export type * from "./testCase.js";
9
+ export type * from "./testPlan.js";
10
10
  export * from "./utils/step.js";
11
- export * from "./utils/tree.js";
11
+ export type * from "./utils/tree.js";
12
12
  export * from "./utils/time.js";
13
13
  export * from "./utils/comparator.js";
14
14
  export * from "./utils/predicate.js";
package/dist/index.js CHANGED
@@ -1,14 +1,5 @@
1
- export * from "./aggregate.js";
2
1
  export * from "./constants.js";
3
- export * from "./environment.js";
4
- export * from "./history.js";
5
- export * from "./known.js";
6
- export * from "./metadata.js";
7
- export * from "./model.js";
8
- export * from "./testCase.js";
9
- export * from "./testPlan.js";
10
2
  export * from "./utils/step.js";
11
- export * from "./utils/tree.js";
12
3
  export * from "./utils/time.js";
13
4
  export * from "./utils/comparator.js";
14
5
  export * from "./utils/predicate.js";
@@ -1,4 +1,4 @@
1
- import { Statistic } from "../aggregate.js";
1
+ import type { Statistic } from "../aggregate.js";
2
2
  import type { TestStatus } from "../model.js";
3
3
  export type SortFunction<T> = () => Comparator<T>;
4
4
  export type Comparator<T> = (a: T, b: T) => number;
@@ -1,3 +1,3 @@
1
- import { AttachmentTestStepResult, DefaultTestStepResult, TestStepResult } from "../model.js";
1
+ import type { AttachmentTestStepResult, DefaultTestStepResult, TestStepResult } from "../model.js";
2
2
  export declare const isStep: (result: TestStepResult) => result is DefaultTestStepResult;
3
3
  export declare const isAttachment: (result: TestStepResult) => result is AttachmentTestStepResult;
@@ -1,5 +1,5 @@
1
- import { Statistic } from "../aggregate.js";
2
- import { TestResult } from "../model.js";
1
+ import type { Statistic } from "../aggregate.js";
2
+ import type { TestResult } from "../model.js";
3
3
  type TreeNode<T> = Omit<T, "nodeId"> & {
4
4
  nodeId: string;
5
5
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allurereport/core-api",
3
- "version": "3.0.0-beta.3",
3
+ "version": "3.0.0-beta.5",
4
4
  "description": "Allure Core API",
5
5
  "keywords": [
6
6
  "allure"
@@ -21,6 +21,8 @@
21
21
  "scripts": {
22
22
  "build": "run clean && tsc --project ./tsconfig.json",
23
23
  "clean": "rimraf ./dist",
24
+ "eslint": "eslint ./src/**/*.{js,jsx,ts,tsx}",
25
+ "eslint:format": "eslint --fix ./src/**/*.{js,jsx,ts,tsx}",
24
26
  "test": "rimraf ./out && vitest run"
25
27
  },
26
28
  "devDependencies": {