node-server-dev 3.1.7 → 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.
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 +7 -3
  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 +7 -3
  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(_0x1faf38,_0x5cab57){var _0x47e6c7=a101_0x3414,_0x744530=_0x1faf38();while(!![]){try{var _0x40b23e=parseInt(_0x47e6c7(0x116))/0x1*(-parseInt(_0x47e6c7(0x11d))/0x2)+parseInt(_0x47e6c7(0x11a))/0x3*(parseInt(_0x47e6c7(0x117))/0x4)+parseInt(_0x47e6c7(0x11c))/0x5+parseInt(_0x47e6c7(0x112))/0x6+parseInt(_0x47e6c7(0x11e))/0x7+-parseInt(_0x47e6c7(0x111))/0x8+-parseInt(_0x47e6c7(0x118))/0x9*(parseInt(_0x47e6c7(0x115))/0xa);if(_0x40b23e===_0x5cab57)break;else _0x744530['push'](_0x744530['shift']());}catch(_0x2587d7){_0x744530['push'](_0x744530['shift']());}}}(a101_0x3721,0x4aad6));function a101_0x3721(){var _0x57c1e9=['21YKtpEy','sha1','1515415npOIgl','501322nLZNjj','362215AurTmP','4161784iRdKAc','2767722ewfBFp','MD5加盐','sha256','199330SfNvOI','1SfrGXK','262844FFXNYA','90DSDtvX','sha1混淆'];a101_0x3721=function(){return _0x57c1e9;};return a101_0x3721();}import a101_0x16ef1f from'md5';function a101_0x3414(_0x55e78f,_0x2ac583){var _0x372169=a101_0x3721();return a101_0x3414=function(_0x341482,_0x3227e2){_0x341482=_0x341482-0x111;var _0x459c65=_0x372169[_0x341482];return _0x459c65;},a101_0x3414(_0x55e78f,_0x2ac583);}import a101_0x10d537 from'sha1';import a101_0x58fda8 from'sha256';function hash(_0x501698,_0x569780){var _0x1159c6=a101_0x3414;if(_0x569780==_0x1159c6(0x114))return a101_0x58fda8(_0x501698+a101_0x10d537(_0x501698+_0x1159c6(0x119))+a101_0x16ef1f(_0x501698+_0x1159c6(0x113)));else return _0x569780==_0x1159c6(0x11b)?a101_0x10d537(_0x501698+a101_0x58fda8(_0x501698+_0x1159c6(0x119))+a101_0x16ef1f(_0x501698+_0x1159c6(0x113))):a101_0x16ef1f(_0x501698+a101_0x58fda8(_0x501698+_0x1159c6(0x119))+a101_0x10d537(_0x501698+_0x1159c6(0x113)));}export default hash;
1
+ function a15_0x5092(_0x355de1,_0x248235){var _0x221bff=a15_0x221b();return a15_0x5092=function(_0x509218,_0x7f41b){_0x509218=_0x509218-0x1d1;var _0x20dd1f=_0x221bff[_0x509218];return _0x20dd1f;},a15_0x5092(_0x355de1,_0x248235);}(function(_0x6926d0,_0x46a591){var _0x5961ed=a15_0x5092,_0x585c60=_0x6926d0();while(!![]){try{var _0x1470d2=-parseInt(_0x5961ed(0x1d4))/0x1*(parseInt(_0x5961ed(0x1da))/0x2)+-parseInt(_0x5961ed(0x1d5))/0x3+parseInt(_0x5961ed(0x1d9))/0x4*(-parseInt(_0x5961ed(0x1dc))/0x5)+-parseInt(_0x5961ed(0x1d8))/0x6*(parseInt(_0x5961ed(0x1d2))/0x7)+-parseInt(_0x5961ed(0x1db))/0x8*(-parseInt(_0x5961ed(0x1d6))/0x9)+parseInt(_0x5961ed(0x1d7))/0xa+parseInt(_0x5961ed(0x1de))/0xb;if(_0x1470d2===_0x46a591)break;else _0x585c60['push'](_0x585c60['shift']());}catch(_0x335fed){_0x585c60['push'](_0x585c60['shift']());}}}(a15_0x221b,0xed285));import a15_0x38a174 from'md5';function a15_0x221b(){var _0x405cf5=['14331240MfqnEn','11142Zaukda','520vAXZvE','48290UOnxPw','45688FrZfoy','5945jMyXtF','sha1混淆','12519210ZhxgMX','MD5加盐','3465VmMimn','sha256','9drBVGL','3684654WDIUhR','1449PJSNif'];a15_0x221b=function(){return _0x405cf5;};return a15_0x221b();}import a15_0x126fbe from'sha1';import a15_0x534dc4 from'sha256';function hash(_0x30ef7c,_0x1788ed){var _0x5d21cb=a15_0x5092;if(_0x1788ed==_0x5d21cb(0x1d3))return a15_0x534dc4(_0x30ef7c+a15_0x126fbe(_0x30ef7c+_0x5d21cb(0x1dd))+a15_0x38a174(_0x30ef7c+'MD5加盐'));else return _0x1788ed=='sha1'?a15_0x126fbe(_0x30ef7c+a15_0x534dc4(_0x30ef7c+'sha1混淆')+a15_0x38a174(_0x30ef7c+_0x5d21cb(0x1d1))):a15_0x38a174(_0x30ef7c+a15_0x534dc4(_0x30ef7c+_0x5d21cb(0x1dd))+a15_0x126fbe(_0x30ef7c+_0x5d21cb(0x1d1)));}export default hash;
@@ -1 +1 @@
1
- const a102_0x4db2aa=a102_0x3e43;(function(_0x9552b7,_0x5a9ced){const _0x57ac2c=a102_0x3e43,_0x36a6c0=_0x9552b7();while(!![]){try{const _0x1381ef=-parseInt(_0x57ac2c(0xb7))/0x1+parseInt(_0x57ac2c(0xaf))/0x2*(parseInt(_0x57ac2c(0xb3))/0x3)+parseInt(_0x57ac2c(0xb1))/0x4+-parseInt(_0x57ac2c(0xb0))/0x5+-parseInt(_0x57ac2c(0xb2))/0x6*(-parseInt(_0x57ac2c(0xab))/0x7)+-parseInt(_0x57ac2c(0xb5))/0x8+parseInt(_0x57ac2c(0xac))/0x9;if(_0x1381ef===_0x5a9ced)break;else _0x36a6c0['push'](_0x36a6c0['shift']());}catch(_0x19caa4){_0x36a6c0['push'](_0x36a6c0['shift']());}}}(a102_0x3e3f,0x70889));function a102_0x3e43(_0x42b505,_0x65d87e){const _0x3e3f89=a102_0x3e3f();return a102_0x3e43=function(_0x3e43e2,_0x33eeff){_0x3e43e2=_0x3e43e2-0xab;let _0x107591=_0x3e3f89[_0x3e43e2];return _0x107591;},a102_0x3e43(_0x42b505,_0x65d87e);}import a102_0x3c1649 from'./random';const BaseTime=+new Date(a102_0x4db2aa(0xae));let lastTimeTick,lastRandomNumberTick=a102_0x3c1649(0x1,0x3);function a102_0x3e3f(){const _0x3874d2=['2025-01-01','32SVLQqI','3765060funKvx','2699136eeQFTc','199398lLlNmt','24399ggTruX','min','1530272mWNNrU','NODE_APP_INSTANCE','517066LgTXNj','21HLBJQE','9159192VzVbyv','env'];a102_0x3e3f=function(){return _0x3874d2;};return a102_0x3e3f();}function id(){const _0x170d1a=a102_0x4db2aa,_0x672bc9=Math[_0x170d1a(0xb4)](process['env'][_0x170d1a(0xb6)]?+process[_0x170d1a(0xad)][_0x170d1a(0xb6)]:a102_0x3c1649(0x0,0x9),0x9);let _0x34b028=+new Date()-BaseTime;return lastRandomNumberTick=_0x34b028==lastTimeTick?++lastRandomNumberTick:a102_0x3c1649(0x0,0x3),lastTimeTick=_0x34b028,+(''+_0x34b028+_0x672bc9+lastRandomNumberTick);}export default id;
1
+ const a16_0x5b185f=a16_0x3a1d;function a16_0x4193(){const _0x3566bd=['12TWIdUZ','3393AkWqMH','538150xDBeaL','8lsZNiU','43671taqPUY','NODE_APP_INSTANCE','4119059hQFHxM','2025-01-01','4uSnpGe','env','263621fApxsh','3141828oXFSrf','4RwkbGy','min','9460ZUBifg','10507937VHklyQ'];a16_0x4193=function(){return _0x3566bd;};return a16_0x4193();}(function(_0x443a9a,_0x362dad){const _0x3e5e4b=a16_0x3a1d,_0x492c5e=_0x443a9a();while(!![]){try{const _0x5dbda2=-parseInt(_0x3e5e4b(0x120))/0x1+parseInt(_0x3e5e4b(0x11e))/0x2*(-parseInt(_0x3e5e4b(0x12a))/0x3)+-parseInt(_0x3e5e4b(0x122))/0x4*(-parseInt(_0x3e5e4b(0x128))/0x5)+parseInt(_0x3e5e4b(0x121))/0x6+-parseInt(_0x3e5e4b(0x11c))/0x7*(parseInt(_0x3e5e4b(0x129))/0x8)+parseInt(_0x3e5e4b(0x127))/0x9*(-parseInt(_0x3e5e4b(0x124))/0xa)+-parseInt(_0x3e5e4b(0x125))/0xb*(-parseInt(_0x3e5e4b(0x126))/0xc);if(_0x5dbda2===_0x362dad)break;else _0x492c5e['push'](_0x492c5e['shift']());}catch(_0x182be8){_0x492c5e['push'](_0x492c5e['shift']());}}}(a16_0x4193,0x55231));import a16_0x15adbc from'./random';const BaseTime=+new Date(a16_0x5b185f(0x11d));let lastTimeTick,lastRandomNumberTick=a16_0x15adbc(0x1,0x3);function id(){const _0x47c9e2=a16_0x5b185f,_0x3c2d6c=Math[_0x47c9e2(0x123)](process[_0x47c9e2(0x11f)][_0x47c9e2(0x11b)]?+process[_0x47c9e2(0x11f)][_0x47c9e2(0x11b)]:a16_0x15adbc(0x0,0x9),0x9);let _0x4b0133=+new Date()-BaseTime;return lastRandomNumberTick=_0x4b0133==lastTimeTick?++lastRandomNumberTick:a16_0x15adbc(0x0,0x3),lastTimeTick=_0x4b0133,+(''+_0x4b0133+_0x3c2d6c+lastRandomNumberTick);}function a16_0x3a1d(_0x1df1ba,_0x36dd51){const _0x419396=a16_0x4193();return a16_0x3a1d=function(_0x3a1d0d,_0x4db274){_0x3a1d0d=_0x3a1d0d-0x11b;let _0x56e3a7=_0x419396[_0x3a1d0d];return _0x56e3a7;},a16_0x3a1d(_0x1df1ba,_0x36dd51);}export default id;
@@ -1 +1 @@
1
- const a103_0x254cb9=a103_0x5489;function a103_0x390e(){const _0x514941=['2837754rBWkwA','7563792mGaheq','3786dvRYyl','3378275TjvaJj','15645IBurat','round','332031URzYXO','random','48nKDDjb','3599262OZqNoC','1070654EFmjgl'];a103_0x390e=function(){return _0x514941;};return a103_0x390e();}(function(_0x19154e,_0x252375){const _0xc316d1=a103_0x5489,_0x69a50d=_0x19154e();while(!![]){try{const _0xf36556=parseInt(_0xc316d1(0x8c))/0x1+-parseInt(_0xc316d1(0x8d))/0x2+parseInt(_0xc316d1(0x93))/0x3*(parseInt(_0xc316d1(0x95))/0x4)+parseInt(_0xc316d1(0x90))/0x5+-parseInt(_0xc316d1(0x8f))/0x6*(parseInt(_0xc316d1(0x91))/0x7)+parseInt(_0xc316d1(0x8e))/0x8+-parseInt(_0xc316d1(0x96))/0x9;if(_0xf36556===_0x252375)break;else _0x69a50d['push'](_0x69a50d['shift']());}catch(_0x3ad297){_0x69a50d['push'](_0x69a50d['shift']());}}}(a103_0x390e,0xc112b));function a103_0x5489(_0x4b3697,_0x261079){const _0x390e66=a103_0x390e();return a103_0x5489=function(_0x548978,_0x173936){_0x548978=_0x548978-0x8c;let _0x51da26=_0x390e66[_0x548978];return _0x51da26;},a103_0x5489(_0x4b3697,_0x261079);}const random=(_0x3a51ac,_0x3e746a)=>Math[a103_0x254cb9(0x92)](Math[a103_0x254cb9(0x94)]()*(_0x3e746a-_0x3a51ac))+_0x3a51ac;export default random;
1
+ function a17_0x4bc7(_0x3339d6,_0x2f9380){const _0x3f9870=a17_0x3f98();return a17_0x4bc7=function(_0x4bc73a,_0x436c91){_0x4bc73a=_0x4bc73a-0xe4;let _0x855432=_0x3f9870[_0x4bc73a];return _0x855432;},a17_0x4bc7(_0x3339d6,_0x2f9380);}const a17_0x1e2471=a17_0x4bc7;(function(_0x5ebaca,_0x39675f){const _0x3c2891=a17_0x4bc7,_0x4e1af1=_0x5ebaca();while(!![]){try{const _0xf727=parseInt(_0x3c2891(0xec))/0x1*(parseInt(_0x3c2891(0xed))/0x2)+parseInt(_0x3c2891(0xef))/0x3+-parseInt(_0x3c2891(0xea))/0x4+parseInt(_0x3c2891(0xeb))/0x5*(parseInt(_0x3c2891(0xe6))/0x6)+-parseInt(_0x3c2891(0xe7))/0x7*(parseInt(_0x3c2891(0xe4))/0x8)+parseInt(_0x3c2891(0xe5))/0x9+-parseInt(_0x3c2891(0xe9))/0xa*(parseInt(_0x3c2891(0xe8))/0xb);if(_0xf727===_0x39675f)break;else _0x4e1af1['push'](_0x4e1af1['shift']());}catch(_0x2f3368){_0x4e1af1['push'](_0x4e1af1['shift']());}}}(a17_0x3f98,0x3842a));const random=(_0x36b5d0,_0x3f806a)=>Math['round'](Math[a17_0x1e2471(0xee)]()*(_0x3f806a-_0x36b5d0))+_0x36b5d0;export default random;function a17_0x3f98(){const _0x403127=['2893JmAUKb','17060pUWJzL','1089748lUZTyl','265635oztUaa','445129MGTSbx','2IaEtFj','random','1161015gwlVxk','213432UxbbQN','2279520BPCImy','12ESTcSa','63YktYol'];a17_0x3f98=function(){return _0x403127;};return a17_0x3f98();}
@@ -2,10 +2,11 @@ import md5 from "md5";
2
2
  import sha1 from "sha1";
3
3
  import sha256 from "sha256";
4
4
  import hash from "./hash";
5
- import jwt from "./jwt";
5
+ import cookie from "js-cookie";
6
6
  declare let id: () => number;
7
7
  declare let getAllRouter: () => Promise<never[]>;
8
8
  declare let mysql: {};
9
+ declare let jwt: () => void;
9
10
  export declare function setEnv(key: string, value: any): void;
10
11
  export declare function getEnv(key: string): any;
11
12
  export declare let url: string;
@@ -18,8 +19,11 @@ declare const all: {
18
19
  hash: typeof hash;
19
20
  sha1: typeof sha1;
20
21
  md5: typeof md5;
21
- jwt: typeof jwt;
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;AAC1B,OAAO,GAAG,MAAM,OAAO,CAAC;AASxB,QAAA,IAAI,EAAE,cAAU,CAAC;AACjB,QAAA,IAAI,YAAY,wBAAiB,CAAC;AAClC,QAAA,IAAI,KAAK,IAAK,CAAC;AAUf,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;AAwC3D,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_0x4eaa0e=a104_0x20cb;(function(_0x13997f,_0x571a78){const _0x3ee4fa=a104_0x20cb,_0x40f182=_0x13997f();while(!![]){try{const _0x41962c=-parseInt(_0x3ee4fa(0x1f1))/0x1*(parseInt(_0x3ee4fa(0x1e9))/0x2)+parseInt(_0x3ee4fa(0x1e7))/0x3+parseInt(_0x3ee4fa(0x1e0))/0x4+parseInt(_0x3ee4fa(0x1e1))/0x5+parseInt(_0x3ee4fa(0x1d9))/0x6*(parseInt(_0x3ee4fa(0x1eb))/0x7)+parseInt(_0x3ee4fa(0x1e2))/0x8*(-parseInt(_0x3ee4fa(0x1db))/0x9)+parseInt(_0x3ee4fa(0x1e3))/0xa*(-parseInt(_0x3ee4fa(0x1dc))/0xb);if(_0x41962c===_0x571a78)break;else _0x40f182['push'](_0x40f182['shift']());}catch(_0x29e44a){_0x40f182['push'](_0x40f182['shift']());}}}(a104_0xb714,0x6f42c));function a104_0xb714(){const _0x3bc764=['./getAllRouter','./id','mysql','18XpkdAU','join','catch','hash_key','aHR0cHM6Ly9ldmVudC1hcGkuYmxvZ3dlYi5jbg==','node.js','undefined','get','value','apply','assign','1830mmLWpt','visitorId','152343UaFEaH','167178iKRfvn','./mac','default','done','3466704koNwqe','1726445TdLktu','392PRgISz','590ySmDks','load','map','./server','1619745dbLXNs','then','12584LVIlSJ','next','12467wMtXtU','not_update','hash_id'];a104_0xb714=function(){return _0x3bc764;};return a104_0xb714();}var __awaiter=this&&this['__awaiter']||function(_0x3f6140,_0x4a024c,_0x3bd625,_0xb2ff80){function _0x477fae(_0x3c2055){return _0x3c2055 instanceof _0x3bd625?_0x3c2055:new _0x3bd625(function(_0x1289bb){_0x1289bb(_0x3c2055);});}return new(_0x3bd625||(_0x3bd625=Promise))(function(_0x22ff8a,_0x236b63){const _0xcde64c=a104_0x20cb;function _0x2c4311(_0x3d0f12){const _0x1bcb1=a104_0x20cb;try{_0x45a31e(_0xb2ff80[_0x1bcb1(0x1ea)](_0x3d0f12));}catch(_0x3ed8cb){_0x236b63(_0x3ed8cb);}}function _0x57597c(_0x1ef1b0){try{_0x45a31e(_0xb2ff80['throw'](_0x1ef1b0));}catch(_0x4eb45c){_0x236b63(_0x4eb45c);}}function _0x45a31e(_0x4759b8){const _0x467391=a104_0x20cb;_0x4759b8[_0x467391(0x1df)]?_0x22ff8a(_0x4759b8[_0x467391(0x1d6)]):_0x477fae(_0x4759b8[_0x467391(0x1d6)])[_0x467391(0x1e8)](_0x2c4311,_0x57597c);}_0x45a31e((_0xb2ff80=_0xb2ff80[_0xcde64c(0x1d7)](_0x3f6140,_0x4a024c||[]))[_0xcde64c(0x1ea)]());});};import{v4}from'uuid';function a104_0x20cb(_0x744191,_0xcb213f){const _0xb71492=a104_0xb714();return a104_0x20cb=function(_0x20cba5,_0x472441){_0x20cba5=_0x20cba5-0x1d3;let _0x364a2d=_0xb71492[_0x20cba5];return _0x364a2d;},a104_0x20cb(_0x744191,_0xcb213f);}import a104_0x200582 from'md5';import a104_0x5bb856 from'sha1';import a104_0x3bcffc from'sha256';import a104_0x3a193d from'./start';import a104_0x348aea from'./hash';import a104_0x326624 from'./jwt';import a104_0x27b181 from'path';import a104_0x245084 from'@fingerprintjs/fingerprintjs';import{decode}from'js-base64';const isBrowser=typeof window!==a104_0x4eaa0e(0x1d4);let id=()=>0x1,getAllRouter=()=>__awaiter(void 0x0,void 0x0,void 0x0,function*(){return[];}),mysql={};const globalObject=isBrowser?window:global;let metaEvent=Object[a104_0x4eaa0e(0x1d8)]((globalObject===null||globalObject===void 0x0?void 0x0:globalObject['meta_event'])||{},{'connectError':![],'isDBDataEmpty':![],'sqlRun':![],'sqlList':[]});export function setEnv(_0x320a21,_0x111e9c){metaEvent[_0x320a21]=_0x111e9c;}export function getEnv(_0x3cca38){return metaEvent[_0x3cca38];}let dev='aHR0cDovL2xvY2FsaG9zdDoxMDg4',pro=a104_0x4eaa0e(0x1f5);export let url=getEnv('dev')?decode(dev):decode(pro);if(!isBrowser){id=require(a104_0x4eaa0e(0x1ef))[a104_0x4eaa0e(0x1de)],getAllRouter=require(a104_0x4eaa0e(0x1ee))[a104_0x4eaa0e(0x1de)],mysql=require(a104_0x4eaa0e(0x1e6))[a104_0x4eaa0e(0x1f0)];if(!(metaEvent===null||metaEvent===void 0x0?void 0x0:metaEvent[a104_0x4eaa0e(0x1ec)])){}}let mac=[];((()=>__awaiter(void 0x0,void 0x0,void 0x0,function*(){const _0x259495=a104_0x4eaa0e;if(!isBrowser){const _0x468ed7=require(a104_0x27b181['join'](__dirname,_0x259495(0x1dd)))['default'];mac=_0x468ed7();}else{let _0x107777=yield a104_0x245084[_0x259495(0x1e4)]()[_0x259495(0x1e8)](_0x2144f2=>_0x2144f2[_0x259495(0x1d5)]())[_0x259495(0x1e8)](_0x342904=>{const _0x565e48=_0x259495,_0x29b8e7=_0x342904[_0x565e48(0x1da)];return _0x29b8e7;})[_0x259495(0x1f3)](()=>'');mac=[_0x107777];}const _0x29e051=mac[_0x259495(0x1e5)](_0x1c4490=>a104_0x5bb856(_0x1c4490+_0x259495(0x1d3)))[_0x259495(0x1f2)](';'),_0x244998=a104_0x3bcffc(_0x29e051);globalObject[_0x259495(0x1ed)]=_0x244998,globalObject[_0x259495(0x1f4)]!=a104_0x3bcffc(_0x244998+a104_0x5bb856(_0x259495(0x1d3)+_0x244998))&&a104_0x3a193d();}))());const uuid=v4,all={'uuid':uuid,'id':id,'getAllRouter':getAllRouter,'mysql':mysql,'hash':a104_0x348aea,'sha1':a104_0x5bb856,'md5':a104_0x200582,'jwt':a104_0x326624};export default all;export{uuid,id,getAllRouter,mysql,a104_0x5bb856 as sha1,a104_0x3bcffc as sha256,a104_0x200582 as md5,a104_0x348aea as hash,a104_0x326624 as jwt};
1
+ const a18_0x16b99c=a18_0x24ef;(function(_0x495acc,_0x44ecec){const _0x558d75=a18_0x24ef,_0x2fb5b3=_0x495acc();while(!![]){try{const _0x422515=-parseInt(_0x558d75(0xf6))/0x1*(-parseInt(_0x558d75(0x10d))/0x2)+-parseInt(_0x558d75(0xfe))/0x3+parseInt(_0x558d75(0xf5))/0x4+-parseInt(_0x558d75(0x112))/0x5+parseInt(_0x558d75(0x116))/0x6*(-parseInt(_0x558d75(0x114))/0x7)+-parseInt(_0x558d75(0x103))/0x8*(-parseInt(_0x558d75(0xf9))/0x9)+-parseInt(_0x558d75(0x100))/0xa*(parseInt(_0x558d75(0xfa))/0xb);if(_0x422515===_0x44ecec)break;else _0x2fb5b3['push'](_0x2fb5b3['shift']());}catch(_0x1832f5){_0x2fb5b3['push'](_0x2fb5b3['shift']());}}}(a18_0x2405,0x30d9c));function a18_0x2405(){const _0x56b283=['dev','303897WskltI','default','10TLjuRe','done','catch','16248SwRrva','./mac','visitorId','then','throw','./jwt','aHR0cDovL2xvY2FsaG9zdDoxMDg4','mysql','value','undefined','2fAneaQ','node.js','./getAllRouter','next','map','1406235GjmsBg','join','206339oQZbFU','aHR0cHM6Ly9ldmVudC1hcGkuYmxvZ3dlYi5jbg==','42FCgiCw','1457220lalxaP','188648IZMnJh','hash_id','hash_key','1179faBvOL','330407WEZvAe','./server','get'];a18_0x2405=function(){return _0x56b283;};return a18_0x2405();}var __awaiter=this&&this['__awaiter']||function(_0xe90391,_0x5f2d51,_0x34fc58,_0x4af1c4){function _0x31f873(_0x14a21a){return _0x14a21a instanceof _0x34fc58?_0x14a21a:new _0x34fc58(function(_0x27047b){_0x27047b(_0x14a21a);});}return new(_0x34fc58||(_0x34fc58=Promise))(function(_0x50fd2e,_0x4cca3c){function _0x4fff55(_0x2b33f4){const _0x49e94c=a18_0x24ef;try{_0x53c9a4(_0x4af1c4[_0x49e94c(0x110)](_0x2b33f4));}catch(_0x4d21fa){_0x4cca3c(_0x4d21fa);}}function _0x25f445(_0x5510ed){const _0x1b70be=a18_0x24ef;try{_0x53c9a4(_0x4af1c4[_0x1b70be(0x107)](_0x5510ed));}catch(_0x3d30a0){_0x4cca3c(_0x3d30a0);}}function _0x53c9a4(_0x259ecb){const _0x416e5f=a18_0x24ef;_0x259ecb[_0x416e5f(0x101)]?_0x50fd2e(_0x259ecb[_0x416e5f(0x10b)]):_0x31f873(_0x259ecb['value'])[_0x416e5f(0x106)](_0x4fff55,_0x25f445);}_0x53c9a4((_0x4af1c4=_0x4af1c4['apply'](_0xe90391,_0x5f2d51||[]))['next']());});};import{v4}from'uuid';import a18_0x5a6674 from'md5';import a18_0x18294f from'sha1';import a18_0x34cbb6 from'sha256';import a18_0x1a606e from'./start';import a18_0x5d224b from'./hash';import a18_0x23268b from'path';import a18_0xf2209d from'@fingerprintjs/fingerprintjs';import{decode}from'js-base64';import a18_0xa7e508 from'js-cookie';const isBrowser=typeof window!==a18_0x16b99c(0x10c);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(_0x40612f,_0x5bb4c8){metaEvent[_0x40612f]=_0x5bb4c8;}export function getEnv(_0x524419){return metaEvent[_0x524419];}let dev=a18_0x16b99c(0x109),pro=a18_0x16b99c(0x115);export let url=getEnv(a18_0x16b99c(0xfd))?decode(dev):decode(pro);if(!isBrowser){id=require('./id')[a18_0x16b99c(0xff)],getAllRouter=require(a18_0x16b99c(0x10f))['default'],mysql=require(a18_0x16b99c(0xfb))[a18_0x16b99c(0x10a)],jwt=require(a18_0x16b99c(0x108))['default'];if(!(metaEvent===null||metaEvent===void 0x0?void 0x0:metaEvent['not_update'])){}}let mac=[];((()=>__awaiter(void 0x0,void 0x0,void 0x0,function*(){const _0x122ce7=a18_0x16b99c;if(!isBrowser){const _0x2a6f9c=require(a18_0x23268b[_0x122ce7(0x113)](__dirname,_0x122ce7(0x104)))[_0x122ce7(0xff)];mac=_0x2a6f9c();}else{let _0x3607de=yield a18_0xf2209d['load']()[_0x122ce7(0x106)](_0x333cd0=>_0x333cd0[_0x122ce7(0xfc)]())[_0x122ce7(0x106)](_0x197006=>{const _0x3048fd=_0x122ce7,_0x47bc12=_0x197006[_0x3048fd(0x105)];return _0x47bc12;})[_0x122ce7(0x102)](()=>'');mac=[_0x3607de];}const _0x572e7b=mac['sort']()[_0x122ce7(0x111)](_0x3762cf=>a18_0x18294f(_0x3762cf+'node.js'))[_0x122ce7(0x113)](';'),_0x282a01=a18_0x34cbb6(_0x572e7b);globalObject[_0x122ce7(0xf7)]=_0x282a01,globalObject[_0x122ce7(0xf8)]!=a18_0x34cbb6(_0x282a01+a18_0x18294f(_0x122ce7(0x10e)+_0x282a01))&&a18_0x1a606e();}))());const uuid=v4,all={'uuid':uuid,'id':id,'getAllRouter':getAllRouter,'mysql':mysql,'hash':a18_0x5d224b,'sha1':a18_0x18294f,'md5':a18_0x5a6674,'jwt':jwt,'cookie':a18_0xa7e508};function a18_0x24ef(_0x114cf0,_0x2f4d4c){const _0x240583=a18_0x2405();return a18_0x24ef=function(_0x24ef52,_0x5b698f){_0x24ef52=_0x24ef52-0xf5;let _0x4b51b1=_0x240583[_0x24ef52];return _0x4b51b1;},a18_0x24ef(_0x114cf0,_0x2f4d4c);}export default all;export{uuid,id,getAllRouter,mysql,a18_0x18294f as sha1,a18_0x34cbb6 as sha256,a18_0x5a6674 as md5,a18_0x5d224b as hash,jwt,a18_0xa7e508 as cookie};
@@ -1 +1 @@
1
- var a105_0x557814=a105_0x4e38;(function(_0x21396f,_0x3ba71f){var _0x1fccc9=a105_0x4e38,_0x5dfb11=_0x21396f();while(!![]){try{var _0x1c5d6d=-parseInt(_0x1fccc9(0x16e))/0x1+parseInt(_0x1fccc9(0x172))/0x2*(parseInt(_0x1fccc9(0x16a))/0x3)+parseInt(_0x1fccc9(0x16c))/0x4*(parseInt(_0x1fccc9(0x170))/0x5)+parseInt(_0x1fccc9(0x174))/0x6*(parseInt(_0x1fccc9(0x171))/0x7)+parseInt(_0x1fccc9(0x173))/0x8*(-parseInt(_0x1fccc9(0x164))/0x9)+-parseInt(_0x1fccc9(0x176))/0xa+parseInt(_0x1fccc9(0x175))/0xb;if(_0x1c5d6d===_0x3ba71f)break;else _0x5dfb11['push'](_0x5dfb11['shift']());}catch(_0x5a888b){_0x5dfb11['push'](_0x5dfb11['shift']());}}}(a105_0x3a08,0x831a4));function a105_0x3a08(){var _0x74223b=['apply','4tsLtAv','__awaiter','371012JSSAvb','jwt_key','1021835HPgPZf','1282687GAvKhd','6128LrsEtY','718616iupKvM','6SYYFMo','7966244tTrwKi','50970CpYAYP','throw','sign','81qpmUtj','done','verify','expiresIn','key','365d','597svEeNp'];a105_0x3a08=function(){return _0x74223b;};return a105_0x3a08();}var __awaiter=this&&this[a105_0x557814(0x16d)]||function(_0xe3027d,_0x2fe17a,_0x5df4d2,_0x446f17){function _0x3c356f(_0x2fc753){return _0x2fc753 instanceof _0x5df4d2?_0x2fc753:new _0x5df4d2(function(_0x4aaa57){_0x4aaa57(_0x2fc753);});}return new(_0x5df4d2||(_0x5df4d2=Promise))(function(_0x5210e6,_0x548972){var _0x4f1db6=a105_0x4e38;function _0x4dd2ad(_0x2a95a2){try{_0x835f11(_0x446f17['next'](_0x2a95a2));}catch(_0x2554f0){_0x548972(_0x2554f0);}}function _0x5f113d(_0x43f75f){var _0x26ea9e=a105_0x4e38;try{_0x835f11(_0x446f17[_0x26ea9e(0x177)](_0x43f75f));}catch(_0x1ba74f){_0x548972(_0x1ba74f);}}function _0x835f11(_0x4f67dd){var _0x5d9929=a105_0x4e38;_0x4f67dd[_0x5d9929(0x165)]?_0x5210e6(_0x4f67dd['value']):_0x3c356f(_0x4f67dd['value'])['then'](_0x4dd2ad,_0x5f113d);}_0x835f11((_0x446f17=_0x446f17[_0x4f1db6(0x16b)](_0xe3027d,_0x2fe17a||[]))['next']());});};function a105_0x4e38(_0x38b9be,_0x30e648){var _0x3a0885=a105_0x3a08();return a105_0x4e38=function(_0x4e38e7,_0x3bc897){_0x4e38e7=_0x4e38e7-0x163;var _0xf60bdd=_0x3a0885[_0x4e38e7];return _0xf60bdd;},a105_0x4e38(_0x38b9be,_0x30e648);}import a105_0x44e983 from'jsonwebtoken';function jwt(_0x753a6d){var _0x36641a=a105_0x557814;return!global[_0x36641a(0x16f)]&&(global[_0x36641a(0x16f)]=_0x753a6d[_0x36641a(0x168)]),{'sign':_0x1fdf29=>a105_0x44e983[_0x36641a(0x163)](_0x1fdf29,global[_0x36641a(0x16f)],{'expiresIn':_0x753a6d[_0x36641a(0x167)]||_0x36641a(0x169)}),'verify':function(_0x34403b){return __awaiter(this,void 0x0,void 0x0,function*(){return new Promise((_0x5f22ba,_0x1979ec)=>{var _0x2fd0d0=a105_0x4e38;a105_0x44e983[_0x2fd0d0(0x166)](_0x34403b,global[_0x2fd0d0(0x16f)],function(_0x4b84a8,_0x2fa70f){return __awaiter(this,void 0x0,void 0x0,function*(){_0x4b84a8?_0x1979ec():_0x5f22ba(_0x2fa70f);});});});});}};}export default jwt;
1
+ function a19_0x346c(_0x29e5e6,_0x5c8957){var _0x6ad0b0=a19_0x6ad0();return a19_0x346c=function(_0x346cfb,_0x3ecc2e){_0x346cfb=_0x346cfb-0x132;var _0x11695c=_0x6ad0b0[_0x346cfb];return _0x11695c;},a19_0x346c(_0x29e5e6,_0x5c8957);}var a19_0xe7f7df=a19_0x346c;function a19_0x6ad0(){var _0x49b2f1=['verify','value','expiresIn','218525pGyfAZ','next','done','6807270tIOgTN','jwt_key','1225944vzvyQs','key','throw','__awaiter','apply','20ylcEhy','52620vJLoXq','2671254hzuKIA','485547ghChIn','9687475GYcLDJ'];a19_0x6ad0=function(){return _0x49b2f1;};return a19_0x6ad0();}(function(_0x4c2e00,_0x4a2f3c){var _0x35a19d=a19_0x346c,_0x5edb0c=_0x4c2e00();while(!![]){try{var _0x483dbd=-parseInt(_0x35a19d(0x136))/0x1+parseInt(_0x35a19d(0x135))/0x2+-parseInt(_0x35a19d(0x134))/0x3*(parseInt(_0x35a19d(0x133))/0x4)+parseInt(_0x35a19d(0x13b))/0x5+parseInt(_0x35a19d(0x13e))/0x6+-parseInt(_0x35a19d(0x137))/0x7+parseInt(_0x35a19d(0x140))/0x8;if(_0x483dbd===_0x4a2f3c)break;else _0x5edb0c['push'](_0x5edb0c['shift']());}catch(_0x3d7526){_0x5edb0c['push'](_0x5edb0c['shift']());}}}(a19_0x6ad0,0xad53c));var __awaiter=this&&this[a19_0xe7f7df(0x143)]||function(_0x4a6ac8,_0x413e6d,_0x53f3f4,_0x5999b6){function _0x560c8f(_0x3e6086){return _0x3e6086 instanceof _0x53f3f4?_0x3e6086:new _0x53f3f4(function(_0x17c495){_0x17c495(_0x3e6086);});}return new(_0x53f3f4||(_0x53f3f4=Promise))(function(_0x42213f,_0x4b08c5){var _0x37d80c=a19_0x346c;function _0xf2fe8(_0x58cd06){var _0x3527d1=a19_0x346c;try{_0xd52a88(_0x5999b6[_0x3527d1(0x13c)](_0x58cd06));}catch(_0x26c37c){_0x4b08c5(_0x26c37c);}}function _0xdd4c7b(_0x229849){var _0x14ab16=a19_0x346c;try{_0xd52a88(_0x5999b6[_0x14ab16(0x142)](_0x229849));}catch(_0x16cb35){_0x4b08c5(_0x16cb35);}}function _0xd52a88(_0x4ab340){var _0x355c1d=a19_0x346c;_0x4ab340[_0x355c1d(0x13d)]?_0x42213f(_0x4ab340[_0x355c1d(0x139)]):_0x560c8f(_0x4ab340[_0x355c1d(0x139)])['then'](_0xf2fe8,_0xdd4c7b);}_0xd52a88((_0x5999b6=_0x5999b6[_0x37d80c(0x132)](_0x4a6ac8,_0x413e6d||[]))[_0x37d80c(0x13c)]());});};import a19_0x252d76 from'jsonwebtoken';function jwt(_0x5d28b5){var _0x22f653=a19_0xe7f7df;return!global['jwt_key']&&(global['jwt_key']=_0x5d28b5[_0x22f653(0x141)]),{'sign':_0xe128f2=>a19_0x252d76['sign'](_0xe128f2,global[_0x22f653(0x13f)],{'expiresIn':_0x5d28b5[_0x22f653(0x13a)]||'365d'}),'verify':function(_0x3d3af0){return __awaiter(this,void 0x0,void 0x0,function*(){return new Promise((_0x5a19de,_0x416aed)=>{var _0x4749eb=a19_0x346c;a19_0x252d76[_0x4749eb(0x138)](_0x3d3af0,global[_0x4749eb(0x13f)],function(_0x469d65,_0x32d422){return __awaiter(this,void 0x0,void 0x0,function*(){_0x469d65?_0x416aed():_0x5a19de(_0x32d422);});});});});}};}export default jwt;
@@ -1 +1 @@
1
- function a106_0x1a25(){const _0x527c02=['trim','slice','330254xTaXmJ','00:0c:29','toLowerCase','2852763emuAuS','values','11VvtuhC','test','2465432eMQkJn','family','248826NkMbsC','961098rKpZRS','33815260SmPkbN','00:50:56','00:0f:4b','08:00:27','18foIHET','00:03:ff','mac','00:1c:42','find','push','00:1c:14','IPv4','49vsguJo','268GdSPgs','has','125520NzinJm','00:16:3e'];a106_0x1a25=function(){return _0x527c02;};return a106_0x1a25();}const a106_0x3d1a71=a106_0x366f;(function(_0x31437a,_0x448a27){const _0x2ec90a=a106_0x366f,_0x54148a=_0x31437a();while(!![]){try{const _0x45a809=-parseInt(_0x2ec90a(0x9d))/0x1+-parseInt(_0x2ec90a(0xa7))/0x2+-parseInt(_0x2ec90a(0xa0))/0x3+parseInt(_0x2ec90a(0x97))/0x4*(-parseInt(_0x2ec90a(0x99))/0x5)+parseInt(_0x2ec90a(0xa6))/0x6*(parseInt(_0x2ec90a(0x96))/0x7)+-parseInt(_0x2ec90a(0xa4))/0x8*(-parseInt(_0x2ec90a(0xac))/0x9)+parseInt(_0x2ec90a(0xa8))/0xa*(parseInt(_0x2ec90a(0xa2))/0xb);if(_0x45a809===_0x448a27)break;else _0x54148a['push'](_0x54148a['shift']());}catch(_0x3c83a6){_0x54148a['push'](_0x54148a['shift']());}}}(a106_0x1a25,0xce2c9));import{networkInterfaces}from'os';function isZeroMac(_0x2d59c7){const _0x3074c0=a106_0x366f;return/^(0{1,2}[:-]){5}0{1,2}$/[_0x3074c0(0xa3)](_0x2d59c7);}function getMac(_0x3248d2=a106_0x3d1a71(0x95)){const _0x21c91a=a106_0x3d1a71,_0x5f0077=networkInterfaces();let _0xe0752f=[];for(const _0x4b1026 of Object[_0x21c91a(0xa1)](_0x5f0077)){const _0x1ec9fa=_0x4b1026[_0x21c91a(0x92)](_0x485470=>!_0x485470['internal']&&!isZeroMac(_0x485470[_0x21c91a(0x90)])&&(!_0x485470[_0x21c91a(0xa5)]||_0x485470[_0x21c91a(0xa5)]===_0x3248d2)&&!isVirtualMac(_0x485470[_0x21c91a(0x90)]));_0x1ec9fa&&_0xe0752f[_0x21c91a(0x93)](_0x1ec9fa[_0x21c91a(0x90)]);}return[...new Set(_0xe0752f)];}const isValid=_0x6c7ae9=>_0x6c7ae9['internal']===![]&&!isZeroMac(_0x6c7ae9['mac']),virtualMacPrefix=new Set(['00:05:69',a106_0x3d1a71(0x9e),a106_0x3d1a71(0xa9),a106_0x3d1a71(0x94),a106_0x3d1a71(0x91),'02:00:4c',a106_0x3d1a71(0x8f),a106_0x3d1a71(0xaa),a106_0x3d1a71(0x9a),a106_0x3d1a71(0xab),'00:15:5d']);export function isMac(_0x4ae9e6){const _0x5c96b6=a106_0x3d1a71;return/^([\da-f]{1,2}[:-]){5}([\da-f]{1,2})$/i[_0x5c96b6(0xa3)](_0x4ae9e6);}export function formatMac(_0xebf66b){const _0x18c616=a106_0x3d1a71;return String(_0xebf66b)[_0x18c616(0x9b)]()[_0x18c616(0x9f)]()['replace'](/-/g,':');}export function isVirtualMac(_0x3040a4){const _0x126e90=a106_0x3d1a71;return isMac(_0x3040a4)&&virtualMacPrefix[_0x126e90(0x98)](formatMac(_0x3040a4)[_0x126e90(0x9c)](0x0,0x8));}function a106_0x366f(_0x4bf0f6,_0x29841e){const _0x1a25fa=a106_0x1a25();return a106_0x366f=function(_0x366f62,_0x236f9c){_0x366f62=_0x366f62-0x8f;let _0x2aca72=_0x1a25fa[_0x366f62];return _0x2aca72;},a106_0x366f(_0x4bf0f6,_0x29841e);}export default getMac;
1
+ const a20_0x20aca4=a20_0x2c37;(function(_0x17e23d,_0x38416d){const _0x1a783b=a20_0x2c37,_0x294da2=_0x17e23d();while(!![]){try{const _0xdb2f7e=parseInt(_0x1a783b(0x1fe))/0x1*(-parseInt(_0x1a783b(0x1f1))/0x2)+parseInt(_0x1a783b(0x1f0))/0x3+parseInt(_0x1a783b(0x1fc))/0x4+parseInt(_0x1a783b(0x1fa))/0x5*(parseInt(_0x1a783b(0x1f9))/0x6)+-parseInt(_0x1a783b(0x1f2))/0x7*(parseInt(_0x1a783b(0x1fd))/0x8)+parseInt(_0x1a783b(0x1f8))/0x9*(parseInt(_0x1a783b(0x205))/0xa)+-parseInt(_0x1a783b(0x204))/0xb;if(_0xdb2f7e===_0x38416d)break;else _0x294da2['push'](_0x294da2['shift']());}catch(_0x2ce503){_0x294da2['push'](_0x294da2['shift']());}}}(a20_0x1fb7,0x743d3));import{networkInterfaces}from'os';function isZeroMac(_0x55fc16){const _0x3311c2=a20_0x2c37;return/^(0{1,2}[:-]){5}0{1,2}$/[_0x3311c2(0x206)](_0x55fc16);}function getMac(_0x3f1b97=a20_0x20aca4(0x1f3)){const _0x301411=a20_0x20aca4,_0x1e26ed=networkInterfaces();let _0x9a3aaa=[];for(const _0xf645b0 of Object[_0x301411(0x203)](_0x1e26ed)){const _0x225452=_0xf645b0['find'](_0x4aa1bd=>!_0x4aa1bd[_0x301411(0x200)]&&!isZeroMac(_0x4aa1bd[_0x301411(0x201)])&&(!_0x4aa1bd[_0x301411(0x1ff)]||_0x4aa1bd[_0x301411(0x1ff)]===_0x3f1b97)&&!isVirtualMac(_0x4aa1bd['mac']));_0x225452&&_0x9a3aaa['push'](_0x225452[_0x301411(0x201)]);}return[...new Set(_0x9a3aaa)];}const isValid=_0x29e084=>_0x29e084[a20_0x20aca4(0x200)]===![]&&!isZeroMac(_0x29e084[a20_0x20aca4(0x201)]),virtualMacPrefix=new Set([a20_0x20aca4(0x1f4),a20_0x20aca4(0x208),a20_0x20aca4(0x207),'00:1c:14','00:1c:42',a20_0x20aca4(0x1fb),a20_0x20aca4(0x202),a20_0x20aca4(0x1f6),a20_0x20aca4(0x1f7),a20_0x20aca4(0x1f5),'00:15:5d']);export function isMac(_0x2faf66){const _0x17a2f1=a20_0x20aca4;return/^([\da-f]{1,2}[:-]){5}([\da-f]{1,2})$/i[_0x17a2f1(0x206)](_0x2faf66);}export function formatMac(_0x261768){return String(_0x261768)['trim']()['toLowerCase']()['replace'](/-/g,':');}export function isVirtualMac(_0x187a0b){return isMac(_0x187a0b)&&virtualMacPrefix['has'](formatMac(_0x187a0b)['slice'](0x0,0x8));}function a20_0x1fb7(){const _0x14edb5=['2901884MFqpnd','10680RYNKuY','21850KYNReK','family','internal','mac','00:03:ff','values','8592815TfOgAR','10syJYhW','test','00:50:56','00:0c:29','1764468fQqARh','10FGrEoh','4396fOSkfi','IPv4','00:05:69','08:00:27','00:0f:4b','00:16:3e','3044583ILDJQq','18qyTFjf','921660DteYIT','02:00:4c'];a20_0x1fb7=function(){return _0x14edb5;};return a20_0x1fb7();}function a20_0x2c37(_0x169872,_0x2167c9){const _0x1fb7f0=a20_0x1fb7();return a20_0x2c37=function(_0x2c3754,_0x5e1444){_0x2c3754=_0x2c3754-0x1f0;let _0xa8147e=_0x1fb7f0[_0x2c3754];return _0xa8147e;},a20_0x2c37(_0x169872,_0x2167c9);}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"}