@argos-ci/core 1.5.2 → 1.5.4
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 +16 -16
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -494,23 +494,23 @@ async function readConfig(options = {}) {
|
|
|
494
494
|
const config = createConfig();
|
|
495
495
|
const ciEnv = await getCiEnvironment();
|
|
496
496
|
config.load({
|
|
497
|
-
apiBaseUrl: options.apiBaseUrl
|
|
498
|
-
commit: options.commit
|
|
499
|
-
branch: options.branch
|
|
500
|
-
token: options.token
|
|
501
|
-
buildName: options.buildName
|
|
502
|
-
prNumber: options.prNumber
|
|
503
|
-
prHeadCommit: config.get("prHeadCommit")
|
|
504
|
-
referenceBranch: options.referenceBranch
|
|
505
|
-
referenceCommit: options.referenceCommit
|
|
506
|
-
ciService: (ciEnv === null || ciEnv === void 0 ? void 0 : ciEnv.name)
|
|
507
|
-
owner: (ciEnv === null || ciEnv === void 0 ? void 0 : ciEnv.owner)
|
|
508
|
-
repository: (ciEnv === null || ciEnv === void 0 ? void 0 : ciEnv.repository)
|
|
509
|
-
jobId: (ciEnv === null || ciEnv === void 0 ? void 0 : ciEnv.jobId)
|
|
510
|
-
runId: (ciEnv === null || ciEnv === void 0 ? void 0 : ciEnv.runId)
|
|
497
|
+
apiBaseUrl: options.apiBaseUrl || config.get("apiBaseUrl"),
|
|
498
|
+
commit: options.commit || config.get("commit") || (ciEnv === null || ciEnv === void 0 ? void 0 : ciEnv.commit) || null,
|
|
499
|
+
branch: options.branch || config.get("branch") || (ciEnv === null || ciEnv === void 0 ? void 0 : ciEnv.branch) || null,
|
|
500
|
+
token: options.token || config.get("token") || null,
|
|
501
|
+
buildName: options.buildName || config.get("buildName") || null,
|
|
502
|
+
prNumber: options.prNumber || config.get("prNumber") || (ciEnv === null || ciEnv === void 0 ? void 0 : ciEnv.prNumber) || null,
|
|
503
|
+
prHeadCommit: config.get("prHeadCommit") || (ciEnv === null || ciEnv === void 0 ? void 0 : ciEnv.prHeadCommit) || null,
|
|
504
|
+
referenceBranch: options.referenceBranch || config.get("referenceBranch") || null,
|
|
505
|
+
referenceCommit: options.referenceCommit || config.get("referenceCommit") || null,
|
|
506
|
+
ciService: (ciEnv === null || ciEnv === void 0 ? void 0 : ciEnv.name) || null,
|
|
507
|
+
owner: (ciEnv === null || ciEnv === void 0 ? void 0 : ciEnv.owner) || null,
|
|
508
|
+
repository: (ciEnv === null || ciEnv === void 0 ? void 0 : ciEnv.repository) || null,
|
|
509
|
+
jobId: (ciEnv === null || ciEnv === void 0 ? void 0 : ciEnv.jobId) || null,
|
|
510
|
+
runId: (ciEnv === null || ciEnv === void 0 ? void 0 : ciEnv.runId) || null,
|
|
511
511
|
parallel: options.parallel ?? config.get("parallel") ?? false,
|
|
512
|
-
parallelNonce: options.parallelNonce
|
|
513
|
-
parallelTotal: options.parallelTotal
|
|
512
|
+
parallelNonce: options.parallelNonce || config.get("parallelNonce") || (ciEnv === null || ciEnv === void 0 ? void 0 : ciEnv.nonce) || null,
|
|
513
|
+
parallelTotal: options.parallelTotal || config.get("parallelTotal") || null
|
|
514
514
|
});
|
|
515
515
|
config.validate();
|
|
516
516
|
return config.get();
|
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": "1.5.
|
|
4
|
+
"version": "1.5.4",
|
|
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/util": "1.2.
|
|
43
|
+
"@argos-ci/util": "1.2.1",
|
|
44
44
|
"axios": "^1.5.0",
|
|
45
45
|
"convict": "^6.2.4",
|
|
46
46
|
"debug": "^4.3.4",
|
|
@@ -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": "3c0a10a7ec14c294c801491aca79cacb2f07edc2"
|
|
63
63
|
}
|