securityos/node_modules/next/dist/lib/mkcert.js.map

1 line
3.4 KiB
Plaintext
Raw Permalink Normal View History

2024-09-06 15:32:35 +00:00
{"version":3,"sources":["../../src/lib/mkcert.ts"],"names":["createSelfSignedCertificate","fetch","require","MKCERT_VERSION","getBinaryName","platform","process","arch","Error","downloadBinary","binaryName","cacheDirectory","getCacheDirectory","binaryPath","path","join","fs","existsSync","downloadUrl","promises","mkdir","recursive","Log","info","response","ok","body","status","arrayBuffer","buffer","Buffer","from","writeFile","chmod","err","error","host","certDir","resolvedCertDir","resolve","cwd","keyPath","certPath","defaultHosts","hosts","includes","execSync","stdio","caLocation","toString","trim","gitignorePath","gitignore","readFile","appendFile","key","cert","rootCA"],"mappings":";;;;+BAuEsBA;;;eAAAA;;;2DAvEP;6DACE;mCACiB;6DACb;+BACI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEzB,MAAM,EAAEC,KAAK,EAAE,GAAGC,QAAQ;AAI1B,MAAMC,iBAAiB;AAQvB,SAASC;IACP,MAAMC,WAAWC,QAAQD,QAAQ;IACjC,MAAME,OAAOD,QAAQC,IAAI,KAAK,QAAQ,UAAUD,QAAQC,IAAI;IAE5D,IAAIF,aAAa,SAAS;QACxB,OAAO,CAAC,OAAO,EAAEF,eAAe,SAAS,EAAEI,KAAK,IAAI,CAAC;IACvD;IACA,IAAIF,aAAa,UAAU;QACzB,OAAO,CAAC,OAAO,EAAEF,eAAe,QAAQ,EAAEI,KAAK,CAAC;IAClD;IACA,IAAIF,aAAa,SAAS;QACxB,OAAO,CAAC,OAAO,EAAEF,eAAe,OAAO,EAAEI,KAAK,CAAC;IACjD;IAEA,MAAM,IAAIC,MAAM,CAAC,sBAAsB,EAAEH,SAAS,CAAC;AACrD;AAEA,eAAeI;IACb,IAAI;QACF,MAAMC,aAAaN;QACnB,MAAMO,iBAAiBC,IAAAA,oCAAiB,EAAC;QACzC,MAAMC,aAAaC,aAAI,CAACC,IAAI,CAACJ,gBAAgB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