@moonbase.sh/storefront-api 0.2.21 → 0.2.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.
- package/dist/index.cjs +2 -1
- package/dist/index.d.cts +940 -940
- package/dist/index.d.ts +940 -940
- package/dist/index.js +2 -1
- package/package.json +7 -7
package/dist/index.cjs
CHANGED
|
@@ -289,7 +289,8 @@ async function handleResponseProblem(response) {
|
|
|
289
289
|
try {
|
|
290
290
|
const json = await response.json();
|
|
291
291
|
problemDetails = problemDetailsSchema.parse(json);
|
|
292
|
-
} catch (
|
|
292
|
+
} catch (err) {
|
|
293
|
+
console.error("Could not handle response", err);
|
|
293
294
|
throw new Error("An unknown problem occurred");
|
|
294
295
|
}
|
|
295
296
|
throw new MoonbaseError(
|