@argos-ci/core 2.7.0 → 2.7.1-alpha.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,3 +1,5 @@
1
+ import { ArgosAPISchema } from "@argos-ci/api-client";
2
+ type BuildMetadata = ArgosAPISchema.components["schemas"]["BuildMetadata"];
1
3
  interface UploadParameters {
2
4
  /**
3
5
  * Globs matching image file paths to upload
@@ -68,6 +70,10 @@ interface UploadParameters {
68
70
  * @default 0.5
69
71
  */
70
72
  threshold?: number;
73
+ /**
74
+ * Build metadata.
75
+ */
76
+ metadata?: BuildMetadata;
71
77
  }
72
78
  /**
73
79
  * Upload screenshots to Argos.
package/dist/index.mjs CHANGED
@@ -931,7 +931,8 @@ async function uploadFilesToS3(files) {
931
931
  })),
932
932
  parallel: config.parallel,
933
933
  parallelTotal: config.parallelTotal,
934
- parallelIndex: config.parallelIndex
934
+ parallelIndex: config.parallelIndex,
935
+ metadata: params.metadata
935
936
  }
936
937
  });
937
938
  if (uploadBuildResponse.error) {
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.7.0",
4
+ "version": "2.7.1-alpha.1+95edc87",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
7
7
  "types": "./dist/index.d.ts",
@@ -40,8 +40,8 @@
40
40
  "access": "public"
41
41
  },
42
42
  "dependencies": {
43
- "@argos-ci/api-client": "0.4.0",
44
- "@argos-ci/util": "2.1.1",
43
+ "@argos-ci/api-client": "0.4.1-alpha.1+95edc87",
44
+ "@argos-ci/util": "2.1.2-alpha.15+95edc87",
45
45
  "axios": "^1.7.4",
46
46
  "convict": "^6.2.4",
47
47
  "debug": "^4.3.6",
@@ -60,5 +60,5 @@
60
60
  "build": "rollup -c",
61
61
  "e2e": "node ./e2e/upload.cjs && node ./e2e/upload.mjs"
62
62
  },
63
- "gitHead": "d5b9650164fd482ee2b4dbf5c93fcef591f447eb"
63
+ "gitHead": "95edc87797d535e037f7c4c9da3c0262b8809361"
64
64
  }