@argos-ci/core 2.8.1 → 2.8.2

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.
Files changed (2) hide show
  1. package/dist/index.mjs +4 -4
  2. package/package.json +3 -3
package/dist/index.mjs CHANGED
@@ -822,7 +822,7 @@ async function uploadFilesToS3(files) {
822
822
  debug("Fetch project");
823
823
  const projectResponse = await apiClient.GET("/project");
824
824
  if (projectResponse.error) {
825
- throwAPIError(projectResponse);
825
+ throwAPIError(projectResponse.error);
826
826
  }
827
827
  const { defaultBaseBranch, hasRemoteContentAccess } = projectResponse.data;
828
828
  const referenceBranch = config.referenceBranch || defaultBaseBranch;
@@ -883,7 +883,7 @@ async function uploadFilesToS3(files) {
883
883
  }
884
884
  });
885
885
  if (createBuildResponse.error) {
886
- throwAPIError(createBuildResponse);
886
+ throwAPIError(createBuildResponse.error);
887
887
  }
888
888
  const result = createBuildResponse.data;
889
889
  debug("Got uploads url", result);
@@ -936,7 +936,7 @@ async function uploadFilesToS3(files) {
936
936
  }
937
937
  });
938
938
  if (uploadBuildResponse.error) {
939
- throwAPIError(uploadBuildResponse);
939
+ throwAPIError(uploadBuildResponse.error);
940
940
  }
941
941
  return {
942
942
  build: uploadBuildResponse.data.build,
@@ -964,7 +964,7 @@ async function uploadFilesToS3(files) {
964
964
  }
965
965
  });
966
966
  if (finalizeBuildsResult.error) {
967
- throwAPIError(finalizeBuildsResult);
967
+ throwAPIError(finalizeBuildsResult.error);
968
968
  }
969
969
  return finalizeBuildsResult.data;
970
970
  }
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.8.1",
4
+ "version": "2.8.2",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
7
7
  "types": "./dist/index.d.ts",
@@ -40,7 +40,7 @@
40
40
  "access": "public"
41
41
  },
42
42
  "dependencies": {
43
- "@argos-ci/api-client": "0.5.0",
43
+ "@argos-ci/api-client": "0.5.1",
44
44
  "@argos-ci/util": "2.1.1",
45
45
  "axios": "^1.7.4",
46
46
  "convict": "^6.2.4",
@@ -60,5 +60,5 @@
60
60
  "build": "rollup -c",
61
61
  "e2e": "node ./e2e/upload.cjs && node ./e2e/upload.mjs"
62
62
  },
63
- "gitHead": "e711cad38854fb0ec6aa96587ed4b49490b8add0"
63
+ "gitHead": "0e6df5391e875daba1da61fac33ca1c215db4bc2"
64
64
  }