@scalar/api-client 2.2.1 → 2.2.2
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 +16 -0
- package/dist/style.css +1 -1
- package/dist/views/Request/RequestSection/RequestBody.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestBody.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestBody.vue2.js +33 -34
- package/dist/views/Request/RequestSection/RequestParams.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestParams.vue.js +30 -30
- package/dist/views/Request/RequestSection/RequestTable.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestTable.vue.js +1 -1
- package/dist/views/Request/RequestSection/RequestTable.vue2.js +42 -44
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseSection.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseSection.vue.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseSection.vue2.js +23 -23
- package/package.json +12 -12
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as _, computed as m, ref as g, openBlock as n, createBlock as i, withCtx as u, createElementVNode as l, normalizeClass as f, createCommentVNode as c, createVNode as v, createElementBlock as y, Fragment as x } from "vue";
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
2
|
+
import j from "../../../components/ContextBar.vue.js";
|
|
3
|
+
import R from "../../../components/ViewLayout/ViewLayoutSection.vue.js";
|
|
4
|
+
import S from "./ResponseBody.vue.js";
|
|
5
5
|
import b from "./ResponseEmpty.vue.js";
|
|
6
6
|
import H from "./ResponseLoadingOverlay.vue.js";
|
|
7
7
|
import V from "./ResponseMetaInformation.vue.js";
|
|
@@ -16,27 +16,27 @@ const E = { class: "flex items-center flex-1 h-8" }, h = 2e5, X = /* @__PURE__ *
|
|
|
16
16
|
},
|
|
17
17
|
setup(k) {
|
|
18
18
|
const t = k, d = m(() => {
|
|
19
|
-
var
|
|
20
|
-
const e = (
|
|
21
|
-
return e ? Object.keys(e).map((
|
|
22
|
-
name:
|
|
23
|
-
value: e[
|
|
19
|
+
var o;
|
|
20
|
+
const e = (o = t.response) == null ? void 0 : o.headers;
|
|
21
|
+
return e ? Object.keys(e).map((s) => ({
|
|
22
|
+
name: s,
|
|
23
|
+
value: e[s],
|
|
24
24
|
required: !1
|
|
25
25
|
})).filter(
|
|
26
|
-
(
|
|
26
|
+
(s) => ![
|
|
27
27
|
"rest-api-client-content-length",
|
|
28
28
|
"X-API-Client-Content-Length"
|
|
29
|
-
].includes(
|
|
29
|
+
].includes(s.name)
|
|
30
30
|
) : [];
|
|
31
31
|
}), B = m(
|
|
32
32
|
() => {
|
|
33
33
|
var e;
|
|
34
|
-
return ((e = t.response) == null ? void 0 : e.cookieHeaderKeys.flatMap((
|
|
34
|
+
return ((e = t.response) == null ? void 0 : e.cookieHeaderKeys.flatMap((o) => {
|
|
35
35
|
var r, p;
|
|
36
|
-
const
|
|
37
|
-
return
|
|
38
|
-
name:
|
|
39
|
-
value:
|
|
36
|
+
const s = (p = (r = t.response) == null ? void 0 : r.headers) == null ? void 0 : p[o];
|
|
37
|
+
return s ? {
|
|
38
|
+
name: o,
|
|
39
|
+
value: s,
|
|
40
40
|
required: !1
|
|
41
41
|
} : [];
|
|
42
42
|
})) ?? [];
|
|
@@ -74,32 +74,32 @@ const E = { class: "flex items-center flex-1 h-8" }, h = 2e5, X = /* @__PURE__ *
|
|
|
74
74
|
"application/x-www-form-urlencoded"
|
|
75
75
|
].some((T) => e.includes(T)) && (t.response.size ?? 0) > h;
|
|
76
76
|
});
|
|
77
|
-
return (e,
|
|
77
|
+
return (e, o) => (n(), i(R, { "aria-label": "Response" }, {
|
|
78
78
|
title: u(() => [
|
|
79
79
|
l("div", E, [
|
|
80
80
|
l("div", {
|
|
81
81
|
"aria-live": "polite",
|
|
82
82
|
class: f(["flex items-center", { "animate-response-heading": e.response }])
|
|
83
83
|
}, [
|
|
84
|
-
|
|
84
|
+
o[1] || (o[1] = l("span", { class: "response-heading absolute pointer-events-none" }, " Response ", -1)),
|
|
85
85
|
e.response ? (n(), i(V, {
|
|
86
86
|
key: 0,
|
|
87
87
|
class: "animate-response-children",
|
|
88
88
|
response: e.response
|
|
89
89
|
}, null, 8, ["response"])) : c("", !0)
|
|
90
90
|
], 2),
|
|
91
|
-
v(
|
|
91
|
+
v(j, {
|
|
92
92
|
activeSection: a.value,
|
|
93
93
|
sections: C,
|
|
94
|
-
onSetActiveSection:
|
|
94
|
+
onSetActiveSection: o[0] || (o[0] = (s) => a.value = s)
|
|
95
95
|
}, null, 8, ["activeSection"])
|
|
96
96
|
])
|
|
97
97
|
]),
|
|
98
98
|
default: u(() => {
|
|
99
|
-
var
|
|
99
|
+
var s;
|
|
100
100
|
return [
|
|
101
101
|
l("div", {
|
|
102
|
-
class: f(["custom-scroll h-full relative grid gap-[.5px] px-2 xl:px-3 py-2.5", {
|
|
102
|
+
class: f(["custom-scroll h-full relative grid gap-[.5px] px-2 xl:px-3 py-2.5 justify-stretch", {
|
|
103
103
|
"content-start": e.response
|
|
104
104
|
}])
|
|
105
105
|
}, [
|
|
@@ -116,10 +116,10 @@ const E = { class: "flex items-center flex-1 h-8" }, h = 2e5, X = /* @__PURE__ *
|
|
|
116
116
|
A.value ? (n(), i(w, {
|
|
117
117
|
key: 0,
|
|
118
118
|
content: t.response.data
|
|
119
|
-
}, null, 8, ["content"])) : (n(), i(
|
|
119
|
+
}, null, 8, ["content"])) : (n(), i(S, {
|
|
120
120
|
key: 1,
|
|
121
121
|
active: !0,
|
|
122
|
-
data: (
|
|
122
|
+
data: (s = t.response) == null ? void 0 : s.data,
|
|
123
123
|
headers: d.value,
|
|
124
124
|
title: "Body"
|
|
125
125
|
}, null, 8, ["data", "headers"]))
|
package/package.json
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"rest",
|
|
19
19
|
"testing"
|
|
20
20
|
],
|
|
21
|
-
"version": "2.2.
|
|
21
|
+
"version": "2.2.2",
|
|
22
22
|
"engines": {
|
|
23
23
|
"node": ">=18"
|
|
24
24
|
},
|
|
@@ -155,20 +155,20 @@
|
|
|
155
155
|
"whatwg-mimetype": "^4.0.0",
|
|
156
156
|
"yaml": "^2.4.5",
|
|
157
157
|
"zod": "^3.23.8",
|
|
158
|
-
"@scalar/components": "0.12.
|
|
159
|
-
"@scalar/draggable": "0.1.7",
|
|
158
|
+
"@scalar/components": "0.12.75",
|
|
160
159
|
"@scalar/icons": "0.1.2",
|
|
160
|
+
"@scalar/draggable": "0.1.7",
|
|
161
161
|
"@scalar/import": "0.1.2",
|
|
162
|
-
"@scalar/oas-utils": "0.2.
|
|
162
|
+
"@scalar/oas-utils": "0.2.80",
|
|
163
163
|
"@scalar/object-utils": "1.1.12",
|
|
164
|
-
"@scalar/openapi-parser": "0.8.10",
|
|
165
164
|
"@scalar/openapi-types": "0.1.5",
|
|
166
|
-
"@scalar/
|
|
167
|
-
"@scalar/types": "0.0.
|
|
168
|
-
"@scalar/use-codemirror": "0.11.
|
|
169
|
-
"@scalar/use-hooks": "0.1.3",
|
|
165
|
+
"@scalar/openapi-parser": "0.8.10",
|
|
166
|
+
"@scalar/types": "0.0.21",
|
|
167
|
+
"@scalar/use-codemirror": "0.11.42",
|
|
170
168
|
"@scalar/use-toasts": "0.7.7",
|
|
171
|
-
"@scalar/use-
|
|
169
|
+
"@scalar/use-hooks": "0.1.4",
|
|
170
|
+
"@scalar/use-tooltip": "1.0.4",
|
|
171
|
+
"@scalar/themes": "0.9.51"
|
|
172
172
|
},
|
|
173
173
|
"devDependencies": {
|
|
174
174
|
"@types/js-cookie": "^3.0.6",
|
|
@@ -185,8 +185,8 @@
|
|
|
185
185
|
"vite": "^5.4.10",
|
|
186
186
|
"vite-svg-loader": "^5.1.0",
|
|
187
187
|
"vitest": "^1.6.0",
|
|
188
|
-
"@scalar/
|
|
189
|
-
"@scalar/
|
|
188
|
+
"@scalar/build-tooling": "0.1.12",
|
|
189
|
+
"@scalar/galaxy": "0.2.16"
|
|
190
190
|
},
|
|
191
191
|
"scripts": {
|
|
192
192
|
"build": "vite build && pnpm types:build && tsc-alias -p tsconfig.build.json",
|