@allurereport/plugin-api 3.0.0-beta.3 → 3.0.0-beta.4

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,7 +1,7 @@
1
1
  export * from "./config.js";
2
- export * from "./plugin.js";
3
- export * from "./qualityGate.js";
4
- export * from "./store.js";
5
- export * from "./resultFile.js";
2
+ export type * from "./plugin.js";
3
+ export type * from "./qualityGate.js";
4
+ export type * from "./store.js";
5
+ export type * from "./resultFile.js";
6
6
  export * from "./utils/misc.js";
7
7
  export * from "./utils/tree.js";
package/dist/index.js CHANGED
@@ -1,7 +1,3 @@
1
1
  export * from "./config.js";
2
- export * from "./plugin.js";
3
- export * from "./qualityGate.js";
4
- export * from "./store.js";
5
- export * from "./resultFile.js";
6
2
  export * from "./utils/misc.js";
7
3
  export * from "./utils/tree.js";
package/dist/plugin.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { AllureStore } from "./store.js";
1
+ import type { AllureStore } from "./store.js";
2
2
  export interface PluginDescriptor {
3
3
  import?: string;
4
4
  enabled?: boolean;
@@ -1,5 +1,4 @@
1
- import "node:fs/promises";
2
- import { Readable } from "node:stream";
1
+ import type { Readable } from "node:stream";
3
2
  export interface ResultFile {
4
3
  readContent: <T>(transform: (stream: Readable) => Promise<T | undefined>) => Promise<T | undefined>;
5
4
  getOriginalFileName: () => string;
@@ -1 +1 @@
1
- import "node:fs/promises";
1
+ export {};
package/dist/store.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import type { AttachmentLink, HistoryDataPoint, HistoryTestResult, KnownTestFailure, Statistic, TestCase, TestFixtureResult, TestResult } from "@allurereport/core-api";
2
- import { ResultFile } from "./resultFile.js";
2
+ import type { ResultFile } from "./resultFile.js";
3
3
  export interface AllureStore {
4
4
  allTestCases: () => Promise<TestCase[]>;
5
5
  allTestResults: (options?: {
@@ -62,7 +62,7 @@ const byLabels = (item, labelNames) => {
62
62
  return labelNames.map((labelName) => item.labels.filter((label) => labelName === label.name).map((label) => label.value ?? "__unknown") ?? []);
63
63
  };
64
64
  export const createTreeByLabels = (data, labelNames) => {
65
- return createTree(data, (item) => byLabels(item, labelNames), ({ id, name, status, duration, flaky, retries }) => ({
65
+ return createTree(data, (item) => byLabels(item, labelNames), ({ id, name, status, duration, flaky }) => ({
66
66
  nodeId: id,
67
67
  name,
68
68
  status,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allurereport/plugin-api",
3
- "version": "3.0.0-beta.3",
3
+ "version": "3.0.0-beta.4",
4
4
  "description": "Allure Plugin API",
5
5
  "keywords": [
6
6
  "allure"
@@ -21,10 +21,12 @@
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
  "dependencies": {
27
- "@allurereport/core-api": "3.0.0-beta.3"
29
+ "@allurereport/core-api": "3.0.0-beta.4"
28
30
  },
29
31
  "devDependencies": {
30
32
  "@stylistic/eslint-plugin": "^2.6.1",