attlaz-client 1.7.8 → 1.7.9
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.
|
@@ -6,6 +6,8 @@ const TaskExecution_1 = require("../Model/TaskExecution");
|
|
|
6
6
|
const Utils_1 = require("../Utils");
|
|
7
7
|
const TaskExecutionSummary_1 = require("../Model/TaskExecutionSummary");
|
|
8
8
|
const TaskExecutionHistory_1 = require("../Model/TaskExecutionHistory");
|
|
9
|
+
const ClientError_1 = require("../Model/Error/ClientError");
|
|
10
|
+
const HttpClient_1 = require("../Http/HttpClient");
|
|
9
11
|
class TaskExecutionEndpoint extends Endpoint_1.Endpoint {
|
|
10
12
|
getTaskExecutions(taskId) {
|
|
11
13
|
return new Promise((resolve, reject) => {
|
|
@@ -66,11 +68,14 @@ class TaskExecutionEndpoint extends Endpoint_1.Endpoint {
|
|
|
66
68
|
}
|
|
67
69
|
return TaskExecutionSummary_1.TaskExecutionSummary.parse(rawTaskExecution);
|
|
68
70
|
}
|
|
69
|
-
catch (
|
|
71
|
+
catch (error) {
|
|
72
|
+
if (error instanceof ClientError_1.ClientError && error.code === HttpClient_1.HttpClient.HTTP_NOTFOUND) {
|
|
73
|
+
return null;
|
|
74
|
+
}
|
|
70
75
|
if (this.httpClient.isDebugEnabled()) {
|
|
71
|
-
console.error('Failed to load tasks executions: ' +
|
|
76
|
+
console.error('Failed to load tasks executions: ' + error);
|
|
72
77
|
}
|
|
73
|
-
throw
|
|
78
|
+
throw error;
|
|
74
79
|
}
|
|
75
80
|
}
|
|
76
81
|
getTaskExecutionHistory(taskExecutionId) {
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "1.7.
|
|
1
|
+
export declare const VERSION = "1.7.9";
|
package/dist/version.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "attlaz-client",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.9",
|
|
4
4
|
"description": "Javascript Client to access Attlaz API",
|
|
5
5
|
"types": "./dist/index.d.ts",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -33,11 +33,12 @@
|
|
|
33
33
|
"@types/node": "^17.0.21",
|
|
34
34
|
"jest": "^27.5.1",
|
|
35
35
|
"rimraf": "^3.0.2",
|
|
36
|
-
"ts-jest": "^27.1.3",
|
|
37
|
-
"typescript": "^4.6.2",
|
|
38
36
|
"rollup-plugin-commonjs": "^10.1.0",
|
|
39
37
|
"rollup-plugin-node-resolve": "^5.2.0",
|
|
40
|
-
"rollup-plugin-typescript": "^1.0.1"
|
|
38
|
+
"rollup-plugin-typescript": "^1.0.1",
|
|
39
|
+
"ts-jest": "^27.1.3",
|
|
40
|
+
"typescript": "^4.6.2",
|
|
41
|
+
"dotenv": "^16.0.0"
|
|
41
42
|
},
|
|
42
43
|
"homepage": "https://bitbucket.org/attlaz/javascript-client#readme",
|
|
43
44
|
"directories": {
|