@scalar/api-client 2.2.10 → 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 CHANGED
@@ -1,5 +1,19 @@
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
+
3
17
  ## 2.2.10
4
18
 
5
19
  ### 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 O } from "@scalar/oas-utils/helpers";
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: U } = N(n.method, o, c);
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()]]), _ = O(m, d) ? `${m}?${S.toString()}` : d, L = new Request(_, {
143
- method: n.method,
144
- body: U,
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
- O(m, d)
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,