@scalar/api-client 2.2.9 → 2.2.11
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 +28 -0
- package/dist/libs/send-request/send-request.js +6 -6
- package/dist/style.css +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.js +12 -12
- package/dist/views/Request/RequestSection/RequestBody.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestBody.vue.js +1 -1
- package/dist/views/Request/RequestSection/RequestBody.vue2.js +40 -36
- package/dist/views/Request/RequestSidebar.vue.js +1 -1
- package/dist/views/Request/RequestSidebar.vue2.js +44 -44
- package/dist/views/Request/RequestSidebarItem.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebarItem.vue.js +2 -2
- package/dist/views/Request/RequestSidebarItem.vue2.js +115 -122
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue.js +2 -2
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +11 -11
- package/dist/views/Request/components/WorkspaceDropdown.vue.js +2 -2
- package/package.json +9 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,33 @@
|
|
|
1
1
|
# @scalar/api-client
|
|
2
2
|
|
|
3
|
+
## 2.2.11
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 371a105: style: updates request sidebar item mask
|
|
8
|
+
- f2ec4f2: fix: updates request body selected example function
|
|
9
|
+
- 035d9af: style: re-orders empty response actions
|
|
10
|
+
- 8687842: fix(api-reference): scope ui in reference
|
|
11
|
+
- e05c29f: fix: updates watch mode toast watcher
|
|
12
|
+
- Updated dependencies [8017ff9]
|
|
13
|
+
- @scalar/oas-utils@0.2.87
|
|
14
|
+
- @scalar/import@0.2.6
|
|
15
|
+
- @scalar/postman-to-openapi@0.1.10
|
|
16
|
+
|
|
17
|
+
## 2.2.10
|
|
18
|
+
|
|
19
|
+
### Patch Changes
|
|
20
|
+
|
|
21
|
+
- 749ebf1: fix: updates workspace dropdown tooltip index
|
|
22
|
+
- 02e6a57: fix: displays sidebar request button on client only
|
|
23
|
+
- Updated dependencies [749ebf1]
|
|
24
|
+
- Updated dependencies [6fef2f3]
|
|
25
|
+
- @scalar/components@0.13.4
|
|
26
|
+
- @scalar/openapi-parser@0.9.0
|
|
27
|
+
- @scalar/use-codemirror@0.11.48
|
|
28
|
+
- @scalar/import@0.2.5
|
|
29
|
+
- @scalar/oas-utils@0.2.86
|
|
30
|
+
|
|
3
31
|
## 2.2.9
|
|
4
32
|
|
|
5
33
|
### Patch Changes
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ERRORS as v, normalizeError as B } from "../errors.js";
|
|
2
2
|
import { normalizeHeaders as q } from "../normalize-headers.js";
|
|
3
3
|
import { replaceTemplateVariables as f } from "../string-template.js";
|
|
4
|
-
import { canMethodHaveBody as A, isRelativePath as C, concatenateUrlAndPath as F, shouldUseProxy as
|
|
4
|
+
import { canMethodHaveBody as A, isRelativePath as C, concatenateUrlAndPath as F, shouldUseProxy as U } from "@scalar/oas-utils/helpers";
|
|
5
5
|
import g from "js-cookie";
|
|
6
6
|
import M from "whatwg-mimetype";
|
|
7
7
|
import { textMediaTypes as z } from "../../views/Request/consts/mediaTypes.js";
|
|
@@ -103,7 +103,7 @@ const T = "YOUR_SECRET_TOKEN", ee = ({
|
|
|
103
103
|
Object.entries((t == null ? void 0 : t.variables) ?? {}).forEach(([u, e]) => {
|
|
104
104
|
d = f(d, { [u]: e.default });
|
|
105
105
|
});
|
|
106
|
-
const D = W(o, c), k = K(o, c), { body:
|
|
106
|
+
const D = W(o, c), k = K(o, c), { body: O } = N(n.method, o, c);
|
|
107
107
|
if (j({
|
|
108
108
|
example: o,
|
|
109
109
|
env: c,
|
|
@@ -139,9 +139,9 @@ const T = "YOUR_SECRET_TOKEN", ee = ({
|
|
|
139
139
|
...D
|
|
140
140
|
]).toString(), d = s.toString();
|
|
141
141
|
}
|
|
142
|
-
const S = new URLSearchParams([["scalar_url", d.toString()]]), _ =
|
|
143
|
-
method: n.method,
|
|
144
|
-
body:
|
|
142
|
+
const S = new URLSearchParams([["scalar_url", d.toString()]]), _ = U(m, d) ? `${m}?${S.toString()}` : d, L = new Request(_, {
|
|
143
|
+
method: n.method.toUpperCase(),
|
|
144
|
+
body: O,
|
|
145
145
|
headers: k
|
|
146
146
|
});
|
|
147
147
|
return [
|
|
@@ -158,7 +158,7 @@ const T = "YOUR_SECRET_TOKEN", ee = ({
|
|
|
158
158
|
i == null || i.emit("stop");
|
|
159
159
|
const w = q(
|
|
160
160
|
e.headers,
|
|
161
|
-
|
|
161
|
+
U(m, d)
|
|
162
162
|
), s = e.headers.get("content-type") ?? "text/plain;charset=UTF-8", b = await e.arrayBuffer(), R = H(b, s), $ = "getSetCookie" in e.headers && typeof e.headers.getSetCookie == "function" ? e.headers.getSetCookie() : [];
|
|
163
163
|
return [
|
|
164
164
|
null,
|