@lovrabet/cli 1.1.7 → 1.1.9

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.
Files changed (47) hide show
  1. package/LICENSE +45 -0
  2. package/README.md +85 -4
  3. package/lib/add-page/input-page-router.js +1 -1
  4. package/lib/add-page/main.js +1 -1
  5. package/lib/add-page/select-page-template.js +1 -1
  6. package/lib/api/api-pull-ui.js +1 -1
  7. package/lib/api/format-dataset.js +1 -1
  8. package/lib/api/generate-api-file.js +1 -1
  9. package/lib/api/main.js +1 -1
  10. package/lib/api/pull-silent.js +1 -1
  11. package/lib/api/pull.js +1 -1
  12. package/lib/auth/auth-server-ui.js +1 -1
  13. package/lib/auth/auth-server.js +1 -1
  14. package/lib/auth/constant.js +1 -1
  15. package/lib/auth/get-cookie.js +1 -1
  16. package/lib/auth/is-session-valid.js +1 -1
  17. package/lib/auth/logout.js +1 -1
  18. package/lib/cli.js +1 -1
  19. package/lib/cmd/build-watch.js +1 -1
  20. package/lib/cmd/build.js +1 -1
  21. package/lib/cmd/logs.js +1 -1
  22. package/lib/cmd/preview.js +1 -1
  23. package/lib/cmd/start.js +1 -1
  24. package/lib/config/config-help.js +1 -1
  25. package/lib/config/main.js +1 -1
  26. package/lib/constant/domain.js +1 -1
  27. package/lib/constant/env.js +1 -1
  28. package/lib/create-app/enhanced-guided-create.js +1 -1
  29. package/lib/create-app/format-elapsed.js +1 -1
  30. package/lib/create-app/main.js +1 -1
  31. package/lib/create-app/task-finished.js +1 -1
  32. package/lib/create-app/task-loading.js +1 -1
  33. package/lib/create-app/task-running.js +1 -1
  34. package/lib/create-app/task-time.js +1 -1
  35. package/lib/create-app/use-copy-project-template.js +1 -1
  36. package/lib/create-app/use-format-code.js +1 -1
  37. package/lib/create-app/use-install-dependencies.js +1 -1
  38. package/lib/help.js +1 -1
  39. package/lib/utils/config.js +1 -1
  40. package/lib/utils/copy-directory.js +1 -1
  41. package/lib/utils/http-client.js +1 -1
  42. package/lib/utils/logger.js +1 -1
  43. package/lib/utils/router-updater.js +1 -1
  44. package/lib/utils/template-replacer.js +1 -1
  45. package/package.json +2 -2
  46. package/templates/projects/sub-app-react-demo/package-lock.json +4 -4
  47. package/templates/projects/sub-app-react-demo/package.json +1 -1
@@ -1 +1 @@
1
- (function(_0x2a5eb6,_0x7555ea){var _0x5bf89f=a31_0x52e7,_0x9daaa3=_0x2a5eb6();while(!![]){try{var _0x32dd13=-parseInt(_0x5bf89f(0x151))/0x1*(-parseInt(_0x5bf89f(0x14c))/0x2)+parseInt(_0x5bf89f(0x14d))/0x3+parseInt(_0x5bf89f(0x14b))/0x4*(-parseInt(_0x5bf89f(0x154))/0x5)+parseInt(_0x5bf89f(0x150))/0x6+parseInt(_0x5bf89f(0x14e))/0x7+-parseInt(_0x5bf89f(0x153))/0x8+-parseInt(_0x5bf89f(0x155))/0x9;if(_0x32dd13===_0x7555ea)break;else _0x9daaa3['push'](_0x9daaa3['shift']());}catch(_0x25c6f7){_0x9daaa3['push'](_0x9daaa3['shift']());}}}(a31_0x212c,0xd34eb));import{jsx as a31_0x187886,jsxs as a31_0xbaa2b}from'react/jsx-runtime';function a31_0x52e7(_0x269360,_0x3219e8){var _0x212c49=a31_0x212c();return a31_0x52e7=function(_0x52e727,_0x1413de){_0x52e727=_0x52e727-0x14b;var _0x39cbb1=_0x212c49[_0x52e727];return _0x39cbb1;},a31_0x52e7(_0x269360,_0x3219e8);}import{Box,Text}from'ink';import{TaskLoading}from'./task-loading.js';import{TaskTime}from'./task-time.js';export function TaskRunning(_0x1b81ca){var _0x590755=a31_0x52e7;return a31_0xbaa2b(Box,{'children':[a31_0x187886(Box,{'width':'1'}),a31_0x187886(TaskLoading,{..._0x1b81ca}),a31_0x187886(Text,{'children':_0x1b81ca[_0x590755(0x14f)]}),a31_0x187886(TaskTime,{'elapsed':_0x1b81ca[_0x590755(0x152)]})]});}function a31_0x212c(){var _0x3d909e=['10TVSShF','441216czeyRZ','1319844UEGjqC','1466IWZSJb','1741545GWxRBV','11083282vmVUlY','taskName','1176756hUCdeT','205MOePga','elapsed','7486168gCgmjp'];a31_0x212c=function(){return _0x3d909e;};return a31_0x212c();}
1
+ (function(_0xe61e07,_0x504637){var _0xd15841=a31_0x5e85,_0x3a566d=_0xe61e07();while(!![]){try{var _0x3b00f1=parseInt(_0xd15841(0x18d))/0x1*(parseInt(_0xd15841(0x189))/0x2)+-parseInt(_0xd15841(0x18f))/0x3+parseInt(_0xd15841(0x18a))/0x4*(-parseInt(_0xd15841(0x18e))/0x5)+-parseInt(_0xd15841(0x188))/0x6+parseInt(_0xd15841(0x184))/0x7*(parseInt(_0xd15841(0x18c))/0x8)+-parseInt(_0xd15841(0x185))/0x9*(-parseInt(_0xd15841(0x190))/0xa)+parseInt(_0xd15841(0x18b))/0xb;if(_0x3b00f1===_0x504637)break;else _0x3a566d['push'](_0x3a566d['shift']());}catch(_0x1a4b89){_0x3a566d['push'](_0x3a566d['shift']());}}}(a31_0x3a2b,0xe76c4));import{jsx as a31_0x574822,jsxs as a31_0x19db4e}from'react/jsx-runtime';import{Box,Text}from'ink';function a31_0x3a2b(){var _0x4d3e95=['57890SKgJDS','36vNUPRY','taskName','elapsed','8040636uiScyD','851986NqRZLo','170540SEAhvC','14563659JcEHHo','1320vUICwS','1GRRbrI','35velsKj','1916823XDrxXt','277220gSyFhm'];a31_0x3a2b=function(){return _0x4d3e95;};return a31_0x3a2b();}import{TaskLoading}from'./task-loading.js';import{TaskTime}from'./task-time.js';function a31_0x5e85(_0x175dd8,_0x14305){var _0x3a2b98=a31_0x3a2b();return a31_0x5e85=function(_0x5e85b5,_0x5630c5){_0x5e85b5=_0x5e85b5-0x184;var _0x11d0be=_0x3a2b98[_0x5e85b5];return _0x11d0be;},a31_0x5e85(_0x175dd8,_0x14305);}export function TaskRunning(_0x99cbb6){var _0x430c13=a31_0x5e85;return a31_0x19db4e(Box,{'children':[a31_0x574822(Box,{'width':'1'}),a31_0x574822(TaskLoading,{..._0x99cbb6}),a31_0x574822(Text,{'children':_0x99cbb6[_0x430c13(0x186)]}),a31_0x574822(TaskTime,{'elapsed':_0x99cbb6[_0x430c13(0x187)]})]});}
@@ -1 +1 @@
1
- (function(_0xe1514c,_0x32d9f1){var _0x4b8bfa=a32_0x31fc,_0x36fdd7=_0xe1514c();while(!![]){try{var _0x980746=-parseInt(_0x4b8bfa(0x1f8))/0x1+-parseInt(_0x4b8bfa(0x1f7))/0x2+parseInt(_0x4b8bfa(0x1f4))/0x3*(-parseInt(_0x4b8bfa(0x1f2))/0x4)+parseInt(_0x4b8bfa(0x1fb))/0x5*(-parseInt(_0x4b8bfa(0x1f6))/0x6)+-parseInt(_0x4b8bfa(0x1fc))/0x7*(parseInt(_0x4b8bfa(0x1f3))/0x8)+-parseInt(_0x4b8bfa(0x1f5))/0x9+parseInt(_0x4b8bfa(0x1fa))/0xa*(parseInt(_0x4b8bfa(0x1f9))/0xb);if(_0x980746===_0x32d9f1)break;else _0x36fdd7['push'](_0x36fdd7['shift']());}catch(_0x154c2e){_0x36fdd7['push'](_0x36fdd7['shift']());}}}(a32_0x15a4,0x43706));import{jsx as a32_0x348f09,Fragment as a32_0x4afdfb,jsxs as a32_0x3973c2}from'react/jsx-runtime';import{Text}from'ink';function a32_0x31fc(_0x43f63f,_0x540b96){var _0x15a498=a32_0x15a4();return a32_0x31fc=function(_0x31fcf5,_0x4afe21){_0x31fcf5=_0x31fcf5-0x1f2;var _0x419fb6=_0x15a498[_0x31fcf5];return _0x419fb6;},a32_0x31fc(_0x43f63f,_0x540b96);}export function TaskTime(_0x4b5a30){var _0x107660=a32_0x31fc;if(_0x4b5a30[_0x107660(0x1fd)])return a32_0x3973c2(a32_0x4afdfb,{'children':[a32_0x348f09(Text,{'color':_0x107660(0x1fe),'children':'\x20['}),a32_0x348f09(Text,{'color':_0x107660(0x1fe),'bold':!![],'children':_0x4b5a30[_0x107660(0x1fd)]}),a32_0x348f09(Text,{'color':_0x107660(0x1fe),'children':']'})]});return null;}function a32_0x15a4(){var _0x47e478=['2086845MUYaRb','7NeoDwS','elapsed','gray','67372TlOwCv','4174216ffSWxO','69GUshQh','1499814bYeSEO','6FDlRYf','526716Lytbxs','245566PnWIhH','2211ldvpnK','113350NtNAuN'];a32_0x15a4=function(){return _0x47e478;};return a32_0x15a4();}
1
+ function a32_0x1dd6(_0x5a610e,_0x22812d){var _0x4c173f=a32_0x4c17();return a32_0x1dd6=function(_0x1dd6ac,_0x3a7c31){_0x1dd6ac=_0x1dd6ac-0x17d;var _0x250726=_0x4c173f[_0x1dd6ac];return _0x250726;},a32_0x1dd6(_0x5a610e,_0x22812d);}(function(_0x179b70,_0x88d433){var _0x3dede5=a32_0x1dd6,_0x5e895c=_0x179b70();while(!![]){try{var _0x101180=-parseInt(_0x3dede5(0x17d))/0x1+parseInt(_0x3dede5(0x186))/0x2*(parseInt(_0x3dede5(0x183))/0x3)+parseInt(_0x3dede5(0x189))/0x4+-parseInt(_0x3dede5(0x184))/0x5+parseInt(_0x3dede5(0x181))/0x6*(-parseInt(_0x3dede5(0x188))/0x7)+-parseInt(_0x3dede5(0x187))/0x8*(parseInt(_0x3dede5(0x17f))/0x9)+parseInt(_0x3dede5(0x180))/0xa*(parseInt(_0x3dede5(0x17e))/0xb);if(_0x101180===_0x88d433)break;else _0x5e895c['push'](_0x5e895c['shift']());}catch(_0x4410f8){_0x5e895c['push'](_0x5e895c['shift']());}}}(a32_0x4c17,0xb2fe9));import{jsx as a32_0x307579,Fragment as a32_0x4a0564,jsxs as a32_0x2fce10}from'react/jsx-runtime';function a32_0x4c17(){var _0x16219c=['1175719bjyerQ','277255zFgfDz','7365339DDFkra','1450bsPrEP','46278fYHGgM','gray','9MiccHX','7182645nkPIyZ','elapsed','563042IIwWtP','8HtJnZS','595EkzKZD','1280388ydrJKI'];a32_0x4c17=function(){return _0x16219c;};return a32_0x4c17();}import{Text}from'ink';export function TaskTime(_0xcc8e29){var _0xcd9302=a32_0x1dd6;if(_0xcc8e29[_0xcd9302(0x185)])return a32_0x2fce10(a32_0x4a0564,{'children':[a32_0x307579(Text,{'color':_0xcd9302(0x182),'children':'\x20['}),a32_0x307579(Text,{'color':_0xcd9302(0x182),'bold':!![],'children':_0xcc8e29['elapsed']}),a32_0x307579(Text,{'color':_0xcd9302(0x182),'children':']'})]});return null;}
@@ -1 +1 @@
1
- const a33_0x3f2270=a33_0x1319;(function(_0x14926e,_0x236927){const _0x969b2=a33_0x1319,_0x4dbf9c=_0x14926e();while(!![]){try{const _0x34680e=-parseInt(_0x969b2(0xa1))/0x1*(-parseInt(_0x969b2(0x8f))/0x2)+parseInt(_0x969b2(0x9d))/0x3*(parseInt(_0x969b2(0x92))/0x4)+-parseInt(_0x969b2(0x9b))/0x5*(parseInt(_0x969b2(0x8e))/0x6)+parseInt(_0x969b2(0x8b))/0x7+parseInt(_0x969b2(0x9e))/0x8+parseInt(_0x969b2(0x9a))/0x9+parseInt(_0x969b2(0x99))/0xa*(-parseInt(_0x969b2(0x9f))/0xb);if(_0x34680e===_0x236927)break;else _0x4dbf9c['push'](_0x4dbf9c['shift']());}catch(_0x3abed1){_0x4dbf9c['push'](_0x4dbf9c['shift']());}}}(a33_0x329f,0x91c6b));import a33_0x44e3c0 from'node:path';import{fileURLToPath}from'node:url';import{useCallback,useState}from'react';function a33_0x329f(){const _0xfa2b3d=['message','../../templates/projects/sub-app-react-demo','resolve','url','success','info','27579090xuxBCQ','8578062MUsiGX','95LNZRNh','now','1026738bZBnFd','4276968ljhBTP','11ctigqO','项目模板复制完成','40697OElAqR','cwd','5712091FBnzEA','复制项目文件','开始复制项目模板','133626vzkTPf','22wudhKN','copy','dirname','12zBiFtv'];a33_0x329f=function(){return _0xfa2b3d;};return a33_0x329f();}import{copyDirectory}from'../utils/copy-directory.js';import{formatElapsed}from'./format-elapsed.js';import{logger}from'../utils/logger.js';function a33_0x1319(_0x250216,_0x12931e){const _0x329f9b=a33_0x329f();return a33_0x1319=function(_0x13196a,_0x3f7c97){_0x13196a=_0x13196a-0x8a;let _0xa611d7=_0x329f9b[_0x13196a];return _0xa611d7;},a33_0x1319(_0x250216,_0x12931e);}const __dirname=a33_0x44e3c0[a33_0x3f2270(0x91)](fileURLToPath(import.meta[a33_0x3f2270(0x96)])),templateDir=a33_0x44e3c0['resolve'](__dirname,a33_0x3f2270(0x94));export function useCopyProjectTemplate(){const _0x37cd8=a33_0x3f2270,[_0x59b327,_0x5e474c]=useState(![]),[_0x1f61fa,_0xf848cd]=useState(![]),[_0x25e978,_0x217721]=useState(''),_0x4b69b9=useCallback(async _0x162141=>{const _0x21bb91=a33_0x1319,_0x18b795=Date[_0x21bb91(0x9c)](),_0x3d2b12=a33_0x44e3c0[_0x21bb91(0x95)](process[_0x21bb91(0x8a)](),_0x162141);_0x5e474c(!![]);try{logger[_0x21bb91(0x98)](_0x21bb91(0x90),_0x21bb91(0x8d),{'projectCode':_0x162141,'templateDir':templateDir}),await copyDirectory(templateDir,_0x3d2b12);const _0x4d0c40=Date['now']()-_0x18b795;logger[_0x21bb91(0x97)](_0x21bb91(0x90),_0x21bb91(0xa0),_0x4d0c40,{'projectCode':_0x162141});}catch(_0xa996b6){const _0x15b2a7=Date[_0x21bb91(0x9c)]()-_0x18b795;logger['error'](_0x21bb91(0x90),'项目模板复制失败',{'projectCode':_0x162141,'error':_0xa996b6 instanceof Error?_0xa996b6[_0x21bb91(0x93)]:String(_0xa996b6),'duration':_0x15b2a7});throw _0xa996b6;}finally{_0x5e474c(![]),_0xf848cd(!![]),_0x217721(formatElapsed(_0x18b795));}},[]);return{'taskName':_0x37cd8(0x8c),'finished':_0x1f61fa,'loading':_0x59b327,'elapsed':_0x25e978,'doTask':_0x4b69b9};}
1
+ const a33_0x2c7d36=a33_0x3812;(function(_0x30af6b,_0x34f481){const _0x592d2a=a33_0x3812,_0x41c5fd=_0x30af6b();while(!![]){try{const _0x1439cb=parseInt(_0x592d2a(0x9a))/0x1+parseInt(_0x592d2a(0xa5))/0x2*(parseInt(_0x592d2a(0x9e))/0x3)+-parseInt(_0x592d2a(0xa0))/0x4*(-parseInt(_0x592d2a(0x9c))/0x5)+parseInt(_0x592d2a(0xae))/0x6*(parseInt(_0x592d2a(0xac))/0x7)+parseInt(_0x592d2a(0xb1))/0x8*(parseInt(_0x592d2a(0x9d))/0x9)+parseInt(_0x592d2a(0xb0))/0xa*(parseInt(_0x592d2a(0xaa))/0xb)+-parseInt(_0x592d2a(0x99))/0xc;if(_0x1439cb===_0x34f481)break;else _0x41c5fd['push'](_0x41c5fd['shift']());}catch(_0x354cf9){_0x41c5fd['push'](_0x41c5fd['shift']());}}}(a33_0x202f,0xa6c57));import a33_0x826b5b from'node:path';function a33_0x202f(){const _0x4b2789=['copy','19624164TwvcFc','335471MqJEts','cwd','299345DgkluY','198ERxjWe','578913VwhCFK','复制项目文件','4YjCzNr','info','开始复制项目模板','error','项目模板复制失败','10eJpgin','resolve','now','项目模板复制完成','../../templates/projects/sub-app-react-demo','38379NPUFDk','message','7YWhbMg','success','1360116MWmoio','dirname','1790MplXJa','38920cBAzLF'];a33_0x202f=function(){return _0x4b2789;};return a33_0x202f();}import{fileURLToPath}from'node:url';import{useCallback,useState}from'react';import{copyDirectory}from'../utils/copy-directory.js';function a33_0x3812(_0x3379c8,_0x5e9991){const _0x202ffd=a33_0x202f();return a33_0x3812=function(_0x3812a1,_0x17580d){_0x3812a1=_0x3812a1-0x99;let _0x2aad41=_0x202ffd[_0x3812a1];return _0x2aad41;},a33_0x3812(_0x3379c8,_0x5e9991);}import{formatElapsed}from'./format-elapsed.js';import{logger}from'../utils/logger.js';const __dirname=a33_0x826b5b[a33_0x2c7d36(0xaf)](fileURLToPath(import.meta['url'])),templateDir=a33_0x826b5b[a33_0x2c7d36(0xa6)](__dirname,a33_0x2c7d36(0xa9));export function useCopyProjectTemplate(){const _0x5851f0=a33_0x2c7d36,[_0xa4f8bf,_0x38aadb]=useState(![]),[_0x35208e,_0x23d6df]=useState(![]),[_0x435da6,_0x5009ea]=useState(''),_0x18d684=useCallback(async _0x86f6a8=>{const _0x5c256f=a33_0x3812,_0x300bd9=Date[_0x5c256f(0xa7)](),_0x5ce222=a33_0x826b5b[_0x5c256f(0xa6)](process[_0x5c256f(0x9b)](),_0x86f6a8);_0x38aadb(!![]);try{logger[_0x5c256f(0xa1)](_0x5c256f(0xb2),_0x5c256f(0xa2),{'projectCode':_0x86f6a8,'templateDir':templateDir}),await copyDirectory(templateDir,_0x5ce222);const _0x1faf28=Date[_0x5c256f(0xa7)]()-_0x300bd9;logger[_0x5c256f(0xad)](_0x5c256f(0xb2),_0x5c256f(0xa8),_0x1faf28,{'projectCode':_0x86f6a8});}catch(_0x5614cb){const _0x4ea919=Date[_0x5c256f(0xa7)]()-_0x300bd9;logger[_0x5c256f(0xa3)](_0x5c256f(0xb2),_0x5c256f(0xa4),{'projectCode':_0x86f6a8,'error':_0x5614cb instanceof Error?_0x5614cb[_0x5c256f(0xab)]:String(_0x5614cb),'duration':_0x4ea919});throw _0x5614cb;}finally{_0x38aadb(![]),_0x23d6df(!![]),_0x5009ea(formatElapsed(_0x300bd9));}},[]);return{'taskName':_0x5851f0(0x9f),'finished':_0x35208e,'loading':_0xa4f8bf,'elapsed':_0x435da6,'doTask':_0x18d684};}
@@ -1 +1 @@
1
- (function(_0xaafd61,_0x439fa0){const _0x2957fe=a34_0x26ca,_0x13cbab=_0xaafd61();while(!![]){try{const _0x8b9e49=-parseInt(_0x2957fe(0x11e))/0x1*(-parseInt(_0x2957fe(0x119))/0x2)+-parseInt(_0x2957fe(0x121))/0x3+-parseInt(_0x2957fe(0x11a))/0x4+parseInt(_0x2957fe(0x122))/0x5+parseInt(_0x2957fe(0x11b))/0x6*(parseInt(_0x2957fe(0x11c))/0x7)+parseInt(_0x2957fe(0x11d))/0x8+-parseInt(_0x2957fe(0x123))/0x9;if(_0x8b9e49===_0x439fa0)break;else _0x13cbab['push'](_0x13cbab['shift']());}catch(_0x2ea46d){_0x13cbab['push'](_0x13cbab['shift']());}}}(a34_0x372d,0x3db97));import a34_0x58a617 from'node:path';import{useCallback,useState}from'react';import{execa}from'execa';import{formatElapsed}from'./format-elapsed.js';import{logger}from'../utils/logger.js';export function useFormatCode(){const [_0x5ae192,_0x5c0293]=useState(![]),[_0x13c02a,_0x1ab86c]=useState(![]),[_0x1ed07a,_0x35dd13]=useState(''),_0x45904c=useCallback(async _0xf35a5=>{const _0x4b645a=a34_0x26ca,_0x42b06b=Date[_0x4b645a(0x115)](),_0x2e8e3d=a34_0x58a617[_0x4b645a(0x127)](process[_0x4b645a(0x120)](),_0xf35a5);_0x5c0293(!![]);try{logger[_0x4b645a(0x125)]('format',_0x4b645a(0x118),{'projectCode':_0xf35a5}),await execa(_0x4b645a(0x116),['prettier','--write','.'],{'cwd':_0x2e8e3d});const _0x215e18=Date[_0x4b645a(0x115)]()-_0x42b06b;logger[_0x4b645a(0x117)](_0x4b645a(0x124),_0x4b645a(0x126),_0x215e18,{'projectCode':_0xf35a5});}catch(_0x338492){const _0xb49e4e=Date[_0x4b645a(0x115)]()-_0x42b06b;logger['error']('format','代码格式化失败',{'projectCode':_0xf35a5,'error':_0x338492 instanceof Error?_0x338492[_0x4b645a(0x11f)]:String(_0x338492),'duration':_0xb49e4e});throw _0x338492;}finally{_0x5c0293(![]),_0x1ab86c(!![]),_0x35dd13(formatElapsed(_0x42b06b));}},[]);return{'taskName':'格式化代码','finished':_0x13c02a,'loading':_0x5ae192,'elapsed':_0x1ed07a,'doTask':_0x45904c};}function a34_0x26ca(_0x482dca,_0x1514e4){const _0x372d06=a34_0x372d();return a34_0x26ca=function(_0x26ca70,_0x444f19){_0x26ca70=_0x26ca70-0x115;let _0x1056cd=_0x372d06[_0x26ca70];return _0x1056cd;},a34_0x26ca(_0x482dca,_0x1514e4);}function a34_0x372d(){const _0x5d9005=['309050yGKUEp','543872EbmdKr','5RQuXbv','message','cwd','1335144Ukdosx','2180875qsDXAz','2188332JqHzQC','format','info','代码格式化完成','resolve','now','npx','success','开始格式化代码','69994gqNEan','718500CVhvqo','60yyIlKa'];a34_0x372d=function(){return _0x5d9005;};return a34_0x372d();}
1
+ (function(_0x56b287,_0x3aa550){const _0x5e13df=a34_0x3ca9,_0x361557=_0x56b287();while(!![]){try{const _0x5d4271=-parseInt(_0x5e13df(0x199))/0x1*(-parseInt(_0x5e13df(0x19a))/0x2)+-parseInt(_0x5e13df(0x19f))/0x3*(parseInt(_0x5e13df(0x197))/0x4)+-parseInt(_0x5e13df(0x195))/0x5*(parseInt(_0x5e13df(0x198))/0x6)+parseInt(_0x5e13df(0x1a0))/0x7*(-parseInt(_0x5e13df(0x19b))/0x8)+-parseInt(_0x5e13df(0x1a2))/0x9*(parseInt(_0x5e13df(0x194))/0xa)+parseInt(_0x5e13df(0x1a1))/0xb+parseInt(_0x5e13df(0x1a4))/0xc;if(_0x5d4271===_0x3aa550)break;else _0x361557['push'](_0x361557['shift']());}catch(_0x1e86f6){_0x361557['push'](_0x361557['shift']());}}}(a34_0x1fd5,0x71edb));import a34_0x49c78d from'node:path';import{useCallback,useState}from'react';function a34_0x1fd5(){const _0x195bda=['32748UvDszM','18jilgEY','1uELPmg','41514QNQXAG','8swYLee','prettier','--write','info','75gztxFy','6211807npuQRE','8134995DyiHXu','2042712xpNgHf','message','20927328tBeEnw','now','format','resolve','格式化代码','npx','success','代码格式化失败','20ZPfceF','819305WOIUsM','开始格式化代码'];a34_0x1fd5=function(){return _0x195bda;};return a34_0x1fd5();}function a34_0x3ca9(_0x469652,_0x50da76){const _0x1fd5a1=a34_0x1fd5();return a34_0x3ca9=function(_0x3ca9cb,_0x552292){_0x3ca9cb=_0x3ca9cb-0x191;let _0x16cd7f=_0x1fd5a1[_0x3ca9cb];return _0x16cd7f;},a34_0x3ca9(_0x469652,_0x50da76);}import{execa}from'execa';import{formatElapsed}from'./format-elapsed.js';import{logger}from'../utils/logger.js';export function useFormatCode(){const _0x41bf02=a34_0x3ca9,[_0x43ea53,_0x1b4175]=useState(![]),[_0x51d6f3,_0x21bd6c]=useState(![]),[_0x2d048b,_0x472802]=useState(''),_0x3c18dc=useCallback(async _0x41a400=>{const _0x5aa27e=a34_0x3ca9,_0x402106=Date['now'](),_0x52ff68=a34_0x49c78d[_0x5aa27e(0x1a7)](process['cwd'](),_0x41a400);_0x1b4175(!![]);try{logger[_0x5aa27e(0x19e)](_0x5aa27e(0x1a6),_0x5aa27e(0x196),{'projectCode':_0x41a400}),await execa(_0x5aa27e(0x191),[_0x5aa27e(0x19c),_0x5aa27e(0x19d),'.'],{'cwd':_0x52ff68});const _0x3608ab=Date[_0x5aa27e(0x1a5)]()-_0x402106;logger[_0x5aa27e(0x192)](_0x5aa27e(0x1a6),'代码格式化完成',_0x3608ab,{'projectCode':_0x41a400});}catch(_0x19a42f){const _0x4080ca=Date['now']()-_0x402106;logger['error']('format',_0x5aa27e(0x193),{'projectCode':_0x41a400,'error':_0x19a42f instanceof Error?_0x19a42f[_0x5aa27e(0x1a3)]:String(_0x19a42f),'duration':_0x4080ca});throw _0x19a42f;}finally{_0x1b4175(![]),_0x21bd6c(!![]),_0x472802(formatElapsed(_0x402106));}},[]);return{'taskName':_0x41bf02(0x1a8),'finished':_0x51d6f3,'loading':_0x43ea53,'elapsed':_0x2d048b,'doTask':_0x3c18dc};}
@@ -1 +1 @@
1
- (function(_0x4fd5ee,_0x54ae24){const _0x233c07=a35_0x3e00,_0x24161d=_0x4fd5ee();while(!![]){try{const _0x3a6330=-parseInt(_0x233c07(0x134))/0x1+-parseInt(_0x233c07(0x141))/0x2+-parseInt(_0x233c07(0x140))/0x3+-parseInt(_0x233c07(0x139))/0x4+-parseInt(_0x233c07(0x144))/0x5*(-parseInt(_0x233c07(0x13c))/0x6)+-parseInt(_0x233c07(0x143))/0x7+parseInt(_0x233c07(0x137))/0x8;if(_0x3a6330===_0x54ae24)break;else _0x24161d['push'](_0x24161d['shift']());}catch(_0x27cfba){_0x24161d['push'](_0x24161d['shift']());}}}(a35_0xdbe1,0x720a1));function a35_0xdbe1(){const _0x177dbd=['now','resolve','https://registry.npmmirror.com','install','563336MsblNX','message','开始安装依赖','21268968bvGJdN','success','1513280scPRAv','cwd','error','2603400byceAg','--registry','安装依赖','info','460473eJDoxG','1562582OnzCca','依赖安装完成','5242846odRvWd','5bgUaKS','依赖安装失败'];a35_0xdbe1=function(){return _0x177dbd;};return a35_0xdbe1();}import a35_0xa0a2a6 from'node:path';import{useCallback,useState}from'react';import{execa}from'execa';import{formatElapsed}from'./format-elapsed.js';import{logger}from'../utils/logger.js';function a35_0x3e00(_0x35a809,_0x1b6fec){const _0xdbe181=a35_0xdbe1();return a35_0x3e00=function(_0x3e00fc,_0x1d0383){_0x3e00fc=_0x3e00fc-0x133;let _0x40cf81=_0xdbe181[_0x3e00fc];return _0x40cf81;},a35_0x3e00(_0x35a809,_0x1b6fec);}export function useInstallDependencies(){const _0x456433=a35_0x3e00,[_0x5a4345,_0x14dfe5]=useState(![]),[_0x5a449b,_0x25ad85]=useState(![]),[_0x35a13a,_0x474d02]=useState(''),_0x32a235=useCallback(async _0x9545c2=>{const _0x532c9a=a35_0x3e00,_0x1ebcd5=Date['now'](),_0x3e6be0=a35_0xa0a2a6[_0x532c9a(0x147)](process[_0x532c9a(0x13a)](),_0x9545c2);_0x14dfe5(!![]),_0x25ad85(![]);const _0x43b37e=async(_0x3e2a7a,_0x35f2f3)=>{await execa(_0x3e2a7a,_0x35f2f3,{'cwd':_0x3e6be0});};try{logger[_0x532c9a(0x13f)]('install',_0x532c9a(0x136),{'projectCode':_0x9545c2,'registry':'https://registry.npmmirror.com'}),await _0x43b37e('npm',[_0x532c9a(0x133),_0x532c9a(0x13d),_0x532c9a(0x148)]);const _0x1cfb98=Date[_0x532c9a(0x146)]()-_0x1ebcd5;logger[_0x532c9a(0x138)](_0x532c9a(0x133),_0x532c9a(0x142),_0x1cfb98,{'projectCode':_0x9545c2});}catch(_0x22824f){const _0x19d1d8=Date[_0x532c9a(0x146)]()-_0x1ebcd5;logger[_0x532c9a(0x13b)](_0x532c9a(0x133),_0x532c9a(0x145),{'projectCode':_0x9545c2,'error':_0x22824f instanceof Error?_0x22824f[_0x532c9a(0x135)]:String(_0x22824f),'duration':_0x19d1d8});throw _0x22824f;}finally{_0x14dfe5(![]),_0x25ad85(!![]),_0x474d02(formatElapsed(_0x1ebcd5));}},[]);return{'taskName':_0x456433(0x13e),'finished':_0x5a449b,'loading':_0x5a4345,'elapsed':_0x35a13a,'doTask':_0x32a235};}
1
+ function a35_0x2e93(){const _0x2a5c6b=['error','293774YzpiOY','开始安装依赖','347457Okwdft','20meWikZ','安装依赖','322vYhPWV','1564szNZif','459592nlCKre','2185011efIZKO','now','835HqJzWT','1304UwJKVY','cwd','https://registry.npmmirror.com','npm','545532bZpPkA','message','依赖安装失败','info','install','依赖安装完成'];a35_0x2e93=function(){return _0x2a5c6b;};return a35_0x2e93();}(function(_0x3b2831,_0x211202){const _0x348d5b=a35_0x1871,_0x2c3c5d=_0x3b2831();while(!![]){try{const _0x4ca435=parseInt(_0x348d5b(0x1e1))/0x1+parseInt(_0x348d5b(0x1e8))/0x2+parseInt(_0x348d5b(0x1e3))/0x3+-parseInt(_0x348d5b(0x1e7))/0x4*(parseInt(_0x348d5b(0x1eb))/0x5)+parseInt(_0x348d5b(0x1da))/0x6+parseInt(_0x348d5b(0x1e6))/0x7*(-parseInt(_0x348d5b(0x1d6))/0x8)+parseInt(_0x348d5b(0x1e9))/0x9*(-parseInt(_0x348d5b(0x1e4))/0xa);if(_0x4ca435===_0x211202)break;else _0x2c3c5d['push'](_0x2c3c5d['shift']());}catch(_0x199123){_0x2c3c5d['push'](_0x2c3c5d['shift']());}}}(a35_0x2e93,0x29fb6));import a35_0x1b3a02 from'node:path';import{useCallback,useState}from'react';import{execa}from'execa';import{formatElapsed}from'./format-elapsed.js';function a35_0x1871(_0x6f3f8d,_0x27dcfd){const _0x2e9357=a35_0x2e93();return a35_0x1871=function(_0x1871cc,_0x2147bd){_0x1871cc=_0x1871cc-0x1d6;let _0x375e96=_0x2e9357[_0x1871cc];return _0x375e96;},a35_0x1871(_0x6f3f8d,_0x27dcfd);}import{logger}from'../utils/logger.js';export function useInstallDependencies(){const _0x96bd6e=a35_0x1871,[_0x22aff1,_0x1340df]=useState(![]),[_0x511589,_0x71efaf]=useState(![]),[_0x372fae,_0x11c2be]=useState(''),_0x34be75=useCallback(async _0x33e383=>{const _0x3f0500=a35_0x1871,_0x4feec3=Date[_0x3f0500(0x1ea)](),_0x2b9d99=a35_0x1b3a02['resolve'](process[_0x3f0500(0x1d7)](),_0x33e383);_0x1340df(!![]),_0x71efaf(![]);const _0x179c4e=async(_0x5b9d33,_0x59d41a)=>{await execa(_0x5b9d33,_0x59d41a,{'cwd':_0x2b9d99});};try{logger[_0x3f0500(0x1dd)](_0x3f0500(0x1de),_0x3f0500(0x1e2),{'projectCode':_0x33e383,'registry':'https://registry.npmmirror.com'}),await _0x179c4e(_0x3f0500(0x1d9),[_0x3f0500(0x1de),'--registry',_0x3f0500(0x1d8)]);const _0x3d43e3=Date[_0x3f0500(0x1ea)]()-_0x4feec3;logger['success']('install',_0x3f0500(0x1df),_0x3d43e3,{'projectCode':_0x33e383});}catch(_0x3236a8){const _0x1ed07f=Date[_0x3f0500(0x1ea)]()-_0x4feec3;logger[_0x3f0500(0x1e0)](_0x3f0500(0x1de),_0x3f0500(0x1dc),{'projectCode':_0x33e383,'error':_0x3236a8 instanceof Error?_0x3236a8[_0x3f0500(0x1db)]:String(_0x3236a8),'duration':_0x1ed07f});throw _0x3236a8;}finally{_0x1340df(![]),_0x71efaf(!![]),_0x11c2be(formatElapsed(_0x4feec3));}},[]);return{'taskName':_0x96bd6e(0x1e5),'finished':_0x511589,'loading':_0x22aff1,'elapsed':_0x372fae,'doTask':_0x34be75};}
package/lib/help.js CHANGED
@@ -1 +1 @@
1
- (function(_0x69bf6f,_0x41594f){var _0x1fe011=a36_0x45a2,_0x34761e=_0x69bf6f();while(!![]){try{var _0x58061a=-parseInt(_0x1fe011(0x1b7))/0x1+-parseInt(_0x1fe011(0x1be))/0x2*(parseInt(_0x1fe011(0x1bb))/0x3)+parseInt(_0x1fe011(0x1c0))/0x4*(parseInt(_0x1fe011(0x1c3))/0x5)+parseInt(_0x1fe011(0x1c4))/0x6*(-parseInt(_0x1fe011(0x1bd))/0x7)+parseInt(_0x1fe011(0x1b9))/0x8*(-parseInt(_0x1fe011(0x1b5))/0x9)+-parseInt(_0x1fe011(0x1ba))/0xa*(parseInt(_0x1fe011(0x1c1))/0xb)+parseInt(_0x1fe011(0x1b8))/0xc;if(_0x58061a===_0x41594f)break;else _0x34761e['push'](_0x34761e['shift']());}catch(_0x2d8fd2){_0x34761e['push'](_0x34761e['shift']());}}}(a36_0x1643,0x9e92e));function a36_0x45a2(_0x14f05c,_0x6d87b4){var _0x1643e2=a36_0x1643();return a36_0x45a2=function(_0x45a253,_0x2f7b49){_0x45a253=_0x45a253-0x1b5;var _0x41ec69=_0x1643e2[_0x45a253];return _0x41ec69;},a36_0x45a2(_0x14f05c,_0x6d87b4);}import{jsx as a36_0x4f75e0,jsxs as a36_0xe095c4}from'react/jsx-runtime';import{Box,Text}from'ink';function a36_0x1643(){var _0x527c3e=['7DnwZpK','4ZYTbnA','!\x20请指定一个有效的命令。','1388mGWdYS','1142339gFTCxX','查看可用命令。','9510ReBDmR','1177122NbTuDJ','162RFwsRk','column','526116EayLeI','24610920QHwJDm','57056OMeFMu','10ywaQgk','1660287Cwkrkh','green'];a36_0x1643=function(){return _0x527c3e;};return a36_0x1643();}export function Help(){var _0x1c91b3=a36_0x45a2;return a36_0xe095c4(Box,{'flexDirection':_0x1c91b3(0x1b6),'marginTop':0x1,'marginBottom':0x1,'children':[a36_0xe095c4(Box,{'children':[a36_0x4f75e0(Box,{'width':'1'}),a36_0x4f75e0(Text,{'children':_0x1c91b3(0x1bf)})]}),a36_0xe095c4(Box,{'marginTop':0x1,'children':[a36_0x4f75e0(Box,{'width':'1'}),a36_0xe095c4(Text,{'children':['\x20\x20','使用']}),a36_0xe095c4(Text,{'bold':!![],'color':_0x1c91b3(0x1bc),'children':['\x20','lovrabet\x20--help','\x20']}),a36_0x4f75e0(Text,{'children':_0x1c91b3(0x1c2)})]})]});}
1
+ (function(_0x469b0d,_0x1b3118){var _0x3f433a=a36_0x2595,_0x3beb69=_0x469b0d();while(!![]){try{var _0x3e25ea=-parseInt(_0x3f433a(0x199))/0x1+-parseInt(_0x3f433a(0x194))/0x2*(-parseInt(_0x3f433a(0x197))/0x3)+-parseInt(_0x3f433a(0x193))/0x4*(-parseInt(_0x3f433a(0x195))/0x5)+parseInt(_0x3f433a(0x18f))/0x6*(parseInt(_0x3f433a(0x19a))/0x7)+-parseInt(_0x3f433a(0x18d))/0x8*(-parseInt(_0x3f433a(0x198))/0x9)+-parseInt(_0x3f433a(0x192))/0xa*(parseInt(_0x3f433a(0x190))/0xb)+-parseInt(_0x3f433a(0x196))/0xc;if(_0x3e25ea===_0x1b3118)break;else _0x3beb69['push'](_0x3beb69['shift']());}catch(_0x3da4a9){_0x3beb69['push'](_0x3beb69['shift']());}}}(a36_0xfcc4,0x8043b));function a36_0xfcc4(){var _0x3fd363=['63pOCqhg','555909MFikJi','973bKentl','!\x20请指定一个有效的命令。','34792vVkHHm','green','28554sODSNo','11PIoFts','查看可用命令。','7400810wWemBF','36qWYtzg','2wHHkwl','390425TthRkY','2380392xFDFpb','1875054eiDoez'];a36_0xfcc4=function(){return _0x3fd363;};return a36_0xfcc4();}import{jsx as a36_0x40f1a3,jsxs as a36_0x30c6c3}from'react/jsx-runtime';import{Box,Text}from'ink';function a36_0x2595(_0x199c0e,_0x9fd74c){var _0xfcc44b=a36_0xfcc4();return a36_0x2595=function(_0x25953d,_0x1a611a){_0x25953d=_0x25953d-0x18c;var _0x1c66e5=_0xfcc44b[_0x25953d];return _0x1c66e5;},a36_0x2595(_0x199c0e,_0x9fd74c);}export function Help(){var _0x4f0be2=a36_0x2595;return a36_0x30c6c3(Box,{'flexDirection':'column','marginTop':0x1,'marginBottom':0x1,'children':[a36_0x30c6c3(Box,{'children':[a36_0x40f1a3(Box,{'width':'1'}),a36_0x40f1a3(Text,{'children':_0x4f0be2(0x18c)})]}),a36_0x30c6c3(Box,{'marginTop':0x1,'children':[a36_0x40f1a3(Box,{'width':'1'}),a36_0x30c6c3(Text,{'children':['\x20\x20','使用']}),a36_0x30c6c3(Text,{'bold':!![],'color':_0x4f0be2(0x18e),'children':['\x20','lovrabet\x20--help','\x20']}),a36_0x40f1a3(Text,{'children':_0x4f0be2(0x191)})]})]});}
@@ -1 +1 @@
1
- const a37_0x272e70=a37_0x251d;(function(_0x1f0814,_0x59a1b2){const _0x295684=a37_0x251d,_0x5f5526=_0x1f0814();while(!![]){try{const _0x2c0966=-parseInt(_0x295684(0x17f))/0x1+-parseInt(_0x295684(0x177))/0x2*(parseInt(_0x295684(0x17b))/0x3)+-parseInt(_0x295684(0x183))/0x4*(parseInt(_0x295684(0x184))/0x5)+-parseInt(_0x295684(0x179))/0x6*(-parseInt(_0x295684(0x185))/0x7)+-parseInt(_0x295684(0x17c))/0x8*(-parseInt(_0x295684(0x17e))/0x9)+-parseInt(_0x295684(0x17a))/0xa+parseInt(_0x295684(0x182))/0xb;if(_0x2c0966===_0x59a1b2)break;else _0x5f5526['push'](_0x5f5526['shift']());}catch(_0x2b35be){_0x5f5526['push'](_0x5f5526['shift']());}}}(a37_0x1a8e,0xe45ed));function a37_0x251d(_0x5dcaca,_0x5b580b){const _0x1a8ee6=a37_0x1a8e();return a37_0x251d=function(_0x251d15,_0x1d5fbe){_0x251d15=_0x251d15-0x177;let _0x2aef02=_0x1a8ee6[_0x251d15];return _0x2aef02;},a37_0x251d(_0x5dcaca,_0x5b580b);}import{existsSync,readFileSync}from'node:fs';import{resolve}from'node:path';import{homedir}from'node:os';export const projectConfigPath=resolve(process[a37_0x272e70(0x17d)](),a37_0x272e70(0x180));function a37_0x1a8e(){const _0x299210=['34EPJORd','parse','3966PQKFFo','8198020RjzmaL','193548saxifd','13892840iqlkIQ','cwd','9kZuqcj','1543611HQzUIa','.lovrabetrc','utf8','27901049vBREee','28XEgfxD','1133915gWXylo','18109Stugac'];a37_0x1a8e=function(){return _0x299210;};return a37_0x1a8e();}export const globalConfigPath=resolve(homedir(),a37_0x272e70(0x180));export function readConfig(){const _0x4ab461=a37_0x272e70;let _0x389e1e={};try{if(existsSync(globalConfigPath)){const _0x240e2c=readFileSync(globalConfigPath,{'encoding':'utf8'});_0x240e2c&&(_0x389e1e=JSON[_0x4ab461(0x178)](_0x240e2c));}}catch(_0x111374){}try{if(existsSync(projectConfigPath)){const _0x1482a1=readFileSync(projectConfigPath,{'encoding':_0x4ab461(0x181)});if(_0x1482a1){const _0x148469=JSON['parse'](_0x1482a1);_0x389e1e={..._0x389e1e,..._0x148469};}}}catch(_0x6eee5e){}return _0x389e1e;}export function isInProject(){return existsSync(projectConfigPath);}
1
+ const a37_0x19910e=a37_0x1bac;(function(_0x4d62c3,_0x590d9b){const _0x9876e7=a37_0x1bac,_0xed513b=_0x4d62c3();while(!![]){try{const _0xa984a2=parseInt(_0x9876e7(0x12d))/0x1*(-parseInt(_0x9876e7(0x12b))/0x2)+parseInt(_0x9876e7(0x125))/0x3+-parseInt(_0x9876e7(0x12a))/0x4*(-parseInt(_0x9876e7(0x122))/0x5)+parseInt(_0x9876e7(0x120))/0x6*(parseInt(_0x9876e7(0x124))/0x7)+parseInt(_0x9876e7(0x12c))/0x8+parseInt(_0x9876e7(0x121))/0x9*(-parseInt(_0x9876e7(0x123))/0xa)+-parseInt(_0x9876e7(0x127))/0xb*(parseInt(_0x9876e7(0x129))/0xc);if(_0xa984a2===_0x590d9b)break;else _0xed513b['push'](_0xed513b['shift']());}catch(_0x777cdf){_0xed513b['push'](_0xed513b['shift']());}}}(a37_0x1628,0xe9d6c));import{existsSync,readFileSync}from'node:fs';import{resolve}from'node:path';import{homedir}from'node:os';export const projectConfigPath=resolve(process[a37_0x19910e(0x128)](),'.lovrabetrc');export const globalConfigPath=resolve(homedir(),'.lovrabetrc');export function readConfig(){const _0x3aeb9c=a37_0x19910e;let _0x58429b={};try{if(existsSync(globalConfigPath)){const _0x49f0d9=readFileSync(globalConfigPath,{'encoding':_0x3aeb9c(0x126)});_0x49f0d9&&(_0x58429b=JSON[_0x3aeb9c(0x12e)](_0x49f0d9));}}catch(_0x30ff3f){}try{if(existsSync(projectConfigPath)){const _0x4472c9=readFileSync(projectConfigPath,{'encoding':'utf8'});if(_0x4472c9){const _0x5ff639=JSON[_0x3aeb9c(0x12e)](_0x4472c9);_0x58429b={..._0x58429b,..._0x5ff639};}}}catch(_0x3af2f4){}return _0x58429b;}function a37_0x1bac(_0x40b7bb,_0x301a77){const _0x1628bf=a37_0x1628();return a37_0x1bac=function(_0x1baca8,_0x39716a){_0x1baca8=_0x1baca8-0x120;let _0x537303=_0x1628bf[_0x1baca8];return _0x537303;},a37_0x1bac(_0x40b7bb,_0x301a77);}export function isInProject(){return existsSync(projectConfigPath);}function a37_0x1628(){const _0x36da3f=['5yTInEI','18275410AHSSCk','458899BZwymY','1415973AAMoMc','utf8','11EtPPcx','cwd','19958916CzsuHm','5084504NTCmyv','2WUrUrV','12842864pcwfqf','79913JcOtda','parse','108WBpqHz','9cYBNSE'];a37_0x1628=function(){return _0x36da3f;};return a37_0x1628();}
@@ -1 +1 @@
1
- (function(_0x2db282,_0x4a443c){const _0x4371f7=a38_0x2737,_0x2b17cd=_0x2db282();while(!![]){try{const _0x26713f=-parseInt(_0x4371f7(0x7f))/0x1+parseInt(_0x4371f7(0x7b))/0x2+parseInt(_0x4371f7(0x76))/0x3*(-parseInt(_0x4371f7(0x75))/0x4)+-parseInt(_0x4371f7(0x7e))/0x5+-parseInt(_0x4371f7(0x81))/0x6+parseInt(_0x4371f7(0x77))/0x7+-parseInt(_0x4371f7(0x7d))/0x8*(-parseInt(_0x4371f7(0x80))/0x9);if(_0x26713f===_0x4a443c)break;else _0x2b17cd['push'](_0x2b17cd['shift']());}catch(_0x4cc0af){_0x2b17cd['push'](_0x2b17cd['shift']());}}}(a38_0x26c3,0x34292));import a38_0x58a18e from'node:path';function a38_0x26c3(){const _0x2af0a3=['215015OmDBkg','9TxxZPT','763788uBRYkY','mkdirSync','error','name','151180fOYXtq','3OWntYz','523460xgonMb','copyFileSync','join','复制目录时出错:','627494Ufrapf','isDirectory','3188624vfLYCj','966735xXBOln'];a38_0x26c3=function(){return _0x2af0a3;};return a38_0x26c3();}import a38_0x29f40e from'node:fs';function a38_0x2737(_0x1f4e70,_0x4c61f7){const _0x26c314=a38_0x26c3();return a38_0x2737=function(_0x2737e4,_0x3ecce5){_0x2737e4=_0x2737e4-0x73;let _0x5aaa53=_0x26c314[_0x2737e4];return _0x5aaa53;},a38_0x2737(_0x1f4e70,_0x4c61f7);}export async function copyDirectory(_0x585e6d,_0x2d08a7){const _0x3650a2=a38_0x2737;try{const _0x9ef291=a38_0x29f40e['readdirSync'](_0x585e6d,{'withFileTypes':!![]});a38_0x29f40e[_0x3650a2(0x82)](_0x2d08a7,{'recursive':!![]});for(const _0x8c69ef of _0x9ef291){const _0x206d5d=a38_0x58a18e[_0x3650a2(0x79)](_0x585e6d,_0x8c69ef[_0x3650a2(0x74)]),_0x49ab80=a38_0x58a18e[_0x3650a2(0x79)](_0x2d08a7,_0x8c69ef[_0x3650a2(0x74)]);_0x8c69ef[_0x3650a2(0x7c)]()?await copyDirectory(_0x206d5d,_0x49ab80):a38_0x29f40e[_0x3650a2(0x78)](_0x206d5d,_0x49ab80);}}catch(_0x29cdf3){console[_0x3650a2(0x73)](_0x3650a2(0x7a),_0x29cdf3);}}
1
+ (function(_0x392710,_0x574f0a){const _0x3d9529=a38_0x50f9,_0x9b53be=_0x392710();while(!![]){try{const _0x49f190=-parseInt(_0x3d9529(0xe4))/0x1+-parseInt(_0x3d9529(0xe3))/0x2+parseInt(_0x3d9529(0xe5))/0x3*(-parseInt(_0x3d9529(0xe9))/0x4)+parseInt(_0x3d9529(0xe1))/0x5*(parseInt(_0x3d9529(0xe2))/0x6)+parseInt(_0x3d9529(0xec))/0x7*(parseInt(_0x3d9529(0xe7))/0x8)+parseInt(_0x3d9529(0xe8))/0x9*(parseInt(_0x3d9529(0xdc))/0xa)+-parseInt(_0x3d9529(0xdf))/0xb*(-parseInt(_0x3d9529(0xdb))/0xc);if(_0x49f190===_0x574f0a)break;else _0x9b53be['push'](_0x9b53be['shift']());}catch(_0x5829b0){_0x9b53be['push'](_0x9b53be['shift']());}}}(a38_0x3d3b,0x47e99));import a38_0x403125 from'node:path';function a38_0x50f9(_0x33f705,_0x4c10ef){const _0x3d3bb4=a38_0x3d3b();return a38_0x50f9=function(_0x50f9af,_0xea1abe){_0x50f9af=_0x50f9af-0xdb;let _0xcf736d=_0x3d3bb4[_0x50f9af];return _0xcf736d;},a38_0x50f9(_0x33f705,_0x4c10ef);}import a38_0x1e22bc from'node:fs';export async function copyDirectory(_0x28ef1e,_0x382839){const _0x161f35=a38_0x50f9;try{const _0x27fe8b=a38_0x1e22bc[_0x161f35(0xe6)](_0x28ef1e,{'withFileTypes':!![]});a38_0x1e22bc[_0x161f35(0xe0)](_0x382839,{'recursive':!![]});for(const _0x527894 of _0x27fe8b){const _0x4f47a5=a38_0x403125[_0x161f35(0xea)](_0x28ef1e,_0x527894['name']),_0x1014d1=a38_0x403125[_0x161f35(0xea)](_0x382839,_0x527894['name']);_0x527894[_0x161f35(0xeb)]()?await copyDirectory(_0x4f47a5,_0x1014d1):a38_0x1e22bc['copyFileSync'](_0x4f47a5,_0x1014d1);}}catch(_0x44dd62){console[_0x161f35(0xde)](_0x161f35(0xdd),_0x44dd62);}}function a38_0x3d3b(){const _0x2e7ad2=['复制目录时出错:','error','19437izNius','mkdirSync','194280NIsPTX','48MuFASz','913380Znngco','423205WHchLD','25863yOcABk','readdirSync','400160RORXfV','279OMQbDo','148uQocyT','join','isDirectory','21Ozayrd','5232spSCga','84550QNjjTi'];a38_0x3d3b=function(){return _0x2e7ad2;};return a38_0x3d3b();}
@@ -1 +1 @@
1
- (function(_0x5ef42c,_0x30e3fe){const _0x47846b=a39_0x1588,_0x418e9a=_0x5ef42c();while(!![]){try{const _0x172255=parseInt(_0x47846b(0x147))/0x1*(-parseInt(_0x47846b(0x131))/0x2)+-parseInt(_0x47846b(0x13e))/0x3*(-parseInt(_0x47846b(0x141))/0x4)+-parseInt(_0x47846b(0x14b))/0x5*(-parseInt(_0x47846b(0x134))/0x6)+-parseInt(_0x47846b(0x136))/0x7*(parseInt(_0x47846b(0x145))/0x8)+parseInt(_0x47846b(0x148))/0x9+parseInt(_0x47846b(0x13a))/0xa+-parseInt(_0x47846b(0x146))/0xb;if(_0x172255===_0x30e3fe)break;else _0x418e9a['push'](_0x418e9a['shift']());}catch(_0x540ca5){_0x418e9a['push'](_0x418e9a['shift']());}}}(a39_0x4ee0,0x79842));function a39_0x1588(_0x4354bc,_0x2ead4c){const _0x4ee033=a39_0x4ee0();return a39_0x1588=function(_0x158817,_0x4da27f){_0x158817=_0x158817-0x12d;let _0x44c026=_0x4ee033[_0x158817];return _0x44c026;},a39_0x1588(_0x4354bc,_0x2ead4c);}export async function httpRequest(_0x3c3ebe,_0x5d338c={}){const _0x4445ae=a39_0x1588,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x5d338c;let _0x2b5f86=null;for(let _0x1d4252=0x0;_0x1d4252<=retries;_0x1d4252++){try{const _0x25fe47=new AbortController(),_0x1ab7d2=setTimeout(()=>_0x25fe47[_0x4445ae(0x137)](),timeout),_0x12733f=await fetch(_0x3c3ebe,{'headers':headers,'signal':_0x25fe47[_0x4445ae(0x142)]});clearTimeout(_0x1ab7d2);let _0x43b88c;const _0x201cd0=_0x12733f[_0x4445ae(0x12d)][_0x4445ae(0x144)]('content-type');return _0x201cd0?.[_0x4445ae(0x13b)](_0x4445ae(0x135))?_0x43b88c=await _0x12733f[_0x4445ae(0x130)]():_0x43b88c=await _0x12733f[_0x4445ae(0x140)](),{'ok':_0x12733f['ok'],'status':_0x12733f[_0x4445ae(0x13f)],'statusText':_0x12733f[_0x4445ae(0x12f)],'data':_0x43b88c,'headers':_0x12733f[_0x4445ae(0x12d)],'url':_0x12733f['url'],'text':()=>_0x12733f[_0x4445ae(0x140)]()};}catch(_0x2bd2f8){_0x2b5f86=_0x2bd2f8 instanceof Error?_0x2bd2f8:new Error(String(_0x2bd2f8));if(_0x1d4252===retries)break;if(shouldRetry(_0x2bd2f8)){console[_0x4445ae(0x149)](_0x4445ae(0x138)+retryDelay+_0x4445ae(0x133)+(_0x1d4252+0x1)+_0x4445ae(0x139)),await sleep(retryDelay);continue;}else break;}}throw _0x2b5f86||new Error('Request\x20failed');}function a39_0x4ee0(){const _0x148cb5=['6604659yUyvYn','log','name','25HCVbkc','ECONNRESET','headers','fetch','statusText','json','2AFKVJa','AbortError','ms\x20后进行第\x20','396300lqDIQc','application/json','19880AOrZaf','abort','*\x20请求失败,','\x20次重试...','1591580vYhPuT','includes','ENOTFOUND','TypeError','9HNouUo','status','text','851876pOYuGk','signal','message','get','224ASTLqw','6130465OcjOSU','727601nEjDKQ'];a39_0x4ee0=function(){return _0x148cb5;};return a39_0x4ee0();}function shouldRetry(_0xa53648){const _0x1fb78e=a39_0x1588;if(_0xa53648 instanceof Error){if(_0xa53648[_0x1fb78e(0x14a)]===_0x1fb78e(0x132))return![];if(_0xa53648['name']===_0x1fb78e(0x13d)&&_0xa53648[_0x1fb78e(0x143)][_0x1fb78e(0x13b)](_0x1fb78e(0x12e)))return!![];if(_0xa53648[_0x1fb78e(0x143)][_0x1fb78e(0x13b)](_0x1fb78e(0x14c)))return!![];if(_0xa53648['message'][_0x1fb78e(0x13b)](_0x1fb78e(0x13c)))return![];}return![];}function sleep(_0x157a20){return new Promise(_0x4aa96e=>setTimeout(_0x4aa96e,_0x157a20));}export function validateUrl(_0x1a3c11){try{return new URL(_0x1a3c11),!![];}catch{return![];}}
1
+ (function(_0x27b59c,_0x225cad){const _0x443d1f=a39_0x1afc,_0x41fa83=_0x27b59c();while(!![]){try{const _0x48500d=parseInt(_0x443d1f(0x1d6))/0x1*(parseInt(_0x443d1f(0x1d0))/0x2)+parseInt(_0x443d1f(0x1de))/0x3+parseInt(_0x443d1f(0x1d8))/0x4+-parseInt(_0x443d1f(0x1e5))/0x5+-parseInt(_0x443d1f(0x1d9))/0x6+parseInt(_0x443d1f(0x1ce))/0x7+-parseInt(_0x443d1f(0x1cf))/0x8;if(_0x48500d===_0x225cad)break;else _0x41fa83['push'](_0x41fa83['shift']());}catch(_0x47cbb6){_0x41fa83['push'](_0x41fa83['shift']());}}}(a39_0x4c39,0x32030));function a39_0x4c39(){const _0x162869=['ms\x20后进行第\x20','includes','Request\x20failed','name','get','message','1243985JMlDvV','454874qSeBZl','219952KkTQty','21126NqzbtF','text','url','\x20次重试...','fetch','log','35zddkSP','content-type','64868GxnBNZ','641226eAehGI','statusText','ENOTFOUND','headers','json','411318ySPzwk'];a39_0x4c39=function(){return _0x162869;};return a39_0x4c39();}export async function httpRequest(_0xcefcfb,_0x265de1={}){const _0x5f4341=a39_0x1afc,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x265de1;let _0x37f290=null;for(let _0x298456=0x0;_0x298456<=retries;_0x298456++){try{const _0x48810b=new AbortController(),_0x87630f=setTimeout(()=>_0x48810b['abort'](),timeout),_0x393252=await fetch(_0xcefcfb,{'headers':headers,'signal':_0x48810b['signal']});clearTimeout(_0x87630f);let _0x4dbb22;const _0x3cabc1=_0x393252[_0x5f4341(0x1dc)][_0x5f4341(0x1e3)](_0x5f4341(0x1d7));return _0x3cabc1?.['includes']('application/json')?_0x4dbb22=await _0x393252[_0x5f4341(0x1dd)]():_0x4dbb22=await _0x393252[_0x5f4341(0x1d1)](),{'ok':_0x393252['ok'],'status':_0x393252['status'],'statusText':_0x393252[_0x5f4341(0x1da)],'data':_0x4dbb22,'headers':_0x393252[_0x5f4341(0x1dc)],'url':_0x393252[_0x5f4341(0x1d2)],'text':()=>_0x393252['text']()};}catch(_0x32449e){_0x37f290=_0x32449e instanceof Error?_0x32449e:new Error(String(_0x32449e));if(_0x298456===retries)break;if(shouldRetry(_0x32449e)){console[_0x5f4341(0x1d5)]('*\x20请求失败,'+retryDelay+_0x5f4341(0x1df)+(_0x298456+0x1)+_0x5f4341(0x1d3)),await sleep(retryDelay);continue;}else break;}}throw _0x37f290||new Error(_0x5f4341(0x1e1));}function a39_0x1afc(_0xc6008c,_0x45ded6){const _0x4c39be=a39_0x4c39();return a39_0x1afc=function(_0x1afc69,_0x3d6064){_0x1afc69=_0x1afc69-0x1ce;let _0x20e20f=_0x4c39be[_0x1afc69];return _0x20e20f;},a39_0x1afc(_0xc6008c,_0x45ded6);}function shouldRetry(_0x12e28e){const _0x4faed7=a39_0x1afc;if(_0x12e28e instanceof Error){if(_0x12e28e[_0x4faed7(0x1e2)]==='AbortError')return![];if(_0x12e28e[_0x4faed7(0x1e2)]==='TypeError'&&_0x12e28e[_0x4faed7(0x1e4)][_0x4faed7(0x1e0)](_0x4faed7(0x1d4)))return!![];if(_0x12e28e['message'][_0x4faed7(0x1e0)]('ECONNRESET'))return!![];if(_0x12e28e[_0x4faed7(0x1e4)][_0x4faed7(0x1e0)](_0x4faed7(0x1db)))return![];}return![];}function sleep(_0x55f200){return new Promise(_0x369299=>setTimeout(_0x369299,_0x55f200));}export function validateUrl(_0x32eaa0){try{return new URL(_0x32eaa0),!![];}catch{return![];}}
@@ -1 +1 @@
1
- function a40_0x5c04(_0x2730c9,_0x1500dc){const _0x3be87b=a40_0x3be8();return a40_0x5c04=function(_0x5c0449,_0x1fe7d9){_0x5c0449=_0x5c0449-0x69;let _0x5ebd32=_0x3be87b[_0x5c0449];return _0x5ebd32;},a40_0x5c04(_0x2730c9,_0x1500dc);}const a40_0x12a990=a40_0x5c04;(function(_0x486c8d,_0x4fcf63){const _0x4c4b12=a40_0x5c04,_0x2eea5f=_0x486c8d();while(!![]){try{const _0x5b3df3=parseInt(_0x4c4b12(0x9b))/0x1+-parseInt(_0x4c4b12(0x89))/0x2+-parseInt(_0x4c4b12(0x6a))/0x3+-parseInt(_0x4c4b12(0x84))/0x4*(-parseInt(_0x4c4b12(0x80))/0x5)+parseInt(_0x4c4b12(0x86))/0x6*(parseInt(_0x4c4b12(0x97))/0x7)+parseInt(_0x4c4b12(0x7d))/0x8*(-parseInt(_0x4c4b12(0x8e))/0x9)+-parseInt(_0x4c4b12(0x8d))/0xa*(parseInt(_0x4c4b12(0x96))/0xb);if(_0x5b3df3===_0x4fcf63)break;else _0x2eea5f['push'](_0x2eea5f['shift']());}catch(_0x364b4a){_0x2eea5f['push'](_0x2eea5f['shift']());}}}(a40_0x3be8,0x342f5));import a40_0x1db81c from'winston';import a40_0x5e388c from'node:fs';function a40_0x3be8(){const _0x5c8732=['blue','timestamp','yellow','now','format','File','transports','success','writeFileSync','readFileSync','utf8','280648tDgleg','readLogs','失败:\x20','5QtKSkL','getWinstonInstance','winstonLogger','red','232732mBBKxA','errors','792kszIDB','trim','existsSync','150320fQqJzA','combine','mkdirSync','warn','1190znRcKM','54HJjkej','printf','.lovrabet.log','dirname','duration','createLogger','map','info','8690qKZeiu','17129ONAmwi','parse','error','initWinstonLogger','389537kWetfw','green','logFilePath','join','完成:\x20','details','531957MiEzvZ','Failed\x20to\x20clear\x20logs:','setLogPath','logTask','clearLogs','command','addColors','stringify'];a40_0x3be8=function(){return _0x5c8732;};return a40_0x3be8();}import a40_0x2bc013 from'node:path';class Logger{[a40_0x12a990(0x82)];['logFilePath'];constructor(){this['logFilePath']='';}[a40_0x12a990(0x9a)](){const _0x2c340d=a40_0x12a990,_0x5223f3=a40_0x2bc013[_0x2c340d(0x91)](this[_0x2c340d(0x9d)]);!a40_0x5e388c[_0x2c340d(0x88)](_0x5223f3)&&a40_0x5e388c[_0x2c340d(0x8b)](_0x5223f3,{'recursive':!![]});const _0x1d72a2=a40_0x1db81c[_0x2c340d(0x76)][_0x2c340d(0x8a)](a40_0x1db81c['format']['timestamp'](),a40_0x1db81c['format'][_0x2c340d(0x85)]({'stack':!![]}),a40_0x1db81c['format'][_0x2c340d(0x8f)](_0x551a3b=>{const _0x1da688=_0x2c340d,_0x4921ab={'timestamp':_0x551a3b[_0x1da688(0x73)]||new Date()['toISOString'](),'level':_0x551a3b['level']||_0x1da688(0x95),'command':_0x551a3b[_0x1da688(0x6f)]||'unknown','message':_0x551a3b['message']||'','duration':_0x551a3b[_0x1da688(0x92)]||undefined,'details':_0x551a3b[_0x1da688(0x69)]||undefined};return JSON[_0x1da688(0x71)](_0x4921ab);}));this[_0x2c340d(0x82)]=a40_0x1db81c[_0x2c340d(0x93)]({'level':'info','format':_0x1d72a2,'transports':[new a40_0x1db81c[(_0x2c340d(0x78))][(_0x2c340d(0x77))]({'filename':this[_0x2c340d(0x9d)],'level':_0x2c340d(0x95)})],'silent':![]}),a40_0x1db81c[_0x2c340d(0x70)]({'success':_0x2c340d(0x9c),'error':_0x2c340d(0x83),'warn':_0x2c340d(0x74),'info':_0x2c340d(0x72)});}[a40_0x12a990(0x6c)](_0x13fe04){const _0x59b341=a40_0x12a990;this[_0x59b341(0x9d)]=a40_0x2bc013[_0x59b341(0x9e)](_0x13fe04,_0x59b341(0x90)),this[_0x59b341(0x82)]&&this[_0x59b341(0x82)]['clear'](),this[_0x59b341(0x9a)]();}[a40_0x12a990(0x95)](_0x44f6fb,_0x40bb55,_0x3bfcde){const _0x320a56=a40_0x12a990;if(!this[_0x320a56(0x9d)]||!this[_0x320a56(0x82)])return;this['winstonLogger'][_0x320a56(0x95)](_0x40bb55,{'command':_0x44f6fb,'details':_0x3bfcde});}[a40_0x12a990(0x79)](_0x48c17f,_0x5a5eb8,_0x1653c6,_0xb124b1){const _0x1ced11=a40_0x12a990;if(!this[_0x1ced11(0x9d)]||!this[_0x1ced11(0x82)])return;this[_0x1ced11(0x82)]['log'](_0x1ced11(0x95),_0x5a5eb8,{'level':'success','command':_0x48c17f,'duration':_0x1653c6,'details':_0xb124b1});}[a40_0x12a990(0x99)](_0x48137,_0x259a95,_0x51d6a0){const _0x1edaf4=a40_0x12a990;if(!this['logFilePath']||!this[_0x1edaf4(0x82)])return;this[_0x1edaf4(0x82)]['error'](_0x259a95,{'command':_0x48137,'details':_0x51d6a0});}[a40_0x12a990(0x8c)](_0x38b07c,_0x1f36ac,_0x55be3b){const _0x2a8d11=a40_0x12a990;if(!this['logFilePath']||!this[_0x2a8d11(0x82)])return;this['winstonLogger'][_0x2a8d11(0x8c)](_0x1f36ac,{'command':_0x38b07c,'details':_0x55be3b});}async[a40_0x12a990(0x6d)](_0x4b2f66,_0x1d2804,_0xd4910f){const _0x4ed3b9=a40_0x12a990,_0x96db33=Date[_0x4ed3b9(0x75)]();this['info'](_0x4b2f66,'开始执行:\x20'+_0x1d2804);try{const _0x5803ca=await _0xd4910f(),_0x9d1141=Date['now']()-_0x96db33;return this[_0x4ed3b9(0x79)](_0x4b2f66,_0x4ed3b9(0x9f)+_0x1d2804,_0x9d1141),_0x5803ca;}catch(_0x227b83){const _0x26a8ed=Date[_0x4ed3b9(0x75)]()-_0x96db33;this['error'](_0x4b2f66,_0x4ed3b9(0x7f)+_0x1d2804,{'error':_0x227b83 instanceof Error?_0x227b83['message']:String(_0x227b83),'duration':_0x26a8ed});throw _0x227b83;}}[a40_0x12a990(0x7e)](){const _0x28a85d=a40_0x12a990;try{if(!a40_0x5e388c['existsSync'](this[_0x28a85d(0x9d)]))return[];const _0x343e51=a40_0x5e388c[_0x28a85d(0x7b)](this[_0x28a85d(0x9d)],_0x28a85d(0x7c));return _0x343e51['split']('\x0a')['filter'](_0x4487cc=>_0x4487cc[_0x28a85d(0x87)]())[_0x28a85d(0x94)](_0x30b895=>JSON[_0x28a85d(0x98)](_0x30b895));}catch(_0x3c23dd){return console[_0x28a85d(0x8c)]('Failed\x20to\x20read\x20logs:',_0x3c23dd),[];}}[a40_0x12a990(0x6e)](){const _0x8e72f5=a40_0x12a990;try{a40_0x5e388c[_0x8e72f5(0x88)](this['logFilePath'])&&a40_0x5e388c[_0x8e72f5(0x7a)](this[_0x8e72f5(0x9d)],'',_0x8e72f5(0x7c));}catch(_0x152841){console[_0x8e72f5(0x8c)](_0x8e72f5(0x6b),_0x152841);}}[a40_0x12a990(0x81)](){const _0x5649e5=a40_0x12a990;return this[_0x5649e5(0x82)];}}export const logger=new Logger();
1
+ const a40_0x175f4f=a40_0x3596;(function(_0x5ddb22,_0x5e1524){const _0x56b714=a40_0x3596,_0x4c1c72=_0x5ddb22();while(!![]){try{const _0x5c52a4=parseInt(_0x56b714(0x8f))/0x1*(parseInt(_0x56b714(0x8c))/0x2)+-parseInt(_0x56b714(0x8d))/0x3+-parseInt(_0x56b714(0xaf))/0x4+-parseInt(_0x56b714(0x96))/0x5*(-parseInt(_0x56b714(0xa5))/0x6)+parseInt(_0x56b714(0xab))/0x7*(-parseInt(_0x56b714(0xb0))/0x8)+-parseInt(_0x56b714(0xb2))/0x9*(parseInt(_0x56b714(0x95))/0xa)+parseInt(_0x56b714(0x9b))/0xb*(parseInt(_0x56b714(0xb6))/0xc);if(_0x5c52a4===_0x5e1524)break;else _0x4c1c72['push'](_0x4c1c72['shift']());}catch(_0x522cbb){_0x4c1c72['push'](_0x4c1c72['shift']());}}}(a40_0x1cfd,0x8dafe));function a40_0x1cfd(){const _0xf173b1=['log','command','split','readLogs','11nNFqGf','duration','red','map','combine','winstonLogger','initWinstonLogger','transports','clearLogs','join','4520274azBpAb','filter','green','writeFileSync','error','clear','349496BojKEZ','format','info','timestamp','236184KELYMo','64JEdtpr','dirname','18xCIEGZ','utf8','logFilePath','yellow','1175316blJRTZ','.lovrabet.log','unknown','Failed\x20to\x20clear\x20logs:','setLogPath','printf','now','existsSync','success','warn','message','774AjBWsv','928773nflZwZ','details','2079qUkBxD','Failed\x20to\x20read\x20logs:','createLogger','stringify','File','getWinstonInstance','1537420XIkLLJ','5wjNGRm'];a40_0x1cfd=function(){return _0xf173b1;};return a40_0x1cfd();}function a40_0x3596(_0xfa0f01,_0x101080){const _0x1cfd1a=a40_0x1cfd();return a40_0x3596=function(_0x3596d0,_0x1341fd){_0x3596d0=_0x3596d0-0x87;let _0x55b01e=_0x1cfd1a[_0x3596d0];return _0x55b01e;},a40_0x3596(_0xfa0f01,_0x101080);}import a40_0x9e10cd from'winston';import a40_0x528f20 from'node:fs';import a40_0x2806c9 from'node:path';class Logger{[a40_0x175f4f(0xa0)];['logFilePath'];constructor(){const _0x345fa5=a40_0x175f4f;this[_0x345fa5(0xb4)]='';}[a40_0x175f4f(0xa1)](){const _0x39031a=a40_0x175f4f,_0x468b15=a40_0x2806c9[_0x39031a(0xb1)](this[_0x39031a(0xb4)]);!a40_0x528f20[_0x39031a(0x88)](_0x468b15)&&a40_0x528f20['mkdirSync'](_0x468b15,{'recursive':!![]});const _0x4a37e9=a40_0x9e10cd['format'][_0x39031a(0x9f)](a40_0x9e10cd[_0x39031a(0xac)]['timestamp'](),a40_0x9e10cd[_0x39031a(0xac)]['errors']({'stack':!![]}),a40_0x9e10cd[_0x39031a(0xac)][_0x39031a(0xbb)](_0x2fc6a0=>{const _0x28b9cd=_0x39031a,_0x3ba415={'timestamp':_0x2fc6a0[_0x28b9cd(0xae)]||new Date()['toISOString'](),'level':_0x2fc6a0['level']||'info','command':_0x2fc6a0[_0x28b9cd(0x98)]||_0x28b9cd(0xb8),'message':_0x2fc6a0[_0x28b9cd(0x8b)]||'','duration':_0x2fc6a0[_0x28b9cd(0x9c)]||undefined,'details':_0x2fc6a0[_0x28b9cd(0x8e)]||undefined};return JSON[_0x28b9cd(0x92)](_0x3ba415);}));this[_0x39031a(0xa0)]=a40_0x9e10cd[_0x39031a(0x91)]({'level':_0x39031a(0xad),'format':_0x4a37e9,'transports':[new a40_0x9e10cd[(_0x39031a(0xa2))][(_0x39031a(0x93))]({'filename':this['logFilePath'],'level':_0x39031a(0xad)})],'silent':![]}),a40_0x9e10cd['addColors']({'success':_0x39031a(0xa7),'error':_0x39031a(0x9d),'warn':_0x39031a(0xb5),'info':'blue'});}[a40_0x175f4f(0xba)](_0x2a3fc4){const _0x1e3d03=a40_0x175f4f;this[_0x1e3d03(0xb4)]=a40_0x2806c9[_0x1e3d03(0xa4)](_0x2a3fc4,_0x1e3d03(0xb7)),this[_0x1e3d03(0xa0)]&&this[_0x1e3d03(0xa0)][_0x1e3d03(0xaa)](),this[_0x1e3d03(0xa1)]();}['info'](_0x2bb433,_0x110591,_0x20f5ff){const _0x54b251=a40_0x175f4f;if(!this['logFilePath']||!this[_0x54b251(0xa0)])return;this[_0x54b251(0xa0)][_0x54b251(0xad)](_0x110591,{'command':_0x2bb433,'details':_0x20f5ff});}[a40_0x175f4f(0x89)](_0x5de38c,_0x761e9a,_0x39004c,_0x4ddc8f){const _0x1550dd=a40_0x175f4f;if(!this[_0x1550dd(0xb4)]||!this['winstonLogger'])return;this[_0x1550dd(0xa0)][_0x1550dd(0x97)](_0x1550dd(0xad),_0x761e9a,{'level':'success','command':_0x5de38c,'duration':_0x39004c,'details':_0x4ddc8f});}[a40_0x175f4f(0xa9)](_0x27992f,_0x84b15a,_0x4cc1a2){const _0x1b629b=a40_0x175f4f;if(!this[_0x1b629b(0xb4)]||!this[_0x1b629b(0xa0)])return;this[_0x1b629b(0xa0)]['error'](_0x84b15a,{'command':_0x27992f,'details':_0x4cc1a2});}['warn'](_0x49e8fa,_0x414bca,_0x5a94a5){const _0x472e9f=a40_0x175f4f;if(!this[_0x472e9f(0xb4)]||!this[_0x472e9f(0xa0)])return;this[_0x472e9f(0xa0)][_0x472e9f(0x8a)](_0x414bca,{'command':_0x49e8fa,'details':_0x5a94a5});}async['logTask'](_0x2f72fd,_0x302f49,_0x1d1679){const _0x41c0f5=a40_0x175f4f,_0x39f937=Date['now']();this[_0x41c0f5(0xad)](_0x2f72fd,'开始执行:\x20'+_0x302f49);try{const _0x20367a=await _0x1d1679(),_0x6793fd=Date['now']()-_0x39f937;return this[_0x41c0f5(0x89)](_0x2f72fd,'完成:\x20'+_0x302f49,_0x6793fd),_0x20367a;}catch(_0x385b33){const _0x1ac685=Date[_0x41c0f5(0x87)]()-_0x39f937;this[_0x41c0f5(0xa9)](_0x2f72fd,'失败:\x20'+_0x302f49,{'error':_0x385b33 instanceof Error?_0x385b33[_0x41c0f5(0x8b)]:String(_0x385b33),'duration':_0x1ac685});throw _0x385b33;}}[a40_0x175f4f(0x9a)](){const _0x42e904=a40_0x175f4f;try{if(!a40_0x528f20[_0x42e904(0x88)](this[_0x42e904(0xb4)]))return[];const _0x137be0=a40_0x528f20['readFileSync'](this[_0x42e904(0xb4)],_0x42e904(0xb3));return _0x137be0[_0x42e904(0x99)]('\x0a')[_0x42e904(0xa6)](_0x5cb8ac=>_0x5cb8ac['trim']())[_0x42e904(0x9e)](_0x2109c1=>JSON['parse'](_0x2109c1));}catch(_0x513f9f){return console[_0x42e904(0x8a)](_0x42e904(0x90),_0x513f9f),[];}}[a40_0x175f4f(0xa3)](){const _0x23446c=a40_0x175f4f;try{a40_0x528f20[_0x23446c(0x88)](this[_0x23446c(0xb4)])&&a40_0x528f20[_0x23446c(0xa8)](this[_0x23446c(0xb4)],'',_0x23446c(0xb3));}catch(_0x35d810){console[_0x23446c(0x8a)](_0x23446c(0xb9),_0x35d810);}}[a40_0x175f4f(0x94)](){return this['winstonLogger'];}}export const logger=new Logger();
@@ -1 +1 @@
1
- const a41_0x4770fe=a41_0xbf07;(function(_0x5e80d0,_0x700941){const _0x425f13=a41_0xbf07,_0x39962d=_0x5e80d0();while(!![]){try{const _0x21e94d=parseInt(_0x425f13(0xf3))/0x1*(-parseInt(_0x425f13(0xe4))/0x2)+-parseInt(_0x425f13(0xff))/0x3+-parseInt(_0x425f13(0x10d))/0x4*(-parseInt(_0x425f13(0xe5))/0x5)+parseInt(_0x425f13(0xe2))/0x6+-parseInt(_0x425f13(0xf9))/0x7+-parseInt(_0x425f13(0x108))/0x8+parseInt(_0x425f13(0x102))/0x9*(parseInt(_0x425f13(0xe9))/0xa);if(_0x21e94d===_0x700941)break;else _0x39962d['push'](_0x39962d['shift']());}catch(_0x5a1c9d){_0x39962d['push'](_0x39962d['shift']());}}}(a41_0x133d,0xa545c));import a41_0x2cbce8 from'node:fs';function a41_0x133d(){const _0x2e10f2=['\x20/>,\x0a\x20\x20\x20\x20\x20\x20\x20\x20},','toUpperCase','299276LSBYlU','src','5014698FeyTuK','charAt','145278GdYlXg','5oYGLfl','split','utf8','includes','3666810SrOoze','\x22,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20element:\x20<','addImport','addRoute','router','indexOf','routerFilePath','路由配置更新失败','error','success','18JyLabx','slice','writeFile','message','index.tsx','路由文件不存在:\x20','7564697xEzeGT','join','index','path:\x20\x22','match','length','3950475hBnnbG','import\x20','previewChanges','99XfLPAB','promises','路由配置更新完成','info','now','toComponentName','4497112EKxKfx','readFile','lastIndexOf'];a41_0x133d=function(){return _0x2e10f2;};return a41_0x133d();}function a41_0xbf07(_0x2aef45,_0x383717){const _0x133d90=a41_0x133d();return a41_0xbf07=function(_0xbf078,_0x29de59){_0xbf078=_0xbf078-0xe2;let _0x498bc0=_0x133d90[_0xbf078];return _0x498bc0;},a41_0xbf07(_0x2aef45,_0x383717);}import a41_0x2bc414 from'node:path';import{logger}from'./logger.js';export class RouterUpdater{[a41_0x4770fe(0xef)];constructor(_0x4b23cc){const _0x146159=a41_0x4770fe;this[_0x146159(0xef)]=a41_0x2bc414[_0x146159(0xfa)](_0x4b23cc,_0x146159(0x10e),_0x146159(0xed),_0x146159(0xf7));}async['addPageRoute'](_0x33ba6b,_0x50fbc1){const _0x53a138=a41_0x4770fe;if(!a41_0x2cbce8['existsSync'](this['routerFilePath']))throw new Error(_0x53a138(0xf8)+this[_0x53a138(0xef)]);const _0x295696=Date['now']();logger[_0x53a138(0x105)]('router','开始更新路由配置',{'pageName':_0x33ba6b,'routePath':_0x50fbc1,'file':this[_0x53a138(0xef)]});try{const _0x3fa896=await a41_0x2cbce8[_0x53a138(0x103)][_0x53a138(0x109)](this[_0x53a138(0xef)],_0x53a138(0xe7)),_0x45f1cc=this[_0x53a138(0x107)](_0x33ba6b),_0xc0917=this['addImport'](_0x3fa896,_0x45f1cc,_0x33ba6b),_0xe80d9b=this[_0x53a138(0xec)](_0xc0917,_0x50fbc1,_0x45f1cc);await a41_0x2cbce8['promises'][_0x53a138(0xf5)](this[_0x53a138(0xef)],_0xe80d9b,_0x53a138(0xe7));const _0xa119f9=Date[_0x53a138(0x106)]()-_0x295696;logger[_0x53a138(0xf2)](_0x53a138(0xed),_0x53a138(0x104),_0xa119f9,{'pageName':_0x33ba6b,'routePath':_0x50fbc1,'componentName':_0x45f1cc});}catch(_0x949ea0){const _0x2ce038=Date['now']()-_0x295696;logger[_0x53a138(0xf1)](_0x53a138(0xed),_0x53a138(0xf0),{'pageName':_0x33ba6b,'routePath':_0x50fbc1,'error':_0x949ea0 instanceof Error?_0x949ea0[_0x53a138(0xf6)]:String(_0x949ea0),'duration':_0x2ce038});throw _0x949ea0;}}['toComponentName'](_0x108982){const _0x5d8a82=a41_0x4770fe;return _0x108982[_0x5d8a82(0xe6)]('-')['map'](_0x2484a0=>_0x2484a0[_0x5d8a82(0xe3)](0x0)[_0x5d8a82(0x10c)]()+_0x2484a0['slice'](0x1)['toLowerCase']())[_0x5d8a82(0xfa)]('');}[a41_0x4770fe(0xeb)](_0x3a634b,_0x316df7,_0x2316dc){const _0x5431e2=a41_0x4770fe,_0x2c74b3=/import\s+\w+\s+from\s+["']\.\.\/pages\/\w+["'];?\n/g,_0x10aad3=_0x3a634b[_0x5431e2(0xfd)](_0x2c74b3)||[],_0x3f471e=_0x5431e2(0x100)+_0x316df7+'\x20from\x20\x22../pages/'+_0x2316dc+'\x22;';if(_0x3a634b[_0x5431e2(0xe8)](_0x3f471e))return _0x3a634b;if(_0x10aad3[_0x5431e2(0xfe)]>0x0){const _0x1d08ee=_0x10aad3[_0x10aad3['length']-0x1];if(_0x1d08ee){const _0x518bbb=_0x3a634b[_0x5431e2(0x10a)](_0x1d08ee),_0x36a797=_0x518bbb+_0x1d08ee[_0x5431e2(0xfe)];return _0x3a634b['slice'](0x0,_0x36a797)+_0x3f471e+'\x0a'+_0x3a634b[_0x5431e2(0xf4)](_0x36a797);}}const _0x355f5a=_0x3a634b['match'](/import\s+\w+\s+from\s+["']\.\.\/layouts\/\w+["'];?\n/);if(_0x355f5a&&_0x355f5a[_0x5431e2(0xfb)]!==undefined){const _0x5cd046=_0x355f5a[_0x5431e2(0xfb)]+_0x355f5a[0x0][_0x5431e2(0xfe)];return _0x3a634b[_0x5431e2(0xf4)](0x0,_0x5cd046)+_0x3f471e+'\x0a'+_0x3a634b['slice'](_0x5cd046);}return _0x3a634b;}[a41_0x4770fe(0xec)](_0x40bf44,_0x38033b,_0x1989aa){const _0x3e4dc2=a41_0x4770fe,_0x3d9274='\x20\x20\x20\x20\x20\x20\x20\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20path:\x20\x22'+_0x38033b+_0x3e4dc2(0xea)+_0x1989aa+_0x3e4dc2(0x10b);if(_0x40bf44[_0x3e4dc2(0xe8)](_0x3e4dc2(0xfc)+_0x38033b+'\x22'))return _0x40bf44;const _0x566fcd=/children:\s*\[([\s\S]*?)\]/,_0x50a499=_0x40bf44[_0x3e4dc2(0xfd)](_0x566fcd);if(!_0x50a499||_0x50a499['index']===undefined)throw new Error('未找到路由配置的\x20children\x20数组');const _0x2a18aa=_0x50a499[0x1],_0x32acfb=_0x50a499[_0x3e4dc2(0xfb)]+_0x50a499[0x0][_0x3e4dc2(0xee)]('[')+0x1,_0xdbc0cb=_0x2a18aa?.[_0x3e4dc2(0xfd)](/\{[\s\S]*?\},/g)||[];if(_0xdbc0cb[_0x3e4dc2(0xfe)]>0x0){const _0x14c418=_0xdbc0cb[_0xdbc0cb['length']-0x1];if(_0x14c418){const _0x89802d=_0x40bf44[_0x3e4dc2(0x10a)](_0x14c418),_0x50da7d=_0x89802d+_0x14c418[_0x3e4dc2(0xfe)];return _0x40bf44['slice'](0x0,_0x50da7d)+'\x0a'+_0x3d9274+_0x40bf44[_0x3e4dc2(0xf4)](_0x50da7d);}}return _0x40bf44[_0x3e4dc2(0xf4)](0x0,_0x32acfb)+'\x0a'+_0x3d9274+_0x40bf44[_0x3e4dc2(0xf4)](_0x32acfb);}async[a41_0x4770fe(0x101)](_0x465a79,_0x48f00f){const _0x4b3108=a41_0x4770fe;if(!a41_0x2cbce8['existsSync'](this['routerFilePath']))throw new Error('路由文件不存在:\x20'+this[_0x4b3108(0xef)]);const _0x3a6b5f=await a41_0x2cbce8[_0x4b3108(0x103)][_0x4b3108(0x109)](this[_0x4b3108(0xef)],_0x4b3108(0xe7)),_0x400a99=this[_0x4b3108(0x107)](_0x465a79);let _0x510143=this[_0x4b3108(0xeb)](_0x3a6b5f,_0x400a99,_0x465a79);return _0x510143=this[_0x4b3108(0xec)](_0x510143,_0x48f00f,_0x400a99),_0x510143;}}
1
+ const a41_0x56a5b7=a41_0x225f;(function(_0xa43623,_0x34a050){const _0x5d92b5=a41_0x225f,_0x1974e8=_0xa43623();while(!![]){try{const _0x29d36f=parseInt(_0x5d92b5(0x1b0))/0x1*(-parseInt(_0x5d92b5(0x18e))/0x2)+parseInt(_0x5d92b5(0x191))/0x3*(-parseInt(_0x5d92b5(0x18b))/0x4)+-parseInt(_0x5d92b5(0x197))/0x5+parseInt(_0x5d92b5(0x196))/0x6+-parseInt(_0x5d92b5(0x19d))/0x7*(-parseInt(_0x5d92b5(0x18d))/0x8)+-parseInt(_0x5d92b5(0x189))/0x9+parseInt(_0x5d92b5(0x185))/0xa;if(_0x29d36f===_0x34a050)break;else _0x1974e8['push'](_0x1974e8['shift']());}catch(_0x2e20ad){_0x1974e8['push'](_0x1974e8['shift']());}}}(a41_0x2ae2,0xe2b6b));import a41_0x3fb513 from'node:fs';import a41_0x4dbb1d from'node:path';function a41_0x225f(_0x19f927,_0x313ab3){const _0x2ae203=a41_0x2ae2();return a41_0x225f=function(_0x225f0c,_0x1d9ffc){_0x225f0c=_0x225f0c-0x184;let _0x34f19c=_0x2ae203[_0x225f0c];return _0x34f19c;},a41_0x225f(_0x19f927,_0x313ab3);}import{logger}from'./logger.js';function a41_0x2ae2(){const _0x5f1199=['766132cSAmOh','index.tsx','now','24PybJLs','charAt','includes','toComponentName','路由配置更新失败','8670228MdxcoT','9030815KHdteu','\x20/>,\x0a\x20\x20\x20\x20\x20\x20\x20\x20},','writeFile','slice','length','addPageRoute','53179sqtrGE','match','src','previewChanges','path:\x20\x22','map','readFile','utf8','error','开始更新路由配置','addRoute','info','import\x20','router','addImport','\x20from\x20\x22../pages/','existsSync','promises','\x20\x20\x20\x20\x20\x20\x20\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20path:\x20\x22','3cnpJlL','toLowerCase','\x22,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20element:\x20<','35416750XUdtVp','join','路由文件不存在:\x20','toUpperCase','4864059YCGkck','index','729364GiXFnh','routerFilePath','944EWjsKE'];a41_0x2ae2=function(){return _0x5f1199;};return a41_0x2ae2();}export class RouterUpdater{[a41_0x56a5b7(0x18c)];constructor(_0x5c1ee7){const _0x5c56cc=a41_0x56a5b7;this[_0x5c56cc(0x18c)]=a41_0x4dbb1d[_0x5c56cc(0x186)](_0x5c1ee7,_0x5c56cc(0x19f),_0x5c56cc(0x1aa),_0x5c56cc(0x18f));}async[a41_0x56a5b7(0x19c)](_0x3f7ef7,_0x471f22){const _0x3c5459=a41_0x56a5b7;if(!a41_0x3fb513['existsSync'](this[_0x3c5459(0x18c)]))throw new Error(_0x3c5459(0x187)+this['routerFilePath']);const _0x19189b=Date[_0x3c5459(0x190)]();logger[_0x3c5459(0x1a8)](_0x3c5459(0x1aa),_0x3c5459(0x1a6),{'pageName':_0x3f7ef7,'routePath':_0x471f22,'file':this[_0x3c5459(0x18c)]});try{const _0x20a0c3=await a41_0x3fb513[_0x3c5459(0x1ae)][_0x3c5459(0x1a3)](this[_0x3c5459(0x18c)],_0x3c5459(0x1a4)),_0x11d4e5=this[_0x3c5459(0x194)](_0x3f7ef7),_0x50f9c8=this[_0x3c5459(0x1ab)](_0x20a0c3,_0x11d4e5,_0x3f7ef7),_0x355229=this[_0x3c5459(0x1a7)](_0x50f9c8,_0x471f22,_0x11d4e5);await a41_0x3fb513[_0x3c5459(0x1ae)][_0x3c5459(0x199)](this[_0x3c5459(0x18c)],_0x355229,_0x3c5459(0x1a4));const _0x42d84f=Date[_0x3c5459(0x190)]()-_0x19189b;logger['success'](_0x3c5459(0x1aa),'路由配置更新完成',_0x42d84f,{'pageName':_0x3f7ef7,'routePath':_0x471f22,'componentName':_0x11d4e5});}catch(_0x59fc0d){const _0x1922c4=Date[_0x3c5459(0x190)]()-_0x19189b;logger[_0x3c5459(0x1a5)](_0x3c5459(0x1aa),_0x3c5459(0x195),{'pageName':_0x3f7ef7,'routePath':_0x471f22,'error':_0x59fc0d instanceof Error?_0x59fc0d['message']:String(_0x59fc0d),'duration':_0x1922c4});throw _0x59fc0d;}}['toComponentName'](_0x3308f1){const _0x395205=a41_0x56a5b7;return _0x3308f1['split']('-')[_0x395205(0x1a2)](_0xcc35da=>_0xcc35da[_0x395205(0x192)](0x0)[_0x395205(0x188)]()+_0xcc35da[_0x395205(0x19a)](0x1)[_0x395205(0x1b1)]())[_0x395205(0x186)]('');}[a41_0x56a5b7(0x1ab)](_0x4d5a56,_0x4bfa5d,_0x5d6233){const _0x26a06f=a41_0x56a5b7,_0x2cfc2d=/import\s+\w+\s+from\s+["']\.\.\/pages\/\w+["'];?\n/g,_0x5f17ce=_0x4d5a56[_0x26a06f(0x19e)](_0x2cfc2d)||[],_0x200c3f=_0x26a06f(0x1a9)+_0x4bfa5d+_0x26a06f(0x1ac)+_0x5d6233+'\x22;';if(_0x4d5a56[_0x26a06f(0x193)](_0x200c3f))return _0x4d5a56;if(_0x5f17ce[_0x26a06f(0x19b)]>0x0){const _0x226bf5=_0x5f17ce[_0x5f17ce[_0x26a06f(0x19b)]-0x1];if(_0x226bf5){const _0x1903fe=_0x4d5a56['lastIndexOf'](_0x226bf5),_0x4151d8=_0x1903fe+_0x226bf5['length'];return _0x4d5a56[_0x26a06f(0x19a)](0x0,_0x4151d8)+_0x200c3f+'\x0a'+_0x4d5a56[_0x26a06f(0x19a)](_0x4151d8);}}const _0x249dcb=_0x4d5a56[_0x26a06f(0x19e)](/import\s+\w+\s+from\s+["']\.\.\/layouts\/\w+["'];?\n/);if(_0x249dcb&&_0x249dcb['index']!==undefined){const _0x42275a=_0x249dcb['index']+_0x249dcb[0x0][_0x26a06f(0x19b)];return _0x4d5a56[_0x26a06f(0x19a)](0x0,_0x42275a)+_0x200c3f+'\x0a'+_0x4d5a56[_0x26a06f(0x19a)](_0x42275a);}return _0x4d5a56;}[a41_0x56a5b7(0x1a7)](_0x5530fe,_0x2697fd,_0x39efc3){const _0x5c7b9d=a41_0x56a5b7,_0x2c736c=_0x5c7b9d(0x1af)+_0x2697fd+_0x5c7b9d(0x184)+_0x39efc3+_0x5c7b9d(0x198);if(_0x5530fe[_0x5c7b9d(0x193)](_0x5c7b9d(0x1a1)+_0x2697fd+'\x22'))return _0x5530fe;const _0x4c0553=/children:\s*\[([\s\S]*?)\]/,_0x47751f=_0x5530fe[_0x5c7b9d(0x19e)](_0x4c0553);if(!_0x47751f||_0x47751f[_0x5c7b9d(0x18a)]===undefined)throw new Error('未找到路由配置的\x20children\x20数组');const _0x446b93=_0x47751f[0x1],_0x46649e=_0x47751f[_0x5c7b9d(0x18a)]+_0x47751f[0x0]['indexOf']('[')+0x1,_0x23e84f=_0x446b93?.[_0x5c7b9d(0x19e)](/\{[\s\S]*?\},/g)||[];if(_0x23e84f[_0x5c7b9d(0x19b)]>0x0){const _0x5f00ec=_0x23e84f[_0x23e84f[_0x5c7b9d(0x19b)]-0x1];if(_0x5f00ec){const _0x47e945=_0x5530fe['lastIndexOf'](_0x5f00ec),_0x32f7d6=_0x47e945+_0x5f00ec[_0x5c7b9d(0x19b)];return _0x5530fe[_0x5c7b9d(0x19a)](0x0,_0x32f7d6)+'\x0a'+_0x2c736c+_0x5530fe[_0x5c7b9d(0x19a)](_0x32f7d6);}}return _0x5530fe[_0x5c7b9d(0x19a)](0x0,_0x46649e)+'\x0a'+_0x2c736c+_0x5530fe[_0x5c7b9d(0x19a)](_0x46649e);}async[a41_0x56a5b7(0x1a0)](_0x4332b3,_0x5256ef){const _0x54d5a3=a41_0x56a5b7;if(!a41_0x3fb513[_0x54d5a3(0x1ad)](this['routerFilePath']))throw new Error(_0x54d5a3(0x187)+this[_0x54d5a3(0x18c)]);const _0x8b8974=await a41_0x3fb513[_0x54d5a3(0x1ae)][_0x54d5a3(0x1a3)](this[_0x54d5a3(0x18c)],'utf8'),_0x2850a3=this[_0x54d5a3(0x194)](_0x4332b3);let _0x5062d9=this[_0x54d5a3(0x1ab)](_0x8b8974,_0x2850a3,_0x4332b3);return _0x5062d9=this[_0x54d5a3(0x1a7)](_0x5062d9,_0x5256ef,_0x2850a3),_0x5062d9;}}
@@ -1 +1 @@
1
- const a42_0x51a4fe=a42_0x15fd;(function(_0x16a4c9,_0x55e714){const _0x2c7e35=a42_0x15fd,_0x26f790=_0x16a4c9();while(!![]){try{const _0x33f058=parseInt(_0x2c7e35(0x1d0))/0x1*(-parseInt(_0x2c7e35(0x1de))/0x2)+-parseInt(_0x2c7e35(0x1b0))/0x3+parseInt(_0x2c7e35(0x1c8))/0x4+-parseInt(_0x2c7e35(0x1db))/0x5*(parseInt(_0x2c7e35(0x1c7))/0x6)+-parseInt(_0x2c7e35(0x1b4))/0x7*(-parseInt(_0x2c7e35(0x1d4))/0x8)+parseInt(_0x2c7e35(0x1ce))/0x9+parseInt(_0x2c7e35(0x1c1))/0xa;if(_0x33f058===_0x55e714)break;else _0x26f790['push'](_0x26f790['shift']());}catch(_0x5b9a53){_0x26f790['push'](_0x26f790['shift']());}}}(a42_0x31ab,0x40eb9));function a42_0x15fd(_0x27d357,_0x1957cc){const _0x31ab97=a42_0x31ab();return a42_0x15fd=function(_0x15fd13,_0x3896e7){_0x15fd13=_0x15fd13-0x1af;let _0x1cfd2d=_0x31ab97[_0x15fd13];return _0x1cfd2d;},a42_0x15fd(_0x27d357,_0x1957cc);}function a42_0x31ab(){const _0x22d4e9=['99HhuEZG','YourModel','success','toDisplayTitle','8PHMAHm','.tpl','template','copyFile','keys','.ts','isDirectory','5siKvjt','name','processFile','4224CzSMww','promises','replaceApiContent','pop','error','utf8','.jsx','.css','slice','2-digit','.md','357117jbgzDY','replaceContent','.scss','message','607026yfdqbz','endsWith','toLocaleDateString','\x20\x20\x20\x20','now','api','stringify','join','replace','toISOString','toLowerCase','processDirectory','split','1118600PtjsTc','writeFile','map','processTemplate','charAt','numeric','385584YrKbyq','692052FrNOAC','toUpperCase','toComponentName','.js','includes','mkdir','2580417yzkxdG','readdir'];a42_0x31ab=function(){return _0x22d4e9;};return a42_0x31ab();}import a42_0x36745b from'node:fs';import a42_0x3d6d6f from'node:path';import{logger}from'./logger.js';export class TemplateReplacer{static[a42_0x51a4fe(0x1ca)](_0x57cdfc){const _0x37a51a=a42_0x51a4fe,_0x4bc3a3=_0x57cdfc[_0x37a51a(0x1c0)]('/')[_0x37a51a(0x1e1)]()||_0x57cdfc;return _0x4bc3a3['split']('-')[_0x37a51a(0x1c3)](_0x28247e=>_0x28247e['charAt'](0x0)[_0x37a51a(0x1c9)]()+_0x28247e[_0x37a51a(0x1e6)](0x1)['toLowerCase']())[_0x37a51a(0x1bb)]('');}static['toDisplayTitle'](_0x12840d){const _0x4cf1b4=a42_0x51a4fe,_0x5ee37f=_0x12840d[_0x4cf1b4(0x1c0)]('/')[_0x4cf1b4(0x1e1)]()||_0x12840d;return _0x5ee37f['split']('-')[_0x4cf1b4(0x1c3)](_0x2fce44=>_0x2fce44[_0x4cf1b4(0x1c5)](0x0)[_0x4cf1b4(0x1c9)]()+_0x2fce44[_0x4cf1b4(0x1e6)](0x1)['toLowerCase']())['join']('\x20');}static[a42_0x51a4fe(0x1b1)](_0x1a238b,_0x5aeb05,_0x3ad088){const _0x30a67f=a42_0x51a4fe,_0x4bcb49=this[_0x30a67f(0x1ca)](_0x5aeb05),_0x47c2c6=this[_0x30a67f(0x1d3)](_0x5aeb05),_0x590550=new Date(),_0x20bf46=_0x590550['toLocaleString'](undefined,{'year':_0x30a67f(0x1c6),'month':_0x30a67f(0x1e7),'day':_0x30a67f(0x1e7),'hour':_0x30a67f(0x1e7),'minute':'2-digit','second':_0x30a67f(0x1e7),'hour12':![]})[_0x30a67f(0x1bc)](/\//g,'-'),_0x5a4b13=_0x590550[_0x30a67f(0x1b6)](undefined,{'year':'numeric','month':_0x30a67f(0x1e7),'day':_0x30a67f(0x1e7)})[_0x30a67f(0x1bc)](/\//g,'-'),_0x1ba90c=_0x590550['toLocaleTimeString'](undefined,{'hour12':![]});let _0x447e1d=_0x1a238b[_0x30a67f(0x1bc)](/\{ComponentName\}/g,_0x4bcb49)[_0x30a67f(0x1bc)](/\{DisplayTitle\}/g,_0x47c2c6)[_0x30a67f(0x1bc)](/\{PageName\}/g,_0x5aeb05)[_0x30a67f(0x1bc)](/\{TemplateName\}/g,_0x3ad088)[_0x30a67f(0x1bc)](/\{CreatedAt\}/g,_0x20bf46)[_0x30a67f(0x1bc)](/\{CreatedDate\}/g,_0x5a4b13)[_0x30a67f(0x1bc)](/\{CreatedTime\}/g,_0x1ba90c);return _0x447e1d;}static[a42_0x51a4fe(0x1e0)](_0x2dc159,_0x2105b7,_0x174055,_0x187c01,_0x488eb0,_0x3a0d50,_0x163709){const _0xccab9f=a42_0x51a4fe,_0x2f6994=new Date(),_0x34ae17=_0x2f6994[_0xccab9f(0x1bd)](),_0x21f3af=JSON[_0xccab9f(0x1ba)](_0x174055,null,0x2)[_0xccab9f(0x1c0)]('\x0a')[_0xccab9f(0x1e6)](0x1,-0x1)['map'](_0x1b95d6=>_0x1b95d6[_0xccab9f(0x1bc)](/^ /,_0xccab9f(0x1b7)))[_0xccab9f(0x1bb)]('\x0a'),_0x34cec9=_0x187c01||Object[_0xccab9f(0x1d8)](_0x174055)[0x0]||_0xccab9f(0x1d1);let _0x542a9c=_0x2dc159[_0xccab9f(0x1bc)](/\{AppCode\}/g,_0x2105b7)[_0xccab9f(0x1bc)](/\{ModelConfigs\}/g,_0x21f3af)[_0xccab9f(0x1bc)](/\{ExampleModelName\}/g,_0x34cec9)[_0xccab9f(0x1bc)](/\{ApiFileName\}/g,_0x488eb0||_0xccab9f(0x1b9))[_0xccab9f(0x1bc)](/\{ConfigName\}/g,_0x3a0d50||'default')['replace'](/\{ClientConfigParam\}/g,_0x163709||'')['replace'](/\{CreatedAt\}/g,_0x34ae17);return _0x542a9c;}static async[a42_0x51a4fe(0x1c4)](_0x4e8836,_0x16b107,_0x2796ed,_0x3900b8,_0x44fa97=!![]){const _0x521d06=a42_0x51a4fe,_0x17c7ff=Date[_0x521d06(0x1b8)]();try{_0x44fa97&&logger['info'](_0x521d06(0x1d6),'开始处理模板内容替换',{'templatePath':_0x4e8836,'targetPath':_0x16b107,'pageName':_0x2796ed,'templateName':_0x3900b8});await a42_0x36745b[_0x521d06(0x1df)]['mkdir'](_0x16b107,{'recursive':!![]}),await this[_0x521d06(0x1bf)](_0x4e8836,_0x16b107,_0x2796ed,_0x3900b8);if(_0x44fa97){const _0x2c72a7=Date[_0x521d06(0x1b8)]()-_0x17c7ff;logger[_0x521d06(0x1d2)](_0x521d06(0x1d6),'模板内容替换完成',_0x2c72a7,{'pageName':_0x2796ed,'templateName':_0x3900b8});}}catch(_0x4f260e){if(_0x44fa97){const _0x13476e=Date['now']()-_0x17c7ff;logger[_0x521d06(0x1e2)](_0x521d06(0x1d6),'模板内容替换失败',{'templatePath':_0x4e8836,'targetPath':_0x16b107,'pageName':_0x2796ed,'templateName':_0x3900b8,'error':_0x4f260e instanceof Error?_0x4f260e[_0x521d06(0x1b3)]:String(_0x4f260e),'duration':_0x13476e});}throw _0x4f260e;}}static async['processDirectory'](_0x3e4fcf,_0x4f2dfa,_0x5e9b17,_0x370130){const _0x5d7c84=a42_0x51a4fe,_0x12cdd6=await a42_0x36745b[_0x5d7c84(0x1df)][_0x5d7c84(0x1cf)](_0x3e4fcf,{'withFileTypes':!![]});for(const _0x15fdaf of _0x12cdd6){const _0x37de21=a42_0x3d6d6f['join'](_0x3e4fcf,_0x15fdaf['name']);let _0x123915=a42_0x3d6d6f[_0x5d7c84(0x1bb)](_0x4f2dfa,_0x15fdaf[_0x5d7c84(0x1dc)]);_0x15fdaf[_0x5d7c84(0x1dc)][_0x5d7c84(0x1b5)](_0x5d7c84(0x1d5))&&(_0x123915=a42_0x3d6d6f['join'](_0x4f2dfa,_0x15fdaf['name']['replace'](/\.tpl$/,'')));if(_0x15fdaf[_0x5d7c84(0x1da)]())await a42_0x36745b['promises'][_0x5d7c84(0x1cd)](_0x123915,{'recursive':!![]}),await this[_0x5d7c84(0x1bf)](_0x37de21,_0x123915,_0x5e9b17,_0x370130);else _0x15fdaf['isFile']()&&await this[_0x5d7c84(0x1dd)](_0x37de21,_0x123915,_0x5e9b17,_0x370130);}}static async['processFile'](_0x13199e,_0x2951ca,_0x4e0636,_0x281b3a){const _0x28b81d=a42_0x51a4fe,_0x389106=a42_0x3d6d6f['extname'](_0x13199e)[_0x28b81d(0x1be)]();_0x13199e['endsWith'](_0x28b81d(0x1d5))&&(_0x2951ca=_0x2951ca[_0x28b81d(0x1bc)](/\.tpl$/,''));const _0x1c9731=['.tsx',_0x28b81d(0x1d9),_0x28b81d(0x1e4),_0x28b81d(0x1cb),'.json',_0x28b81d(0x1af),_0x28b81d(0x1e5),_0x28b81d(0x1b2),'.tpl'];if(_0x1c9731[_0x28b81d(0x1cc)](_0x389106)||_0x13199e[_0x28b81d(0x1b5)]('.tpl')){const _0x574833=await a42_0x36745b['promises']['readFile'](_0x13199e,_0x28b81d(0x1e3)),_0x565a2c=this[_0x28b81d(0x1b1)](_0x574833,_0x4e0636,_0x281b3a);await a42_0x36745b[_0x28b81d(0x1df)][_0x28b81d(0x1c2)](_0x2951ca,_0x565a2c,_0x28b81d(0x1e3));}else await a42_0x36745b[_0x28b81d(0x1df)][_0x28b81d(0x1d7)](_0x13199e,_0x2951ca);}}
1
+ const a42_0x52117f=a42_0x1904;(function(_0x4c1c9b,_0xa7c47){const _0x2e151f=a42_0x1904,_0x1711aa=_0x4c1c9b();while(!![]){try{const _0x5a7d68=parseInt(_0x2e151f(0x100))/0x1*(parseInt(_0x2e151f(0xfc))/0x2)+parseInt(_0x2e151f(0x11d))/0x3+-parseInt(_0x2e151f(0xfa))/0x4*(-parseInt(_0x2e151f(0x105))/0x5)+parseInt(_0x2e151f(0x11f))/0x6*(parseInt(_0x2e151f(0x122))/0x7)+-parseInt(_0x2e151f(0x10b))/0x8*(parseInt(_0x2e151f(0x10f))/0x9)+-parseInt(_0x2e151f(0xf0))/0xa+-parseInt(_0x2e151f(0x10c))/0xb;if(_0x5a7d68===_0xa7c47)break;else _0x1711aa['push'](_0x1711aa['shift']());}catch(_0x12383d){_0x1711aa['push'](_0x1711aa['shift']());}}}(a42_0x50c6,0x5d063));import a42_0xc8c1d7 from'node:fs';function a42_0x50c6(){const _0x2f0117=['utf8','toDisplayTitle','4466460kyRVLn','pop','toLocaleString','join','copyFile','includes','processTemplate','isFile','.jsx','name','132472vxpBFj','split','237814liCdDn','YourModel','toUpperCase','.css','5XiNJnm','numeric','slice','processDirectory','开始处理模板内容替换','85axTaqd','toComponentName','.json','toLocaleDateString','.scss','readdir','227608dnZKRU','11884510rFJFLJ','success','error','9HZRDsF','processFile','toLowerCase','.tpl','template','charAt','extname','模板内容替换完成','2-digit','endsWith','default','isDirectory','promises','map','1213200fIyvme','stringify','6Zjcwme','toISOString','replace','2622151oyfCit','replaceApiContent','now','.js'];a42_0x50c6=function(){return _0x2f0117;};return a42_0x50c6();}function a42_0x1904(_0x1a130a,_0x251277){const _0x50c69c=a42_0x50c6();return a42_0x1904=function(_0x19048c,_0x441ac9){_0x19048c=_0x19048c-0xee;let _0x611256=_0x50c69c[_0x19048c];return _0x611256;},a42_0x1904(_0x1a130a,_0x251277);}import a42_0x2c5acb from'node:path';import{logger}from'./logger.js';export class TemplateReplacer{static[a42_0x52117f(0x106)](_0x30bde5){const _0xadfe66=a42_0x52117f,_0xc16300=_0x30bde5[_0xadfe66(0xfb)]('/')['pop']()||_0x30bde5;return _0xc16300[_0xadfe66(0xfb)]('-')[_0xadfe66(0x11c)](_0x593d43=>_0x593d43[_0xadfe66(0x114)](0x0)[_0xadfe66(0xfe)]()+_0x593d43[_0xadfe66(0x102)](0x1)[_0xadfe66(0x111)]())[_0xadfe66(0xf3)]('');}static[a42_0x52117f(0xef)](_0xc0f96c){const _0x51076e=a42_0x52117f,_0x1339dd=_0xc0f96c['split']('/')[_0x51076e(0xf1)]()||_0xc0f96c;return _0x1339dd[_0x51076e(0xfb)]('-')[_0x51076e(0x11c)](_0x48ec6d=>_0x48ec6d[_0x51076e(0x114)](0x0)[_0x51076e(0xfe)]()+_0x48ec6d[_0x51076e(0x102)](0x1)[_0x51076e(0x111)]())[_0x51076e(0xf3)]('\x20');}static['replaceContent'](_0x432980,_0x5df7ae,_0x87c03b){const _0x32c9f4=a42_0x52117f,_0x9451b3=this[_0x32c9f4(0x106)](_0x5df7ae),_0x5681f8=this[_0x32c9f4(0xef)](_0x5df7ae),_0x3cca37=new Date(),_0x2e0e32=_0x3cca37[_0x32c9f4(0xf2)](undefined,{'year':_0x32c9f4(0x101),'month':_0x32c9f4(0x117),'day':'2-digit','hour':_0x32c9f4(0x117),'minute':_0x32c9f4(0x117),'second':_0x32c9f4(0x117),'hour12':![]})[_0x32c9f4(0x121)](/\//g,'-'),_0x4df29d=_0x3cca37[_0x32c9f4(0x108)](undefined,{'year':_0x32c9f4(0x101),'month':'2-digit','day':_0x32c9f4(0x117)})[_0x32c9f4(0x121)](/\//g,'-'),_0x22d282=_0x3cca37['toLocaleTimeString'](undefined,{'hour12':![]});let _0x46ee9d=_0x432980['replace'](/\{ComponentName\}/g,_0x9451b3)[_0x32c9f4(0x121)](/\{DisplayTitle\}/g,_0x5681f8)[_0x32c9f4(0x121)](/\{PageName\}/g,_0x5df7ae)[_0x32c9f4(0x121)](/\{TemplateName\}/g,_0x87c03b)[_0x32c9f4(0x121)](/\{CreatedAt\}/g,_0x2e0e32)[_0x32c9f4(0x121)](/\{CreatedDate\}/g,_0x4df29d)[_0x32c9f4(0x121)](/\{CreatedTime\}/g,_0x22d282);return _0x46ee9d;}static[a42_0x52117f(0x123)](_0x200651,_0x168e96,_0x5124e8,_0x599287,_0x4dad45,_0x268e5a,_0x550bf8){const _0x1fc888=a42_0x52117f,_0x39bb18=new Date(),_0x337458=_0x39bb18[_0x1fc888(0x120)](),_0x25a4e0=JSON[_0x1fc888(0x11e)](_0x5124e8,null,0x2)[_0x1fc888(0xfb)]('\x0a')['slice'](0x1,-0x1)[_0x1fc888(0x11c)](_0x17e98c=>_0x17e98c[_0x1fc888(0x121)](/^ /,'\x20\x20\x20\x20'))[_0x1fc888(0xf3)]('\x0a'),_0x3a6be2=_0x599287||Object['keys'](_0x5124e8)[0x0]||_0x1fc888(0xfd);let _0x19888f=_0x200651[_0x1fc888(0x121)](/\{AppCode\}/g,_0x168e96)[_0x1fc888(0x121)](/\{ModelConfigs\}/g,_0x25a4e0)[_0x1fc888(0x121)](/\{ExampleModelName\}/g,_0x3a6be2)[_0x1fc888(0x121)](/\{ApiFileName\}/g,_0x4dad45||'api')[_0x1fc888(0x121)](/\{ConfigName\}/g,_0x268e5a||_0x1fc888(0x119))['replace'](/\{ClientConfigParam\}/g,_0x550bf8||'')['replace'](/\{CreatedAt\}/g,_0x337458);return _0x19888f;}static async[a42_0x52117f(0xf6)](_0x57d74e,_0x59ac33,_0x35ed2e,_0x1a1c60,_0x1614ce=!![]){const _0x380f84=a42_0x52117f,_0x30d022=Date[_0x380f84(0x124)]();try{_0x1614ce&&logger['info'](_0x380f84(0x113),_0x380f84(0x104),{'templatePath':_0x57d74e,'targetPath':_0x59ac33,'pageName':_0x35ed2e,'templateName':_0x1a1c60});await a42_0xc8c1d7[_0x380f84(0x11b)]['mkdir'](_0x59ac33,{'recursive':!![]}),await this['processDirectory'](_0x57d74e,_0x59ac33,_0x35ed2e,_0x1a1c60);if(_0x1614ce){const _0x4ac348=Date[_0x380f84(0x124)]()-_0x30d022;logger[_0x380f84(0x10d)](_0x380f84(0x113),_0x380f84(0x116),_0x4ac348,{'pageName':_0x35ed2e,'templateName':_0x1a1c60});}}catch(_0x10af32){if(_0x1614ce){const _0x50c447=Date['now']()-_0x30d022;logger[_0x380f84(0x10e)](_0x380f84(0x113),'模板内容替换失败',{'templatePath':_0x57d74e,'targetPath':_0x59ac33,'pageName':_0x35ed2e,'templateName':_0x1a1c60,'error':_0x10af32 instanceof Error?_0x10af32['message']:String(_0x10af32),'duration':_0x50c447});}throw _0x10af32;}}static async[a42_0x52117f(0x103)](_0x53f7a1,_0x34ee81,_0x33b286,_0x78625f){const _0x7ba78a=a42_0x52117f,_0x43785c=await a42_0xc8c1d7[_0x7ba78a(0x11b)][_0x7ba78a(0x10a)](_0x53f7a1,{'withFileTypes':!![]});for(const _0x21eb8d of _0x43785c){const _0xbfab0a=a42_0x2c5acb['join'](_0x53f7a1,_0x21eb8d['name']);let _0x285709=a42_0x2c5acb[_0x7ba78a(0xf3)](_0x34ee81,_0x21eb8d['name']);_0x21eb8d['name'][_0x7ba78a(0x118)](_0x7ba78a(0x112))&&(_0x285709=a42_0x2c5acb[_0x7ba78a(0xf3)](_0x34ee81,_0x21eb8d[_0x7ba78a(0xf9)][_0x7ba78a(0x121)](/\.tpl$/,'')));if(_0x21eb8d[_0x7ba78a(0x11a)]())await a42_0xc8c1d7['promises']['mkdir'](_0x285709,{'recursive':!![]}),await this[_0x7ba78a(0x103)](_0xbfab0a,_0x285709,_0x33b286,_0x78625f);else _0x21eb8d[_0x7ba78a(0xf7)]()&&await this[_0x7ba78a(0x110)](_0xbfab0a,_0x285709,_0x33b286,_0x78625f);}}static async['processFile'](_0x4f7a80,_0x49e4ee,_0x239f16,_0x18d44c){const _0xaa8022=a42_0x52117f,_0x4780bc=a42_0x2c5acb[_0xaa8022(0x115)](_0x4f7a80)[_0xaa8022(0x111)]();_0x4f7a80[_0xaa8022(0x118)](_0xaa8022(0x112))&&(_0x49e4ee=_0x49e4ee[_0xaa8022(0x121)](/\.tpl$/,''));const _0x30cbe3=['.tsx','.ts',_0xaa8022(0xf8),_0xaa8022(0x125),_0xaa8022(0x107),'.md',_0xaa8022(0xff),_0xaa8022(0x109),'.tpl'];if(_0x30cbe3[_0xaa8022(0xf5)](_0x4780bc)||_0x4f7a80[_0xaa8022(0x118)]('.tpl')){const _0x417397=await a42_0xc8c1d7['promises']['readFile'](_0x4f7a80,_0xaa8022(0xee)),_0x5dbb42=this['replaceContent'](_0x417397,_0x239f16,_0x18d44c);await a42_0xc8c1d7[_0xaa8022(0x11b)]['writeFile'](_0x49e4ee,_0x5dbb42,_0xaa8022(0xee));}else await a42_0xc8c1d7[_0xaa8022(0x11b)][_0xaa8022(0xf4)](_0x4f7a80,_0x49e4ee);}}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@lovrabet/cli",
3
- "version": "1.1.7",
4
- "license": "MIT",
3
+ "version": "1.1.9",
4
+ "license": "SEE LICENSE IN LICENSE",
5
5
  "bin": {
6
6
  "lovrabet": "lib/cli.js"
7
7
  },
@@ -10,7 +10,7 @@
10
10
  "dependencies": {
11
11
  "@ant-design/icons": "^6.0.0",
12
12
  "@ice/stark-app": "^1.5.0",
13
- "@lovrabet/sdk": "^1.1.8",
13
+ "@lovrabet/sdk": "^1.1.12",
14
14
  "antd": "^5.26.7",
15
15
  "echarts": "^5.6.0",
16
16
  "echarts-for-react": "^3.0.2",
@@ -450,9 +450,9 @@
450
450
  }
451
451
  },
452
452
  "node_modules/@lovrabet/sdk": {
453
- "version": "1.1.8",
454
- "resolved": "https://registry.npmjs.org/@lovrabet/sdk/-/sdk-1.1.8.tgz",
455
- "integrity": "sha512-44oN2ecAhsQhm0NG68CwU8o/vQoS3dW0IZnFq9OR4msR8Mb+TiHK2NWgkRcevxFeCSLO/EI6uVA3PEhWVhLsZQ==",
453
+ "version": "1.1.12",
454
+ "resolved": "https://registry.npmjs.org/@lovrabet/sdk/-/sdk-1.1.12.tgz",
455
+ "integrity": "sha512-+S+jt5dWnipGGl7nR4sYs9Mw97Wgdtq2o08QZfDNHHRCXjVwXAWtd6vxXYkeUZ8nJ+4r+/TrYT6023rHA8kM/Q==",
456
456
  "peerDependencies": {
457
457
  "typescript": "^5"
458
458
  }
@@ -11,7 +11,7 @@
11
11
  "dependencies": {
12
12
  "@ant-design/icons": "^6.0.0",
13
13
  "@ice/stark-app": "^1.5.0",
14
- "@lovrabet/sdk": "^1.1.8",
14
+ "@lovrabet/sdk": "^1.1.14",
15
15
  "antd": "^5.26.7",
16
16
  "echarts": "^5.6.0",
17
17
  "echarts-for-react": "^3.0.2",