@moonbase.sh/api 0.2.24 → 0.2.26

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 CHANGED
@@ -350,7 +350,8 @@ async function handleResponseProblem(response) {
350
350
  const json = await response.json();
351
351
  if (json)
352
352
  problemDetails = problemDetailsSchema.parse(json);
353
- } catch (e) {
353
+ } catch (err) {
354
+ console.error("Could not handle response", err);
354
355
  throw new Error("An unknown problem occurred");
355
356
  }
356
357
  if (response.status === 401)
package/dist/index.js CHANGED
@@ -303,7 +303,8 @@ async function handleResponseProblem(response) {
303
303
  const json = await response.json();
304
304
  if (json)
305
305
  problemDetails = problemDetailsSchema.parse(json);
306
- } catch (e) {
306
+ } catch (err) {
307
+ console.error("Could not handle response", err);
307
308
  throw new Error("An unknown problem occurred");
308
309
  }
309
310
  if (response.status === 401)
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@moonbase.sh/api",
3
3
  "type": "module",
4
- "version": "0.2.24",
4
+ "version": "0.2.26",
5
5
  "description": "Package to let you integrate backends with Moonbase.sh as payment and delivery provider",
6
6
  "author": "Tobias Lønnerød Madsen <m@dsen.tv>",
7
7
  "license": "MIT",