@scalar/api-reference 1.25.123 → 1.25.124
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 +15 -0
- package/dist/browser/standalone.js +9 -8
- package/dist/browser/webpack-stats.json +1 -1
- package/package.json +10 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @scalar/api-reference
|
|
2
2
|
|
|
3
|
+
## 1.25.124
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 4db5161: feat: allow multiple tokens for bearer auth
|
|
8
|
+
- Updated dependencies [4db5161]
|
|
9
|
+
- @scalar/oas-utils@0.2.109
|
|
10
|
+
- @scalar/types@0.0.36
|
|
11
|
+
- @scalar/api-client@2.2.53
|
|
12
|
+
- @scalar/openapi-parser@0.10.9
|
|
13
|
+
- @scalar/themes@0.9.70
|
|
14
|
+
- @scalar/code-highlight@0.0.23
|
|
15
|
+
- @scalar/components@0.13.27
|
|
16
|
+
- @scalar/use-hooks@0.1.24
|
|
17
|
+
|
|
3
18
|
## 1.25.123
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* ___/ / /___/ ___ |/ /___/ ___ |/ _, _/
|
|
6
6
|
* /____/\____/_/ |_/_____/_/ |_/_/ |_|
|
|
7
7
|
*
|
|
8
|
-
* @scalar/api-reference 1.25.
|
|
8
|
+
* @scalar/api-reference 1.25.124
|
|
9
9
|
*
|
|
10
10
|
* Website: https://scalar.com
|
|
11
11
|
* GitHub: https://github.com/scalar/scalar
|
|
@@ -16228,9 +16228,9 @@ console.warn("Server:",e),void console.warn("Error:",r)}})).filter(vd):[]
|
|
|
16228
16228
|
}(o||p.servers,{baseServerURL:n});if(!v.length){const e=p0()
|
|
16229
16229
|
;e&&v.push(BJ.parse({url:e}))}
|
|
16230
16230
|
const b=new Set,y=(null==(l=p.components)?void 0:l.securitySchemes)??(null==p?void 0:p.securityDefinitions)??{},O=null==(u=(c=Object.entries(y)).map)?void 0:u.call(c,(([e,n])=>{
|
|
16231
|
-
var r,o,a;const
|
|
16232
|
-
Object.keys(
|
|
16233
|
-
;if(!(null==(n=
|
|
16231
|
+
var r,o,a,i,s,l,c;const u={...n,nameKey:e};if("oauth2"===u.type&&u.flows){
|
|
16232
|
+
Object.keys(u.flows).forEach((e=>{var n
|
|
16233
|
+
;if(!(null==(n=u.flows)?void 0:n[e]))return;const r=u.flows[e]
|
|
16234
16234
|
;r.type=e,(null==t?void 0:t.oAuth2)&&(t.oAuth2.accessToken&&(r.token=t.oAuth2.accessToken),
|
|
16235
16235
|
"password"===r.type&&(r.username=t.oAuth2.username,
|
|
16236
16236
|
r.password=t.oAuth2.password),
|
|
@@ -16239,9 +16239,10 @@ r["x-scalar-client-id"]=t.oAuth2.clientId)),
|
|
|
16239
16239
|
Array.isArray(r.scopes)&&(r.scopes=r.scopes.reduce(((e,t)=>({...e,[t]:""
|
|
16240
16240
|
})),{})),
|
|
16241
16241
|
r["x-defaultClientId"]&&(r["x-scalar-client-id"]=r["x-defaultClientId"])}))
|
|
16242
|
-
}else t&&("apiKey"===
|
|
16243
|
-
|
|
16244
|
-
|
|
16242
|
+
}else t&&("apiKey"===u.type&&(null==(r=t.apiKey)?void 0:r.token)?u.value=t.apiKey.token:"http"===u.type&&("basic"===u.scheme&&(null==(o=t.http)?void 0:o.basic)?(u.username=t.http.basic.username??"",
|
|
16243
|
+
u.password=t.http.basic.password??""):"bearer"===u.scheme&&((null==(i=null==(a=t.http)?void 0:a.bearer)?void 0:i.token)&&(u.token=t.http.bearer.token??""),
|
|
16244
|
+
(null==(c=null==(l=null==(s=t.http)?void 0:s.bearer)?void 0:l.multiple)?void 0:c[e])&&(u.token=t.http.bearer.multiple[e]))))
|
|
16245
|
+
;const d=Hf(u,Am,!1);return d||f.push(`Security scheme ${e} is invalid.`),d
|
|
16245
16246
|
})).filter((e=>!!e)),w={};var x;O.forEach((e=>{w[e.nameKey]=e.uid
|
|
16246
16247
|
})),(x=p.paths??{},x?Object.keys(x).map((e=>String(e))):[]).forEach((e=>{var n
|
|
16247
16248
|
;const r=null==(n=null==p?void 0:p.paths)?void 0:n[e];if(!r)return
|
|
@@ -29757,7 +29758,7 @@ vo((()=>t.hotKeys.off(a))),(e,n)=>(Ja(),ri("div",pPe,[ci("div",{
|
|
|
29757
29758
|
class:ot(["flex h-[calc(100%_-_50px)] flex-col items-center justify-center",{
|
|
29758
29759
|
"hidden opacity-0":e.numWorkspaceRequests<=1&&"modal"!==qn(r)}])
|
|
29759
29760
|
},["modal"!==qn(r)?(Ja(),
|
|
29760
|
-
ri("div",hPe,[hi(" Scalar App V"+dt(qn("2.2.
|
|
29761
|
+
ri("div",hPe,[hi(" Scalar App V"+dt(qn("2.2.53"))+" Beta ",1),n[2]||(n[2]=ci("div",{
|
|
29761
29762
|
class:"mt-2"},[ci("a",{href:"https://github.com/scalar/scalar/issues/2669",
|
|
29762
29763
|
target:"_blank"}," Roadmap ")],-1))])):mi("",!0),n[3]||(n[3]=ci("a",{
|
|
29763
29764
|
class:"gitbook-show scalar-version-number",href:"https://www.scalar.com",
|