@scalar/api-reference 1.25.53 → 1.25.55

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.
@@ -1 +1 @@
1
- {"version":3,"file":"useHttpClientStore.d.ts","sourceRoot":"","sources":["../../src/stores/useHttpClientStore.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AACzD,OAAO,EAAE,KAAK,QAAQ,EAAkC,MAAM,kBAAkB,CAAA;AAChF,OAAO,EAAE,KAAK,GAAG,EAAqC,MAAM,KAAK,CAAA;AAEjE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAA;AAO/C;;;GAGG;AACH,iBAAS,cAAc,CAAC,MAAM,EAAE,eAAe,UAK9C;AAED;;;GAGG;AACH,iBAAS,cAAc,CAAC,MAAM,EAAE,eAAe,UAO9C;AAYD;;GAEG;AACH,wBAAgB,mBAAmB,CACjC,OAAO,EAAE,eAAe,EAAE,EAC1B,OAAO,EAAE,GAAG,CAAC,aAAa,CAAC,GAC1B,eAAe,EAAE,CAiDnB;AAqBD,+BAA+B;AAC/B,MAAM,MAAM,eAAe,GAAG;IAAE,SAAS,EAAE,QAAQ,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAE,CAAA;AAYxE,iBAAS,oBAAoB,CAAC,UAAU,CAAC,EAAE,eAAe,QAQzD;AAmCD,iBAAS,UAAU,SAElB;AAYD,kEAAkE;AAClE,eAAO,MAAM,kBAAkB;;4BAtEY,QAAQ;4BAAa,MAAM;;;8BA8DrC,OAAO,CAAC,eAAe,CAAC;;qBAcP,GAAG,CAAC,aAAa,CAAC;4BACxC,aAAa;;;;;;CAaxC,CAAA"}
1
+ {"version":3,"file":"useHttpClientStore.d.ts","sourceRoot":"","sources":["../../src/stores/useHttpClientStore.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AACzD,OAAO,EAAE,KAAK,QAAQ,EAAkC,MAAM,kBAAkB,CAAA;AAChF,OAAO,EAAE,KAAK,GAAG,EAAqC,MAAM,KAAK,CAAA;AAEjE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAA;AAO/C;;;GAGG;AACH,iBAAS,cAAc,CAAC,MAAM,EAAE,eAAe,UAK9C;AAED;;;GAGG;AACH,iBAAS,cAAc,CAAC,MAAM,EAAE,eAAe,UAO9C;AAYD;;GAEG;AACH,wBAAgB,mBAAmB,CACjC,OAAO,EAAE,eAAe,EAAE,EAC1B,OAAO,EAAE,GAAG,CAAC,aAAa,CAAC,GAC1B,eAAe,EAAE,CAkDnB;AAqBD,+BAA+B;AAC/B,MAAM,MAAM,eAAe,GAAG;IAAE,SAAS,EAAE,QAAQ,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAE,CAAA;AAYxE,iBAAS,oBAAoB,CAAC,UAAU,CAAC,EAAE,eAAe,QAQzD;AAmCD,iBAAS,UAAU,SAElB;AAYD,kEAAkE;AAClE,eAAO,MAAM,kBAAkB;;4BAtEY,QAAQ;4BAAa,MAAM;;;8BA8DrC,OAAO,CAAC,eAAe,CAAC;;qBAcP,GAAG,CAAC,aAAa,CAAC;4BACxC,aAAa;;;;;;CAaxC,CAAA"}
@@ -1,6 +1,6 @@
1
1
  import { objectMerge as T } from "@scalar/oas-utils/helpers";
2
2
  import { availableTargets as m } from "httpsnippet-lite";
3
- import { computed as o, ref as k, reactive as A, readonly as f } from "vue";
3
+ import { computed as a, ref as k, reactive as A, readonly as f } from "vue";
4
4
  const y = {
5
5
  targetKey: "shell",
6
6
  clientKey: "curl"
@@ -13,18 +13,18 @@ function C(e) {
13
13
  var n, t;
14
14
  return ((t = (n = l.value.find((i) => i.key === e.targetKey)) == null ? void 0 : n.clients.find((i) => i.key === e.clientKey)) == null ? void 0 : t.title) ?? e.clientKey;
15
15
  }
16
- const b = o(() => p(r)), H = o(() => C(r));
17
- function h(e, n) {
16
+ const b = a(() => p(r)), h = a(() => C(r));
17
+ function H(e, n) {
18
18
  return n.value === !0 ? [] : e.flatMap((t) => {
19
19
  var i;
20
20
  return typeof n.value != "object" ? [] : Array.isArray(n.value) ? (t.clients = t.clients.filter(
21
21
  // @ts-expect-error Typescript, chill. It’s all good. It has to be an array.
22
22
  (s) => !n.value.includes(s.key)
23
- ), [t]) : n.value[t.key] === !0 ? [] : (Array.isArray(n.value[t.key]) && (t.clients = t.clients.filter((s) => !// @ts-expect-error We checked whether it’s an Array already.
23
+ ), t.clients.length ? [t] : []) : n.value[t.key] === !0 ? [] : (Array.isArray(n.value[t.key]) && (t.clients = t.clients.filter((s) => !// @ts-expect-error We checked whether it’s an Array already.
24
24
  n.value[t.key].includes(s.key))), (i = t == null ? void 0 : t.clients) != null && i.length ? [t] : []);
25
25
  });
26
26
  }
27
- const l = o(() => {
27
+ const l = a(() => {
28
28
  var n;
29
29
  const e = m();
30
30
  return (n = e.find((t) => t.key === "node")) == null || n.clients.unshift({
@@ -32,18 +32,18 @@ const l = o(() => {
32
32
  key: "undici",
33
33
  link: "https://github.com/nodejs/undici",
34
34
  title: "undici"
35
- }), h(e, c);
35
+ }), H(e, c);
36
36
  }), d = {
37
37
  node: ["unirest"]
38
38
  }, c = k({
39
39
  ...d === !0 ? {} : d
40
- }), a = k();
40
+ }), o = k();
41
41
  function E(e) {
42
- e !== void 0 && (a.value = e, K(u()));
42
+ e !== void 0 && (o.value = e, K(u()));
43
43
  }
44
44
  const u = () => {
45
45
  var e, n, t, i;
46
- return v(a.value) ? a.value : v(y) ? y : {
46
+ return v(o.value) ? o.value : v(y) ? y : {
47
47
  targetKey: (e = l.value[0]) == null ? void 0 : e.key,
48
48
  clientKey: (i = (t = (n = l.value[0]) == null ? void 0 : n.clients) == null ? void 0 : t[0]) == null ? void 0 : i.key
49
49
  };
@@ -74,9 +74,9 @@ const r = A(u()), K = (e) => {
74
74
  getClientTitle: C,
75
75
  getTargetTitle: p,
76
76
  httpTargetTitle: b,
77
- httpClientTitle: H
77
+ httpClientTitle: h
78
78
  });
79
79
  export {
80
- h as filterHiddenClients,
80
+ H as filterHiddenClients,
81
81
  _ as useHttpClientStore
82
82
  };