@redocly/cli 0.0.0-snapshot.1787063344 → 0.0.0-snapshot.1787123073
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/lib/chunks/{24ESKWFL.js → 4VETGQ7M.js} +1 -1
- package/lib/chunks/6ABTYKO5.js +2542 -0
- package/lib/chunks/{YXVH3SNZ.js → ALG452TO.js} +1 -1
- package/lib/chunks/BCUS6CBG.js +184 -0
- package/lib/chunks/{I5PJ57KX.js → CEC2PB5U.js} +1 -1
- package/lib/chunks/{WKR5Q7LM.js → HT7SB6EL.js} +1 -1
- package/lib/chunks/{VRLTHLBT.js → IPU53TAS.js} +1 -1
- package/lib/chunks/JJO2REIG.js +8 -0
- package/lib/chunks/{PABGNVKY.js → KLPPXLOS.js} +1 -1
- package/lib/chunks/{4SKAZCBW.js → ND3GMB6H.js} +1 -1
- package/lib/chunks/{W44PVWUQ.js → NOHFLU7T.js} +1 -1
- package/lib/chunks/{ENVN665Z.js → OE74WIL3.js} +1 -1
- package/lib/chunks/{B2HSCSZY.js → Q7VGEFGK.js} +1 -1
- package/lib/chunks/{J4GR23FE.js → QHPVZ5NA.js} +1 -1
- package/lib/chunks/{ZU6UIRB3.js → RAVFPHVF.js} +1 -1
- package/lib/chunks/{HW5YVDNF.js → RI2DUP36.js} +1 -1
- package/lib/chunks/{LXG2SIFN.js → UARSGCE2.js} +1 -1
- package/lib/chunks/{I273NYDN.js → YP34M7ZH.js} +1 -1
- package/lib/chunks/{SRU4AKOH.js → Z2OIAQN2.js} +1 -1
- package/lib/index.js +196 -249
- package/package.json +1 -1
- package/lib/chunks/3GFYSU6P.js +0 -7
- package/lib/chunks/3J7TYMNY.js +0 -12
- package/lib/chunks/3KKMLZN3.js +0 -907
- package/lib/chunks/3XBPOSEL.js +0 -9
- package/lib/chunks/4QLYHB77.js +0 -9
- package/lib/chunks/525K3KKQ.js +0 -7
- package/lib/chunks/6RGGKRMK.js +0 -7
- package/lib/chunks/7VLU66PD.js +0 -68
- package/lib/chunks/AIHAS7WL.js +0 -21
- package/lib/chunks/BBIPNV2E.js +0 -519
- package/lib/chunks/BDG6IUCF.js +0 -12
- package/lib/chunks/BLENHA73.js +0 -875
- package/lib/chunks/DCFZZBW4.js +0 -7
- package/lib/chunks/DSXAYXC6.js +0 -7
- package/lib/chunks/EG5RJVOK.js +0 -7
- package/lib/chunks/FWC4UK42.js +0 -7
- package/lib/chunks/I7OXWDCF.js +0 -15
- package/lib/chunks/IIXD6MTE.js +0 -53
- package/lib/chunks/IWSGIYUF.js +0 -7
- package/lib/chunks/JKEX4O5F.js +0 -7
- package/lib/chunks/JWWD4Q3V.js +0 -176
- package/lib/chunks/KGC6UZEF.js +0 -17
- package/lib/chunks/KKC3JNZX.js +0 -7
- package/lib/chunks/L5QMCITI.js +0 -460
- package/lib/chunks/NTV4IYLO.js +0 -7
- package/lib/chunks/OAHVR5VG.js +0 -7
- package/lib/chunks/OASJV7SH.js +0 -7
- package/lib/chunks/QZ4IM6W3.js +0 -41
- package/lib/chunks/RQRJWX5O.js +0 -7
- package/lib/chunks/RUGBARP6.js +0 -25
- package/lib/chunks/TN2II3C6.js +0 -2532
- package/lib/chunks/VL2X6UEV.js +0 -7
- package/lib/chunks/WADSYGSX.js +0 -8
- package/lib/chunks/WJDVORBS.js +0 -11
- package/lib/chunks/X4TYPL6T.js +0 -9
- package/lib/chunks/Y4KBXPSO.js +0 -184
- package/lib/chunks/YOREK3PZ.js +0 -7
- package/lib/chunks/YSMUBJCG.js +0 -7
- package/lib/chunks/YYGTKCOF.js +0 -7
- package/lib/chunks/Z224NMB5.js +0 -7
- package/lib/chunks/ZGQWJITG.js +0 -9
- package/lib/chunks/ZTS6JG4V.js +0 -7
- package/lib/eject-assets/AGENTS.md +0 -130
- package/lib/eject-assets/generators/cli.mjs +0 -700
- package/lib/eject-assets/generators/go.mjs +0 -856
- package/lib/eject-assets/generators/mock.mjs +0 -689
- package/lib/eject-assets/generators/php.mjs +0 -830
- package/lib/eject-assets/generators/python.mjs +0 -742
- package/lib/eject-assets/generators/swr.mjs +0 -267
- package/lib/eject-assets/generators/tanstack-query.mjs +0 -632
- package/lib/eject-assets/generators/transformers.mjs +0 -403
- package/lib/eject-assets/generators/typescript.mjs +0 -1819
- package/lib/eject-assets/generators/zod.mjs +0 -520
- package/lib/eject-assets/skills/cli-generator/SKILL.md +0 -112
- package/lib/eject-assets/skills/client-generators/SKILL.md +0 -135
- package/lib/eject-assets/skills/go-generator/SKILL.md +0 -89
- package/lib/eject-assets/skills/mock-generator/SKILL.md +0 -45
- package/lib/eject-assets/skills/php-generator/SKILL.md +0 -105
- package/lib/eject-assets/skills/python-generator/SKILL.md +0 -93
- package/lib/eject-assets/skills/swr-generator/SKILL.md +0 -44
- package/lib/eject-assets/skills/tanstack-query-generator/SKILL.md +0 -48
- package/lib/eject-assets/skills/transformers-generator/SKILL.md +0 -43
- package/lib/eject-assets/skills/typescript-generator/SKILL.md +0 -73
- package/lib/eject-assets/skills/zod-generator/SKILL.md +0 -49
|
@@ -4,5 +4,5 @@ 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{c}from"./
|
|
7
|
+
import{c}from"./BCUS6CBG.js";import{open as C,readdir as N,stat as P}from"node:fs/promises";import d from"node:path";var $=new Set([".yaml",".yml",".json"]);async function D(e){let n=[];async function t(r){let o=await N(r,{withFileTypes:!0});for(let s of o){if(s.name.startsWith("."))continue;let i=d.join(r,s.name);if(s.isDirectory()){await t(i);continue}s.isFile()&&$.has(d.extname(s.name).toLowerCase())&&n.push(i)}}return await t(e),n.sort(),n}async function _(e,n=4096){let t=await C(e,"r");try{let r=Buffer.allocUnsafe(n),{bytesRead:o}=await t.read(r,0,n,0);return r.toString("utf8",0,o)}finally{await t.close()}}function M(e){return d.resolve(process.cwd(),e)}async function K(e){let n=await P(e);if(n.isFile())return[e];if(!n.isDirectory())return[];let t=[];async function r(o){let s=await N(o,{withFileTypes:!0});for(let i of s){if(i.name.startsWith("."))continue;let a=d.join(o,i.name);if(i.isDirectory()){await r(a);continue}i.isFile()&&t.push(a)}}return await r(e),t.sort(),t}var k="drift.local",O=`http://${k}`;function u(e){return e===k}var U=new Set(["accept","accept-charset","accept-encoding","accept-language","authorization","baggage","cache-control","cdn-loop","cookie","connection","content-length","content-type","dpr","dnt","downlink","ect","forwarded","host","if-match","if-modified-since","if-none-match","if-range","if-unmodified-since","origin","pragma","priority","range","referer","sec-fetch-dest","sec-fetch-mode","sec-fetch-site","sec-fetch-user","sec-gpc","sentry-trace","te","traceparent","tracestate","upgrade","upgrade-insecure-requests","user-agent","via","x-client-trace-id","x-cloud-trace-context","x-correlation-id","x-http-method-override","x-hub-signature","x-hub-signature-256","x-method-override","x-real-ip","x-request-id","x-forwarded-for","x-forwarded-host","x-forwarded-port","x-forwarded-proto"]),J=["cf-","sec-ch-","sec-fetch-","x-amz-","x-amzn-","x-b3-","x-envoy-","x-forwarded-","x-github-"],R=`
|
|
8
8
|
`;function Y(e){return e.split(R)}function g(e,n,t){let r=n.toLowerCase(),o=e[r];if(o===void 0){e[r]=t;return}e[r]=r==="set-cookie"?`${o}${R}${t}`:`${o},${t}`}function p(e){if(!c(e)&&!Array.isArray(e))return{};let n={};if(Array.isArray(e)){for(let t of e){if(!c(t))continue;let{name:r,value:o}=t;typeof r=="string"&&o!==void 0&&g(n,r,String(o))}return n}for(let[t,r]of Object.entries(e))if(r!=null){if(Array.isArray(r)){for(let o of r)g(n,t,String(o));continue}g(n,t,String(r))}return n}function f(e){try{return new URL(e)}catch{return new URL(e,O)}}function m(e){return e.length>1&&e.endsWith("/")?e.slice(0,-1):e}function L(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function V(e){let n=[],t=0,r=e.startsWith("/")?e:`/${e}`,s=m(r).split("/").map(i=>{if(!i)return"";let a=i.match(/^\{([^}]+)\}$/);return a?(n.push(a[1]),"([^/]+)"):(t+=2,L(i))}).join("/");return{regex:new RegExp(`^${s||"/"}$`),params:n,score:t}}function l(e,n){if(n&&A(e))try{return JSON.parse(n)}catch{return}}function E(e){return e?e.split(";")[0]?.trim().toLowerCase()??"":""}function A(e){let n=E(e);return n==="application/json"||n.endsWith("+json")}function Q(e,n){let t=E(n);if(!t)return e["application/json"]??e["*/*"];if(e[t]!==void 0)return e[t];let[r,o]=t.split("/");if(r&&o){let s=`${r}/*`;if(e[s]!==void 0)return e[s]}return e["*/*"]}function Z(e){let n=new Set,t=[];for(let r of e){let o=r.trim().toLowerCase();o.length!==0&&(o.endsWith("*")?t.push(o.slice(0,-1)):n.add(o))}return{names:n,prefixes:t}}function v(e,n){let t=e.toLowerCase();return t.startsWith(":")||U.has(t)||J.some(r=>t.startsWith(r))?!0:n?n.names.has(t)||n.prefixes.some(r=>t.startsWith(r)):!1}import{createReadStream as q}from"node:fs";import{readFile as B}from"node:fs/promises";import{createInterface as F}from"node:readline";function I(e){if(e!=null){if(typeof e=="string")return e;if(Buffer.isBuffer(e))return e.toString("utf8");if(c(e)||Array.isArray(e))try{return JSON.stringify(e)}catch{return String(e)}return String(e)}}function se(e){if(typeof e=="number"&&Number.isFinite(e))return e;if(typeof e=="string"&&e.trim()!==""){let n=Number(e);if(Number.isFinite(n))return n}}function H(e,n){if(e!=null){if(n==="base64"&&typeof e=="string")try{return Buffer.from(e,"base64").toString("utf8")}catch{return e}return I(e)}}function ae(e,n,t){let r=e.method?.toUpperCase(),o=e.url;if(!r||!o)return null;let s=p(e.requestHeaders),i=f(o);if(u(i.host)&&s.host)try{i=new URL(`${i.protocol}//${s.host}${i.pathname}${i.search}`)}catch{i=f(o)}let a=e.requestContentType??s["content-type"],y=H(e.requestBody),T={method:r,url:i.toString(),path:i.pathname,query:i.searchParams,protocol:i.protocol,protocolKnown:e.schemeKnown??/^https?:\/\//i.test(o),host:u(i.host)?void 0:i.host||void 0,headers:s,contentType:a,bodyText:y,bodyJson:l(a,y)},h,x=e.responseStatus;if(x!==void 0){let w=p(e.responseHeaders),S=e.responseContentType??w["content-type"],b=H(e.responseBody);h={status:x,statusText:e.responseStatusText,headers:w,contentType:S,bodyText:b,bodyJson:l(S,b)}}return{index:n,source:t,startedAt:e.startedAt,request:T,response:h,raw:e.raw}}async function*ce(e){let n=q(e,{encoding:"utf8"}),t=F({input:n,crlfDelay:1/0});for await(let r of t){let o=r.trim();if(o)try{let s=JSON.parse(o);c(s)&&(yield s)}catch{}}}async function*ue(e,n){let t=await B(e,"utf8"),r=JSON.parse(t);if(n)for(let o of n.split("."))r=c(r)?r[o]:void 0;if(Array.isArray(r))for(let o of r)c(o)&&(yield o)}function fe(e){return p(e)["content-type"]}function ge(e){return e?.replace(/\/+$/,"")||void 0}function z(e,n){if(!n||n==="/")return e||"/";if(e===n)return"/";if(e.startsWith(`${n}/`))return e.slice(n.length)||"/"}function me(e,n){if(n.startsWith("/"))return z(e.path,n);let t=f(n.includes("://")?n:`http://${n}`);if(!(u(t.host)||e.host!==void 0&&e.host.toLowerCase()!==t.host))return z(e.path,m(t.pathname))}export{D as a,_ as b,M as c,K as d,u as e,Y as f,f as g,m as h,V as i,E as j,A as k,Q as l,Z as m,v as n,I as o,se as p,H as q,ae as r,ce as s,ue as t,fe as u,ge as v,me as w};
|