@scalar/api-client 0.8.6 → 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 +8 -0
- package/dist/index.js +4 -7
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
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() ===
|
|
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
|
-
|
|
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
|
-
|
|
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.
|
|
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.
|
|
47
|
+
"@scalar/use-codemirror": "0.7.17",
|
|
48
48
|
"@scalar/use-keyboard-event": "0.5.6",
|
|
49
49
|
"@scalar/use-modal": "0.2.1"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
|
-
"@scalar/use-codemirror": "^0.7.
|
|
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",
|