@moonbase.sh/api 0.1.116 → 0.1.117

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
@@ -346,13 +346,13 @@ async function handleResponseProblem(response) {
346
346
  } catch (e) {
347
347
  throw new Error("An unknown problem occurred");
348
348
  }
349
- if (response.status === 404)
350
- throw new NotFoundError(problemDetails);
351
349
  if (response.status === 401)
352
350
  throw new NotAuthenticatedError(problemDetails);
353
351
  if (response.status === 403)
354
352
  throw new NotAuthorizedError(problemDetails);
355
353
  if (response.status === 404)
354
+ throw new NotFoundError(problemDetails);
355
+ if (response.status === 409)
356
356
  throw new ConflictError(problemDetails);
357
357
  throw new MoonbaseError(problemDetails);
358
358
  }
package/dist/index.js CHANGED
@@ -299,13 +299,13 @@ async function handleResponseProblem(response) {
299
299
  } catch (e) {
300
300
  throw new Error("An unknown problem occurred");
301
301
  }
302
- if (response.status === 404)
303
- throw new NotFoundError(problemDetails);
304
302
  if (response.status === 401)
305
303
  throw new NotAuthenticatedError(problemDetails);
306
304
  if (response.status === 403)
307
305
  throw new NotAuthorizedError(problemDetails);
308
306
  if (response.status === 404)
307
+ throw new NotFoundError(problemDetails);
308
+ if (response.status === 409)
309
309
  throw new ConflictError(problemDetails);
310
310
  throw new MoonbaseError(problemDetails);
311
311
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@moonbase.sh/api",
3
3
  "type": "module",
4
- "version": "0.1.116",
4
+ "version": "0.1.117",
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",