@ks-opdev/cli
Version:
ksodev: A CLI based on the WPS Open Platform
1 lines • 2.61 kB
JavaScript
(function(_0x352fb7,_0x9e8319){const _0x12b2a0=a6_0x214d,_0x239137=_0x352fb7();while(!![]){try{const _0x42e41c=parseInt(_0x12b2a0(0xf2))/0x1+parseInt(_0x12b2a0(0xf5))/0x2*(parseInt(_0x12b2a0(0xf3))/0x3)+parseInt(_0x12b2a0(0xfc))/0x4*(-parseInt(_0x12b2a0(0xe5))/0x5)+parseInt(_0x12b2a0(0xec))/0x6*(-parseInt(_0x12b2a0(0xe4))/0x7)+-parseInt(_0x12b2a0(0xfa))/0x8+parseInt(_0x12b2a0(0xe8))/0x9+parseInt(_0x12b2a0(0xe7))/0xa*(parseInt(_0x12b2a0(0xe6))/0xb);if(_0x42e41c===_0x9e8319)break;else _0x239137['push'](_0x239137['shift']());}catch(_0x44844f){_0x239137['push'](_0x239137['shift']());}}}(a6_0x3e98,0x96a08));import a6_0x1af3db from'chalk';import{checkForUpdates,getInstallCommand}from'../../lib/utils/update.js';const hook=async function(_0x2f72da){const _0x23f907=a6_0x214d;try{const _0x39c5b6=_0x2f72da['config'][_0x23f907(0xf4)],_0x19c836=checkForUpdates(_0x39c5b6),_0x15c14d={'hasUpdate':![],'currentVersion':_0x39c5b6,'latestVersion':_0x39c5b6,'shouldNotify':![]},_0x435569=await Promise[_0x23f907(0xf6)]([_0x19c836,new Promise(_0x335339=>setTimeout(()=>_0x335339(_0x15c14d),0x7d0))]);if(_0x435569[_0x23f907(0xea)]&&_0x435569[_0x23f907(0xfb)]){const _0x298869=['',a6_0x1af3db[_0x23f907(0xf8)]('┌')+'\x20'+a6_0x1af3db[_0x23f907(0xed)](_0x23f907(0xef))+'\x20'+a6_0x1af3db[_0x23f907(0xf8)]('┐'),a6_0x1af3db['yellow']('│')+'\x20Current\x20version:\x20'+a6_0x1af3db['yellowBright'](_0x435569[_0x23f907(0xf9)]),a6_0x1af3db[_0x23f907(0xf8)]('│')+_0x23f907(0xee)+a6_0x1af3db[_0x23f907(0xf7)](_0x435569[_0x23f907(0xf0)]),''+a6_0x1af3db['yellow']('│'),a6_0x1af3db[_0x23f907(0xf8)]('│')+_0x23f907(0xf1),a6_0x1af3db['yellow']('│')+'\x20'+a6_0x1af3db[_0x23f907(0xf7)](getInstallCommand()),''+a6_0x1af3db[_0x23f907(0xf8)]('└')+'─'[_0x23f907(0xe9)](0x32)+a6_0x1af3db[_0x23f907(0xf8)]('┘'),''][_0x23f907(0xeb)]('\x0a');console['log'](_0x298869);}}catch(_0x24ec0b){}};function a6_0x214d(_0x1cac3c,_0x1620ff){const _0x3e987f=a6_0x3e98();return a6_0x214d=function(_0x214def,_0x5c2a16){_0x214def=_0x214def-0xe4;let _0x3fc692=_0x3e987f[_0x214def];return _0x3fc692;},a6_0x214d(_0x1cac3c,_0x1620ff);}function a6_0x3e98(){const _0x205c02=['7119mVLJRi','5521895iTuDXE','44uZvweW','557280OPXCkQ','8150706oyEToo','repeat','shouldNotify','join','4662ruldRz','bold','\x20Latest\x20version:\x20\x20','Update\x20Available!','latestVersion','\x20Run\x20the\x20following\x20command\x20to\x20update:','904422YhuCmC','3EfgSGY','version','1707222hYXtwy','race','greenBright','yellow','currentVersion','3000184AktWgO','hasUpdate','4LNPuCb'];a6_0x3e98=function(){return _0x205c02;};return a6_0x3e98();}export default hook;