@argos-ci/core 2.0.0 → 2.1.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.mjs +6 -2
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -185,7 +185,7 @@ const getBranch = ({ env })=>{
|
|
|
185
185
|
};
|
|
186
186
|
const getRepository$1 = ({ env })=>{
|
|
187
187
|
if (!env.GITHUB_REPOSITORY) return null;
|
|
188
|
-
return env.GITHUB_REPOSITORY.split("/")[1];
|
|
188
|
+
return env.GITHUB_REPOSITORY.split("/")[1] || null;
|
|
189
189
|
};
|
|
190
190
|
const readEventPayload = ({ env })=>{
|
|
191
191
|
if (!env.GITHUB_EVENT_PATH) return null;
|
|
@@ -676,7 +676,11 @@ async function uploadFilesToS3(files) {
|
|
|
676
676
|
debug(`Uploading chunk ${i + 1}/${chunks.length}`);
|
|
677
677
|
const timeLabel = `Chunk ${i + 1}/${chunks.length}`;
|
|
678
678
|
debugTime(timeLabel);
|
|
679
|
-
|
|
679
|
+
const chunk = chunks[i];
|
|
680
|
+
if (!chunk) {
|
|
681
|
+
throw new Error(`Invariant: chunk ${i} is empty`);
|
|
682
|
+
}
|
|
683
|
+
await Promise.all(chunk.map(async ({ url, path, contentType })=>{
|
|
680
684
|
await upload$1({
|
|
681
685
|
url,
|
|
682
686
|
path,
|
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.1.0",
|
|
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": "
|
|
62
|
+
"gitHead": "1d91294d32a09302aa8890807ddd810e14e9950b"
|
|
63
63
|
}
|