@withwiz/toolkit 0.6.5 → 0.7.1
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/README.md +99 -57
- package/dist/{chunk-FDFPNSKY.js → chunk-2D3YM34R.js} +1 -1
- package/dist/{chunk-7IY3RQQL.js → chunk-2P4N4OK2.js} +9 -10
- package/dist/{chunk-3GAY2T2A.js → chunk-2PFSRVVD.js} +10 -3
- package/dist/{chunk-C4TSQUFA.js → chunk-2SIBG5BG.js} +1 -1
- package/dist/{chunk-K3OYTLXU.js → chunk-33RIHX7O.js} +9 -3
- package/dist/{chunk-EUQATJLI.js → chunk-4ETAGZIT.js} +1 -1
- package/dist/{chunk-RJUVBBZG.js → chunk-4IQWQSEV.js} +2 -2
- package/dist/{chunk-LG6GH4V7.js → chunk-4K27YLAE.js} +2 -2
- package/dist/{chunk-62FLBG6B.js → chunk-4K76HG4V.js} +1 -1
- package/dist/{chunk-LRRQ54YJ.js → chunk-4KJZRI74.js} +2 -2
- package/dist/{chunk-JP7FDGGL.js → chunk-4L6OSSSG.js} +6 -6
- package/dist/{chunk-2NCTRLVH.js → chunk-4PROUAZ5.js} +9 -9
- package/dist/{chunk-A6FKWYO2.js → chunk-54REXMTE.js} +6 -9
- package/dist/{chunk-AIH3F7JV.js → chunk-5GWGARXI.js} +1 -1
- package/dist/{chunk-7VTBRP5M.js → chunk-5S7M2AJL.js} +3 -3
- package/dist/{chunk-TLZJQR26.js → chunk-65HVR74O.js} +2 -2
- package/dist/chunk-6HQ5JHL4.js +14 -0
- package/dist/{chunk-K25ICPU4.js → chunk-6J2EJVND.js} +1 -1
- package/dist/{chunk-G26T2PRQ.js → chunk-6JXHXIEH.js} +2 -2
- package/dist/{chunk-B7QWZ5SW.js → chunk-6TRD7ZW4.js} +6 -6
- package/dist/{chunk-UQM35MAO.js → chunk-6TUDUOGC.js} +3 -3
- package/dist/{chunk-ZTN4X5FN.js → chunk-7EXSMZ2O.js} +1 -1
- package/dist/{chunk-OFSPZUQD.js → chunk-7F5X6F7X.js} +3 -3
- package/dist/{chunk-MEFZZE4M.js → chunk-7VXRBTRF.js} +6 -6
- package/dist/{chunk-JNJALNRR.js → chunk-7WG7XPXC.js} +3 -3
- package/dist/{chunk-KY7JZ54O.js → chunk-7X2N4VZM.js} +1 -1
- package/dist/{chunk-WJWCTCWZ.js → chunk-7ZO5UNTJ.js} +3 -3
- package/dist/{chunk-QYXI45KH.js → chunk-A74POWYY.js} +3 -3
- package/dist/{chunk-AKD4YMJU.js → chunk-AMZWDLJ4.js} +1 -1
- package/dist/{chunk-N6TMHITU.js → chunk-AQZPGOEZ.js} +3 -3
- package/dist/{chunk-SVHD6WCJ.js → chunk-ARXUKGZI.js} +4 -4
- package/dist/{chunk-EOEMOXNT.js → chunk-ATAQRXTH.js} +2 -2
- package/dist/{chunk-545Q34YU.js → chunk-AV7ELXHG.js} +3 -3
- package/dist/{chunk-I6Q3WUDT.js → chunk-B5OH43PR.js} +1 -1
- package/dist/{chunk-VWPSQQ7E.js → chunk-B5VRZ2VJ.js} +4 -4
- package/dist/{chunk-YX3XMDDI.js → chunk-B6L5XV7O.js} +26 -9
- package/dist/{chunk-Q26CQW7T.js → chunk-BBE4RXR7.js} +4 -4
- package/dist/{chunk-A7TN46LC.js → chunk-BFZR62LZ.js} +5 -5
- package/dist/{chunk-L25BNU3E.js → chunk-BW4QO7T6.js} +2 -2
- package/dist/{chunk-CDLCZB6F.js → chunk-C5CBJC6V.js} +3 -3
- package/dist/{chunk-AHDPGRXS.js → chunk-CCNZFZW6.js} +1 -1
- package/dist/{chunk-LHIVUV7Q.js → chunk-CRJUFA73.js} +3 -3
- package/dist/{chunk-TBMRGMRP.js → chunk-D2KXIKI4.js} +5 -5
- package/dist/{chunk-GDWEDUHO.js → chunk-D73ZJQMX.js} +1 -1
- package/dist/{chunk-DEEJBDJE.js → chunk-E27YZK7O.js} +2 -2
- package/dist/{chunk-MRJE6OX5.js → chunk-EK4TL7VW.js} +2 -2
- package/dist/{chunk-57W32BFZ.js → chunk-ERFD6YAW.js} +1 -1
- package/dist/{chunk-BJSEYZBH.js → chunk-ERKJJDY6.js} +7 -17
- package/dist/{chunk-2QH66EVQ.js → chunk-F3R3UYBF.js} +1 -1
- package/dist/{chunk-3X7D3NV4.js → chunk-G4GT4X3J.js} +13 -13
- package/dist/{chunk-WSXOKK6N.js → chunk-G4LJN4OZ.js} +2 -2
- package/dist/{chunk-WBWDJUF5.js → chunk-G4SNTXJ3.js} +37 -13
- package/dist/{chunk-NQUYNPSD.js → chunk-GDTZMX3L.js} +4 -4
- package/dist/{chunk-RVL5ROWQ.js → chunk-GF3DKZIW.js} +2 -2
- package/dist/{chunk-G2CKET5G.js → chunk-GH3U4WRE.js} +1 -1
- package/dist/{chunk-NW3JIRFK.js → chunk-GJO2MPC3.js} +2 -2
- package/dist/{chunk-LGAV5UU2.js → chunk-GJYHMHTU.js} +3 -3
- package/dist/{chunk-MGBNIDTP.js → chunk-GORISA3L.js} +8 -3
- package/dist/{chunk-WDUFQFDP.js → chunk-GPOSTBDQ.js} +2 -2
- package/dist/{chunk-VB64KFBD.js → chunk-GSSHHVHF.js} +23 -11
- package/dist/{chunk-N54KGJPU.js → chunk-GSUCBWML.js} +1 -1
- package/dist/{chunk-LNV2E4I6.js → chunk-GTCCVI45.js} +1 -1
- package/dist/{chunk-GBLNXNEH.js → chunk-HIZ7USIF.js} +2 -2
- package/dist/{chunk-3LVCK2NQ.js → chunk-HX4MPCVV.js} +5 -5
- package/dist/{chunk-CVFVL5FL.js → chunk-I4NT6G2T.js} +3 -3
- package/dist/{chunk-LMQSV5UK.js → chunk-IKZB26SK.js} +3 -3
- package/dist/{chunk-TFZOOP3V.js → chunk-IMAFMUZ7.js} +3 -3
- package/dist/{chunk-QXPMO2CO.js → chunk-IOUNOHP7.js} +4 -4
- package/dist/{chunk-IJEZ7G7S.js → chunk-IRUFNC4L.js} +2 -2
- package/dist/{chunk-YJWLWUFK.js → chunk-J2MAXMIP.js} +2 -2
- package/dist/{chunk-ZG2XGO44.js → chunk-J5NLAZV2.js} +3 -3
- package/dist/{chunk-QOKDGW3F.js → chunk-JIYLTMVL.js} +2 -12
- package/dist/{chunk-XY3ZVORI.js → chunk-JJAIVUVD.js} +5 -5
- package/dist/{chunk-7UQZH2OH.js → chunk-JKSABDFT.js} +4 -4
- package/dist/chunk-JLRMET4V.js +49 -0
- package/dist/{chunk-GDX3YQGK.js → chunk-JRORMRVN.js} +15 -5
- package/dist/{chunk-XHZ5L4FO.js → chunk-K2PNAQI4.js} +1 -1
- package/dist/{chunk-NOAU2JG7.js → chunk-KG65BFPK.js} +2 -2
- package/dist/{chunk-KMCJIL57.js → chunk-KXYDTC4A.js} +1 -1
- package/dist/{chunk-JXACXHRL.js → chunk-KYAHURXN.js} +4 -4
- package/dist/{chunk-XRRPEBKB.js → chunk-LG3KM5V3.js} +1 -1
- package/dist/{chunk-FRY3TNJ6.js → chunk-LON5THYQ.js} +2 -2
- package/dist/{chunk-SOQOAFB2.js → chunk-LUIYCIF7.js} +3 -3
- package/dist/{chunk-WVDYHSHD.js → chunk-MFMQO6IS.js} +3 -3
- package/dist/{chunk-IHXRF3BH.js → chunk-MNYVAEXK.js} +1 -1
- package/dist/{chunk-F3NGZYL2.js → chunk-MREY2W7N.js} +2 -2
- package/dist/{chunk-VSGKVZB4.js → chunk-MRNRC45L.js} +2 -2
- package/dist/{chunk-2KG2G35D.js → chunk-MWBEE6VI.js} +6 -6
- package/dist/{chunk-WC2IYFGC.js → chunk-N5VOFGF3.js} +3 -3
- package/dist/{chunk-SS56XFLI.js → chunk-O4L6RI5S.js} +1 -1
- package/dist/{chunk-F6LCSFSU.js → chunk-PBQGXOVX.js} +2 -2
- package/dist/{chunk-YUBXS7YI.js → chunk-PBVP7CFZ.js} +1 -1
- package/dist/{chunk-WPW4HXW4.js → chunk-PX535BHW.js} +3 -3
- package/dist/{chunk-TLBY3DUK.js → chunk-Q66VOVGN.js} +2 -2
- package/dist/{chunk-FDRQUDFH.js → chunk-R463CTX4.js} +3 -3
- package/dist/{chunk-2O72OV5X.js → chunk-RJGYONRO.js} +2 -2
- package/dist/{chunk-UCYQNHST.js → chunk-STMAKLLG.js} +2 -2
- package/dist/{chunk-2TO7WUKK.js → chunk-THUQVCTI.js} +1 -1
- package/dist/{chunk-ZRDPJORV.js → chunk-TN75NAPU.js} +1 -1
- package/dist/{chunk-AUDUYK5B.js → chunk-UBASOMP5.js} +4 -4
- package/dist/{chunk-YTXCKIWE.js → chunk-UMRKMF3E.js} +2 -2
- package/dist/{chunk-57HPJEZB.js → chunk-UQ3Z3ZAF.js} +7 -7
- package/dist/{chunk-WMJ5M45N.js → chunk-V6YD53NH.js} +2 -2
- package/dist/{chunk-62Q7DN5G.js → chunk-VC2E6KYQ.js} +2 -2
- package/dist/{chunk-WLXAEHKK.js → chunk-VDRLJU6C.js} +9 -9
- package/dist/{chunk-D6MIC5AU.js → chunk-VJE4HA2C.js} +3 -3
- package/dist/{chunk-34IDAA7V.js → chunk-VNDL2E44.js} +3 -3
- package/dist/{chunk-ENETIGKL.js → chunk-VPRTPW7C.js} +3 -3
- package/dist/{chunk-ON4ENPUS.js → chunk-VUYS3SU7.js} +1 -1
- package/dist/{chunk-PT4FA7U4.js → chunk-W7PEL3DX.js} +9 -9
- package/dist/{chunk-HT7HEGH3.js → chunk-WIQAPWTY.js} +2 -2
- package/dist/{chunk-EZC6ETFW.js → chunk-WP233RH2.js} +2 -2
- package/dist/{chunk-TRBKJ7JT.js → chunk-WWOYFWFB.js} +1 -1
- package/dist/{chunk-34WAGUT5.js → chunk-X7FGBUA4.js} +2 -2
- package/dist/{chunk-SNTLJ646.js → chunk-XQIAXMRY.js} +1 -1
- package/dist/{chunk-X2UP5PNN.js → chunk-YSPIFSDI.js} +8 -8
- package/dist/{chunk-CRMXLNLC.js → chunk-ZCLKRGZ4.js} +6 -6
- package/dist/{chunk-UKE7WA3U.js → chunk-ZLYBY3R4.js} +3 -3
- package/dist/{chunk-QXIQB6OF.js → chunk-ZOWEW4GY.js} +3 -3
- package/dist/{chunk-7DMKTJHU.js → chunk-ZTRASVGZ.js} +16 -7
- package/dist/core/auth/config.js +14 -0
- package/dist/{auth → core/auth}/email/index.d.ts +1 -0
- package/dist/core/auth/email/index.js +11 -0
- package/dist/core/auth/email/sender.js +7 -0
- package/dist/{auth/core → core/auth}/email/token-generator.js +1 -1
- package/dist/{auth → core/auth}/errors/index.js +2 -2
- package/dist/{auth → core/auth}/index.d.ts +7 -7
- package/dist/{auth → core/auth}/index.js +23 -22
- package/dist/{auth/core → core/auth}/jwt/client.js +1 -1
- package/dist/{auth/core → core/auth}/jwt/cookie.d.ts +1 -1
- package/dist/core/auth/jwt/cookie.js +13 -0
- package/dist/{auth/core → core/auth}/jwt/index.d.ts +1 -1
- package/dist/core/auth/jwt/index.js +20 -0
- package/dist/{auth/core → core/auth}/jwt/types.d.ts +1 -1
- package/dist/{auth/core → core/auth}/jwt/types.js +1 -1
- package/dist/{auth/core → core/auth}/oauth/index.d.ts +5 -3
- package/dist/core/auth/oauth/index.js +45 -0
- package/dist/{auth/core → core/auth}/oauth/providers/github.d.ts +1 -1
- package/dist/{auth/core → core/auth}/oauth/providers/github.js +2 -2
- package/dist/{auth/core → core/auth}/oauth/providers/google.d.ts +1 -1
- package/dist/{auth/core → core/auth}/oauth/providers/google.js +2 -2
- package/dist/{auth/core → core/auth}/oauth/providers/index.js +7 -7
- package/dist/{auth/core → core/auth}/oauth/providers/kakao.d.ts +1 -1
- package/dist/{auth/core → core/auth}/oauth/providers/kakao.js +2 -2
- package/dist/{auth/core → core/auth}/oauth/providers/meta.d.ts +1 -1
- package/dist/{auth/core → core/auth}/oauth/providers/meta.js +2 -2
- package/dist/{auth/core → core/auth}/oauth/providers/microsoft.d.ts +6 -6
- package/dist/{auth/core → core/auth}/oauth/providers/microsoft.js +2 -2
- package/dist/core/auth/oauth/state-cookie.d.ts +28 -0
- package/dist/core/auth/oauth/state-cookie.js +15 -0
- package/dist/{auth/core → core/auth}/password/client-helper.d.ts +3 -3
- package/dist/{auth/core → core/auth}/password/client-helper.js +3 -3
- package/dist/{auth/core → core/auth}/password/index.d.ts +3 -3
- package/dist/{auth/core → core/auth}/password/index.js +2 -2
- package/dist/core/auth/services/email-verification.service.js +10 -0
- package/dist/core/auth/services/index.js +36 -0
- package/dist/core/auth/services/login.service.js +14 -0
- package/dist/core/auth/services/oauth-callback.service.js +14 -0
- package/dist/core/auth/services/password-reset.service.js +10 -0
- package/dist/core/auth/services/register.service.js +10 -0
- package/dist/core/auth/services/token-refresh.service.js +14 -0
- package/dist/{auth → core/auth}/types/index.js +2 -2
- package/dist/core/cache/cache-config.js +15 -0
- package/dist/{cache → core/cache}/cache-defaults.js +2 -2
- package/dist/{cache → core/cache}/cache-env.d.ts +3 -3
- package/dist/{cache → core/cache}/cache-env.js +7 -7
- package/dist/{cache → core/cache}/cache-factory.d.ts +1 -1
- package/dist/core/cache/cache-factory.js +33 -0
- package/dist/{cache → core/cache}/cache-invalidation.d.ts +3 -3
- package/dist/core/cache/cache-invalidation.js +29 -0
- package/dist/{cache → core/cache}/cache-redis.js +10 -10
- package/dist/{cache → core/cache}/cache-types.js +2 -2
- package/dist/core/cache/cache-wrapper.js +27 -0
- package/dist/{cache → core/cache}/cache.d.ts +1 -1
- package/dist/{cache → core/cache}/cache.js +20 -20
- package/dist/{cache → core/cache}/config.d.ts +5 -0
- package/dist/core/cache/config.js +15 -0
- package/dist/core/cache/hybrid-cache-manager.js +18 -0
- package/dist/{cache → core/cache}/index.js +20 -20
- package/dist/core/cache/inmemory-cache-manager.js +12 -0
- package/dist/core/cache/noop-cache-manager.js +14 -0
- package/dist/core/cache/redis-cache-manager.js +16 -0
- package/dist/core/config/common.js +13 -0
- package/dist/core/config/errors.js +7 -0
- package/dist/{config → core/config}/registry.d.ts +1 -1
- package/dist/{config → core/config}/registry.js +2 -2
- package/dist/core/config/warn.js +7 -0
- package/dist/{constants → core/constants}/error-codes.js +2 -2
- package/dist/{constants → core/constants}/index.js +19 -19
- package/dist/{constants → core/constants}/messages.js +2 -2
- package/dist/{constants → core/constants}/pagination.js +2 -2
- package/dist/{constants → core/constants}/security.js +2 -2
- package/dist/{constants → core/constants}/validation.js +2 -2
- package/dist/core/cors/index.js +13 -0
- package/dist/{error → core/error}/app-error.d.ts +2 -2
- package/dist/core/error/app-error.js +10 -0
- package/dist/core/error/extract-error-info.d.ts +11 -0
- package/dist/core/error/extract-error-info.js +7 -0
- package/dist/core/error/friendly-messages-v2.js +15 -0
- package/dist/{error → core/error}/friendly-messages.js +3 -3
- package/dist/core/error/index.d.ts +12 -0
- package/dist/core/error/index.js +59 -0
- package/dist/core/error/messages/en.js +7 -0
- package/dist/{error → core/error}/messages/index.js +4 -4
- package/dist/core/error/messages/ko.js +7 -0
- package/dist/{geolocation → core/geolocation}/batch-processor.d.ts +1 -1
- package/dist/core/geolocation/batch-processor.js +13 -0
- package/dist/{geolocation → core/geolocation}/config.js +4 -4
- package/dist/{geolocation → core/geolocation}/index.d.ts +3 -3
- package/dist/core/geolocation/index.js +40 -0
- package/dist/{geolocation → core/geolocation}/providers/base-provider.d.ts +2 -2
- package/dist/{geolocation → core/geolocation}/providers/base-provider.js +2 -2
- package/dist/{geolocation → core/geolocation}/providers/index.d.ts +1 -1
- package/dist/core/geolocation/providers/index.js +32 -0
- package/dist/{geolocation → core/geolocation}/providers/ip-api-provider.d.ts +2 -2
- package/dist/core/geolocation/providers/ip-api-provider.js +8 -0
- package/dist/{geolocation → core/geolocation}/providers/ipapi-co-provider.d.ts +2 -2
- package/dist/core/geolocation/providers/ipapi-co-provider.js +8 -0
- package/dist/{geolocation → core/geolocation}/providers/ipgeolocation-provider.d.ts +2 -2
- package/dist/core/geolocation/providers/ipgeolocation-provider.js +11 -0
- package/dist/{geolocation → core/geolocation}/providers/maxmind-provider.d.ts +2 -2
- package/dist/core/geolocation/providers/maxmind-provider.js +11 -0
- package/dist/core/logger/config.js +13 -0
- package/dist/{logger → core/logger}/logger.js +5 -5
- package/dist/core/storage/config.js +13 -0
- package/dist/{storage → core/storage}/r2-storage.js +7 -7
- package/dist/core/system/cpu.js +12 -0
- package/dist/core/system/disk.js +12 -0
- package/dist/core/system/environment.js +18 -0
- package/dist/{system → core/system}/health-check.d.ts +1 -1
- package/dist/core/system/health-check.js +15 -0
- package/dist/{system → core/system}/index.js +24 -24
- package/dist/core/system/memory.js +12 -0
- package/dist/core/system/network.js +12 -0
- package/dist/{system → core/system}/utils.js +6 -6
- package/dist/{types → core/types}/env.d.ts +7 -7
- package/dist/{types → core/types}/qr-code.js +2 -2
- package/dist/{utils → core/utils}/error-message-formatter.js +2 -2
- package/dist/{utils → core/utils}/format-number.js +2 -2
- package/dist/core/utils/index.d.ts +9 -0
- package/dist/core/utils/index.js +71 -0
- package/dist/{utils → core/utils}/input-validation.js +2 -2
- package/dist/{utils → core/utils}/ip-utils.js +2 -2
- package/dist/{utils → core/utils}/optimistic-lock.js +4 -4
- package/dist/{utils → core/utils}/sanitizer.js +2 -2
- package/dist/{utils → core/utils}/short-code-generator.js +2 -2
- package/dist/{utils → core/utils}/timezone.js +2 -2
- package/dist/{utils → core/utils}/type-guards.js +2 -2
- package/dist/{utils → core/utils}/url-normalizer.js +2 -2
- package/dist/{validators → core/validators}/index.js +2 -2
- package/dist/{validators → core/validators}/password-validator.js +2 -2
- package/dist/initialize.d.ts +10 -10
- package/dist/initialize.js +14 -14
- package/dist/{auth/handlers → next/auth-handlers}/forgot-password.handler.d.ts +1 -1
- package/dist/next/auth-handlers/forgot-password.handler.js +11 -0
- package/dist/{auth/handlers → next/auth-handlers}/index.d.ts +1 -1
- package/dist/{auth/handlers → next/auth-handlers}/index.js +43 -42
- package/dist/{auth/handlers → next/auth-handlers}/login.handler.d.ts +1 -1
- package/dist/next/auth-handlers/login.handler.js +14 -0
- package/dist/{auth/handlers → next/auth-handlers}/logout.handler.d.ts +1 -1
- package/dist/next/auth-handlers/logout.handler.js +12 -0
- package/dist/{auth/handlers → next/auth-handlers}/me.handler.d.ts +1 -1
- package/dist/next/auth-handlers/me.handler.js +14 -0
- package/dist/{auth/handlers → next/auth-handlers}/oauth-authorize.handler.d.ts +1 -1
- package/dist/next/auth-handlers/oauth-authorize.handler.js +17 -0
- package/dist/{auth/handlers → next/auth-handlers}/oauth-callback.handler.d.ts +1 -1
- package/dist/next/auth-handlers/oauth-callback.handler.js +24 -0
- package/dist/{auth/handlers → next/auth-handlers}/refresh.handler.d.ts +1 -1
- package/dist/next/auth-handlers/refresh.handler.js +15 -0
- package/dist/{auth/handlers → next/auth-handlers}/register.handler.d.ts +1 -1
- package/dist/next/auth-handlers/register.handler.js +11 -0
- package/dist/{auth/handlers → next/auth-handlers}/reset-password.handler.d.ts +1 -1
- package/dist/next/auth-handlers/reset-password.handler.js +11 -0
- package/dist/{auth/handlers → next/auth-handlers}/verify-email.handler.d.ts +1 -1
- package/dist/next/auth-handlers/verify-email.handler.js +11 -0
- package/dist/{auth/types → next/auth-types}/handler-types.d.ts +1 -1
- package/dist/next/auth-types/handler-types.js +1 -0
- package/dist/next/auth-types/index.d.ts +7 -0
- package/dist/next/auth-types/index.js +1 -0
- package/dist/next/error/error-handler.js +24 -0
- package/dist/next/error/index.d.ts +9 -0
- package/dist/{error → next/error}/index.js +19 -74
- package/dist/{error/core → next/error}/locale-detector.d.ts +1 -1
- package/dist/{error/core → next/error}/locale-detector.js +1 -1
- package/dist/{middleware → next/middleware}/auth.d.ts +2 -2
- package/dist/next/middleware/auth.js +28 -0
- package/dist/{middleware → next/middleware}/cors.d.ts +1 -1
- package/dist/next/middleware/cors.js +16 -0
- package/dist/next/middleware/error-handler.js +18 -0
- package/dist/{middleware → next/middleware}/index.js +27 -27
- package/dist/next/middleware/init-request.js +8 -0
- package/dist/next/middleware/middleware-chain.js +11 -0
- package/dist/{middleware → next/middleware}/rate-limit.d.ts +1 -1
- package/dist/next/middleware/rate-limit.js +17 -0
- package/dist/next/middleware/response-logger.js +11 -0
- package/dist/next/middleware/security.js +15 -0
- package/dist/{middleware → next/middleware}/types.d.ts +1 -1
- package/dist/next/middleware/wrappers.js +40 -0
- package/dist/{utils → next/utils}/api-helpers.js +3 -3
- package/dist/{utils → next/utils}/cors.js +6 -6
- package/dist/next/utils/csv-export-format.d.ts +11 -0
- package/dist/next/utils/csv-export-format.js +15 -0
- package/dist/{utils → next/utils}/csv-export.d.ts +0 -2
- package/dist/{utils → next/utils}/csv-export.js +6 -6
- package/dist/{utils → next/utils}/error-processor.d.ts +1 -1
- package/dist/{utils → next/utils}/error-processor.js +8 -8
- package/dist/{utils → next/utils}/index.d.ts +2 -5
- package/dist/{utils → next/utils}/index.js +32 -100
- package/dist/{auth/adapters/prisma → prisma/auth-adapter}/index.d.ts +1 -1
- package/dist/{auth/adapters/prisma → prisma/auth-adapter}/index.js +2 -2
- package/dist/react/components/ui/Alert.js +10 -0
- package/dist/react/components/ui/Badge.js +8 -0
- package/dist/react/components/ui/Button.js +8 -0
- package/dist/react/components/ui/DataTable.js +22 -0
- package/dist/{components → react/components}/ui/DomainDisplay.js +2 -2
- package/dist/react/components/ui/Input.js +8 -0
- package/dist/react/components/ui/Label.js +8 -0
- package/dist/{components → react/components}/ui/Pagination.js +3 -3
- package/dist/{components → react/components}/ui/Select.js +3 -3
- package/dist/react/components/ui/Skeleton.js +8 -0
- package/dist/{components → react/components}/ui/TimezoneDisplay.js +7 -7
- package/dist/{components → react/components}/ui/Tooltip.js +3 -3
- package/dist/react/components/ui/data-table/DataTable.js +22 -0
- package/dist/react/components/ui/data-table/DataTableBody.js +10 -0
- package/dist/react/components/ui/data-table/DataTableBulkActions.js +12 -0
- package/dist/react/components/ui/data-table/DataTableFilters.js +13 -0
- package/dist/react/components/ui/data-table/DataTablePagination.js +11 -0
- package/dist/react/components/ui/data-table/DataTableSearch.js +12 -0
- package/dist/react/components/ui/data-table/index.js +42 -0
- package/dist/{components → react/components}/ui/data-table/types.d.ts +5 -0
- package/dist/{components → react/components}/ui/data-table/types.js +2 -2
- package/dist/{components → react/components}/ui/loading-bar.js +3 -3
- package/dist/{error → react/error}/error-display.d.ts +2 -9
- package/dist/{error → react/error}/error-display.js +11 -9
- package/dist/react/error/index.d.ts +6 -0
- package/dist/react/error/index.js +30 -0
- package/dist/{hooks → react/hooks}/useDataTable.js +3 -3
- package/dist/react/hooks/useDebounce.js +7 -0
- package/dist/{hooks → react/hooks}/useExitIntent.js +2 -2
- package/dist/{hooks → react/hooks}/useTimezone.js +3 -3
- package/dist/{utils/client → react/utils}/client-utils.js +1 -1
- package/dist/{utils/client → react/utils}/qr-code.d.ts +1 -1
- package/dist/{utils/client → react/utils}/qr-code.js +1 -1
- package/package.json +147 -95
- package/dist/auth/config.js +0 -14
- package/dist/auth/core/jwt/cookie.js +0 -13
- package/dist/auth/core/jwt/index.js +0 -20
- package/dist/auth/core/oauth/index.js +0 -33
- package/dist/auth/email/index.js +0 -7
- package/dist/auth/email/sender.js +0 -7
- package/dist/auth/handlers/forgot-password.handler.js +0 -11
- package/dist/auth/handlers/login.handler.js +0 -14
- package/dist/auth/handlers/logout.handler.js +0 -12
- package/dist/auth/handlers/me.handler.js +0 -14
- package/dist/auth/handlers/oauth-authorize.handler.js +0 -16
- package/dist/auth/handlers/oauth-callback.handler.js +0 -23
- package/dist/auth/handlers/refresh.handler.js +0 -15
- package/dist/auth/handlers/register.handler.js +0 -11
- package/dist/auth/handlers/reset-password.handler.js +0 -11
- package/dist/auth/handlers/verify-email.handler.js +0 -11
- package/dist/auth/services/email-verification.service.js +0 -10
- package/dist/auth/services/index.js +0 -36
- package/dist/auth/services/login.service.js +0 -14
- package/dist/auth/services/oauth-callback.service.js +0 -14
- package/dist/auth/services/password-reset.service.js +0 -10
- package/dist/auth/services/register.service.js +0 -10
- package/dist/auth/services/token-refresh.service.js +0 -14
- package/dist/cache/cache-config.js +0 -15
- package/dist/cache/cache-factory.js +0 -33
- package/dist/cache/cache-invalidation.js +0 -29
- package/dist/cache/cache-wrapper.js +0 -27
- package/dist/cache/config.js +0 -13
- package/dist/cache/hybrid-cache-manager.js +0 -18
- package/dist/cache/inmemory-cache-manager.js +0 -12
- package/dist/cache/noop-cache-manager.js +0 -14
- package/dist/cache/redis-cache-manager.js +0 -16
- package/dist/components/ui/Alert.js +0 -10
- package/dist/components/ui/Badge.js +0 -8
- package/dist/components/ui/Button.js +0 -8
- package/dist/components/ui/DataTable.js +0 -22
- package/dist/components/ui/Input.js +0 -8
- package/dist/components/ui/Label.js +0 -8
- package/dist/components/ui/Skeleton.js +0 -8
- package/dist/components/ui/WorldMapChart.d.ts +0 -17
- package/dist/components/ui/WorldMapChart.js +0 -250
- package/dist/components/ui/data-table/DataTable.js +0 -22
- package/dist/components/ui/data-table/DataTableBody.js +0 -10
- package/dist/components/ui/data-table/DataTableBulkActions.js +0 -12
- package/dist/components/ui/data-table/DataTableFilters.js +0 -13
- package/dist/components/ui/data-table/DataTablePagination.js +0 -11
- package/dist/components/ui/data-table/DataTableSearch.js +0 -12
- package/dist/components/ui/data-table/index.js +0 -42
- package/dist/config/common.js +0 -13
- package/dist/config/errors.js +0 -7
- package/dist/config/warn.js +0 -7
- package/dist/error/app-error.js +0 -10
- package/dist/error/error-handler.js +0 -24
- package/dist/error/friendly-messages-v2.js +0 -15
- package/dist/error/index.d.ts +0 -22
- package/dist/error/messages/en.js +0 -7
- package/dist/error/messages/ko.js +0 -7
- package/dist/geolocation/batch-processor.js +0 -13
- package/dist/geolocation/index.js +0 -40
- package/dist/geolocation/providers/index.js +0 -32
- package/dist/geolocation/providers/ip-api-provider.js +0 -8
- package/dist/geolocation/providers/ipapi-co-provider.js +0 -8
- package/dist/geolocation/providers/ipgeolocation-provider.js +0 -11
- package/dist/geolocation/providers/maxmind-provider.js +0 -11
- package/dist/hooks/useDebounce.js +0 -7
- package/dist/logger/config.js +0 -13
- package/dist/middleware/auth.js +0 -28
- package/dist/middleware/cors-config.js +0 -13
- package/dist/middleware/cors.js +0 -16
- package/dist/middleware/error-handler.js +0 -18
- package/dist/middleware/init-request.js +0 -8
- package/dist/middleware/middleware-chain.js +0 -11
- package/dist/middleware/rate-limit.js +0 -17
- package/dist/middleware/response-logger.js +0 -11
- package/dist/middleware/security.js +0 -15
- package/dist/middleware/wrappers.js +0 -40
- package/dist/storage/config.js +0 -13
- package/dist/system/cpu.js +0 -12
- package/dist/system/disk.js +0 -12
- package/dist/system/environment.js +0 -18
- package/dist/system/health-check.js +0 -15
- package/dist/system/memory.js +0 -12
- package/dist/system/network.js +0 -12
- package/dist/world_countries-C2WUL2CQ.js +0 -279
- /package/dist/{auth/types/handler-types.js → chunk-7PEVOMBO.js} +0 -0
- /package/dist/{chunk-6CLQRZC2.js → chunk-CDALZTPN.js} +0 -0
- /package/dist/{chunk-EBUEBEJX.js → chunk-HH4ZKZHD.js} +0 -0
- /package/dist/{chunk-R4SXQYIT.js → chunk-M22Z2NO6.js} +0 -0
- /package/dist/{auth → core/auth}/config.d.ts +0 -0
- /package/dist/{auth → core/auth}/email/sender.d.ts +0 -0
- /package/dist/{auth/core → core/auth}/email/token-generator.d.ts +0 -0
- /package/dist/{auth → core/auth}/errors/index.d.ts +0 -0
- /package/dist/{auth/core → core/auth}/jwt/client.d.ts +0 -0
- /package/dist/{auth/core → core/auth}/oauth/providers/index.d.ts +0 -0
- /package/dist/{auth → core/auth}/services/email-verification.service.d.ts +0 -0
- /package/dist/{auth → core/auth}/services/index.d.ts +0 -0
- /package/dist/{auth → core/auth}/services/login.service.d.ts +0 -0
- /package/dist/{auth → core/auth}/services/oauth-callback.service.d.ts +0 -0
- /package/dist/{auth → core/auth}/services/password-reset.service.d.ts +0 -0
- /package/dist/{auth → core/auth}/services/register.service.d.ts +0 -0
- /package/dist/{auth → core/auth}/services/token-refresh.service.d.ts +0 -0
- /package/dist/{auth → core/auth}/types/index.d.ts +0 -0
- /package/dist/{cache → core/cache}/cache-config.d.ts +0 -0
- /package/dist/{cache → core/cache}/cache-defaults.d.ts +0 -0
- /package/dist/{cache → core/cache}/cache-redis.d.ts +0 -0
- /package/dist/{cache → core/cache}/cache-types.d.ts +0 -0
- /package/dist/{cache → core/cache}/cache-wrapper.d.ts +0 -0
- /package/dist/{cache → core/cache}/hybrid-cache-manager.d.ts +0 -0
- /package/dist/{cache → core/cache}/index.d.ts +0 -0
- /package/dist/{cache → core/cache}/inmemory-cache-manager.d.ts +0 -0
- /package/dist/{cache → core/cache}/noop-cache-manager.d.ts +0 -0
- /package/dist/{cache → core/cache}/redis-cache-manager.d.ts +0 -0
- /package/dist/{config → core/config}/common.d.ts +0 -0
- /package/dist/{config → core/config}/errors.d.ts +0 -0
- /package/dist/{config → core/config}/warn.d.ts +0 -0
- /package/dist/{constants → core/constants}/error-codes.d.ts +0 -0
- /package/dist/{constants → core/constants}/index.d.ts +0 -0
- /package/dist/{constants → core/constants}/messages.d.ts +0 -0
- /package/dist/{constants → core/constants}/pagination.d.ts +0 -0
- /package/dist/{constants → core/constants}/security.d.ts +0 -0
- /package/dist/{constants → core/constants}/validation.d.ts +0 -0
- /package/dist/{middleware/cors-config.d.ts → core/cors/index.d.ts} +0 -0
- /package/dist/{error → core/error}/friendly-messages-v2.d.ts +0 -0
- /package/dist/{error → core/error}/friendly-messages.d.ts +0 -0
- /package/dist/{error → core/error}/messages/en.d.ts +0 -0
- /package/dist/{error → core/error}/messages/index.d.ts +0 -0
- /package/dist/{error → core/error}/messages/ko.d.ts +0 -0
- /package/dist/{error → core/error}/messages/types.d.ts +0 -0
- /package/dist/{error → core/error}/messages/types.js +0 -0
- /package/dist/{geolocation → core/geolocation}/config.d.ts +0 -0
- /package/dist/{logger → core/logger}/config.d.ts +0 -0
- /package/dist/{logger → core/logger}/logger.d.ts +0 -0
- /package/dist/{storage → core/storage}/config.d.ts +0 -0
- /package/dist/{storage → core/storage}/r2-storage.d.ts +0 -0
- /package/dist/{system → core/system}/cpu.d.ts +0 -0
- /package/dist/{system → core/system}/disk.d.ts +0 -0
- /package/dist/{system → core/system}/environment.d.ts +0 -0
- /package/dist/{system → core/system}/index.d.ts +0 -0
- /package/dist/{system → core/system}/memory.d.ts +0 -0
- /package/dist/{system → core/system}/network.d.ts +0 -0
- /package/dist/{system → core/system}/types.d.ts +0 -0
- /package/dist/{middleware → core/system}/types.js +0 -0
- /package/dist/{system → core/system}/utils.d.ts +0 -0
- /package/dist/{types → core/types}/api.d.ts +0 -0
- /package/dist/{types → core/types}/api.js +0 -0
- /package/dist/{types → core/types}/database.d.ts +0 -0
- /package/dist/{types → core/types}/database.js +0 -0
- /package/dist/{types → core/types}/env.js +0 -0
- /package/dist/{types → core/types}/geoip.d.ts +0 -0
- /package/dist/{types → core/types}/geoip.js +0 -0
- /package/dist/{types → core/types}/i18n.d.ts +0 -0
- /package/dist/{types → core/types}/i18n.js +0 -0
- /package/dist/{types → core/types}/qr-code.d.ts +0 -0
- /package/dist/{types → core/types}/user.d.ts +0 -0
- /package/dist/{types → core/types}/user.js +0 -0
- /package/dist/{utils → core/utils}/error-message-formatter.d.ts +0 -0
- /package/dist/{utils → core/utils}/format-number.d.ts +0 -0
- /package/dist/{utils → core/utils}/input-validation.d.ts +0 -0
- /package/dist/{utils → core/utils}/ip-utils.d.ts +0 -0
- /package/dist/{utils → core/utils}/optimistic-lock.d.ts +0 -0
- /package/dist/{utils → core/utils}/sanitizer.d.ts +0 -0
- /package/dist/{utils → core/utils}/short-code-generator.d.ts +0 -0
- /package/dist/{utils → core/utils}/timezone.d.ts +0 -0
- /package/dist/{utils → core/utils}/type-guards.d.ts +0 -0
- /package/dist/{utils → core/utils}/url-normalizer.d.ts +0 -0
- /package/dist/{validators → core/validators}/index.d.ts +0 -0
- /package/dist/{validators → core/validators}/password-validator.d.ts +0 -0
- /package/dist/{error → next/error}/ErrorBoundary.d.ts +0 -0
- /package/dist/{error → next/error}/error-handler.d.ts +0 -0
- /package/dist/{middleware → next/middleware}/error-handler.d.ts +0 -0
- /package/dist/{middleware → next/middleware}/index.d.ts +0 -0
- /package/dist/{middleware → next/middleware}/init-request.d.ts +0 -0
- /package/dist/{middleware → next/middleware}/middleware-chain.d.ts +0 -0
- /package/dist/{middleware → next/middleware}/response-logger.d.ts +0 -0
- /package/dist/{middleware → next/middleware}/security.d.ts +0 -0
- /package/dist/{system → next/middleware}/types.js +0 -0
- /package/dist/{middleware → next/middleware}/wrappers.d.ts +0 -0
- /package/dist/{utils → next/utils}/api-helpers.d.ts +0 -0
- /package/dist/{utils → next/utils}/cors.d.ts +0 -0
- /package/dist/{components → react/components}/ui/Alert.d.ts +0 -0
- /package/dist/{components → react/components}/ui/Badge.d.ts +0 -0
- /package/dist/{components → react/components}/ui/Button.d.ts +0 -0
- /package/dist/{components → react/components}/ui/DataTable.d.ts +0 -0
- /package/dist/{components → react/components}/ui/DomainDisplay.d.ts +0 -0
- /package/dist/{components → react/components}/ui/Input.d.ts +0 -0
- /package/dist/{components → react/components}/ui/Label.d.ts +0 -0
- /package/dist/{components → react/components}/ui/Pagination.d.ts +0 -0
- /package/dist/{components → react/components}/ui/Select.d.ts +0 -0
- /package/dist/{components → react/components}/ui/Skeleton.d.ts +0 -0
- /package/dist/{components → react/components}/ui/TimezoneDisplay.d.ts +0 -0
- /package/dist/{components → react/components}/ui/Tooltip.d.ts +0 -0
- /package/dist/{components → react/components}/ui/data-table/DataTable.d.ts +0 -0
- /package/dist/{components → react/components}/ui/data-table/DataTableBody.d.ts +0 -0
- /package/dist/{components → react/components}/ui/data-table/DataTableBulkActions.d.ts +0 -0
- /package/dist/{components → react/components}/ui/data-table/DataTableFilters.d.ts +0 -0
- /package/dist/{components → react/components}/ui/data-table/DataTablePagination.d.ts +0 -0
- /package/dist/{components → react/components}/ui/data-table/DataTableSearch.d.ts +0 -0
- /package/dist/{components → react/components}/ui/data-table/index.d.ts +0 -0
- /package/dist/{components → react/components}/ui/loading-bar.d.ts +0 -0
- /package/dist/{hooks → react/hooks}/useDataTable.d.ts +0 -0
- /package/dist/{hooks → react/hooks}/useDebounce.d.ts +0 -0
- /package/dist/{hooks → react/hooks}/useExitIntent.d.ts +0 -0
- /package/dist/{hooks → react/hooks}/useTimezone.d.ts +0 -0
- /package/dist/{utils/client → react/utils}/client-utils.d.ts +0 -0
|
@@ -1,17 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
OAuthCallbackService
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-BBE4RXR7.js";
|
|
4
4
|
import {
|
|
5
5
|
OAuthManager
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-UQ3Z3ZAF.js";
|
|
7
|
+
import {
|
|
8
|
+
OAUTH_STATE_COOKIE,
|
|
9
|
+
clearOAuthStateCookie,
|
|
10
|
+
validateOAuthState
|
|
11
|
+
} from "./chunk-JLRMET4V.js";
|
|
7
12
|
import {
|
|
8
13
|
setTokenCookies
|
|
9
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-RJGYONRO.js";
|
|
10
15
|
import {
|
|
11
16
|
AuthError
|
|
12
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-5GWGARXI.js";
|
|
13
18
|
|
|
14
|
-
// src/auth
|
|
19
|
+
// src/next/auth-handlers/oauth-callback.handler.ts
|
|
15
20
|
import { NextResponse } from "next/server";
|
|
16
21
|
function createOAuthCallbackHandler(options) {
|
|
17
22
|
const { dependencies, jwt, oauth, hooks, cookie, urls } = options;
|
|
@@ -24,7 +29,12 @@ function createOAuthCallbackHandler(options) {
|
|
|
24
29
|
logger: dependencies.logger
|
|
25
30
|
});
|
|
26
31
|
return async (request) => {
|
|
27
|
-
var _a, _b, _c, _d;
|
|
32
|
+
var _a, _b, _c, _d, _e;
|
|
33
|
+
const stateCookieOpts = {
|
|
34
|
+
secure: cookie == null ? void 0 : cookie.secure,
|
|
35
|
+
sameSite: cookie == null ? void 0 : cookie.sameSite,
|
|
36
|
+
domain: cookie == null ? void 0 : cookie.domain
|
|
37
|
+
};
|
|
28
38
|
try {
|
|
29
39
|
const url = new URL(request.url);
|
|
30
40
|
const code = url.searchParams.get("code");
|
|
@@ -32,6 +42,15 @@ function createOAuthCallbackHandler(options) {
|
|
|
32
42
|
if (!code || !provider || !(oauth == null ? void 0 : oauth[provider])) {
|
|
33
43
|
return NextResponse.json({ success: false, error: "Invalid callback" }, { status: 400 });
|
|
34
44
|
}
|
|
45
|
+
const stateParam = url.searchParams.get("state");
|
|
46
|
+
const stateCookie = (_b = request.cookies.get(OAUTH_STATE_COOKIE)) == null ? void 0 : _b.value;
|
|
47
|
+
if (!validateOAuthState(stateCookie, stateParam)) {
|
|
48
|
+
const res = NextResponse.json(
|
|
49
|
+
{ success: false, error: "Invalid OAuth state" },
|
|
50
|
+
{ status: 400 }
|
|
51
|
+
);
|
|
52
|
+
return clearOAuthStateCookie(res, stateCookieOpts);
|
|
53
|
+
}
|
|
35
54
|
const providers = {};
|
|
36
55
|
for (const [name, config] of Object.entries(oauth)) {
|
|
37
56
|
providers[name] = config;
|
|
@@ -41,12 +60,15 @@ function createOAuthCallbackHandler(options) {
|
|
|
41
60
|
}, warn() {
|
|
42
61
|
}, error() {
|
|
43
62
|
} };
|
|
44
|
-
const manager = new OAuthManager({ providers }, (
|
|
63
|
+
const manager = new OAuthManager({ providers }, (_c = dependencies.logger) != null ? _c : noopLogger);
|
|
45
64
|
const accessToken = await manager.exchangeCodeForToken(provider, code);
|
|
46
65
|
const userInfo = await manager.getUserInfo(provider, accessToken);
|
|
47
66
|
if (hooks == null ? void 0 : hooks.allowEmail) {
|
|
48
67
|
const allowed = await hooks.allowEmail(userInfo.email);
|
|
49
|
-
if (!allowed)
|
|
68
|
+
if (!allowed) {
|
|
69
|
+
const res = NextResponse.json({ success: false, error: "Email not allowed" }, { status: 403 });
|
|
70
|
+
return clearOAuthStateCookie(res, stateCookieOpts);
|
|
71
|
+
}
|
|
50
72
|
}
|
|
51
73
|
const result = await callbackService.handleCallback({
|
|
52
74
|
provider,
|
|
@@ -62,18 +84,20 @@ function createOAuthCallbackHandler(options) {
|
|
|
62
84
|
if (redirect) {
|
|
63
85
|
const response2 = NextResponse.redirect(redirect);
|
|
64
86
|
setTokenCookies(response2, result.tokens, { secure: cookie == null ? void 0 : cookie.secure });
|
|
65
|
-
return response2;
|
|
87
|
+
return clearOAuthStateCookie(response2, stateCookieOpts);
|
|
66
88
|
}
|
|
67
89
|
}
|
|
68
|
-
const redirectUrl = (
|
|
90
|
+
const redirectUrl = (_e = (_d = urls.afterOAuth) != null ? _d : urls.afterLogin) != null ? _e : "/";
|
|
69
91
|
const response = NextResponse.redirect(new URL(redirectUrl, urls.baseUrl));
|
|
70
92
|
setTokenCookies(response, result.tokens, { secure: cookie == null ? void 0 : cookie.secure });
|
|
71
|
-
return response;
|
|
93
|
+
return clearOAuthStateCookie(response, stateCookieOpts);
|
|
72
94
|
} catch (error) {
|
|
73
95
|
if (error instanceof AuthError) {
|
|
74
|
-
|
|
96
|
+
const res2 = NextResponse.json({ success: false, error: error.message }, { status: error.statusCode });
|
|
97
|
+
return clearOAuthStateCookie(res2, stateCookieOpts);
|
|
75
98
|
}
|
|
76
|
-
|
|
99
|
+
const res = NextResponse.json({ success: false, error: "OAuth callback failed" }, { status: 500 });
|
|
100
|
+
return clearOAuthStateCookie(res, stateCookieOpts);
|
|
77
101
|
}
|
|
78
102
|
};
|
|
79
103
|
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AppError
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ATAQRXTH.js";
|
|
4
4
|
import {
|
|
5
5
|
ERROR_CODES
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-XQIAXMRY.js";
|
|
7
7
|
import {
|
|
8
8
|
logger
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-KG65BFPK.js";
|
|
10
10
|
|
|
11
|
-
// src/middleware/rate-limit.ts
|
|
11
|
+
// src/next/middleware/rate-limit.ts
|
|
12
12
|
var GLOBAL_KEY = "__withwiz_rateLimitAdapter__";
|
|
13
13
|
var GLOBAL_WARN_KEY = "__withwiz_rateLimitWarningLogged__";
|
|
14
14
|
function _getAdapter() {
|
|
@@ -2,9 +2,9 @@ import {
|
|
|
2
2
|
logApiRequest,
|
|
3
3
|
logApiResponse,
|
|
4
4
|
logger
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-KG65BFPK.js";
|
|
6
6
|
|
|
7
|
-
// src/middleware/response-logger.ts
|
|
7
|
+
// src/next/middleware/response-logger.ts
|
|
8
8
|
var responseLoggerMiddleware = async (context, next) => {
|
|
9
9
|
const startTime = context.startTime || Date.now();
|
|
10
10
|
try {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
BaseGeoIPProvider,
|
|
3
3
|
truncateString
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-CCNZFZW6.js";
|
|
5
5
|
import {
|
|
6
6
|
getGeolocationConfig
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-CRJUFA73.js";
|
|
8
8
|
|
|
9
|
-
// src/geolocation/providers/ipgeolocation-provider.ts
|
|
9
|
+
// src/core/geolocation/providers/ipgeolocation-provider.ts
|
|
10
10
|
var IPGeolocationProvider = class extends BaseGeoIPProvider {
|
|
11
11
|
constructor() {
|
|
12
12
|
super(...arguments);
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ConfigurationError
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-F3R3UYBF.js";
|
|
4
4
|
import {
|
|
5
5
|
CACHE_DURATION_DEFAULTS,
|
|
6
6
|
CACHE_FALLBACK_DEFAULTS,
|
|
7
7
|
CACHE_HEALTH_DEFAULTS,
|
|
8
8
|
CACHE_TTL_DEFAULTS,
|
|
9
9
|
INMEMORY_CACHE_DEFAULTS
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-ERFD6YAW.js";
|
|
11
11
|
import {
|
|
12
12
|
__spreadValues
|
|
13
13
|
} from "./chunk-ORMEWXMH.js";
|
|
14
14
|
|
|
15
|
-
// src/cache/config.ts
|
|
15
|
+
// src/core/cache/config.ts
|
|
16
16
|
function initializeCache(input) {
|
|
17
17
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B, _C, _D, _E, _F, _G, _H, _I, _J, _K, _L, _M, _N, _O, _P, _Q, _R, _S, _T, _U, _V, _W, _X, _Y, _Z, __;
|
|
18
18
|
(_a = globalThis.__withwiz_config) != null ? _a : globalThis.__withwiz_config = {};
|
|
@@ -89,6 +89,10 @@ function getResolvedCacheConfig() {
|
|
|
89
89
|
}
|
|
90
90
|
return cache;
|
|
91
91
|
}
|
|
92
|
+
function isCacheConfigInitialized() {
|
|
93
|
+
var _a;
|
|
94
|
+
return !!((_a = globalThis.__withwiz_config) == null ? void 0 : _a.cache);
|
|
95
|
+
}
|
|
92
96
|
function resetCache() {
|
|
93
97
|
if (globalThis.__withwiz_config) delete globalThis.__withwiz_config.cache;
|
|
94
98
|
}
|
|
@@ -96,5 +100,6 @@ function resetCache() {
|
|
|
96
100
|
export {
|
|
97
101
|
initializeCache,
|
|
98
102
|
getResolvedCacheConfig,
|
|
103
|
+
isCacheConfigInitialized,
|
|
99
104
|
resetCache
|
|
100
105
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
cn
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-4K76HG4V.js";
|
|
4
4
|
import {
|
|
5
5
|
__objRest,
|
|
6
6
|
__spreadProps,
|
|
7
7
|
__spreadValues
|
|
8
8
|
} from "./chunk-ORMEWXMH.js";
|
|
9
9
|
|
|
10
|
-
// src/components/ui/Select.tsx
|
|
10
|
+
// src/react/components/ui/Select.tsx
|
|
11
11
|
import * as SelectPrimitive from "@radix-ui/react-select";
|
|
12
12
|
import { CheckIcon, ChevronDownIcon, ChevronUpIcon } from "lucide-react";
|
|
13
13
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
OAuthError
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-5GWGARXI.js";
|
|
4
4
|
|
|
5
|
-
// src/auth/
|
|
6
|
-
import {
|
|
5
|
+
// src/core/auth/oauth/providers/microsoft.ts
|
|
6
|
+
import { jwtVerify, createRemoteJWKSet } from "jose";
|
|
7
|
+
var MS_JWKS = createRemoteJWKSet(
|
|
8
|
+
new URL("https://login.microsoftonline.com/common/discovery/v2.0/keys")
|
|
9
|
+
);
|
|
7
10
|
var MicrosoftOAuthProvider = class {
|
|
8
11
|
constructor() {
|
|
9
12
|
this.name = "microsoft";
|
|
@@ -49,8 +52,7 @@ var MicrosoftOAuthProvider = class {
|
|
|
49
52
|
if (!data.id_token) {
|
|
50
53
|
throw new OAuthError("Missing id_token in Microsoft token response", "INVALID_RESPONSE");
|
|
51
54
|
}
|
|
52
|
-
|
|
53
|
-
assertMicrosoftClaims(claims, config.clientId);
|
|
55
|
+
await verifyMicrosoftClaims(data.id_token, config.clientId);
|
|
54
56
|
return {
|
|
55
57
|
access_token: data.id_token,
|
|
56
58
|
token_type: (_a = data.token_type) != null ? _a : "Bearer",
|
|
@@ -61,8 +63,7 @@ var MicrosoftOAuthProvider = class {
|
|
|
61
63
|
}
|
|
62
64
|
async getUserInfo(idToken) {
|
|
63
65
|
var _a, _b;
|
|
64
|
-
const claims =
|
|
65
|
-
assertMicrosoftClaims(claims);
|
|
66
|
+
const claims = await verifyMicrosoftClaims(idToken);
|
|
66
67
|
return {
|
|
67
68
|
id: claims.oid,
|
|
68
69
|
email: (_a = claims.email) != null ? _a : claims.preferred_username,
|
|
@@ -72,12 +73,23 @@ var MicrosoftOAuthProvider = class {
|
|
|
72
73
|
};
|
|
73
74
|
}
|
|
74
75
|
};
|
|
75
|
-
function
|
|
76
|
+
async function verifyMicrosoftClaims(token, expectedAud) {
|
|
77
|
+
let claims;
|
|
76
78
|
try {
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
79
|
+
const { payload } = await jwtVerify(token, MS_JWKS, { algorithms: ["RS256"] });
|
|
80
|
+
claims = payload;
|
|
81
|
+
} catch (err) {
|
|
82
|
+
const code = err == null ? void 0 : err.code;
|
|
83
|
+
if (code === "ERR_JWT_EXPIRED") {
|
|
84
|
+
throw new OAuthError("Invalid Microsoft id_token: expired", "INVALID_RESPONSE");
|
|
85
|
+
}
|
|
86
|
+
throw new OAuthError(
|
|
87
|
+
"Invalid Microsoft id_token: signature verification failed",
|
|
88
|
+
"INVALID_RESPONSE"
|
|
89
|
+
);
|
|
80
90
|
}
|
|
91
|
+
assertMicrosoftClaims(claims, expectedAud);
|
|
92
|
+
return claims;
|
|
81
93
|
}
|
|
82
94
|
function assertMicrosoftClaims(claims, expectedAud) {
|
|
83
95
|
if (!claims.iss || !/^https:\/\/login\.microsoftonline\.com\/(?!common\/|consumers\/|organizations\/)[\w-]+\/v2\.0$/.test(claims.iss)) {
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getCacheManager,
|
|
3
3
|
getEffectiveCacheBackend
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-B6L5XV7O.js";
|
|
5
5
|
import {
|
|
6
6
|
logger
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-KG65BFPK.js";
|
|
8
8
|
import {
|
|
9
9
|
getCacheConfig,
|
|
10
10
|
getCacheTTL
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-MREY2W7N.js";
|
|
12
12
|
import {
|
|
13
13
|
isCacheEnabled
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-7F5X6F7X.js";
|
|
15
15
|
|
|
16
|
-
// src/cache/cache-wrapper.ts
|
|
16
|
+
// src/core/cache/cache-wrapper.ts
|
|
17
17
|
function getCacheBackendLabel() {
|
|
18
18
|
const backend = getEffectiveCacheBackend();
|
|
19
19
|
switch (backend) {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
runCommand,
|
|
3
3
|
runMacCommand
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-4KJZRI74.js";
|
|
5
5
|
import {
|
|
6
6
|
logger
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-KG65BFPK.js";
|
|
8
8
|
|
|
9
|
-
// src/system/cpu.ts
|
|
9
|
+
// src/core/system/cpu.ts
|
|
10
10
|
import os from "os";
|
|
11
11
|
async function getCpuInfo() {
|
|
12
12
|
try {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
configWarn
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-6J2EJVND.js";
|
|
4
4
|
import {
|
|
5
5
|
ConfigurationError
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-F3R3UYBF.js";
|
|
7
7
|
|
|
8
|
-
// src/logger/config.ts
|
|
8
|
+
// src/core/logger/config.ts
|
|
9
9
|
function initializeLogger(config) {
|
|
10
10
|
var _a, _b, _c, _d, _e, _f;
|
|
11
11
|
(_a = globalThis.__withwiz_config) != null ? _a : globalThis.__withwiz_config = {};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PasswordResetService
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-N5VOFGF3.js";
|
|
4
4
|
import {
|
|
5
5
|
AuthError
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-5GWGARXI.js";
|
|
7
7
|
|
|
8
|
-
// src/auth
|
|
8
|
+
// src/next/auth-handlers/reset-password.handler.ts
|
|
9
9
|
import { NextResponse } from "next/server";
|
|
10
10
|
import { z } from "zod";
|
|
11
11
|
var schema = z.object({
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AppError
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ATAQRXTH.js";
|
|
4
4
|
import {
|
|
5
5
|
ERROR_CODES,
|
|
6
6
|
formatErrorMessage
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-XQIAXMRY.js";
|
|
8
8
|
import {
|
|
9
9
|
logApiRequest,
|
|
10
10
|
logApiResponse,
|
|
11
11
|
logger
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-KG65BFPK.js";
|
|
13
13
|
|
|
14
|
-
// src/utils/error-processor.ts
|
|
14
|
+
// src/next/utils/error-processor.ts
|
|
15
15
|
import { NextResponse } from "next/server";
|
|
16
16
|
import { z } from "zod";
|
|
17
17
|
var PRISMA_ERROR_MAP = {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
cn
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-4K76HG4V.js";
|
|
4
4
|
import {
|
|
5
5
|
__objRest,
|
|
6
6
|
__spreadValues
|
|
7
7
|
} from "./chunk-ORMEWXMH.js";
|
|
8
8
|
|
|
9
|
-
// src/components/ui/Label.tsx
|
|
9
|
+
// src/react/components/ui/Label.tsx
|
|
10
10
|
import { jsx } from "react/jsx-runtime";
|
|
11
11
|
function Label(_a) {
|
|
12
12
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
cn
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-4K76HG4V.js";
|
|
4
4
|
|
|
5
|
-
// src/components/ui/Pagination.tsx
|
|
5
|
+
// src/react/components/ui/Pagination.tsx
|
|
6
6
|
import { ChevronLeft, ChevronRight, MoreHorizontal } from "lucide-react";
|
|
7
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
8
|
function Pagination({ children, className }) {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
logger
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-KG65BFPK.js";
|
|
4
4
|
import {
|
|
5
5
|
DEFAULT_INMEMORY_CONFIG
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-O4L6RI5S.js";
|
|
7
7
|
import {
|
|
8
8
|
__spreadProps,
|
|
9
9
|
__spreadValues
|
|
10
10
|
} from "./chunk-ORMEWXMH.js";
|
|
11
11
|
|
|
12
|
-
// src/cache/inmemory-cache-manager.ts
|
|
12
|
+
// src/core/cache/inmemory-cache-manager.ts
|
|
13
13
|
var InMemoryCacheManager = class _InMemoryCacheManager {
|
|
14
14
|
constructor(prefix, config) {
|
|
15
15
|
this.accessOrder = [];
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
logger
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-KG65BFPK.js";
|
|
4
4
|
import {
|
|
5
5
|
__spreadValues
|
|
6
6
|
} from "./chunk-ORMEWXMH.js";
|
|
7
7
|
|
|
8
|
-
// src/utils/csv-export.ts
|
|
9
|
-
import { format as dateFnsFormat } from "date-fns";
|
|
8
|
+
// src/next/utils/csv-export.ts
|
|
10
9
|
import { NextResponse } from "next/server";
|
|
11
10
|
function escapeCsvField(value) {
|
|
12
11
|
if (value === null || value === void 0) {
|
|
@@ -117,15 +116,6 @@ var dateFormatter = {
|
|
|
117
116
|
english: (date) => {
|
|
118
117
|
if (!date) return "";
|
|
119
118
|
return date.toLocaleString("en-US");
|
|
120
|
-
},
|
|
121
|
-
/** 커스텀 형식 (date-fns 사용) */
|
|
122
|
-
custom: (date, formatStr) => {
|
|
123
|
-
if (!date) return "";
|
|
124
|
-
try {
|
|
125
|
-
return dateFnsFormat(date, formatStr);
|
|
126
|
-
} catch (e) {
|
|
127
|
-
return date.toISOString();
|
|
128
|
-
}
|
|
129
119
|
}
|
|
130
120
|
};
|
|
131
121
|
var boolFormatter = {
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AppError
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ATAQRXTH.js";
|
|
4
4
|
import {
|
|
5
5
|
ERROR_CODES,
|
|
6
6
|
classifyError,
|
|
7
7
|
formatErrorMessage,
|
|
8
8
|
getHttpStatus
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-XQIAXMRY.js";
|
|
10
10
|
import {
|
|
11
11
|
AuthError
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-5GWGARXI.js";
|
|
13
13
|
import {
|
|
14
14
|
logger
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-KG65BFPK.js";
|
|
16
16
|
import {
|
|
17
17
|
__spreadProps,
|
|
18
18
|
__spreadValues
|
|
19
19
|
} from "./chunk-ORMEWXMH.js";
|
|
20
20
|
|
|
21
|
-
// src/error/error-handler.ts
|
|
21
|
+
// src/next/error/error-handler.ts
|
|
22
22
|
import { NextResponse } from "next/server";
|
|
23
23
|
import { z } from "zod";
|
|
24
24
|
var AUTH_ERROR_CODE_MAP = {
|
|
@@ -3,19 +3,19 @@ import {
|
|
|
3
3
|
isRedisGloballyDisabled,
|
|
4
4
|
notifyRedisError,
|
|
5
5
|
resetRedisGlobalState
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-6TUDUOGC.js";
|
|
7
7
|
import {
|
|
8
8
|
logger
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-KG65BFPK.js";
|
|
10
10
|
import {
|
|
11
11
|
getENV,
|
|
12
12
|
isCacheEnabled
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-7F5X6F7X.js";
|
|
14
14
|
import {
|
|
15
15
|
__spreadValues
|
|
16
16
|
} from "./chunk-ORMEWXMH.js";
|
|
17
17
|
|
|
18
|
-
// src/cache/redis-cache-manager.ts
|
|
18
|
+
// src/core/cache/redis-cache-manager.ts
|
|
19
19
|
var RedisCacheManager = class _RedisCacheManager {
|
|
20
20
|
constructor(prefix) {
|
|
21
21
|
this.prefix = prefix;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
// src/core/auth/oauth/state-cookie.ts
|
|
2
|
+
var OAUTH_STATE_COOKIE = "oauth_state";
|
|
3
|
+
var STATE_COOKIE_MAX_AGE = 600;
|
|
4
|
+
function generateOAuthState() {
|
|
5
|
+
return crypto.randomUUID();
|
|
6
|
+
}
|
|
7
|
+
function buildCookieOptions(options, maxAge) {
|
|
8
|
+
var _a, _b;
|
|
9
|
+
const opts = {
|
|
10
|
+
httpOnly: true,
|
|
11
|
+
secure: (_a = options.secure) != null ? _a : false,
|
|
12
|
+
sameSite: (_b = options.sameSite) != null ? _b : "lax",
|
|
13
|
+
path: "/",
|
|
14
|
+
maxAge
|
|
15
|
+
};
|
|
16
|
+
if (options.domain) opts.domain = options.domain;
|
|
17
|
+
return opts;
|
|
18
|
+
}
|
|
19
|
+
function setOAuthStateCookie(response, state, options = {}) {
|
|
20
|
+
response.cookies.set(
|
|
21
|
+
OAUTH_STATE_COOKIE,
|
|
22
|
+
state,
|
|
23
|
+
buildCookieOptions(options, STATE_COOKIE_MAX_AGE)
|
|
24
|
+
);
|
|
25
|
+
return response;
|
|
26
|
+
}
|
|
27
|
+
function clearOAuthStateCookie(response, options = {}) {
|
|
28
|
+
response.cookies.set(
|
|
29
|
+
OAUTH_STATE_COOKIE,
|
|
30
|
+
"",
|
|
31
|
+
buildCookieOptions(options, 0)
|
|
32
|
+
);
|
|
33
|
+
return response;
|
|
34
|
+
}
|
|
35
|
+
function validateOAuthState(cookieValue, queryState) {
|
|
36
|
+
if (typeof cookieValue !== "string" || typeof queryState !== "string") {
|
|
37
|
+
return false;
|
|
38
|
+
}
|
|
39
|
+
if (cookieValue.length === 0 || queryState.length === 0) return false;
|
|
40
|
+
return cookieValue === queryState;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export {
|
|
44
|
+
OAUTH_STATE_COOKIE,
|
|
45
|
+
generateOAuthState,
|
|
46
|
+
setOAuthStateCookie,
|
|
47
|
+
clearOAuthStateCookie,
|
|
48
|
+
validateOAuthState
|
|
49
|
+
};
|
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
OAuthManager
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-UQ3Z3ZAF.js";
|
|
4
|
+
import {
|
|
5
|
+
generateOAuthState,
|
|
6
|
+
setOAuthStateCookie
|
|
7
|
+
} from "./chunk-JLRMET4V.js";
|
|
4
8
|
|
|
5
|
-
// src/auth
|
|
9
|
+
// src/next/auth-handlers/oauth-authorize.handler.ts
|
|
6
10
|
import { NextResponse } from "next/server";
|
|
7
11
|
function createOAuthAuthorizeHandler(options) {
|
|
8
12
|
const { oauth } = options;
|
|
9
13
|
return async (request) => {
|
|
10
|
-
var _a;
|
|
14
|
+
var _a, _b, _c, _d;
|
|
11
15
|
try {
|
|
12
16
|
const body = await request.json();
|
|
13
17
|
const provider = body.provider;
|
|
@@ -24,9 +28,15 @@ function createOAuthAuthorizeHandler(options) {
|
|
|
24
28
|
}, error() {
|
|
25
29
|
} };
|
|
26
30
|
const manager = new OAuthManager({ providers }, (_a = options.dependencies.logger) != null ? _a : noopLogger);
|
|
27
|
-
const state =
|
|
31
|
+
const state = generateOAuthState();
|
|
28
32
|
const loginUrl = manager.getLoginUrl(provider, state);
|
|
29
|
-
|
|
33
|
+
const response = NextResponse.json({ success: true, loginUrl, state });
|
|
34
|
+
setOAuthStateCookie(response, state, {
|
|
35
|
+
secure: (_b = options.cookie) == null ? void 0 : _b.secure,
|
|
36
|
+
sameSite: (_c = options.cookie) == null ? void 0 : _c.sameSite,
|
|
37
|
+
domain: (_d = options.cookie) == null ? void 0 : _d.domain
|
|
38
|
+
});
|
|
39
|
+
return response;
|
|
30
40
|
} catch (e) {
|
|
31
41
|
return NextResponse.json({ success: false, error: "OAuth initialization failed" }, { status: 500 });
|
|
32
42
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getLoggerConfig
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-IKZB26SK.js";
|
|
4
4
|
import {
|
|
5
5
|
__spreadProps,
|
|
6
6
|
__spreadValues
|
|
7
7
|
} from "./chunk-ORMEWXMH.js";
|
|
8
8
|
|
|
9
|
-
// src/logger/logger.ts
|
|
9
|
+
// src/core/logger/logger.ts
|
|
10
10
|
import fs from "fs";
|
|
11
11
|
import winston from "winston";
|
|
12
12
|
import DailyRotateFile from "winston-daily-rotate-file";
|