@argos-ci/core 2.4.0 → 2.4.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/dist/index.d.ts CHANGED
@@ -1,25 +1,51 @@
1
1
  interface UploadParameters {
2
- /** Globs matching image file paths to upload */
2
+ /**
3
+ * Globs matching image file paths to upload
4
+ */
3
5
  files?: string[];
4
- /** Root directory to look for image to upload (default to current directory) */
6
+ /**
7
+ * Root directory to look for image to upload
8
+ * @default process.cwd()
9
+ */
5
10
  root?: string;
6
- /** Globs matching image file paths to ignore (default to "**\/*.\{png,jpg,jpeg\}") */
11
+ /**
12
+ * Globs matching image file paths to ignore
13
+ * @default ["**\/*.\{png,jpg,jpeg\}"]
14
+ */
7
15
  ignore?: string[];
8
- /** Base URL of Argos API (default to "https://api.argos-ci.com/v2/") */
16
+ /**
17
+ * Base URL of Argos API
18
+ * @default "https://api.argos-ci.com/v2/"
19
+ */
9
20
  apiBaseUrl?: string;
10
- /** Git commit */
21
+ /**
22
+ * Git commit
23
+ */
11
24
  commit?: string;
12
- /** Git branch */
25
+ /**
26
+ * Git branch
27
+ */
13
28
  branch?: string;
14
- /** Argos repository token */
29
+ /**
30
+ * Argos repository token
31
+ */
15
32
  token?: string;
16
- /** Pull-request number */
33
+ /**
34
+ * Pull-request number
35
+ */
17
36
  prNumber?: number;
18
- /** Name of the build used to trigger multiple Argos builds on one commit */
37
+ /**
38
+ * Name of the build used to trigger multiple Argos builds on one commit
39
+ */
19
40
  buildName?: string;
20
- /** Mode of comparison applied */
41
+ /**
42
+ * Mode of comparison applied
43
+ * @default "ci"
44
+ */
21
45
  mode?: "ci" | "monitoring";
22
- /** Parallel test suite mode */
46
+ /**
47
+ Parallel test suite mode
48
+ */
23
49
  parallel?: {
24
50
  /** Unique build ID for this parallel build */
25
51
  nonce: string;
@@ -28,9 +54,13 @@ interface UploadParameters {
28
54
  /** The index of the parallel node */
29
55
  index?: number;
30
56
  } | false;
31
- /** Branch used as baseline for screenshot comparison */
57
+ /**
58
+ * Branch used as baseline for screenshot comparison
59
+ */
32
60
  referenceBranch?: string;
33
- /** Commit used as baseline for screenshot comparison */
61
+ /**
62
+ * Commit used as baseline for screenshot comparison
63
+ */
34
64
  referenceCommit?: string;
35
65
  /**
36
66
  * Sensitivity threshold between 0 and 1.
@@ -40,7 +70,7 @@ interface UploadParameters {
40
70
  threshold?: number;
41
71
  }
42
72
  /**
43
- * Upload screenshots to argos-ci.com.
73
+ * Upload screenshots to Argos.
44
74
  */
45
75
  declare function upload(params: UploadParameters): Promise<{
46
76
  build: {
package/dist/index.mjs CHANGED
@@ -759,7 +759,7 @@ async function uploadFilesToS3(files) {
759
759
  }
760
760
  }
761
761
  /**
762
- * Upload screenshots to argos-ci.com.
762
+ * Upload screenshots to Argos.
763
763
  */ async function upload(params) {
764
764
  debug("Starting upload with params", params);
765
765
  // Read config
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@argos-ci/core",
3
3
  "description": "Visual testing solution to avoid visual regression. The core component of Argos SDK that handles build creation.",
4
- "version": "2.4.0",
4
+ "version": "2.4.1",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
7
7
  "types": "./dist/index.d.ts",
@@ -59,5 +59,5 @@
59
59
  "build": "rollup -c",
60
60
  "e2e": "node ./e2e/upload.cjs && node ./e2e/upload.mjs"
61
61
  },
62
- "gitHead": "aca82cf842a6d8310611a8594c581794df85cbd8"
62
+ "gitHead": "8fbd0bb85ba9df1e8ca39d46acfe9903264d0b51"
63
63
  }