@malevich-studio/strapi-sdk-typescript 1.2.22 → 1.2.24
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/cli.cjs +6 -3
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.mjs +6 -3
- package/dist/cli.mjs.map +1 -1
- package/dist/index.cjs +5 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +5 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -21409,7 +21409,7 @@ class Strapi {
|
|
|
21409
21409
|
...params,
|
|
21410
21410
|
});
|
|
21411
21411
|
}
|
|
21412
|
-
async
|
|
21412
|
+
async updateBaseUser(endpoint, id, data, params = {}) {
|
|
21413
21413
|
return await this.fetchData(`${endpoint}/${id}`, data, {
|
|
21414
21414
|
method: 'PUT',
|
|
21415
21415
|
...params,
|
|
@@ -21440,7 +21440,10 @@ class Strapi {
|
|
|
21440
21440
|
try {
|
|
21441
21441
|
data = await response?.json() || null;
|
|
21442
21442
|
}
|
|
21443
|
-
catch (error) {
|
|
21443
|
+
catch (error) {
|
|
21444
|
+
console.error(await response.text());
|
|
21445
|
+
throw error;
|
|
21446
|
+
}
|
|
21444
21447
|
log(mergedParams);
|
|
21445
21448
|
log(response);
|
|
21446
21449
|
log(data);
|