@redocly/cli 2.51.0 → 2.51.2
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/THIRD_PARTY_NOTICES +2 -2
- package/lib/chunks/{3XSOTIDJ.js → 2QB2GQK4.js} +1 -1
- package/lib/chunks/57HELKSP.js +11 -0
- package/lib/chunks/5FCIOXHF.js +7 -0
- package/lib/chunks/75JBXLYL.js +7 -0
- package/lib/chunks/{65LLBIQA.js → ADW6GVRA.js} +1 -1
- package/lib/chunks/{IPFRJMV6.js → AEUD4DDQ.js} +1 -1
- package/lib/chunks/BFHO7GW5.js +97 -0
- package/lib/chunks/C2P2K3EL.js +7 -0
- package/lib/chunks/{TMULAWFD.js → CHYVBQIC.js} +1 -1
- package/lib/chunks/{3JJEI7CJ.js → CQMMUWIJ.js} +99 -95
- package/lib/chunks/{MXZKXUIJ.js → D2LIZR7C.js} +1 -1
- package/lib/chunks/{B3QINORT.js → D3EE6JIC.js} +1 -1
- package/lib/chunks/{QKWUIMTP.js → D6R7VN2E.js} +1 -1
- package/lib/chunks/DV6O45KM.js +20 -0
- package/lib/chunks/F2OX5CFF.js +7 -0
- package/lib/chunks/H7GBQYOQ.js +20 -0
- package/lib/chunks/{NSKVRJLY.js → HJBZSEOJ.js} +1 -1
- package/lib/chunks/{46OWJR6X.js → HTZLTEUF.js} +1 -1
- package/lib/chunks/{CA4BPC77.js → ITXYN4EV.js} +1 -1
- package/lib/chunks/{NWMTC4AN.js → IULINGO6.js} +1 -1
- package/lib/chunks/{TKFA7G4G.js → JGDGNU3W.js} +1 -1
- package/lib/chunks/{TSB6PODJ.js → JM7BMZLD.js} +1 -1
- package/lib/chunks/{NGC5R7OH.js → JW436AQL.js} +1 -1
- package/lib/chunks/LD5MEXEL.js +10 -0
- package/lib/chunks/{73NWWLM3.js → MA3DQUED.js} +1 -1
- package/lib/chunks/{4PT55VGO.js → NEUHMRVX.js} +3 -3
- package/lib/chunks/{MONT6PMR.js → OHIVXMXU.js} +1 -1
- package/lib/chunks/OHW62OX6.js +8 -0
- package/lib/chunks/{2OHNINBQ.js → ONCO376P.js} +1 -1
- package/lib/chunks/P6UQ46OM.js +20 -0
- package/lib/chunks/POEVQHCC.js +30 -0
- package/lib/chunks/QYUMGE2L.js +9 -0
- package/lib/chunks/{XOZ4UMDG.js → RBQSJMUA.js} +1 -1
- package/lib/chunks/SK7RTQX6.js +18 -0
- package/lib/chunks/T22N7JRE.js +7 -0
- package/lib/chunks/{NIH6ZKB3.js → TMUDD3AQ.js} +1 -1
- package/lib/chunks/{WPSBZRFR.js → UJ7OYRJC.js} +1 -1
- package/lib/chunks/{HJYFWIVE.js → UW4UC7ZI.js} +2 -2
- package/lib/chunks/{KF7NA4HQ.js → V3JDIYRX.js} +1 -1
- package/lib/chunks/{PFYPTG4G.js → VZNKVS6Q.js} +1 -1
- package/lib/chunks/W62WTKL6.js +67 -0
- package/lib/chunks/{HMPJ7TN6.js → W7NMFHT5.js} +1 -1
- package/lib/chunks/{KBGRTZ3S.js → WSWUTUN2.js} +1 -1
- package/lib/chunks/{N5SXQI4I.js → XA64NLCK.js} +1 -1
- package/lib/chunks/{62X4OKFV.js → YHUS4LA4.js} +1 -1
- package/lib/chunks/{SQYP47H6.js → YOD7FLHY.js} +1 -1
- package/lib/chunks/{OKMAGS7N.js → YUQGMTD4.js} +1 -1
- package/lib/chunks/{OZMIIHFH.js → ZMAMNQ5K.js} +95 -95
- package/lib/eject-assets/generators/cli/docs.ts +1 -1
- package/lib/eject-assets/generators/cli/engine-source.ts +1 -1
- package/lib/eject-assets/generators/cli/index.ts +2 -2
- package/lib/eject-assets/generators/cli/render.ts +1 -1
- package/lib/eject-assets/generators/go/client.ts +1 -1
- package/lib/eject-assets/generators/go/descriptor.ts +1 -1
- package/lib/eject-assets/generators/go/index.ts +2 -2
- package/lib/eject-assets/generators/go/models.ts +1 -1
- package/lib/eject-assets/generators/go/naming.ts +1 -1
- package/lib/eject-assets/generators/go/operations.ts +1 -1
- package/lib/eject-assets/generators/go/pagination.ts +1 -1
- package/lib/eject-assets/generators/go/types.ts +1 -1
- package/lib/eject-assets/generators/mock/faker.ts +1 -1
- package/lib/eject-assets/generators/mock/index.ts +2 -2
- package/lib/eject-assets/generators/mock/render.ts +1 -1
- package/lib/eject-assets/generators/mock/sample.ts +1 -1
- package/lib/eject-assets/generators/mock/values.ts +1 -1
- package/lib/eject-assets/generators/php/client.ts +1 -1
- package/lib/eject-assets/generators/php/descriptor.ts +1 -1
- package/lib/eject-assets/generators/php/index.ts +2 -2
- package/lib/eject-assets/generators/php/models.ts +1 -1
- package/lib/eject-assets/generators/php/naming.ts +1 -1
- package/lib/eject-assets/generators/php/operations.ts +1 -1
- package/lib/eject-assets/generators/php/pagination.ts +1 -1
- package/lib/eject-assets/generators/php/types.ts +1 -1
- package/lib/eject-assets/generators/python/client.ts +1 -1
- package/lib/eject-assets/generators/python/descriptor.ts +1 -1
- package/lib/eject-assets/generators/python/index.ts +2 -2
- package/lib/eject-assets/generators/python/models.ts +1 -1
- package/lib/eject-assets/generators/python/naming.ts +1 -1
- package/lib/eject-assets/generators/python/operations.ts +1 -1
- package/lib/eject-assets/generators/python/pagination.ts +1 -1
- package/lib/eject-assets/generators/python/types.ts +1 -1
- package/lib/eject-assets/generators/swr/index.ts +2 -2
- package/lib/eject-assets/generators/swr/render.ts +1 -1
- package/lib/eject-assets/generators/tanstack-query/index.ts +2 -2
- package/lib/eject-assets/generators/tanstack-query/render.ts +1 -1
- package/lib/eject-assets/generators/transformers/index.ts +2 -2
- package/lib/eject-assets/generators/transformers/render.ts +1 -1
- package/lib/eject-assets/generators/typescript/banner.ts +1 -1
- package/lib/eject-assets/generators/typescript/client.ts +1 -1
- package/lib/eject-assets/generators/typescript/descriptor.ts +1 -1
- package/lib/eject-assets/generators/typescript/index.ts +2 -2
- package/lib/eject-assets/generators/typescript/inline-runtime.ts +1 -1
- package/lib/eject-assets/generators/typescript/operation-signature.ts +1 -1
- package/lib/eject-assets/generators/typescript/operation-types.ts +1 -1
- package/lib/eject-assets/generators/typescript/operations.ts +1 -1
- package/lib/eject-assets/generators/typescript/response-headers.ts +1 -1
- package/lib/eject-assets/generators/typescript/type-guards.ts +1 -1
- package/lib/eject-assets/generators/typescript/types.ts +1 -1
- package/lib/eject-assets/generators/zod/index.ts +2 -2
- package/lib/eject-assets/generators/zod/schemas.ts +1 -1
- package/lib/index.js +8 -8
- package/package.json +1 -1
- package/lib/chunks/2L3Z5JZA.js +0 -16
- package/lib/chunks/2WUJ57QA.js +0 -9
- package/lib/chunks/45LW7ZJ2.js +0 -7
- package/lib/chunks/77VEOG4O.js +0 -57
- package/lib/chunks/7ZC3TNBP.js +0 -14
- package/lib/chunks/AQT2EJZS.js +0 -177
- package/lib/chunks/BFGFT7E3.js +0 -90
- package/lib/chunks/EOS3ZB2L.js +0 -8
- package/lib/chunks/ESNPHQEK.js +0 -93
- package/lib/chunks/FJAJ4RIU.js +0 -20
- package/lib/chunks/FVKTV62N.js +0 -20
- package/lib/chunks/KNLINRO4.js +0 -19
- package/lib/chunks/L3TZNNJJ.js +0 -13
- package/lib/chunks/L4GUU6OS.js +0 -7
- package/lib/chunks/MSRZMIR7.js +0 -22
- package/lib/chunks/NAGDQV7J.js +0 -11
- package/lib/chunks/NB54XRRU.js +0 -10
- package/lib/chunks/NSIQWNYL.js +0 -7
- package/lib/chunks/OOLLHPWT.js +0 -18
- package/lib/chunks/P37B4DI4.js +0 -42
- package/lib/chunks/QPW3IML7.js +0 -26
- package/lib/chunks/REFX2EKS.js +0 -13
- package/lib/chunks/SGBB4RNM.js +0 -11
- package/lib/chunks/SQVG3CEM.js +0 -8
- package/lib/chunks/U6E22USS.js +0 -14
- package/lib/chunks/ULV3D265.js +0 -19
- package/lib/chunks/V4SBON7Y.js +0 -7
- package/lib/chunks/X3MZMREJ.js +0 -7
- package/lib/chunks/XWZNQKXF.js +0 -30
- package/lib/chunks/YEK532UO.js +0 -67
- package/lib/chunks/ZBL4IVEW.js +0 -11
- /package/lib/chunks/{UKSQ7B5H.js → 2U6O26CV.js} +0 -0
package/THIRD_PARTY_NOTICES
CHANGED
|
@@ -574,7 +574,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
574
574
|
BSD-3-Clause
|
|
575
575
|
|
|
576
576
|
Packages:
|
|
577
|
-
fast-uri@3.1.
|
|
577
|
+
fast-uri@3.1.7 — Copyright (c) 2011-2021, Gary Court until https://github.com/garycourt/uri-js/commit/a1acf730b4bba3f1097c9f52e7d9d3aba8cdcaae
|
|
578
578
|
source-map@0.6.1 — Copyright (c) 2009-2011, Mozilla Foundation and contributors
|
|
579
579
|
|
|
580
580
|
License text:
|
|
@@ -643,7 +643,7 @@ Packages:
|
|
|
643
643
|
@babel/runtime@7.27.1 — Copyright (c) 2014-present Sebastian McKenzie and other contributors
|
|
644
644
|
@emotion/is-prop-valid@1.4.0 — Copyright (c) Emotion team and other contributors
|
|
645
645
|
@emotion/memoize@0.9.0 — Copyright (c) Emotion team and other contributors
|
|
646
|
-
@faker-js/faker@
|
|
646
|
+
@faker-js/faker@10.6.0 — Copyright (c) 2022-2025
|
|
647
647
|
@noble/hashes@1.8.0 — Copyright (c) 2022 Paul Miller (https://paulmillr.com)
|
|
648
648
|
@redocly/ajv@8.11.2 — Copyright (c) 2015-2021 Evgeny Poberezkin
|
|
649
649
|
@redocly/ajv@8.18.3 — Copyright (c) 2015-2021 Evgeny Poberezkin
|
|
@@ -4,4 +4,4 @@ import { dirname as __pathDirname } from 'node:path';
|
|
|
4
4
|
const require = __createRequire(import.meta.url);
|
|
5
5
|
var __filename = __fileURLToPath(import.meta.url);
|
|
6
6
|
var __dirname = __pathDirname(__filename);
|
|
7
|
-
import{a}from"./
|
|
7
|
+
import{a}from"./OHIVXMXU.js";import"./QYUMGE2L.js";import"./POEVQHCC.js";import"./57HELKSP.js";import"./NEUHMRVX.js";import"./WZXA5XPB.js";import"./ZMAMNQ5K.js";import"./NEWT5A6S.js";import"./LD5MEXEL.js";import"./UW4UC7ZI.js";import"./RFWIIJFG.js";export{a as tanstackQueryGenerator};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { createRequire as __createRequire } from 'node:module';
|
|
2
|
+
import { fileURLToPath as __fileURLToPath } from 'node:url';
|
|
3
|
+
import { dirname as __pathDirname } from 'node:path';
|
|
4
|
+
const require = __createRequire(import.meta.url);
|
|
5
|
+
var __filename = __fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = __pathDirname(__filename);
|
|
7
|
+
import{a as m,m as l}from"./UW4UC7ZI.js";function d(e,t){let n=t??{},i=e.specName??e.name;if(Array.isArray(n.exclude)&&n.exclude.includes(i))return;let r=(n.operations??{})[i]??e.paginationExtension;if(r===void 0&&typeof n.style=="string"){let{exclude:c,operations:E,...u}=n,y=u.style==="cursor"?u.cursorParam:u.offsetParam;(u.style==="link"?e.successResponseHeaders?.some(f=>f.name==="link")===!0:typeof y=="string"&&e.queryParams.some(f=>f.name===y))&&(r=u)}if(r===void 0||typeof r.style!="string")return;let a=r.style==="cursor"?r.cursorParam:r.offsetParam;return{style:r.style,...typeof a=="string"?{param:a}:{},...typeof r.nextCursor=="string"?{nextCursor:r.nextCursor}:{},...typeof r.hasMore=="string"?{hasMore:r.hasMore}:{},...typeof r.limitParam=="string"?{limitParam:r.limitParam}:{},...typeof r.items=="string"?{items:r.items}:{}}}function p(e){return(e??"").replace(/\s+/g," ").trim().replace(/\\/g,"\\\\").replace(/\|/g,"\\|")}function o(e){switch(e.kind){case"ref":return e.name;case"omit":return e.base;case"scalar":return e.scalar;case"array":return`array of ${o(e.items)}`;case"record":return`map of ${o(e.value)}`;case"enum":{let t=e.values.map(String),n=t.slice(0,6).join(", ");return t.length>6?`enum: ${n}, and ${t.length-6} more`:`enum: ${n}`}case"literal":return String(e.value);case"union":return e.members.map(o).join(" or ");case"intersection":return e.members.map(o).join(" and ");case"object":return"object";case"null":return"null";case"unknown":return"any"}}function g(e){return e.successResponses.some(t=>t.contentType.toLowerCase().includes("json"))?!1:e.successResponses.some(t=>t.contentType.startsWith("image/")||t.contentType==="application/octet-stream")}function h(e,t){e.line("| Parameter | In | Type | Required | Description |"),e.line("| --------- | -- | ---- | -------- | ----------- |");for(let n of t)e.line(`| \`${n.name}\` | ${n.in} | ${p(o(n.schema))} | ${n.required?"yes":"no"} | ${p(n.description)} |`);e.blank()}function x(e,t,n){e.line(`### \`${t.specName??t.name}\``),e.blank(),t.summary!==void 0&&(e.line(p(t.summary)),e.blank()),e.line(`\`${t.method.toUpperCase()} ${t.path}\``),e.blank();let i=n.sample(t);if(i!==void 0){e.line("```"+n.language.fence);for(let c of i.source.replace(/\n+$/,"").split(`
|
|
8
|
+
`))e.line(c);e.line("```"),e.blank()}let s=[...t.pathParams,...t.queryParams,...t.headerParams];s.length>0&&h(e,s),t.requestBody!==void 0&&e.line(`Body: \`${t.requestBody.contentType}\`${t.requestBody.required?", required":", optional"}, of type ${o(t.requestBody.schema)}.`);let r=t.successResponses[0];e.line(r===void 0?"Returns no content.":`Returns \`${r.contentType}\`, of type ${o(r.schema)}.`),(n.paginated!==void 0?n.paginated.has(t.name):d(t,n.pagination)!==void 0)&&e.line("This operation is paginated, so the SDK gives it page and item iterators."),t.successResponses.some(c=>c.contentType==="text/event-stream")&&e.line("This operation streams server-sent events, so the SDK iterates the events."),g(t)&&e.line("This operation returns binary content."),e.blank()}function k(e,t){let n=new m;if(t.frontmatter&&(n.line("---"),n.line(`title: ${t.title}`),n.line("---"),n.blank()),n.line(`# ${t.title}`),n.blank(),n.line(`Generated reference for the ${t.language.label} SDK, produced from the API description by \`redocly generate-client\`.`),n.line("Re-run generation to update it \u2014 this file is not hand-edited."),n.blank(),n.line(t.language.requires),n.blank(),n.line("## Authentication"),n.blank(),e.securitySchemes.length===0)n.line("The description declares no security schemes.");else{n.line("The description declares these schemes, which you pass to the client:"),n.blank(),n.line("| Scheme | Kind | Sent as |"),n.line("| ------ | ---- | ------- |");for(let r of e.securitySchemes){let a=r.kind==="bearer"?"`Authorization: Bearer <token>`":r.kind==="basic"?"`Authorization: Basic <base64>`":r.kind==="apiKeyHeader"?`the \`${r.headerName}\` header`:r.kind==="apiKeyQuery"?`the \`${r.paramName}\` query parameter`:`the \`${r.cookieName}\` cookie`;n.line(`| \`${r.key}\` | ${r.kind} | ${a} |`)}}n.blank();let i=e.services.flatMap(r=>r.operations),s=[...new Set(i.map(r=>r.tags[0]))];for(let r of s){n.line(r===void 0?"## Operations":`## ${r}`),n.blank();for(let a of i.filter(c=>c.tags[0]===r))x(n,a,t)}return n.toString().replace(/\n{3,}/g,`
|
|
9
|
+
|
|
10
|
+
`).trimEnd()+`
|
|
11
|
+
`}function b(e){return e.successResponses.find(t=>t.contentType.toLowerCase().includes("json"))?.schema}function R(e){return e.successResponses.find(t=>t.contentType.toLowerCase().includes("text/event-stream"))}function S(e){return e.requestBody?.contentType.toLowerCase().includes("multipart")??!1}function $(e){let t=new Set(e.variables.map(a=>a.name)),n=[],i="",s=e.url,r=/\{([^{}]+)\}/;for(let a=r.exec(s);a!==null;a=r.exec(s))i+=s.slice(0,a.index),t.has(a[1])?(i!==""&&n.push({kind:"literal",value:i}),i="",n.push({kind:"variable",name:a[1]})):i+=a[0],s=s.slice(a.index+a[0].length);return i+=s,(i!==""||n.length===0)&&n.push({kind:"literal",value:i}),n}function P(e,t){return e.security.map(n=>n.flatMap(i=>{let s=t.securitySchemes.find(r=>r.key===i);return s===void 0?[]:s.kind==="bearer"||s.kind==="basic"?[{scheme:i,kind:s.kind}]:s.kind==="apiKeyHeader"?[{scheme:i,kind:"apiKey",name:s.headerName,in:"header"}]:s.kind==="apiKeyQuery"?[{scheme:i,kind:"apiKey",name:s.paramName,in:"query"}]:[{scheme:i,kind:"apiKey",name:s.cookieName,in:"cookie"}]})).filter(n=>n.length>0)}function C(e,t,n){if(e===void 0||t===void 0)return;let i=l(e,t,n);return i?.kind==="array"?i.items:void 0}var J=["Printer","casing","identifierFor","uniqueIdentifiers","RESERVED_WORDS","flattenAllOf","deref","discriminatorCases","jsonSuccessSchema","sseResponse","isMultipartBody","serverUrlParts","securityRequirements","paginationItemSchema","isNullable","unwrapNullable","enumValues","docText","headerCoerceType","schemaAtPointer","paginationRuleFor","renderReferencePage","NotSupportedError"];function v(e){return e}function N(e){return e.toLowerCase().split(/[^a-z0-9]+/).filter(Boolean).join("-")}function q(e){return e.replace(/[^A-Za-z0-9]+/g,"_").replace(/([a-z0-9])([A-Z])/g,"$1_$2").toUpperCase()}function A(e,t){let n={...e};for(let[i,s]of Object.entries(t))s!==void 0&&(n[i]=s);return n}function fe(e){return e}async function ge(e){return(await import("./VZNKVS6Q.js")).generateClient(e)}export{d as a,k as b,b as c,R as d,S as e,$ as f,P as g,C as h,J as i,v as j,N as k,q as l,A as m,fe as n,ge as o};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { createRequire as __createRequire } from 'node:module';
|
|
2
|
+
import { fileURLToPath as __fileURLToPath } from 'node:url';
|
|
3
|
+
import { dirname as __pathDirname } from 'node:path';
|
|
4
|
+
const require = __createRequire(import.meta.url);
|
|
5
|
+
var __filename = __fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = __pathDirname(__filename);
|
|
7
|
+
import{a as l}from"./MA3DQUED.js";import{a as R,b as u,c as f,d}from"./WSWUTUN2.js";import{d as y,e as G,f as x}from"./DV6O45KM.js";import{c as g,d as S,e as h}from"./H7GBQYOQ.js";import{c as k,d as v,e as b}from"./P6UQ46OM.js";import{a as D,b as E,c as q,d as z}from"./SK7RTQX6.js";import{a as o}from"./OHIVXMXU.js";import{a,b as p,c as s}from"./W62WTKL6.js";import"./2U6O26CV.js";import{a as m}from"./HTZLTEUF.js";import{a as i}from"./JM7BMZLD.js";import{a as c}from"./TMUDD3AQ.js";import"./QYUMGE2L.js";import{a as I,d as M,e as N}from"./POEVQHCC.js";import{a as H,b as K,c as tr,d as or,e as nr,f as ar,g as pr,h as sr,i as mr}from"./57HELKSP.js";import"./NEUHMRVX.js";import{a as U}from"./WZXA5XPB.js";import"./ZMAMNQ5K.js";import"./NEWT5A6S.js";import{e as T,h as j,k as w}from"./LD5MEXEL.js";import{a as _,b as B,c as F,d as J,e as Q,f as P,g as V,h as W,i as X,j as Y,k as Z,l as $,m as rr,n as er}from"./UW4UC7ZI.js";import"./RFWIIJFG.js";var A={typescript:{run:a,sample:s,docs:p},zod:{run:m},transformers:{run:i},"tanstack-query":{run:o("react")},"tanstack-query-vue":{run:o("vue")},"tanstack-query-svelte":{run:o("svelte")},"tanstack-query-solid":{run:o("solid")},swr:{run:c},mock:{run:l},cli:{run:u,sample:d,docs:f},python:{run:y,sample:G,docs:x},go:{run:g,sample:S,docs:h},php:{run:k,sample:v,docs:b}},L=Object.fromEntries(Object.entries(D).map(([e,{load:r,...t}])=>[e,{...t,...A[e]}]));function n(){return new Map(Object.entries(L))}function C(e,r,t=n(),O){E(e,r,t,O)}function br(e,r){let t=r.registry??n();return C(r.generators,r.emit,t,r.outputMode),q(e,{...r,registry:t})}export{mr as AUTHORING_HELPER_NAMES,U as NotSupportedError,_ as Printer,F as RESERVED_WORDS,B as casing,j as codeLiteral,br as collectGeneratedFiles,P as deref,W as discriminatorCases,$ as docText,Z as enumValues,V as flattenAllOf,z as generateClient,er as headerCoerceType,J as identifierFor,nr as isMultipartBody,X as isNullable,tr as jsonSuccessSchema,I as operationSignature,sr as paginationItemSchema,H as paginationRuleFor,w as pascalCase,R as renderComposedCliEntry,K as renderReferencePage,T as safeIdent,rr as schemaAtPointer,pr as securityRequirements,ar as serverUrlParts,or as sseResponse,M as tsJsdoc,N as tsType,Q as uniqueIdentifiers,Y as unwrapNullable};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { createRequire as __createRequire } from 'node:module';
|
|
2
|
+
import { fileURLToPath as __fileURLToPath } from 'node:url';
|
|
3
|
+
import { dirname as __pathDirname } from 'node:path';
|
|
4
|
+
const require = __createRequire(import.meta.url);
|
|
5
|
+
var __filename = __fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = __pathDirname(__filename);
|
|
7
|
+
import{a,b,c}from"./W62WTKL6.js";import"./2U6O26CV.js";import"./POEVQHCC.js";import"./57HELKSP.js";import"./NEUHMRVX.js";import"./WZXA5XPB.js";import"./ZMAMNQ5K.js";import"./NEWT5A6S.js";import"./LD5MEXEL.js";import"./UW4UC7ZI.js";import"./RFWIIJFG.js";export{b as typescriptDocs,a as typescriptGenerator,c as typescriptSample};
|
|
@@ -4,4 +4,4 @@ import { dirname as __pathDirname } from 'node:path';
|
|
|
4
4
|
const require = __createRequire(import.meta.url);
|
|
5
5
|
var __filename = __fileURLToPath(import.meta.url);
|
|
6
6
|
var __dirname = __pathDirname(__filename);
|
|
7
|
-
var e={name:"@redocly/cli",version:"2.51.
|
|
7
|
+
var e={name:"@redocly/cli",version:"2.51.2",description:"",license:"MIT",bin:{redocly:"bin/cli.js",openapi:"bin/cli.js"},type:"module",engines:{node:">=22.12.0 || >=20.19.0 <21.0.0",npm:">=10"},engineStrict:!0,scripts:{build:"node ./scripts/build.mjs","prepare:publish-dir":"node ./scripts/prepare-publish-dir.mjs","clean:publish-dir":`node -e "require('fs').rmSync('.publish', {recursive:true, force:true})"`},publishConfig:{directory:".publish"},repository:{type:"git",url:"https://github.com/Redocly/redocly-cli.git"},homepage:"https://github.com/Redocly/redocly-cli",keywords:["linter","OpenAPI","Swagger","OpenAPI linter","Swagger linter","AsyncAPI linter","Arazzo linter","oas"],contributors:["Roman Hotsiy <roman@redocly.com> (https://redocly.com/)"],devDependencies:{"@opentelemetry/exporter-trace-otlp-http":"0.219.0","@opentelemetry/resources":"2.8.0","@opentelemetry/sdk-trace-node":"2.8.0","@opentelemetry/semantic-conventions":"1.41.1","@redocly/cli-otel":"0.3.5","@redocly/client-generator":"0.4.6","@redocly/openapi-core":"2.51.2","@redocly/respect-core":"2.51.2","@types/cookie":"0.6.0","@types/har-format":"^1.2.16","@types/react":"^17.0.0 || ^18.2.21 || ^19.2.16","@types/react-dom":"^17.0.0 || ^18.2.7 || ^19.2.3","@types/semver":"^7.5.0","@types/set-cookie-parser":"2.4.10","@types/yargs":"17.0.32",colorette:"^1.2.0",cookie:"^0.7.2",dotenv:"16.4.7",esbuild:"^0.28.0",glob:"^13.0.5",handlebars:"^4.7.9","https-proxy-agent":"^7.0.5",react:"^17.0.0 || ^18.2.0 || ^19.2.7","react-dom":"^17.0.0 || ^18.2.0 || ^19.2.7",redoc:"2.5.3",semver:"^7.5.2","set-cookie-parser":"^2.3.5","styled-components":"6.4.2",typescript:"6.0.2",ulid:"^3.0.1",undici:"^6.28.0",yargs:"17.0.1"}};var{version:s,name:i,engines:c}=e,n=e.devDependencies.redoc,p="sha384-xiEssMQFSpSfLbzRZCGfxxIM5QDb2DTrU6vyoZdp2sV1L6pmOMy6MpTtUoLbpC96";export{s as a,i as b,c,n as d,p as e};
|
|
@@ -4,7 +4,7 @@ import { dirname as __pathDirname } from 'node:path';
|
|
|
4
4
|
const require = __createRequire(import.meta.url);
|
|
5
5
|
var __filename = __fileURLToPath(import.meta.url);
|
|
6
6
|
var __dirname = __pathDirname(__filename);
|
|
7
|
-
import{a as T,b as O,c as A,d as E}from"./
|
|
7
|
+
import{a as T,b as O,c as A,d as E}from"./D3EE6JIC.js";import{c as m,k as C,r as $}from"./OHW62OX6.js";import{a as R,b as y}from"./ITXYN4EV.js";import{a as q}from"./BXI4SF2U.js";import{V as u,c as H}from"./ZMAMNQ5K.js";import"./NEWT5A6S.js";import{e as z}from"./RFWIIJFG.js";import{createReadStream as F,createWriteStream as k,existsSync as V}from"node:fs";import{appendFile as N,mkdir as j,rm as _,writeFile as W}from"node:fs/promises";import B from"node:path";import{createInterface as G}from"node:readline";var w=class{outputPath;entriesPath;creatorVersion;writeChain=Promise.resolve();directoryEnsured=!1;started=!1;count=0;constructor(t,r){this.outputPath=B.resolve(process.cwd(),t),this.entriesPath=`${this.outputPath}.entries.tmp`,this.creatorVersion=r}get entryCount(){return this.count}add(t){let r=`${JSON.stringify(t)}
|
|
8
8
|
`,n=this.writeChain.catch(()=>{}).then(()=>this.append(r)).then(()=>{this.count+=1});return this.writeChain=n.catch(()=>{}),n}async finalize(){await this.writeChain.catch(()=>{}),await this.ensureDirectory(),await this.writeDocument(),await _(this.entriesPath,{force:!0})}async append(t){if(await this.ensureDirectory(),!this.started){await W(this.entriesPath,t,"utf8"),this.started=!0;return}await N(this.entriesPath,t,"utf8")}async ensureDirectory(){this.directoryEnsured||(await j(B.dirname(this.outputPath),{recursive:!0}),this.directoryEnsured=!0)}async writeDocument(){let t=k(this.outputPath,{encoding:"utf8"}),r=n=>new Promise((o,s)=>{t.write(n,i=>i?s(i):o())});try{let n=JSON.stringify({name:"redocly-cli proxy",version:this.creatorVersion});await r(`{
|
|
9
9
|
"log": {
|
|
10
10
|
"version": "1.2",
|