@allurereport/reader-api 3.3.1 → 3.4.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/dist/resultFile.d.ts +2 -2
- package/dist/resultFile.js +2 -2
- package/dist/utils.js +1 -1
- package/package.json +13 -24
package/dist/resultFile.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { ResultFile } from "@allurereport/plugin-api";
|
|
2
1
|
import { ReadStream } from "node:fs";
|
|
3
|
-
import "node:fs/promises";
|
|
4
2
|
import type { Readable } from "node:stream";
|
|
3
|
+
import "node:fs/promises";
|
|
4
|
+
import type { ResultFile } from "@allurereport/plugin-api";
|
|
5
5
|
export declare abstract class BaseResultFile implements ResultFile {
|
|
6
6
|
#private;
|
|
7
7
|
fileName: string;
|
package/dist/resultFile.js
CHANGED
|
@@ -4,11 +4,11 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
4
4
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
5
5
|
};
|
|
6
6
|
var _BaseResultFile_instances, _BaseResultFile_detectContentType;
|
|
7
|
-
import { lookup } from "mime-types";
|
|
8
7
|
import { ReadStream, closeSync, createReadStream, createWriteStream, existsSync, openSync, readSync, statSync, } from "node:fs";
|
|
9
|
-
import "node:fs/promises";
|
|
10
8
|
import { basename } from "node:path";
|
|
9
|
+
import "node:fs/promises";
|
|
11
10
|
import { pipeline } from "node:stream/promises";
|
|
11
|
+
import { lookup } from "mime-types";
|
|
12
12
|
import { detectContentType } from "./detect.js";
|
|
13
13
|
import { extension } from "./utils.js";
|
|
14
14
|
export class BaseResultFile {
|
package/dist/utils.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { extension as extensionFromContentType, lookup } from "mime-types";
|
|
2
1
|
import { extname } from "node:path";
|
|
2
|
+
import { extension as extensionFromContentType, lookup } from "mime-types";
|
|
3
3
|
export const extension = (fileName, contentType) => {
|
|
4
4
|
const ext = extname(fileName);
|
|
5
5
|
if (ext !== "") {
|
package/package.json
CHANGED
|
@@ -1,52 +1,41 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@allurereport/reader-api",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.4.0",
|
|
4
4
|
"description": "Allure Reader API",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"allure",
|
|
7
7
|
"testing"
|
|
8
8
|
],
|
|
9
|
-
"repository": "https://github.com/allure-framework/allure3",
|
|
10
9
|
"license": "Apache-2.0",
|
|
11
10
|
"author": "Qameta Software",
|
|
11
|
+
"repository": "https://github.com/allure-framework/allure3",
|
|
12
|
+
"files": [
|
|
13
|
+
"dist"
|
|
14
|
+
],
|
|
12
15
|
"type": "module",
|
|
13
|
-
"exports": {
|
|
14
|
-
".": "./dist/index.js"
|
|
15
|
-
},
|
|
16
16
|
"main": "./dist/index.js",
|
|
17
17
|
"module": "./dist/index.js",
|
|
18
18
|
"types": "./dist/index.d.ts",
|
|
19
|
-
"
|
|
20
|
-
"dist"
|
|
21
|
-
|
|
19
|
+
"exports": {
|
|
20
|
+
".": "./dist/index.js"
|
|
21
|
+
},
|
|
22
22
|
"scripts": {
|
|
23
23
|
"build": "run clean && tsc --project ./tsconfig.json",
|
|
24
24
|
"clean": "rimraf ./dist",
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"
|
|
25
|
+
"test": "rimraf ./out && vitest run",
|
|
26
|
+
"lint": "oxlint --import-plugin src test features stories",
|
|
27
|
+
"lint:fix": "oxlint --import-plugin --fix src test features stories"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@allurereport/core-api": "3.
|
|
31
|
-
"@allurereport/plugin-api": "3.
|
|
30
|
+
"@allurereport/core-api": "3.4.0",
|
|
31
|
+
"@allurereport/plugin-api": "3.4.0",
|
|
32
32
|
"mime-types": "^2.1.35"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"@stylistic/eslint-plugin": "^2.6.1",
|
|
36
|
-
"@types/eslint": "^8.56.11",
|
|
37
35
|
"@types/mime-types": "^2.1.4",
|
|
38
36
|
"@types/node": "^20.17.9",
|
|
39
|
-
"@typescript-eslint/eslint-plugin": "^8.0.0",
|
|
40
|
-
"@typescript-eslint/parser": "^8.0.0",
|
|
41
37
|
"@vitest/runner": "^2.1.9",
|
|
42
38
|
"allure-vitest": "^3.3.3",
|
|
43
|
-
"eslint": "^8.57.0",
|
|
44
|
-
"eslint-config-prettier": "^9.1.0",
|
|
45
|
-
"eslint-plugin-import": "^2.29.1",
|
|
46
|
-
"eslint-plugin-jsdoc": "^50.0.0",
|
|
47
|
-
"eslint-plugin-n": "^17.10.1",
|
|
48
|
-
"eslint-plugin-no-null": "^1.0.2",
|
|
49
|
-
"eslint-plugin-prefer-arrow": "^1.2.3",
|
|
50
39
|
"rimraf": "^6.0.1",
|
|
51
40
|
"ts-node": "^10.9.2",
|
|
52
41
|
"tslib": "^2.7.0",
|