@carlonicora/nextjs-jsonapi 1.119.0 → 1.121.0

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.
Files changed (49) hide show
  1. package/dist/{BlockNoteEditor-BPACLNMB.js → BlockNoteEditor-OVL376NQ.js} +20 -20
  2. package/dist/{BlockNoteEditor-BPACLNMB.js.map → BlockNoteEditor-OVL376NQ.js.map} +1 -1
  3. package/dist/{BlockNoteEditor-CEDKBT67.mjs → BlockNoteEditor-ZDSKVOWD.mjs} +5 -5
  4. package/dist/{JsonApiRequest-SN3DNFDR.mjs → JsonApiRequest-4ISXX7PC.mjs} +2 -2
  5. package/dist/JsonApiRequest-P3VQ2WIS.js +26 -0
  6. package/dist/{JsonApiRequest-HE5LTEYK.js.map → JsonApiRequest-P3VQ2WIS.js.map} +1 -1
  7. package/dist/billing/index.js +347 -347
  8. package/dist/billing/index.mjs +4 -4
  9. package/dist/{chunk-5U7QDGDQ.mjs → chunk-6VNRUTZR.mjs} +3 -3
  10. package/dist/{chunk-DXTOA7OO.js → chunk-BOECS3K2.js} +701 -701
  11. package/dist/{chunk-DXTOA7OO.js.map → chunk-BOECS3K2.js.map} +1 -1
  12. package/dist/{chunk-WC2BTKJP.mjs → chunk-DKFXGCG2.mjs} +2 -1
  13. package/dist/chunk-DKFXGCG2.mjs.map +1 -0
  14. package/dist/{chunk-4SPL6QH3.mjs → chunk-DMG6R3Y4.mjs} +6 -6
  15. package/dist/{chunk-RCMIVTVL.js → chunk-EIOEYXY3.js} +2 -1
  16. package/dist/chunk-EIOEYXY3.js.map +1 -0
  17. package/dist/{chunk-55Q43DI5.js → chunk-JO5BLONK.js} +9 -9
  18. package/dist/{chunk-55Q43DI5.js.map → chunk-JO5BLONK.js.map} +1 -1
  19. package/dist/{chunk-6P7MEU7Q.js → chunk-PQBKPWBY.js} +35 -30
  20. package/dist/chunk-PQBKPWBY.js.map +1 -0
  21. package/dist/{chunk-FWOS6PC5.mjs → chunk-T2FFT7JT.mjs} +10 -5
  22. package/dist/chunk-T2FFT7JT.mjs.map +1 -0
  23. package/dist/client/index.js +5 -5
  24. package/dist/client/index.mjs +4 -4
  25. package/dist/components/index.js +5 -5
  26. package/dist/components/index.mjs +4 -4
  27. package/dist/contexts/index.js +5 -5
  28. package/dist/contexts/index.mjs +4 -4
  29. package/dist/core/index.js +3 -3
  30. package/dist/core/index.mjs +2 -2
  31. package/dist/features/help/index.js +37 -37
  32. package/dist/features/help/index.mjs +4 -4
  33. package/dist/index.js +4 -4
  34. package/dist/index.mjs +3 -3
  35. package/dist/server/index.js +12 -12
  36. package/dist/server/index.mjs +2 -2
  37. package/package.json +1 -1
  38. package/src/core/abstracts/AbstractService.ts +3 -0
  39. package/src/core/abstracts/ClientAbstractService.ts +2 -0
  40. package/src/core/utils/translateResponse.ts +1 -0
  41. package/dist/JsonApiRequest-HE5LTEYK.js +0 -26
  42. package/dist/chunk-6P7MEU7Q.js.map +0 -1
  43. package/dist/chunk-FWOS6PC5.mjs.map +0 -1
  44. package/dist/chunk-RCMIVTVL.js.map +0 -1
  45. package/dist/chunk-WC2BTKJP.mjs.map +0 -1
  46. /package/dist/{BlockNoteEditor-CEDKBT67.mjs.map → BlockNoteEditor-ZDSKVOWD.mjs.map} +0 -0
  47. /package/dist/{JsonApiRequest-SN3DNFDR.mjs.map → JsonApiRequest-4ISXX7PC.mjs.map} +0 -0
  48. /package/dist/{chunk-5U7QDGDQ.mjs.map → chunk-6VNRUTZR.mjs.map} +0 -0
  49. /package/dist/{chunk-4SPL6QH3.mjs.map → chunk-DMG6R3Y4.mjs.map} +0 -0
@@ -14,7 +14,7 @@ import {
14
14
  setBootstrapper,
15
15
  translateResponse,
16
16
  tryBootstrap
17
- } from "./chunk-WC2BTKJP.mjs";
17
+ } from "./chunk-DKFXGCG2.mjs";
18
18
  import {
19
19
  __name
20
20
  } from "./chunk-PAWJFY3S.mjs";
@@ -326,7 +326,7 @@ var AbstractService = class {
326
326
  * Make an API call with automatic environment detection and error handling.
327
327
  */
328
328
  static async callApi(params) {
329
- const { JsonApiGet: JsonApiGet2, JsonApiPost: JsonApiPost2, JsonApiPut, JsonApiPatch, JsonApiDelete: JsonApiDelete2 } = await import("./JsonApiRequest-SN3DNFDR.mjs");
329
+ const { JsonApiGet: JsonApiGet2, JsonApiPost: JsonApiPost2, JsonApiPut, JsonApiPatch, JsonApiDelete: JsonApiDelete2 } = await import("./JsonApiRequest-4ISXX7PC.mjs");
330
330
  let apiResponse;
331
331
  let language = "en";
332
332
  if (typeof window === "undefined") {
@@ -405,6 +405,7 @@ var AbstractService = class {
405
405
  const error = new Error(`${apiResponse.response}:${apiResponse.error}`);
406
406
  error.status = apiResponse.response;
407
407
  error.digest = `HTTP_${apiResponse.response}`;
408
+ error.body = apiResponse.raw;
408
409
  throw error;
409
410
  }
410
411
  }
@@ -421,7 +422,7 @@ var AbstractService = class {
421
422
  * Make an API call and return both data and meta from the response.
422
423
  */
423
424
  static async callApiWithMeta(params) {
424
- const { JsonApiGet: JsonApiGet2, JsonApiPost: JsonApiPost2, JsonApiPut, JsonApiPatch, JsonApiDelete: JsonApiDelete2 } = await import("./JsonApiRequest-SN3DNFDR.mjs");
425
+ const { JsonApiGet: JsonApiGet2, JsonApiPost: JsonApiPost2, JsonApiPut, JsonApiPatch, JsonApiDelete: JsonApiDelete2 } = await import("./JsonApiRequest-4ISXX7PC.mjs");
425
426
  let apiResponse;
426
427
  let language = "en";
427
428
  if (typeof window === "undefined") {
@@ -494,6 +495,7 @@ var AbstractService = class {
494
495
  const error = new Error(`${apiResponse.response}:${apiResponse.error}`);
495
496
  error.status = apiResponse.response;
496
497
  error.digest = `HTTP_${apiResponse.response}`;
498
+ error.body = apiResponse.raw;
497
499
  throw error;
498
500
  }
499
501
  }
@@ -506,7 +508,7 @@ var AbstractService = class {
506
508
  * Get raw JSON:API response data without deserialization.
507
509
  */
508
510
  static async getRawData(params) {
509
- const { JsonApiGet: JsonApiGet2 } = await import("./JsonApiRequest-SN3DNFDR.mjs");
511
+ const { JsonApiGet: JsonApiGet2 } = await import("./JsonApiRequest-4ISXX7PC.mjs");
510
512
  let language = "en";
511
513
  if (typeof window === "undefined") {
512
514
  const { getLocale } = await import("next-intl/server");
@@ -529,6 +531,7 @@ var AbstractService = class {
529
531
  const error = new Error(`${apiResponse.response}:${apiResponse.error}`);
530
532
  error.status = apiResponse.response;
531
533
  error.digest = `HTTP_${apiResponse.response}`;
534
+ error.body = apiResponse.raw;
532
535
  throw error;
533
536
  }
534
537
  }
@@ -861,6 +864,7 @@ var ClientAbstractService = class {
861
864
  const error = new Error(`${apiResponse.response}:${apiResponse.error}`);
862
865
  error.status = apiResponse.response;
863
866
  error.digest = `HTTP_${apiResponse.response}`;
867
+ error.body = apiResponse.raw;
864
868
  throw error;
865
869
  }
866
870
  }
@@ -889,6 +893,7 @@ var ClientAbstractService = class {
889
893
  const error = new Error(`${apiResponse.response}:${apiResponse.error}`);
890
894
  error.status = apiResponse.response;
891
895
  error.digest = `HTTP_${apiResponse.response}`;
896
+ error.body = apiResponse.raw;
892
897
  throw error;
893
898
  }
894
899
  }
@@ -7845,4 +7850,4 @@ export {
7845
7850
  AuditLogService,
7846
7851
  AuditLogModule
7847
7852
  };
7848
- //# sourceMappingURL=chunk-FWOS6PC5.mjs.map
7853
+ //# sourceMappingURL=chunk-T2FFT7JT.mjs.map