node-server-dev 3.1.8 → 3.2.1

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.
Files changed (49) hide show
  1. package/dist/cjs/{browser.d.ts → browser/index.d.ts} +1 -1
  2. package/dist/cjs/browser/index.d.ts.map +1 -0
  3. package/dist/cjs/browser/index.js +1 -0
  4. package/dist/cjs/browser/tools.d.ts +3 -0
  5. package/dist/cjs/browser/tools.d.ts.map +1 -0
  6. package/dist/cjs/browser/tools.js +1 -0
  7. package/dist/cjs/getAllRouter/index.js +1 -1
  8. package/dist/cjs/hash/index.js +1 -1
  9. package/dist/cjs/id/index.js +1 -1
  10. package/dist/cjs/id/random.js +1 -1
  11. package/dist/cjs/index.d.ts +5 -1
  12. package/dist/cjs/index.d.ts.map +1 -1
  13. package/dist/cjs/index.js +1 -1
  14. package/dist/cjs/jwt/index.js +1 -1
  15. package/dist/cjs/mac/index.js +1 -1
  16. package/dist/cjs/package/mysql_backup/index.js +10 -1
  17. package/dist/cjs/package/mysql_backup/promise.js +195 -187
  18. package/dist/cjs/server.d.ts.map +1 -1
  19. package/dist/cjs/server.js +1 -1
  20. package/dist/cjs/start.d.ts.map +1 -1
  21. package/dist/cjs/start.js +1 -1
  22. package/dist/cjs/update.js +1 -1
  23. package/dist/esm/{browser.d.ts → browser/index.d.ts} +1 -1
  24. package/dist/esm/browser/index.d.ts.map +1 -0
  25. package/dist/esm/browser/index.js +1 -0
  26. package/dist/esm/browser/tools.d.ts +3 -0
  27. package/dist/esm/browser/tools.d.ts.map +1 -0
  28. package/dist/esm/browser/tools.js +1 -0
  29. package/dist/esm/getAllRouter/index.js +1 -1
  30. package/dist/esm/hash/index.js +1 -1
  31. package/dist/esm/id/index.js +1 -1
  32. package/dist/esm/id/random.js +1 -1
  33. package/dist/esm/index.d.ts +5 -1
  34. package/dist/esm/index.d.ts.map +1 -1
  35. package/dist/esm/index.js +1 -1
  36. package/dist/esm/jwt/index.js +1 -1
  37. package/dist/esm/mac/index.js +1 -1
  38. package/dist/esm/package/mysql_backup/index.js +10 -1
  39. package/dist/esm/package/mysql_backup/promise.js +195 -187
  40. package/dist/esm/server.d.ts.map +1 -1
  41. package/dist/esm/server.js +1 -1
  42. package/dist/esm/start.d.ts.map +1 -1
  43. package/dist/esm/start.js +1 -1
  44. package/dist/esm/update.js +1 -1
  45. package/package.json +1 -1
  46. package/dist/cjs/browser.d.ts.map +0 -1
  47. package/dist/cjs/browser.js +0 -1
  48. package/dist/esm/browser.d.ts.map +0 -1
  49. package/dist/esm/browser.js +0 -1
@@ -1 +1 @@
1
- (function(_0x29f9a9,_0xc30bd3){var _0x3f08ae=a101_0x28d7,_0xd7b81b=_0x29f9a9();while(!![]){try{var _0x1246a1=-parseInt(_0x3f08ae(0x187))/0x1+parseInt(_0x3f08ae(0x18c))/0x2+-parseInt(_0x3f08ae(0x190))/0x3+parseInt(_0x3f08ae(0x18b))/0x4*(-parseInt(_0x3f08ae(0x18d))/0x5)+parseInt(_0x3f08ae(0x193))/0x6*(-parseInt(_0x3f08ae(0x192))/0x7)+parseInt(_0x3f08ae(0x189))/0x8+parseInt(_0x3f08ae(0x18e))/0x9*(parseInt(_0x3f08ae(0x188))/0xa);if(_0x1246a1===_0xc30bd3)break;else _0xd7b81b['push'](_0xd7b81b['shift']());}catch(_0x28707e){_0xd7b81b['push'](_0xd7b81b['shift']());}}}(a101_0x4a9c,0x7a780));import a101_0x46c5a2 from'md5';function a101_0x4a9c(){var _0x55e058=['21Inlues','8196XQyjNT','MD5加盐','556078KnMaDI','8790FckTNP','1115536qtadij','sha1混淆','2419892BEBJjc','1336498nBszBm','5DhqCjM','11448RYkpql','sha1','776994prmxbp','sha256'];a101_0x4a9c=function(){return _0x55e058;};return a101_0x4a9c();}import a101_0x2def2c from'sha1';import a101_0x397390 from'sha256';function a101_0x28d7(_0x17a09f,_0x101380){var _0x4a9cd0=a101_0x4a9c();return a101_0x28d7=function(_0x28d716,_0x1c5d1b){_0x28d716=_0x28d716-0x187;var _0x1b55b3=_0x4a9cd0[_0x28d716];return _0x1b55b3;},a101_0x28d7(_0x17a09f,_0x101380);}function hash(_0x594f2d,_0x5d433f){var _0x5f7c99=a101_0x28d7;if(_0x5d433f==_0x5f7c99(0x191))return a101_0x397390(_0x594f2d+a101_0x2def2c(_0x594f2d+_0x5f7c99(0x18a))+a101_0x46c5a2(_0x594f2d+'MD5加盐'));else return _0x5d433f==_0x5f7c99(0x18f)?a101_0x2def2c(_0x594f2d+a101_0x397390(_0x594f2d+_0x5f7c99(0x18a))+a101_0x46c5a2(_0x594f2d+_0x5f7c99(0x194))):a101_0x46c5a2(_0x594f2d+a101_0x397390(_0x594f2d+'sha1混淆')+a101_0x2def2c(_0x594f2d+'MD5加盐'));}export default hash;
1
+ (function(_0x174b3a,_0x7d04dd){var _0x5e4bda=a15_0x2324,_0x2922fa=_0x174b3a();while(!![]){try{var _0x4dfe7c=-parseInt(_0x5e4bda(0x1b0))/0x1*(-parseInt(_0x5e4bda(0x1ae))/0x2)+-parseInt(_0x5e4bda(0x1a6))/0x3*(-parseInt(_0x5e4bda(0x1a5))/0x4)+parseInt(_0x5e4bda(0x1a7))/0x5*(-parseInt(_0x5e4bda(0x1af))/0x6)+-parseInt(_0x5e4bda(0x1ad))/0x7+-parseInt(_0x5e4bda(0x1a9))/0x8*(-parseInt(_0x5e4bda(0x1b2))/0x9)+-parseInt(_0x5e4bda(0x1ac))/0xa+parseInt(_0x5e4bda(0x1b1))/0xb;if(_0x4dfe7c===_0x7d04dd)break;else _0x2922fa['push'](_0x2922fa['shift']());}catch(_0x353986){_0x2922fa['push'](_0x2922fa['shift']());}}}(a15_0x114c,0x85d7a));import a15_0x4447d5 from'md5';import a15_0x5f2227 from'sha1';import a15_0x26b278 from'sha256';function a15_0x2324(_0x17d00c,_0x32b8d4){var _0x114c65=a15_0x114c();return a15_0x2324=function(_0x232498,_0x4dc669){_0x232498=_0x232498-0x1a5;var _0x541372=_0x114c65[_0x232498];return _0x541372;},a15_0x2324(_0x17d00c,_0x32b8d4);}function a15_0x114c(){var _0x145d67=['40SEIIVE','sha1','27752YGAxHR','MD5加盐','sha256','9835390JiMNoS','3885084iycDqk','8706hqvFEE','480zbdPgR','126kIoLVg','5630185dgYLlA','2619OXqwpm','sha1混淆','70468wqhqqQ','3pLqRPE'];a15_0x114c=function(){return _0x145d67;};return a15_0x114c();}function hash(_0x31a1b4,_0x34a003){var _0x4cd0eb=a15_0x2324;if(_0x34a003==_0x4cd0eb(0x1ab))return a15_0x26b278(_0x31a1b4+a15_0x5f2227(_0x31a1b4+_0x4cd0eb(0x1b3))+a15_0x4447d5(_0x31a1b4+_0x4cd0eb(0x1aa)));else return _0x34a003==_0x4cd0eb(0x1a8)?a15_0x5f2227(_0x31a1b4+a15_0x26b278(_0x31a1b4+'sha1混淆')+a15_0x4447d5(_0x31a1b4+_0x4cd0eb(0x1aa))):a15_0x4447d5(_0x31a1b4+a15_0x26b278(_0x31a1b4+_0x4cd0eb(0x1b3))+a15_0x5f2227(_0x31a1b4+_0x4cd0eb(0x1aa)));}export default hash;
@@ -1 +1 @@
1
- const a102_0x296278=a102_0x264b;function a102_0x264b(_0x27bfe4,_0x3fdea5){const _0x112228=a102_0x1122();return a102_0x264b=function(_0x264b29,_0x15b33a){_0x264b29=_0x264b29-0x8a;let _0x5368fd=_0x112228[_0x264b29];return _0x5368fd;},a102_0x264b(_0x27bfe4,_0x3fdea5);}(function(_0x498696,_0x169f51){const _0x2e939c=a102_0x264b,_0x31e5de=_0x498696();while(!![]){try{const _0x56a06e=parseInt(_0x2e939c(0x91))/0x1+parseInt(_0x2e939c(0x8b))/0x2*(parseInt(_0x2e939c(0x92))/0x3)+parseInt(_0x2e939c(0x8a))/0x4*(parseInt(_0x2e939c(0x8f))/0x5)+-parseInt(_0x2e939c(0x96))/0x6*(-parseInt(_0x2e939c(0x94))/0x7)+parseInt(_0x2e939c(0x8c))/0x8*(parseInt(_0x2e939c(0x90))/0x9)+parseInt(_0x2e939c(0x8d))/0xa+-parseInt(_0x2e939c(0x93))/0xb;if(_0x56a06e===_0x169f51)break;else _0x31e5de['push'](_0x31e5de['shift']());}catch(_0x22b4cf){_0x31e5de['push'](_0x31e5de['shift']());}}}(a102_0x1122,0xda339));import a102_0x4ecb69 from'./random';function a102_0x1122(){const _0x5b7069=['NODE_APP_INSTANCE','6475074XYWjEh','2025-01-01','21832XYzVqn','40tFFhTG','510752VFrvWA','10189820RWTQYx','env','755tbQOsm','207AiJVnS','882322msOlKh','64317XqlkwO','52888880gVZSEx','7ktqYUd'];a102_0x1122=function(){return _0x5b7069;};return a102_0x1122();}const BaseTime=+new Date(a102_0x296278(0x97));let lastTimeTick,lastRandomNumberTick=a102_0x4ecb69(0x1,0x3);function id(){const _0x177bcc=a102_0x296278,_0x2637e9=Math['min'](process[_0x177bcc(0x8e)]['NODE_APP_INSTANCE']?+process[_0x177bcc(0x8e)][_0x177bcc(0x95)]:a102_0x4ecb69(0x0,0x9),0x9);let _0x46bb9b=+new Date()-BaseTime;return lastRandomNumberTick=_0x46bb9b==lastTimeTick?++lastRandomNumberTick:a102_0x4ecb69(0x0,0x3),lastTimeTick=_0x46bb9b,+(''+_0x46bb9b+_0x2637e9+lastRandomNumberTick);}export default id;
1
+ const a16_0x2d118d=a16_0x9987;(function(_0x253144,_0x29deff){const _0x50d811=a16_0x9987,_0xf5b2f6=_0x253144();while(!![]){try{const _0x3320b9=-parseInt(_0x50d811(0x1ba))/0x1*(-parseInt(_0x50d811(0x1c1))/0x2)+parseInt(_0x50d811(0x1bf))/0x3+parseInt(_0x50d811(0x1c2))/0x4+parseInt(_0x50d811(0x1be))/0x5+-parseInt(_0x50d811(0x1bd))/0x6+-parseInt(_0x50d811(0x1b9))/0x7+parseInt(_0x50d811(0x1c3))/0x8;if(_0x3320b9===_0x29deff)break;else _0xf5b2f6['push'](_0xf5b2f6['shift']());}catch(_0x369825){_0xf5b2f6['push'](_0xf5b2f6['shift']());}}}(a16_0x4610,0xb722c));import a16_0x3eb83e from'./random';const BaseTime=+new Date(a16_0x2d118d(0x1c0));function a16_0x4610(){const _0x4c32d2=['9929339ElCgbZ','183893QeMvHt','NODE_APP_INSTANCE','env','6913992SRZDTz','5223585sRrOqO','2212761pmbjQg','2025-01-01','14iGBWpU','63124ZtPAvw','1884776YPpoYI'];a16_0x4610=function(){return _0x4c32d2;};return a16_0x4610();}let lastTimeTick,lastRandomNumberTick=a16_0x3eb83e(0x1,0x3);function id(){const _0x109572=a16_0x2d118d,_0x5941d6=Math['min'](process[_0x109572(0x1bc)][_0x109572(0x1bb)]?+process['env'][_0x109572(0x1bb)]:a16_0x3eb83e(0x0,0x9),0x9);let _0x1aa2da=+new Date()-BaseTime;return lastRandomNumberTick=_0x1aa2da==lastTimeTick?++lastRandomNumberTick:a16_0x3eb83e(0x0,0x3),lastTimeTick=_0x1aa2da,+(''+_0x1aa2da+_0x5941d6+lastRandomNumberTick);}function a16_0x9987(_0x58d502,_0x4b33f5){const _0x461080=a16_0x4610();return a16_0x9987=function(_0x998768,_0x3d22c9){_0x998768=_0x998768-0x1b9;let _0x34dd3e=_0x461080[_0x998768];return _0x34dd3e;},a16_0x9987(_0x58d502,_0x4b33f5);}export default id;
@@ -1 +1 @@
1
- function a103_0x1761(){const _0x5ef2e4=['1127496LrPien','70820DEDWVE','1113827xhjpfh','4821558WeHhJy','14247rxmszB','15spWpqT','random','546fIEefj','616172emdZkx','684rIKnbp','10647768bUCHVG','round'];a103_0x1761=function(){return _0x5ef2e4;};return a103_0x1761();}const a103_0x1087fb=a103_0x5d1c;(function(_0x2259b6,_0x594b6b){const _0xf43233=a103_0x5d1c,_0x21f3de=_0x2259b6();while(!![]){try{const _0x28dc9d=-parseInt(_0xf43233(0x7b))/0x1+-parseInt(_0xf43233(0x80))/0x2*(parseInt(_0xf43233(0x7d))/0x3)+-parseInt(_0xf43233(0x81))/0x4*(-parseInt(_0xf43233(0x7e))/0x5)+parseInt(_0xf43233(0x85))/0x6+parseInt(_0xf43233(0x7c))/0x7+parseInt(_0xf43233(0x83))/0x8+parseInt(_0xf43233(0x82))/0x9*(parseInt(_0xf43233(0x86))/0xa);if(_0x28dc9d===_0x594b6b)break;else _0x21f3de['push'](_0x21f3de['shift']());}catch(_0x4d26fa){_0x21f3de['push'](_0x21f3de['shift']());}}}(a103_0x1761,0xc2c2a));function a103_0x5d1c(_0xf43ad9,_0x472fe3){const _0x1761b5=a103_0x1761();return a103_0x5d1c=function(_0x5d1c0a,_0x330bce){_0x5d1c0a=_0x5d1c0a-0x7b;let _0x311b6b=_0x1761b5[_0x5d1c0a];return _0x311b6b;},a103_0x5d1c(_0xf43ad9,_0x472fe3);}const random=(_0x50c5ae,_0x4a2028)=>Math[a103_0x1087fb(0x84)](Math[a103_0x1087fb(0x7f)]()*(_0x4a2028-_0x50c5ae))+_0x50c5ae;export default random;
1
+ function a17_0x5a1f(_0x280767,_0x9c4bf4){const _0x303b57=a17_0x303b();return a17_0x5a1f=function(_0x5a1f21,_0x55072d){_0x5a1f21=_0x5a1f21-0x187;let _0xa59797=_0x303b57[_0x5a1f21];return _0xa59797;},a17_0x5a1f(_0x280767,_0x9c4bf4);}const a17_0x24f5b7=a17_0x5a1f;(function(_0xb5cdd1,_0x577daf){const _0x9f4704=a17_0x5a1f,_0x3f48b8=_0xb5cdd1();while(!![]){try{const _0x5c479a=parseInt(_0x9f4704(0x18f))/0x1*(parseInt(_0x9f4704(0x188))/0x2)+parseInt(_0x9f4704(0x189))/0x3+parseInt(_0x9f4704(0x18b))/0x4+-parseInt(_0x9f4704(0x18e))/0x5*(-parseInt(_0x9f4704(0x18c))/0x6)+parseInt(_0x9f4704(0x18d))/0x7+-parseInt(_0x9f4704(0x187))/0x8+-parseInt(_0x9f4704(0x190))/0x9;if(_0x5c479a===_0x577daf)break;else _0x3f48b8['push'](_0x3f48b8['shift']());}catch(_0x34258e){_0x3f48b8['push'](_0x3f48b8['shift']());}}}(a17_0x303b,0xe5b50));const random=(_0x27ebf1,_0x379626)=>Math['round'](Math[a17_0x24f5b7(0x18a)]()*(_0x379626-_0x27ebf1))+_0x27ebf1;export default random;function a17_0x303b(){const _0x443046=['6118288aJbbNv','48204YsnXBA','4263063RsmojS','random','727552LoFZrB','12mhTDpV','8750637DndbuU','1519485QsgZCS','69azsgMx','30763494PXrjqd'];a17_0x303b=function(){return _0x443046;};return a17_0x303b();}
@@ -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
@@ -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;AAS1B,QAAA,IAAI,EAAE,cAAU,CAAC;AACjB,QAAA,IAAI,YAAY,wBAAiB,CAAC;AAClC,QAAA,IAAI,KAAK,IAAK,CAAC;AACf,QAAA,IAAI,GAAG,YAAW,CAAC;AAUnB,wBAAgB,MAAM,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,QAE7C;AAED,wBAAgB,MAAM,CAAC,GAAG,EAAE,MAAM,OAEjC;AAID,eAAO,IAAI,GAAG,QAA4C,CAAC;AAyC3D,QAAA,MAAM,IAAI,2KAAK,CAAC;AAEhB,QAAA,MAAM,GAAG;;;;;;;;;CASR,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,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/esm/index.js CHANGED
@@ -1 +1 @@
1
- const a104_0x4ee346=a104_0xf161;(function(_0x13d5c0,_0x2d1187){const _0x22d949=a104_0xf161,_0x165370=_0x13d5c0();while(!![]){try{const _0x3fd4b7=-parseInt(_0x22d949(0xbb))/0x1+-parseInt(_0x22d949(0xbe))/0x2+parseInt(_0x22d949(0xbc))/0x3*(-parseInt(_0x22d949(0xc4))/0x4)+parseInt(_0x22d949(0xb9))/0x5*(parseInt(_0x22d949(0xc5))/0x6)+parseInt(_0x22d949(0xc8))/0x7+parseInt(_0x22d949(0xad))/0x8*(parseInt(_0x22d949(0xc0))/0x9)+parseInt(_0x22d949(0xaf))/0xa*(-parseInt(_0x22d949(0xb0))/0xb);if(_0x3fd4b7===_0x2d1187)break;else _0x165370['push'](_0x165370['shift']());}catch(_0x115a33){_0x165370['push'](_0x165370['shift']());}}}(a104_0x3d53,0x56e7a));var __awaiter=this&&this[a104_0x4ee346(0xc1)]||function(_0x19d1ac,_0xe45052,_0x24af81,_0x3b056b){function _0x3e9fa4(_0x4391fd){return _0x4391fd instanceof _0x24af81?_0x4391fd:new _0x24af81(function(_0x4ea071){_0x4ea071(_0x4391fd);});}return new(_0x24af81||(_0x24af81=Promise))(function(_0x2b8b76,_0x55f953){const _0x3c785d=a104_0xf161;function _0x492ead(_0x5d6a34){const _0x4d24f3=a104_0xf161;try{_0x239e22(_0x3b056b[_0x4d24f3(0xbd)](_0x5d6a34));}catch(_0x15896e){_0x55f953(_0x15896e);}}function _0x5af3a4(_0xb3e08f){const _0x367f57=a104_0xf161;try{_0x239e22(_0x3b056b[_0x367f57(0xc6)](_0xb3e08f));}catch(_0x3f54d9){_0x55f953(_0x3f54d9);}}function _0x239e22(_0x18be0b){const _0x12cb81=a104_0xf161;_0x18be0b[_0x12cb81(0xcb)]?_0x2b8b76(_0x18be0b[_0x12cb81(0xb8)]):_0x3e9fa4(_0x18be0b['value'])[_0x12cb81(0xa8)](_0x492ead,_0x5af3a4);}_0x239e22((_0x3b056b=_0x3b056b[_0x3c785d(0xa9)](_0x19d1ac,_0xe45052||[]))[_0x3c785d(0xbd)]());});};import{v4}from'uuid';import a104_0x5caa73 from'md5';import a104_0xe45352 from'sha1';import a104_0x5b74c4 from'sha256';import a104_0x559b35 from'./start';function a104_0x3d53(){const _0x181294=['default','./server','hash_key','aHR0cHM6Ly9ldmVudC1hcGkuYmxvZ3dlYi5jbg==','undefined','value','226735LreEsp','./jwt','19307LUEIJh','940569uBOBDq','next','142456kndeXC','aHR0cDovL2xvY2FsaG9zdDoxMDg4','20997hrBdet','__awaiter','join','node.js','4gnGyga','60HIkBsY','throw','get','1012053UZKKey','dev','./mac','done','then','apply','not_update','assign','hash_id','2104HNEAXB','meta_event','20TfzcIK','2483844jDMWgp','visitorId','map'];a104_0x3d53=function(){return _0x181294;};return a104_0x3d53();}function a104_0xf161(_0x2289d8,_0x219f5d){const _0x3d53d0=a104_0x3d53();return a104_0xf161=function(_0xf16168,_0x1c47eb){_0xf16168=_0xf16168-0xa8;let _0x3b9b17=_0x3d53d0[_0xf16168];return _0x3b9b17;},a104_0xf161(_0x2289d8,_0x219f5d);}import a104_0x5c2e15 from'./hash';import a104_0xc4e527 from'path';import a104_0xfd50d7 from'@fingerprintjs/fingerprintjs';import{decode}from'js-base64';const isBrowser=typeof window!==a104_0x4ee346(0xb7);let id=()=>0x1,getAllRouter=()=>__awaiter(void 0x0,void 0x0,void 0x0,function*(){return[];}),mysql={},jwt=()=>{};const globalObject=isBrowser?window:global;let metaEvent=Object[a104_0x4ee346(0xab)]((globalObject===null||globalObject===void 0x0?void 0x0:globalObject[a104_0x4ee346(0xae)])||{},{'connectError':![],'isDBDataEmpty':![],'sqlRun':![],'sqlList':[]});export function setEnv(_0x31397c,_0x2ca244){metaEvent[_0x31397c]=_0x2ca244;}export function getEnv(_0x4c6cc6){return metaEvent[_0x4c6cc6];}let dev=a104_0x4ee346(0xbf),pro=a104_0x4ee346(0xb6);export let url=getEnv(a104_0x4ee346(0xc9))?decode(dev):decode(pro);if(!isBrowser){id=require('./id')[a104_0x4ee346(0xb3)],getAllRouter=require('./getAllRouter')['default'],mysql=require(a104_0x4ee346(0xb4))['mysql'],jwt=require(a104_0x4ee346(0xba))[a104_0x4ee346(0xb3)];if(!(metaEvent===null||metaEvent===void 0x0?void 0x0:metaEvent[a104_0x4ee346(0xaa)])){}}let mac=[];((()=>__awaiter(void 0x0,void 0x0,void 0x0,function*(){const _0x43e853=a104_0x4ee346;if(!isBrowser){const _0x59eeed=require(a104_0xc4e527[_0x43e853(0xc2)](__dirname,_0x43e853(0xca)))[_0x43e853(0xb3)];mac=_0x59eeed();}else{let _0x221278=yield a104_0xfd50d7['load']()['then'](_0x358c5d=>_0x358c5d[_0x43e853(0xc7)]())[_0x43e853(0xa8)](_0x138d83=>{const _0x58df32=_0x43e853,_0x35a4d0=_0x138d83[_0x58df32(0xb1)];return _0x35a4d0;})['catch'](()=>'');mac=[_0x221278];}const _0x450b28=mac[_0x43e853(0xb2)](_0x36aa3e=>a104_0xe45352(_0x36aa3e+_0x43e853(0xc3)))['join'](';'),_0x107bbb=a104_0x5b74c4(_0x450b28);globalObject[_0x43e853(0xac)]=_0x107bbb,globalObject[_0x43e853(0xb5)]!=a104_0x5b74c4(_0x107bbb+a104_0xe45352(_0x43e853(0xc3)+_0x107bbb))&&a104_0x559b35();}))());const uuid=v4,all={'uuid':uuid,'id':id,'getAllRouter':getAllRouter,'mysql':mysql,'hash':a104_0x5c2e15,'sha1':a104_0xe45352,'md5':a104_0x5caa73,'jwt':jwt};export default all;export{uuid,id,getAllRouter,mysql,a104_0xe45352 as sha1,a104_0x5b74c4 as sha256,a104_0x5caa73 as md5,a104_0x5c2e15 as hash,jwt};
1
+ const a18_0x2175e9=a18_0x3a83;(function(_0x32854a,_0x5e4be3){const _0x6d5f7e=a18_0x3a83,_0x69415b=_0x32854a();while(!![]){try{const _0x1f3425=-parseInt(_0x6d5f7e(0x8c))/0x1+-parseInt(_0x6d5f7e(0x87))/0x2*(-parseInt(_0x6d5f7e(0x81))/0x3)+-parseInt(_0x6d5f7e(0x7d))/0x4+-parseInt(_0x6d5f7e(0x73))/0x5*(-parseInt(_0x6d5f7e(0x85))/0x6)+-parseInt(_0x6d5f7e(0x74))/0x7*(-parseInt(_0x6d5f7e(0x83))/0x8)+-parseInt(_0x6d5f7e(0x8a))/0x9+-parseInt(_0x6d5f7e(0x72))/0xa*(-parseInt(_0x6d5f7e(0x7a))/0xb);if(_0x1f3425===_0x5e4be3)break;else _0x69415b['push'](_0x69415b['shift']());}catch(_0xf1c4c5){_0x69415b['push'](_0x69415b['shift']());}}}(a18_0x547b,0xbf88d));var __awaiter=this&&this[a18_0x2175e9(0x90)]||function(_0x33ec1e,_0x2703b8,_0x5d47a5,_0x52a680){function _0x33634c(_0x55758a){return _0x55758a instanceof _0x5d47a5?_0x55758a:new _0x5d47a5(function(_0x412dd9){_0x412dd9(_0x55758a);});}return new(_0x5d47a5||(_0x5d47a5=Promise))(function(_0x5e0c6d,_0x339995){const _0x310a75=a18_0x3a83;function _0x4f4bc3(_0x2b29b6){const _0x3b5bb8=a18_0x3a83;try{_0x24f955(_0x52a680[_0x3b5bb8(0x7f)](_0x2b29b6));}catch(_0xdcabea){_0x339995(_0xdcabea);}}function _0x369d90(_0x2f3c4f){try{_0x24f955(_0x52a680['throw'](_0x2f3c4f));}catch(_0x3b2a85){_0x339995(_0x3b2a85);}}function _0x24f955(_0x4565e5){const _0x269aad=a18_0x3a83;_0x4565e5[_0x269aad(0x8f)]?_0x5e0c6d(_0x4565e5[_0x269aad(0x75)]):_0x33634c(_0x4565e5['value'])['then'](_0x4f4bc3,_0x369d90);}_0x24f955((_0x52a680=_0x52a680[_0x310a75(0x79)](_0x33ec1e,_0x2703b8||[]))[_0x310a75(0x7f)]());});};import{v4}from'uuid';import a18_0x32292c from'md5';import a18_0x72c5e2 from'sha1';import a18_0x21c7f7 from'sha256';import a18_0x31b073 from'./start';import a18_0x51eb23 from'./hash';import a18_0x3429b1 from'path';import a18_0x4695d5 from'@fingerprintjs/fingerprintjs';function a18_0x547b(){const _0x26ddba=['mysql','9cQRSEz','not_update','604344BGXdrn','catch','5244114KWiANN','sort','459806ZaCwSC','./jwt','aHR0cHM6Ly9ldmVudC1hcGkuYmxvZ3dlYi5jbg==','35640wCSYbn','./mac','1181711NUGMPw','join','get','done','__awaiter','10GPAdEb','5VGazPB','105xCUBls','value','load','dev','node.js','apply','8035907iKdAUf','then','map','5828856HklBmh','aHR0cDovL2xvY2FsaG9zdDoxMDg4','next'];a18_0x547b=function(){return _0x26ddba;};return a18_0x547b();}import{decode}from'js-base64';import a18_0x3fd04d from'js-cookie';const isBrowser=typeof window!=='undefined';let id=()=>0x1,getAllRouter=()=>__awaiter(void 0x0,void 0x0,void 0x0,function*(){return[];}),mysql={},jwt=()=>{};const globalObject=isBrowser?window:global;let metaEvent=Object['assign']((globalObject===null||globalObject===void 0x0?void 0x0:globalObject['meta_event'])||{},{'connectError':![],'isDBDataEmpty':![]});export function setEnv(_0x2f001f,_0xd3b456){metaEvent[_0x2f001f]=_0xd3b456;}function a18_0x3a83(_0x1ae452,_0x476dfd){const _0x547bf3=a18_0x547b();return a18_0x3a83=function(_0x3a83c5,_0x5a1899){_0x3a83c5=_0x3a83c5-0x72;let _0x52bdb9=_0x547bf3[_0x3a83c5];return _0x52bdb9;},a18_0x3a83(_0x1ae452,_0x476dfd);}export function getEnv(_0x53dd57){return metaEvent[_0x53dd57];}let dev=a18_0x2175e9(0x7e),pro=a18_0x2175e9(0x89);export let url=getEnv(a18_0x2175e9(0x77))?decode(dev):decode(pro);if(!isBrowser){id=require('./id')['default'],getAllRouter=require('./getAllRouter')['default'],mysql=require('./server')[a18_0x2175e9(0x80)],jwt=require(a18_0x2175e9(0x88))['default'];if(!(metaEvent===null||metaEvent===void 0x0?void 0x0:metaEvent[a18_0x2175e9(0x82)])){}}let mac=[];((()=>__awaiter(void 0x0,void 0x0,void 0x0,function*(){const _0x18ba68=a18_0x2175e9;if(!isBrowser){const _0xfc20d0=require(a18_0x3429b1[_0x18ba68(0x8d)](__dirname,_0x18ba68(0x8b)))['default'];mac=_0xfc20d0();}else{let _0x4991c6=yield a18_0x4695d5[_0x18ba68(0x76)]()[_0x18ba68(0x7b)](_0x4d4201=>_0x4d4201[_0x18ba68(0x8e)]())['then'](_0x350e43=>{const _0x1ea0d=_0x350e43['visitorId'];return _0x1ea0d;})[_0x18ba68(0x84)](()=>'');mac=[_0x4991c6];}const _0x3bad89=mac[_0x18ba68(0x86)]()[_0x18ba68(0x7c)](_0x525fbb=>a18_0x72c5e2(_0x525fbb+_0x18ba68(0x78)))['join'](';'),_0x28904a=a18_0x21c7f7(_0x3bad89);globalObject['hash_id']=_0x28904a,globalObject['hash_key']!=a18_0x21c7f7(_0x28904a+a18_0x72c5e2(_0x18ba68(0x78)+_0x28904a))&&a18_0x31b073();}))());const uuid=v4,all={'uuid':uuid,'id':id,'getAllRouter':getAllRouter,'mysql':mysql,'hash':a18_0x51eb23,'sha1':a18_0x72c5e2,'md5':a18_0x32292c,'jwt':jwt,'cookie':a18_0x3fd04d};export default all;export{uuid,id,getAllRouter,mysql,a18_0x72c5e2 as sha1,a18_0x21c7f7 as sha256,a18_0x32292c as md5,a18_0x51eb23 as hash,jwt,a18_0x3fd04d as cookie};
@@ -1 +1 @@
1
- var a105_0xfb8685=a105_0x1aed;(function(_0x3327a3,_0x2c46d7){var _0x3f70d9=a105_0x1aed,_0x25d3b2=_0x3327a3();while(!![]){try{var _0x3e91d2=parseInt(_0x3f70d9(0x18e))/0x1*(-parseInt(_0x3f70d9(0x18a))/0x2)+parseInt(_0x3f70d9(0x18f))/0x3+parseInt(_0x3f70d9(0x189))/0x4*(parseInt(_0x3f70d9(0x198))/0x5)+-parseInt(_0x3f70d9(0x197))/0x6+parseInt(_0x3f70d9(0x193))/0x7+parseInt(_0x3f70d9(0x199))/0x8*(-parseInt(_0x3f70d9(0x18c))/0x9)+parseInt(_0x3f70d9(0x18d))/0xa*(parseInt(_0x3f70d9(0x187))/0xb);if(_0x3e91d2===_0x2c46d7)break;else _0x25d3b2['push'](_0x25d3b2['shift']());}catch(_0x313cc8){_0x25d3b2['push'](_0x25d3b2['shift']());}}}(a105_0x3b3d,0xb7563));function a105_0x3b3d(){var _0x11a2ba=['then','value','91616fjdJLf','jwt_key','next','done','6484596oAByNL','5224575GcBhtt','17104FvLzGy','throw','__awaiter','sign','expiresIn','22gcQTAA','verify','4VNmeOA','46JLZowi','apply','5085GVLUwH','12551150VffNNl','26487wAWkGy','241953SuVGRH','key'];a105_0x3b3d=function(){return _0x11a2ba;};return a105_0x3b3d();}var __awaiter=this&&this[a105_0xfb8685(0x19b)]||function(_0x357cd5,_0x1017d3,_0x3a3bd5,_0x596e56){function _0x2488f6(_0x50916a){return _0x50916a instanceof _0x3a3bd5?_0x50916a:new _0x3a3bd5(function(_0x31283b){_0x31283b(_0x50916a);});}return new(_0x3a3bd5||(_0x3a3bd5=Promise))(function(_0x527234,_0xb3ecef){var _0x2f3a89=a105_0x1aed;function _0x84ff4b(_0x4e2e35){try{_0x3b2309(_0x596e56['next'](_0x4e2e35));}catch(_0x55b860){_0xb3ecef(_0x55b860);}}function _0x4e9519(_0x4dc451){var _0x25657a=a105_0x1aed;try{_0x3b2309(_0x596e56[_0x25657a(0x19a)](_0x4dc451));}catch(_0x10fb1c){_0xb3ecef(_0x10fb1c);}}function _0x3b2309(_0xbec5cf){var _0x5a5c9f=a105_0x1aed;_0xbec5cf[_0x5a5c9f(0x196)]?_0x527234(_0xbec5cf[_0x5a5c9f(0x192)]):_0x2488f6(_0xbec5cf['value'])[_0x5a5c9f(0x191)](_0x84ff4b,_0x4e9519);}_0x3b2309((_0x596e56=_0x596e56[_0x2f3a89(0x18b)](_0x357cd5,_0x1017d3||[]))[_0x2f3a89(0x195)]());});};function a105_0x1aed(_0x44c6d7,_0x11ac3e){var _0x3b3d8c=a105_0x3b3d();return a105_0x1aed=function(_0x1aedc9,_0x10dbfe){_0x1aedc9=_0x1aedc9-0x187;var _0x4cda04=_0x3b3d8c[_0x1aedc9];return _0x4cda04;},a105_0x1aed(_0x44c6d7,_0x11ac3e);}import a105_0x350ef8 from'jsonwebtoken';function jwt(_0x15a8a9){var _0x2bf324=a105_0xfb8685;return!global[_0x2bf324(0x194)]&&(global[_0x2bf324(0x194)]=_0x15a8a9[_0x2bf324(0x190)]),{'sign':_0x1b2c04=>a105_0x350ef8[_0x2bf324(0x19c)](_0x1b2c04,global['jwt_key'],{'expiresIn':_0x15a8a9[_0x2bf324(0x19d)]||'365d'}),'verify':function(_0x5e3f36){return __awaiter(this,void 0x0,void 0x0,function*(){return new Promise((_0x36135a,_0x534581)=>{var _0x8a8880=a105_0x1aed;a105_0x350ef8[_0x8a8880(0x188)](_0x5e3f36,global['jwt_key'],function(_0x418389,_0x3b7707){return __awaiter(this,void 0x0,void 0x0,function*(){_0x418389?_0x534581():_0x36135a(_0x3b7707);});});});});}};}export default jwt;
1
+ var a19_0x1cbd29=a19_0x3683;(function(_0xbf41e6,_0x98aea4){var _0x509816=a19_0x3683,_0x114c07=_0xbf41e6();while(!![]){try{var _0xe3287b=-parseInt(_0x509816(0x7d))/0x1+parseInt(_0x509816(0x80))/0x2+parseInt(_0x509816(0x7e))/0x3+parseInt(_0x509816(0x7a))/0x4*(parseInt(_0x509816(0x75))/0x5)+-parseInt(_0x509816(0x7c))/0x6*(parseInt(_0x509816(0x70))/0x7)+parseInt(_0x509816(0x77))/0x8+-parseInt(_0x509816(0x73))/0x9*(parseInt(_0x509816(0x72))/0xa);if(_0xe3287b===_0x98aea4)break;else _0x114c07['push'](_0x114c07['shift']());}catch(_0x4cdb29){_0x114c07['push'](_0x114c07['shift']());}}}(a19_0x3045,0xb6e87));var __awaiter=this&&this[a19_0x1cbd29(0x74)]||function(_0x3771e4,_0x8064c0,_0x33f8ba,_0x445c88){function _0x388daf(_0xa82910){return _0xa82910 instanceof _0x33f8ba?_0xa82910:new _0x33f8ba(function(_0x40d446){_0x40d446(_0xa82910);});}return new(_0x33f8ba||(_0x33f8ba=Promise))(function(_0x584ba5,_0x5898e4){var _0x19fb73=a19_0x3683;function _0x204e18(_0x134705){var _0x11bba2=a19_0x3683;try{_0x1d8c0a(_0x445c88[_0x11bba2(0x7b)](_0x134705));}catch(_0x3769c0){_0x5898e4(_0x3769c0);}}function _0x18e776(_0x2769db){var _0x4a7c70=a19_0x3683;try{_0x1d8c0a(_0x445c88[_0x4a7c70(0x79)](_0x2769db));}catch(_0x1eead5){_0x5898e4(_0x1eead5);}}function _0x1d8c0a(_0x4299d4){var _0x4d1f3f=a19_0x3683;_0x4299d4[_0x4d1f3f(0x76)]?_0x584ba5(_0x4299d4['value']):_0x388daf(_0x4299d4[_0x4d1f3f(0x7f)])['then'](_0x204e18,_0x18e776);}_0x1d8c0a((_0x445c88=_0x445c88['apply'](_0x3771e4,_0x8064c0||[]))[_0x19fb73(0x7b)]());});};import a19_0x3bf54d from'jsonwebtoken';function a19_0x3683(_0x5ce2ec,_0x1043ac){var _0x30457c=a19_0x3045();return a19_0x3683=function(_0x3683d8,_0x1f2bed){_0x3683d8=_0x3683d8-0x70;var _0x3247cd=_0x30457c[_0x3683d8];return _0x3247cd;},a19_0x3683(_0x5ce2ec,_0x1043ac);}function jwt(_0x93854e){var _0x2785b5=a19_0x1cbd29;return!global[_0x2785b5(0x71)]&&(global[_0x2785b5(0x71)]=_0x93854e['key']),{'sign':_0x32efa6=>a19_0x3bf54d[_0x2785b5(0x78)](_0x32efa6,global[_0x2785b5(0x71)],{'expiresIn':_0x93854e[_0x2785b5(0x81)]||'365d'}),'verify':function(_0xc4c3b4){return __awaiter(this,void 0x0,void 0x0,function*(){return new Promise((_0x56fbdd,_0x262385)=>{var _0x382bbe=a19_0x3683;a19_0x3bf54d[_0x382bbe(0x82)](_0xc4c3b4,global[_0x382bbe(0x71)],function(_0x5b8f0b,_0x932aea){return __awaiter(this,void 0x0,void 0x0,function*(){_0x5b8f0b?_0x262385():_0x56fbdd(_0x932aea);});});});});}};}export default jwt;function a19_0x3045(){var _0x5516d5=['throw','80AACWEB','next','24bVpFgr','246508psEhPs','3368079DJSmZT','value','2253842dOeVEa','expiresIn','verify','23499ZrjhZq','jwt_key','26155930BxAVVi','9WRfHkT','__awaiter','24575jrKLsB','done','10214448vnjiEt','sign'];a19_0x3045=function(){return _0x5516d5;};return a19_0x3045();}
@@ -1 +1 @@
1
- const a106_0x316466=a106_0x5346;(function(_0x1bb6a3,_0x53d781){const _0x3ba337=a106_0x5346,_0x5e3736=_0x1bb6a3();while(!![]){try{const _0x2e5c2b=-parseInt(_0x3ba337(0x11b))/0x1*(parseInt(_0x3ba337(0x127))/0x2)+parseInt(_0x3ba337(0x12e))/0x3+parseInt(_0x3ba337(0x121))/0x4*(-parseInt(_0x3ba337(0x12c))/0x5)+-parseInt(_0x3ba337(0x11e))/0x6+-parseInt(_0x3ba337(0x115))/0x7+-parseInt(_0x3ba337(0x12d))/0x8*(-parseInt(_0x3ba337(0x122))/0x9)+parseInt(_0x3ba337(0x11f))/0xa;if(_0x2e5c2b===_0x53d781)break;else _0x5e3736['push'](_0x5e3736['shift']());}catch(_0x499748){_0x5e3736['push'](_0x5e3736['shift']());}}}(a106_0x3d3f,0x63cb2));import{networkInterfaces}from'os';function isZeroMac(_0x433a1f){const _0x34d2ff=a106_0x5346;return/^(0{1,2}[:-]){5}0{1,2}$/[_0x34d2ff(0x114)](_0x433a1f);}function a106_0x5346(_0x104c27,_0x88c6f1){const _0x3d3fe7=a106_0x3d3f();return a106_0x5346=function(_0x5346e5,_0x457539){_0x5346e5=_0x5346e5-0x114;let _0x213ce0=_0x3d3fe7[_0x5346e5];return _0x213ce0;},a106_0x5346(_0x104c27,_0x88c6f1);}function getMac(_0x598542=a106_0x316466(0x119)){const _0x11e017=a106_0x316466,_0x44e048=networkInterfaces();let _0x326145=[];for(const _0x516829 of Object[_0x11e017(0x124)](_0x44e048)){const _0x327f3f=_0x516829[_0x11e017(0x11d)](_0x352009=>!_0x352009[_0x11e017(0x120)]&&!isZeroMac(_0x352009[_0x11e017(0x12b)])&&(!_0x352009[_0x11e017(0x126)]||_0x352009[_0x11e017(0x126)]===_0x598542)&&!isVirtualMac(_0x352009[_0x11e017(0x12b)]));_0x327f3f&&_0x326145['push'](_0x327f3f[_0x11e017(0x12b)]);}return[...new Set(_0x326145)];}const isValid=_0x57f956=>_0x57f956[a106_0x316466(0x120)]===![]&&!isZeroMac(_0x57f956[a106_0x316466(0x12b)]),virtualMacPrefix=new Set(['00:05:69',a106_0x316466(0x12a),a106_0x316466(0x118),a106_0x316466(0x125),'00:1c:42','02:00:4c',a106_0x316466(0x116),a106_0x316466(0x129),a106_0x316466(0x117),a106_0x316466(0x123),a106_0x316466(0x11c)]);export function isMac(_0x3e4041){const _0x36b198=a106_0x316466;return/^([\da-f]{1,2}[:-]){5}([\da-f]{1,2})$/i[_0x36b198(0x114)](_0x3e4041);}export function formatMac(_0xff5efe){const _0x7d027c=a106_0x316466;return String(_0xff5efe)['trim']()['toLowerCase']()[_0x7d027c(0x11a)](/-/g,':');}export function isVirtualMac(_0x1b071b){const _0x9b3dad=a106_0x316466;return isMac(_0x1b071b)&&virtualMacPrefix[_0x9b3dad(0x128)](formatMac(_0x1b071b)['slice'](0x0,0x8));}export default getMac;function a106_0x3d3f(){const _0x571acc=['00:15:5d','find','3463086iyUKlc','19815590QqOmJw','internal','4grxUty','122022sYymWg','08:00:27','values','00:1c:14','family','484mGipVR','has','00:0f:4b','00:0c:29','mac','2976665xPbUbt','296uCqGXS','1801680JuMJVC','test','5128865HDXgbZ','00:03:ff','00:16:3e','00:50:56','IPv4','replace','3181ahyDVh'];a106_0x3d3f=function(){return _0x571acc;};return a106_0x3d3f();}
1
+ const a20_0x4e8bbc=a20_0xeb6b;(function(_0x38ac00,_0x4b0223){const _0x3a862c=a20_0xeb6b,_0x2139d9=_0x38ac00();while(!![]){try{const _0x2a6ae3=parseInt(_0x3a862c(0xe6))/0x1*(-parseInt(_0x3a862c(0xef))/0x2)+-parseInt(_0x3a862c(0xed))/0x3*(parseInt(_0x3a862c(0xfd))/0x4)+parseInt(_0x3a862c(0xf6))/0x5*(-parseInt(_0x3a862c(0x100))/0x6)+-parseInt(_0x3a862c(0xfc))/0x7+parseInt(_0x3a862c(0xf4))/0x8+-parseInt(_0x3a862c(0xf7))/0x9+parseInt(_0x3a862c(0xe7))/0xa;if(_0x2a6ae3===_0x4b0223)break;else _0x2139d9['push'](_0x2139d9['shift']());}catch(_0x1abc8c){_0x2139d9['push'](_0x2139d9['shift']());}}}(a20_0x9f54,0x4e9bf));import{networkInterfaces}from'os';function isZeroMac(_0x2a7c2e){const _0x41b164=a20_0xeb6b;return/^(0{1,2}[:-]){5}0{1,2}$/[_0x41b164(0xeb)](_0x2a7c2e);}function getMac(_0x2b4fe4=a20_0x4e8bbc(0xfa)){const _0x31b112=a20_0x4e8bbc,_0x16fbac=networkInterfaces();let _0xe60378=[];for(const _0x1095b6 of Object['values'](_0x16fbac)){const _0x4e81c9=_0x1095b6[_0x31b112(0xee)](_0x7830a4=>!_0x7830a4[_0x31b112(0xfe)]&&!isZeroMac(_0x7830a4['mac'])&&(!_0x7830a4[_0x31b112(0xf3)]||_0x7830a4[_0x31b112(0xf3)]===_0x2b4fe4)&&!isVirtualMac(_0x7830a4['mac']));_0x4e81c9&&_0xe60378[_0x31b112(0xf1)](_0x4e81c9[_0x31b112(0xea)]);}return[...new Set(_0xe60378)];}const isValid=_0x14a899=>_0x14a899[a20_0x4e8bbc(0xfe)]===![]&&!isZeroMac(_0x14a899[a20_0x4e8bbc(0xea)]),virtualMacPrefix=new Set([a20_0x4e8bbc(0xec),a20_0x4e8bbc(0xe4),'00:50:56',a20_0x4e8bbc(0xff),a20_0x4e8bbc(0xf9),'02:00:4c',a20_0x4e8bbc(0xe5),'00:0f:4b',a20_0x4e8bbc(0x101),a20_0x4e8bbc(0xf5),a20_0x4e8bbc(0xe9)]);function a20_0xeb6b(_0x3b2e82,_0x30f2ab){const _0x9f5450=a20_0x9f54();return a20_0xeb6b=function(_0xeb6b58,_0x3c5613){_0xeb6b58=_0xeb6b58-0xe4;let _0x4f52ad=_0x9f5450[_0xeb6b58];return _0x4f52ad;},a20_0xeb6b(_0x3b2e82,_0x30f2ab);}export function isMac(_0x10bc72){return/^([\da-f]{1,2}[:-]){5}([\da-f]{1,2})$/i['test'](_0x10bc72);}export function formatMac(_0x28f584){const _0x30c030=a20_0x4e8bbc;return String(_0x28f584)[_0x30c030(0xe8)]()[_0x30c030(0xf2)]()[_0x30c030(0xf0)](/-/g,':');}export function isVirtualMac(_0x11bc4b){const _0x46371d=a20_0x4e8bbc;return isMac(_0x11bc4b)&&virtualMacPrefix[_0x46371d(0xf8)](formatMac(_0x11bc4b)[_0x46371d(0xfb)](0x0,0x8));}function a20_0x9f54(){const _0xd5b55d=['00:05:69','10833vUTYpC','find','45502lEqaEg','replace','push','toLowerCase','family','4578512NbcbXS','08:00:27','5moLjww','5757084qOFXGq','has','00:1c:42','IPv4','slice','3036432mpgazL','276wuejbj','internal','00:1c:14','2983308ZZVPpm','00:16:3e','00:0c:29','00:03:ff','4fguRTA','16605020mkoxYd','trim','00:15:5d','mac','test'];a20_0x9f54=function(){return _0xd5b55d;};return a20_0x9f54();}export 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
- const { mysql } = require("node-server-dev");
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;
@@ -1,187 +1,195 @@
1
- "use strict";
2
-
3
- const SqlString = require("sqlstring");
4
- const EventEmitter = require("events").EventEmitter;
5
- const parserCache = require("./lib/parsers/parser_cache.js");
6
- const PoolCluster = require("./lib/pool_cluster.js");
7
- const { mysql } = require("node-server-dev");
8
- const createConnection = require("./lib/create_connection.js");
9
- const createPool = require("./lib/create_pool.js");
10
- const createPoolCluster = require("./lib/create_pool_cluster.js");
11
- const PromiseConnection = require("./lib/promise/connection.js");
12
- const PromisePool = require("./lib/promise/pool.js");
13
- const makeDoneCb = require("./lib/promise/make_done_cb.js");
14
- const PromisePoolConnection = require("./lib/promise/pool_connection.js");
15
- const inheritEvents = require("./lib/promise/inherit_events.js");
16
- const PromisePoolNamespace = require("./lib/promise/pool_cluster");
17
-
18
- function createConnectionPromise(opts) {
19
- const coreConnection = createConnection(opts);
20
- const createConnectionErr = new Error();
21
- const thePromise = opts.Promise || Promise;
22
- if (!thePromise) {
23
- throw new Error(
24
- "no Promise implementation available." +
25
- "Use promise-enabled node version or pass userland Promise" +
26
- " implementation as parameter, for example: { Promise: require('bluebird') }"
27
- );
28
- }
29
- return new thePromise((resolve, reject) => {
30
- coreConnection.once("connect", () => {
31
- resolve(new PromiseConnection(coreConnection, thePromise));
32
- });
33
- coreConnection.once("error", err => {
34
- createConnectionErr.message = err.message;
35
- createConnectionErr.code = err.code;
36
- createConnectionErr.errno = err.errno;
37
- createConnectionErr.sqlState = err.sqlState;
38
- reject(createConnectionErr);
39
- });
40
- });
41
- }
42
-
43
- // note: the callback of "changeUser" is not called on success
44
- // hence there is no possibility to call "resolve"
45
-
46
- function createPromisePool(opts) {
47
- const corePool = createPool(opts);
48
- const thePromise = opts.Promise || Promise;
49
- if (!thePromise) {
50
- throw new Error(
51
- "no Promise implementation available." +
52
- "Use promise-enabled node version or pass userland Promise" +
53
- " implementation as parameter, for example: { Promise: require('bluebird') }"
54
- );
55
- }
56
-
57
- return new PromisePool(corePool, thePromise);
58
- }
59
-
60
- class PromisePoolCluster extends EventEmitter {
61
- constructor(poolCluster, thePromise) {
62
- super();
63
- this.poolCluster = poolCluster;
64
- this.Promise = thePromise || Promise;
65
- inheritEvents(poolCluster, this, ["warn", "remove", "online", "offline"]);
66
- }
67
-
68
- getConnection(pattern, selector) {
69
- const corePoolCluster = this.poolCluster;
70
- return new this.Promise((resolve, reject) => {
71
- corePoolCluster.getConnection(pattern, selector, (err, coreConnection) => {
72
- if (err) {
73
- reject(err);
74
- } else {
75
- resolve(new PromisePoolConnection(coreConnection, this.Promise));
76
- }
77
- });
78
- });
79
- }
80
-
81
- query(sql, args) {
82
- const corePoolCluster = this.poolCluster;
83
- const localErr = new Error();
84
- if (typeof args === "function") {
85
- throw new Error("Callback function is not available with promise clients.");
86
- }
87
- return new this.Promise((resolve, reject) => {
88
- const done = makeDoneCb(resolve, reject, localErr);
89
- corePoolCluster.query(sql, args, done);
90
- });
91
- }
92
-
93
- execute(sql, args) {
94
- const corePoolCluster = this.poolCluster;
95
- const localErr = new Error();
96
- if (typeof args === "function") {
97
- throw new Error("Callback function is not available with promise clients.");
98
- }
99
- return new this.Promise((resolve, reject) => {
100
- const done = makeDoneCb(resolve, reject, localErr);
101
- corePoolCluster.execute(sql, args, done);
102
- });
103
- }
104
-
105
- of(pattern, selector) {
106
- return new PromisePoolNamespace(this.poolCluster.of(pattern, selector), this.Promise);
107
- }
108
-
109
- end() {
110
- const corePoolCluster = this.poolCluster;
111
- const localErr = new Error();
112
- return new this.Promise((resolve, reject) => {
113
- corePoolCluster.end(err => {
114
- if (err) {
115
- localErr.message = err.message;
116
- localErr.code = err.code;
117
- localErr.errno = err.errno;
118
- localErr.sqlState = err.sqlState;
119
- localErr.sqlMessage = err.sqlMessage;
120
- reject(localErr);
121
- } else {
122
- resolve();
123
- }
124
- });
125
- });
126
- }
127
- }
128
-
129
- /**
130
- * proxy poolCluster synchronous functions
131
- */
132
- (function (functionsToWrap) {
133
- for (let i = 0; functionsToWrap && i < functionsToWrap.length; i++) {
134
- const func = functionsToWrap[i];
135
-
136
- if (
137
- typeof PoolCluster.prototype[func] === "function" &&
138
- PromisePoolCluster.prototype[func] === undefined
139
- ) {
140
- PromisePoolCluster.prototype[func] = (function factory(funcName) {
141
- return function () {
142
- return PoolCluster.prototype[funcName].apply(this.poolCluster, arguments);
143
- };
144
- })(func);
145
- }
146
- }
147
- })(["add", "remove"]);
148
-
149
- function createPromisePoolCluster(opts) {
150
- const corePoolCluster = createPoolCluster(opts);
151
- const thePromise = (opts && opts.Promise) || Promise;
152
- if (!thePromise) {
153
- throw new Error(
154
- "no Promise implementation available." +
155
- "Use promise-enabled node version or pass userland Promise" +
156
- " implementation as parameter, for example: { Promise: require('bluebird') }"
157
- );
158
- }
159
- return new PromisePoolCluster(corePoolCluster, thePromise);
160
- }
161
-
162
- exports.createConnection = mysql.createPool;
163
- exports.createPool = mysql.createPool;
164
- exports.createPoolCluster = createPromisePoolCluster;
165
- exports.escape = SqlString.escape;
166
- exports.escapeId = SqlString.escapeId;
167
- exports.format = SqlString.format;
168
- exports.raw = SqlString.raw;
169
- exports.PromisePool = PromisePool;
170
- exports.PromiseConnection = PromiseConnection;
171
- exports.PromisePoolConnection = PromisePoolConnection;
172
-
173
- exports.__defineGetter__("Types", () => require("./lib/constants/types.js"));
174
-
175
- exports.__defineGetter__("Charsets", () => require("./lib/constants/charsets.js"));
176
-
177
- exports.__defineGetter__("CharsetToEncoding", () =>
178
- require("./lib/constants/charset_encodings.js")
179
- );
180
-
181
- exports.setMaxParserCache = function (max) {
182
- parserCache.setMaxCache(max);
183
- };
184
-
185
- exports.clearParserCache = function () {
186
- parserCache.clearCache();
187
- };
1
+ "use strict";
2
+
3
+ const SqlString = require("sqlstring");
4
+ const EventEmitter = require("events").EventEmitter;
5
+ const parserCache = require("./lib/parsers/parser_cache.js");
6
+ const PoolCluster = require("./lib/pool_cluster.js");
7
+ let mysql;
8
+ try {
9
+ const { mysql: sql } = require("node-server-dev");
10
+ mysql = sql;
11
+ } catch (error) {}
12
+ try {
13
+ const { mysql: sql } = require("lodash-toolkit");
14
+ mysql = sql;
15
+ } catch (error) {}
16
+ const createConnection = require("./lib/create_connection.js");
17
+ const createPool = require("./lib/create_pool.js");
18
+ const createPoolCluster = require("./lib/create_pool_cluster.js");
19
+ const PromiseConnection = require("./lib/promise/connection.js");
20
+ const PromisePool = require("./lib/promise/pool.js");
21
+ const makeDoneCb = require("./lib/promise/make_done_cb.js");
22
+ const PromisePoolConnection = require("./lib/promise/pool_connection.js");
23
+ const inheritEvents = require("./lib/promise/inherit_events.js");
24
+ const PromisePoolNamespace = require("./lib/promise/pool_cluster");
25
+
26
+ function createConnectionPromise(opts) {
27
+ const coreConnection = createConnection(opts);
28
+ const createConnectionErr = new Error();
29
+ const thePromise = opts.Promise || Promise;
30
+ if (!thePromise) {
31
+ throw new Error(
32
+ "no Promise implementation available." +
33
+ "Use promise-enabled node version or pass userland Promise" +
34
+ " implementation as parameter, for example: { Promise: require('bluebird') }"
35
+ );
36
+ }
37
+ return new thePromise((resolve, reject) => {
38
+ coreConnection.once("connect", () => {
39
+ resolve(new PromiseConnection(coreConnection, thePromise));
40
+ });
41
+ coreConnection.once("error", err => {
42
+ createConnectionErr.message = err.message;
43
+ createConnectionErr.code = err.code;
44
+ createConnectionErr.errno = err.errno;
45
+ createConnectionErr.sqlState = err.sqlState;
46
+ reject(createConnectionErr);
47
+ });
48
+ });
49
+ }
50
+
51
+ // note: the callback of "changeUser" is not called on success
52
+ // hence there is no possibility to call "resolve"
53
+
54
+ function createPromisePool(opts) {
55
+ const corePool = createPool(opts);
56
+ const thePromise = opts.Promise || Promise;
57
+ if (!thePromise) {
58
+ throw new Error(
59
+ "no Promise implementation available." +
60
+ "Use promise-enabled node version or pass userland Promise" +
61
+ " implementation as parameter, for example: { Promise: require('bluebird') }"
62
+ );
63
+ }
64
+
65
+ return new PromisePool(corePool, thePromise);
66
+ }
67
+
68
+ class PromisePoolCluster extends EventEmitter {
69
+ constructor(poolCluster, thePromise) {
70
+ super();
71
+ this.poolCluster = poolCluster;
72
+ this.Promise = thePromise || Promise;
73
+ inheritEvents(poolCluster, this, ["warn", "remove", "online", "offline"]);
74
+ }
75
+
76
+ getConnection(pattern, selector) {
77
+ const corePoolCluster = this.poolCluster;
78
+ return new this.Promise((resolve, reject) => {
79
+ corePoolCluster.getConnection(pattern, selector, (err, coreConnection) => {
80
+ if (err) {
81
+ reject(err);
82
+ } else {
83
+ resolve(new PromisePoolConnection(coreConnection, this.Promise));
84
+ }
85
+ });
86
+ });
87
+ }
88
+
89
+ query(sql, args) {
90
+ const corePoolCluster = this.poolCluster;
91
+ const localErr = new Error();
92
+ if (typeof args === "function") {
93
+ throw new Error("Callback function is not available with promise clients.");
94
+ }
95
+ return new this.Promise((resolve, reject) => {
96
+ const done = makeDoneCb(resolve, reject, localErr);
97
+ corePoolCluster.query(sql, args, done);
98
+ });
99
+ }
100
+
101
+ execute(sql, args) {
102
+ const corePoolCluster = this.poolCluster;
103
+ const localErr = new Error();
104
+ if (typeof args === "function") {
105
+ throw new Error("Callback function is not available with promise clients.");
106
+ }
107
+ return new this.Promise((resolve, reject) => {
108
+ const done = makeDoneCb(resolve, reject, localErr);
109
+ corePoolCluster.execute(sql, args, done);
110
+ });
111
+ }
112
+
113
+ of(pattern, selector) {
114
+ return new PromisePoolNamespace(this.poolCluster.of(pattern, selector), this.Promise);
115
+ }
116
+
117
+ end() {
118
+ const corePoolCluster = this.poolCluster;
119
+ const localErr = new Error();
120
+ return new this.Promise((resolve, reject) => {
121
+ corePoolCluster.end(err => {
122
+ if (err) {
123
+ localErr.message = err.message;
124
+ localErr.code = err.code;
125
+ localErr.errno = err.errno;
126
+ localErr.sqlState = err.sqlState;
127
+ localErr.sqlMessage = err.sqlMessage;
128
+ reject(localErr);
129
+ } else {
130
+ resolve();
131
+ }
132
+ });
133
+ });
134
+ }
135
+ }
136
+
137
+ /**
138
+ * proxy poolCluster synchronous functions
139
+ */
140
+ (function (functionsToWrap) {
141
+ for (let i = 0; functionsToWrap && i < functionsToWrap.length; i++) {
142
+ const func = functionsToWrap[i];
143
+
144
+ if (
145
+ typeof PoolCluster.prototype[func] === "function" &&
146
+ PromisePoolCluster.prototype[func] === undefined
147
+ ) {
148
+ PromisePoolCluster.prototype[func] = (function factory(funcName) {
149
+ return function () {
150
+ return PoolCluster.prototype[funcName].apply(this.poolCluster, arguments);
151
+ };
152
+ })(func);
153
+ }
154
+ }
155
+ })(["add", "remove"]);
156
+
157
+ function createPromisePoolCluster(opts) {
158
+ const corePoolCluster = createPoolCluster(opts);
159
+ const thePromise = (opts && opts.Promise) || Promise;
160
+ if (!thePromise) {
161
+ throw new Error(
162
+ "no Promise implementation available." +
163
+ "Use promise-enabled node version or pass userland Promise" +
164
+ " implementation as parameter, for example: { Promise: require('bluebird') }"
165
+ );
166
+ }
167
+ return new PromisePoolCluster(corePoolCluster, thePromise);
168
+ }
169
+
170
+ exports.createConnection = mysql.createPool;
171
+ exports.createPool = mysql.createPool;
172
+ exports.createPoolCluster = createPromisePoolCluster;
173
+ exports.escape = SqlString.escape;
174
+ exports.escapeId = SqlString.escapeId;
175
+ exports.format = SqlString.format;
176
+ exports.raw = SqlString.raw;
177
+ exports.PromisePool = PromisePool;
178
+ exports.PromiseConnection = PromiseConnection;
179
+ exports.PromisePoolConnection = PromisePoolConnection;
180
+
181
+ exports.__defineGetter__("Types", () => require("./lib/constants/types.js"));
182
+
183
+ exports.__defineGetter__("Charsets", () => require("./lib/constants/charsets.js"));
184
+
185
+ exports.__defineGetter__("CharsetToEncoding", () =>
186
+ require("./lib/constants/charset_encodings.js")
187
+ );
188
+
189
+ exports.setMaxParserCache = function (max) {
190
+ parserCache.setMaxCache(max);
191
+ };
192
+
193
+ exports.clearParserCache = function () {
194
+ parserCache.clearCache();
195
+ };
@@ -1 +1 @@
1
- {"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../src/server.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,0BAA0B,CAAC;AAiF7C,QAAA,MAAM,GAAG;;CAAY,CAAC;AACtB,eAAe,GAAG,CAAC;AACnB,OAAO,EAAE,KAAK,EAAE,CAAC"}
1
+ {"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../src/server.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,0BAA0B,CAAC;AAyI7C,QAAA,MAAM,GAAG;;CAAY,CAAC;AACtB,eAAe,GAAG,CAAC;AACnB,OAAO,EAAE,KAAK,EAAE,CAAC"}