@argos-ci/core 2.8.0 → 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.
- package/dist/index.cjs +12 -2
- package/dist/index.mjs +4 -4
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
|
-
exports.upload = async (
|
|
1
|
+
exports.upload = async (...args)=>{
|
|
2
2
|
// @ts-ignore
|
|
3
3
|
const { upload } = await import('./index.mjs');
|
|
4
|
-
return upload(
|
|
4
|
+
return upload(...args);
|
|
5
|
+
};
|
|
6
|
+
exports.finalize = async (...args)=>{
|
|
7
|
+
// @ts-ignore
|
|
8
|
+
const { finalize } = await import('./index.mjs');
|
|
9
|
+
return finalize(...args);
|
|
10
|
+
};
|
|
11
|
+
exports.readConfig = async (...args)=>{
|
|
12
|
+
// @ts-ignore
|
|
13
|
+
const { readConfig } = await import('./index.mjs');
|
|
14
|
+
return readConfig(...args);
|
|
5
15
|
};
|
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.
|
|
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.
|
|
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": "
|
|
63
|
+
"gitHead": "0e6df5391e875daba1da61fac33ca1c215db4bc2"
|
|
64
64
|
}
|