@seedgrid/fe-core 2026.4.21 → 2026.4.22

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.
@@ -270,10 +270,19 @@ async function readAccessToken(getAccessToken, requireAuth) {
270
270
  }
271
271
  async function readResponseBody(response) {
272
272
  const contentType = response.headers.get("Content-Type") ?? "";
273
+ console.log("[readResponseBody] contentType:", contentType);
274
+ console.log("[readResponseBody] response.status:", response.status);
273
275
  if (isJsonContentType(contentType)) {
274
- return response.json();
276
+ const cloned = response.clone();
277
+ const text = await cloned.text();
278
+ console.log("[readResponseBody] response text:", text);
279
+ const json = await response.json();
280
+ console.log("[readResponseBody] parsed json:", json);
281
+ return json;
275
282
  }
276
- return response.text();
283
+ const text = await response.text();
284
+ console.log("[readResponseBody] response text (not json):", text);
285
+ return text;
277
286
  }
278
287
  function isJsonContentType(contentType) {
279
288
  const normalized = contentType.trim().toLowerCase();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seedgrid/fe-core",
3
- "version": "2026.4.21",
3
+ "version": "2026.4.22",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",