@orbe-agro/client-core-prod 5.6.129 → 5.6.130

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.
@@ -2,7 +2,7 @@ import { apiGetAreById } from "../../../services/modules/dm/area/AreaService.js"
2
2
  import useSWR from "swr";
3
3
  function useAreaById(id) {
4
4
  const { data, error, isLoading, mutate } = useSWR(
5
- id ? `/api/area/${id}` : null,
5
+ id ? `/api/areas/${id}` : null,
6
6
  () => id ? apiGetAreById(id) : null,
7
7
  {
8
8
  revalidateOnFocus: false
@@ -1 +1 @@
1
- {"version":3,"file":"useAreaById.js","sources":["../../../../../lib/base/hooks/dm/area/useAreaById.tsx"],"sourcesContent":["\n\nimport { apiGetAreById } from \"@base/services/modules/dm/area/AreaService\"\nimport useSWR from \"swr\"\n\nexport function useAreaById(id: number) {\n const { data, error, isLoading, mutate } = useSWR(\n id ? `/api/area/${id}` : null,\n () => id ? apiGetAreById(id) : null,\n {\n revalidateOnFocus: false,\n },\n )\n\n const ativo = data || null\n\n return {\n data,\n ativo,\n error,\n isLoading,\n mutate,\n }\n}\n\nexport default useAreaById\n"],"names":[],"mappings":";;AAKO,SAAS,YAAY,IAAY;AACpC,QAAM,EAAE,MAAM,OAAO,WAAW,WAAW;AAAA,IACvC,KAAK,aAAa,EAAE,KAAK;AAAA,IACzB,MAAM,KAAK,cAAc,EAAE,IAAI;AAAA,IAC/B;AAAA,MACI,mBAAmB;AAAA,IAAA;AAAA,EACvB;AAGJ,QAAM,QAAQ,QAAQ;AAEtB,SAAO;AAAA,IACH;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EAAA;AAER;"}
1
+ {"version":3,"file":"useAreaById.js","sources":["../../../../../lib/base/hooks/dm/area/useAreaById.tsx"],"sourcesContent":["\n\nimport { apiGetAreById } from \"@base/services/modules/dm/area/AreaService\"\nimport useSWR from \"swr\"\n\nexport function useAreaById(id: number) {\n const { data, error, isLoading, mutate } = useSWR(\n id ? `/api/areas/${id}` : null,\n () => id ? apiGetAreById(id) : null,\n {\n revalidateOnFocus: false,\n },\n )\n\n const ativo = data || null\n\n return {\n data,\n ativo,\n error,\n isLoading,\n mutate,\n }\n}\n\nexport default useAreaById\n"],"names":[],"mappings":";;AAKO,SAAS,YAAY,IAAY;AACpC,QAAM,EAAE,MAAM,OAAO,WAAW,WAAW;AAAA,IACvC,KAAK,cAAc,EAAE,KAAK;AAAA,IAC1B,MAAM,KAAK,cAAc,EAAE,IAAI;AAAA,IAC/B;AAAA,MACI,mBAAmB;AAAA,IAAA;AAAA,EACvB;AAGJ,QAAM,QAAQ,QAAQ;AAEtB,SAAO;AAAA,IACH;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EAAA;AAER;"}
@@ -5,7 +5,7 @@ import useSWR from "swr"
5
5
 
6
6
  export function useAreaById(id: number) {
7
7
  const { data, error, isLoading, mutate } = useSWR(
8
- id ? `/api/area/${id}` : null,
8
+ id ? `/api/areas/${id}` : null,
9
9
  () => id ? apiGetAreById(id) : null,
10
10
  {
11
11
  revalidateOnFocus: false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orbe-agro/client-core-prod",
3
- "version": "5.6.129",
3
+ "version": "5.6.130",
4
4
  "description": "Biblioteca principal de componentes e utilidades para os microfrontends do Orbe Agro.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",