@kyro-cms/core 0.13.3 → 0.13.6
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/{WebhookService-BOJMgjBm.d.cts → WebhookService-BJTCP3cU.d.cts} +1 -1
- package/dist/{WebhookService-BLi5Rz2m.d.ts → WebhookService-Bqr_66lK.d.ts} +1 -1
- package/dist/api-handler-graphql.cjs +1 -1
- package/dist/api-handler-graphql.js +2 -2
- package/dist/api-handler-trpc.cjs +1 -1
- package/dist/api-handler-trpc.js +2 -2
- package/dist/api-handler.cjs +1 -1
- package/dist/api-handler.js +1 -1
- package/dist/auth-session-4WJUKESW.js +1 -0
- package/dist/auth-session-VHUHDBCL.cjs +1 -0
- package/dist/{base-A9AJPCG5.d.ts → base-C2DOe8wD.d.ts} +2 -2
- package/dist/{base-C6wyX2nC.d.cts → base-DIpT2Vuz.d.cts} +2 -2
- package/dist/bootstrap-JYAUQ52D.cjs +1 -0
- package/dist/bootstrap-TTMLNQM3.js +1 -0
- package/dist/chunk-23RSKVJP.cjs +1 -0
- package/dist/chunk-24W5I6SJ.cjs +2 -0
- package/dist/{chunk-CH4TZZI5.js → chunk-2I2AXTKY.cjs} +38 -39
- package/dist/chunk-34LCWI5X.cjs +1 -0
- package/dist/chunk-3A5UO6OQ.cjs +114 -0
- package/dist/chunk-3N34WXBS.js +2 -0
- package/dist/chunk-5BUAWCU6.js +91 -0
- package/dist/{chunk-7NKNSRCB.cjs → chunk-5I3BM5TV.js} +33 -32
- package/dist/chunk-5RBGM5N5.js +3 -0
- package/dist/chunk-7EY3GXRA.js +2 -0
- package/dist/chunk-7KTPBTH5.cjs +1 -0
- package/dist/chunk-A4XM33WO.js +109 -0
- package/dist/chunk-A7763NCF.cjs +19 -0
- package/dist/chunk-AQWTJGML.cjs +1 -0
- package/dist/chunk-CIWLQXB2.js +2 -0
- package/dist/chunk-DCFOVCJX.cjs +1 -0
- package/dist/chunk-DCKJT247.cjs +1 -0
- package/dist/chunk-EG4SRTYS.cjs +2 -0
- package/dist/chunk-FAG2645P.js +2 -0
- package/dist/chunk-FIVTKI25.cjs +3 -0
- package/dist/chunk-FU76HURF.cjs +1 -0
- package/dist/chunk-GDLMPZKD.cjs +2 -0
- package/dist/chunk-GS4CMYKS.cjs +1 -0
- package/dist/chunk-GTAKGVUY.js +2 -0
- package/dist/chunk-GWUHIIPO.cjs +132 -0
- package/dist/chunk-H2IJDTA2.cjs +1 -0
- package/dist/chunk-HACW42ZZ.cjs +108 -0
- package/dist/chunk-HCM2G674.cjs +20 -0
- package/dist/chunk-I22MSXGL.js +2 -0
- package/dist/chunk-IIPSXKNV.js +115 -0
- package/dist/{chunk-WNU76M2C.js → chunk-IIVBEZC2.js} +6 -6
- package/dist/chunk-JHFD3IAU.cjs +1 -0
- package/dist/chunk-JJY2F6NL.cjs +3 -0
- package/dist/chunk-JQ4V2MGJ.cjs +2 -0
- package/dist/chunk-JXJTFBHG.js +3 -0
- package/dist/chunk-KOSR7235.cjs +1 -0
- package/dist/chunk-KUY4QDAL.js +2 -0
- package/dist/chunk-LGUHXOEW.js +3 -0
- package/dist/chunk-LXTVMP5F.cjs +6 -0
- package/dist/chunk-N25DOGLQ.js +5 -0
- package/dist/chunk-N2BMGZIX.cjs +90 -0
- package/dist/chunk-N7CDHWQH.cjs +2 -0
- package/dist/chunk-NBBAMC2X.cjs +1 -0
- package/dist/chunk-NGNXOXI5.js +2 -0
- package/dist/chunk-O4PPZOVI.cjs +1 -0
- package/dist/chunk-O4RKZQYQ.js +2 -0
- package/dist/chunk-OJBL4CXK.cjs +2 -0
- package/dist/chunk-OPKZYQV7.js +3 -0
- package/dist/chunk-OXEJCIOA.cjs +1 -0
- package/dist/chunk-OXH6CANN.js +2 -0
- package/dist/{chunk-EQN3HDES.cjs → chunk-PW6Y5MQL.cjs} +5 -5
- package/dist/chunk-RLW6AQF2.js +2 -0
- package/dist/chunk-SBFVITY2.js +7 -0
- package/dist/chunk-SEJ7LMYY.js +4 -0
- package/dist/chunk-SZY25KAE.js +21 -0
- package/dist/chunk-TG5YQ4PB.cjs +4 -0
- package/dist/chunk-TJ6N5ZPZ.js +133 -0
- package/dist/chunk-V2RMDMWN.js +2 -0
- package/dist/chunk-V4SR7DU5.js +3 -0
- package/dist/chunk-VLFM66BZ.js +4 -0
- package/dist/chunk-VPBGZW4P.cjs +1 -0
- package/dist/chunk-VQWOCGJ2.cjs +1 -0
- package/dist/chunk-VWXHW74B.js +3 -0
- package/dist/chunk-W5GDZG64.js +2 -0
- package/dist/chunk-WLSVS3NC.js +2 -0
- package/dist/chunk-YLP3EKTQ.js +2 -0
- package/dist/chunk-YNSKDTFG.js +2 -0
- package/dist/chunk-YOJOVQIH.cjs +1 -0
- package/dist/chunk-ZE2X3FBU.js +20 -0
- package/dist/chunk-ZMH35QYG.js +2 -0
- package/dist/cli/index.cjs +53 -182
- package/dist/cli/index.js +54 -183
- package/dist/drizzle/index.cjs +1 -1
- package/dist/drizzle/index.d.cts +3 -3
- package/dist/drizzle/index.d.ts +3 -3
- package/dist/drizzle/index.js +1 -1
- package/dist/fields/index.cjs +1 -1
- package/dist/fields/index.d.cts +2 -2
- package/dist/fields/index.d.ts +2 -2
- package/dist/fields/index.js +1 -1
- package/dist/graphql/index.cjs +1 -1
- package/dist/graphql/index.d.cts +3 -3
- package/dist/graphql/index.d.ts +3 -3
- package/dist/graphql/index.js +1 -1
- package/dist/{index-BttsFZDa.d.ts → index-C9uBoJtm.d.ts} +2 -2
- package/dist/{index-BMcYFpTv.d.cts → index-Ci7aUrmN.d.cts} +2 -2
- package/dist/index.cjs +30 -30
- package/dist/index.d.cts +10 -10
- package/dist/index.d.ts +10 -10
- package/dist/index.js +31 -31
- package/dist/integration.cjs +1 -1
- package/dist/integration.js +1 -1
- package/dist/local-DKP43BWQ.cjs +1 -0
- package/dist/local-TF5ZMHWW.js +1 -0
- package/dist/media-M3EIZ4QS.cjs +1 -0
- package/dist/media-WYEILC6K.js +1 -0
- package/dist/mongo-auth-adapter-33M5ENM7.cjs +1 -0
- package/dist/mongo-auth-adapter-4ITULS2P.js +1 -0
- package/dist/mongodb/index.cjs +1 -1
- package/dist/mongodb/index.d.cts +3 -3
- package/dist/mongodb/index.d.ts +3 -3
- package/dist/mongodb/index.js +1 -1
- package/dist/nodemailer-transport-7F3VLLBW.js +1 -0
- package/dist/nodemailer-transport-WAPZD3SJ.cjs +1 -0
- package/dist/postgres-auth-adapter-7BCPXNBO.js +1 -0
- package/dist/postgres-auth-adapter-HMXFUM5W.cjs +1 -0
- package/dist/redis-adapter-2E5AWMMA.cjs +1 -0
- package/dist/redis-adapter-GFH74CF4.js +1 -0
- package/dist/rest/index.cjs +1 -1
- package/dist/rest/index.d.cts +4 -4
- package/dist/rest/index.d.ts +4 -4
- package/dist/rest/index.js +1 -1
- package/dist/schema-FNIDQKIJ.cjs +1 -0
- package/dist/schema-KD736QFN.js +1 -0
- package/dist/sqlite-adapter-HL53RLSN.cjs +1 -0
- package/dist/sqlite-adapter-TT6ZASDG.js +1 -0
- package/dist/templates/index.cjs +1 -1
- package/dist/templates/index.d.cts +2 -2
- package/dist/templates/index.d.ts +2 -2
- package/dist/templates/index.js +1 -1
- package/dist/trpc/index.cjs +1 -1
- package/dist/trpc/index.d.cts +3 -3
- package/dist/trpc/index.d.ts +3 -3
- package/dist/trpc/index.js +1 -1
- package/dist/{types-DxaK39ix.d.cts → types-C3QFX0l6.d.cts} +4 -0
- package/dist/{types-DxaK39ix.d.ts → types-C3QFX0l6.d.ts} +4 -0
- package/dist/{types-6ShQp2EM.d.cts → types-CKWnrUAh.d.ts} +23 -2
- package/dist/{types-BCOhfwHC.d.ts → types-CdwfDpyW.d.cts} +23 -2
- package/dist/ws/index.cjs +1 -1
- package/dist/ws/index.js +1 -1
- package/package.json +3 -11
- package/dist/WebhookService-BcuD8tnn.d.cts +0 -143
- package/dist/WebhookService-CFe6Zd0_.d.cts +0 -143
- package/dist/WebhookService-CGxHtw7E.d.cts +0 -143
- package/dist/WebhookService-CNC1lYz7.d.ts +0 -143
- package/dist/WebhookService-CVXmjbtQ.d.cts +0 -143
- package/dist/WebhookService-D5PSI5t6.d.cts +0 -143
- package/dist/WebhookService-DPCCn_12.d.ts +0 -143
- package/dist/WebhookService-Dk1lzSrG.d.cts +0 -143
- package/dist/WebhookService-Dncnbgm9.d.cts +0 -143
- package/dist/WebhookService-I6hdue2Y.d.ts +0 -143
- package/dist/WebhookService-KnQ2UDlW.d.ts +0 -143
- package/dist/WebhookService-UY5p89Bj.d.ts +0 -143
- package/dist/WebhookService-YZXBCRXA.d.ts +0 -143
- package/dist/WebhookService-fk0FGRlk.d.ts +0 -143
- package/dist/WebhookService-vsFnWrOh.d.ts +0 -143
- package/dist/WebhookService-zrDmAx7L.d.cts +0 -143
- package/dist/auth-session-DHVGXHOH.cjs +0 -1
- package/dist/auth-session-O7IIH7EP.js +0 -1
- package/dist/base-B--L0lCn.d.cts +0 -218
- package/dist/base-B-i-tjm1.d.ts +0 -218
- package/dist/base-B-siit_y.d.cts +0 -218
- package/dist/base-B8SyZI4D.d.ts +0 -218
- package/dist/base-BCgFt3Yx.d.ts +0 -218
- package/dist/base-BHRGJ40F.d.cts +0 -218
- package/dist/base-BVoDPNjJ.d.cts +0 -218
- package/dist/base-BaOJ5uWd.d.cts +0 -218
- package/dist/base-BfPaVEAE.d.cts +0 -218
- package/dist/base-BxrX5EPU.d.cts +0 -218
- package/dist/base-CAb9EYQs.d.ts +0 -218
- package/dist/base-CcZIEll-.d.ts +0 -218
- package/dist/base-CyG7aF1e.d.cts +0 -218
- package/dist/base-DOImeJ-F.d.ts +0 -218
- package/dist/base-DbnwE42-.d.cts +0 -218
- package/dist/base-NyiSsD-n.d.ts +0 -218
- package/dist/base-OYfoYPYP.d.ts +0 -218
- package/dist/base-xflndGDO.d.ts +0 -218
- package/dist/bcryptjs-WIQSWJGK.cjs +0 -1
- package/dist/bcryptjs-ZEEHSMAG.js +0 -2
- package/dist/better-sqlite3-5IISPX34.cjs +0 -1
- package/dist/better-sqlite3-B34RIU4C.js +0 -2
- package/dist/bootstrap-E24SGUJP.cjs +0 -1
- package/dist/bootstrap-PG2LGDLB.js +0 -1
- package/dist/bootstrap-QQ6D3OYG.js +0 -1
- package/dist/bootstrap-QVKSKXJF.cjs +0 -1
- package/dist/bootstrap-RILR44UM.cjs +0 -1
- package/dist/bootstrap-YD3GLTWX.cjs +0 -1
- package/dist/bootstrap-YFVE7MRG.js +0 -1
- package/dist/bootstrap-ZRRUPRUR.js +0 -1
- package/dist/bowser-SB3ZUPO4.js +0 -11
- package/dist/bowser-VX6B6ZSE.cjs +0 -10
- package/dist/chokidar-5RVQZVHP.cjs +0 -5
- package/dist/chokidar-BOYGRT4Q.js +0 -6
- package/dist/chunk-22RXJ442.js +0 -57
- package/dist/chunk-262YP5XA.cjs +0 -1
- package/dist/chunk-2FSOHXOU.cjs +0 -56
- package/dist/chunk-2HA6EKXX.js +0 -24
- package/dist/chunk-2OS5Y4LE.cjs +0 -1
- package/dist/chunk-2PXXQKN3.cjs +0 -3
- package/dist/chunk-2SPWRQ5O.js +0 -122
- package/dist/chunk-32QY56XF.js +0 -122
- package/dist/chunk-355R4LS5.cjs +0 -56
- package/dist/chunk-35IVNLMA.js +0 -122
- package/dist/chunk-35PGCW3S.cjs +0 -1
- package/dist/chunk-3GXLOYM3.js +0 -2
- package/dist/chunk-3KZXF4US.js +0 -2
- package/dist/chunk-3LAWUINR.cjs +0 -1
- package/dist/chunk-3NSZZCOJ.js +0 -2
- package/dist/chunk-3O3AVMWM.cjs +0 -1
- package/dist/chunk-3TAUNYEM.js +0 -8
- package/dist/chunk-3U6MKWET.cjs +0 -120
- package/dist/chunk-3VXEK5ZW.cjs +0 -1
- package/dist/chunk-47CXBWMA.js +0 -2
- package/dist/chunk-4BMWWGJN.js +0 -384
- package/dist/chunk-4NTIK6DF.cjs +0 -2
- package/dist/chunk-4YCI3HBD.js +0 -3
- package/dist/chunk-4ZWLNGLS.js +0 -2
- package/dist/chunk-5A7E7N4B.cjs +0 -431
- package/dist/chunk-5ZEYOFAK.js +0 -2
- package/dist/chunk-6DD4J7LI.js +0 -2
- package/dist/chunk-6E44MQQ5.js +0 -115
- package/dist/chunk-6GGPY7U2.js +0 -4
- package/dist/chunk-6LWF5MPL.js +0 -20
- package/dist/chunk-6MNLRAKM.cjs +0 -121
- package/dist/chunk-6NBZDW53.js +0 -133
- package/dist/chunk-6TPICJ2L.js +0 -7
- package/dist/chunk-73D2PNHD.cjs +0 -7
- package/dist/chunk-73Y63IPP.js +0 -57
- package/dist/chunk-7ACHOBWY.cjs +0 -13
- package/dist/chunk-7DUKWHRN.cjs +0 -1
- package/dist/chunk-7GGZA5YU.cjs +0 -2
- package/dist/chunk-7JWQ2PZP.cjs +0 -1
- package/dist/chunk-7K6ZUNJM.js +0 -4
- package/dist/chunk-7KLEANTO.cjs +0 -1
- package/dist/chunk-7LLCXY5O.cjs +0 -19
- package/dist/chunk-7MNDQU6K.js +0 -8
- package/dist/chunk-7NH7H3WA.js +0 -10
- package/dist/chunk-7WMMKGEO.cjs +0 -1
- package/dist/chunk-A35ZP72D.cjs +0 -132
- package/dist/chunk-A3IOQOV6.js +0 -2
- package/dist/chunk-A3XVL6ED.cjs +0 -3
- package/dist/chunk-A7LZ6T42.cjs +0 -1
- package/dist/chunk-APDQ6ZTG.cjs +0 -120
- package/dist/chunk-ATI2UZ7U.js +0 -2
- package/dist/chunk-AWQGDMOE.js +0 -3
- package/dist/chunk-B3BSVEFC.cjs +0 -3
- package/dist/chunk-B4AC23SG.js +0 -122
- package/dist/chunk-BAVN7VDR.cjs +0 -1
- package/dist/chunk-BCEE4NBZ.cjs +0 -2
- package/dist/chunk-BD6XHMMM.cjs +0 -2
- package/dist/chunk-BUNLC3II.cjs +0 -1
- package/dist/chunk-C7QCZX7X.js +0 -2
- package/dist/chunk-CHYVUWZ3.js +0 -2
- package/dist/chunk-CIVA6SKW.js +0 -2
- package/dist/chunk-CNHUCCQJ.js +0 -121
- package/dist/chunk-CRP6PSCE.js +0 -2
- package/dist/chunk-D6SDGHY6.js +0 -2
- package/dist/chunk-DI6TCZSE.js +0 -122
- package/dist/chunk-DORUYZQV.cjs +0 -1
- package/dist/chunk-DSHKQL3R.cjs +0 -121
- package/dist/chunk-DVWYO3KK.cjs +0 -1
- package/dist/chunk-E4H3ZZ7U.js +0 -4
- package/dist/chunk-EFKEVWAD.js +0 -4
- package/dist/chunk-EHWUALGH.cjs +0 -1
- package/dist/chunk-EI7FRSNY.js +0 -57
- package/dist/chunk-ELFQKQLL.js +0 -2
- package/dist/chunk-EML5FDUU.js +0 -2
- package/dist/chunk-EN65ZEK2.cjs +0 -2
- package/dist/chunk-EON4XLKQ.cjs +0 -1
- package/dist/chunk-EUQAOYEO.cjs +0 -121
- package/dist/chunk-EVAUBT7H.js +0 -57
- package/dist/chunk-EW424IBO.cjs +0 -1
- package/dist/chunk-EYHD7HZE.cjs +0 -1
- package/dist/chunk-EYYIPA5N.js +0 -432
- package/dist/chunk-EZIDQBXI.cjs +0 -1
- package/dist/chunk-F2O4QO5N.cjs +0 -383
- package/dist/chunk-F4ITQ6XQ.cjs +0 -3
- package/dist/chunk-FBWLSWZ4.js +0 -122
- package/dist/chunk-FDKU7HJX.js +0 -2
- package/dist/chunk-FG3IFGJP.cjs +0 -1
- package/dist/chunk-FGN6IMPY.cjs +0 -3
- package/dist/chunk-FK2BG4HU.js +0 -3
- package/dist/chunk-FLMUMPDE.js +0 -2
- package/dist/chunk-FLS2FJM6.cjs +0 -431
- package/dist/chunk-FP5UK272.cjs +0 -1
- package/dist/chunk-FSL3NLRT.cjs +0 -2
- package/dist/chunk-FUFS65Q5.js +0 -133
- package/dist/chunk-GIS6X43A.cjs +0 -3
- package/dist/chunk-GNEVCEJU.cjs +0 -3
- package/dist/chunk-GNOSG3PK.cjs +0 -1
- package/dist/chunk-GQGFNTDZ.js +0 -2
- package/dist/chunk-GTR7JAKP.cjs +0 -3
- package/dist/chunk-GV2IB4WQ.cjs +0 -56
- package/dist/chunk-GWIZT2P5.js +0 -57
- package/dist/chunk-H3FJ54KB.cjs +0 -121
- package/dist/chunk-HPIJI7TM.js +0 -3
- package/dist/chunk-HPYH7GTS.cjs +0 -1
- package/dist/chunk-HRAY65XH.js +0 -3
- package/dist/chunk-HTYVI2HK.cjs +0 -9
- package/dist/chunk-HY3EAWB2.js +0 -4
- package/dist/chunk-I6UJVO2P.js +0 -57
- package/dist/chunk-IKGVPXMK.js +0 -3
- package/dist/chunk-IQSF6XRV.js +0 -57
- package/dist/chunk-IXGDTAES.js +0 -4
- package/dist/chunk-J6V573PE.cjs +0 -1
- package/dist/chunk-JA44K75G.js +0 -2
- package/dist/chunk-JB4WG2YJ.cjs +0 -121
- package/dist/chunk-JCEJ4VTN.js +0 -20
- package/dist/chunk-JRUQ5ABB.js +0 -4
- package/dist/chunk-JV4HJBXW.js +0 -14
- package/dist/chunk-JZ7Z6WC2.cjs +0 -3
- package/dist/chunk-K5XGP57D.cjs +0 -19
- package/dist/chunk-K73HOMQY.cjs +0 -56
- package/dist/chunk-KEITOXIP.js +0 -2
- package/dist/chunk-KMFLHGD5.cjs +0 -1
- package/dist/chunk-KZHXYXSH.cjs +0 -10
- package/dist/chunk-L3Q64RUX.js +0 -3
- package/dist/chunk-LBLFU6KI.js +0 -57
- package/dist/chunk-LEBM6ZSZ.cjs +0 -10
- package/dist/chunk-LP3HRZGK.js +0 -57
- package/dist/chunk-LPFRMQFQ.js +0 -121
- package/dist/chunk-LQ3YZTPU.cjs +0 -15
- package/dist/chunk-LVBHOZZF.js +0 -4
- package/dist/chunk-LWM4WABU.js +0 -3
- package/dist/chunk-LY7N3UHH.cjs +0 -23
- package/dist/chunk-LYU44UNN.cjs +0 -56
- package/dist/chunk-M75VGFCI.js +0 -3
- package/dist/chunk-MCIZG4A3.cjs +0 -1
- package/dist/chunk-MDLJTZLV.cjs +0 -1
- package/dist/chunk-MFNN5DYG.cjs +0 -1
- package/dist/chunk-MJAODEFC.cjs +0 -121
- package/dist/chunk-MLCBSEBU.js +0 -2
- package/dist/chunk-MSC4G2HF.cjs +0 -2
- package/dist/chunk-MYHNTJLR.cjs +0 -56
- package/dist/chunk-N2YHO2WI.cjs +0 -3
- package/dist/chunk-N4FXLQE3.cjs +0 -132
- package/dist/chunk-N5POANYV.js +0 -2
- package/dist/chunk-N6MNQIQU.js +0 -123
- package/dist/chunk-NGNJSUGL.cjs +0 -1
- package/dist/chunk-NPBXLPOP.js +0 -3
- package/dist/chunk-NRE6VKL6.cjs +0 -121
- package/dist/chunk-O4YE57OS.cjs +0 -6
- package/dist/chunk-O7CBGP4N.cjs +0 -1
- package/dist/chunk-OBYAIJVU.js +0 -11
- package/dist/chunk-OJ3H4AQ2.cjs +0 -56
- package/dist/chunk-OLRCZ6E3.js +0 -2
- package/dist/chunk-ON5XJEPO.cjs +0 -3
- package/dist/chunk-OOVNTOZC.cjs +0 -56
- package/dist/chunk-OPTVCCQQ.cjs +0 -122
- package/dist/chunk-OT2Z4XBD.cjs +0 -1
- package/dist/chunk-P6JITOFF.js +0 -4
- package/dist/chunk-PFKVHUOT.js +0 -432
- package/dist/chunk-PFTBTWSC.cjs +0 -1
- package/dist/chunk-PITMDQYN.cjs +0 -18
- package/dist/chunk-PTPVFLET.js +0 -20
- package/dist/chunk-PYUWSKKP.js +0 -57
- package/dist/chunk-PZDLPRJF.js +0 -4
- package/dist/chunk-Q5TFO66G.cjs +0 -1
- package/dist/chunk-QC4YXUBT.cjs +0 -383
- package/dist/chunk-QO5ZWQA3.cjs +0 -74
- package/dist/chunk-QUTYCUST.js +0 -4
- package/dist/chunk-QYN6C3FZ.cjs +0 -114
- package/dist/chunk-REKKBAQX.cjs +0 -56
- package/dist/chunk-REQ622YC.js +0 -3
- package/dist/chunk-RPRGGGIW.js +0 -11
- package/dist/chunk-RTNQP6BV.js +0 -2
- package/dist/chunk-RUJW47ZJ.js +0 -2
- package/dist/chunk-RVBSJ4UQ.cjs +0 -7
- package/dist/chunk-RXYCFZJC.cjs +0 -121
- package/dist/chunk-RYHOWZLK.js +0 -2
- package/dist/chunk-RYXLEFS5.js +0 -2
- package/dist/chunk-S2MZNEBQ.cjs +0 -1
- package/dist/chunk-S5HTTLN7.cjs +0 -2
- package/dist/chunk-S73YERS2.js +0 -57
- package/dist/chunk-SBNMXQNO.cjs +0 -2
- package/dist/chunk-SLMIYECU.js +0 -2
- package/dist/chunk-SMQ6736Y.js +0 -57
- package/dist/chunk-SRIXRJHL.js +0 -4
- package/dist/chunk-T3DJ3UTP.cjs +0 -121
- package/dist/chunk-TBHNE4VV.js +0 -2
- package/dist/chunk-TCFL3UWT.cjs +0 -2
- package/dist/chunk-TEY5LZ26.cjs +0 -56
- package/dist/chunk-TJZO7ZSX.cjs +0 -3
- package/dist/chunk-TKUNRCRH.js +0 -4
- package/dist/chunk-TQLCOMKC.js +0 -4
- package/dist/chunk-TRXYDWGE.cjs +0 -1
- package/dist/chunk-TS55CUNJ.js +0 -57
- package/dist/chunk-TYQYKKWJ.js +0 -16
- package/dist/chunk-U6KFONKM.js +0 -2
- package/dist/chunk-UFBJ3WOZ.js +0 -2
- package/dist/chunk-UNYXWPLZ.cjs +0 -2
- package/dist/chunk-UQRVQUVR.js +0 -2
- package/dist/chunk-UW5W35NP.js +0 -122
- package/dist/chunk-UWHWSWDE.js +0 -2
- package/dist/chunk-UWVBFRCW.js +0 -2
- package/dist/chunk-UZWYFEUN.js +0 -122
- package/dist/chunk-V4FAL7AG.js +0 -2
- package/dist/chunk-VI7WCO2J.cjs +0 -3
- package/dist/chunk-VOYPKTID.cjs +0 -1
- package/dist/chunk-VQ53TFYA.cjs +0 -1
- package/dist/chunk-VRZC4TTF.cjs +0 -1
- package/dist/chunk-VTOL3URF.js +0 -4
- package/dist/chunk-VVVCCB6R.js +0 -2
- package/dist/chunk-W2GPP6RB.js +0 -122
- package/dist/chunk-W45TLOOT.js +0 -2
- package/dist/chunk-WAVGRSE6.js +0 -2
- package/dist/chunk-WHOA7YJU.cjs +0 -1
- package/dist/chunk-WNRUPL26.js +0 -2
- package/dist/chunk-WPM6LFCY.js +0 -2
- package/dist/chunk-WXT2XW7T.js +0 -13
- package/dist/chunk-X473JI7Z.js +0 -75
- package/dist/chunk-X6HUA6EF.cjs +0 -20
- package/dist/chunk-XBQ6HV3T.cjs +0 -114
- package/dist/chunk-XDPLVJRO.js +0 -21
- package/dist/chunk-XDQVYCIR.cjs +0 -1
- package/dist/chunk-XFYSADHV.cjs +0 -2
- package/dist/chunk-XIAJQLGS.js +0 -2
- package/dist/chunk-XK6UB77Q.js +0 -4
- package/dist/chunk-XOR64WUQ.cjs +0 -19
- package/dist/chunk-XP7BXFXT.cjs +0 -121
- package/dist/chunk-Y2VHO66Q.cjs +0 -3
- package/dist/chunk-Y2YAKDEQ.js +0 -2
- package/dist/chunk-Y5O2OD7J.cjs +0 -3
- package/dist/chunk-YARB43JG.cjs +0 -56
- package/dist/chunk-YENNL5HG.js +0 -2
- package/dist/chunk-YGI5W4RS.js +0 -2
- package/dist/chunk-YLCEMVYY.cjs +0 -56
- package/dist/chunk-YSOM57GK.cjs +0 -3
- package/dist/chunk-YUUXFD73.js +0 -19
- package/dist/chunk-Z2SN2MYP.js +0 -122
- package/dist/chunk-Z3UVDGYS.cjs +0 -56
- package/dist/chunk-ZAKYTBEN.js +0 -3
- package/dist/chunk-ZHA446FA.cjs +0 -1
- package/dist/chunk-ZO3YB5DK.cjs +0 -1
- package/dist/chunk-ZOVH6QT5.cjs +0 -1
- package/dist/chunk-ZRIBWDYJ.js +0 -384
- package/dist/chunk-ZTLGK6R4.cjs +0 -12
- package/dist/chunk-ZUBJ6RLQ.cjs +0 -1
- package/dist/chunk-ZWDBPEXL.js +0 -115
- package/dist/client.d.cts +0 -1266
- package/dist/client.d.ts +0 -1266
- package/dist/d1-5ZQJOFDX.cjs +0 -1
- package/dist/d1-HPB6B253.js +0 -2
- package/dist/dist-es-3SSNUZST.cjs +0 -1
- package/dist/dist-es-64F22JL2.js +0 -2
- package/dist/dist-es-A5OF2STN.cjs +0 -2
- package/dist/dist-es-BOW5V247.cjs +0 -6
- package/dist/dist-es-CRIMATLL.cjs +0 -2
- package/dist/dist-es-DL3VLVP6.cjs +0 -1
- package/dist/dist-es-F2ZR55UK.js +0 -4
- package/dist/dist-es-IPSSZNFP.js +0 -1
- package/dist/dist-es-M2F7M27Y.js +0 -2
- package/dist/dist-es-M66JKZF5.js +0 -7
- package/dist/dist-es-OKLLRYI3.js +0 -2
- package/dist/dist-es-P25IKLBI.cjs +0 -1
- package/dist/dist-es-SRPWSAF4.cjs +0 -1
- package/dist/dist-es-SVHZDVUF.js +0 -3
- package/dist/dist-es-T2H2W5BX.cjs +0 -3
- package/dist/dist-es-WFI55HKT.js +0 -3
- package/dist/drizzle-orm-47ELDEM6.cjs +0 -1
- package/dist/drizzle-orm-XRTSOQJS.js +0 -1
- package/dist/event-streams-7NAWZW2I.js +0 -1
- package/dist/event-streams-JBMWCI2O.cjs +0 -1
- package/dist/fs-KWBRQ6T6.js +0 -1
- package/dist/fs-ZQYOJOIO.cjs +0 -1
- package/dist/index-8Ino7vKq.d.ts +0 -105
- package/dist/index-B9BFNOHd.d.cts +0 -105
- package/dist/index-ByOM1Y5x.d.ts +0 -105
- package/dist/index-C6xmtRio.d.cts +0 -105
- package/dist/index-CTI3K_uq.d.cts +0 -105
- package/dist/index-CTL4zv_u.d.ts +0 -105
- package/dist/index-CaDbioSg.d.ts +0 -105
- package/dist/index-CxA9uOv0.d.ts +0 -105
- package/dist/index-D6AXbuPI.d.ts +0 -105
- package/dist/index-DF0KDBaM.d.cts +0 -105
- package/dist/index-DG4Xu7gA.d.cts +0 -105
- package/dist/index-DS3DpJli.d.cts +0 -105
- package/dist/index-NGnJpSgf.d.ts +0 -105
- package/dist/index-Zrg3sZ6R.d.cts +0 -105
- package/dist/index-eHex8Iwj.d.ts +0 -105
- package/dist/index-rm7uyOK1.d.cts +0 -105
- package/dist/jsonwebtoken-DFB6ZBZA.cjs +0 -8
- package/dist/jsonwebtoken-OD67R5JS.js +0 -9
- package/dist/lib-5QYYN6ML.cjs +0 -12
- package/dist/lib-A2D63VXD.cjs +0 -1
- package/dist/lib-JQD2JAOO.js +0 -2
- package/dist/lib-XXYYUPMW.js +0 -13
- package/dist/loadSso-JY4WDQPS.cjs +0 -2
- package/dist/loadSso-UQR6545M.js +0 -3
- package/dist/local-6UUGBZ4M.js +0 -1
- package/dist/local-DPLKZQA3.js +0 -1
- package/dist/local-KR3AIGVA.cjs +0 -1
- package/dist/local-S5VA7IXE.cjs +0 -1
- package/dist/local-T7GISZBL.js +0 -1
- package/dist/local-ZYHV3J2K.cjs +0 -1
- package/dist/media-3Z6YW5J4.cjs +0 -1
- package/dist/media-E762GEHL.js +0 -1
- package/dist/mongo-auth-adapter-2H2AXDRH.cjs +0 -1
- package/dist/mongo-auth-adapter-EUHAYWJ6.cjs +0 -1
- package/dist/mongo-auth-adapter-FW7ATYQ6.js +0 -1
- package/dist/mongo-auth-adapter-GR2CFFEA.js +0 -1
- package/dist/mongo-auth-adapter-UOO2LZUJ.cjs +0 -1
- package/dist/mongo-auth-adapter-YWMEOC42.js +0 -1
- package/dist/nodemailer-IDML4L6W.cjs +0 -53
- package/dist/nodemailer-NITB45SS.js +0 -54
- package/dist/nodemailer-transport-3VWVUBM5.cjs +0 -1
- package/dist/nodemailer-transport-7RHATUKL.js +0 -1
- package/dist/nodemailer-transport-CHO2WKIY.js +0 -1
- package/dist/nodemailer-transport-ED2IXNGW.cjs +0 -1
- package/dist/postgres-auth-adapter-QKBNXVPT.js +0 -1
- package/dist/postgres-auth-adapter-SK3N3OSS.js +0 -1
- package/dist/postgres-auth-adapter-WMLM4UUC.cjs +0 -1
- package/dist/postgres-auth-adapter-ZO6HK5AK.cjs +0 -1
- package/dist/postgres-js-7YBZKGXG.cjs +0 -1
- package/dist/postgres-js-JLFIWOBH.js +0 -1
- package/dist/redis-adapter-EGMUN65D.cjs +0 -1
- package/dist/redis-adapter-EVK2SMKH.cjs +0 -1
- package/dist/redis-adapter-LY2NBSAG.js +0 -1
- package/dist/redis-adapter-QPCTMF55.js +0 -1
- package/dist/schema-RT6WSUYC.cjs +0 -1
- package/dist/schema-YFMSJK2P.js +0 -2
- package/dist/signin-N3T2KF5Q.js +0 -3
- package/dist/signin-VFBLX7EL.cjs +0 -2
- package/dist/sqlite-adapter-52PL52VU.js +0 -1
- package/dist/sqlite-adapter-KPSISY6E.cjs +0 -1
- package/dist/sqlite-adapter-MNNZZXGX.cjs +0 -1
- package/dist/sqlite-adapter-PI6SIY7O.js +0 -1
- package/dist/src-6LAUXXDM.cjs +0 -1
- package/dist/src-QBADSZV4.js +0 -1
- package/dist/sso-oidc-54BIRYR6.cjs +0 -2
- package/dist/sso-oidc-UB7G4END.js +0 -3
- package/dist/sts-WAA6I22C.js +0 -3
- package/dist/sts-YLXXIB3X.cjs +0 -2
- package/dist/types-B5Qz1svz.d.cts +0 -822
- package/dist/types-B9oXBEKI.d.cts +0 -330
- package/dist/types-B9oXBEKI.d.ts +0 -330
- package/dist/types-BRDBNacn.d.ts +0 -839
- package/dist/types-Bii0bhUV.d.cts +0 -329
- package/dist/types-Bii0bhUV.d.ts +0 -329
- package/dist/types-Bt2_ycUO.d.ts +0 -811
- package/dist/types-C4wXHImf.d.ts +0 -822
- package/dist/types-C8yIAV6K.d.cts +0 -839
- package/dist/types-CORUQhY-.d.ts +0 -839
- package/dist/types-Cdssrcbz.d.cts +0 -839
- package/dist/types-CjGqxBd3.d.cts +0 -330
- package/dist/types-CjGqxBd3.d.ts +0 -330
- package/dist/types-DBGR-eQl.d.cts +0 -839
- package/dist/types-DCWgPFmi.d.cts +0 -822
- package/dist/types-DROqAsr0.d.cts +0 -330
- package/dist/types-DROqAsr0.d.ts +0 -330
- package/dist/types-DlGSbh7I.d.cts +0 -297
- package/dist/types-DlGSbh7I.d.ts +0 -297
- package/dist/types-DsF64Wrc.d.cts +0 -811
- package/dist/types-IeKFn7Ky.d.ts +0 -839
- package/dist/types-QglJ7PwT.d.cts +0 -839
- package/dist/types-ZrjEVWfi.d.ts +0 -811
- package/dist/types-dEy5JxvN.d.ts +0 -822
- package/dist/types-tVJc9YbX.d.cts +0 -811
- package/dist/types-zt5qIvje.d.ts +0 -839
package/dist/base-OYfoYPYP.d.ts
DELETED
|
@@ -1,218 +0,0 @@
|
|
|
1
|
-
import { B as BaseAdapter, C as CollectionConfig, G as GlobalConfig, T as TenantContext, F as FindArgs, b as FindResult, c as FindByIDArgs, d as CreateArgs, U as UpdateArgs, D as DeleteArgs, e as FindOneArgs, f as FindVersionsArgs, V as VersionRecord, g as CreateVersionArgs } from './types-BCOhfwHC.js';
|
|
2
|
-
import { F as Field, u as RelationshipField, U as UploadField } from './types-DxaK39ix.js';
|
|
3
|
-
|
|
4
|
-
type AuditAction = "login" | "logout" | "login_failed" | "register" | "verify_email" | "password_change" | "password_reset" | "password_reset_request" | "role_change" | "permission_change" | "document_create" | "document_update" | "document_delete" | "settings_change" | "user_lockout" | "user_unlock" | "user_create" | "user_update" | "user_delete" | "api_request" | "api_key_create" | "api_key_update" | "api_key_rotate" | "api_key_delete" | "tenant_create" | "tenant_delete";
|
|
5
|
-
interface AuditLog {
|
|
6
|
-
id: string;
|
|
7
|
-
timestamp: Date;
|
|
8
|
-
action: AuditAction;
|
|
9
|
-
userId?: string;
|
|
10
|
-
userEmail?: string;
|
|
11
|
-
role?: string;
|
|
12
|
-
resource: string;
|
|
13
|
-
resourceId?: string;
|
|
14
|
-
changes?: {
|
|
15
|
-
field: string;
|
|
16
|
-
old: any;
|
|
17
|
-
new: any;
|
|
18
|
-
}[];
|
|
19
|
-
ipAddress?: string;
|
|
20
|
-
userAgent?: string;
|
|
21
|
-
success: boolean;
|
|
22
|
-
error?: string;
|
|
23
|
-
metadata?: Record<string, any>;
|
|
24
|
-
}
|
|
25
|
-
interface AuditLogFilter {
|
|
26
|
-
userId?: string;
|
|
27
|
-
action?: AuditAction | AuditAction[];
|
|
28
|
-
resource?: string;
|
|
29
|
-
resourceId?: string;
|
|
30
|
-
success?: boolean;
|
|
31
|
-
startDate?: Date;
|
|
32
|
-
endDate?: Date;
|
|
33
|
-
limit?: number;
|
|
34
|
-
offset?: number;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
interface AuthUser {
|
|
38
|
-
id: string;
|
|
39
|
-
name?: string;
|
|
40
|
-
email: string;
|
|
41
|
-
passwordHash?: string;
|
|
42
|
-
role: UserRole;
|
|
43
|
-
avatar?: string;
|
|
44
|
-
tenantId?: string;
|
|
45
|
-
emailVerified?: boolean;
|
|
46
|
-
locked?: boolean;
|
|
47
|
-
lastLogin?: string;
|
|
48
|
-
failedLoginAttempts?: number;
|
|
49
|
-
createdAt: string;
|
|
50
|
-
updatedAt: string;
|
|
51
|
-
}
|
|
52
|
-
type UserRole = "super_admin" | "admin" | "editor" | "author" | "customer" | "guest";
|
|
53
|
-
interface Session {
|
|
54
|
-
id: string;
|
|
55
|
-
userId: string;
|
|
56
|
-
token: string;
|
|
57
|
-
refreshToken?: string;
|
|
58
|
-
expiresAt: string;
|
|
59
|
-
createdAt: string;
|
|
60
|
-
ipAddress?: string;
|
|
61
|
-
userAgent?: string;
|
|
62
|
-
}
|
|
63
|
-
interface JWTPayload {
|
|
64
|
-
sub: string;
|
|
65
|
-
email: string;
|
|
66
|
-
role: UserRole;
|
|
67
|
-
tenantId?: string;
|
|
68
|
-
iat?: number;
|
|
69
|
-
exp?: number;
|
|
70
|
-
sid?: string;
|
|
71
|
-
}
|
|
72
|
-
interface AuthTokenConfig {
|
|
73
|
-
secret: string;
|
|
74
|
-
expiresIn?: string | number;
|
|
75
|
-
refreshExpiresIn?: string | number;
|
|
76
|
-
issuer?: string;
|
|
77
|
-
audience?: string[];
|
|
78
|
-
saltRounds?: number;
|
|
79
|
-
}
|
|
80
|
-
interface LoginCredentials {
|
|
81
|
-
email: string;
|
|
82
|
-
password: string;
|
|
83
|
-
}
|
|
84
|
-
interface RegisterData {
|
|
85
|
-
email: string;
|
|
86
|
-
password: string;
|
|
87
|
-
role?: UserRole;
|
|
88
|
-
tenantId?: string;
|
|
89
|
-
}
|
|
90
|
-
interface AuthResult {
|
|
91
|
-
success: boolean;
|
|
92
|
-
user?: AuthUser;
|
|
93
|
-
session?: Session;
|
|
94
|
-
token?: string;
|
|
95
|
-
error?: string;
|
|
96
|
-
}
|
|
97
|
-
interface AuthAdapter {
|
|
98
|
-
createUser(data: {
|
|
99
|
-
email: string;
|
|
100
|
-
password: string;
|
|
101
|
-
name?: string;
|
|
102
|
-
role?: UserRole;
|
|
103
|
-
avatar?: string;
|
|
104
|
-
tenantId?: string;
|
|
105
|
-
}): Promise<AuthUser>;
|
|
106
|
-
findUserByEmail(email: string): Promise<AuthUser | null>;
|
|
107
|
-
findUserById(id: string): Promise<AuthUser | null>;
|
|
108
|
-
updateUser(id: string, data: Partial<AuthUser> & {
|
|
109
|
-
password?: string;
|
|
110
|
-
}): Promise<AuthUser | null>;
|
|
111
|
-
deleteUser(id: string): Promise<boolean>;
|
|
112
|
-
verifyPassword(email: string, password: string): Promise<AuthUser | null>;
|
|
113
|
-
hashPassword(password: string): Promise<string>;
|
|
114
|
-
createSession(userId: string, data?: {
|
|
115
|
-
ipAddress?: string;
|
|
116
|
-
userAgent?: string;
|
|
117
|
-
}): Promise<Session>;
|
|
118
|
-
findSessionByToken(token: string): Promise<Session | null>;
|
|
119
|
-
findSessionByRefreshToken(refreshToken: string): Promise<Session | null>;
|
|
120
|
-
deleteSession(sessionId: string): Promise<boolean>;
|
|
121
|
-
deleteUserSessions(userId: string): Promise<number>;
|
|
122
|
-
createEmailVerificationToken(userId: string): Promise<{
|
|
123
|
-
token: string;
|
|
124
|
-
expiresAt: Date;
|
|
125
|
-
}>;
|
|
126
|
-
verifyEmailToken(token: string): Promise<{
|
|
127
|
-
success: boolean;
|
|
128
|
-
userId?: string;
|
|
129
|
-
error?: string;
|
|
130
|
-
}>;
|
|
131
|
-
createPasswordResetToken(email: string): Promise<{
|
|
132
|
-
token: string;
|
|
133
|
-
expiresAt: Date;
|
|
134
|
-
error?: string;
|
|
135
|
-
}>;
|
|
136
|
-
resetPasswordWithToken(token: string, newPassword: string): Promise<{
|
|
137
|
-
success: boolean;
|
|
138
|
-
error?: string;
|
|
139
|
-
}>;
|
|
140
|
-
hasAnyUsers?(): Promise<boolean>;
|
|
141
|
-
connect?(): Promise<void>;
|
|
142
|
-
disconnect?(): Promise<void>;
|
|
143
|
-
addPasswordToHistory?(userId: string, passwordHash: string): Promise<void>;
|
|
144
|
-
getPasswordHistory?(userId: string, count?: number): Promise<string[]>;
|
|
145
|
-
isPasswordInHistory?(password: string, userId: string, historyCount?: number): Promise<boolean>;
|
|
146
|
-
findAuditLogs(filter: AuditLogFilter): Promise<{
|
|
147
|
-
logs: AuditLog[];
|
|
148
|
-
total: number;
|
|
149
|
-
}>;
|
|
150
|
-
createAuditLog(data: Omit<AuditLog, "id" | "timestamp">): Promise<AuditLog>;
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
declare abstract class AbstractBaseAdapter implements BaseAdapter {
|
|
154
|
-
protected collections: Map<string, CollectionConfig>;
|
|
155
|
-
protected globals: Map<string, GlobalConfig>;
|
|
156
|
-
protected connected: boolean;
|
|
157
|
-
protected tenantContext?: TenantContext;
|
|
158
|
-
abstract connect(): Promise<void>;
|
|
159
|
-
abstract disconnect(): Promise<void>;
|
|
160
|
-
setTenantContext(context: TenantContext | undefined): void;
|
|
161
|
-
getTenantContext(): TenantContext | undefined;
|
|
162
|
-
init(collections: CollectionConfig[], globals?: GlobalConfig[]): Promise<void>;
|
|
163
|
-
abstract find<T>(args: FindArgs): Promise<FindResult<T>>;
|
|
164
|
-
abstract findByID<T>(args: FindByIDArgs): Promise<T | null>;
|
|
165
|
-
abstract create<T>(args: CreateArgs): Promise<T>;
|
|
166
|
-
abstract update<T>(args: UpdateArgs): Promise<T>;
|
|
167
|
-
abstract delete<T>(args: DeleteArgs): Promise<T>;
|
|
168
|
-
abstract count(args: {
|
|
169
|
-
collection: string;
|
|
170
|
-
where?: Record<string, any>;
|
|
171
|
-
tenantId?: string;
|
|
172
|
-
}): Promise<number>;
|
|
173
|
-
abstract findOne(args: FindOneArgs): Promise<any>;
|
|
174
|
-
abstract findVersions(args: FindVersionsArgs): Promise<FindResult<VersionRecord>>;
|
|
175
|
-
abstract findVersionByID(args: {
|
|
176
|
-
collection: string;
|
|
177
|
-
versionId: string;
|
|
178
|
-
tenantId?: string;
|
|
179
|
-
}): Promise<VersionRecord | null>;
|
|
180
|
-
abstract createVersion<T = Record<string, any>>(args: CreateVersionArgs<T>): Promise<VersionRecord<T>>;
|
|
181
|
-
abstract updateLatestVersion<T = Record<string, any>>(args: CreateVersionArgs<T>): Promise<VersionRecord<T>>;
|
|
182
|
-
abstract deleteVersions(args: {
|
|
183
|
-
collection: string;
|
|
184
|
-
documentId: string;
|
|
185
|
-
keepLatest?: number;
|
|
186
|
-
tenantId?: string;
|
|
187
|
-
}): Promise<void>;
|
|
188
|
-
migrate?(): Promise<void>;
|
|
189
|
-
rollback?(): Promise<void>;
|
|
190
|
-
transaction?<T>(fn: (tx: any) => Promise<T>): Promise<T>;
|
|
191
|
-
protected getCollection(slug: string): CollectionConfig;
|
|
192
|
-
protected applyTenantFilter(where?: Record<string, any>, tenantId?: string): Record<string, any>;
|
|
193
|
-
protected getTableName(slug: string): string;
|
|
194
|
-
protected prepareData(data: Record<string, any>, collection: CollectionConfig): Record<string, any>;
|
|
195
|
-
protected processRelationships(data: Record<string, any>, fields: Field[], depth: number): Record<string, any>;
|
|
196
|
-
protected parseSort(sort?: string): {
|
|
197
|
-
field: string;
|
|
198
|
-
direction: 'asc' | 'desc';
|
|
199
|
-
};
|
|
200
|
-
protected calculatePagination(page: number, limit: number, totalDocs: number): {
|
|
201
|
-
totalDocs: number;
|
|
202
|
-
limit: number;
|
|
203
|
-
totalPages: number;
|
|
204
|
-
page: number;
|
|
205
|
-
pagingCounter: number;
|
|
206
|
-
hasPrevPage: boolean;
|
|
207
|
-
hasNextPage: boolean;
|
|
208
|
-
prevPage: number | null;
|
|
209
|
-
nextPage: number | null;
|
|
210
|
-
};
|
|
211
|
-
protected selectFields(data: Record<string, any>, select?: string[]): Record<string, any>;
|
|
212
|
-
protected isRelationshipField(field: Field): field is RelationshipField;
|
|
213
|
-
protected isUploadField(field: Field): field is UploadField;
|
|
214
|
-
protected getRelationshipFields(fields: Field[]): RelationshipField[];
|
|
215
|
-
protected getUploadFields(fields: Field[]): UploadField[];
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
export { type AuditLog as A, type JWTPayload as J, type LoginCredentials as L, type RegisterData as R, type Session as S, type UserRole as U, type AuditLogFilter as a, AbstractBaseAdapter as b, type AuthAdapter as c, type AuthUser as d, type AuthTokenConfig as e, type AuthResult as f, type AuditAction as g };
|
package/dist/base-xflndGDO.d.ts
DELETED
|
@@ -1,218 +0,0 @@
|
|
|
1
|
-
import { B as BaseAdapter, C as CollectionConfig, G as GlobalConfig, T as TenantContext, F as FindArgs, b as FindResult, c as FindByIDArgs, d as CreateArgs, U as UpdateArgs, D as DeleteArgs, e as FindOneArgs, f as FindVersionsArgs, V as VersionRecord, g as CreateVersionArgs } from './types-dEy5JxvN.js';
|
|
2
|
-
import { F as Field, u as RelationshipField, U as UploadField } from './types-Bii0bhUV.js';
|
|
3
|
-
|
|
4
|
-
type AuditAction = "login" | "logout" | "login_failed" | "register" | "verify_email" | "password_change" | "password_reset" | "password_reset_request" | "role_change" | "permission_change" | "document_create" | "document_update" | "document_delete" | "settings_change" | "user_lockout" | "user_unlock" | "user_create" | "user_update" | "user_delete" | "api_request" | "api_key_create" | "api_key_update" | "api_key_rotate" | "api_key_delete" | "tenant_create" | "tenant_delete";
|
|
5
|
-
interface AuditLog {
|
|
6
|
-
id: string;
|
|
7
|
-
timestamp: Date;
|
|
8
|
-
action: AuditAction;
|
|
9
|
-
userId?: string;
|
|
10
|
-
userEmail?: string;
|
|
11
|
-
role?: string;
|
|
12
|
-
resource: string;
|
|
13
|
-
resourceId?: string;
|
|
14
|
-
changes?: {
|
|
15
|
-
field: string;
|
|
16
|
-
old: any;
|
|
17
|
-
new: any;
|
|
18
|
-
}[];
|
|
19
|
-
ipAddress?: string;
|
|
20
|
-
userAgent?: string;
|
|
21
|
-
success: boolean;
|
|
22
|
-
error?: string;
|
|
23
|
-
metadata?: Record<string, any>;
|
|
24
|
-
}
|
|
25
|
-
interface AuditLogFilter {
|
|
26
|
-
userId?: string;
|
|
27
|
-
action?: AuditAction | AuditAction[];
|
|
28
|
-
resource?: string;
|
|
29
|
-
resourceId?: string;
|
|
30
|
-
success?: boolean;
|
|
31
|
-
startDate?: Date;
|
|
32
|
-
endDate?: Date;
|
|
33
|
-
limit?: number;
|
|
34
|
-
offset?: number;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
interface AuthUser {
|
|
38
|
-
id: string;
|
|
39
|
-
name?: string;
|
|
40
|
-
email: string;
|
|
41
|
-
passwordHash?: string;
|
|
42
|
-
role: UserRole;
|
|
43
|
-
avatar?: string;
|
|
44
|
-
tenantId?: string;
|
|
45
|
-
emailVerified?: boolean;
|
|
46
|
-
locked?: boolean;
|
|
47
|
-
lastLogin?: string;
|
|
48
|
-
failedLoginAttempts?: number;
|
|
49
|
-
createdAt: string;
|
|
50
|
-
updatedAt: string;
|
|
51
|
-
}
|
|
52
|
-
type UserRole = "super_admin" | "admin" | "editor" | "author" | "customer" | "guest";
|
|
53
|
-
interface Session {
|
|
54
|
-
id: string;
|
|
55
|
-
userId: string;
|
|
56
|
-
token: string;
|
|
57
|
-
refreshToken?: string;
|
|
58
|
-
expiresAt: string;
|
|
59
|
-
createdAt: string;
|
|
60
|
-
ipAddress?: string;
|
|
61
|
-
userAgent?: string;
|
|
62
|
-
}
|
|
63
|
-
interface JWTPayload {
|
|
64
|
-
sub: string;
|
|
65
|
-
email: string;
|
|
66
|
-
role: UserRole;
|
|
67
|
-
tenantId?: string;
|
|
68
|
-
iat?: number;
|
|
69
|
-
exp?: number;
|
|
70
|
-
sid?: string;
|
|
71
|
-
}
|
|
72
|
-
interface AuthTokenConfig {
|
|
73
|
-
secret: string;
|
|
74
|
-
expiresIn?: string | number;
|
|
75
|
-
refreshExpiresIn?: string | number;
|
|
76
|
-
issuer?: string;
|
|
77
|
-
audience?: string[];
|
|
78
|
-
saltRounds?: number;
|
|
79
|
-
}
|
|
80
|
-
interface LoginCredentials {
|
|
81
|
-
email: string;
|
|
82
|
-
password: string;
|
|
83
|
-
}
|
|
84
|
-
interface RegisterData {
|
|
85
|
-
email: string;
|
|
86
|
-
password: string;
|
|
87
|
-
role?: UserRole;
|
|
88
|
-
tenantId?: string;
|
|
89
|
-
}
|
|
90
|
-
interface AuthResult {
|
|
91
|
-
success: boolean;
|
|
92
|
-
user?: AuthUser;
|
|
93
|
-
session?: Session;
|
|
94
|
-
token?: string;
|
|
95
|
-
error?: string;
|
|
96
|
-
}
|
|
97
|
-
interface AuthAdapter {
|
|
98
|
-
createUser(data: {
|
|
99
|
-
email: string;
|
|
100
|
-
password: string;
|
|
101
|
-
name?: string;
|
|
102
|
-
role?: UserRole;
|
|
103
|
-
avatar?: string;
|
|
104
|
-
tenantId?: string;
|
|
105
|
-
}): Promise<AuthUser>;
|
|
106
|
-
findUserByEmail(email: string): Promise<AuthUser | null>;
|
|
107
|
-
findUserById(id: string): Promise<AuthUser | null>;
|
|
108
|
-
updateUser(id: string, data: Partial<AuthUser> & {
|
|
109
|
-
password?: string;
|
|
110
|
-
}): Promise<AuthUser | null>;
|
|
111
|
-
deleteUser(id: string): Promise<boolean>;
|
|
112
|
-
verifyPassword(email: string, password: string): Promise<AuthUser | null>;
|
|
113
|
-
hashPassword(password: string): Promise<string>;
|
|
114
|
-
createSession(userId: string, data?: {
|
|
115
|
-
ipAddress?: string;
|
|
116
|
-
userAgent?: string;
|
|
117
|
-
}): Promise<Session>;
|
|
118
|
-
findSessionByToken(token: string): Promise<Session | null>;
|
|
119
|
-
findSessionByRefreshToken(refreshToken: string): Promise<Session | null>;
|
|
120
|
-
deleteSession(sessionId: string): Promise<boolean>;
|
|
121
|
-
deleteUserSessions(userId: string): Promise<number>;
|
|
122
|
-
createEmailVerificationToken(userId: string): Promise<{
|
|
123
|
-
token: string;
|
|
124
|
-
expiresAt: Date;
|
|
125
|
-
}>;
|
|
126
|
-
verifyEmailToken(token: string): Promise<{
|
|
127
|
-
success: boolean;
|
|
128
|
-
userId?: string;
|
|
129
|
-
error?: string;
|
|
130
|
-
}>;
|
|
131
|
-
createPasswordResetToken(email: string): Promise<{
|
|
132
|
-
token: string;
|
|
133
|
-
expiresAt: Date;
|
|
134
|
-
error?: string;
|
|
135
|
-
}>;
|
|
136
|
-
resetPasswordWithToken(token: string, newPassword: string): Promise<{
|
|
137
|
-
success: boolean;
|
|
138
|
-
error?: string;
|
|
139
|
-
}>;
|
|
140
|
-
hasAnyUsers?(): Promise<boolean>;
|
|
141
|
-
connect?(): Promise<void>;
|
|
142
|
-
disconnect?(): Promise<void>;
|
|
143
|
-
addPasswordToHistory?(userId: string, passwordHash: string): Promise<void>;
|
|
144
|
-
getPasswordHistory?(userId: string, count?: number): Promise<string[]>;
|
|
145
|
-
isPasswordInHistory?(password: string, userId: string, historyCount?: number): Promise<boolean>;
|
|
146
|
-
findAuditLogs(filter: AuditLogFilter): Promise<{
|
|
147
|
-
logs: AuditLog[];
|
|
148
|
-
total: number;
|
|
149
|
-
}>;
|
|
150
|
-
createAuditLog(data: Omit<AuditLog, "id" | "timestamp">): Promise<AuditLog>;
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
declare abstract class AbstractBaseAdapter implements BaseAdapter {
|
|
154
|
-
protected collections: Map<string, CollectionConfig>;
|
|
155
|
-
protected globals: Map<string, GlobalConfig>;
|
|
156
|
-
protected connected: boolean;
|
|
157
|
-
protected tenantContext?: TenantContext;
|
|
158
|
-
abstract connect(): Promise<void>;
|
|
159
|
-
abstract disconnect(): Promise<void>;
|
|
160
|
-
setTenantContext(context: TenantContext | undefined): void;
|
|
161
|
-
getTenantContext(): TenantContext | undefined;
|
|
162
|
-
init(collections: CollectionConfig[], globals?: GlobalConfig[]): Promise<void>;
|
|
163
|
-
abstract find<T>(args: FindArgs): Promise<FindResult<T>>;
|
|
164
|
-
abstract findByID<T>(args: FindByIDArgs): Promise<T | null>;
|
|
165
|
-
abstract create<T>(args: CreateArgs): Promise<T>;
|
|
166
|
-
abstract update<T>(args: UpdateArgs): Promise<T>;
|
|
167
|
-
abstract delete<T>(args: DeleteArgs): Promise<T>;
|
|
168
|
-
abstract count(args: {
|
|
169
|
-
collection: string;
|
|
170
|
-
where?: Record<string, any>;
|
|
171
|
-
tenantId?: string;
|
|
172
|
-
}): Promise<number>;
|
|
173
|
-
abstract findOne(args: FindOneArgs): Promise<any>;
|
|
174
|
-
abstract findVersions(args: FindVersionsArgs): Promise<FindResult<VersionRecord>>;
|
|
175
|
-
abstract findVersionByID(args: {
|
|
176
|
-
collection: string;
|
|
177
|
-
versionId: string;
|
|
178
|
-
tenantId?: string;
|
|
179
|
-
}): Promise<VersionRecord | null>;
|
|
180
|
-
abstract createVersion<T = Record<string, any>>(args: CreateVersionArgs<T>): Promise<VersionRecord<T>>;
|
|
181
|
-
abstract updateLatestVersion<T = Record<string, any>>(args: CreateVersionArgs<T>): Promise<VersionRecord<T>>;
|
|
182
|
-
abstract deleteVersions(args: {
|
|
183
|
-
collection: string;
|
|
184
|
-
documentId: string;
|
|
185
|
-
keepLatest?: number;
|
|
186
|
-
tenantId?: string;
|
|
187
|
-
}): Promise<void>;
|
|
188
|
-
migrate?(): Promise<void>;
|
|
189
|
-
rollback?(): Promise<void>;
|
|
190
|
-
transaction?<T>(fn: (tx: any) => Promise<T>): Promise<T>;
|
|
191
|
-
protected getCollection(slug: string): CollectionConfig;
|
|
192
|
-
protected applyTenantFilter(where?: Record<string, any>, tenantId?: string): Record<string, any>;
|
|
193
|
-
protected getTableName(slug: string): string;
|
|
194
|
-
protected prepareData(data: Record<string, any>, collection: CollectionConfig): Record<string, any>;
|
|
195
|
-
protected processRelationships(data: Record<string, any>, fields: Field[], depth: number): Record<string, any>;
|
|
196
|
-
protected parseSort(sort?: string): {
|
|
197
|
-
field: string;
|
|
198
|
-
direction: 'asc' | 'desc';
|
|
199
|
-
};
|
|
200
|
-
protected calculatePagination(page: number, limit: number, totalDocs: number): {
|
|
201
|
-
totalDocs: number;
|
|
202
|
-
limit: number;
|
|
203
|
-
totalPages: number;
|
|
204
|
-
page: number;
|
|
205
|
-
pagingCounter: number;
|
|
206
|
-
hasPrevPage: boolean;
|
|
207
|
-
hasNextPage: boolean;
|
|
208
|
-
prevPage: number | null;
|
|
209
|
-
nextPage: number | null;
|
|
210
|
-
};
|
|
211
|
-
protected selectFields(data: Record<string, any>, select?: string[]): Record<string, any>;
|
|
212
|
-
protected isRelationshipField(field: Field): field is RelationshipField;
|
|
213
|
-
protected isUploadField(field: Field): field is UploadField;
|
|
214
|
-
protected getRelationshipFields(fields: Field[]): RelationshipField[];
|
|
215
|
-
protected getUploadFields(fields: Field[]): UploadField[];
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
export { type AuditLog as A, type JWTPayload as J, type LoginCredentials as L, type RegisterData as R, type Session as S, type UserRole as U, type AuditLogFilter as a, AbstractBaseAdapter as b, type AuthAdapter as c, type AuthUser as d, type AuthTokenConfig as e, type AuthResult as f, type AuditAction as g };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
'use strict';var chunkHTYVI2HK_cjs=require('./chunk-HTYVI2HK.cjs');require('./chunk-BUNLC3II.cjs');var bcryptjsWIQSWJGK = chunkHTYVI2HK_cjs.a();module.exports=bcryptjsWIQSWJGK;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
'use strict';var chunkDVWYO3KK_cjs=require('./chunk-DVWYO3KK.cjs'),chunk7ACHOBWY_cjs=require('./chunk-7ACHOBWY.cjs'),chunkGNOSG3PK_cjs=require('./chunk-GNOSG3PK.cjs'),chunkBCEE4NBZ_cjs=require('./chunk-BCEE4NBZ.cjs'),chunkVRZC4TTF_cjs=require('./chunk-VRZC4TTF.cjs'),chunkBUNLC3II_cjs=require('./chunk-BUNLC3II.cjs'),d=require('better-sqlite3');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var d__default=/*#__PURE__*/_interopDefault(d);chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();chunkBUNLC3II_cjs.h();var g=class extends chunkDVWYO3KK_cjs.c{constructor(t,e,r,s={}){super(e),this.client=t,this.schema=r,this.logger=s.logger??new chunkBCEE4NBZ_cjs.aa,this.cache=s.cache??new chunkGNOSG3PK_cjs.d;}static[chunkVRZC4TTF_cjs.a]="BetterSQLiteSession";logger;cache;prepareQuery(t,e,r,s,a,n,i){let c=this.client.prepare(t.sql);return new x(c,t,this.logger,this.cache,n,i,e,r,s,a)}transaction(t,e={}){let r=new w("sync",this.dialect,this,this.schema);return this.client.transaction(t)[e.behavior??"deferred"](r)}},w=class o extends chunkDVWYO3KK_cjs.d{static[chunkVRZC4TTF_cjs.a]="BetterSQLiteTransaction";transaction(t){let e=`sp${this.nestedIndex}`,r=new o("sync",this.dialect,this.session,this.schema,this.nestedIndex+1);this.session.run(chunkVRZC4TTF_cjs.J.raw(`savepoint ${e}`));try{let s=t(r);return this.session.run(chunkVRZC4TTF_cjs.J.raw(`release savepoint ${e}`)),s}catch(s){throw this.session.run(chunkVRZC4TTF_cjs.J.raw(`rollback to savepoint ${e}`)),s}}},x=class extends chunkDVWYO3KK_cjs.b{constructor(t,e,r,s,a,n,i,c,l,B){super("sync",c,e,s,a,n),this.stmt=t,this.logger=r,this.fields=i,this._isResponseInArrayMode=l,this.customResultMapper=B;}static[chunkVRZC4TTF_cjs.a]="BetterSQLitePreparedQuery";run(t){let e=chunkVRZC4TTF_cjs.M(this.query.params,t??{});return this.logger.logQuery(this.query.sql,e),this.stmt.run(...e)}all(t){let{fields:e,joinsNotNullableMap:r,query:s,logger:a,stmt:n,customResultMapper:i}=this;if(!e&&!i){let l=chunkVRZC4TTF_cjs.M(s.params,t??{});return a.logQuery(s.sql,l),n.all(...l)}let c=this.values(t);return i?i(c):c.map(l=>chunkVRZC4TTF_cjs.Q(e,l,r))}get(t){let e=chunkVRZC4TTF_cjs.M(this.query.params,t??{});this.logger.logQuery(this.query.sql,e);let{fields:r,stmt:s,joinsNotNullableMap:a,customResultMapper:n}=this;if(!r&&!n)return s.get(...e);let i=s.raw().get(...e);if(i)return n?n([i]):chunkVRZC4TTF_cjs.Q(r,i,a)}values(t){let e=chunkVRZC4TTF_cjs.M(this.query.params,t??{});return this.logger.logQuery(this.query.sql,e),this.stmt.raw().all(...e)}isResponseInArrayMode(){return this._isResponseInArrayMode}};var Q=class extends chunkDVWYO3KK_cjs.a{static[chunkVRZC4TTF_cjs.a]="BetterSQLite3Database"};function h(o,t={}){let e=new chunk7ACHOBWY_cjs.h({casing:t.casing}),r;t.logger===true?r=new chunkBCEE4NBZ_cjs.$:t.logger!==false&&(r=t.logger);let s;if(t.schema){let i=chunkBCEE4NBZ_cjs.T(t.schema,chunkBCEE4NBZ_cjs.Y);s={fullSchema:t.schema,schema:i.tables,tableNamesMap:i.tableNamesMap};}let a=new g(o,e,s,{logger:r}),n=new Q("sync",e,a,s);return n.$client=o,n}function z(...o){if(o[0]===void 0||typeof o[0]=="string"){let t=o[0]===void 0?new d__default.default:new d__default.default(o[0]);return h(t,o[1])}if(chunkVRZC4TTF_cjs.Z(o[0])){let{connection:t,client:e,...r}=o[0];if(e)return h(e,r);if(typeof t=="object"){let{source:a,...n}=t,i=new d__default.default(a,n);return h(i,r)}let s=new d__default.default(t);return h(s,r)}return h(o[0],o[1])}(o=>{function t(e){return h({},e)}o.mock=t;})(z||(z={}));exports.BetterSQLite3Database=Q;exports.BetterSQLiteSession=g;exports.BetterSQLiteTransaction=w;exports.PreparedQuery=x;exports.drizzle=z;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import {c,a as a$1,b,d as d$2}from'./chunk-UWHWSWDE.js';import {h as h$1}from'./chunk-JV4HJBXW.js';import {d as d$1}from'./chunk-N5POANYV.js';import {$,T,Y,aa}from'./chunk-HRAY65XH.js';import {Z,a,M,Q as Q$1,J}from'./chunk-3NSZZCOJ.js';import {g as g$1}from'./chunk-Y2YAKDEQ.js';import d from'better-sqlite3';if (typeof window === "undefined") { const { createRequire } = await import(/* @vite-ignore */ 'module'); createRequire(import.meta.url); }
|
|
2
|
-
g$1();g$1();g$1();var g=class extends c{constructor(t,e,r,s={}){super(e),this.client=t,this.schema=r,this.logger=s.logger??new aa,this.cache=s.cache??new d$1;}static[a]="BetterSQLiteSession";logger;cache;prepareQuery(t,e,r,s,a,n,i){let c=this.client.prepare(t.sql);return new x(c,t,this.logger,this.cache,n,i,e,r,s,a)}transaction(t,e={}){let r=new w("sync",this.dialect,this,this.schema);return this.client.transaction(t)[e.behavior??"deferred"](r)}},w=class o extends d$2{static[a]="BetterSQLiteTransaction";transaction(t){let e=`sp${this.nestedIndex}`,r=new o("sync",this.dialect,this.session,this.schema,this.nestedIndex+1);this.session.run(J.raw(`savepoint ${e}`));try{let s=t(r);return this.session.run(J.raw(`release savepoint ${e}`)),s}catch(s){throw this.session.run(J.raw(`rollback to savepoint ${e}`)),s}}},x=class extends b{constructor(t,e,r,s,a,n,i,c,l,j){super("sync",c,e,s,a,n),this.stmt=t,this.logger=r,this.fields=i,this._isResponseInArrayMode=l,this.customResultMapper=j;}static[a]="BetterSQLitePreparedQuery";run(t){let e=M(this.query.params,t??{});return this.logger.logQuery(this.query.sql,e),this.stmt.run(...e)}all(t){let{fields:e,joinsNotNullableMap:r,query:s,logger:a,stmt:n,customResultMapper:i}=this;if(!e&&!i){let l=M(s.params,t??{});return a.logQuery(s.sql,l),n.all(...l)}let c=this.values(t);return i?i(c):c.map(l=>Q$1(e,l,r))}get(t){let e=M(this.query.params,t??{});this.logger.logQuery(this.query.sql,e);let{fields:r,stmt:s,joinsNotNullableMap:a,customResultMapper:n}=this;if(!r&&!n)return s.get(...e);let i=s.raw().get(...e);if(i)return n?n([i]):Q$1(r,i,a)}values(t){let e=M(this.query.params,t??{});return this.logger.logQuery(this.query.sql,e),this.stmt.raw().all(...e)}isResponseInArrayMode(){return this._isResponseInArrayMode}};var Q=class extends a$1{static[a]="BetterSQLite3Database"};function h(o,t={}){let e=new h$1({casing:t.casing}),r;t.logger===true?r=new $:t.logger!==false&&(r=t.logger);let s;if(t.schema){let i=T(t.schema,Y);s={fullSchema:t.schema,schema:i.tables,tableNamesMap:i.tableNamesMap};}let a=new g(o,e,s,{logger:r}),n=new Q("sync",e,a,s);return n.$client=o,n}function B(...o){if(o[0]===void 0||typeof o[0]=="string"){let t=o[0]===void 0?new d:new d(o[0]);return h(t,o[1])}if(Z(o[0])){let{connection:t,client:e,...r}=o[0];if(e)return h(e,r);if(typeof t=="object"){let{source:a,...n}=t,i=new d(a,n);return h(i,r)}let s=new d(t);return h(s,r)}return h(o[0],o[1])}(o=>{function t(e){return h({},e)}o.mock=t;})(B||(B={}));export{Q as BetterSQLite3Database,g as BetterSQLiteSession,w as BetterSQLiteTransaction,x as PreparedQuery,B as drizzle};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
'use strict';var chunkFG3IFGJP_cjs=require('./chunk-FG3IFGJP.cjs');require('./chunk-FLS2FJM6.cjs'),require('./chunk-OPTVCCQQ.cjs'),require('./chunk-HPYH7GTS.cjs'),require('./chunk-VRZC4TTF.cjs'),require('./chunk-HTYVI2HK.cjs'),require('./chunk-BUNLC3II.cjs');Object.defineProperty(exports,"autoBootstrap",{enumerable:true,get:function(){return chunkFG3IFGJP_cjs.e}});Object.defineProperty(exports,"bootstrapAdmin",{enumerable:true,get:function(){return chunkFG3IFGJP_cjs.a}});Object.defineProperty(exports,"bootstrapWithRetry",{enumerable:true,get:function(){return chunkFG3IFGJP_cjs.f}});Object.defineProperty(exports,"buildBootstrapConfig",{enumerable:true,get:function(){return chunkFG3IFGJP_cjs.c}});Object.defineProperty(exports,"checkBootstrapRequired",{enumerable:true,get:function(){return chunkFG3IFGJP_cjs.b}});Object.defineProperty(exports,"getBootstrapFromEnv",{enumerable:true,get:function(){return chunkFG3IFGJP_cjs.d}});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{e as autoBootstrap,a as bootstrapAdmin,f as bootstrapWithRetry,c as buildBootstrapConfig,b as checkBootstrapRequired,d as getBootstrapFromEnv}from'./chunk-RYXLEFS5.js';import'./chunk-3KZXF4US.js';import'./chunk-CH4TZZI5.js';import'./chunk-OLRCZ6E3.js';import'./chunk-WNU76M2C.js';import'./chunk-3NSZZCOJ.js';import'./chunk-7NH7H3WA.js';import'./chunk-Y2YAKDEQ.js';if (typeof window === "undefined") { const { createRequire } = await import(/* @vite-ignore */ 'module'); createRequire(import.meta.url); }
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{e as autoBootstrap,a as bootstrapAdmin,f as bootstrapWithRetry,c as buildBootstrapConfig,b as checkBootstrapRequired,d as getBootstrapFromEnv}from'./chunk-ATI2UZ7U.js';import'./chunk-3KZXF4US.js';import'./chunk-CH4TZZI5.js';import'./chunk-OLRCZ6E3.js';import'./chunk-N6MNQIQU.js';import'./chunk-3NSZZCOJ.js';import'./chunk-7NH7H3WA.js';import'./chunk-Y2YAKDEQ.js';if (typeof window === "undefined") { const { createRequire } = await import(/* @vite-ignore */ 'module'); createRequire(import.meta.url); }
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
'use strict';var chunkWHOA7YJU_cjs=require('./chunk-WHOA7YJU.cjs');require('./chunk-Q5TFO66G.cjs'),require('./chunk-5A7E7N4B.cjs'),require('./chunk-HPYH7GTS.cjs'),require('./chunk-OPTVCCQQ.cjs'),require('./chunk-VRZC4TTF.cjs'),require('./chunk-HTYVI2HK.cjs'),require('./chunk-BUNLC3II.cjs');Object.defineProperty(exports,"autoBootstrap",{enumerable:true,get:function(){return chunkWHOA7YJU_cjs.e}});Object.defineProperty(exports,"bootstrapAdmin",{enumerable:true,get:function(){return chunkWHOA7YJU_cjs.a}});Object.defineProperty(exports,"bootstrapWithRetry",{enumerable:true,get:function(){return chunkWHOA7YJU_cjs.f}});Object.defineProperty(exports,"buildBootstrapConfig",{enumerable:true,get:function(){return chunkWHOA7YJU_cjs.c}});Object.defineProperty(exports,"checkBootstrapRequired",{enumerable:true,get:function(){return chunkWHOA7YJU_cjs.b}});Object.defineProperty(exports,"getBootstrapFromEnv",{enumerable:true,get:function(){return chunkWHOA7YJU_cjs.d}});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
'use strict';var chunk3O3AVMWM_cjs=require('./chunk-3O3AVMWM.cjs');require('./chunk-Q5TFO66G.cjs'),require('./chunk-7NKNSRCB.cjs'),require('./chunk-HPYH7GTS.cjs'),require('./chunk-OPTVCCQQ.cjs'),require('./chunk-VRZC4TTF.cjs'),require('./chunk-HTYVI2HK.cjs'),require('./chunk-BUNLC3II.cjs');Object.defineProperty(exports,"autoBootstrap",{enumerable:true,get:function(){return chunk3O3AVMWM_cjs.e}});Object.defineProperty(exports,"bootstrapAdmin",{enumerable:true,get:function(){return chunk3O3AVMWM_cjs.a}});Object.defineProperty(exports,"bootstrapWithRetry",{enumerable:true,get:function(){return chunk3O3AVMWM_cjs.f}});Object.defineProperty(exports,"buildBootstrapConfig",{enumerable:true,get:function(){return chunk3O3AVMWM_cjs.c}});Object.defineProperty(exports,"checkBootstrapRequired",{enumerable:true,get:function(){return chunk3O3AVMWM_cjs.b}});Object.defineProperty(exports,"getBootstrapFromEnv",{enumerable:true,get:function(){return chunk3O3AVMWM_cjs.d}});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
'use strict';var chunkEW424IBO_cjs=require('./chunk-EW424IBO.cjs');require('./chunk-Q5TFO66G.cjs'),require('./chunk-7NKNSRCB.cjs'),require('./chunk-HPYH7GTS.cjs'),require('./chunk-EQN3HDES.cjs'),require('./chunk-VRZC4TTF.cjs'),require('./chunk-HTYVI2HK.cjs'),require('./chunk-BUNLC3II.cjs');Object.defineProperty(exports,"autoBootstrap",{enumerable:true,get:function(){return chunkEW424IBO_cjs.e}});Object.defineProperty(exports,"bootstrapAdmin",{enumerable:true,get:function(){return chunkEW424IBO_cjs.a}});Object.defineProperty(exports,"bootstrapWithRetry",{enumerable:true,get:function(){return chunkEW424IBO_cjs.f}});Object.defineProperty(exports,"buildBootstrapConfig",{enumerable:true,get:function(){return chunkEW424IBO_cjs.c}});Object.defineProperty(exports,"checkBootstrapRequired",{enumerable:true,get:function(){return chunkEW424IBO_cjs.b}});Object.defineProperty(exports,"getBootstrapFromEnv",{enumerable:true,get:function(){return chunkEW424IBO_cjs.d}});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{e as autoBootstrap,a as bootstrapAdmin,f as bootstrapWithRetry,c as buildBootstrapConfig,b as checkBootstrapRequired,d as getBootstrapFromEnv}from'./chunk-CHYVUWZ3.js';import'./chunk-PFKVHUOT.js';import'./chunk-N6MNQIQU.js';import'./chunk-OLRCZ6E3.js';import'./chunk-3NSZZCOJ.js';import'./chunk-7NH7H3WA.js';import'./chunk-Y2YAKDEQ.js';if (typeof window === "undefined") { const { createRequire } = await import(/* @vite-ignore */ 'module'); createRequire(import.meta.url); }
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{e as autoBootstrap,a as bootstrapAdmin,f as bootstrapWithRetry,c as buildBootstrapConfig,b as checkBootstrapRequired,d as getBootstrapFromEnv}from'./chunk-UFBJ3WOZ.js';import'./chunk-3KZXF4US.js';import'./chunk-EYYIPA5N.js';import'./chunk-OLRCZ6E3.js';import'./chunk-N6MNQIQU.js';import'./chunk-3NSZZCOJ.js';import'./chunk-7NH7H3WA.js';import'./chunk-Y2YAKDEQ.js';if (typeof window === "undefined") { const { createRequire } = await import(/* @vite-ignore */ 'module'); createRequire(import.meta.url); }
|
package/dist/bowser-SB3ZUPO4.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import {g as g$1}from'./chunk-Y2YAKDEQ.js';if (typeof window === "undefined") { const { createRequire } = await import(/* @vite-ignore */ 'module'); createRequire(import.meta.url); }
|
|
2
|
-
g$1();g$1();g$1();g$1();g$1();var B={AmazonBot:"amazonbot","Amazon Silk":"amazon_silk","Android Browser":"android",BaiduSpider:"baiduspider",Bada:"bada",BingCrawler:"bingcrawler",Brave:"brave",BlackBerry:"blackberry","ChatGPT-User":"chatgpt_user",Chrome:"chrome",ClaudeBot:"claudebot",Chromium:"chromium",Diffbot:"diffbot",DuckDuckBot:"duckduckbot",DuckDuckGo:"duckduckgo",Electron:"electron",Epiphany:"epiphany",FacebookExternalHit:"facebookexternalhit",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot",GPTBot:"gptbot","Internet Explorer":"ie",InternetArchiveCrawler:"internetarchivecrawler","K-Meleon":"k_meleon",LibreWolf:"librewolf",Linespider:"linespider",Maxthon:"maxthon","Meta-ExternalAds":"meta_externalads","Meta-ExternalAgent":"meta_externalagent","Meta-ExternalFetcher":"meta_externalfetcher","Meta-WebIndexer":"meta_webindexer","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver","OAI-SearchBot":"oai_searchbot",Omgilibot:"omgilibot",Opera:"opera","Opera Coast":"opera_coast","Pale Moon":"pale_moon",PerplexityBot:"perplexitybot","Perplexity-User":"perplexity_user",PhantomJS:"phantomjs",PingdomBot:"pingdombot",Puffin:"puffin",QQ:"qq",QQLite:"qqlite",QupZilla:"qupzilla",Roku:"roku",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SlackBot:"slackbot",SeaMonkey:"seamonkey",Sleipnir:"sleipnir","Sogou Browser":"sogou",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat",YahooSlurp:"yahooslurp","Yandex Browser":"yandex",YandexBot:"yandexbot",YouBot:"youbot"},v={amazonbot:"AmazonBot",amazon_silk:"Amazon Silk",android:"Android Browser",baiduspider:"BaiduSpider",bada:"Bada",bingcrawler:"BingCrawler",blackberry:"BlackBerry",brave:"Brave",chatgpt_user:"ChatGPT-User",chrome:"Chrome",claudebot:"ClaudeBot",chromium:"Chromium",diffbot:"Diffbot",duckduckbot:"DuckDuckBot",duckduckgo:"DuckDuckGo",edge:"Microsoft Edge",electron:"Electron",epiphany:"Epiphany",facebookexternalhit:"FacebookExternalHit",firefox:"Firefox",focus:"Focus",generic:"Generic",google_search:"Google Search",googlebot:"Googlebot",gptbot:"GPTBot",ie:"Internet Explorer",internetarchivecrawler:"InternetArchiveCrawler",k_meleon:"K-Meleon",librewolf:"LibreWolf",linespider:"Linespider",maxthon:"Maxthon",meta_externalads:"Meta-ExternalAds",meta_externalagent:"Meta-ExternalAgent",meta_externalfetcher:"Meta-ExternalFetcher",meta_webindexer:"Meta-WebIndexer",mz:"MZ Browser",naver:"NAVER Whale Browser",oai_searchbot:"OAI-SearchBot",omgilibot:"Omgilibot",opera:"Opera",opera_coast:"Opera Coast",pale_moon:"Pale Moon",perplexitybot:"PerplexityBot",perplexity_user:"Perplexity-User",phantomjs:"PhantomJS",pingdombot:"PingdomBot",puffin:"Puffin",qq:"QQ Browser",qqlite:"QQ Browser Lite",qupzilla:"QupZilla",roku:"Roku",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",slackbot:"SlackBot",sleipnir:"Sleipnir",sogou:"Sogou Browser",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yahooslurp:"YahooSlurp",yandex:"Yandex Browser",yandexbot:"YandexBot",youbot:"YouBot"},o={bot:"bot",desktop:"desktop",mobile:"mobile",tablet:"tablet",tv:"tv"},b={Android:"Android",Bada:"Bada",BlackBerry:"BlackBerry",ChromeOS:"Chrome OS",HarmonyOS:"HarmonyOS",iOS:"iOS",Linux:"Linux",MacOS:"macOS",PlayStation4:"PlayStation 4",Roku:"Roku",Tizen:"Tizen",WebOS:"WebOS",Windows:"Windows",WindowsPhone:"Windows Phone"},g={Blink:"Blink",EdgeHTML:"EdgeHTML",Gecko:"Gecko",Presto:"Presto",Trident:"Trident",WebKit:"WebKit"};var s=class r{static getFirstMatch(e,t){let i=t.match(e);return i&&i.length>0&&i[1]||""}static getSecondMatch(e,t){let i=t.match(e);return i&&i.length>1&&i[2]||""}static matchAndReturnConst(e,t,i){if(e.test(t))return i}static getWindowsVersionName(e){switch(e){case "NT":return "NT";case "XP":return "XP";case "NT 5.0":return "2000";case "NT 5.1":return "XP";case "NT 5.2":return "2003";case "NT 6.0":return "Vista";case "NT 6.1":return "7";case "NT 6.2":return "8";case "NT 6.3":return "8.1";case "NT 10.0":return "10";default:return}}static getMacOSVersionName(e){let t=e.split(".").splice(0,2).map(c=>parseInt(c,10)||0);t.push(0);let i=t[0],a=t[1];if(i===10)switch(a){case 5:return "Leopard";case 6:return "Snow Leopard";case 7:return "Lion";case 8:return "Mountain Lion";case 9:return "Mavericks";case 10:return "Yosemite";case 11:return "El Capitan";case 12:return "Sierra";case 13:return "High Sierra";case 14:return "Mojave";case 15:return "Catalina";default:return}switch(i){case 11:return "Big Sur";case 12:return "Monterey";case 13:return "Ventura";case 14:return "Sonoma";case 15:return "Sequoia";default:return}}static getAndroidVersionName(e){let t=e.split(".").splice(0,2).map(i=>parseInt(i,10)||0);if(t.push(0),!(t[0]===1&&t[1]<5)){if(t[0]===1&&t[1]<6)return "Cupcake";if(t[0]===1&&t[1]>=6)return "Donut";if(t[0]===2&&t[1]<2)return "Eclair";if(t[0]===2&&t[1]===2)return "Froyo";if(t[0]===2&&t[1]>2)return "Gingerbread";if(t[0]===3)return "Honeycomb";if(t[0]===4&&t[1]<1)return "Ice Cream Sandwich";if(t[0]===4&&t[1]<4)return "Jelly Bean";if(t[0]===4&&t[1]>=4)return "KitKat";if(t[0]===5)return "Lollipop";if(t[0]===6)return "Marshmallow";if(t[0]===7)return "Nougat";if(t[0]===8)return "Oreo";if(t[0]===9)return "Pie"}}static getVersionPrecision(e){return e.split(".").length}static compareVersions(e,t,i=false){let a=r.getVersionPrecision(e),c=r.getVersionPrecision(t),u=Math.max(a,c),h=0,d=r.map([e,t],f=>{let m=u-r.getVersionPrecision(f),_=f+new Array(m+1).join(".0");return r.map(_.split("."),S=>new Array(20-S.length).join("0")+S).reverse()});for(i&&(h=u-Math.min(a,c)),u-=1;u>=h;){if(d[0][u]>d[1][u])return 1;if(d[0][u]===d[1][u]){if(u===h)return 0;u-=1;}else if(d[0][u]<d[1][u])return -1}}static map(e,t){let i=[],a;if(Array.prototype.map)return Array.prototype.map.call(e,t);for(a=0;a<e.length;a+=1)i.push(t(e[a]));return i}static find(e,t){let i,a;if(Array.prototype.find)return Array.prototype.find.call(e,t);for(i=0,a=e.length;i<a;i+=1){let c=e[i];if(t(c,i))return c}}static assign(e,...t){let i=e,a,c;if(Object.assign)return Object.assign(e,...t);for(a=0,c=t.length;a<c;a+=1){let u=t[a];typeof u=="object"&&u!==null&&Object.keys(u).forEach(d=>{i[d]=u[d];});}return e}static getBrowserAlias(e){return B[e]}static getBrowserTypeByAlias(e){return v[e]||""}};var n=/version\/(\d+(\.?_?\d+)+)/i,O=[{test:[/gptbot/i],describe(r){let e={name:"GPTBot"},t=s.getFirstMatch(/gptbot\/(\d+(\.\d+)+)/i,r)||s.getFirstMatch(n,r);return t&&(e.version=t),e}},{test:[/chatgpt-user/i],describe(r){let e={name:"ChatGPT-User"},t=s.getFirstMatch(/chatgpt-user\/(\d+(\.\d+)+)/i,r)||s.getFirstMatch(n,r);return t&&(e.version=t),e}},{test:[/oai-searchbot/i],describe(r){let e={name:"OAI-SearchBot"},t=s.getFirstMatch(/oai-searchbot\/(\d+(\.\d+)+)/i,r)||s.getFirstMatch(n,r);return t&&(e.version=t),e}},{test:[/claudebot/i,/claude-web/i,/claude-user/i,/claude-searchbot/i],describe(r){let e={name:"ClaudeBot"},t=s.getFirstMatch(/(?:claudebot|claude-web|claude-user|claude-searchbot)\/(\d+(\.\d+)+)/i,r)||s.getFirstMatch(n,r);return t&&(e.version=t),e}},{test:[/omgilibot/i,/webzio-extended/i],describe(r){let e={name:"Omgilibot"},t=s.getFirstMatch(/(?:omgilibot|webzio-extended)\/(\d+(\.\d+)+)/i,r)||s.getFirstMatch(n,r);return t&&(e.version=t),e}},{test:[/diffbot/i],describe(r){let e={name:"Diffbot"},t=s.getFirstMatch(/diffbot\/(\d+(\.\d+)+)/i,r)||s.getFirstMatch(n,r);return t&&(e.version=t),e}},{test:[/perplexitybot/i],describe(r){let e={name:"PerplexityBot"},t=s.getFirstMatch(/perplexitybot\/(\d+(\.\d+)+)/i,r)||s.getFirstMatch(n,r);return t&&(e.version=t),e}},{test:[/perplexity-user/i],describe(r){let e={name:"Perplexity-User"},t=s.getFirstMatch(/perplexity-user\/(\d+(\.\d+)+)/i,r)||s.getFirstMatch(n,r);return t&&(e.version=t),e}},{test:[/youbot/i],describe(r){let e={name:"YouBot"},t=s.getFirstMatch(/youbot\/(\d+(\.\d+)+)/i,r)||s.getFirstMatch(n,r);return t&&(e.version=t),e}},{test:[/meta-webindexer/i],describe(r){let e={name:"Meta-WebIndexer"},t=s.getFirstMatch(/meta-webindexer\/(\d+(\.\d+)+)/i,r)||s.getFirstMatch(n,r);return t&&(e.version=t),e}},{test:[/meta-externalads/i],describe(r){let e={name:"Meta-ExternalAds"},t=s.getFirstMatch(/meta-externalads\/(\d+(\.\d+)+)/i,r)||s.getFirstMatch(n,r);return t&&(e.version=t),e}},{test:[/meta-externalagent/i],describe(r){let e={name:"Meta-ExternalAgent"},t=s.getFirstMatch(/meta-externalagent\/(\d+(\.\d+)+)/i,r)||s.getFirstMatch(n,r);return t&&(e.version=t),e}},{test:[/meta-externalfetcher/i],describe(r){let e={name:"Meta-ExternalFetcher"},t=s.getFirstMatch(/meta-externalfetcher\/(\d+(\.\d+)+)/i,r)||s.getFirstMatch(n,r);return t&&(e.version=t),e}},{test:[/googlebot/i],describe(r){let e={name:"Googlebot"},t=s.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,r)||s.getFirstMatch(n,r);return t&&(e.version=t),e}},{test:[/linespider/i],describe(r){let e={name:"Linespider"},t=s.getFirstMatch(/(?:linespider)(?:-[-\w]+)?[\s/](\d+(\.\d+)+)/i,r)||s.getFirstMatch(n,r);return t&&(e.version=t),e}},{test:[/amazonbot/i],describe(r){let e={name:"AmazonBot"},t=s.getFirstMatch(/amazonbot\/(\d+(\.\d+)+)/i,r)||s.getFirstMatch(n,r);return t&&(e.version=t),e}},{test:[/bingbot/i],describe(r){let e={name:"BingCrawler"},t=s.getFirstMatch(/bingbot\/(\d+(\.\d+)+)/i,r)||s.getFirstMatch(n,r);return t&&(e.version=t),e}},{test:[/baiduspider/i],describe(r){let e={name:"BaiduSpider"},t=s.getFirstMatch(/baiduspider\/(\d+(\.\d+)+)/i,r)||s.getFirstMatch(n,r);return t&&(e.version=t),e}},{test:[/duckduckbot/i],describe(r){let e={name:"DuckDuckBot"},t=s.getFirstMatch(/duckduckbot\/(\d+(\.\d+)+)/i,r)||s.getFirstMatch(n,r);return t&&(e.version=t),e}},{test:[/ia_archiver/i],describe(r){let e={name:"InternetArchiveCrawler"},t=s.getFirstMatch(/ia_archiver\/(\d+(\.\d+)+)/i,r)||s.getFirstMatch(n,r);return t&&(e.version=t),e}},{test:[/facebookexternalhit/i,/facebookcatalog/i],describe(){return {name:"FacebookExternalHit"}}},{test:[/slackbot/i,/slack-imgProxy/i],describe(r){let e={name:"SlackBot"},t=s.getFirstMatch(/(?:slackbot|slack-imgproxy)(?:-[-\w]+)?[\s/](\d+(\.\d+)+)/i,r)||s.getFirstMatch(n,r);return t&&(e.version=t),e}},{test:[/yahoo!?[\s/]*slurp/i],describe(){return {name:"YahooSlurp"}}},{test:[/yandexbot/i,/yandexmobilebot/i],describe(){return {name:"YandexBot"}}},{test:[/pingdom/i],describe(){return {name:"PingdomBot"}}},{test:[/opera/i],describe(r){let e={name:"Opera"},t=s.getFirstMatch(n,r)||s.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,r);return t&&(e.version=t),e}},{test:[/opr\/|opios/i],describe(r){let e={name:"Opera"},t=s.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,r)||s.getFirstMatch(n,r);return t&&(e.version=t),e}},{test:[/SamsungBrowser/i],describe(r){let e={name:"Samsung Internet for Android"},t=s.getFirstMatch(n,r)||s.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,r);return t&&(e.version=t),e}},{test:[/Whale/i],describe(r){let e={name:"NAVER Whale Browser"},t=s.getFirstMatch(n,r)||s.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,r);return t&&(e.version=t),e}},{test:[/PaleMoon/i],describe(r){let e={name:"Pale Moon"},t=s.getFirstMatch(n,r)||s.getFirstMatch(/(?:PaleMoon)[\s/](\d+(?:\.\d+)+)/i,r);return t&&(e.version=t),e}},{test:[/MZBrowser/i],describe(r){let e={name:"MZ Browser"},t=s.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,r)||s.getFirstMatch(n,r);return t&&(e.version=t),e}},{test:[/focus/i],describe(r){let e={name:"Focus"},t=s.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,r)||s.getFirstMatch(n,r);return t&&(e.version=t),e}},{test:[/swing/i],describe(r){let e={name:"Swing"},t=s.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,r)||s.getFirstMatch(n,r);return t&&(e.version=t),e}},{test:[/coast/i],describe(r){let e={name:"Opera Coast"},t=s.getFirstMatch(n,r)||s.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,r);return t&&(e.version=t),e}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe(r){let e={name:"Opera Touch"},t=s.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,r)||s.getFirstMatch(n,r);return t&&(e.version=t),e}},{test:[/yabrowser/i],describe(r){let e={name:"Yandex Browser"},t=s.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,r)||s.getFirstMatch(n,r);return t&&(e.version=t),e}},{test:[/ucbrowser/i],describe(r){let e={name:"UC Browser"},t=s.getFirstMatch(n,r)||s.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,r);return t&&(e.version=t),e}},{test:[/Maxthon|mxios/i],describe(r){let e={name:"Maxthon"},t=s.getFirstMatch(n,r)||s.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,r);return t&&(e.version=t),e}},{test:[/epiphany/i],describe(r){let e={name:"Epiphany"},t=s.getFirstMatch(n,r)||s.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,r);return t&&(e.version=t),e}},{test:[/puffin/i],describe(r){let e={name:"Puffin"},t=s.getFirstMatch(n,r)||s.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,r);return t&&(e.version=t),e}},{test:[/sleipnir/i],describe(r){let e={name:"Sleipnir"},t=s.getFirstMatch(n,r)||s.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,r);return t&&(e.version=t),e}},{test:[/k-meleon/i],describe(r){let e={name:"K-Meleon"},t=s.getFirstMatch(n,r)||s.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,r);return t&&(e.version=t),e}},{test:[/micromessenger/i],describe(r){let e={name:"WeChat"},t=s.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,r)||s.getFirstMatch(n,r);return t&&(e.version=t),e}},{test:[/qqbrowser/i],describe(r){let e={name:/qqbrowserlite/i.test(r)?"QQ Browser Lite":"QQ Browser"},t=s.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,r)||s.getFirstMatch(n,r);return t&&(e.version=t),e}},{test:[/msie|trident/i],describe(r){let e={name:"Internet Explorer"},t=s.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,r);return t&&(e.version=t),e}},{test:[/\sedg\//i],describe(r){let e={name:"Microsoft Edge"},t=s.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,r);return t&&(e.version=t),e}},{test:[/edg([ea]|ios)/i],describe(r){let e={name:"Microsoft Edge"},t=s.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,r);return t&&(e.version=t),e}},{test:[/vivaldi/i],describe(r){let e={name:"Vivaldi"},t=s.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,r);return t&&(e.version=t),e}},{test:[/seamonkey/i],describe(r){let e={name:"SeaMonkey"},t=s.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,r);return t&&(e.version=t),e}},{test:[/sailfish/i],describe(r){let e={name:"Sailfish"},t=s.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,r);return t&&(e.version=t),e}},{test:[/silk/i],describe(r){let e={name:"Amazon Silk"},t=s.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,r);return t&&(e.version=t),e}},{test:[/phantom/i],describe(r){let e={name:"PhantomJS"},t=s.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,r);return t&&(e.version=t),e}},{test:[/slimerjs/i],describe(r){let e={name:"SlimerJS"},t=s.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,r);return t&&(e.version=t),e}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(r){let e={name:"BlackBerry"},t=s.getFirstMatch(n,r)||s.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,r);return t&&(e.version=t),e}},{test:[/(web|hpw)[o0]s/i],describe(r){let e={name:"WebOS Browser"},t=s.getFirstMatch(n,r)||s.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,r);return t&&(e.version=t),e}},{test:[/bada/i],describe(r){let e={name:"Bada"},t=s.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,r);return t&&(e.version=t),e}},{test:[/tizen/i],describe(r){let e={name:"Tizen"},t=s.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,r)||s.getFirstMatch(n,r);return t&&(e.version=t),e}},{test:[/qupzilla/i],describe(r){let e={name:"QupZilla"},t=s.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,r)||s.getFirstMatch(n,r);return t&&(e.version=t),e}},{test:[/librewolf/i],describe(r){let e={name:"LibreWolf"},t=s.getFirstMatch(/(?:librewolf)[\s/](\d+(\.?_?\d+)+)/i,r);return t&&(e.version=t),e}},{test:[/firefox|iceweasel|fxios/i],describe(r){let e={name:"Firefox"},t=s.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,r);return t&&(e.version=t),e}},{test:[/electron/i],describe(r){let e={name:"Electron"},t=s.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,r);return t&&(e.version=t),e}},{test:[/sogoumobilebrowser/i,/metasr/i,/se 2\.[x]/i],describe(r){let e={name:"Sogou Browser"},t=s.getFirstMatch(/(?:sogoumobilebrowser)[\s/](\d+(\.?_?\d+)+)/i,r),i=s.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,r),a=s.getFirstMatch(/se ([\d.]+)x/i,r),c=t||i||a;return c&&(e.version=c),e}},{test:[/MiuiBrowser/i],describe(r){let e={name:"Miui"},t=s.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,r);return t&&(e.version=t),e}},{test(r){return r.hasBrand("DuckDuckGo")?true:r.test(/\sDdg\/[\d.]+$/i)},describe(r,e){let t={name:"DuckDuckGo"};if(e){let a=e.getBrandVersion("DuckDuckGo");if(a)return t.version=a,t}let i=s.getFirstMatch(/\sDdg\/([\d.]+)$/i,r);return i&&(t.version=i),t}},{test(r){return r.hasBrand("Brave")},describe(r,e){let t={name:"Brave"};if(e){let i=e.getBrandVersion("Brave");if(i)return t.version=i,t}return t}},{test:[/chromium/i],describe(r){let e={name:"Chromium"},t=s.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,r)||s.getFirstMatch(n,r);return t&&(e.version=t),e}},{test:[/chrome|crios|crmo/i],describe(r){let e={name:"Chrome"},t=s.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,r);return t&&(e.version=t),e}},{test:[/GSA/i],describe(r){let e={name:"Google Search"},t=s.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,r);return t&&(e.version=t),e}},{test(r){let e=!r.test(/like android/i),t=r.test(/android/i);return e&&t},describe(r){let e={name:"Android Browser"},t=s.getFirstMatch(n,r);return t&&(e.version=t),e}},{test:[/playstation 4/i],describe(r){let e={name:"PlayStation 4"},t=s.getFirstMatch(n,r);return t&&(e.version=t),e}},{test:[/safari|applewebkit/i],describe(r){let e={name:"Safari"},t=s.getFirstMatch(n,r);return t&&(e.version=t),e}},{test:[/.*/i],describe(r){let e=/^(.*)\/(.*) /,t=/^(.*)\/(.*)[ \t]\((.*)/,a=r.search("\\(")!==-1?t:e;return {name:s.getFirstMatch(a,r),version:s.getSecondMatch(a,r)}}}],x=O;g$1();var k=[{test:[/Roku\/DVP/],describe(r){let e=s.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,r);return {name:b.Roku,version:e}}},{test:[/windows phone/i],describe(r){let e=s.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,r);return {name:b.WindowsPhone,version:e}}},{test:[/windows /i],describe(r){let e=s.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,r),t=s.getWindowsVersionName(e);return {name:b.Windows,version:e,versionName:t}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(r){let e={name:b.iOS},t=s.getSecondMatch(/(Version\/)(\d[\d.]+)/,r);return t&&(e.version=t),e}},{test:[/macintosh/i],describe(r){let e=s.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,r).replace(/[_\s]/g,"."),t=s.getMacOSVersionName(e),i={name:b.MacOS,version:e};return t&&(i.versionName=t),i}},{test:[/(ipod|iphone|ipad)/i],describe(r){let e=s.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,r).replace(/[_\s]/g,".");return {name:b.iOS,version:e}}},{test:[/OpenHarmony/i],describe(r){let e=s.getFirstMatch(/OpenHarmony\s+(\d+(\.\d+)*)/i,r);return {name:b.HarmonyOS,version:e}}},{test(r){let e=!r.test(/like android/i),t=r.test(/android/i);return e&&t},describe(r){let e=s.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,r),t=s.getAndroidVersionName(e),i={name:b.Android,version:e};return t&&(i.versionName=t),i}},{test:[/(web|hpw)[o0]s/i],describe(r){let e=s.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,r),t={name:b.WebOS};return e&&e.length&&(t.version=e),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(r){let e=s.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,r)||s.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,r)||s.getFirstMatch(/\bbb(\d+)/i,r);return {name:b.BlackBerry,version:e}}},{test:[/bada/i],describe(r){let e=s.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,r);return {name:b.Bada,version:e}}},{test:[/tizen/i],describe(r){let e=s.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,r);return {name:b.Tizen,version:e}}},{test:[/linux/i],describe(){return {name:b.Linux}}},{test:[/CrOS/],describe(){return {name:b.ChromeOS}}},{test:[/PlayStation 4/],describe(r){let e=s.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,r);return {name:b.PlayStation4,version:e}}}];g$1();var A=[{test:[/googlebot/i],describe(){return {type:o.bot,vendor:"Google"}}},{test:[/linespider/i],describe(){return {type:o.bot,vendor:"Line"}}},{test:[/amazonbot/i],describe(){return {type:o.bot,vendor:"Amazon"}}},{test:[/gptbot/i],describe(){return {type:o.bot,vendor:"OpenAI"}}},{test:[/chatgpt-user/i],describe(){return {type:o.bot,vendor:"OpenAI"}}},{test:[/oai-searchbot/i],describe(){return {type:o.bot,vendor:"OpenAI"}}},{test:[/baiduspider/i],describe(){return {type:o.bot,vendor:"Baidu"}}},{test:[/bingbot/i],describe(){return {type:o.bot,vendor:"Bing"}}},{test:[/duckduckbot/i],describe(){return {type:o.bot,vendor:"DuckDuckGo"}}},{test:[/claudebot/i,/claude-web/i,/claude-user/i,/claude-searchbot/i],describe(){return {type:o.bot,vendor:"Anthropic"}}},{test:[/omgilibot/i,/webzio-extended/i],describe(){return {type:o.bot,vendor:"Webz.io"}}},{test:[/diffbot/i],describe(){return {type:o.bot,vendor:"Diffbot"}}},{test:[/perplexitybot/i],describe(){return {type:o.bot,vendor:"Perplexity AI"}}},{test:[/perplexity-user/i],describe(){return {type:o.bot,vendor:"Perplexity AI"}}},{test:[/youbot/i],describe(){return {type:o.bot,vendor:"You.com"}}},{test:[/ia_archiver/i],describe(){return {type:o.bot,vendor:"Internet Archive"}}},{test:[/meta-webindexer/i],describe(){return {type:o.bot,vendor:"Meta"}}},{test:[/meta-externalads/i],describe(){return {type:o.bot,vendor:"Meta"}}},{test:[/meta-externalagent/i],describe(){return {type:o.bot,vendor:"Meta"}}},{test:[/meta-externalfetcher/i],describe(){return {type:o.bot,vendor:"Meta"}}},{test:[/facebookexternalhit/i,/facebookcatalog/i],describe(){return {type:o.bot,vendor:"Meta"}}},{test:[/slackbot/i,/slack-imgProxy/i],describe(){return {type:o.bot,vendor:"Slack"}}},{test:[/yahoo/i],describe(){return {type:o.bot,vendor:"Yahoo"}}},{test:[/yandexbot/i,/yandexmobilebot/i],describe(){return {type:o.bot,vendor:"Yandex"}}},{test:[/pingdom/i],describe(){return {type:o.bot,vendor:"Pingdom"}}},{test:[/huawei/i],describe(r){let e=s.getFirstMatch(/(can-l01)/i,r)&&"Nova",t={type:o.mobile,vendor:"Huawei"};return e&&(t.model=e),t}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe(){return {type:o.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe(){return {type:o.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(){return {type:o.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe(){return {type:o.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe(){return {type:o.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe(){return {type:o.tablet}}},{test(r){let e=r.test(/ipod|iphone/i),t=r.test(/like (ipod|iphone)/i);return e&&!t},describe(r){let e=s.getFirstMatch(/(ipod|iphone)/i,r);return {type:o.mobile,vendor:"Apple",model:e}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe(){return {type:o.mobile,vendor:"Nexus"}}},{test:[/Nokia/i],describe(r){let e=s.getFirstMatch(/Nokia\s+([0-9]+(\.[0-9]+)?)/i,r),t={type:o.mobile,vendor:"Nokia"};return e&&(t.model=e),t}},{test:[/[^-]mobi/i],describe(){return {type:o.mobile}}},{test(r){return r.getBrowserName(true)==="blackberry"},describe(){return {type:o.mobile,vendor:"BlackBerry"}}},{test(r){return r.getBrowserName(true)==="bada"},describe(){return {type:o.mobile}}},{test(r){return r.getBrowserName()==="windows phone"},describe(){return {type:o.mobile,vendor:"Microsoft"}}},{test(r){let e=Number(String(r.getOSVersion()).split(".")[0]);return r.getOSName(true)==="android"&&e>=3},describe(){return {type:o.tablet}}},{test(r){return r.getOSName(true)==="android"},describe(){return {type:o.mobile}}},{test:[/smart-?tv|smarttv/i],describe(){return {type:o.tv}}},{test:[/netcast/i],describe(){return {type:o.tv}}},{test(r){return r.getOSName(true)==="macos"},describe(){return {type:o.desktop,vendor:"Apple"}}},{test(r){return r.getOSName(true)==="windows"},describe(){return {type:o.desktop}}},{test(r){return r.getOSName(true)==="linux"},describe(){return {type:o.desktop}}},{test(r){return r.getOSName(true)==="playstation 4"},describe(){return {type:o.tv}}},{test(r){return r.getOSName(true)==="roku"},describe(){return {type:o.tv}}}];g$1();var P=[{test(r){return r.getBrowserName(true)==="microsoft edge"},describe(r){if(/\sedg\//i.test(r))return {name:g.Blink};let t=s.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,r);return {name:g.EdgeHTML,version:t}}},{test:[/trident/i],describe(r){let e={name:g.Trident},t=s.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,r);return t&&(e.version=t),e}},{test(r){return r.test(/presto/i)},describe(r){let e={name:g.Presto},t=s.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,r);return t&&(e.version=t),e}},{test(r){let e=r.test(/gecko/i),t=r.test(/like gecko/i);return e&&!t},describe(r){let e={name:g.Gecko},t=s.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,r);return t&&(e.version=t),e}},{test:[/(apple)?webkit\/537\.36/i],describe(){return {name:g.Blink}}},{test:[/(apple)?webkit/i],describe(r){let e={name:g.WebKit},t=s.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,r);return t&&(e.version=t),e}}];var M=class{constructor(e,t=false,i=null){if(e==null||e==="")throw new Error("UserAgent parameter can't be empty");this._ua=e;let a=false;typeof t=="boolean"?(a=t,this._hints=i):t!=null&&typeof t=="object"?this._hints=t:this._hints=null,this.parsedResult={},a!==true&&this.parse();}getHints(){return this._hints}hasBrand(e){if(!this._hints||!Array.isArray(this._hints.brands))return false;let t=e.toLowerCase();return this._hints.brands.some(i=>i.brand&&i.brand.toLowerCase()===t)}getBrandVersion(e){if(!this._hints||!Array.isArray(this._hints.brands))return;let t=e.toLowerCase(),i=this._hints.brands.find(a=>a.brand&&a.brand.toLowerCase()===t);return i?i.version:void 0}getUA(){return this._ua}test(e){return e.test(this._ua)}parseBrowser(){this.parsedResult.browser={};let e=s.find(x,t=>{if(typeof t.test=="function")return t.test(this);if(Array.isArray(t.test))return t.test.some(i=>this.test(i));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.browser=e.describe(this.getUA(),this)),this.parsedResult.browser}getBrowser(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()}getBrowserName(e){return e?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""}getBrowserVersion(){return this.getBrowser().version}getOS(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()}parseOS(){this.parsedResult.os={};let e=s.find(k,t=>{if(typeof t.test=="function")return t.test(this);if(Array.isArray(t.test))return t.test.some(i=>this.test(i));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.os=e.describe(this.getUA())),this.parsedResult.os}getOSName(e){let{name:t}=this.getOS();return e?String(t).toLowerCase()||"":t||""}getOSVersion(){return this.getOS().version}getPlatform(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()}getPlatformType(e=false){let{type:t}=this.getPlatform();return e?String(t).toLowerCase()||"":t||""}parsePlatform(){this.parsedResult.platform={};let e=s.find(A,t=>{if(typeof t.test=="function")return t.test(this);if(Array.isArray(t.test))return t.test.some(i=>this.test(i));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.platform=e.describe(this.getUA())),this.parsedResult.platform}getEngine(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()}getEngineName(e){return e?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""}parseEngine(){this.parsedResult.engine={};let e=s.find(P,t=>{if(typeof t.test=="function")return t.test(this);if(Array.isArray(t.test))return t.test.some(i=>this.test(i));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.engine=e.describe(this.getUA())),this.parsedResult.engine}parse(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this}getResult(){return s.assign({},this.parsedResult)}satisfies(e){let t={},i=0,a={},c=0;if(Object.keys(e).forEach(h=>{let d=e[h];typeof d=="string"?(a[h]=d,c+=1):typeof d=="object"&&(t[h]=d,i+=1);}),i>0){let h=Object.keys(t),d=s.find(h,m=>this.isOS(m));if(d){let m=this.satisfies(t[d]);if(m!==void 0)return m}let f=s.find(h,m=>this.isPlatform(m));if(f){let m=this.satisfies(t[f]);if(m!==void 0)return m}}if(c>0){let h=Object.keys(a),d=s.find(h,f=>this.isBrowser(f,true));if(d!==void 0)return this.compareVersion(a[d])}}isBrowser(e,t=false){let i=this.getBrowserName().toLowerCase(),a=e.toLowerCase(),c=s.getBrowserTypeByAlias(a);return t&&c&&(a=c.toLowerCase()),a===i}compareVersion(e){let t=[0],i=e,a=false,c=this.getBrowserVersion();if(typeof c=="string")return e[0]===">"||e[0]==="<"?(i=e.substr(1),e[1]==="="?(a=true,i=e.substr(2)):t=[],e[0]===">"?t.push(1):t.push(-1)):e[0]==="="?i=e.substr(1):e[0]==="~"&&(a=true,i=e.substr(1)),t.indexOf(s.compareVersions(c,i,a))>-1}isOS(e){return this.getOSName(true)===String(e).toLowerCase()}isPlatform(e){return this.getPlatformType(true)===String(e).toLowerCase()}isEngine(e){return this.getEngineName(true)===String(e).toLowerCase()}is(e,t=false){return this.isBrowser(e,t)||this.isOS(e)||this.isPlatform(e)}some(e=[]){return e.some(t=>this.is(t))}},y=M;var F=class{static getParser(e,t=false,i=null){if(typeof e!="string")throw new Error("UserAgent should be a string");return new y(e,t,i)}static parse(e,t=null){return new y(e,t).getResult()}static get BROWSER_MAP(){return v}static get ENGINE_MAP(){return g}static get OS_MAP(){return b}static get PLATFORMS_MAP(){return o}},ne=F;/*! Bundled license information:
|
|
3
|
-
|
|
4
|
-
bowser/src/bowser.js:
|
|
5
|
-
(*!
|
|
6
|
-
* Bowser - a browser detector
|
|
7
|
-
* https://github.com/bowser-js/bowser
|
|
8
|
-
* MIT License | (c) Dustin Diaz 2012-2015
|
|
9
|
-
* MIT License | (c) Denis Demchenko 2015-2019
|
|
10
|
-
*)
|
|
11
|
-
*/export{ne as default};
|