@scalar/api-reference 1.25.26 → 1.25.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 +9 -0
- package/dist/browser/standalone.js +16 -15
- package/dist/browser/webpack-stats.json +1 -1
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* ___/ / /___/ ___ |/ /___/ ___ |/ _, _/
|
|
6
6
|
* /____/\____/_/ |_/_____/_/ |_/_/ |_|
|
|
7
7
|
*
|
|
8
|
-
* @scalar/api-reference 1.25.
|
|
8
|
+
* @scalar/api-reference 1.25.27
|
|
9
9
|
*
|
|
10
10
|
* Website: https://scalar.com
|
|
11
11
|
* GitHub: https://github.com/scalar/scalar
|
|
@@ -13581,10 +13581,10 @@ function pM(...e){return{type:"element",tagName:"span",properties:{
|
|
|
13581
13581
|
class:["line"]},children:e}}function hM(e){
|
|
13582
13582
|
return sM(e)&&/\r?\n/.test(e.value)||lM(e)&&e.children.some(hM)}
|
|
13583
13583
|
function fM(e,t){
|
|
13584
|
-
const n=("string"==typeof(null==t?void 0:t.maskCredentials)?[t.maskCredentials]:(null==t?void 0:t.maskCredentials)??[]).filter((e=>!(e.length<3)
|
|
13585
|
-
|
|
13586
|
-
|
|
13587
|
-
|
|
13584
|
+
const n=("string"==typeof(null==t?void 0:t.maskCredentials)?[t.maskCredentials]:(null==t?void 0:t.maskCredentials)??[]).filter((e=>!(e.length<3))),r=`language-${lP[t.lang]??t.lang}`
|
|
13585
|
+
;var o;const i=gT().use(aM,{fragment:!0}).use((o=e,()=>e=>{tg(e,"element",(e=>{
|
|
13586
|
+
"code"===e.tagName&&e.children.push({type:"text",value:o})}))})).use(uP,{
|
|
13587
|
+
languages:t.languages
|
|
13588
13588
|
}).use((null==t?void 0:t.lineNumbers)?uM:()=>{}).use(ck).processSync(`<pre><code class="${r}"></code></pre>`).toString()
|
|
13589
13589
|
;return n.length?i.replace(new RegExp(n.join("|"),"g"),(e=>`<span class="credentials">${e}</span>`)):i
|
|
13590
13590
|
}const mM={parse:e=>{const t=JSON.parse(e)
|
|
@@ -19693,10 +19693,11 @@ const e=n.value[w8.Request],t=r[n.value.collection]||r[j.value.collections[0]],o
|
|
|
19693
19693
|
params:{...S8.currentRoute.value.params,[e]:"default"}})}(w8.Request,o),o
|
|
19694
19694
|
})),z=Ta((()=>{var e
|
|
19695
19695
|
;const t="default"===n.value[w8.Examples]?(null==(e=q.value)?void 0:e.examples[0])||"":n.value[w8.Examples]
|
|
19696
|
-
;return c[t]})),H=Ta((()=>{var e;const
|
|
19697
|
-
;if(
|
|
19698
|
-
;return null==(
|
|
19699
|
-
;const
|
|
19696
|
+
;return c[t]})),H=Ta((()=>{var e,t;const n=null==(e=q.value)?void 0:e.uid
|
|
19697
|
+
;if(n)return Object.values(r).find((e=>{var t
|
|
19698
|
+
;return null==(t=e.requests)?void 0:t.includes(n)}))
|
|
19699
|
+
;const o=j.value.collections[0]??(null==(t=r[0])?void 0:t.uid);return r[o]
|
|
19700
|
+
})),V=Ta((()=>{var e,t
|
|
19700
19701
|
;return m[(null==(e=q.value)?void 0:e.selectedServerUid)||(null==(t=H.value)?void 0:t.selectedServerUid)||""]
|
|
19701
19702
|
})),Z=Ta((()=>n.value[w8.Cookies])),W=Ta((()=>F.value?function(e){
|
|
19702
19703
|
return function e(t,n){const r=Object.keys(t),o=[];return r.forEach((r=>{
|
|
@@ -27992,8 +27993,8 @@ class:"request-section-content custom-scroll flex flex-1 flex-col px-2 xl:px-5 p
|
|
|
27992
27993
|
},RCe=Kr({__name:"RequestSection",setup(e){
|
|
27993
27994
|
const{activeRequest:t,activeExample:n,isReadOnly:r,requestMutators:o}=Ote(),i=Ta((()=>{
|
|
27994
27995
|
var e,r
|
|
27995
|
-
;const o=new Set(["Query","Auth","
|
|
27996
|
-
;return null!=(e=n.value)&&e.parameters.path.length||o.delete("
|
|
27996
|
+
;const o=new Set(["All","Query","Auth","Variables","Cookies","Headers","Body"])
|
|
27997
|
+
;return null!=(e=n.value)&&e.parameters.path.length||o.delete("Variables"),
|
|
27997
27998
|
pd((null==(r=t.value)?void 0:r.method)??"get")||o.delete("Body"),
|
|
27998
27999
|
a.value&&o.delete("Auth"),[...o]})),a=Ta((()=>{var e,n
|
|
27999
28000
|
;return r.value&&0===(null==(n=null==(e=t.value)?void 0:e.security)?void 0:n.length)
|
|
@@ -28014,7 +28015,7 @@ onSetActiveSection:o[0]||(o[0]=e=>s.value=e)
|
|
|
28014
28015
|
;return[Ki("div",$Ce,[Wr(Ji(TCe,{title:"Authentication"
|
|
28015
28016
|
},null,512),[[Ga,!a.value&&("All"===s.value||"Auth"===s.value)]]),Wr(Ji(HTe,{
|
|
28016
28017
|
paramKey:"path",title:"Path Variables"
|
|
28017
|
-
},null,512),[[Ga,("All"===s.value||"
|
|
28018
|
+
},null,512),[[Ga,("All"===s.value||"Variables"===s.value)&&(null==(o=null==(r=null==(e=Qn(n))?void 0:e.parameters)?void 0:r.path)?void 0:o.length)]]),Wr(Ji(FTe,{
|
|
28018
28019
|
paramKey:"cookies",title:"Cookies"
|
|
28019
28020
|
},null,512),[[Ga,"All"===s.value||"Cookies"===s.value]]),Wr(Ji(FTe,{
|
|
28020
28021
|
paramKey:"headers",title:"Headers"
|
|
@@ -28083,7 +28084,7 @@ var t;return{id:e,label:(null==(t=i[e])?void 0:t.url)??"Unknown server"}}))
|
|
|
28083
28084
|
}));const u=()=>Ece.emit({commandName:"Add Server"}),d=Ta((()=>{var e,t,n
|
|
28084
28085
|
;return null!=(t=null==(e=r.value)?void 0:e.url)&&t.endsWith("/")?r.value.url.slice(0,-1):(null==(n=r.value)?void 0:n.url)||""
|
|
28085
28086
|
}));return(e,t)=>{var n,r
|
|
28086
|
-
;return
|
|
28087
|
+
;return s.value&&(null==(n=s.value)?void 0:n.length)>1||l.value&&(null==(r=l.value)?void 0:r.length)>1?(Fi(),
|
|
28087
28088
|
Zi(Qn(AW),{key:0,teleport:".scalar-client"},{
|
|
28088
28089
|
items:Sr((()=>[c.value?(Fi(),Vi("div",qCe," Request Servers ")):oa("",!0),(Fi(!0),
|
|
28089
28090
|
Vi(Mi,null,Gr(s.value,(e=>(Fi(),Zi(FCe,{key:e.id,serverOption:e,type:"request"
|
|
@@ -28302,7 +28303,7 @@ const{isReadOnly:t,activeWorkspace:n}=Ote(),r=()=>{Ece.emit({
|
|
|
28302
28303
|
commandName:"Create Request"})},o=e=>{e.openCommandPaletteRequest&&r()}
|
|
28303
28304
|
;return Br((()=>kte.on(o))),
|
|
28304
28305
|
Fr((()=>kte.off(o))),(e,o)=>(Fi(),Vi("div",VAe,[Ki("div",ZAe,[Qn(n).isReadOnly?oa("",!0):(Fi(),
|
|
28305
|
-
Vi("div",WAe,[na(" Scalar V"+st(Qn("2.1.
|
|
28306
|
+
Vi("div",WAe,[na(" Scalar V"+st(Qn("2.1.13"))+" ",1),XAe,na(" Release "),GAe])),Ji(zAe,{
|
|
28306
28307
|
art:Qn(" .,,uod8B8bou,,.\n ..,uod8BBBBBBBBBBBBBBBBRPFT?l!i:.\n ||||||||||||||!?TFPRBBBBBBBBBBBBBBB8m=,\n |||| '\"\"^^!!||||||||||TFPRBBBVT!:...!\n |||| '\"\"^^!!|||||?!:.......!\n |||| ||||.........!\n |||| ||||.........!\n |||| ||||.........!\n |||| ||||.........!\n |||| ||||.........!\n |||| ||||.........!\n ||||, ||||.........`\n |||||!!-._ ||||.......;.\n ':!|||||||||!!-._ ||||.....bBBBBWdou,.\n bBBBBB86foi!|||||||!!-..:|||!..bBBBBBBBBBBBBBBY!\n ::!?TFPRBBBBBB86foi!||||||||!!bBBBBBBBBBBBBBBY..!\n :::::::::!?TFPRBBBBBB86ftiaabBBBBBBBBBBBBBBY....!\n :::;`\"^!:;::::::!?TFPRBBBBBBBBBBBBBBBBBBBY......!\n ;::::::...''^::::::::::!?TFPRBBBBBBBBBBY........!\n .ob86foi;::::::::::::::::::::::::!?TFPRBY..........`\n .b888888888886foi;:::::::::::::::::::::::..........`\n .b888888888888888888886foi;::::::::::::::::..........\n.b888888888888888888888888888886foi;:::::::::......`\n!Tf998888888888888888888888888888888886foi;:::....`\n '\"^!|Tf9988888888888888888888888888888888!::..`\n '\"^!|Tf998888888888888888888888889!! '`\n '\"^!|Tf9988888888888888888!!` iBBbo.\n '\"^!|Tf998888888889!` WBBBBbo.\n '\"^!|Tf9989!` YBBBP^'\n '\"^!` `\n"),
|
|
28307
28308
|
class:"text-c-3"},null,8,["art"])]),Ki("div",YAe,[Ki("button",{
|
|
28308
28309
|
class:"flex items-center gap-1.5",type:"button",
|
|
@@ -28418,7 +28419,7 @@ const t=e,n=Ta((()=>{var e;const n=null==(e=t.response)?void 0:e.headers
|
|
|
28418
28419
|
;return(null==(e=t.response)?void 0:e.cookieHeaderKeys.flatMap((e=>{var n,r
|
|
28419
28420
|
;const o=null==(r=null==(n=t.response)?void 0:n.headers)?void 0:r[e];return o?{
|
|
28420
28421
|
name:e,value:o,required:!1}:[]})))??[]
|
|
28421
|
-
})),o=["Cookies","Headers","Body"
|
|
28422
|
+
})),o=["All","Cookies","Headers","Body"],i=Mn("All")
|
|
28422
28423
|
;return(e,a)=>(Fi(),Zi(Rue,null,{title:Sr((()=>[Ji(Qn(QV),{
|
|
28423
28424
|
class:"text-c-3 mr-2 rotate-180",icon:"ExternalLink",size:"sm",thickness:"2.5"
|
|
28424
28425
|
}),Ki("div",xPe,[na(" Response "),e.response?(Fi(),Zi(gPe,{key:0,
|