@scalar/api-client 0.8.6 → 0.8.8
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 +14 -0
- package/dist/index.js +6 -10
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @scalar/api-client
|
|
2
2
|
|
|
3
|
+
## 0.8.8
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 0e0f34b3: fix: cleanup safari bugs
|
|
8
|
+
|
|
9
|
+
## 0.8.7
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- c171c9d9: fix: request body doesn’t reset on navigating to a request without a body
|
|
14
|
+
- Updated dependencies [c171c9d9]
|
|
15
|
+
- @scalar/use-codemirror@0.7.17
|
|
16
|
+
|
|
3
17
|
## 0.8.6
|
|
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() ===
|
|
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(
|
|
@@ -25560,9 +25557,8 @@ const concatenateUrlAndPath = (url, path) => {
|
|
|
25560
25557
|
return [urlWithSlash, pathWithoutSlash].join("");
|
|
25561
25558
|
};
|
|
25562
25559
|
const findVariables = (value) => {
|
|
25563
|
-
|
|
25564
|
-
|
|
25565
|
-
return ((_a2 = value.match(regex)) == null ? void 0 : _a2.map((variable2) => variable2.trim())) || [];
|
|
25560
|
+
const regex = /(?:\{+)\s*(\w+)\s*(?:\}+)/g;
|
|
25561
|
+
return [...value.matchAll(regex)].map((match) => match[1].trim()) || [];
|
|
25566
25562
|
};
|
|
25567
25563
|
const isJsonString = (value) => {
|
|
25568
25564
|
if (typeof value !== "string") {
|
package/package.json
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"rest",
|
|
14
14
|
"testing"
|
|
15
15
|
],
|
|
16
|
-
"version": "0.8.
|
|
16
|
+
"version": "0.8.8",
|
|
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",
|