@scalar/api-client 1.2.16 → 1.2.17

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
+ ## 1.2.17
4
+
5
+ ### Patch Changes
6
+
7
+ - d649691: fix: request body display
8
+
3
9
  ## 1.2.16
4
10
 
5
11
  ### Patch Changes
@@ -1 +1 @@
1
- {"version":3,"file":"Request.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/ApiClient/Request/Request.vue.ts"],"names":[],"mappings":";AAsOA,wBAKG"}
1
+ {"version":3,"file":"Request.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/ApiClient/Request/Request.vue.ts"],"names":[],"mappings":";AAgPA,wBAKG"}
package/dist/index.js CHANGED
@@ -32673,6 +32673,10 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
32673
32673
  );
32674
32674
  }
32675
32675
  );
32676
+ const showRequestBody = computed(() => {
32677
+ const requestType = activeRequest2.type.toLowerCase();
32678
+ return requestType === "put" || requestType === "post" || requestType === "patch";
32679
+ });
32676
32680
  return (_ctx, _cache) => {
32677
32681
  return openBlock(), createElementBlock("div", _hoisted_1$8, [
32678
32682
  createElementVNode("div", _hoisted_2$3, [
@@ -32708,11 +32712,12 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
32708
32712
  generatedQueries: authenticationRequest.value.queryString,
32709
32713
  queries: unref(activeRequest2).query
32710
32714
  }, null, 8, ["generatedQueries", "queries"]),
32711
- createVNode(_sfc_main$f, {
32715
+ showRequestBody.value ? (openBlock(), createBlock(_sfc_main$f, {
32716
+ key: 0,
32712
32717
  body: unref(activeRequest2).body,
32713
32718
  formData: unref(activeRequest2).formData,
32714
32719
  requestBody: unref(activeRequest2).body
32715
- }, null, 8, ["body", "formData", "requestBody"]),
32720
+ }, null, 8, ["body", "formData", "requestBody"])) : createCommentVNode("", true),
32716
32721
  _hoisted_6$1
32717
32722
  ])
32718
32723
  ]);
package/package.json CHANGED
@@ -18,7 +18,7 @@
18
18
  "rest",
19
19
  "testing"
20
20
  ],
21
- "version": "1.2.16",
21
+ "version": "1.2.17",
22
22
  "engines": {
23
23
  "node": ">=18"
24
24
  },
@@ -42,11 +42,11 @@
42
42
  "nanoid": "^5.0.1",
43
43
  "pretty-bytes": "^6.1.1",
44
44
  "pretty-ms": "^8.0.0",
45
- "@scalar/components": "0.7.3",
46
45
  "@scalar/themes": "0.7.9",
47
- "@scalar/use-modal": "0.3.3",
46
+ "@scalar/components": "0.7.3",
48
47
  "@scalar/use-codemirror": "0.10.3",
49
- "@scalar/use-tooltip": "0.6.2"
48
+ "@scalar/use-tooltip": "0.6.2",
49
+ "@scalar/use-modal": "0.3.3"
50
50
  },
51
51
  "devDependencies": {
52
52
  "@types/content-type": "^1.1.6",
@@ -59,8 +59,8 @@
59
59
  "vue": "^3.4.21",
60
60
  "vue-tsc": "^1.8.19",
61
61
  "@scalar/api-client-proxy": "0.5.27",
62
- "@scalar/echo-server": "0.6.4",
63
- "@scalar/oas-utils": "0.1.10"
62
+ "@scalar/oas-utils": "0.1.10",
63
+ "@scalar/echo-server": "0.6.4"
64
64
  },
65
65
  "peerDependencies": {
66
66
  "vue": "^3.3.0",