attlaz-client 1.13.2 → 1.13.4
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.
package/dist/Client.js
CHANGED
package/dist/Http/HttpClient.js
CHANGED
|
@@ -43,7 +43,9 @@ export class HttpClient {
|
|
|
43
43
|
}
|
|
44
44
|
const error = ClientError.byStatus(response.status, response.statusText);
|
|
45
45
|
if (error !== null && error !== undefined) {
|
|
46
|
-
error.message
|
|
46
|
+
if (httpResponse.body !== null && httpResponse.body !== undefined && httpResponse.body.error !== null && httpResponse.body.error !== undefined && httpResponse.body.error.message !== null && httpResponse.body.error.message !== undefined) {
|
|
47
|
+
error.message = httpResponse.body.error.message;
|
|
48
|
+
}
|
|
47
49
|
throw error;
|
|
48
50
|
}
|
|
49
51
|
return httpResponse;
|
|
@@ -61,9 +61,9 @@ export class SourcesAccountEndpoint extends Endpoint {
|
|
|
61
61
|
return rawSourcesAccountRepositories;
|
|
62
62
|
}
|
|
63
63
|
async getRepositoryBranches(codeSourceAccountId, repositoryKey, pagination = null) {
|
|
64
|
+
repositoryKey = Utils.base64encode(repositoryKey);
|
|
64
65
|
const queryString = new QueryString('codesourceaccounts/' + codeSourceAccountId + '/repositories/' + repositoryKey + '/branches');
|
|
65
66
|
queryString.addPagination(pagination);
|
|
66
|
-
repositoryKey = Utils.base64encode(repositoryKey);
|
|
67
67
|
const rawBranches = await this.requestCollection(queryString, SourcesAccountRepositoryBranch.parse);
|
|
68
68
|
return rawBranches;
|
|
69
69
|
}
|