@scalar/api-reference 1.24.25 → 1.24.27

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,20 @@
1
1
  # @scalar/api-reference
2
2
 
3
+ ## 1.24.27
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [a01df62]
8
+ - @scalar/oas-utils@0.2.8
9
+ - @scalar/api-client@2.0.4
10
+
11
+ ## 1.24.26
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies [9f208d5]
16
+ - @scalar/api-client@2.0.3
17
+
3
18
  ## 1.24.25
4
19
 
5
20
  ### Patch Changes
@@ -18499,15 +18499,15 @@ var t,n,r,o,i;const a=[],s=[],l=(e=>{if("string"!=typeof e)return e
18499
18499
  ;const p=new Set
18500
18500
  ;Object.entries((null==u?void 0:u.paths)||{}).forEach((([e,t])=>{if(!t)return
18501
18501
  ;["get","put","post","delete","options","head","patch","trace"].forEach((n=>{
18502
- var r;const o=t[n];if(!o)return
18503
- ;if("$ref"in o)return void a.push(`${n.toUpperCase}:${e} - Importing of $ref paths is not yet supported`)
18504
- ;const i={path:{},query:{},headers:{},cookies:{}}
18505
- ;null==(r=o.parameters)||r.forEach((e=>{const t=e
18506
- ;"name"in t&&R8[t.in]&&(i[R8[t.in]][t.name]=t)}));const l=T8({
18507
- method:n.toUpperCase(),path:e,tags:o.tags||["default"],
18508
- description:o.description,operationId:o.operationId,security:o.security,
18509
- summary:o.summary,externalDocs:o.externalDocs,requestBody:o.requestBody,
18510
- parameters:i});l.tags.forEach((e=>p.add(e))),s.push(l)}))}))
18502
+ const r=t[n];if(!r)return
18503
+ ;if("$ref"in r)return void a.push(`${n.toUpperCase}:${e} - Importing of $ref paths is not yet supported`)
18504
+ ;const o={path:{},query:{},headers:{},cookies:{}}
18505
+ ;[...t.parameters||[],...r.parameters||[]].filter((e=>e)).forEach((e=>{const t=e
18506
+ ;"name"in t&&R8[t.in]&&(o[R8[t.in]][t.name]=t)}));const i=T8({
18507
+ method:n.toUpperCase(),path:e,tags:r.tags||["default"],
18508
+ description:r.description,operationId:r.operationId,security:r.security,
18509
+ summary:r.summary,externalDocs:r.externalDocs,requestBody:r.requestBody,
18510
+ parameters:o});i.tags.forEach((e=>p.add(e))),s.push(i)}))}))
18511
18511
  ;const h=function(e,t,n=!0){if(n){const n=t.safeParse(e)
18512
18512
  ;if(!n.success)throw console.error("Zod Schema Error"),
18513
18513
  console.group(),n.error.issues.forEach((e=>{
@@ -25619,8 +25619,9 @@ s["Content-Type"]="multipart/form-data";const e=new FormData
25619
25619
  t.key&&t.value?e.append(t.key,t.value):t.file&&e.append(t.file.name,t.file)
25620
25620
  })),l=e)}const c=[],[u,d]=a.split("?")
25621
25621
  ;new URLSearchParams(d??"").forEach(((e,t)=>{c.push({key:t,value:e,enabled:!0})
25622
- }));const p={...Vme(t.parameters.query.filter((({enabled:e})=>e))),...Vme(c)
25623
- },h={...Vme((t.parameters.cookies??[]).filter((({enabled:e})=>e)))}
25622
+ }));const p={
25623
+ ...Vme(t.parameters.query.filter((({enabled:e})=>e)).filter((({value:e})=>""!==e))),
25624
+ ...Vme(c)},h={...Vme((t.parameters.cookies??[]).filter((({enabled:e})=>e)))}
25624
25625
  ;if(null!=r&&r.scheme){const{scheme:e}=r
25625
25626
  ;if("apiKey"===e.type&&e.value)switch(e.in){case"cookie":h[e.name]=e.value;break
25626
25627
  ;case"query":p[e.name]=e.value;break;case"header":s[e.name]=e.value