@allurereport/reader-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 +2 -2
- package/dist/index.js +0 -2
- package/dist/reader.d.ts +2 -2
- package/dist/resultFile.d.ts +2 -2
- package/package.json +5 -3
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from "./model.js";
|
|
2
|
-
export * from "./reader.js";
|
|
1
|
+
export type * from "./model.js";
|
|
2
|
+
export type * from "./reader.js";
|
|
3
3
|
export * from "./resultFile.js";
|
package/dist/index.js
CHANGED
package/dist/reader.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ResultFile } from "@allurereport/plugin-api";
|
|
2
|
-
import { RawFixtureResult, RawMetadata, RawTestResult } from "./model.js";
|
|
1
|
+
import type { ResultFile } from "@allurereport/plugin-api";
|
|
2
|
+
import type { RawFixtureResult, RawMetadata, RawTestResult } from "./model.js";
|
|
3
3
|
export interface ReaderContext {
|
|
4
4
|
readerId: string;
|
|
5
5
|
metadata?: RawMetadata;
|
package/dist/resultFile.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ResultFile } from "@allurereport/plugin-api";
|
|
2
2
|
import { ReadStream } from "node:fs";
|
|
3
3
|
import "node:fs/promises";
|
|
4
|
-
import { Readable } from "node:stream";
|
|
4
|
+
import type { Readable } from "node:stream";
|
|
5
5
|
export declare abstract class BaseResultFile implements ResultFile {
|
|
6
6
|
fileName: string;
|
|
7
7
|
protected constructor(fileName: string);
|
|
@@ -27,6 +27,6 @@ export declare class PathResultFile extends BaseResultFile {
|
|
|
27
27
|
protected getContent(): ReadStream | undefined;
|
|
28
28
|
getContentLength(): number | undefined;
|
|
29
29
|
}
|
|
30
|
-
export declare const readSteamToJson: <T
|
|
30
|
+
export declare const readSteamToJson: <T>(stream: Readable) => Promise<T | undefined>;
|
|
31
31
|
export declare const readStreamToString: (stream: Readable) => Promise<string>;
|
|
32
32
|
export declare const readStreamToBuffer: (stream: Readable) => Promise<Buffer>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@allurereport/reader-api",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.4",
|
|
4
4
|
"description": "Allure Reader API",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"allure",
|
|
@@ -22,11 +22,13 @@
|
|
|
22
22
|
"scripts": {
|
|
23
23
|
"build": "run clean && tsc --project ./tsconfig.json",
|
|
24
24
|
"clean": "rimraf ./dist",
|
|
25
|
+
"eslint": "eslint ./src/**/*.{js,jsx,ts,tsx}",
|
|
26
|
+
"eslint:format": "eslint --fix ./src/**/*.{js,jsx,ts,tsx}",
|
|
25
27
|
"test": "rimraf ./out && vitest run"
|
|
26
28
|
},
|
|
27
29
|
"dependencies": {
|
|
28
|
-
"@allurereport/core-api": "3.0.0-beta.
|
|
29
|
-
"@allurereport/plugin-api": "3.0.0-beta.
|
|
30
|
+
"@allurereport/core-api": "3.0.0-beta.4",
|
|
31
|
+
"@allurereport/plugin-api": "3.0.0-beta.4",
|
|
30
32
|
"mime-types": "^2.1.35"
|
|
31
33
|
},
|
|
32
34
|
"devDependencies": {
|