html-reporter 11.9.3 → 11.9.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/build/lib/common-utils.d.ts +2 -1
- package/build/lib/common-utils.js +1 -1
- package/build/lib/common-utils.js.map +1 -1
- package/build/lib/db-utils/common.d.ts +10 -5
- package/build/lib/db-utils/common.js +28 -2
- package/build/lib/db-utils/common.js.map +1 -1
- package/build/lib/db-utils/server.d.ts +11 -2
- package/build/lib/db-utils/server.js +37 -12
- package/build/lib/db-utils/server.js.map +1 -1
- package/build/lib/sdk.d.ts +12 -0
- package/build/lib/sdk.js +109 -0
- package/build/lib/sdk.js.map +1 -0
- package/build/lib/static/134.min.js +1 -1
- package/build/lib/static/182.min.js +1 -1
- package/build/lib/static/580.min.js +1 -1
- package/build/lib/static/64.min.js +1 -0
- package/build/lib/static/gui.html +1 -1
- package/build/lib/static/gui.min.js +1 -1
- package/build/lib/static/index.html +1 -1
- package/build/lib/static/new-ui-gui.html +1 -1
- package/build/lib/static/new-ui-report.html +1 -1
- package/build/lib/static/newGui.min.js +1 -1
- package/build/lib/static/newReport.min.js +1 -1
- package/build/lib/static/report.min.js +1 -1
- package/build/package.json +5 -1
- package/package.json +5 -1
- package/plugins-sdk/build-ui/lib/common-utils.d.ts +2 -1
- package/plugins-sdk/build-ui/lib/db-utils/common.d.ts +10 -5
- package/plugins-sdk/build-ui/lib/db-utils/server.d.ts +11 -2
- package/plugins-sdk/build-ui/lib/static/new-ui/components/MetaInfo/index.d.ts +1 -1
- package/build/lib/static/794.min.js +0 -1
- /package/build/lib/static/{794.min.css → 64.min.css} +0 -0
|
@@ -40,7 +40,8 @@ export declare const isBase64Image: (image: ImageFile | ImageBuffer | ImageBase6
|
|
|
40
40
|
export declare const isUrl: (str: string) => boolean;
|
|
41
41
|
export declare const fetchFile: <T = unknown>(url: string, options?: AxiosRequestConfig) => Promise<{
|
|
42
42
|
data: T | null;
|
|
43
|
-
status: number;
|
|
43
|
+
status: number | string;
|
|
44
|
+
error?: unknown;
|
|
44
45
|
}>;
|
|
45
46
|
export declare const normalizeUrls: (urls: string[] | undefined, baseUrl: string) => string[];
|
|
46
47
|
export declare const isCheckboxChecked: (status: number) => boolean;
|
|
@@ -17,16 +17,20 @@ export interface DbDetails {
|
|
|
17
17
|
status: string;
|
|
18
18
|
success: boolean;
|
|
19
19
|
}
|
|
20
|
+
type DbJsonLoadResult = {
|
|
21
|
+
data: DbUrlsJsonData | null;
|
|
22
|
+
status?: string;
|
|
23
|
+
error?: unknown;
|
|
24
|
+
};
|
|
20
25
|
export interface HandleDatabasesOptions {
|
|
21
|
-
pluginConfig: ReporterConfig
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
status?: string;
|
|
25
|
-
}>;
|
|
26
|
+
pluginConfig: Pick<ReporterConfig, 'path'>;
|
|
27
|
+
strict?: boolean;
|
|
28
|
+
loadDbJsonUrl: (dbJsonUrl: string) => Promise<DbJsonLoadResult>;
|
|
26
29
|
formatData?: (dbJsonUrl: string, status?: string) => DbLoadResult;
|
|
27
30
|
prepareUrls: (dbUrls: string[], baseUrls: string) => string[];
|
|
28
31
|
loadDbUrl: (dbUrl: string, opts: HandleDatabasesOptions) => Promise<DbLoadResult | string>;
|
|
29
32
|
}
|
|
33
|
+
export declare const makeFileDownloadErrorMessage: (fileUrl: string, error: unknown, requestStatus?: string) => string;
|
|
30
34
|
export declare const handleDatabases: (dbJsonUrls: string[], opts: HandleDatabasesOptions) => Promise<(string | DbLoadResult)[]>;
|
|
31
35
|
export declare const mergeTables: ({ db, dbPaths, getExistingTables }: {
|
|
32
36
|
db: SqlJsDatabase;
|
|
@@ -37,3 +41,4 @@ export declare function createTableQuery(tableName: string, columns: ReadonlyDee
|
|
|
37
41
|
name: string;
|
|
38
42
|
type: string;
|
|
39
43
|
}[]>): string;
|
|
44
|
+
export {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { Database } from '@gemini-testing/sql.js';
|
|
2
|
-
import { DbLoadResult
|
|
2
|
+
import { DbLoadResult } from './common';
|
|
3
|
+
import { ReporterConfig } from '../types';
|
|
3
4
|
import { Tree } from '../tests-tree-builder/base';
|
|
4
5
|
import { ReporterTestResult } from '../adapters/test-result';
|
|
5
6
|
import { SqliteClient } from '../sqlite-client';
|
|
@@ -11,7 +12,15 @@ export declare const makeSqlDatabaseFromFile: (dbPath: string | null) => Promise
|
|
|
11
12
|
filename: string;
|
|
12
13
|
}>;
|
|
13
14
|
export declare const prepareUrls: (urls: string[], baseUrl: string) => string[];
|
|
14
|
-
export
|
|
15
|
+
export interface DownloadDatabasesOptions {
|
|
16
|
+
pluginConfig: Pick<ReporterConfig, 'path'>;
|
|
17
|
+
strict?: boolean;
|
|
18
|
+
}
|
|
19
|
+
export declare const resolveDatabaseUrlsJsonPath: (reportPathOrUrl: string) => Promise<string>;
|
|
20
|
+
export declare function downloadDatabases(dbJsonUrls: string[], opts: DownloadDatabasesOptions): Promise<(string | DbLoadResult)[]>;
|
|
15
21
|
export declare function mergeDatabases(srcDbPaths: string[], reportPath: string): Promise<void>;
|
|
16
22
|
export declare function getTestsTreeFromDatabase(dbPath: string, baseHost: string): Promise<Tree>;
|
|
23
|
+
export declare function downloadSingleDatabase(dbUrl: string, { pluginConfig }: {
|
|
24
|
+
pluginConfig: Pick<ReporterConfig, 'path'>;
|
|
25
|
+
}): Promise<string>;
|
|
17
26
|
export declare const getTestFromDb: <T = unknown>(dbClient: SqliteClient, testResult: ReporterTestResult) => T | undefined;
|
|
@@ -14,5 +14,5 @@ interface MetaInfoInternalProps extends MetaInfoProps {
|
|
|
14
14
|
baseHost: string;
|
|
15
15
|
}
|
|
16
16
|
declare function MetaInfoInternal(props: MetaInfoInternalProps): ReactNode;
|
|
17
|
-
export declare const MetaInfo: import("react-redux").ConnectedComponent<typeof MetaInfoInternal, import("react-redux").Omit<MetaInfoInternalProps, "
|
|
17
|
+
export declare const MetaInfo: import("react-redux").ConnectedComponent<typeof MetaInfoInternal, import("react-redux").Omit<MetaInfoInternalProps, "baseHost" | "metaInfoBaseUrls" | "result" | "apiValues" | "testName"> & MetaInfoProps>;
|
|
18
18
|
export {};
|