@argos-ci/core 2.5.2-alpha.1 → 2.7.0
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 +1 -1
- package/dist/index.mjs +5 -5
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createClient } from '@argos-ci/api-client';
|
|
1
|
+
import { createClient, throwAPIError } from '@argos-ci/api-client';
|
|
2
2
|
import convict from 'convict';
|
|
3
3
|
import { execSync } from 'node:child_process';
|
|
4
4
|
import { existsSync, readFileSync, createReadStream } from 'node:fs';
|
|
@@ -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
|
-
|
|
825
|
+
throwAPIError(projectResponse);
|
|
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
|
-
|
|
886
|
+
throwAPIError(createBuildResponse);
|
|
887
887
|
}
|
|
888
888
|
const result = createBuildResponse.data;
|
|
889
889
|
debug("Got uploads url", result);
|
|
@@ -935,7 +935,7 @@ async function uploadFilesToS3(files) {
|
|
|
935
935
|
}
|
|
936
936
|
});
|
|
937
937
|
if (uploadBuildResponse.error) {
|
|
938
|
-
|
|
938
|
+
throwAPIError(uploadBuildResponse);
|
|
939
939
|
}
|
|
940
940
|
return {
|
|
941
941
|
build: uploadBuildResponse.data.build,
|
|
@@ -963,7 +963,7 @@ async function uploadFilesToS3(files) {
|
|
|
963
963
|
}
|
|
964
964
|
});
|
|
965
965
|
if (finalizeBuildsResult.error) {
|
|
966
|
-
|
|
966
|
+
throwAPIError(finalizeBuildsResult);
|
|
967
967
|
}
|
|
968
968
|
return finalizeBuildsResult.data;
|
|
969
969
|
}
|
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
|
+
"version": "2.7.0",
|
|
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.
|
|
44
|
-
"@argos-ci/util": "2.1.
|
|
43
|
+
"@argos-ci/api-client": "0.4.0",
|
|
44
|
+
"@argos-ci/util": "2.1.1",
|
|
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": "
|
|
63
|
+
"gitHead": "d5b9650164fd482ee2b4dbf5c93fcef591f447eb"
|
|
64
64
|
}
|