attlaz-client 1.32.0 → 1.32.1
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/Service/Endpoint.js +7 -2
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
package/dist/Service/Endpoint.js
CHANGED
|
@@ -109,14 +109,19 @@ export class Endpoint {
|
|
|
109
109
|
if (action instanceof QueryString) {
|
|
110
110
|
action = action.build();
|
|
111
111
|
}
|
|
112
|
+
const result = new ObjectResult();
|
|
112
113
|
let requestResponse;
|
|
113
114
|
try {
|
|
114
115
|
requestResponse = await this.httpClient.request(action, parameters, method, signWithOauthToken);
|
|
115
116
|
}
|
|
116
117
|
catch (error) {
|
|
117
|
-
|
|
118
|
+
if (error.httpStatus === HttpStatus.HTTP_NOTFOUND) {
|
|
119
|
+
result.setData(null);
|
|
120
|
+
}
|
|
121
|
+
else {
|
|
122
|
+
throw this.toApiError(error);
|
|
123
|
+
}
|
|
118
124
|
}
|
|
119
|
-
const result = new ObjectResult();
|
|
120
125
|
// TODO: add errors
|
|
121
126
|
/**
|
|
122
127
|
* Parse errors
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "1.
|
|
1
|
+
export declare const VERSION = "1.32.0";
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = "1.
|
|
1
|
+
export const VERSION = "1.32.0";
|