cf 1.0.0-beta.25 → 1.0.0-beta.27
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/dist/_meta/commands.json +2015 -3426
- package/dist/_meta/hand-written-commands.json +16 -1
- package/dist/_meta/schemas.json +9249 -2339
- package/dist/abuse-reports-RxXqfDEW.mjs +24 -0
- package/dist/{access-__sFDSFL.mjs → access-BxEprr2f.mjs} +1 -1
- package/dist/{accounts-CmggwRjh.mjs → accounts-DU2ZNYqP.mjs} +17 -11
- package/dist/{acm-AAhRZUAU.mjs → acm-CBCIKBJ4.mjs} +1 -1
- package/dist/{addressing-DVeJNPZc.mjs → addressing-BKxiLRHk.mjs} +1 -1
- package/dist/{agent-memory-DQhWO6sc.mjs → agent-memory-DkBpQYUL.mjs} +1 -1
- package/dist/{ai-CULO9sno.mjs → ai-DqEN_hhg.mjs} +2 -2
- package/dist/{ai-audit-udn4HF34.mjs → ai-audit-BmzOgt6x.mjs} +1 -1
- package/dist/{ai-gateway-Bm2MMdec.mjs → ai-gateway-B0uiYVHq.mjs} +3 -3
- package/dist/ai-search-DbZIxdio.mjs +74 -0
- package/dist/{ai-security-DXy9ht-9.mjs → ai-security-CvZfP2JC.mjs} +1 -1
- package/dist/{alerting-CssnaN2i.mjs → alerting-BjGwBxZT.mjs} +1 -1
- package/dist/{analytics-BVo7Ax0w.mjs → analytics-C7kT_H-W.mjs} +4 -4
- package/dist/{analytics-engine-BBd0Bydx.mjs → analytics-engine-BHpcNSdD.mjs} +1 -1
- package/dist/{api-security-C-D9OKtH.mjs → api-security-BbcvDtff.mjs} +2 -2
- package/dist/{argo-DSziwzvA.mjs → argo-D1VONzu-.mjs} +1 -1
- package/dist/{artifacts-nVMgn4dn.mjs → artifacts-2R2sxIKO.mjs} +3 -3
- package/dist/{audit-logs-DIZ5oA_y.mjs → audit-logs-LoBB1OO_.mjs} +1 -1
- package/dist/auth-CspwoBlp.mjs +2 -0
- package/dist/{auth-JsvLULHA.mjs → auth-D499YE2n.mjs} +3 -3
- package/dist/{auth-CB9wjyad.mjs → auth-FK2eLQ02.mjs} +1 -1
- package/dist/{auth-token-BAgw7kYP.mjs → auth-token-BwpERbnG.mjs} +1 -1
- package/dist/{autoconfig-CajkMb3B.mjs → autoconfig-B2w-woU0.mjs} +85 -83
- package/dist/{basin-catalog-BRvGeKm3.mjs → basin-catalog-AgOHGiPI.mjs} +2 -2
- package/dist/billing-DRNww0iC.mjs +24 -0
- package/dist/{blocks-D2tE8dp2.mjs → blocks-C8vyXIAT.mjs} +1 -1
- package/dist/body-unions-CjpNjwSW.mjs +2 -0
- package/dist/bot-management-fwxKIbaB.mjs +9 -0
- package/dist/{botnet-feed-VOL5P4s3.mjs → botnet-feed-DCYB5kYZ.mjs} +1 -1
- package/dist/{brand-protection-CSVHQ9Pt.mjs → brand-protection-BVICLzBc.mjs} +1 -1
- package/dist/browser-run-CEk-NIgP.mjs +40 -0
- package/dist/build-CRm2TQq8.mjs +2 -0
- package/dist/{build-BfkzV5_c.mjs → build-DO_GNhRl.mjs} +1 -1
- package/dist/{builds-y5BQCJ81.mjs → builds-CoazxuN-.mjs} +26 -26
- package/dist/{cache-Bvr988Hj.mjs → cache-jlLJLSu7.mjs} +1 -1
- package/dist/{cf-DgLg6Hop.mjs → cf-hP0SOgC6.mjs} +2 -2
- package/dist/{chunk-2HLTAS5V-B92NbX1j.mjs → chunk-AAQI36FL-e6E5HW1g.mjs} +1 -1
- package/dist/{chunk-DSGVRFIS-Dq2PrGsi.mjs → chunk-DSGVRFIS-DQwKND2c.mjs} +1 -1
- package/dist/chunk-SOBRPAPT-BKzUiNx_.mjs +363 -0
- package/dist/{cli-BTxJfFus.mjs → cli-Nqf58-1c.mjs} +3 -3
- package/dist/{client-side-security-CFmO0uz9.mjs → client-side-security-VmZzMy-m.mjs} +1 -1
- package/dist/{cloud-connector-CtwPdFBa.mjs → cloud-connector-bMlFnqP0.mjs} +1 -1
- package/dist/{cloudflared-DPkNN1Qv.mjs → cloudflared-Ba4KWdTO.mjs} +1 -1
- package/dist/{cloudforce-one-DHrMaxnU.mjs → cloudforce-one-CCaIBOAo.mjs} +121 -119
- package/dist/{command-CDYTsmxe.mjs → command-BASaTmJc.mjs} +1 -1
- package/dist/{command-BWyx7dNO.mjs → command-BiIVclNA.mjs} +1 -1
- package/dist/{command-CXwKBbj9.mjs → command-Bih1HLr3.mjs} +1 -1
- package/dist/{command-Ct3tf-P5.mjs → command-BxZBNPxG.mjs} +1 -1
- package/dist/{command-DPOjEs1B.mjs → command-ByYf12-8.mjs} +1 -1
- package/dist/{command-CmK8-DJ9.mjs → command-C0qCuw03.mjs} +1 -1
- package/dist/{command-DqWBPiew.mjs → command-C2FVMd1b.mjs} +1 -1
- package/dist/{command-ckixJeTm.mjs → command-C4OgtX_x.mjs} +1 -1
- package/dist/{command-CCDzJjIB.mjs → command-C5Kqc5Km.mjs} +1 -1
- package/dist/{command-lJJ7sEZe.mjs → command-CFxyp8Uo.mjs} +1 -1
- package/dist/{command-ClneauMx.mjs → command-CZAR85ba.mjs} +1 -1
- package/dist/{command-BXCk1OsI.mjs → command-CelQVrZL.mjs} +1 -1
- package/dist/{command-YFWLEK8W.mjs → command-CrAlzysj.mjs} +1 -1
- package/dist/{command-6_Ms3TZv.mjs → command-pMoNdd22.mjs} +1 -1
- package/dist/{completions-B1rYgw_a.mjs → completions-DRzBiqpv.mjs} +1 -1
- package/dist/{connector-interrupts-DecTdK6X.mjs → connector-interrupts-CrTeSyaM.mjs} +1 -1
- package/dist/{connector-telemetry-events-wePxPACj.mjs → connector-telemetry-events-BbAOUt9h.mjs} +1 -1
- package/dist/{connector-telemetry-snapshots-D8sXR1qx.mjs → connector-telemetry-snapshots-DcpBx7Qx.mjs} +1 -1
- package/dist/{connectors-C-6RQ_Q1.mjs → connectors-D1WFLJoE.mjs} +1 -1
- package/dist/{containers-D65Gpj9Q.mjs → containers-BOBEs1Gk.mjs} +4 -4
- package/dist/containers-DINLx5_i.mjs +380 -0
- package/dist/{content-scan-DbIDQ-Yu.mjs → content-scan-D1GfPSL0.mjs} +1 -1
- package/dist/{context-DCon1tRZ.mjs → context-Dp4CXG22.mjs} +1 -1
- package/dist/{cps-DGLmzCzp.mjs → cps-D4uhzg3k.mjs} +1 -1
- package/dist/{csam-scanner-R7Ih-Dnw.mjs → csam-scanner-DOOUBeBM.mjs} +1 -3
- package/dist/custom-csrs-DtdFo5YZ.mjs +18 -0
- package/dist/{custom-hostnames-BFWR-tR_.mjs → custom-hostnames-ccdlELaD.mjs} +1 -1
- package/dist/custom-nameservers-p3gDjfva.mjs +12 -0
- package/dist/custom-pages-DAkKVzgR.mjs +38 -0
- package/dist/d1-CDIyRdh4.mjs +52 -0
- package/dist/{delegate-CTj0dYET.mjs → delegate-B4bKqF7i.mjs} +1 -1
- package/dist/delegate.mjs +1 -1
- package/dist/{deploy-BVTA83rN.mjs → deploy-BaC5Ty7F.mjs} +1 -1
- package/dist/{deploy-context-CO8ZSRwx.mjs → deploy-context-DTTgNGro.mjs} +1 -1
- package/dist/{deploy-input-PhKRxa_2.mjs → deploy-input-mAy06fAI.mjs} +1 -1
- package/dist/{dev-CM5GLHNn.mjs → dev-De-HszNT.mjs} +1 -1
- package/dist/{diagnostics-DPjl0aCm.mjs → diagnostics-D1CUs2o9.mjs} +1 -1
- package/dist/{dist-ataVE8ob.mjs → dist-D5qkmHhC.mjs} +2 -2
- package/dist/{dls-BLTIVlbh.mjs → dls-DWBiYzY1.mjs} +1 -1
- package/dist/{dns-firewall-D1bb1byu.mjs → dns-firewall-DH9xIT5H.mjs} +8 -8
- package/dist/{dns-DkqVq-nB.mjs → dns-wMjf1t6-.mjs} +14 -8
- package/dist/{docs-tOv_OllI.mjs → docs-BA7qslb2.mjs} +1 -1
- package/dist/{dotenv-qsoPELMm.mjs → dotenv-DKRemNCH.mjs} +1 -1
- package/dist/{durable-objects-OJhns_to.mjs → durable-objects-DF0MYpnV.mjs} +1 -1
- package/dist/{email-auth-BbsIBNlu.mjs → email-auth-BShMFXn4.mjs} +1 -1
- package/dist/email-domains-CDSbVclP.mjs +14 -0
- package/dist/{email-routing-DnitWE1A.mjs → email-routing-CBCkbg_F.mjs} +4 -2
- package/dist/{email-security-DiWtb7cx.mjs → email-security-CnNa1YON.mjs} +4 -4
- package/dist/{email-sending-DuDjXykw.mjs → email-sending-CpDSw-Eb.mjs} +16 -16
- package/dist/error-sanitization-B025CygB.mjs +2 -0
- package/dist/{error-sanitization-ahuAGEjT.mjs → error-sanitization-DG8WSzHe.mjs} +1 -1
- package/dist/{errors-CCFmptqJ.mjs → errors-DatLr-iR.mjs} +1 -1
- package/dist/{field-extractors-DNNnkBZH.mjs → field-extractors-BwGdMnTr.mjs} +1 -1
- package/dist/{firewall-C7eZRNVF.mjs → firewall-CY_oem-d.mjs} +25 -9
- package/dist/{flagship-BczjsrJ5.mjs → flagship-Bat5EZCk.mjs} +1 -1
- package/dist/{fraud-wE0UM2SM.mjs → fraud-CSUKLh8X.mjs} +2 -2
- package/dist/global-options-DiKj2cQy.mjs +2 -0
- package/dist/{google-tag-gateway-6mvtxcJK.mjs → google-tag-gateway-C2skt6t-.mjs} +1 -1
- package/dist/{healthchecks-aIB3DebS.mjs → healthchecks-uC43QKQd.mjs} +1 -1
- package/dist/{hyperdrive-DHRP8SJS.mjs → hyperdrive-FcBbpew4.mjs} +3 -3
- package/dist/iam-8T74DNhH.mjs +62 -0
- package/dist/{images-CLgvxd0t.mjs → images-C3JUaf6b.mjs} +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{init-B_DBTMXU.mjs → init-BEVVz4_P.mjs} +1 -1
- package/dist/{intel-jnoIVlYG.mjs → intel-DRy4rHrt.mjs} +6 -7
- package/dist/{interactive-1g0dnrA8.mjs → interactive-CKHdGvkh.mjs} +1 -1
- package/dist/{internal-Ba3b-Z8J.mjs → internal-CamuESs0.mjs} +1 -1
- package/dist/{ips-CQ4gFfex.mjs → ips-DinCNnWj.mjs} +1 -1
- package/dist/k2-wsanPL3y.mjs +10 -0
- package/dist/{kv-DQfnNE-w.mjs → kv-BLSPcEnH.mjs} +1 -1
- package/dist/{lazy-command-DjGzxiUT.mjs → lazy-command-WB1FOuew.mjs} +1 -1
- package/dist/{leaked-credential-checks-CaqjG3Oz.mjs → leaked-credential-checks-CSZd9hBQ.mjs} +1 -1
- package/dist/{live-BfobGv8W.mjs → live-B6AsI_E5.mjs} +1 -1
- package/dist/{load-balancers-BzSCp2Uh.mjs → load-balancers-gap5u4b1.mjs} +19 -7
- package/dist/local-CFsO9Tkg.mjs +2 -0
- package/dist/{local-BNmz58v4.mjs → local-CgBhtmON.mjs} +1 -1
- package/dist/{local-runtime-DvH92pV8.mjs → local-runtime-CmlJ20uJ.mjs} +1 -1
- package/dist/{login-B9wYab6S.mjs → login-BJHaTERg.mjs} +1 -1
- package/dist/login-BfuOf-Yi.mjs +2 -0
- package/dist/logpush-qhlxsioM.mjs +68 -0
- package/dist/{logs-Dan7xU-k.mjs → logs-bI54CJ0w.mjs} +23 -7
- package/dist/{magic-network-monitoring-TAjt04vN.mjs → magic-network-monitoring-CX3TaMTu.mjs} +1 -1
- package/dist/{magic-transit-BSuLHnQ5.mjs → magic-transit-BwDyySHJ.mjs} +20 -20
- package/dist/{managed-defense-CTnIZLg4.mjs → managed-defense-CsBBkfeQ.mjs} +2 -2
- package/dist/{managed-transforms-BETvesjp.mjs → managed-transforms-CUC-uAbW.mjs} +1 -1
- package/dist/{mcp-DhjMGaKc.mjs → mcp-CyI0sDmL.mjs} +3 -3
- package/dist/{mesh-jxLLG3t4.mjs → mesh-Czr0UCP4.mjs} +2 -2
- package/dist/{migrate-Bkhk38nJ.mjs → migrate-DKDWYrz2.mjs} +1 -1
- package/dist/{monetization-BqDgHlPv.mjs → monetization-NUgfDtSy.mjs} +7 -3
- package/dist/{network-D6BRpgOv.mjs → network-B42zrBic.mjs} +1 -1
- package/dist/{network-interconnects-tP41GbnL.mjs → network-interconnects-DuIBe8fK.mjs} +4 -4
- package/dist/{o11y-h4cIC_1T.mjs → o11y-oEUpMC3O.mjs} +6 -6
- package/dist/{oauth-CuM12iNb.mjs → oauth-BLQ1-y3R.mjs} +1 -1
- package/dist/{oauth-nDH3nTCa.mjs → oauth-BmSFLp_s.mjs} +1 -1
- package/dist/observability-BxhJQCgZ.mjs +4 -0
- package/dist/organization-CEnlXwrl.mjs +70 -0
- package/dist/{organizations-7Q3d9vcW.mjs → organizations-Dt86ToxE.mjs} +1 -1
- package/dist/{origin-post-quantum-encryption-XBMPCdSL.mjs → origin-post-quantum-encryption-lX-uaJSL.mjs} +1 -1
- package/dist/package-CiRJBRHO.mjs +2 -0
- package/dist/{page-rules-BlT5xlhH.mjs → page-rules-J6LhwR-s.mjs} +1 -1
- package/dist/{pages-CIbL62L2.mjs → pages-BksdnChs.mjs} +4 -4
- package/dist/{pay-per-crawl-BzsBqo_m.mjs → pay-per-crawl-BLcbHRoR.mjs} +1 -1
- package/dist/{pay-per-use-DtejLYJ8.mjs → pay-per-use-VatiU-Nt.mjs} +4 -2
- package/dist/{pipelines-LjLb8jq6.mjs → pipelines-B5AoB3f3.mjs} +5 -5
- package/dist/precursor-D3VH2MXT.mjs +4 -0
- package/dist/{previews-zRYO9uO9.mjs → previews-DzJ85fsr.mjs} +1 -1
- package/dist/{progress-_Jux05O5.mjs → progress-DLri-rA7.mjs} +1 -1
- package/dist/{prompt-SNVLBS1b.mjs → prompt-D0dXwuME.mjs} +1 -1
- package/dist/{queues-Ci4rGGC4.mjs → queues-BsAck4To.mjs} +5 -5
- package/dist/{r2-qm2hgS43.mjs → r2-BYjdHDEZ.mjs} +38 -38
- package/dist/{radar-C_ydbJe_.mjs → radar-CvLtu-Vr.mjs} +1 -1
- package/dist/{raw-fetch-D3ydyJYW.mjs → raw-fetch-DQeDx1wT.mjs} +1 -1
- package/dist/{ready-hk-_B8z3.mjs → ready-gsGEaWLL.mjs} +1 -1
- package/dist/{realtime-BAvjYmYw.mjs → realtime-DiCEgFTC.mjs} +81 -79
- package/dist/{registrar-DD7WZaP2.mjs → registrar-D4wdgWpo.mjs} +8 -8
- package/dist/{registrar-sandbox-DbxloH5s.mjs → registrar-sandbox-B6yopzdG.mjs} +2 -2
- package/dist/{reporting-CRVg3J1C.mjs → reporting-BiHgnT8L.mjs} +1 -1
- package/dist/{request-headers-Cn01EsbI.mjs → request-headers-CoxHUNcB.mjs} +1 -1
- package/dist/{request-tracers-BWs0rdFS.mjs → request-tracers-817HTytF.mjs} +1 -1
- package/dist/{resource-sharing-yipIkdbd.mjs → resource-sharing-CW9xxtq5.mjs} +12 -12
- package/dist/{rules-CCtaBLiN.mjs → rules-CRhe_ca9.mjs} +1 -1
- package/dist/rulesets-CKyc-Xlx.mjs +42 -0
- package/dist/{rum-gDOKylu_.mjs → rum-BfnWHW_d.mjs} +1 -1
- package/dist/{run-Br8sYjNF.mjs → run-Ciw_GIrC.mjs} +1 -1
- package/dist/run-DD45EQTm.mjs +2 -0
- package/dist/{schema-cache-Cb64Nqbt.mjs → schema-cache-BIo0Gi2H.mjs} +1 -1
- package/dist/schema-flags-DrqvwQNw.mjs +4 -0
- package/dist/{scim-CM8Xah56.mjs → scim-C4iRWNYB.mjs} +1 -1
- package/dist/{secrets-store-BEnXiYCC.mjs → secrets-store-DgtzZRze.mjs} +1 -1
- package/dist/security-insights-SlUGW3F_.mjs +62 -0
- package/dist/{security-txt-BF0PWAEW.mjs → security-txt-C3YS0REz.mjs} +1 -1
- package/dist/{session-B7vOqdZU.mjs → session-D2yuwO4i.mjs} +1 -1
- package/dist/{shared-CBMFY1VY.mjs → shared--uVkAAd7.mjs} +1 -1
- package/dist/{signed-url-VDDQlllt.mjs → signed-url-ClLk45_J.mjs} +1 -1
- package/dist/{smart-shield-DQku_wYi.mjs → smart-shield-Dn95hqUH.mjs} +1 -1
- package/dist/{snippets-B3FCEMuh.mjs → snippets-BNUKOajz.mjs} +1 -1
- package/dist/{spawn-9sE67p7c.mjs → spawn-DuT4snxu.mjs} +1 -1
- package/dist/{spectrum-nLirlVue.mjs → spectrum-Cj0BMtg2.mjs} +3 -3
- package/dist/{speed-C1hCyMPy.mjs → speed-BrVeZRyX.mjs} +1 -1
- package/dist/{sql-DVQOKThL.mjs → sql-BX1pBqj3.mjs} +2 -2
- package/dist/src-DPnUfK4c.mjs +131 -0
- package/dist/{ssl-CYDRgr24.mjs → ssl-Bx4LCutF.mjs} +3 -3
- package/dist/{startup-profile-BLvw_Wmc.mjs → startup-profile-DqaYNT0b.mjs} +1 -1
- package/dist/startup-profile-tZNb2HGz.mjs +2 -0
- package/dist/{state-B8n0QU04.mjs → state-BmzOLELo.mjs} +1 -1
- package/dist/state-Uwfrmw5I.mjs +2 -0
- package/dist/{stream-DHyejrI6.mjs → stream-BRzr6yh0.mjs} +1 -1
- package/dist/{tags-DOL6dKQE.mjs → tags-xVzjZxdt.mjs} +11 -5
- package/dist/{telemetry-DJ8-Q2pU.mjs → telemetry-CJ9URio3.mjs} +1 -1
- package/dist/telemetry-Pt5GpCKD.mjs +2 -0
- package/dist/tenant-custom-nameservers-M7Fxqh2W.mjs +8 -0
- package/dist/{tunnels-CMAmH4Vh.mjs → tunnels-DQVXKUKA.mjs} +3 -3
- package/dist/{turnstile-DTJjDMFp.mjs → turnstile-B_Ugzgom.mjs} +1 -1
- package/dist/ui-FYultowZ.mjs +2 -0
- package/dist/{update-check-DDGKWkmi.mjs → update-check-DHUo4FOJ.mjs} +1 -1
- package/dist/{update-check-BkCdHK-3.mjs → update-check-DRr0eRhB.mjs} +1 -1
- package/dist/update-check-worker.mjs +1 -1
- package/dist/{url-normalization-BbWOra1u.mjs → url-normalization-CZRQH_pJ.mjs} +1 -1
- package/dist/{url-scanner-Bj-eS_3C.mjs → url-scanner-BH4PLy16.mjs} +1 -1
- package/dist/{user-CMzTHHVX.mjs → user-Bn82Qw0Y.mjs} +10 -12
- package/dist/{vectorize-D4H7_KPs.mjs → vectorize-DoVVz_sh.mjs} +1 -1
- package/dist/version-Zr2oF8mY.mjs +2 -0
- package/dist/{waiting-rooms-CqMbVu9s.mjs → waiting-rooms-QUW131o3.mjs} +5 -3
- package/dist/{web-assets-BgfzyF8t.mjs → web-assets-CgQXsp8m.mjs} +2 -2
- package/dist/{web3-ByCe47FI.mjs → web3-TY9s6Swn.mjs} +3 -3
- package/dist/workers-B3uJqJKc.mjs +39 -0
- package/dist/{workers-builds-2N71_8MZ.mjs → workers-builds-BgGY0IGk.mjs} +2 -2
- package/dist/{workers-for-platforms-BMN4QXgT.mjs → workers-for-platforms-5RkV9MVp.mjs} +2 -2
- package/dist/workers-vpc-Bt4OQbwM.mjs +12 -0
- package/dist/{workflows-COiyqt-B.mjs → workflows-6m85DdqF.mjs} +7 -7
- package/dist/{wrangler-migration-CqSg8IDj.mjs → wrangler-migration-BbmGOu8l.mjs} +3 -3
- package/dist/{zaraz-DjwhCH8A.mjs → zaraz-8WSJ7l0L.mjs} +2 -2
- package/dist/{zero-trust-BmpuDOmH.mjs → zero-trust-DK0cqDZv.mjs} +483 -405
- package/dist/{zones-XYQiz5kF.mjs → zones-DTAcguf6.mjs} +3 -3
- package/package.json +14 -14
- package/dist/abuse-reports-BIS9MZn7.mjs +0 -24
- package/dist/ai-search-GRN_gXgU.mjs +0 -74
- package/dist/auth-Bls_1yRW.mjs +0 -2
- package/dist/billing-BhPoqyKC.mjs +0 -22
- package/dist/bot-management-BfjX5DuH.mjs +0 -9
- package/dist/browser-run-cxOd2cZE.mjs +0 -40
- package/dist/build-DCdLWwOg.mjs +0 -2
- package/dist/chunk-3PJ54H4K-CbRAWQWI.mjs +0 -363
- package/dist/containers-C_byVTZF.mjs +0 -380
- package/dist/custom-csrs-D0RnVoJ7.mjs +0 -10
- package/dist/custom-nameservers-Dn_9Ssti.mjs +0 -8
- package/dist/custom-pages-HqIQcb77.mjs +0 -20
- package/dist/d1-CopIY9RT.mjs +0 -89
- package/dist/email-domains-pWZi1M4q.mjs +0 -12
- package/dist/error-sanitization-rodO1WCL.mjs +0 -2
- package/dist/iam-6t7-ScrS.mjs +0 -48
- package/dist/k2-Bsm6rzNX.mjs +0 -10
- package/dist/local-ChR3YIMU.mjs +0 -2
- package/dist/login-ierSCYE6.mjs +0 -2
- package/dist/logpush-DgfiSd1b.mjs +0 -44
- package/dist/magic-cloud-networking-DP8fWC4a.mjs +0 -68
- package/dist/oauth-clients-B0voUiXM.mjs +0 -14
- package/dist/oauth-scopes-Bhns1ZHW.mjs +0 -4
- package/dist/organization-Cy55HoRR.mjs +0 -73
- package/dist/package-DK3JX4I3.mjs +0 -2
- package/dist/precursor-BKp5_Ag4.mjs +0 -4
- package/dist/rulesets-DBEvCNDS.mjs +0 -34
- package/dist/run-LOgTLpob.mjs +0 -2
- package/dist/schema-flags-BcbbCWR5.mjs +0 -4
- package/dist/security-insights-Be5GvdBA.mjs +0 -40
- package/dist/src-Bh2gHpI7.mjs +0 -131
- package/dist/startup-profile-ByxSdhEl.mjs +0 -2
- package/dist/state-BTOzaT5L.mjs +0 -2
- package/dist/telemetry-kjElc1zT.mjs +0 -2
- package/dist/tenant-2EdATz2Y.mjs +0 -10
- package/dist/tenant-custom-nameservers-DhEpJNST.mjs +0 -8
- package/dist/ui-7zujR-O7.mjs +0 -2
- package/dist/version-DIIJ2ixL.mjs +0 -2
- package/dist/workers-BiLsPkYD.mjs +0 -39
- package/dist/workers-vpc-3o7dMg7-.mjs +0 -12
|
@@ -1,363 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import{B as e,H as t,J as n,K as r,it as i,k as a,nt as o,q as s}from"./dist-ataVE8ob.mjs";import{E as c,M as l,N as u,O as d}from"./chunk-2HLTAS5V-B92NbX1j.mjs";import{createRequire as f}from"node:module";import{chmodSync as p,existsSync as m,mkdirSync as h,rmSync as g,writeFileSync as _}from"node:fs";import v from"node:path";import ee from"node:url";import y from"node:assert";import{TextEncoder as te}from"node:util";import ne from"node:http";import{createCipheriv as re,createDecipheriv as ie,createHash as b,randomBytes as x,webcrypto as S}from"node:crypto";import{spawn as ae,spawnSync as C}from"node:child_process";f(import.meta.url||(typeof __filename==`string`?__filename:`/`));var oe=Object.defineProperty,w=(e,t)=>oe(e,`name`,{value:t,configurable:!0}),T=e();f(import.meta.url||(typeof __filename==`string`?__filename:`/`));var se=!1;function E(e){let{configOverride:t,warningLogger:n,storage:r}=e,{oauth_token:i,refresh_token:a,expiration_time:o,scopes:s,api_token:c}=t??r.read()??{};return i?{accessToken:{value:i,expiry:o??`2000-01-01:00:00:00+00:00`},refreshToken:{value:a??``},scopes:s}:c?(!se&&n&&(se=!0,n.warn(`It looks like you have used Wrangler v1's \`config\` command to login with an API token
|
|
3
|
-
from ${t===void 0?r.path():`in-memory config`}.
|
|
4
|
-
This is no longer supported in the current version of Wrangler.
|
|
5
|
-
If you wish to authenticate via an API token then please set the \`CLOUDFLARE_API_TOKEN\` environment variable.`)),{deprecatedApiToken:c}):{}}w(E,`readStoredAuthState`);var ce=i({variableName:`CLOUDFLARE_API_TOKEN`,deprecatedName:`CF_API_TOKEN`}),le=i({variableName:`CLOUDFLARE_API_KEY`,deprecatedName:`CF_API_KEY`}),ue=i({variableName:`CLOUDFLARE_EMAIL`,deprecatedName:`CF_EMAIL`});function de(e){if(e?.allowGlobalAuthKey??!0){let e=le(),t=ue();if(e&&t)return{authKey:e,authEmail:t}}let t=ce();if(t)return{apiToken:t}}w(de,`getAuthFromEnv`);function fe(e){let t=de(e);if(t)return t;let n=E({storage:e.storage,warningLogger:e.warningLogger});if(n.deprecatedApiToken)return{apiToken:n.deprecatedApiToken};if(n.accessToken?.value)return{apiToken:n.accessToken.value}}w(fe,`getAPIToken`);function pe(e){let t=fe(e);if(!t)throw new u(`No API token found.`,{telemetryMessage:`user auth missing api token`});return t}w(pe,`requireApiToken`);var me=/^[A-Za-z0-9_-]+$/;function he(e,t){if(!me.test(e))throw new u(`Invalid account ID "${e}" ${t}. Account IDs may only contain alphanumeric characters, hyphens, and underscores.`,{telemetryMessage:`user account id invalid characters`});return e}w(he,`validateAccountId`);var D=i({variableName:`WRANGLER_AUTH_DOMAIN`,defaultValue:/* @__PURE__ */ w(()=>s()===`staging`?`dash.staging.cloudflare.com`:`dash.cloudflare.com`,`defaultValue`)}),ge=i({variableName:`WRANGLER_AUTH_URL`,defaultValue:/* @__PURE__ */ w(()=>`https://${D()}/oauth2/auth`,`defaultValue`)}),_e=i({variableName:`WRANGLER_TOKEN_URL`,defaultValue:/* @__PURE__ */ w(()=>`https://${D()}/oauth2/token`,`defaultValue`)}),ve=i({variableName:`WRANGLER_REVOKE_URL`,defaultValue:/* @__PURE__ */ w(()=>`https://${D()}/oauth2/revoke`,`defaultValue`)}),ye=i({variableName:`CLOUDFLARE_ACCOUNT_ID`,deprecatedName:`CF_ACCOUNT_ID`});function be(){let e=ye();if(e)return he(e,"set in the `CLOUDFLARE_ACCOUNT_ID` environment variable")}w(be,`getCloudflareAccountIdFromEnv`);var xe=`/oauth2/device/auth`;function Se(){return`https://${D()}${xe}`}w(Se,`getDeviceAuthUrl`);var Ce=i({variableName:`CLOUDFLARE_ACCESS_CLIENT_ID`}),we=i({variableName:`CLOUDFLARE_ACCESS_CLIENT_SECRET`}),Te=i({variableName:`WRANGLER_CF_AUTHORIZATION_TOKEN`}),Ee=o({variableName:`CLOUDFLARE_AUTH_USE_KEYRING`}),O={},k=/* @__PURE__ */ new Map;function De(e,t){let n=new URL(`https://${e}`);return t&&n.searchParams.set(`cf_workers_preview_token`,t),n.toString()}w(De,`buildProbeUrl`);function Oe(){for(let e of Object.keys(O))delete O[e];k.clear()}w(Oe,`clearAccessCaches`);async function ke(e,t,n){t.debug(`Checking if domain has Access enabled:`,e);let r=JSON.stringify([e,!!n]);if(k.has(r))return t.debug(`Using cached Access switch for:`,e,k.get(r)),k.get(r)??!1;t.debug(`Access switch not cached for:`,e);try{let i=new AbortController,a=setTimeout(()=>{i.abort()},1e3),o=await(0,T.fetch)(De(e,n),{redirect:`manual`,signal:i.signal});clearTimeout(a);let s=!!(o.status===302&&o.headers.get(`location`)?.includes(`cloudflareaccess.com`));return(s||!n)&&(t.debug(`Caching access switch for:`,e),k.set(r,s)),s}catch{return t.debug(`Access probe failed for:`,e),!1}}w(ke,`domainUsesAccess`);async function Ae(e,t){let n=t.logger,r=Ce(),i=we();if(r&&i)return n.debug(`Using Access Service Token headers for domain:`,e),{"CF-Access-Client-Id":r,"CF-Access-Client-Secret":i};if((r!==void 0||i!==void 0)&&n.warn(`Both CLOUDFLARE_ACCESS_CLIENT_ID and CLOUDFLARE_ACCESS_CLIENT_SECRET must be set to use Access Service Token authentication. Only ${r===void 0?`CLOUDFLARE_ACCESS_CLIENT_SECRET`:`CLOUDFLARE_ACCESS_CLIENT_ID`} was found.`),!await ke(e,n,t.previewToken))return{};if(n.debug(`Getting Access headers for domain:`,e),O[e])return n.debug(`Using cached Access headers for domain:`,e),O[e];if((t.isNonInteractiveOrCI??a)())throw new u(`The domain "${e}" is behind Cloudflare Access, but no Access Service Token credentials were found and the current environment is non-interactive.
|
|
6
|
-
Set the CLOUDFLARE_ACCESS_CLIENT_ID and CLOUDFLARE_ACCESS_CLIENT_SECRET environment variables to authenticate with an Access Service Token.
|
|
7
|
-
See https://developers.cloudflare.com/cloudflare-one/access-controls/service-credentials/service-tokens/`,{telemetryMessage:`user access missing service token non interactive`});n.debug(`Spawning cloudflared to get Access token for domain:`);let o=await je(De(e,t.previewToken),t.signal);if(o.error)throw new u(`To use ${t.cliDisplayName} with Cloudflare Access, please install \`cloudflared\` from https://developers.cloudflare.com/cloudflare-one/connections/connect-apps/install-and-setup/installation`,{telemetryMessage:`user access missing cloudflared`});let s=o.stdout;n.debug(`cloudflared output:`,s);let c=s.match(/fetched your token:\n\n(.*)/m);if(c&&c.length>=2){let t={Cookie:`CF_Authorization=${c[1]}`};return O[e]=t,n.debug(`Caching Access headers for domain:`,e),t}throw Error(`Failed to authenticate with Cloudflare Access`)}w(Ae,`getAccessHeaders`);function je(e,t){return new Promise((n,r)=>{let i=ae(`cloudflared`,[`access`,`login`,e],{signal:t}),a=[];i.stdout.on(`data`,e=>a.push(e)),i.stderr.resume();let o=/* @__PURE__ */ w(()=>i.kill(),`killChild`);process.once(`exit`,o),i.on(`error`,e=>{process.removeListener(`exit`,o),t?.aborted?r(e):n({error:e,stdout:``})}),i.on(`close`,()=>{process.removeListener(`exit`,o),t?.aborted?r(t.reason??/* @__PURE__ */ Error(`The operation was aborted`)):n({stdout:Buffer.concat(a).toString()})})})}w(je,`spawnCloudflaredAccessLogin`);async function Me(e){let t=Te();return t===void 0?Ae(D(),e):(e.logger.debug(`Using WRANGLER_CF_AUTHORIZATION_TOKEN from environment`),{Cookie:`CF_Authorization=${t}`})}w(Me,`getCloudflareAccessHeaders`);var Ne=96,Pe=32,Fe=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~`;function Ie(e){let t=btoa(e);return t=t.replace(/\+/g,`-`),t=t.replace(/\//g,`_`),t=t.replace(/=/g,``),t}w(Ie,`base64urlEncode`);async function Le(){let e=new Uint32Array(Ne);S.getRandomValues(e);let t=Ie(Array.from(e).map(e=>Fe[e%Fe.length]).join(``)),n=await S.subtle.digest(`SHA-256`,new te().encode(t)),r=new Uint8Array(n),i=``,a=r.byteLength;for(let e=0;e<a;e++)i+=String.fromCharCode(r[e]);return{codeChallenge:Ie(i),codeVerifier:t}}w(Le,`generatePKCECodes`);var Re=/* @__PURE__ */ w(({verificationUri:e,userCode:t})=>{let n=new URL(e);return n.searchParams.set(`user_code`,t),n.toString()},`generateVerificationUrl`);function ze(e){try{return new URL(e)}catch{return}}w(ze,`parseUrl`);function Be(e,t){let n=ze(e),r=ze(`https://${t.authDomain}`);if(n===void 0||r===void 0||n.protocol!==`https:`||n.username!==``||n.password!==``||n.host!==r.host)throw new u(`The authorization server returned an untrusted \`${t.field}\`: ${e}
|
|
8
|
-
Expected an \`https\` URL on \`${t.authDomain}\`. Refusing to display or open it.`,{telemetryMessage:`user device-flow untrusted verification url`})}w(Be,`assertTrustedVerificationUrl`);var Ve=/* @__PURE__ */ w(({authUrl:e,clientId:t,scopes:n,stateQueryParam:r,codeChallenge:i,redirectUri:a})=>e+`?response_type=code&client_id=${encodeURIComponent(t)}&redirect_uri=${encodeURIComponent(a)}&scope=${encodeURIComponent([...n,`offline_access`].join(` `))}&state=${r}&code_challenge=${encodeURIComponent(i)}&code_challenge_method=S256`,`generateAuthUrl`);function He(e){let t=new Uint32Array(e);return S.getRandomValues(t),Array.from(t).map(e=>Fe[e%Fe.length]).join(``)}w(He,`generateRandomState`);var Ue=64e6;function We(e,t,n){let r=Array(t+1),i=b(`sha256`).update(e).digest();r[0]=i;for(let e=0;e<t;e++){for(let e=0;e<n;e++)i=b(`sha256`).update(i).digest();r[e+1]=i}return r}w(We,`solvePow`);function Ge(e){return Buffer.concat(e).toString(`base64`)}w(Ge,`encodeCheckpoints`);function Ke(e){let t=We(Buffer.from(e.seed,`base64url`),e.k,e.g);return{challengeToken:e.challengeToken,solution:{checkpoints:Ge(t)}}}w(Ke,`solveChallenge`);var qe=`--temporary-account`,A={termsOfService:`https://www.cloudflare.com/terms/`,privacyPolicy:`https://www.cloudflare.com/privacypolicy/`},Je=`You must accept Cloudflare's Terms of Service (${A.termsOfService}) and Privacy Policy (${A.privacyPolicy}) in order to continue. By typing "yes", you agree to these terms. Type "yes" to continue.`,Ye=`Continuing means you accept Cloudflare's Terms of Service (${A.termsOfService}) and Privacy Policy (${A.privacyPolicy}).`,Xe=/* @__PURE__ */ new Map([[1035,{message:`The event code is malformed. Check it and try again.`,telemetryMessage:`deploy temporary event code invalid`}],[1036,{message:`The event code was not found. Check it and try again.`,telemetryMessage:`deploy temporary event not found`}],[1037,{message:`This event has not started yet.`,telemetryMessage:`deploy temporary event not started`}],[1038,{message:`This event has ended.`,telemetryMessage:`deploy temporary event expired`}],[1039,{message:`This event is disabled. Contact the event organizer.`,telemetryMessage:`deploy temporary event disabled`}],[1040,{message:`This event has no temporary accounts remaining.`,telemetryMessage:`deploy temporary event exhausted`}],[1041,{message:`The event account could not be prepared. Try again later or contact the event organizer.`,telemetryMessage:`deploy temporary event provisioning unavailable`,fatal:!0}]]);function Ze(e){if(typeof e!=`object`||!e||!(`errors`in e))return;let{errors:t}=e;if(!Array.isArray(t)||t.length===0)return;let[n]=t;if(typeof n==`object`&&n&&`code`in n)return typeof n.code==`number`?n.code:void 0}w(Ze,`getResponseErrorCode`);async function Qe(e){let t;try{t=await e.json()}catch{return}let n=Ze(t);if(n===void 0)return;let r=Xe.get(n);if(!r)return;let i={telemetryMessage:r.telemetryMessage};return r.fatal?new l(r.message,i):new u(r.message,i)}w(Qe,`getEventAccountError`);function $e(){return`${r(t)}/provisioning/previews`}w($e,`getTemporaryPreviewUrl`);function et(){return`${$e()}/challenge`}w(et,`getTemporaryPreviewChallengeUrl`);function tt(e){let t=Date.parse(e);return!Number.isNaN(t)&&t>Date.now()}w(tt,`isFutureTimestamp`);function nt(e){let t=e.read();if(t&&t.account?.id&&t.account?.apiToken&&t.account?.name&&t.claim?.url&&tt(t.account?.expiresAt??``)&&tt(t.claim?.expiresAt??``))return t}w(nt,`getCachedTemporaryPreviewAccount`);async function rt(e,t){let n=await(0,T.fetch)(et(),{method:`POST`,headers:{"Content-Type":`application/json`},body:`{}`});if(!n.ok)throw new l(`Failed to request a proof-of-work challenge (${n.status} ${n.statusText}).`,{telemetryMessage:`deploy temporary account challenge failed`});let r;try{r=await n.json()}catch{throw new l(`Failed to request a proof-of-work challenge. Received an invalid response (${n.status} ${n.statusText}).`,{telemetryMessage:`deploy temporary account challenge invalid response`})}let{challengeToken:i,seed:a,k:o,g:s}=r.result??{};if(i===void 0||a===void 0||o===void 0||s===void 0)throw new l(`Failed to request a proof-of-work challenge because the response was missing required fields.`,{telemetryMessage:`deploy temporary account challenge incomplete`});if(!Number.isInteger(o)||!Number.isInteger(s)||o<=0||s<=0||o*s>Ue||Buffer.from(a,`base64url`).length!==32)throw new l(`The proof-of-work challenge is not supported by this version of ${t}.`,{telemetryMessage:`deploy temporary account challenge difficulty unsupported`});return e.log(`Solving proof-of-work challenge…`),Ke({challengeToken:i,seed:a,k:o,g:s})}w(rt,`requestPowSolution`);async function it(e,t,n=`Wrangler`){let r=await rt(e,n),i=await(0,T.fetch)($e(),{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({termsOfService:A.termsOfService,privacyPolicy:A.privacyPolicy,acceptTermsOfService:`yes`,challengeToken:r.challengeToken,solution:r.solution,...t?.eventCode?{eventCode:t.eventCode}:{}})});if(!i.ok){if(t?.eventCode){let e=await Qe(i);if(e)throw e}throw new l(`Failed to create a temporary preview account (${i.status} ${i.statusText}).`,{telemetryMessage:`deploy temporary account create failed`})}let a;try{a=await i.json()}catch{throw new l(`Failed to create a temporary preview account. Received an invalid response (${i.status} ${i.statusText}).`,{telemetryMessage:`deploy temporary account invalid response`})}let o=a.result,s=o?.account?.id,c=o?.account?.name,u=o?.account?.apiToken,d=o?.account?.expiresAt,f=o?.claim?.url,p=o?.claim?.expiresAt,m=o?.eventCodeAccepted;if(s===void 0||c===void 0||u===void 0||d===void 0||f===void 0||p===void 0)throw new l(`Failed to create a temporary preview account because the response was missing required fields.`,{telemetryMessage:`deploy temporary account response incomplete`});if(t?.eventCode&&m!==!0)throw new l(`Failed to create a temporary preview account because the response did not acknowledge the event code.`,{telemetryMessage:`deploy temporary event acknowledgement missing`});return{account:{id:s,name:c,apiToken:u,expiresAt:d},claim:{url:f,expiresAt:p}}}w(it,`createTemporaryPreviewAccount`);async function at(e){let t=nt(e.storage);if(t){if(e.request?.eventCode)throw new u(`A temporary account is already cached. Rerun without --event-code to reuse it, or run \`${e.logoutCommand??`wrangler logout`}\` and retry to create an account for this event.`,{telemetryMessage:`deploy temporary event cache conflict`});return{account:t,cached:!0}}if(!await e.prompt(Je,Ye))throw new u(`You must accept Cloudflare's Terms of Service (${A.termsOfService}) and Privacy Policy (${A.privacyPolicy}) to use ${e.temporaryAccountFlag??`--temporary-account`}.`,{telemetryMessage:`user temporary terms not accepted`});let n=await it(e.temporaryAccountLogger,e.request,e.cliDisplayName);return e.storage.write(n),{account:n,cached:!1}}w(at,`getOrCreateTemporaryPreviewAccount`);function ot(e){var t=[...arguments].slice(1),n=Array.from(typeof e==`string`?[e]:e);n[n.length-1]=n[n.length-1].replace(/\r?\n([\t ]*)$/,``);var r=n.reduce(function(e,t){var n=t.match(/\n([\t ]+|(?!\s).)/g);return n?e.concat(n.map(function(e){return e.match(/[\t ]/g)?.length??0})):e},[]);if(r.length){var i=RegExp(`
|
|
9
|
-
[ ]{`+Math.min.apply(Math,r)+`}`,`g`);n=n.map(function(e){return e.replace(i,`
|
|
10
|
-
`)})}n[0]=n[0].replace(/^\r?\n/,``);var a=n[0];return t.forEach(function(e,t){var r=a.match(/(?:^|\n)( *)$/),i=r?r[1]:``,o=e;typeof e==`string`&&e.includes(`
|
|
11
|
-
`)&&(o=String(e).split(`
|
|
12
|
-
`).map(function(e,t){return t===0?e:``+i+e}).join(`
|
|
13
|
-
`)),a+=o+n[t+1]}),a}w(ot,`dedent`);var st=ot,j=class extends u{static{w(this,`ErrorOAuth2`)}code;description;uri;toString(){return`ErrorOAuth2`}},ct=class extends j{static{w(this,`ErrorUnknown`)}toString(){return`ErrorUnknown`}},lt=class extends j{static{w(this,`ErrorAuthServerUnreachable`)}toString(){return`ErrorAuthServerUnreachable`}},ut=class extends j{static{w(this,`ErrorNoAuthCode`)}toString(){return`ErrorNoAuthCode`}},dt=class extends j{static{w(this,`ErrorInvalidReturnedStateParam`)}toString(){return`ErrorInvalidReturnedStateParam`}},ft=class extends j{static{w(this,`ErrorInvalidJson`)}toString(){return`ErrorInvalidJson`}},pt=class extends j{static{w(this,`ErrorInvalidScope`)}toString(){return`ErrorInvalidScope`}},mt=class extends j{static{w(this,`ErrorInvalidRequest`)}toString(){return`ErrorInvalidRequest`}},ht=class extends j{static{w(this,`ErrorInvalidToken`)}toString(){return`ErrorInvalidToken`}},M=class extends j{static{w(this,`ErrorAuthenticationGrant`)}toString(){return`ErrorAuthenticationGrant`}},gt=class extends M{static{w(this,`ErrorUnauthorizedClient`)}toString(){return`ErrorUnauthorizedClient`}},_t=class extends M{static{w(this,`ErrorAccessDenied`)}toString(){return`ErrorAccessDenied`}},vt=class extends M{static{w(this,`ErrorUnsupportedResponseType`)}toString(){return`ErrorUnsupportedResponseType`}},yt=class extends M{static{w(this,`ErrorServerError`)}toString(){return`ErrorServerError`}},bt=class extends M{static{w(this,`ErrorTemporarilyUnavailable`)}toString(){return`ErrorTemporarilyUnavailable`}},xt=class extends j{static{w(this,`ErrorAccessTokenResponse`)}toString(){return`ErrorAccessTokenResponse`}},St=class extends xt{static{w(this,`ErrorInvalidClient`)}toString(){return`ErrorInvalidClient`}},Ct=class extends xt{static{w(this,`ErrorInvalidGrant`)}toString(){return`ErrorInvalidGrant`}},wt=class extends xt{static{w(this,`ErrorUnsupportedGrantType`)}toString(){return`ErrorUnsupportedGrantType`}};function Tt(e,t,n){let r=`OAuth error: ${e}`;return t&&(r+=`
|
|
14
|
-
${t}`),n&&(r+=`
|
|
15
|
-
See: ${n}`),r}w(Tt,`formatOAuthErrorMessage`);function N(e,t,n){let r=Tt(e,t,n),i;switch(e){case`invalid_request`:i=new mt(r,{telemetryMessage:`user oauth invalid request`});break;case`invalid_grant`:i=new Ct(r,{telemetryMessage:`user oauth invalid grant`});break;case`unauthorized_client`:i=new gt(r,{telemetryMessage:`user oauth unauthorized client`});break;case`access_denied`:i=new _t(r,{telemetryMessage:`user oauth access denied`});break;case`unsupported_response_type`:i=new vt(r,{telemetryMessage:`user oauth unsupported response type`});break;case`invalid_scope`:i=new pt(r,{telemetryMessage:`user oauth invalid scope`});break;case`server_error`:i=new yt(r,{telemetryMessage:`user oauth server error`});break;case`temporarily_unavailable`:i=new bt(r,{telemetryMessage:`user oauth temporarily unavailable`});break;case`invalid_client`:i=new St(r,{telemetryMessage:`user oauth invalid client`});break;case`unsupported_grant_type`:i=new wt(r,{telemetryMessage:`user oauth unsupported grant type`});break;case`invalid_json`:i=new ft(r,{telemetryMessage:`user oauth invalid json`});break;case`invalid_token`:i=new ht(r,{telemetryMessage:`user oauth invalid token`});break;default:i=new ct(r,{telemetryMessage:`user oauth unknown error`})}return i.code=e,i.description=t,i.uri=n,i}w(N,`toErrorClass`);var Et=3e4;function Dt(e,t,n){if(e.error)throw N(Array.isArray(e.error)?e.error[0]:e.error,Array.isArray(e.error_description)?e.error_description[0]:e.error_description,Array.isArray(e.error_uri)?e.error_uri[0]:e.error_uri);let r=e.code;if(!r)return!1;if(e.state!==t.stateQueryParam)throw n.warn(`Received query string parameter doesn't match the one sent! Possible malicious activity somewhere.`),new dt(``,{telemetryMessage:`user oauth invalid returned state`});return y(!Array.isArray(r)),t.authorizationCode=r,t.hasAuthCodeBeenExchangedForAccessToken=!1,!0}w(Dt,`isReturningFromAuthServer`);async function Ot(e,t,n,r,i){let{codeChallenge:a,codeVerifier:o}=await Le(),s=i.generateRandomState(Pe);return Object.assign(r,{codeChallenge:a,codeVerifier:o,stateQueryParam:s}),i.generateAuthUrl({authUrl:ge(),clientId:t,scopes:e,stateQueryParam:s,codeChallenge:a,redirectUri:n})}w(Ot,`getAuthURL`);async function kt(e,t,n,r,i){let a=E({warningLogger:e,storage:r}).refreshToken;a||e.warn(`No refresh token is present.`);let o=await jt(new URLSearchParams({grant_type:`refresh_token`,refresh_token:a?.value??``,client_id:n}),e,t,i);if(o.status>=400){let t;try{t=await P(o,e)}catch(t){e.error(t)}throw t===void 0?new ct(`Failed to parse Error from exchangeRefreshTokenForAccessToken`,{telemetryMessage:`user oauth refresh token exchange parse error`}):typeof t==`string`?Error(t):t}try{let t=await P(o,e);if(`error`in t)throw t.error;let{access_token:n,expires_in:r,refresh_token:i,scope:s}=t;return{token:{value:n,expiry:new Date(Date.now()+r*1e3).toISOString()},scopes:s?s.split(` `):[],refreshToken:i?{value:i}:a}}catch(e){throw typeof e==`string`?N(e):e}}w(kt,`exchangeRefreshTokenForAccessToken`);async function At(e,t,n,r,i,a){let{authorizationCode:o,codeVerifier:s=``}=e;s?o||t.warn(`No authorization grant code is being passed.`):t.warn(`No code verifier is being sent.`);let c=await jt(new URLSearchParams({grant_type:`authorization_code`,code:o??``,redirect_uri:i,client_id:r,code_verifier:s}),t,n,a);if(!c.ok){let{error:e}=await P(c,t);throw e===`invalid_grant`&&t.log(`Expired! Auth code or refresh token needs to be renewed.`),N(e)}let l=await P(c,t);if(`error`in l)throw N(l.error);let{access_token:u,expires_in:d,refresh_token:f,scope:p}=l;return e.hasAuthCodeBeenExchangedForAccessToken=!0,{token:{value:u,expiry:new Date(Date.now()+d*1e3).toISOString()},scopes:p?p.split(` `):[],refreshToken:f?{value:f}:void 0}}w(At,`exchangeAuthCodeForAccessToken`);async function jt(e,t,n,r){let i={"Content-Type":`application/x-www-form-urlencoded`};if(t.debug(`fetching auth token`,`grant_type=${e.get(`grant_type`)??`<unknown>`}`),await ke(D(),t)){t.debug(`Using Cloudflare Access to get an access token for the auth request`);let e=await Me({logger:t,isNonInteractiveOrCI:n,cliDisplayName:r});Object.assign(i,e)}t.debug(`Fetching auth token from`,_e());try{let n=await(0,T.fetch)(_e(),{method:`POST`,body:e.toString(),headers:i,signal:AbortSignal.timeout(Et)});return n.ok||t.debug(`Failed to fetch auth token:`,n.status,n.statusText),n}catch(e){t.debug(`Failed to fetch auth token:`,e);let n=e?.cause,r=e?.name===`TimeoutError`?` (timed out after ${Et/1e3} seconds)`:typeof n?.code==`string`?` (${n.code})`:``;throw new lt(`Could not reach the Cloudflare auth server at ${_e()}${r}.`,{cause:e,telemetryMessage:`user oauth token endpoint unreachable`})}}w(jt,`fetchAuthToken`);async function P(e,t){let n=await e.text();try{return JSON.parse(n)}catch(r){throw n.match(/<!DOCTYPE html>/)&&(t.error(`The body of the response was HTML rather than JSON. Check the debug logs to see the full body of the response.`),n.match(/challenge-platform/)&&t.error(`It looks like you might have hit a bot challenge page. This may be transient but if not, please contact Cloudflare to find out what can be done. When you contact Cloudflare, please provide your Ray ID: ${e.headers.get(`cf-ray`)}`)),t.debug(`Full body of response
|
|
16
|
-
|
|
17
|
-
`,n),Error(`Invalid JSON in response: status: ${e.status} ${e.statusText}`,{cause:r})}}w(P,`getJSONFromResponse`);function Mt(e,t){let n=/* @__PURE__ */ w(e=>e.replace(/[&<>"']/g,e=>({"&":`&`,"<":`<`,">":`>`,'"':`"`,"'":`'`})[e]),`escape`),r=t.code?`<p>Code: <code>${n(t.code)}</code></p>`:``,i=t.description?`<p class="detail">${n(t.description)}</p>`:``,a=n(e);return st`
|
|
18
|
-
<!doctype html>
|
|
19
|
-
<html lang="en">
|
|
20
|
-
<head>
|
|
21
|
-
<meta charset="utf-8" />
|
|
22
|
-
<title>${a} login failed</title>
|
|
23
|
-
<style>
|
|
24
|
-
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; max-width: 720px; margin: 4rem auto; padding: 0 1rem; color: #1f2933; line-height: 1.5; }
|
|
25
|
-
h1 { color: #c12d3f; }
|
|
26
|
-
code { background: #f5f7fa; padding: 0.15em 0.3em; border-radius: 3px; }
|
|
27
|
-
p.detail { background: #f5f7fa; padding: 1rem; border-radius: 4px; white-space: pre-wrap; }
|
|
28
|
-
</style>
|
|
29
|
-
</head>
|
|
30
|
-
<body>
|
|
31
|
-
<h1>${a} login failed</h1>
|
|
32
|
-
<p>The Cloudflare OAuth provider returned an error.</p>
|
|
33
|
-
${r}
|
|
34
|
-
${i}
|
|
35
|
-
<p>You can close this tab and return to your terminal for more details.</p>
|
|
36
|
-
</body>
|
|
37
|
-
</html>
|
|
38
|
-
`}w(Mt,`renderOauthErrorPage`);async function Nt(e,t,n,r){let i=await Ot(e.scopes,e.clientId,e.redirectUri,t,r),a=new URL(e.redirectUri).pathname,o,s,c=new Promise((e,t)=>{s=setTimeout(()=>{o.close(),clearTimeout(s),t(new u(`Timed out waiting for authorization code, please try again.`,{telemetryMessage:`user oauth authorization timeout`}))},12e4)}),l=new Promise((r,i)=>{o=ne.createServer(async(c,l)=>{function d(e,t){clearTimeout(s),l.writableEnded||l.end(),o.close(n=>{t||n?i(t||n):(y(e),r(e))})}w(d,`finish`);function f(e){l.writeHead(400,{"Content-Type":`text/html; charset=utf-8`}),l.end(Mt(n.cliDisplayName,e))}w(f,`renderErrorPage`),y(c.url,`This request doesn't have a URL`);let{pathname:p,query:m}=ee.parse(c.url,!0);if(c.method!==`GET`)return l.end(`OK`);switch(p){case a:{let r=!1;try{r=Dt(m,t,n.logger)}catch(t){if(t instanceof _t){l.writeHead(307,{Location:e.denied.url}),l.end(()=>{d(null,new u(e.denied.error,{telemetryMessage:`user oauth consent denied`}))});return}let n=t;f({code:n.code,description:n.description??n.message}),d(null,n);return}if(!r){let e=`The Cloudflare OAuth provider did not return an authorisation code.`;f({description:e}),d(null,new ut(e,{telemetryMessage:`user oauth missing auth code`}));return}try{let r=await At(t,n.logger,n.isNonInteractiveOrCI,e.clientId,e.redirectUri,n.cliDisplayName);l.writeHead(307,{Location:e.granted.url}),l.end(()=>{d(r)})}catch(e){let t=e,n=t instanceof j;f({code:n?t.code:void 0,description:(n?t.description:void 0)??t.message??`Failed to exchange the authorisation code for an access token.`}),d(null,t)}return}}});let c=new URL(e.redirectUri),l=Number(c.port||(c.protocol===`https:`?443:80));(c.hostname!==e.callbackHost||l!==e.callbackPort)&&(n.logger.log(`Temporary login server listening on ${e.callbackHost}:${e.callbackPort}`),n.logger.log(`Note that the OAuth login page will always redirect to \`${e.redirectUri}\`.
|
|
39
|
-
If you have changed the callback host or port because you are running in a container, then ensure that you have port forwarding set up correctly.`)),o.once(`error`,t=>{clearTimeout(s),t.code===`EADDRINUSE`?i(new u(`The OAuth callback server could not bind to ${e.callbackHost}:${e.callbackPort} because the port is already in use. Stop the process using that port or pass a different \`--callback-port\`.`,{telemetryMessage:`user oauth callback port in use`})):i(t)}),o.listen(e.callbackPort,e.callbackHost)});return e.browser?(n.logger.log(`Opening a link in your default browser: ${i}`),await n.openInBrowser(i)):n.logger.log(`Visit this link to authenticate: ${i}`),Promise.race([c,l])}w(Nt,`getOauthToken`);var Pt=300,Ft=1;function F(e,t){if(typeof e!=`object`||!e)return;let n=e[t];return typeof n==`string`&&n!==``?n:void 0}w(F,`getStringMember`);function I(e,t){if(typeof e!=`object`||!e)return;let n=e[t];return typeof n==`number`&&Number.isFinite(n)&&n>0?n:void 0}w(I,`getPositiveNumberMember`);function It(e,t){let n=`HTTP ${e.status} ${e.statusText}`.trim(),r=F(t,`error_description`);return r?`${n}: ${r}`:n}w(It,`describeUnusableResponse`);function Lt(e){return e>=500||e===429}w(Lt,`isRetryableStatus`);function Rt(e){let t=F(e,`device_code`),n=F(e,`user_code`),r=F(e,`verification_uri`),i=I(e,`expires_in`);if(t&&n&&r&&i!==void 0)return{device_code:t,user_code:n,verification_uri:r,verification_uri_complete:F(e,`verification_uri_complete`),expires_in:i,interval:I(e,`interval`)}}w(Rt,`asDeviceAuthorizationResponse`);async function L(e,t){let n=await e.text();try{return JSON.parse(n)}catch(r){throw n.match(/<!DOCTYPE html>/)&&(t.debug(`The body of the response was HTML rather than JSON. Check the debug logs to see the full body of the response.`),n.match(/challenge-platform/)&&t.debug(`It looks like you might have hit a bot challenge page. This may be transient but if not, please contact Cloudflare to find out what can be done. When you contact Cloudflare, please provide your Ray ID: ${e.headers.get(`cf-ray`)}`)),t.debug(`Full body of response
|
|
40
|
-
|
|
41
|
-
`,n),Error(`Invalid JSON in response: status: ${e.status} ${e.statusText}`,{cause:r})}}w(L,`readJson`);async function zt(e,t,n){let r={"Content-Type":`application/x-www-form-urlencoded`};return await ke(D(),e)&&(e.debug(`Using Cloudflare Access to get an access token for the device authorization request`),Object.assign(r,await Me({logger:e,isNonInteractiveOrCI:t,cliDisplayName:n}))),r}w(zt,`buildDeviceAuthHeaders`);async function Bt(e,t,n,r,i){let a=new URLSearchParams({client_id:t,scope:[...e,`offline_access`].join(` `)}),o=await zt(n,r,i),s=Se();n.debug(`Fetching device authorization from`,s);let c=await(0,T.fetch)(s,{method:`POST`,body:a.toString(),headers:o});if(!c.ok){let e=await L(c,n).catch(()=>void 0);throw N(e&&typeof e==`object`&&`error`in e?String(e.error):`HTTP ${c.status} ${c.statusText}`)}let l=await L(c,n),d=Rt(l);if(d===void 0)throw n.debug(`Unusable device authorization response body:`,l),new u(`The device authorization endpoint returned a response that could not be interpreted (${It(c,l)}).
|
|
42
|
-
Enable debug logging to see the full response.`,{telemetryMessage:`user device-flow unusable device authorization response`});return d}w(Bt,`requestDeviceAuthorization`);async function Vt(e,t,n,r,i){let a=await jt(new URLSearchParams({grant_type:`urn:ietf:params:oauth:grant-type:device_code`,device_code:e,client_id:t}),n,r,i),o=await L(a,n),s=F(o,`error`);if(s!==void 0)return{kind:`oauth-error`,error:s};let c=F(o,`access_token`),l=I(o,`expires_in`);return!a.ok||c===void 0||l===void 0?(n.debug(`Unusable token response body:`,o),{kind:`unexpected`,detail:It(a,o),retryable:!a.ok&&Lt(a.status)}):{kind:`token`,grant:{access_token:c,expires_in:l,refresh_token:F(o,`refresh_token`),scope:F(o,`scope`)}}}w(Vt,`pollDeviceToken`);function Ht(e){return new Promise(t=>setTimeout(t,e*1e3))}w(Ht,`sleep`);async function Ut(e,t){let{logger:n,openInBrowser:r,isNonInteractiveOrCI:i}=t,a=await Bt(e.scopes,e.clientId,n,i,t.cliDisplayName),o=D();Be(a.verification_uri,{field:`verification_uri`,authDomain:o}),a.verification_uri_complete!==void 0&&Be(a.verification_uri_complete,{field:`verification_uri_complete`,authDomain:o});let s=a.verification_uri_complete??Re({verificationUri:a.verification_uri,userCode:a.user_code}),c=Math.min(a.expires_in,Pt);n.log(st`
|
|
43
|
-
To authorize ${t.cliDisplayName}, please visit:
|
|
44
|
-
|
|
45
|
-
${a.verification_uri}
|
|
46
|
-
|
|
47
|
-
and enter the code:
|
|
48
|
-
|
|
49
|
-
${a.user_code}
|
|
50
|
-
|
|
51
|
-
You have ${Wt(c)} to approve this request.
|
|
52
|
-
`),e.browser&&(n.log(`
|
|
53
|
-
Opening a link in your default browser: ${s}`),await r(s));let l=Date.now()+c*1e3,d=Math.max(a.interval??Ft,Ft),f=!0,p;for(;Date.now()<l;){f||await Ht(d),f=!1;let r;try{r=await Vt(a.device_code,e.clientId,n,i,t.cliDisplayName)}catch(e){n.debug(`Ignoring transient error while polling for token:`,e),p=e instanceof Error?e.message:String(e);continue}if(r.kind===`unexpected`){if(!r.retryable)throw new u(`The token endpoint returned a response that could not be interpreted (${r.detail}).
|
|
54
|
-
Enable debug logging to see the full response.`,{telemetryMessage:`user device-flow unusable token response`});n.debug(`Ignoring transient response while polling for token:`,r.detail),p=r.detail;continue}if(p=void 0,r.kind===`oauth-error`)switch(r.error){case`authorization_pending`:continue;case`slow_down`:d+=5;continue;case`access_denied`:throw new u(`Consent denied. You must grant consent to ${t.cliDisplayName} in order to login.
|
|
55
|
-
If you don't want to do this consider passing an API token via the \`CLOUDFLARE_API_TOKEN\` environment variable.`,{telemetryMessage:`user device-flow consent denied`});case`expired_token`:throw new u(`Device code expired before the request was approved. Please run \`${t.deviceLoginCommand}\` again to obtain a new code.`,{telemetryMessage:`user device-flow code expired`});default:throw N(r.error)}let{grant:o}=r;return{token:{value:o.access_token,expiry:new Date(Date.now()+o.expires_in*1e3).toISOString()},scopes:o.scope?o.scope.split(` `):[],refreshToken:o.refresh_token?{value:o.refresh_token}:void 0}}throw p===void 0?new u(`Device authorization timed out after ${Wt(c)}. Please run \`${t.deviceLoginCommand}\` again to obtain a new code.`,{telemetryMessage:`user device-flow authorization timeout`}):new u(`Gave up waiting for device authorization: the token endpoint kept returning responses that could not be interpreted (last: ${p}).
|
|
56
|
-
Enable debug logging to see the full response, then run \`${t.deviceLoginCommand}\` to try again.`,{telemetryMessage:`user device-flow poll failed`})}w(Ut,`getOauthTokenViaDeviceFlow`);function Wt(e){if(e<60)return`${e} seconds`;let t=Math.floor(e/60),n=t===1?`minute`:`minutes`,r=e%60;return r===0?`${t} ${n}`:r==59?`${t+1} ${n}`:`${t} ${n} and ${r} ${r===1?`second`:`seconds`}`}w(Wt,`toHumanPeriod`);function Gt(e){let t={},r={generateAuthUrl:e.generateAuthUrl??Ve,generateRandomState:e.generateRandomState??He},i=`default`;function a(t){return e.storageFactory(t??i)}w(a,`getStorage`);let o=/* @__PURE__ */ w(()=>typeof e.clientId==`function`?e.clientId():e.clientId,`getClientId`),s=e.consent,c,l,d=new URL(e.redirectUri),f=d.hostname,p=Number(d.port);async function m(i){if(e.hasEnvCredentials())return e.logger.error(`You are logged in with an API Token. Unset the CLOUDFLARE_API_TOKEN in the environment to log in via OAuth.`),!1;let c=n(i.complianceConfig);if(c===`fedramp_high`){let e=i.complianceConfig?.compliance_region?"`compliance_region` configuration property":"`CLOUDFLARE_API_ENVIRONMENT` environment variable";throw new u(st`
|
|
57
|
-
OAuth login is not supported in the \`${c}\` compliance region.
|
|
58
|
-
Please use a Cloudflare API token (\`CLOUDFLARE_API_TOKEN\` environment variable) or remove the ${e}.
|
|
59
|
-
`,{telemetryMessage:`user login unsupported compliance region`})}let l;return i.device?(e.logger.log(`Attempting to login via OAuth Device Authorization Grant...`),l=await Ut({browser:i.browser??!0,scopes:i.scopes,clientId:o()},e)):(e.logger.log(`Attempting to login via OAuth...`),l=await Nt({browser:i.browser??!0,scopes:i.scopes,clientId:o(),redirectUri:e.redirectUri,denied:s.denied,granted:s.granted,callbackHost:i.callbackHost??f,callbackPort:i.callbackPort??p},t,e,r)),a(i.profile).write({oauth_token:l.token?.value??``,expiration_time:l.token?.expiry,refresh_token:l.refreshToken?.value,scopes:l.scopes}),e.logger.log(`Successfully logged in.`),x(),e.purgeOnLoginOrLogout?.(),!0}w(m,`login`);function h(t){if(e.hasEnvCredentials())return!1;let{accessToken:n}=E({warningLogger:e.logger,storage:a(t)});return!!(n&&/* @__PURE__ */ new Date>=new Date(n.expiry))}w(h,`isRefreshNeeded`);async function g(t){let n=a(t);try{let{token:{value:t,expiry:r}={value:``,expiry:``},refreshToken:{value:i}={},scopes:a}=await kt(e.logger,e.isNonInteractiveOrCI,o(),n,e.cliDisplayName);return n.write({oauth_token:t,expiration_time:r,refresh_token:i,scopes:a}),`refreshed`}catch(t){return e.logger.debug(`Token refresh failed: ${t instanceof Error?t.message:String(t)}`),t instanceof lt||t instanceof Error&&t.name===`TimeoutError`?`unreachable`:`rejected`}}w(g,`refreshToken`);async function _(t){if(e.hasEnvCredentials())return{loggedIn:!0};let n=E({warningLogger:e.logger,storage:a(t.profile)});if(!n.accessToken&&!n.deprecatedApiToken)return e.isNonInteractiveOrCI()?{loggedIn:!1,reason:`no-credentials-non-interactive`}:await m(t)?{loggedIn:!0}:{loggedIn:!1,reason:`no-credentials-login-failed`};if(h(t.profile)){let n=await g(t.profile);return n===`refreshed`?{loggedIn:!0}:n===`unreachable`?{loggedIn:!1,reason:`token-refresh-unreachable`}:e.isNonInteractiveOrCI()?{loggedIn:!1,reason:`token-expired-non-interactive`}:await m(t)?{loggedIn:!0}:{loggedIn:!1,reason:`token-expired-login-failed`}}return{loggedIn:!0}}w(_,`loginOrRefreshIfRequired`);async function v(t){let n=x();if(e.hasEnvCredentials()){e.logger.log(`You are logged in with an API Token. Unset the CLOUDFLARE_API_TOKEN in the environment to log out.`);return}let r=E({warningLogger:e.logger,storage:a(t)}).refreshToken;if(!r){e.logger.log(n?`Cleared temporary preview account.`:`Not logged in, exiting...`);return}let i=`client_id=${encodeURIComponent(o())}&token_type_hint=refresh_token&token=${encodeURIComponent(r.value||``)}`;await(await(0,T.fetch)(ve(),{method:`POST`,body:i,headers:{"Content-Type":`application/x-www-form-urlencoded`}})).text(),a(t).clear(),e.logger.log(`Successfully logged out.`),e.purgeOnLoginOrLogout?.()}w(v,`logout`);async function ee(){let t=E({warningLogger:e.logger,storage:a()});if(t.accessToken){if(t.accessToken&&/* @__PURE__ */ new Date>=new Date(t.accessToken.expiry)){if(await g()!==`refreshed`)return;t=E({warningLogger:e.logger,storage:a()})}return t.accessToken?.value}}w(ee,`getOAuthTokenFromLocalState`);function y(){return l?{apiToken:l.account.apiToken}:fe({storage:a(),warningLogger:e.logger,allowGlobalAuthKey:e.allowGlobalAuthKey})}w(y,`getAPITokenInternal`);function te(){return l?{apiToken:l.account.apiToken}:pe({storage:a(),warningLogger:e.logger,allowGlobalAuthKey:e.allowGlobalAuthKey})}w(te,`requireApiTokenInternal`);function ne(t,n){c=t&&e.temporary!==void 0?n??{}:void 0,l=void 0}w(ne,`setTemporaryAllowed`);function re(){return c!==void 0}w(re,`isTemporaryAllowed`);function ie(){return l}w(ie,`getActiveTemporaryAccount`);async function b(){if(!e.temporary)throw new u(`Temporary preview accounts are not supported by ${e.cliDisplayName}.`,{telemetryMessage:`user temporary account unsupported`});let t=await at({...e.temporary,...c?{request:c}:{}});return l=t.account,t}w(b,`activateTemporaryAccount`);function x(){return l=void 0,e.temporary?.storage.clear()??!1}w(x,`clearTemporaryAccount`);function S(e){i=e}w(S,`setProfile`);function ae(){return i}w(ae,`getActiveProfile`);function C(){return E({warningLogger:e.logger,storage:a()}).scopes}return w(C,`getScopes`),{setProfile:S,getActiveProfile:ae,login:m,logout:v,loginOrRefreshIfRequired:_,getOAuthTokenFromLocalState:ee,getAPIToken:y,requireApiToken:te,getScopes:C,setTemporaryAllowed:ne,isTemporaryAllowed:re,getActiveTemporaryAccount:ie,activateTemporaryAccount:b}}w(Gt,`createOAuthFlow`);var Kt=[`default`,`staging`];function qt(e){let t={read(){return e.bindings.read()},write(t){e.bindings.write(t)},activate(t,n){let r=v.resolve(n),i=e.bindings.read();i[r]=t,e.bindings.write(i)},deactivate(t){let n=v.resolve(t),r=e.bindings.read(),i=r[n];if(i===void 0){let e=Yt(n,r);throw e?new u(`No profile is directly bound to "${Jt(n)}". The active profile "${e.profile}" is bound at "${Jt(e.dir)}". Run the deactivate command from that directory instead.`,{telemetryMessage:`auth deactivate wrong directory`}):new u(`No profile is bound to "${Jt(n)}". Nothing to deactivate.`,{telemetryMessage:`auth deactivate no binding`})}delete r[n],e.bindings.write(r);let a=Yt(n,r);return a?{removedProfile:i,newResolution:{profile:a.profile,source:`inherited from ${a.dir}`}}:e.configs.exists(`default`)?{removedProfile:i,newResolution:{profile:`default`,source:`default profile`}}:{removedProfile:i,newResolution:{profile:void 0,source:`no profile`}}},getProfileForDirectory(t){return Yt(t,e.bindings.read())?.profile},getBindingsForProfile(t){return Object.entries(e.bindings.read()).filter(([,e])=>e===t).map(([e])=>e)},removeAllBindingsForProfile(t){let n=e.bindings.read(),r=[];for(let[e,i]of Object.entries(n))i===t&&(r.push(e),delete n[e]);return r.length>0&&e.bindings.write(n),r}};return{configs:e.configs,bindings:t,resolve(e){return e.profile?e.profile==="default"?`default`:(R(e.profile),e.profile):t.getProfileForDirectory(e.cwd)||`default`}}}w(qt,`createProfileStore`);function R(e){if(Kt.includes(e.toLowerCase()))throw new u(`"${e}" is a reserved profile name. Use the login and logout commands to manage the default profile, which applies as a global fallback.`,{telemetryMessage:`auth profile reserved name`});if(!/^[a-zA-Z0-9_-]+$/.test(e))throw new u(`Invalid profile name "${e}". Profile names may only contain alphanumeric characters, hyphens, and underscores.`,{telemetryMessage:`auth profile invalid name`})}w(R,`validateProfileName`);function Jt(e){return v.relative(process.cwd(),e)||`.`}w(Jt,`formatDirectoryForUserError`);function Yt(e,t){let n=v.resolve(e),r=Object.entries(t).sort(([e],[t])=>t.length-e.length);for(let[e,t]of r)if(n===e||n.startsWith(e)&&n[e.length]===v.sep)return{profile:t,dir:e}}w(Yt,`getProfileForDirectoryFromBindings`);var Xt=/^[a-z0-9-_]+$/i,Zt=!!``.isWellFormed;function z(e){let t=typeof e;if(t===`object`){if(Array.isArray(e))return`array`;if(typeof e.getUTCDate==`function`&&e instanceof Date)return`date`;if(globalThis.Temporal){if(e.until){if(e instanceof Temporal.ZonedDateTime)return`temporal/tz+uc`;if(e instanceof Temporal.PlainDateTime||e instanceof Temporal.PlainDate)return`temporal/uc`;if(e instanceof Temporal.PlainTime||e instanceof Temporal.Instant)return`temporal`;if(e instanceof Temporal.PlainYearMonth)return`temporal/x`}else if(e.toPlainDate&&e instanceof Temporal.PlainMonthDay||e.negated&&e instanceof Temporal.Duration)return`temporal/x`}}return t}w(z,`extendedTypeOf`);function Qt(e){for(let t=0;t<e.length;t++)if(z(e[t])!==`object`)return!1;return e.length!=0}w(Qt,`isArrayOfTables`);function $t(e){return JSON.stringify(e).replaceAll(``,`\\u007f`)}w($t,`formatWellFormedStringUnchecked`);function en(e){return $t(Zt?e.toWellFormed():e)}w(en,`formatString`);function tn(e){if(Xt.test(e))return e;if(Zt&&!e.isWellFormed())throw RangeError(`key contains illegal lone surrogates`);return $t(e)}w(tn,`formatKey`);function B(e,t,n,r,i){if(n===0)throw Error(`Could not stringify the object: maximum object depth exceeded`);switch(t){case`number`:if(isNaN(e))return`nan`;if(e===1/0)return`inf`;if(e===-1/0)return`-inf`;if(Number.isInteger(e)&&(r||!Number.isSafeInteger(e)))return e.toFixed(1);case`bigint`:case`boolean`:case`temporal`:return e.toString();case`string`:return en(e);case`date`:if(isNaN(e.getTime()))throw TypeError(`cannot serialize invalid date`);return e.toISOString();case`object`:return nn(e,n,r,i);case`array`:return rn(e,n,r,i);case`temporal/tz+uc`:if(i){let t=e.timeZoneId,n=t.charCodeAt(0);if(n!==43&&n!==45&&(n!==85&&n!==71&&n!==90&&n!==69||t!==`UTC`&&t!==`UCT`&&t!==`Universal`&&t!==`Zulu`&&!t.startsWith(`GMT`)&&t!==`Greenwich`&&!t.startsWith(`Etc/`)))throw TypeError(`Temporal objects with an IANA timezone are not allowed in Temporal strict mode`)}case`temporal/uc`:if(i&&e.calendarId!==`iso8601`)throw TypeError(`Temporal objects with a non-default calendar are not allowed in Temporal strict mode`);return e.toString({calendarName:`never`,timeZoneName:`never`});case`temporal/x`:throw TypeError(`Unsupported `+e[Symbol.toStringTag])}}w(B,`stringifyValue`);function nn(e,t,n,r){let i=Object.keys(e);if(i.length===0)return`{}`;let a=`{ `;for(let o=0;o<i.length;o++){let s=i[o];o&&(a+=`, `),a+=tn(s)+` = `+B(e[s],z(e[s]),t-1,n,r)}return a+` }`}w(nn,`stringifyInlineTable`);function rn(e,t,n,r){if(e.length===0)return`[]`;let i=`[ `;for(let a=0;a<e.length;a++){if(a&&(i+=`, `),e[a]===null||e[a]===void 0)throw TypeError(`arrays cannot contain null or undefined values`);i+=B(e[a],z(e[a]),t-1,n,r)}return i+` ]`}w(rn,`stringifyArray`);function an(e,t,n,r,i){if(n===0)throw Error(`Could not stringify the object: maximum object depth exceeded`);let a=``;for(let o=0;o<e.length;o++)a+=`${a&&`
|
|
60
|
-
`}[[${t}]]
|
|
61
|
-
`,a+=V(0,e[o],t,n,r,i);return a}w(an,`stringifyArrayTable`);function V(e,t,n,r,i,a){if(r===0)throw Error(`Could not stringify the object: maximum object depth exceeded`);let o=``,s=``,c=Object.keys(t);for(let e=0;e<c.length;e++){let l=c[e];if(t[l]!==null&&t[l]!==void 0){let e=z(t[l]);if(e===`symbol`||e===`function`)throw TypeError(`cannot serialize values of type '${e}'`);let c=tn(l);if(e===`array`&&Qt(t[l]))s+=(s&&`
|
|
62
|
-
`)+an(t[l],n?`${n}.${c}`:c,r-1,i,a);else if(e===`object`){let e=n?`${n}.${c}`:c;s+=(s&&`
|
|
63
|
-
`)+V(e,t[l],e,r-1,i,a)}else o+=c,o+=` = `,o+=B(t[l],e,r,i,a),o+=`
|
|
64
|
-
`}}return e&&(o||!s)&&(o=o?`[${e}]
|
|
65
|
-
${o}`:`[${e}]`),o&&s?`${o}
|
|
66
|
-
${s}`:o||s}w(V,`stringifyTable`);function on(e,{maxDepth:t=1e3,numbersAsFloat:n=!1,strictTemporal:r=!1}={}){if(z(e)!==`object`)throw TypeError(`stringify can only be called with an object`);let i=V(0,e,``,t,n,r);return i[i.length-1]===`
|
|
67
|
-
`?i:i+`
|
|
68
|
-
`}w(on,`stringify`);var sn={toml:{parse:/* @__PURE__ */ w(e=>c(e),`parse`),stringify:/* @__PURE__ */ w(e=>on(e),`stringify`)},json:{parse:/* @__PURE__ */ w(e=>JSON.parse(e),`parse`),stringify:/* @__PURE__ */ w(e=>JSON.stringify(e,null,` `),`stringify`)}};function H(e,t){return sn[e].parse(t)}w(H,`parseFile`);function U(e,t){return sn[e].stringify(t)}w(U,`stringifyFile`);var cn=`config`;function W(e){if(e===void 0||e==="default"){let e=s();return e===`production`?`default`:e}return R(e),e}w(W,`resolveAuthProfileBaseName`);function G(e,t,n=`toml`){return v.join(e,cn,`${W(t)}.${n}`)}w(G,`getAuthConfigFilePath`);var K=class{constructor(e,t,n=`toml`){this.configPath=e,this.profile=t,this.format=n}static{w(this,`FileCredentialStore`)}kind=`file`;filePath(){return G(this.configPath,this.profile,this.format)}read(){let e=this.filePath();if(m(e))return H(this.format,d(e))}write(e){let t=this.filePath();h(v.dirname(t),{recursive:!0}),_(t,U(this.format,e),{encoding:`utf-8`,mode:384}),p(t,384)}clear(){let e=this.filePath(),t=m(e);return t&&g(e),t}path(){return this.filePath()}describe(){return this.filePath()}},q=32,ln=12,un=16,dn=`AES-256-GCM`,fn=`aes-256-gcm`;function pn(){return new Uint8Array(x(q))}w(pn,`generateKey`);function mn(e,t){if(t.length!==q)throw Error(`AES-256-GCM requires a ${q}-byte key (got ${t.length} bytes).`);let n=x(ln),r=re(fn,t,n),i=Buffer.concat([r.update(e,`utf-8`),r.final()]),a=r.getAuthTag();return{v:1,alg:dn,iv:n.toString(`base64`),tag:a.toString(`base64`),ciphertext:i.toString(`base64`)}}w(mn,`encryptString`);function hn(e,t){if(t.length!==q)throw Error(`AES-256-GCM requires a ${q}-byte key (got ${t.length} bytes).`);if(e.v!==1)throw Error(`Unsupported encrypted envelope version: ${e.v}.`);let n=Buffer.from(e.iv,`base64`),r=Buffer.from(e.tag,`base64`),i=Buffer.from(e.ciphertext,`base64`);if(n.length!==ln)throw Error(`Expected ${ln}-byte IV in envelope (got ${n.length} bytes).`);if(r.length!==un)throw Error(`Expected ${un}-byte auth tag in envelope (got ${r.length} bytes).`);let a=ie(fn,t,n);return a.setAuthTag(r),Buffer.concat([a.update(i),a.final()]).toString(`utf-8`)}w(hn,`decryptString`);function gn(e){if(typeof e!=`object`||!e)return;let t=e;if(t.v===1&&t.alg===dn&&typeof t.iv==`string`&&typeof t.tag==`string`&&typeof t.ciphertext==`string`)return t}w(gn,`parseEncryptedEnvelope`);function J(e,t){return v.join(e,`config`,`${W(t)}.enc`)}w(J,`getEncryptedAuthConfigFilePath`);var _n=class{constructor(e,t,n,r,i=`toml`){this.configPath=e,this.keyProvider=t,this.onPlaintextMigration=n,this.profile=r,this.format=i}static{w(this,`EncryptedFileCredentialStore`)}kind=`encrypted-file`;plaintextPath(){return G(this.configPath,this.profile,this.format)}read(){let e=J(this.configPath,this.profile);if(m(e))return this.readEncryptedFile(e);let t=this.plaintextPath();if(m(t))return this.migrateFromPlaintext(t,e)}write(e){let t=this.ensureKey(),n=mn(U(this.format,e),t),r=J(this.configPath,this.profile);h(v.dirname(r),{recursive:!0}),_(r,JSON.stringify(n,null,` `),{encoding:`utf-8`,mode:384}),p(r,384);let i=this.plaintextPath();m(i)&&g(i)}clear(){let e=J(this.configPath,this.profile),t=this.plaintextPath(),n=!1;m(e)&&(g(e),n=!0),m(t)&&(g(t),n=!0);try{this.keyProvider.deleteKey()}catch{}return n}path(){return J(this.configPath,this.profile)}describe(){return`Encrypted file (${J(this.configPath,this.profile)}) with key in ${this.keyProvider.describe()}`}readEncryptedFile(e){let t=this.keyProvider.getKey();if(t===void 0)return;let n=d(e),r;try{r=gn(JSON.parse(n))}catch{return}if(r===void 0)return;let i;try{i=hn(r,t)}catch{return}try{return H(this.format,i)}catch{return}}migrateFromPlaintext(e,t){let n=d(e),r;try{r=H(this.format,n)}catch{return}return this.write(r),this.onPlaintextMigration?.({plaintextPath:e,encryptedPath:t,keyProviderDescription:this.keyProvider.describe()}),r}ensureKey(){let e=this.keyProvider.getKey();if(e!==void 0)return e;let t=pn();return this.keyProvider.setKey(t),t}},Y=`1.3.0`;function vn(e){let t={encoding:`utf-8`,stdio:[`ignore`,`pipe`,`pipe`]};if(process.platform===`win32`){let n={...process.env},r=[`npm`,...e.map((e,t)=>{let r=`WORKERS_AUTH_NPM_ARG_${t}`;return n[r]=e,`"%${r}%"`})].join(` `);return C(r,{...t,env:n,shell:!0})}return C(`npm`,e,t)}w(vn,`defaultNpmRunner`);var yn=vn,X=/* @__PURE__ */ new Map;function bn(e){yn=e??vn,X.clear()}w(bn,`setNpmRunner`);function xn(e){return v.join(e,`native`,`keyring`)}w(xn,`getKeyringInstallDir`);function Sn(e){return v.join(e,`node_modules`,`@napi-rs`,`keyring`)}w(Sn,`getInstalledBindingPath`);function Cn(e){try{return f(e)(e),!0}catch{return!1}}w(Cn,`canLoadKeyringBinding`);function wn(e){let t=X.get(e);if(t!==void 0)return t;let n=Sn(e);if(m(v.join(n,`index.js`))&&Cn(n))return X.set(e,n),n;try{let t=yn([`root`,`-g`]);if(t.status===0){let n=v.join(t.stdout.trim(),`@napi-rs`,`keyring`);if(m(v.join(n,`index.js`))&&Cn(n))return X.set(e,n),n}}catch{}return X.set(e,null),null}w(wn,`findKeyringBinding`);function Tn(e){let t=e;h(t,{recursive:!0});let n=v.join(t,`package.json`);m(n)||_(n,JSON.stringify({private:!0,name:`cloudflare-auth-keyring-host`},null,` `),`utf-8`);let r;try{r=yn([`install`,`@napi-rs/keyring@${Y}`,`--prefix`,t,`--no-save`,`--no-audit`,`--no-fund`,`--no-package-lock`,`--loglevel=error`])}catch(e){throw new u(`Failed to spawn \`npm\` to install the keyring backend: ${e instanceof Error?e.message:String(e)}
|
|
69
|
-
|
|
70
|
-
Install \`npm\` and retry, or install the binding globally:
|
|
71
|
-
npm install -g @napi-rs/keyring@${Y}`,{telemetryMessage:`workers-auth keyring npm spawn failed`})}if(r.status!==0)throw new u(`Failed to install \`@napi-rs/keyring\` (npm exited ${r.status}):
|
|
72
|
-
${r.stderr?.trim()??`(no stderr)`}
|
|
73
|
-
|
|
74
|
-
Retry once the underlying issue is fixed, or install the binding globally:
|
|
75
|
-
npm install -g @napi-rs/keyring@${Y}`,{telemetryMessage:`workers-auth keyring npm install failed`});if(X.delete(e),wn(e)===null)throw new u(`\`npm\` reported success but the \`@napi-rs/keyring\` native binding still cannot be loaded.
|
|
76
|
-
|
|
77
|
-
Its platform-specific binary ships as a separate optional package, so a download that was skipped or interrupted leaves the binding unusable.
|
|
78
|
-
|
|
79
|
-
Retry once the underlying issue is fixed, or install the binding globally:
|
|
80
|
-
npm install -g @napi-rs/keyring@${Y}`,{telemetryMessage:`workers-auth keyring install incomplete`})}w(Tn,`installKeyringBindingSync`);var En;function Dn(e){En=e}w(Dn,`setKeyringEntryFactory`);function On(e){if(En!==void 0)return En;let t=wn(e);if(t===null)throw new u(`The \`@napi-rs/keyring\` native binding is not available.
|
|
81
|
-
|
|
82
|
-
Retry the command, or install the binding globally:
|
|
83
|
-
npm install -g @napi-rs/keyring@${Y}`,{telemetryMessage:`workers-auth keyring binding not loadable`});let n=f(t)(t);return(e,t)=>new n.Entry(e,t)}w(On,`resolveKeyringEntryFactory`);function Z(e){return W(e)}w(Z,`getKeyringAccountName`);function kn(e){let t={v:1,key:Buffer.from(e).toString(`base64`),created:(/* @__PURE__ */ new Date()).toISOString()};return JSON.stringify(t)}w(kn,`encodeKeyEnvelope`);function An(e){if(e===``)return;let t;try{t=JSON.parse(e)}catch{return}if(typeof t==`object`&&t&&t.v===1&&typeof t.key==`string`)try{let e=Buffer.from(t.key,`base64`);return e.length===32?new Uint8Array(e):void 0}catch{return}}w(An,`decodeKeyEnvelope`);function jn(e,t={}){return C(`secret-tool`,e,{encoding:`utf-8`,input:t.input})}w(jn,`defaultRunner`);var Q=jn,$=void 0;function Mn(e){Q=e??jn,$=void 0}w(Mn,`setLinuxSecretToolRunner`);function Nn(){if($!==void 0)return $;let e;try{e=Q([`--version`]).error===void 0}catch{e=!1}return $=e,e}w(Nn,`probeSecretTool`);var Pn=class{constructor(e,t){this.serviceName=e,this.profile=t}static{w(this,`LinuxSecretToolKeyProvider`)}getKey(){let e=Q([`lookup`,`service`,this.serviceName,`account`,Z(this.profile)]);if(e.status!==1){if(e.status!==0)throw Error(`Failed to read key via secret-tool (exit ${e.status}): ${e.stderr?.trim()??`(no stderr)`}`);return An(e.stdout.trim())}}setKey(e){let t=Q([`store`,`--label=Cloudflare credentials key`,`service`,this.serviceName,`account`,Z(this.profile)],{input:kn(e)});if(t.status!==0)throw Error(`Failed to write key via secret-tool (exit ${t.status}): ${t.stderr?.trim()??`(no stderr)`}`)}deleteKey(){let e=Q([`clear`,`service`,this.serviceName,`account`,Z(this.profile)]);if(e.status!==0)throw Error(`Failed to delete key via secret-tool (exit ${e.status}): ${e.stderr?.trim()??`(no stderr)`}`)}describe(){return`Linux secret-tool (service=${this.serviceName}, account=${Z(this.profile)})`}},Fn=44;function In(e,t={}){return C(`/usr/bin/security`,e,{encoding:`utf-8`,input:t.input})}w(In,`defaultRunner`);var Ln=In;function Rn(e){Ln=e??In}w(Rn,`setMacSecurityCommandRunner`);var zn=class{constructor(e,t){this.serviceName=e,this.profile=t}static{w(this,`MacSecurityKeyProvider`)}getKey(){let e=Ln([`find-generic-password`,`-s`,this.serviceName,`-a`,Z(this.profile),`-w`]);if(e.status!==Fn){if(e.status!==0)throw Error(`Failed to read key from macOS Keychain (exit ${e.status}): ${e.stderr?.trim()??`(no stderr)`}`);return An(e.stdout.trim())}}setKey(e){let t=Ln([`add-generic-password`,`-s`,this.serviceName,`-a`,Z(this.profile),`-w`,kn(e),`-U`]);if(t.status!==0)throw Error(`Failed to write key to macOS Keychain (exit ${t.status}): ${t.stderr?.trim()??`(no stderr)`}`)}deleteKey(){let e=Ln([`delete-generic-password`,`-s`,this.serviceName,`-a`,Z(this.profile)]);if(e.status!==0&&e.status!==Fn)throw Error(`Failed to delete key from macOS Keychain (exit ${e.status}): ${e.stderr?.trim()??`(no stderr)`}`)}describe(){return`macOS Keychain (service=${this.serviceName}, account=${Z(this.profile)})`}},Bn=class{constructor(e,t,n){this.serviceName=e,this.installDir=t,this.profile=n}static{w(this,`NapiKeyringKeyProvider`)}entry(){return On(this.installDir)(this.serviceName,Z(this.profile))}getKey(){let e=this.entry().getPassword();if(e!==null&&e!==``)return An(e)}setKey(e){this.entry().setPassword(kn(e))}deleteKey(){try{this.entry().deletePassword()}catch{}}describe(){return`${process.platform===`win32`?`Windows Credential Manager`:`OS keyring`} via @napi-rs/keyring (service=${this.serviceName}, account=${Z(this.profile)})`}},Vn;function Hn(e){Vn=e}w(Hn,`setKeyProviderFactoryForTesting`);function Un(e,t,n){if(Vn!==void 0)return{kind:`available`,provider:Vn(e,t)};switch(process.platform){case`darwin`:return{kind:`available`,provider:new zn(e,t)};case`linux`:return Nn()?{kind:`available`,provider:new Pn(e,t)}:{kind:`unsupported`};case`win32`:{let r=xn(n);return wn(r)===null?{kind:`needs-install`,install:/* @__PURE__ */ w(()=>Tn(r),`install`),afterInstall:/* @__PURE__ */ w(()=>new Bn(e,r,t),`afterInstall`)}:{kind:`available`,provider:new Bn(e,r,t)}}default:return{kind:`unsupported`}}}w(Un,`resolveKeyProvider`);var Wn={installFailedThisSession:!1,hasWarnedAboutKeyringFallback:!1,hasWarnedAboutSecretToolMissing:!1};function Gn(){return Wn}w(Gn,`getResolverSessionFlags`);function Kn(){Wn.installFailedThisSession=!1,Wn.hasWarnedAboutKeyringFallback=!1,Wn.hasWarnedAboutSecretToolMissing=!1}w(Kn,`resetCredentialStorageState`);function qn(e){let t={...e,loginCommand:e.loginCommand??`your CLI login`,format:e.format??`toml`};function n(e){return Jn(t,e)}w(n,`getActiveStore`);function r(e){return{read:/* @__PURE__ */ w(()=>n(e).read(),`read`),write:/* @__PURE__ */ w(t=>n(e).write(t),`write`),clear:/* @__PURE__ */ w(()=>n(e).clear(),`clear`),path:/* @__PURE__ */ w(()=>n(e).path(),`path`)}}return w(r,`storageFactory`),{storageFactory:r,getActiveStore:n}}w(qn,`createCredentialStorageContext`);function Jn(e,t){let n=Ee(),r=e.getConfigPath();if(n===!1)return new K(r,t,e.format);let i=n===!0;if(!(n??e.isKeyringEnabled()??!1))return new K(r,t,e.format);let a=Un(e.serviceName,t,r);switch(a.kind){case`available`:return new _n(r,a.provider,Yn(e),t,e.format);case`needs-install`:return Xn(a,i,e,t);case`unsupported`:return Zn(i,e,t)}}w(Jn,`resolveActiveCredentialStore`);function Yn(e){return t=>{e.logger.warn(`Migrated credentials from ${t.plaintextPath} into ${t.encryptedPath} (key in ${t.keyProviderDescription}). The plaintext file has been deleted.`)}}w(Yn,`buildMigrationLogger`);function Xn(e,t,n,r){let i=Gn();if(i.installFailedThisSession){if(t)throw new u(`CLOUDFLARE_AUTH_USE_KEYRING is set but the keyring backend could not be installed earlier this session.`,{telemetryMessage:`workers-auth keyring install previously failed`});return Qn(`The keyring backend could not be installed earlier this session; using the plaintext credentials file.`,n,r)}if(n.isNonInteractiveOrCI())throw new u(er(n.loginCommand),{telemetryMessage:`workers-auth keyring binding not installed`});try{n.logger.log(`🔐 Installing keyring backend (one-time, ~2 MB)…`),e.install()}catch(e){if(i.installFailedThisSession=!0,t)throw e instanceof u?e:new u(`Failed to install the keyring backend: ${e instanceof Error?e.message:String(e)}`,{telemetryMessage:`workers-auth keyring install threw`});return Qn(`Failed to install the keyring backend (${e instanceof Error?e.message:String(e)}); falling back to the plaintext credentials file.`,n,r)}return new _n(n.getConfigPath(),e.afterInstall(),Yn(n),r,n.format)}w(Xn,`handleNeedsInstall`);function Zn(e,t,n){let r=process.platform,i=r===`linux`,a=i?$n(t.loginCommand):`OS keyring storage is not supported on \`${r}\`; falling back to the plaintext credentials file.`;if(e)throw new u(i?`CLOUDFLARE_AUTH_USE_KEYRING is set but ${a}`:`CLOUDFLARE_AUTH_USE_KEYRING is set but no keyring backend is available on \`${r}\`.`,{telemetryMessage:i?`workers-auth keyring secret tool missing`:`workers-auth keyring unsupported platform`});if(i&&t.isNonInteractiveOrCI())throw new u(a,{telemetryMessage:`workers-auth keyring secret tool missing`});let o=Gn();return i?(o.hasWarnedAboutSecretToolMissing||(o.hasWarnedAboutSecretToolMissing=!0,t.logger.warn(`${a}
|
|
84
|
-
|
|
85
|
-
Falling back to the plaintext credentials file for this session.`)),new K(t.getConfigPath(),n,t.format)):Qn(a,t,n)}w(Zn,`handleUnsupported`);function Qn(e,t,n){let r=Gn();return r.hasWarnedAboutKeyringFallback||(r.hasWarnedAboutKeyringFallback=!0,t.logger.warn(e)),new K(t.getConfigPath(),n,t.format)}w(Qn,`fallbackToFileWithWarning`);function $n(e){return`\`secret-tool\` is required for OS keyring storage on Linux but is not installed.
|
|
86
|
-
|
|
87
|
-
Install it via your package manager:
|
|
88
|
-
Debian/Ubuntu: sudo apt-get install libsecret-tools
|
|
89
|
-
Fedora/RHEL: sudo dnf install libsecret
|
|
90
|
-
Arch: sudo pacman -S libsecret
|
|
91
|
-
Alpine: apk add libsecret
|
|
92
|
-
|
|
93
|
-
Or disable keyring storage: \`${e} --no-use-keyring\`.`}w($n,`secretToolMissingMessage`);function er(e){return`\`@napi-rs/keyring\` is required for OS keyring storage on Windows but is not installed.
|
|
94
|
-
|
|
95
|
-
Run \`${e} --use-keyring\` interactively to install it automatically, or install it globally for CI:
|
|
96
|
-
|
|
97
|
-
npm install -g @napi-rs/keyring@${Y}
|
|
98
|
-
|
|
99
|
-
Or disable keyring storage: \`${e} --no-use-keyring\`.`}w(er,`windowsBindingMissingMessage`);function tr(e){let t=J(e.configPath,e.profile),n=m(t),r=Un(e.serviceName,e.profile,e.configPath);return r.kind===`available`?(new _n(e.configPath,r.provider,void 0,e.profile,e.format??`toml`).clear(),{backendAvailable:!0,encryptedFileExisted:n}):(n&&g(t),{backendAvailable:!1,encryptedFileExisted:n})}w(tr,`scrubEncryptedCredentials`);var nr=class extends u{constructor(e,t,n){super(e,{telemetryMessage:n}),this.reason=t}static{w(this,`AuthenticationError`)}};
|
|
100
|
-
/*! Bundled license information:
|
|
101
|
-
|
|
102
|
-
smol-toml/dist/error.js:
|
|
103
|
-
(*!
|
|
104
|
-
* Copyright (c) Squirrel Chat et al., All rights reserved.
|
|
105
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
106
|
-
*
|
|
107
|
-
* Redistribution and use in source and binary forms, with or without
|
|
108
|
-
* modification, are permitted provided that the following conditions are met:
|
|
109
|
-
*
|
|
110
|
-
* 1. Redistributions of source code must retain the above copyright notice, this
|
|
111
|
-
* list of conditions and the following disclaimer.
|
|
112
|
-
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
|
113
|
-
* this list of conditions and the following disclaimer in the
|
|
114
|
-
* documentation and/or other materials provided with the distribution.
|
|
115
|
-
* 3. Neither the name of the copyright holder nor the names of its contributors
|
|
116
|
-
* may be used to endorse or promote products derived from this software without
|
|
117
|
-
* specific prior written permission.
|
|
118
|
-
*
|
|
119
|
-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
120
|
-
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
121
|
-
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
122
|
-
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
123
|
-
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
124
|
-
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
125
|
-
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
126
|
-
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
127
|
-
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
128
|
-
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
129
|
-
*)
|
|
130
|
-
|
|
131
|
-
smol-toml/dist/primitive.js:
|
|
132
|
-
(*!
|
|
133
|
-
* Copyright (c) Squirrel Chat et al., All rights reserved.
|
|
134
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
135
|
-
*
|
|
136
|
-
* Redistribution and use in source and binary forms, with or without
|
|
137
|
-
* modification, are permitted provided that the following conditions are met:
|
|
138
|
-
*
|
|
139
|
-
* 1. Redistributions of source code must retain the above copyright notice, this
|
|
140
|
-
* list of conditions and the following disclaimer.
|
|
141
|
-
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
|
142
|
-
* this list of conditions and the following disclaimer in the
|
|
143
|
-
* documentation and/or other materials provided with the distribution.
|
|
144
|
-
* 3. Neither the name of the copyright holder nor the names of its contributors
|
|
145
|
-
* may be used to endorse or promote products derived from this software without
|
|
146
|
-
* specific prior written permission.
|
|
147
|
-
*
|
|
148
|
-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
149
|
-
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
150
|
-
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
151
|
-
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
152
|
-
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
153
|
-
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
154
|
-
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
155
|
-
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
156
|
-
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
157
|
-
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
158
|
-
*)
|
|
159
|
-
|
|
160
|
-
smol-toml/dist/date.js:
|
|
161
|
-
(*!
|
|
162
|
-
* Copyright (c) Squirrel Chat et al., All rights reserved.
|
|
163
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
164
|
-
*
|
|
165
|
-
* Redistribution and use in source and binary forms, with or without
|
|
166
|
-
* modification, are permitted provided that the following conditions are met:
|
|
167
|
-
*
|
|
168
|
-
* 1. Redistributions of source code must retain the above copyright notice, this
|
|
169
|
-
* list of conditions and the following disclaimer.
|
|
170
|
-
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
|
171
|
-
* this list of conditions and the following disclaimer in the
|
|
172
|
-
* documentation and/or other materials provided with the distribution.
|
|
173
|
-
* 3. Neither the name of the copyright holder nor the names of its contributors
|
|
174
|
-
* may be used to endorse or promote products derived from this software without
|
|
175
|
-
* specific prior written permission.
|
|
176
|
-
*
|
|
177
|
-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
178
|
-
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
179
|
-
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
180
|
-
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
181
|
-
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
182
|
-
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
183
|
-
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
184
|
-
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
185
|
-
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
186
|
-
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
187
|
-
*)
|
|
188
|
-
|
|
189
|
-
smol-toml/dist/extract.js:
|
|
190
|
-
(*!
|
|
191
|
-
* Copyright (c) Squirrel Chat et al., All rights reserved.
|
|
192
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
193
|
-
*
|
|
194
|
-
* Redistribution and use in source and binary forms, with or without
|
|
195
|
-
* modification, are permitted provided that the following conditions are met:
|
|
196
|
-
*
|
|
197
|
-
* 1. Redistributions of source code must retain the above copyright notice, this
|
|
198
|
-
* list of conditions and the following disclaimer.
|
|
199
|
-
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
|
200
|
-
* this list of conditions and the following disclaimer in the
|
|
201
|
-
* documentation and/or other materials provided with the distribution.
|
|
202
|
-
* 3. Neither the name of the copyright holder nor the names of its contributors
|
|
203
|
-
* may be used to endorse or promote products derived from this software without
|
|
204
|
-
* specific prior written permission.
|
|
205
|
-
*
|
|
206
|
-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
207
|
-
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
208
|
-
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
209
|
-
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
210
|
-
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
211
|
-
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
212
|
-
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
213
|
-
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
214
|
-
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
215
|
-
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
216
|
-
*)
|
|
217
|
-
|
|
218
|
-
smol-toml/dist/util.js:
|
|
219
|
-
(*!
|
|
220
|
-
* Copyright (c) Squirrel Chat et al., All rights reserved.
|
|
221
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
222
|
-
*
|
|
223
|
-
* Redistribution and use in source and binary forms, with or without
|
|
224
|
-
* modification, are permitted provided that the following conditions are met:
|
|
225
|
-
*
|
|
226
|
-
* 1. Redistributions of source code must retain the above copyright notice, this
|
|
227
|
-
* list of conditions and the following disclaimer.
|
|
228
|
-
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
|
229
|
-
* this list of conditions and the following disclaimer in the
|
|
230
|
-
* documentation and/or other materials provided with the distribution.
|
|
231
|
-
* 3. Neither the name of the copyright holder nor the names of its contributors
|
|
232
|
-
* may be used to endorse or promote products derived from this software without
|
|
233
|
-
* specific prior written permission.
|
|
234
|
-
*
|
|
235
|
-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
236
|
-
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
237
|
-
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
238
|
-
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
239
|
-
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
240
|
-
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
241
|
-
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
242
|
-
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
243
|
-
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
244
|
-
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
245
|
-
*)
|
|
246
|
-
|
|
247
|
-
smol-toml/dist/struct.js:
|
|
248
|
-
(*!
|
|
249
|
-
* Copyright (c) Squirrel Chat et al., All rights reserved.
|
|
250
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
251
|
-
*
|
|
252
|
-
* Redistribution and use in source and binary forms, with or without
|
|
253
|
-
* modification, are permitted provided that the following conditions are met:
|
|
254
|
-
*
|
|
255
|
-
* 1. Redistributions of source code must retain the above copyright notice, this
|
|
256
|
-
* list of conditions and the following disclaimer.
|
|
257
|
-
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
|
258
|
-
* this list of conditions and the following disclaimer in the
|
|
259
|
-
* documentation and/or other materials provided with the distribution.
|
|
260
|
-
* 3. Neither the name of the copyright holder nor the names of its contributors
|
|
261
|
-
* may be used to endorse or promote products derived from this software without
|
|
262
|
-
* specific prior written permission.
|
|
263
|
-
*
|
|
264
|
-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
265
|
-
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
266
|
-
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
267
|
-
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
268
|
-
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
269
|
-
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
270
|
-
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
271
|
-
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
272
|
-
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
273
|
-
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
274
|
-
*)
|
|
275
|
-
|
|
276
|
-
smol-toml/dist/parse.js:
|
|
277
|
-
(*!
|
|
278
|
-
* Copyright (c) Squirrel Chat et al., All rights reserved.
|
|
279
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
280
|
-
*
|
|
281
|
-
* Redistribution and use in source and binary forms, with or without
|
|
282
|
-
* modification, are permitted provided that the following conditions are met:
|
|
283
|
-
*
|
|
284
|
-
* 1. Redistributions of source code must retain the above copyright notice, this
|
|
285
|
-
* list of conditions and the following disclaimer.
|
|
286
|
-
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
|
287
|
-
* this list of conditions and the following disclaimer in the
|
|
288
|
-
* documentation and/or other materials provided with the distribution.
|
|
289
|
-
* 3. Neither the name of the copyright holder nor the names of its contributors
|
|
290
|
-
* may be used to endorse or promote products derived from this software without
|
|
291
|
-
* specific prior written permission.
|
|
292
|
-
*
|
|
293
|
-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
294
|
-
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
295
|
-
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
296
|
-
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
297
|
-
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
298
|
-
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
299
|
-
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
300
|
-
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
301
|
-
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
302
|
-
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
303
|
-
*)
|
|
304
|
-
|
|
305
|
-
smol-toml/dist/stringify.js:
|
|
306
|
-
(*!
|
|
307
|
-
* Copyright (c) Squirrel Chat et al., All rights reserved.
|
|
308
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
309
|
-
*
|
|
310
|
-
* Redistribution and use in source and binary forms, with or without
|
|
311
|
-
* modification, are permitted provided that the following conditions are met:
|
|
312
|
-
*
|
|
313
|
-
* 1. Redistributions of source code must retain the above copyright notice, this
|
|
314
|
-
* list of conditions and the following disclaimer.
|
|
315
|
-
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
|
316
|
-
* this list of conditions and the following disclaimer in the
|
|
317
|
-
* documentation and/or other materials provided with the distribution.
|
|
318
|
-
* 3. Neither the name of the copyright holder nor the names of its contributors
|
|
319
|
-
* may be used to endorse or promote products derived from this software without
|
|
320
|
-
* specific prior written permission.
|
|
321
|
-
*
|
|
322
|
-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
323
|
-
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
324
|
-
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
325
|
-
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
326
|
-
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
327
|
-
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
328
|
-
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
329
|
-
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
330
|
-
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
331
|
-
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
332
|
-
*)
|
|
333
|
-
|
|
334
|
-
smol-toml/dist/index.js:
|
|
335
|
-
(*!
|
|
336
|
-
* Copyright (c) Squirrel Chat et al., All rights reserved.
|
|
337
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
338
|
-
*
|
|
339
|
-
* Redistribution and use in source and binary forms, with or without
|
|
340
|
-
* modification, are permitted provided that the following conditions are met:
|
|
341
|
-
*
|
|
342
|
-
* 1. Redistributions of source code must retain the above copyright notice, this
|
|
343
|
-
* list of conditions and the following disclaimer.
|
|
344
|
-
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
|
345
|
-
* this list of conditions and the following disclaimer in the
|
|
346
|
-
* documentation and/or other materials provided with the distribution.
|
|
347
|
-
* 3. Neither the name of the copyright holder nor the names of its contributors
|
|
348
|
-
* may be used to endorse or promote products derived from this software without
|
|
349
|
-
* specific prior written permission.
|
|
350
|
-
*
|
|
351
|
-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
352
|
-
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
353
|
-
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
354
|
-
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
355
|
-
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
356
|
-
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
357
|
-
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
358
|
-
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
359
|
-
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
360
|
-
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
361
|
-
*)
|
|
362
|
-
*/
|
|
363
|
-
export{w as _,qt as a,de as c,J as d,H as f,R as g,he as h,Gt as i,be as l,U as m,qe as n,ot as o,tr as p,qn as r,G as s,nr as t,Ee as u};
|