attlaz-client 1.10.4 → 1.10.5
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 +3 -0
- package/package.json +1 -1
package/dist/Service/Endpoint.js
CHANGED
|
@@ -103,6 +103,9 @@ export class Endpoint {
|
|
|
103
103
|
* Parse errors
|
|
104
104
|
*/
|
|
105
105
|
// TODO: temporary check until we know the API is fully upgraded
|
|
106
|
+
if (!requestResponse === null || requestResponse === undefined) {
|
|
107
|
+
throw new Error('Unable to parse object');
|
|
108
|
+
}
|
|
106
109
|
if ((requestResponse.hasOwnProperty('data') && !requestResponse.hasOwnProperty('id')) && requestResponse.data !== undefined) {
|
|
107
110
|
console.error('Response for object "' + action + '" seem to still use old "data" property', { requestResponse });
|
|
108
111
|
requestResponse = requestResponse.data;
|