@zauru-sdk/services 1.0.86 → 1.0.87

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.
@@ -23,6 +23,9 @@ async function getWebAppRow(session, id) {
23
23
  id,
24
24
  },
25
25
  }, { headers });
26
+ if (response.data.errors) {
27
+ throw new Error(response.data.errors.map((x) => x.message).join(";"));
28
+ }
26
29
  return response.data?.data?.webapp_rows[0]?.data;
27
30
  });
28
31
  }
@@ -17,6 +17,9 @@ export async function getWebAppRow(session, id) {
17
17
  id,
18
18
  },
19
19
  }, { headers });
20
+ if (response.data.errors) {
21
+ throw new Error(response.data.errors.map((x) => x.message).join(";"));
22
+ }
20
23
  return response.data?.data?.webapp_rows[0]?.data;
21
24
  });
22
25
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zauru-sdk/services",
3
- "version": "1.0.86",
3
+ "version": "1.0.87",
4
4
  "description": "Servicios de consulta a Zauru",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/esm/index.js",
@@ -32,5 +32,5 @@
32
32
  "axios": "^1.6.7",
33
33
  "chalk": "5.3.0"
34
34
  },
35
- "gitHead": "8d882374100d308c1c07c996dd092e68ab9d44dd"
35
+ "gitHead": "94233ba13ca291f573fdbd92cc38eaa72b595d25"
36
36
  }