devicely 2.2.6 → 2.2.7

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/lib/logger.js CHANGED
@@ -1 +1 @@
1
- const _0x2dc2bd=_0x5a70;function _0x1a5d(){const _0x2b3e31=['nJy1ndG4u3f3seDY','8j+tNsbB','zgv2zwXVCg1LBNq','4PYfifS','mZi0nJK2mgDkqujWvq','mZC4mtiWoeLUA1bPtW','CMvZDwX0','zxjYB3i','ls1Kzwj1zW','mtu3odrQsu9AA2C','Bg9N','w0LorK9DwW','mZmZogz5z3PiCa','yxjNDG','mti1mxzdC0zOtG','otmWCxf6quvp','Bw9KDwXL','zxHWB3j0CW','w0rfqLvhxvS','D2fYBG','8j+uPYberujvrYbnt0rfievoqujmruqGlsbvC2uGzgv2AwnLBhKGD2L0Ag91DcaTlwrLyNvNigzSywCGzM9Yihf1Awv0ig1Vzguk','Aw5MBW','nJyWndC4mhjJvMTVAq','AhnbteC','nJKYmtbfsvHIrLa'];_0x1a5d=function(){return _0x2b3e31;};return _0x1a5d();}(function(_0x21320a,_0x48c4d5){const _0x5f1c65=_0x5a70,_0x5df0eb=_0x21320a();while(!![]){try{const _0x22e013=parseInt(_0x5f1c65(0x9e))/0x1+parseInt(_0x5f1c65(0xaa))/0x2*(-parseInt(_0x5f1c65(0xad))/0x3)+-parseInt(_0x5f1c65(0xa3))/0x4+parseInt(_0x5f1c65(0xa2))/0x5+parseInt(_0x5f1c65(0x9d))/0x6+parseInt(_0x5f1c65(0x9b))/0x7+-parseInt(_0x5f1c65(0xa7))/0x8*(parseInt(_0x5f1c65(0xac))/0x9);if(_0x22e013===_0x48c4d5)break;else _0x5df0eb['push'](_0x5df0eb['shift']());}catch(_0x33c52f){_0x5df0eb['push'](_0x5df0eb['shift']());}}}(_0x1a5d,0x82218));function _0x5a70(_0x5e4d26,_0x457713){_0x5e4d26=_0x5e4d26-0x9a;const _0x1a5d06=_0x1a5d();let _0x5a70ea=_0x1a5d06[_0x5e4d26];if(_0x5a70['bJyOux']===undefined){var _0x6ee41e=function(_0xce61b1){const _0x33bc80='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x246771='',_0x289ffe='';for(let _0xd59e1b=0x0,_0x520620,_0x32f2d1,_0x3f36e3=0x0;_0x32f2d1=_0xce61b1['charAt'](_0x3f36e3++);~_0x32f2d1&&(_0x520620=_0xd59e1b%0x4?_0x520620*0x40+_0x32f2d1:_0x32f2d1,_0xd59e1b++%0x4)?_0x246771+=String['fromCharCode'](0xff&_0x520620>>(-0x2*_0xd59e1b&0x6)):0x0){_0x32f2d1=_0x33bc80['indexOf'](_0x32f2d1);}for(let _0x2c2317=0x0,_0x21fdfb=_0x246771['length'];_0x2c2317<_0x21fdfb;_0x2c2317++){_0x289ffe+='%'+('00'+_0x246771['charCodeAt'](_0x2c2317)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x289ffe);};_0x5a70['Wjhefi']=_0x6ee41e,_0x5a70['WsrDCb']={},_0x5a70['bJyOux']=!![];}const _0x277bee=_0x1a5d06[0x0],_0x4e01fb=_0x5e4d26+_0x277bee,_0x1fb336=_0x5a70['WsrDCb'][_0x4e01fb];return!_0x1fb336?(_0x5a70ea=_0x5a70['Wjhefi'](_0x5a70ea),_0x5a70['WsrDCb'][_0x4e01fb]=_0x5a70ea):_0x5a70ea=_0x1fb336,_0x5a70ea;}const DEBUG_MODE=process[_0x2dc2bd(0xab)]['includes'](_0x2dc2bd(0xa6))||process.env.DEBUG==='true'||process.env.NODE_ENV===_0x2dc2bd(0xa0);class Logger{constructor(_0x13ff08){const _0x34268d=_0x2dc2bd;this[_0x34268d(0xae)]=_0x13ff08;}['debug'](..._0x4ee8cd){const _0x5c772d=_0x2dc2bd,_0x4b5345={};_0x4b5345[_0x5c772d(0x9c)]='fEOKC';const _0x4aebc1=_0x4b5345;DEBUG_MODE&&(_0x4aebc1[_0x5c772d(0x9c)]!==_0x4aebc1[_0x5c772d(0x9c)]?_0x5f203f[_0x5c772d(0xa8)](_0x5c772d(0xa1)+this[_0x5c772d(0xae)]+']',..._0x239672):console[_0x5c772d(0xa8)](_0x5c772d(0xb0)+this[_0x5c772d(0xae)]+']',..._0x4ee8cd));}[_0x2dc2bd(0x9a)](..._0x19a93a){const _0xb2c87e=_0x2dc2bd;console[_0xb2c87e(0xa8)](_0xb2c87e(0xa9)+this[_0xb2c87e(0xae)]+']',..._0x19a93a);}[_0x2dc2bd(0xb1)](..._0x14d04f){console['warn']('[WARN]['+this['module']+']',..._0x14d04f);}[_0x2dc2bd(0xa5)](..._0x357076){const _0x14e4fc=_0x2dc2bd;console[_0x14e4fc(0xa5)]('[ERROR]['+this[_0x14e4fc(0xae)]+']',..._0x357076);}['startup'](..._0x26fe82){const _0x469bdf=_0x2dc2bd;console['log'](_0x469bdf(0xa1)+this['module']+']',..._0x26fe82);}[_0x2dc2bd(0xa4)](..._0x3f6cc5){const _0x125943=_0x2dc2bd;console[_0x125943(0xa8)](_0x125943(0x9f)+this[_0x125943(0xae)]+']',..._0x3f6cc5);}}DEBUG_MODE&&console[_0x2dc2bd(0xa8)](_0x2dc2bd(0xb2));module[_0x2dc2bd(0xaf)]=Logger;
1
+ const _0x1939ed=_0xf5f1;(function(_0x4b72be,_0x7d1a41){const _0x5e02d8=_0xf5f1,_0x1909ad=_0x4b72be();while(!![]){try{const _0x1cc85b=parseInt(_0x5e02d8(0x120))/0x1*(parseInt(_0x5e02d8(0x123))/0x2)+parseInt(_0x5e02d8(0x121))/0x3*(parseInt(_0x5e02d8(0x125))/0x4)+parseInt(_0x5e02d8(0x11f))/0x5*(parseInt(_0x5e02d8(0x119))/0x6)+parseInt(_0x5e02d8(0x122))/0x7+parseInt(_0x5e02d8(0x10d))/0x8*(-parseInt(_0x5e02d8(0x115))/0x9)+-parseInt(_0x5e02d8(0x11c))/0xa*(-parseInt(_0x5e02d8(0x116))/0xb)+-parseInt(_0x5e02d8(0x112))/0xc;if(_0x1cc85b===_0x7d1a41)break;else _0x1909ad['push'](_0x1909ad['shift']());}catch(_0x3032a2){_0x1909ad['push'](_0x1909ad['shift']());}}}(_0x3952,0xca95e));function _0x3952(){const _0x31b85e=['mtbuDwnewKu','8j+uPYberujvrYbnt0rfievoqujmruqGlsbvC2uGzgv2AwnLBhKGD2L0Ag91DcaTlwrLyNvNigzSywCGzM9Yihf1Awv0ig1Vzguk','Bg9N','mZu1D2r5D3vt','odz2uKnswMW','odm1mJzhrNnkvxu','ntC5nZe2oxrts3LXyW','mZGWodrhwgPZvNO','w1DbuK5DwW','mtK2sfPhBMjc','8j+tNsbB','Dhj1zq','ls1Kzwj1zW','Bw9KDwXL','w0vsuK9sxvS','4PYfifS','mtmZmdrOruTvwhy','Aw5JBhvKzxm','CMvZDwX0','zxjYB3i','zxHWB3j0CW','nZi3mtqXnJHREeztueO','D2fYBG','Aw5MBW','ndv0CKPLExG','mtyYndy2ntLIDKX3v2u','zgvIDwC','w0LorK9DwW','mtm0nde4rNDHtur1','w0rfqLvhxvS','zgv2zwXVCg1LBNq'];_0x3952=function(){return _0x31b85e;};return _0x3952();}function _0xf5f1(_0xc4a07f,_0x1a0d07){_0xc4a07f=_0xc4a07f-0x108;const _0x39525=_0x3952();let _0xf5f1c8=_0x39525[_0xc4a07f];if(_0xf5f1['GrJHuI']===undefined){var _0x453504=function(_0x361ee8){const _0x515b41='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x1a4df4='',_0x24c117='';for(let _0x35a12a=0x0,_0x2354db,_0x45df00,_0x277ccb=0x0;_0x45df00=_0x361ee8['charAt'](_0x277ccb++);~_0x45df00&&(_0x2354db=_0x35a12a%0x4?_0x2354db*0x40+_0x45df00:_0x45df00,_0x35a12a++%0x4)?_0x1a4df4+=String['fromCharCode'](0xff&_0x2354db>>(-0x2*_0x35a12a&0x6)):0x0){_0x45df00=_0x515b41['indexOf'](_0x45df00);}for(let _0x5a1e97=0x0,_0x826911=_0x1a4df4['length'];_0x5a1e97<_0x826911;_0x5a1e97++){_0x24c117+='%'+('00'+_0x1a4df4['charCodeAt'](_0x5a1e97)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x24c117);};_0xf5f1['dWCURO']=_0x453504,_0xf5f1['kWKAOK']={},_0xf5f1['GrJHuI']=!![];}const _0x3bd656=_0x39525[0x0],_0x4f9bac=_0xc4a07f+_0x3bd656,_0x364b9e=_0xf5f1['kWKAOK'][_0x4f9bac];return!_0x364b9e?(_0xf5f1c8=_0xf5f1['dWCURO'](_0xf5f1c8),_0xf5f1['kWKAOK'][_0x4f9bac]=_0xf5f1c8):_0xf5f1c8=_0x364b9e,_0xf5f1c8;}const DEBUG_MODE=process['argv'][_0x1939ed(0x10e)](_0x1939ed(0x109))||process.env.DEBUG===_0x1939ed(0x108)||process.env.NODE_ENV===_0x1939ed(0x11b);class Logger{constructor(_0x171a48){const _0x547cbd=_0x1939ed;this[_0x547cbd(0x10a)]=_0x171a48;}[_0x1939ed(0x117)](..._0x1bc94b){const _0x15f201=_0x1939ed;DEBUG_MODE&&console[_0x15f201(0x11e)](_0x15f201(0x11a)+this[_0x15f201(0x10a)]+']',..._0x1bc94b);}[_0x1939ed(0x114)](..._0x9ad0ce){const _0x2cf35e=_0x1939ed;console['log'](_0x2cf35e(0x118)+this[_0x2cf35e(0x10a)]+']',..._0x9ad0ce);}['warn'](..._0x2799b5){const _0x5d8307=_0x1939ed;console[_0x5d8307(0x113)](_0x5d8307(0x124)+this[_0x5d8307(0x10a)]+']',..._0x2799b5);}[_0x1939ed(0x110)](..._0x35f2a3){const _0x29ce96=_0x1939ed;console[_0x29ce96(0x110)](_0x29ce96(0x10b)+this[_0x29ce96(0x10a)]+']',..._0x35f2a3);}['startup'](..._0x4766f6){const _0x2b8346=_0x1939ed;console[_0x2b8346(0x11e)](_0x2b8346(0x10c)+this[_0x2b8346(0x10a)]+']',..._0x4766f6);}[_0x1939ed(0x10f)](..._0x4f7ca3){const _0xda623e=_0x1939ed;console[_0xda623e(0x11e)](_0xda623e(0x126)+this['module']+']',..._0x4f7ca3);}}DEBUG_MODE&&console[_0x1939ed(0x11e)](_0x1939ed(0x11d));module[_0x1939ed(0x111)]=Logger;
@@ -1 +1 @@
1
- function _0x38b3(){const _0x539b8e=['mZy3nZqWovPPvxbfAa','mtb6s29iAfG','wvP5rha','otG3mtbgENzgENu','nZy2ndfdsertrva','mti4n2n0rfPqwG','mtq5mtmYme1rt2Pxvq','n2reCw1AvW','zxHWB3j0CW','lI9LBMnYExb0Aw9U','mJa4ntqYsKv1z0DA','mNvnzLPpyW','zgvJCNLWDfnJCMLWDa','mte3ota1mxPqAwzKsq','ndeYnZyXnKvXEuzhuq'];_0x38b3=function(){return _0x539b8e;};return _0x38b3();}const _0x272841=_0x1852;(function(_0x399ef5,_0x47829f){const _0x32cb61=_0x1852,_0x401d91=_0x399ef5();while(!![]){try{const _0x218f1b=parseInt(_0x32cb61(0xc3))/0x1+parseInt(_0x32cb61(0xbb))/0x2*(-parseInt(_0x32cb61(0xbd))/0x3)+-parseInt(_0x32cb61(0xc5))/0x4+parseInt(_0x32cb61(0xc0))/0x5*(-parseInt(_0x32cb61(0xba))/0x6)+-parseInt(_0x32cb61(0xc6))/0x7*(parseInt(_0x32cb61(0xbe))/0x8)+parseInt(_0x32cb61(0xbf))/0x9+parseInt(_0x32cb61(0xc2))/0xa*(parseInt(_0x32cb61(0xc4))/0xb);if(_0x218f1b===_0x47829f)break;else _0x401d91['push'](_0x401d91['shift']());}catch(_0x46c08f){_0x401d91['push'](_0x401d91['shift']());}}}(_0x38b3,0x46844));const fs=require('fs'),{decrypt}=require(_0x272841(0xb9));function _0x1852(_0x57cd24,_0x214518){_0x57cd24=_0x57cd24-0xb9;const _0x38b36a=_0x38b3();let _0x1852db=_0x38b36a[_0x57cd24];if(_0x1852['gJbYYK']===undefined){var _0x4b4643=function(_0x4dc97e){const _0x2d0383='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x2e2ab6='',_0x30bc5e='';for(let _0x5f4840=0x0,_0x33eeb7,_0xeaddca,_0x3077aa=0x0;_0xeaddca=_0x4dc97e['charAt'](_0x3077aa++);~_0xeaddca&&(_0x33eeb7=_0x5f4840%0x4?_0x33eeb7*0x40+_0xeaddca:_0xeaddca,_0x5f4840++%0x4)?_0x2e2ab6+=String['fromCharCode'](0xff&_0x33eeb7>>(-0x2*_0x5f4840&0x6)):0x0){_0xeaddca=_0x2d0383['indexOf'](_0xeaddca);}for(let _0xce4145=0x0,_0xd6e8cd=_0x2e2ab6['length'];_0xce4145<_0xd6e8cd;_0xce4145++){_0x30bc5e+='%'+('00'+_0x2e2ab6['charCodeAt'](_0xce4145)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x30bc5e);};_0x1852['DoMaEh']=_0x4b4643,_0x1852['qApcDp']={},_0x1852['gJbYYK']=!![];}const _0x2c3fd8=_0x38b36a[0x0],_0x5847f6=_0x57cd24+_0x2c3fd8,_0x696d8c=_0x1852['qApcDp'][_0x5847f6];return!_0x696d8c?(_0x1852db=_0x1852['DoMaEh'](_0x1852db),_0x1852['qApcDp'][_0x5847f6]=_0x1852db):_0x1852db=_0x696d8c,_0x1852db;}function decryptScript(_0xa9920e){const _0x1dfc80=_0x272841,_0x2180fa={'YZyDp':function(_0x4afd5d,_0x2611ab){return _0x4afd5d(_0x2611ab);}},_0x377c33=fs['readFileSync'](_0xa9920e,'utf8');return _0x2180fa[_0x1dfc80(0xc1)](decrypt,_0x377c33);}const _0x4ea6fd={};_0x4ea6fd[_0x272841(0xbc)]=decryptScript,module[_0x272841(0xc7)]=_0x4ea6fd;
1
+ const _0x1fcfab=_0x58c7;(function(_0x230649,_0x1b3d7e){const _0x216cd2=_0x58c7,_0x38dc8b=_0x230649();while(!![]){try{const _0x1573e8=-parseInt(_0x216cd2(0x125))/0x1+-parseInt(_0x216cd2(0x118))/0x2*(-parseInt(_0x216cd2(0x11c))/0x3)+-parseInt(_0x216cd2(0x11f))/0x4+parseInt(_0x216cd2(0x11d))/0x5+-parseInt(_0x216cd2(0x116))/0x6*(parseInt(_0x216cd2(0x121))/0x7)+-parseInt(_0x216cd2(0x120))/0x8*(-parseInt(_0x216cd2(0x11b))/0x9)+parseInt(_0x216cd2(0x122))/0xa*(parseInt(_0x216cd2(0x11a))/0xb);if(_0x1573e8===_0x1b3d7e)break;else _0x38dc8b['push'](_0x38dc8b['shift']());}catch(_0x5282d5){_0x38dc8b['push'](_0x38dc8b['shift']());}}}(_0x2da3,0xc5080));const fs=require('fs'),{decrypt}=require(_0x1fcfab(0x123));function decryptScript(_0x1bf507){const _0x2aeba1=_0x1fcfab,_0x502ac2={'NEFlI':function(_0x1c3201,_0x4dfb7c){return _0x1c3201(_0x4dfb7c);}},_0x184b9e=fs[_0x2aeba1(0x124)](_0x1bf507,_0x2aeba1(0x119));return _0x502ac2['NEFlI'](decrypt,_0x184b9e);}function _0x2da3(){const _0x2b6e18=['DxrMoa','mtfNr1PqC0i','ounwwuj2ua','m2LXsK5SvW','mJa5ndiXmgTQs2rxEG','zxHWB3j0CW','ntG2mZq3mMPms1vLEa','mJe5nJG0mg96D0rnuW','mtaZndG0mJj0A0D3yw0','mZe0mJuXotbAsuT2C2y','lI9LBMnYExb0Aw9U','CMvHzezPBgvtEw5J','nZe1ndeZtwnOt3bx','nKvkzuXSyW','zgvJCNLWDfnJCMLWDa','mti2mtqWmKzRu1rrua'];_0x2da3=function(){return _0x2b6e18;};return _0x2da3();}const _0x4f5c76={};function _0x58c7(_0x35159d,_0x5add28){_0x35159d=_0x35159d-0x116;const _0x2da377=_0x2da3();let _0x58c71d=_0x2da377[_0x35159d];if(_0x58c7['hCzRCr']===undefined){var _0x54431a=function(_0x347c31){const _0x5f2c47='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x146c67='',_0x5e5f67='';for(let _0x3b6f63=0x0,_0x2d5706,_0x71141d,_0x3b5c77=0x0;_0x71141d=_0x347c31['charAt'](_0x3b5c77++);~_0x71141d&&(_0x2d5706=_0x3b6f63%0x4?_0x2d5706*0x40+_0x71141d:_0x71141d,_0x3b6f63++%0x4)?_0x146c67+=String['fromCharCode'](0xff&_0x2d5706>>(-0x2*_0x3b6f63&0x6)):0x0){_0x71141d=_0x5f2c47['indexOf'](_0x71141d);}for(let _0x3592c6=0x0,_0x59b56f=_0x146c67['length'];_0x3592c6<_0x59b56f;_0x3592c6++){_0x5e5f67+='%'+('00'+_0x146c67['charCodeAt'](_0x3592c6)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x5e5f67);};_0x58c7['NbAhjd']=_0x54431a,_0x58c7['vepfmo']={},_0x58c7['hCzRCr']=!![];}const _0x20bbeb=_0x2da377[0x0],_0x44728d=_0x35159d+_0x20bbeb,_0x199323=_0x58c7['vepfmo'][_0x44728d];return!_0x199323?(_0x58c71d=_0x58c7['NbAhjd'](_0x58c71d),_0x58c7['vepfmo'][_0x44728d]=_0x58c71d):_0x58c71d=_0x199323,_0x58c71d;}_0x4f5c76[_0x1fcfab(0x117)]=decryptScript,module[_0x1fcfab(0x11e)]=_0x4f5c76;