@visual-regression-tracker/sdk-js 5.6.0 → 5.7.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.
@@ -1,4 +1,4 @@
1
1
  import { TestRunResponse } from "../types";
2
- export declare const processTestRun: (testRunResponse: TestRunResponse, enableSoftAssert?: boolean | undefined) => void;
2
+ export declare const processTestRun: (testRunResponse: TestRunResponse, enableSoftAssert?: boolean) => void;
3
3
  export declare const shouldStopRetry: (result: TestRunResponse) => boolean;
4
- export declare const trackWithRetry: (trackFn: () => Promise<TestRunResponse>, retryLimit?: number, enableSoftAssert?: boolean | undefined) => Promise<TestRunResponse>;
4
+ export declare const trackWithRetry: (trackFn: () => Promise<TestRunResponse>, retryLimit?: number, enableSoftAssert?: boolean) => Promise<TestRunResponse>;
@@ -7,4 +7,4 @@ var TestStatus;
7
7
  TestStatus["ok"] = "ok";
8
8
  TestStatus["unresolved"] = "unresolved";
9
9
  TestStatus["autoApproved"] = "autoApproved";
10
- })(TestStatus = exports.TestStatus || (exports.TestStatus = {}));
10
+ })(TestStatus || (exports.TestStatus = TestStatus = {}));
@@ -85,10 +85,11 @@ class VisualRegressionTracker {
85
85
  }
86
86
  submitTestRunMultipart(data) {
87
87
  return __awaiter(this, void 0, void 0, function* () {
88
- return axios_1.default
89
- .post(`${this.config.apiUrl}/test-runs/multipart`, data, {
88
+ const config = {
90
89
  headers: Object.assign(Object.assign(Object.assign({}, data.getHeaders()), { "Content-Length": data.getLengthSync() }), this.axiosConfig.headers),
91
- })
90
+ };
91
+ return axios_1.default
92
+ .post(`${this.config.apiUrl}/test-runs/multipart`, data, config)
92
93
  .then(this.handleResponse)
93
94
  .catch(this.handleException);
94
95
  });
package/package.json CHANGED
@@ -1,35 +1,38 @@
1
1
  {
2
2
  "name": "@visual-regression-tracker/sdk-js",
3
- "version": "5.6.0",
3
+ "version": "5.7.0",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "scripts": {
8
8
  "test": "jest",
9
9
  "test:cov": "jest --collectCoverage",
10
- "build": "./node_modules/.bin/tsc"
10
+ "build": "tsc"
11
11
  },
12
12
  "repository": {
13
13
  "type": "git",
14
- "url": "git+https://github.com/Visual-Regression-Tracker/vrt-sdk-js.git"
14
+ "url": "git+https://github.com/Visual-Regression-Tracker/sdk-js.git"
15
+ },
16
+ "engines": {
17
+ "node": ">=18"
15
18
  },
16
19
  "author": "",
17
- "license": "ISC",
20
+ "license": "Apache-2.0",
18
21
  "bugs": {
19
- "url": "https://github.com/Visual-Regression-Tracker/vrt-sdk-js/issues"
22
+ "url": "https://github.com/Visual-Regression-Tracker/sdk-js/issues"
20
23
  },
21
24
  "homepage": "https://github.com/Visual-Regression-Tracker/Visual-Regression-Tracker",
22
25
  "dependencies": {
23
- "axios": "^0.26.1",
26
+ "axios": "^1.4.0",
24
27
  "form-data": "^4.0.0"
25
28
  },
26
29
  "devDependencies": {
27
- "@types/jest": "^27.4.1",
28
- "@types/node": "^17.0.23",
29
- "jest": "^27.5.1",
30
- "semantic-release": "^19.0.2",
31
- "ts-jest": "^27.1.4",
32
- "typescript": "^4.6.3"
30
+ "@types/jest": "^29.5.3",
31
+ "@types/node": "^16.18.38",
32
+ "jest": "^29.6.1",
33
+ "semantic-release": "^21.0.7",
34
+ "ts-jest": "^29.1.1",
35
+ "typescript": "^5.1.6"
33
36
  },
34
37
  "publishConfig": {
35
38
  "access": "public"