@scalar/api-client 0.7.30 → 0.7.31

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @scalar/api-client
2
2
 
3
+ ## 0.7.31
4
+
5
+ ### Patch Changes
6
+
7
+ - ceb7952: fix: show non 200 responses when not using the proxy
8
+
3
9
  ## 0.7.30
4
10
 
5
11
  ### Patch Changes
package/dist/index.js CHANGED
@@ -7019,12 +7019,14 @@ async function sendRequest(request, proxyUrl) {
7019
7019
  error: false
7020
7020
  };
7021
7021
  }).catch((error) => {
7022
+ const { response: errorResponse } = error;
7022
7023
  return {
7023
- error: true,
7024
- ...error == null ? void 0 : error.response
7024
+ ...errorResponse,
7025
+ statusCode: errorResponse.status,
7026
+ data: JSON.stringify(errorResponse.data)
7025
7027
  };
7026
7028
  });
7027
- return response.error ? null : {
7029
+ return {
7028
7030
  sentTime: Date.now(),
7029
7031
  request: {
7030
7032
  ...request,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@scalar/api-client",
3
3
  "description": "the open source API testing client",
4
- "version": "0.7.30",
4
+ "version": "0.7.31",
5
5
  "author": "Scalar (https://github.com/scalar)",
6
6
  "bugs": "https://github.com/scalar/scalar/issues/new",
7
7
  "dependencies": {
@@ -13,10 +13,10 @@
13
13
  "nanoid": "5.0.1",
14
14
  "pretty-bytes": "6.1.1",
15
15
  "pretty-ms": "8.0.0",
16
+ "@scalar/themes": "0.4.0",
16
17
  "@scalar/use-codemirror": "0.7.12",
17
- "@scalar/use-modal": "0.1.6",
18
18
  "@scalar/use-keyboard-event": "0.5.3",
19
- "@scalar/themes": "0.4.0"
19
+ "@scalar/use-modal": "0.1.6"
20
20
  },
21
21
  "devDependencies": {
22
22
  "@vitejs/plugin-vue": "4.3.4",