@scalar/api-reference 1.31.17 → 1.31.18

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.
@@ -14,8 +14,8 @@ function d(e) {
14
14
  t.push(p(n, e.schema));
15
15
  const s = r[n];
16
16
  s.type === "object" && !!s.properties && s.properties && Object.keys(s.properties).forEach((u) => {
17
- var a, f;
18
- t.push(`${u} ${(f = (a = s.properties) == null ? void 0 : a[u]) == null ? void 0 : f.type}`);
17
+ var f, a;
18
+ t.push(`${u} ${(a = (f = s.properties) == null ? void 0 : f[u]) == null ? void 0 : a.type}`);
19
19
  });
20
20
  }), t;
21
21
  }
@@ -30,7 +30,7 @@ function O(e) {
30
30
  return !1;
31
31
  }
32
32
  }
33
- function y(e) {
33
+ function m(e) {
34
34
  var r, i;
35
35
  if (!e)
36
36
  return {};
@@ -46,13 +46,13 @@ function y(e) {
46
46
  (((s = t[n]) == null ? void 0 : s["x-internal"]) === !0 || ((c = t[n]) == null ? void 0 : c["x-scalar-ignore"]) === !0) && delete t[n];
47
47
  }), t;
48
48
  }
49
- const x = (e) => e ? !!Object.keys(y(e) ?? {}).length : !1;
49
+ const x = (e) => e ? !!Object.keys(m(e) ?? {}).length : !1;
50
50
  function l(e, t) {
51
51
  for (const [r, i] of Object.entries(e))
52
- i !== null && typeof i == "object" ? (t[r] ??= new i.__proto__.constructor(), l(i, t[r])) : typeof i < "u" && (t[r] = i);
52
+ i !== null && typeof i == "object" ? (t[r] ?? (t[r] = new i.__proto__.constructor()), l(i, t[r])) : typeof i < "u" && (t[r] = i);
53
53
  return t;
54
54
  }
55
- function g(e) {
55
+ function b(e) {
56
56
  return l(e ?? {}, {
57
57
  info: {
58
58
  title: "",
@@ -71,24 +71,24 @@ function g(e) {
71
71
  tags: []
72
72
  });
73
73
  }
74
- function b(e) {
74
+ function E(e) {
75
75
  return e.deprecated !== void 0 ? e.deprecated : !!(e["x-scalar-stability"] && e["x-scalar-stability"] === o.Deprecated);
76
76
  }
77
- function m(e) {
77
+ function y(e) {
78
78
  return e.deprecated ? o.Deprecated : e["x-scalar-stability"];
79
79
  }
80
- function E(e) {
81
- const t = m(e);
80
+ function S(e) {
81
+ const t = y(e);
82
82
  return t === o.Deprecated ? "text-red" : t === o.Experimental ? "text-orange" : t === o.Stable ? "text-green" : "";
83
83
  }
84
84
  export {
85
- g as createEmptySpecification,
85
+ b as createEmptySpecification,
86
86
  l as deepMerge,
87
87
  O as extractRequestBody,
88
88
  p as formatProperty,
89
- y as getModels,
90
- m as getOperationStability,
91
- E as getOperationStabilityColor,
89
+ m as getModels,
90
+ y as getOperationStability,
91
+ S as getOperationStabilityColor,
92
92
  x as hasModels,
93
- b as isOperationDeprecated
93
+ E as isOperationDeprecated
94
94
  };