@argos-ci/util 4.2.0 → 4.2.1
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/README.md +1 -1
- package/dist/index.d.mts +8 -8
- package/package.json +2 -2
package/README.md
CHANGED
package/dist/index.d.mts
CHANGED
|
@@ -3,40 +3,40 @@ import { a as nextCaptureIndex, c as ScreenshotMetadata, i as getTestRunKey, l a
|
|
|
3
3
|
/**
|
|
4
4
|
* Create a directory if it doesn't exist.
|
|
5
5
|
*/
|
|
6
|
-
declare function createDirectory(pathname: string): Promise<void>;
|
|
6
|
+
export declare function createDirectory(pathname: string): Promise<void>;
|
|
7
7
|
/**
|
|
8
8
|
* Create temporary directory.
|
|
9
9
|
*/
|
|
10
|
-
declare function createTemporaryDirectory(): Promise<string>;
|
|
10
|
+
export declare function createTemporaryDirectory(): Promise<string>;
|
|
11
11
|
//#endregion
|
|
12
12
|
//#region src/git.d.ts
|
|
13
13
|
/**
|
|
14
14
|
* Get the top level of the git repository.
|
|
15
15
|
*/
|
|
16
|
-
declare function getGitRepositoryPath(): Promise<string | null>;
|
|
16
|
+
export declare function getGitRepositoryPath(): Promise<string | null>;
|
|
17
17
|
//#endregion
|
|
18
18
|
//#region src/introspection.d.ts
|
|
19
19
|
/**
|
|
20
20
|
* Read the version from a package.json file.
|
|
21
21
|
*/
|
|
22
|
-
declare function readVersionFromPackage(pkgPath: string): Promise<string>;
|
|
22
|
+
export declare function readVersionFromPackage(pkgPath: string): Promise<string>;
|
|
23
23
|
//#endregion
|
|
24
24
|
//#region src/metadata-io.d.ts
|
|
25
25
|
/**
|
|
26
26
|
* Write screenshot metadata to disk.
|
|
27
27
|
*/
|
|
28
|
-
declare function writeMetadata(screenshotPath: string, metadata: ScreenshotMetadata): Promise<void>;
|
|
28
|
+
export declare function writeMetadata(screenshotPath: string, metadata: ScreenshotMetadata): Promise<void>;
|
|
29
29
|
/**
|
|
30
30
|
* Read screenshot metadata from disk.
|
|
31
31
|
* If not found, returns null.
|
|
32
32
|
*/
|
|
33
|
-
declare function readMetadata(screenshotPath: string): Promise<ScreenshotMetadata | null>;
|
|
33
|
+
export declare function readMetadata(screenshotPath: string): Promise<ScreenshotMetadata | null>;
|
|
34
34
|
//#endregion
|
|
35
35
|
//#region src/playwright-trace.d.ts
|
|
36
36
|
/**
|
|
37
37
|
* Get playwright trace from screenshot path.
|
|
38
38
|
* If not found, returns null.
|
|
39
39
|
*/
|
|
40
|
-
declare function getPlaywrightTracePath(screenshotPath: string): Promise<string | null>;
|
|
40
|
+
export declare function getPlaywrightTracePath(screenshotPath: string): Promise<string | null>;
|
|
41
41
|
//#endregion
|
|
42
|
-
export { ScreenshotMetadata, clearCaptureIndex,
|
|
42
|
+
export { ScreenshotMetadata, clearCaptureIndex, getMetadataPath, getScreenshotName, getTestRunKey, nextCaptureIndex, normalizeBaseNames, resetCaptureIndexes, validateThreshold };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@argos-ci/util",
|
|
3
3
|
"description": "Set of utilities used across all Argos SDKs.",
|
|
4
|
-
"version": "4.2.
|
|
4
|
+
"version": "4.2.1",
|
|
5
5
|
"author": "Smooth Code",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -48,5 +48,5 @@
|
|
|
48
48
|
"@types/node": "catalog:",
|
|
49
49
|
"vitest": "catalog:"
|
|
50
50
|
},
|
|
51
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "4f0edc08d8549534dd3a682bbe034ebcb604bddf"
|
|
52
52
|
}
|