swoop-common 1.0.29 → 1.0.30
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.
|
@@ -9,6 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
10
10
|
});
|
|
11
11
|
};
|
|
12
|
+
// This adds hydra unwrapping
|
|
12
13
|
//@ts-nocheck
|
|
13
14
|
import { ApiError } from './ApiError';
|
|
14
15
|
import { CancelablePromise } from './CancelablePromise';
|
|
@@ -246,7 +247,7 @@ const unwrapHydra = (json) => {
|
|
|
246
247
|
return json;
|
|
247
248
|
}
|
|
248
249
|
// Get the key that is not hydra
|
|
249
|
-
const main = keys.find(s => !["@
|
|
250
|
+
const main = keys.find(s => !["@vocab", "hydra"].includes(s));
|
|
250
251
|
// Main WILL exist, as there are 3 keys and filter max 2
|
|
251
252
|
const data = json[main];
|
|
252
253
|
if (!data) {
|