Skip to content

Commit f6faf08

Browse files
committed
https://github.com/Visual-Regression-Tracker/Visual-Regression-Tracker/issues/29
1 parent 772641b commit f6faf08

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const config: Config = {
2222
projectId: "76f0c443-9811-4f4f-b1c2-7c01c5775d9a",
2323
2424
// Fill with your data
25-
token: "F5Z2H0H2SNMXZVHX0EA4YQM1MGDD",
25+
apiKey: "F5Z2H0H2SNMXZVHX0EA4YQM1MGDD",
2626
};
2727
2828
const vrt = new VisualRegressionTracker(config);

dist/types/config.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ export interface Config {
22
apiUrl: string;
33
branchName: string;
44
projectId: string;
5-
token: string;
5+
apiKey: string;
66
}

dist/visualRegressionTracker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class VisualRegressionTracker {
1919
this.config = config;
2020
this.axiosConfig = {
2121
headers: {
22-
apiKey: this.config.token,
22+
apiKey: this.config.apiKey,
2323
},
2424
};
2525
}

examples/example.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ describe("asd", () => {
66
apiUrl: "http://localhost:4200",
77
branchName: "develop",
88
projectId: "76f0c443-9811-4f4f-b1c2-7c01c5775d9a",
9-
token: "F5Z2H0H2SNMXZVHX0EA4YQM1MGDD",
9+
apiKey: "F5Z2H0H2SNMXZVHX0EA4YQM1MGDD",
1010
};
1111
const vrt = new VisualRegressionTracker(config);
1212

lib/types/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ export interface Config {
22
apiUrl: string;
33
branchName: string;
44
projectId: string;
5-
token: string;
5+
apiKey: string;
66
}

lib/visualRegressionTracker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export class VisualRegressionTracker {
1010
this.config = config;
1111
this.axiosConfig = {
1212
headers: {
13-
apiKey: this.config.token,
13+
apiKey: this.config.apiKey,
1414
},
1515
};
1616
}

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": "0.0.7",
3+
"version": "0.0.8",
44
"description": "",
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",

0 commit comments

Comments
 (0)