Skip to content

Commit 6b3d494

Browse files
committed
release 4.6.2
1 parent e8301b7 commit 6b3d494

File tree

3 files changed

+7
-9
lines changed

3 files changed

+7
-9
lines changed

lib/helpers/config.helper.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@ const readConfigFromFile = (config: Config): Config => {
99
if (fileConfig.apiUrl) {
1010
config.apiUrl = fileConfig.apiUrl;
1111
}
12-
if (fileConfig.ciBuildId) {
13-
config.ciBuildId = fileConfig.ciBuildId;
14-
}
1512
if (fileConfig.branchName) {
1613
config.branchName = fileConfig.branchName;
1714
}
@@ -21,6 +18,9 @@ const readConfigFromFile = (config: Config): Config => {
2118
if (fileConfig.apiKey) {
2219
config.apiKey = fileConfig.apiKey;
2320
}
21+
if (fileConfig.ciBuildId) {
22+
config.ciBuildId = fileConfig.ciBuildId;
23+
}
2424
if (fileConfig.enableSoftAssert !== undefined) {
2525
config.enableSoftAssert = fileConfig.enableSoftAssert;
2626
}
@@ -32,9 +32,6 @@ const readConfigFromEnv = (config: Config): Config => {
3232
if (process.env["VRT_APIURL"]) {
3333
config.apiUrl = process.env["VRT_APIURL"];
3434
}
35-
if (process.env["VRT_CIBUILDID"]) {
36-
config.ciBuildId = process.env["VRT_CIBUILDID"];
37-
}
3835
if (process.env["VRT_BRANCHNAME"]) {
3936
config.branchName = process.env["VRT_BRANCHNAME"];
4037
}
@@ -44,6 +41,9 @@ const readConfigFromEnv = (config: Config): Config => {
4441
if (process.env["VRT_APIKEY"]) {
4542
config.apiKey = process.env["VRT_APIKEY"];
4643
}
44+
if (process.env["VRT_CIBUILDID"]) {
45+
config.ciBuildId = process.env["VRT_CIBUILDID"];
46+
}
4747
if (process.env["VRT_ENABLESOFTASSERT"] !== undefined) {
4848
config.enableSoftAssert = process.env["VRT_ENABLESOFTASSERT"] === "true";
4949
}

lib/visualRegressionTracker.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ export class VisualRegressionTracker {
1919
apiKey: "",
2020
project: "",
2121
branchName: "",
22-
ciBuildId: "",
23-
enableSoftAssert: false,
2422
};
2523
private buildId: string | undefined;
2624
private projectId: string | undefined;

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@visual-regression-tracker/sdk-js",
3-
"version": "4.6.0",
3+
"version": "4.6.2",
44
"description": "",
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",

0 commit comments

Comments
 (0)