testit-js-commons 2.1.0 → 2.1.2

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.
@@ -48,8 +48,8 @@ class AutotestsService extends base_service_1.BaseService {
48
48
  });
49
49
  }
50
50
  loadFailedAutotest(autotest) {
51
- var _a, _b;
52
51
  return __awaiter(this, void 0, void 0, function* () {
52
+ var _a, _b;
53
53
  const originAutotest = yield this.getAutotestByExternalId(autotest.externalId);
54
54
  !originAutotest
55
55
  ? yield this.createAutotest(autotest)
@@ -68,8 +68,8 @@ class TestRunsService extends base_service_1.BaseService {
68
68
  });
69
69
  }
70
70
  getAutotests(testRunId) {
71
- var _a;
72
71
  return __awaiter(this, void 0, void 0, function* () {
72
+ var _a;
73
73
  const testRun = yield this.getTestRun(testRunId);
74
74
  return (_a = testRun.testResults) === null || _a === void 0 ? void 0 : _a.filter((autotest) => autotest.configurationId === this.config.configurationId);
75
75
  });
package/package.json CHANGED
@@ -1,11 +1,12 @@
1
1
  {
2
2
  "name": "testit-js-commons",
3
- "version": "2.1.0",
3
+ "version": "2.1.2",
4
4
  "description": "JavaScript commons for Test IT",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
7
7
  "source": "src/index.ts",
8
8
  "scripts": {
9
+ "prebuild": "npm install",
9
10
  "build": "tsc",
10
11
  "watch": "tsc -w"
11
12
  },
@@ -24,7 +25,7 @@
24
25
  },
25
26
  "dependencies": {
26
27
  "dotenv": "^16.0.3",
27
- "testit-api-client": "^4.1.0"
28
+ "testit-api-client": "~4.1.0"
28
29
  },
29
30
  "files": [
30
31
  "lib"