@scalar/api-reference 1.25.16 → 1.25.17

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,14 @@
1
1
  # @scalar/api-reference
2
2
 
3
+ ## 1.25.17
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [2b75354]
8
+ - Updated dependencies [437d54d]
9
+ - @scalar/oas-utils@0.2.46
10
+ - @scalar/api-client@2.1.5
11
+
3
12
  ## 1.25.16
4
13
 
5
14
  ### Patch Changes
@@ -5,7 +5,7 @@
5
5
  * ___/ / /___/ ___ |/ /___/ ___ |/ _, _/
6
6
  * /____/\____/_/ |_/_____/_/ |_/_/ |_|
7
7
  *
8
- * @scalar/api-reference 1.25.16
8
+ * @scalar/api-reference 1.25.17
9
9
  *
10
10
  * Website: https://scalar.com
11
11
  * GitHub: https://github.com/scalar/scalar
@@ -3026,7 +3026,8 @@ if("string"==typeof e)return ld(e)?JSON.stringify(JSON.parse(e),null,2):e
3026
3026
  ;if("object"==typeof e)try{return JSON.stringify(e,null,2)}catch{
3027
3027
  return function(e){const t=new Set;return JSON.stringify(e,((e,n)=>{
3028
3028
  if("object"==typeof n&&null!==n){if(t.has(n))return"[Circular]";t.add(n)}
3029
- return n}),2)}(e)}return e.toString()};function Pd(e,t){const n=(e,n)=>{var r
3029
+ return n}),2)}(e)}return(null==e?void 0:e.toString())??""};function Pd(e,t){
3030
+ const n=(e,n)=>{var r
3030
3031
  ;return"function"==typeof t?t(n):(null==(r=t[n])?void 0:r.toString())||`{${n}}`}
3031
3032
  ;return e.replace(/{{\s*([\w.-]+)\s*}}/g,n).replace(/{\s*([\w.-]+)\s*}/g,n)}
3032
3033
  function $d(e,t,n=!0,r){const o=t.safeParse(e)
@@ -19266,11 +19267,13 @@ headers:dee.array().default([]),cookies:dee.array().default([])
19266
19267
  serverVariables:y9.record(y9.string(),y9.array(y9.string())).optional()})
19267
19268
  ;function fee(e,t,n){var r,o,i,a,s;const l={path:[],query:[],cookie:[],header:[]
19268
19269
  };null==(r=e.parameters)||r.forEach((e=>l[e.in].push(function(e){var t
19269
- ;const n=e.schema,r=String((null==n?void 0:n.default)??(null==(t=null==n?void 0:n.examples)?void 0:t[0])??"")
19270
- ;return dee.parse({...n,key:e.name,value:r,description:e.description,
19271
- required:e.required,enabled:!!e.required})}(e))));const c={activeBody:"raw",
19272
- raw:{encoding:"json",value:""}};if(e.requestBody){const t=pf({path:e.path,
19273
- information:{requestBody:e.requestBody}})
19270
+ ;const n=e.schema,r=String((null==n?void 0:n.default)??(null==(t=null==n?void 0:n.examples)?void 0:t[0])??""),o=$d({
19271
+ ...n,key:e.name,value:r,description:e.description,required:e.required,
19272
+ enabled:!!e.required},dee,!1)
19273
+ ;return o||(console.warn(`Example at ${e.name} is invalid.`),dee.parse({}))
19274
+ }(e))));const c={activeBody:"raw",raw:{encoding:"json",value:""}}
19275
+ ;if(e.requestBody){const t=pf({path:e.path,information:{
19276
+ requestBody:e.requestBody}})
19274
19277
  ;"application/json"===(null==(o=null==t?void 0:t.body)?void 0:o.mimeType)&&(c.activeBody="raw",
19275
19278
  c.raw={encoding:"json",value:t.body.text??JSON.stringify({})
19276
19279
  }),"application/xml"===(null==(i=null==t?void 0:t.body)?void 0:i.mimeType)&&(c.activeBody="raw",
@@ -19278,8 +19281,10 @@ c.raw={encoding:"xml",value:t.body.text??""
19278
19281
  }),"application/octet-stream"===(null==(a=null==t?void 0:t.body)?void 0:a.mimeType)&&(c.activeBody="binary",
19279
19282
  c.binary=void 0),
19280
19283
  "application/x-www-form-urlencoded"===(null==(s=null==t?void 0:t.body)?void 0:s.mimeType)&&(c.activeBody="formData",
19281
- c.formData=void 0)}return hee.parse({requestUid:e.uid,parameters:l,name:t,
19282
- body:c,serverVariables:{}})}function mee(e,t,n){const r=t.split("."),o=r.at(-1)
19284
+ c.formData=void 0)}const u=$d({requestUid:e.uid,parameters:l,name:t,body:c,
19285
+ serverVariables:{}},hee,!1)
19286
+ ;return u||(console.warn(`Example at ${e.uid} is invalid.`),hee.parse({}))}
19287
+ function mee(e,t,n){const r=t.split("."),o=r.at(-1)
19283
19288
  ;return r.reduce(((e,t)=>(t===o&&(e[t]=n),e[t])),e),e}class gee{
19284
19289
  constructor(e,t=5e3,n=!1){
19285
19290
  r(this,"parentData"),r(this,"maxRecords"),r(this,"records",[]),