@codebit-programando-solucoes/codebit-web 1.1.23 → 1.1.24

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 (2) hide show
  1. package/dist/index.cjs +6 -1
  2. package/package.json +21 -20
package/dist/index.cjs CHANGED
@@ -239,7 +239,12 @@ async function makeRequest(url, options = {}) {
239
239
  inferredResponseType = contentType?.includes('application/json') ? 'json' : isBinaryContent(contentType) ? 'blob' : 'text';
240
240
  const finalResponseType = responseType || inferredResponseType;
241
241
  let data;
242
- data = 'json' === finalResponseType ? await response.json() : 'blob' === finalResponseType ? await response.blob() : 'arraybuffer' === finalResponseType ? await response.arrayBuffer() : 'stream' === finalResponseType ? response.body : await response.text();
242
+ try {
243
+ data = 'json' === finalResponseType ? await response.json() : 'blob' === finalResponseType ? await response.blob() : 'arraybuffer' === finalResponseType ? await response.arrayBuffer() : 'stream' === finalResponseType ? response.body : await response.text();
244
+ } catch (e) {
245
+ if (timeoutController.signal.aborted) throw new ApiNetworkError(e);
246
+ throw e;
247
+ }
243
248
  return {
244
249
  data,
245
250
  status: response.status,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codebit-programando-solucoes/codebit-web",
3
- "version": "1.1.23",
3
+ "version": "1.1.24",
4
4
  "main": "./dist/index.cjs",
5
5
  "type": "module",
6
6
  "types": "./dist/index.d.ts",
@@ -19,38 +19,39 @@
19
19
  }
20
20
  },
21
21
  "peerDependencies": {
22
+ "markdown-it": "^14.3.3",
22
23
  "prop-types": ">=15.8.1",
23
24
  "react": ">=19.2.0",
24
25
  "react-dom": ">=19.2.0",
25
- "react-router": ">=7.12.0",
26
- "sass": ">=1.89.0",
27
- "markdown-it": "^14.1.1"
26
+ "react-router": ">=7.18.2",
27
+ "sass": ">=1.89.0"
28
28
  },
29
29
  "devDependencies": {
30
- "@babel/core": "^7.23.0",
31
- "@babel/preset-env": "^7.23.0",
32
- "@eslint/js": "^9.39.2",
33
- "@types/jest": "^29.5.14",
30
+ "@babel/core": "^7.29.13",
31
+ "@babel/preset-env": "^7.29.14",
32
+ "@eslint/js": "^9.39.5",
34
33
  "@rsbuild/plugin-react": "1.4.3",
35
34
  "@rsbuild/plugin-sass": "1.4.1",
36
- "@rslib/core": "^0.18.0",
37
- "@swc/core": "^1.13.5",
38
- "cross-env": "^10.0.0",
35
+ "@rslib/core": "^0.18.6",
36
+ "@swc/core": "^1.16.22",
37
+ "@types/jest": "^29.5.14",
38
+ "babel-jest": "^29.7.0",
39
+ "cross-env": "^10.1.0",
39
40
  "del-cli": "^6.0.0",
40
- "dotenv": "^17.2.2",
41
- "eslint": "^9.32.0",
42
- "eslint-plugin-jsdoc": "^54.4.1",
41
+ "dotenv": "^17.4.2",
42
+ "eslint": "^9.39.5",
43
+ "eslint-plugin-jsdoc": "^54.7.0",
43
44
  "eslint-plugin-jsx-a11y": "^6.10.2",
44
45
  "eslint-plugin-react": "^7.37.5",
45
46
  "eslint-plugin-react-hooks": "^5.2.0",
46
- "eslint-plugin-react-refresh": "^0.4.20",
47
- "babel-jest": "^29.7.0",
48
- "glob": "11.1.0",
49
- "globals": "^16.3.0",
47
+ "eslint-plugin-react-refresh": "^0.4.26",
48
+ "glob": "^14.0.6",
49
+ "globals": "^16.5.0",
50
50
  "jest": "^29.7.0",
51
51
  "jsdom": "^22.1.0",
52
- "prettier": "^3.6.2",
53
- "prettier-plugin-jsdoc": "^1.3.3"
52
+ "prettier": "^3.10.1",
53
+ "prettier-plugin-jsdoc": "^1.8.1",
54
+ "react-router": "^7.18.6"
54
55
  },
55
56
  "jest": {
56
57
  "moduleFileExtensions": [