@scalar/api-client 0.8.5 → 0.8.7

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,19 @@
1
1
  # @scalar/api-client
2
2
 
3
+ ## 0.8.7
4
+
5
+ ### Patch Changes
6
+
7
+ - c171c9d9: fix: request body doesn’t reset on navigating to a request without a body
8
+ - Updated dependencies [c171c9d9]
9
+ - @scalar/use-codemirror@0.7.17
10
+
11
+ ## 0.8.6
12
+
13
+ ### Patch Changes
14
+
15
+ - 06f800cc: fix: regression ui bugs
16
+
3
17
  ## 0.8.5
4
18
 
5
19
  ### Patch Changes
package/dist/index.js CHANGED
@@ -24957,8 +24957,8 @@ const useCodeMirror = (parameters) => {
24957
24957
  if (value.value === newValue) {
24958
24958
  return;
24959
24959
  }
24960
- value.value = newValue;
24961
- if (codeMirror.value.state.doc.toString() === newValue) {
24960
+ value.value = newValue ?? "";
24961
+ if (codeMirror.value.state.doc.toString() === value.value) {
24962
24962
  return;
24963
24963
  }
24964
24964
  codeMirror.value.dispatch({
@@ -24970,7 +24970,7 @@ const useCodeMirror = (parameters) => {
24970
24970
  selection: {
24971
24971
  anchor: Math.min(
24972
24972
  codeMirror.value.state.selection.main.anchor,
24973
- newValue.length
24973
+ value.value.length
24974
24974
  )
24975
24975
  }
24976
24976
  });
@@ -25160,10 +25160,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
25160
25160
  watch(
25161
25161
  () => props.content,
25162
25162
  () => {
25163
- var _a2;
25164
- if ((_a2 = props.content) == null ? void 0 : _a2.length) {
25165
- setCodeMirrorContent(props.content);
25166
- }
25163
+ setCodeMirrorContent(props.content);
25167
25164
  }
25168
25165
  );
25169
25166
  watch(
package/package.json CHANGED
@@ -13,7 +13,7 @@
13
13
  "rest",
14
14
  "testing"
15
15
  ],
16
- "version": "0.8.5",
16
+ "version": "0.8.7",
17
17
  "engines": {
18
18
  "node": ">=20"
19
19
  },
@@ -44,12 +44,12 @@
44
44
  "pretty-ms": "^8.0.0",
45
45
  "vue": "^3.3.0",
46
46
  "@scalar/themes": "0.5.1",
47
- "@scalar/use-codemirror": "0.7.16",
48
- "@scalar/use-modal": "0.2.1",
49
- "@scalar/use-keyboard-event": "0.5.6"
47
+ "@scalar/use-codemirror": "0.7.17",
48
+ "@scalar/use-keyboard-event": "0.5.6",
49
+ "@scalar/use-modal": "0.2.1"
50
50
  },
51
51
  "devDependencies": {
52
- "@scalar/use-codemirror": "^0.7.16",
52
+ "@scalar/use-codemirror": "^0.7.17",
53
53
  "@types/content-type": "^1.1.6",
54
54
  "@vitejs/plugin-vue": "^4.4.0",
55
55
  "@vitest/coverage-v8": "^0.34.4",