@anncic-api/core 1.0.0 → 1.0.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.
@@ -0,0 +1 @@
1
+ export declare function fileMd5(path: string): Promise<string>;
@@ -0,0 +1 @@
1
+ 'use strict';const a8_0xb6245a=a8_0x3e37;(function(_0x15c869,_0x3bf98e){const _0x3fc6c8=a8_0x3e37,_0x49b2be=_0x15c869();while(!![]){try{const _0xc4500c=parseInt(_0x3fc6c8(0x1df))/0x1*(parseInt(_0x3fc6c8(0x1e5))/0x2)+parseInt(_0x3fc6c8(0x1e4))/0x3+-parseInt(_0x3fc6c8(0x1ef))/0x4+parseInt(_0x3fc6c8(0x1e0))/0x5*(parseInt(_0x3fc6c8(0x1e1))/0x6)+parseInt(_0x3fc6c8(0x1ed))/0x7+parseInt(_0x3fc6c8(0x1e7))/0x8+-parseInt(_0x3fc6c8(0x1f2))/0x9;if(_0xc4500c===_0x3bf98e)break;else _0x49b2be['push'](_0x49b2be['shift']());}catch(_0x2697ec){_0x49b2be['push'](_0x49b2be['shift']());}}}(a8_0x184b,0xca3b9));Object['defineProperty'](exports,a8_0xb6245a(0x1ea),{'value':!![]}),exports[a8_0xb6245a(0x1e2)]=void 0x0;const fs=require('fs'),crypto=require('crypto');function fileMd5(_0x170ac1){return new Promise((_0x227ca5,_0x18d931)=>{const _0x4de051=a8_0x3e37;fs[_0x4de051(0x1f1)](_0x170ac1,(_0x444334,_0x3758de)=>{const _0x4b8c7e=_0x4de051;if(_0x444334)return _0x18d931(_0x444334);if(!_0x3758de[_0x4b8c7e(0x1ec)]())return _0x18d931(new Error(_0x170ac1+_0x4b8c7e(0x1ee)));const _0x488958=crypto[_0x4b8c7e(0x1e6)]('md5'),_0x4b19a5=fs[_0x4b8c7e(0x1e9)](_0x170ac1);_0x4b19a5['on'](_0x4b8c7e(0x1e3),_0x488958[_0x4b8c7e(0x1e8)]['bind'](_0x488958)),_0x4b19a5['on']('error',_0x2a4e3c=>_0x18d931(_0x2a4e3c)),_0x4b19a5['on']('end',()=>_0x227ca5(_0x488958[_0x4b8c7e(0x1eb)](_0x4b8c7e(0x1f0))));});});}function a8_0x3e37(_0x20a99f,_0x5662b0){const _0x184b86=a8_0x184b();return a8_0x3e37=function(_0x3e37d9,_0x398af5){_0x3e37d9=_0x3e37d9-0x1df;let _0x1b1e40=_0x184b86[_0x3e37d9];return _0x1b1e40;},a8_0x3e37(_0x20a99f,_0x5662b0);}function a8_0x184b(){const _0x1a9a4e=['__esModule','digest','isFile','2589538eaPZRw','\x20is\x20not\x20file','5065216QYimKJ','hex','stat','401472omNOqp','2714SibdrW','160VpEwEE','8574ftLJya','fileMd5','data','4145283VDtFTO','188wTUqSG','createHash','693744sBnTGI','update','createReadStream'];a8_0x184b=function(){return _0x1a9a4e;};return a8_0x184b();}exports[a8_0xb6245a(0x1e2)]=fileMd5;
@@ -1 +1 @@
1
- 'use strict';const a8_0x87a53b=a8_0x151b;(function(_0x1ead13,_0x31e9a6){const _0x1f5d4e=a8_0x151b,_0x5bf6b6=_0x1ead13();while(!![]){try{const _0x5648db=-parseInt(_0x1f5d4e(0x154))/0x1*(-parseInt(_0x1f5d4e(0x14c))/0x2)+-parseInt(_0x1f5d4e(0x147))/0x3+parseInt(_0x1f5d4e(0x142))/0x4*(-parseInt(_0x1f5d4e(0x159))/0x5)+-parseInt(_0x1f5d4e(0x157))/0x6*(parseInt(_0x1f5d4e(0x15a))/0x7)+parseInt(_0x1f5d4e(0x152))/0x8*(parseInt(_0x1f5d4e(0x15b))/0x9)+-parseInt(_0x1f5d4e(0x14a))/0xa+parseInt(_0x1f5d4e(0x14d))/0xb*(parseInt(_0x1f5d4e(0x141))/0xc);if(_0x5648db===_0x31e9a6)break;else _0x5bf6b6['push'](_0x5bf6b6['shift']());}catch(_0x2897cf){_0x5bf6b6['push'](_0x5bf6b6['shift']());}}}(a8_0x516d,0xd91f4));function a8_0x516d(){const _0x395b5b=['2336268wyReyZ','3419912cnbByd','push','filename','directory','regExp','4802016BXwfKk','forEach','__findModules','15537780FZPZVw','readFileSync','106PPLAuT','242NMGdaH','normalize','resolve','existsSync','modules','8cCfesv','join','12781BhzGwz','dir','globDir','77442ZBquok','parse','10fjzpBt','287vmoBCo','11901366NtuYKm','path','Can\x27t\x20Found\x20Module\x20','test','defineProperty','keys','isDirectory','useSubdirectories','parent'];a8_0x516d=function(){return _0x395b5b;};return a8_0x516d();}function a8_0x151b(_0x308e68,_0x1757c6){const _0x516dce=a8_0x516d();return a8_0x151b=function(_0x151b89,_0x57a816){_0x151b89=_0x151b89-0x141;let _0x3a0467=_0x516dce[_0x151b89];return _0x3a0467;},a8_0x151b(_0x308e68,_0x1757c6);}Object[a8_0x87a53b(0x15f)](exports,'__esModule',{'value':!![]}),exports[a8_0x87a53b(0x156)]=void 0x0;const fs=require('fs'),path=require(a8_0x87a53b(0x15c));class RequireContext{constructor(_0x57ac44,_0x274bd3,_0x52dafc){const _0x56c744=a8_0x87a53b;this[_0x56c744(0x151)]=[],this['regExp']=_0x52dafc,this[_0x56c744(0x162)]=!!_0x274bd3,this[_0x56c744(0x145)]=this['__findDirectory'](_0x57ac44),this[_0x56c744(0x149)](this[_0x56c744(0x145)]);}['__findDirectory'](_0x13ecb2){const _0x40d660=a8_0x87a53b;if(path['isAbsolute'](_0x13ecb2)||!module[_0x40d660(0x163)])return _0x13ecb2;return path[_0x40d660(0x14e)](path[_0x40d660(0x153)](path[_0x40d660(0x158)](module['parent'][_0x40d660(0x144)])[_0x40d660(0x155)],_0x13ecb2));}[a8_0x87a53b(0x149)](_0xa54515){const _0x1b7c7a=a8_0x87a53b;if(fs[_0x1b7c7a(0x150)](_0xa54515))fs['readdirSync'](_0xa54515)[_0x1b7c7a(0x148)](_0x34c0c8=>{const _0x12139a=_0x1b7c7a,_0x587c51=path[_0x12139a(0x14f)](_0xa54515,_0x34c0c8);if(fs['statSync'](_0x587c51)[_0x12139a(0x161)]()){if(this[_0x12139a(0x162)]){this[_0x12139a(0x149)](_0x587c51);return;}}else{if(this['regExp']&&!this[_0x12139a(0x146)][_0x12139a(0x15e)](_0x587c51))return;this['modules'][_0x12139a(0x143)](_0x587c51);}});else throw new Error(_0x1b7c7a(0x15d)+_0xa54515);}}function globDir(_0x537e14='.',_0x6149d8=![],_0xe2fbc0=/(?:)/,_0x9e41cb){const _0x5396bd=a8_0x87a53b,_0x469330=new RequireContext(_0x537e14,_0x6149d8,_0xe2fbc0);if(_0x9e41cb){const _0x54e182=_0x552613=>fs[_0x5396bd(0x14b)](_0x552613,_0x9e41cb);return _0x54e182[_0x5396bd(0x160)]=()=>[..._0x469330[_0x5396bd(0x151)]],_0x54e182;}else{const _0x4dc62f=_0x1fa156=>require(_0x1fa156);return _0x4dc62f[_0x5396bd(0x160)]=()=>[..._0x469330[_0x5396bd(0x151)]],_0x4dc62f;}}exports[a8_0x87a53b(0x156)]=globDir;
1
+ 'use strict';const a9_0x59d522=a9_0x27e7;(function(_0x1a44e5,_0x2618d3){const _0x17b7c1=a9_0x27e7,_0x42797f=_0x1a44e5();while(!![]){try{const _0x1efe6b=-parseInt(_0x17b7c1(0x83))/0x1+-parseInt(_0x17b7c1(0x86))/0x2*(parseInt(_0x17b7c1(0x6a))/0x3)+-parseInt(_0x17b7c1(0x7c))/0x4*(-parseInt(_0x17b7c1(0x6d))/0x5)+-parseInt(_0x17b7c1(0x6e))/0x6*(parseInt(_0x17b7c1(0x70))/0x7)+-parseInt(_0x17b7c1(0x7e))/0x8+parseInt(_0x17b7c1(0x82))/0x9+parseInt(_0x17b7c1(0x84))/0xa;if(_0x1efe6b===_0x2618d3)break;else _0x42797f['push'](_0x42797f['shift']());}catch(_0x118a46){_0x42797f['push'](_0x42797f['shift']());}}}(a9_0x1697,0xcd618));function a9_0x1697(){const _0x466ece=['__esModule','modules','readdirSync','path','44788okCkZX','Can\x27t\x20Found\x20Module\x20','10680584kdDTXg','parent','join','__findDirectory','5035977ESBIHj','1483509xTQcxw','50009210vMSsZR','useSubdirectories','1570MHRDPi','readFileSync','directory','4173FHORjn','resolve','keys','355MvoRvs','24OFtDBw','statSync','2806482eVOYUG','dir','globDir','existsSync','regExp','isAbsolute','normalize','test'];a9_0x1697=function(){return _0x466ece;};return a9_0x1697();}function a9_0x27e7(_0x267c86,_0x1ce533){const _0x16972f=a9_0x1697();return a9_0x27e7=function(_0x27e70b,_0x270454){_0x27e70b=_0x27e70b-0x68;let _0x454afd=_0x16972f[_0x27e70b];return _0x454afd;},a9_0x27e7(_0x267c86,_0x1ce533);}Object['defineProperty'](exports,a9_0x59d522(0x78),{'value':!![]}),exports['globDir']=void 0x0;const fs=require('fs'),path=require(a9_0x59d522(0x7b));class RequireContext{constructor(_0x1bc525,_0xec2ef7,_0x11be07){const _0x4ee1e5=a9_0x59d522;this['modules']=[],this[_0x4ee1e5(0x74)]=_0x11be07,this[_0x4ee1e5(0x85)]=!!_0xec2ef7,this[_0x4ee1e5(0x69)]=this[_0x4ee1e5(0x81)](_0x1bc525),this['__findModules'](this[_0x4ee1e5(0x69)]);}[a9_0x59d522(0x81)](_0x5dcf99){const _0x3fd5bc=a9_0x59d522;if(path[_0x3fd5bc(0x75)](_0x5dcf99)||!module['parent'])return _0x5dcf99;return path[_0x3fd5bc(0x76)](path[_0x3fd5bc(0x80)](path['parse'](module[_0x3fd5bc(0x7f)]['filename'])[_0x3fd5bc(0x71)],_0x5dcf99));}['__findModules'](_0x4a2b87){const _0x918e=a9_0x59d522;if(fs[_0x918e(0x73)](_0x4a2b87))fs[_0x918e(0x7a)](_0x4a2b87)['forEach'](_0xb871da=>{const _0x36c7e4=_0x918e,_0x367395=path[_0x36c7e4(0x6b)](_0x4a2b87,_0xb871da);if(fs[_0x36c7e4(0x6f)](_0x367395)['isDirectory']()){if(this[_0x36c7e4(0x85)]){this['__findModules'](_0x367395);return;}}else{if(this[_0x36c7e4(0x74)]&&!this['regExp'][_0x36c7e4(0x77)](_0x367395))return;this[_0x36c7e4(0x79)]['push'](_0x367395);}});else throw new Error(_0x918e(0x7d)+_0x4a2b87);}}function globDir(_0x27b5ac='.',_0x3c9559=![],_0xb9ed0d=/(?:)/,_0x48ea5f){const _0x26d8df=a9_0x59d522,_0x4b4bf2=new RequireContext(_0x27b5ac,_0x3c9559,_0xb9ed0d);if(_0x48ea5f){const _0x300d9c=_0x2ef427=>fs[_0x26d8df(0x68)](_0x2ef427,_0x48ea5f);return _0x300d9c[_0x26d8df(0x6c)]=()=>[..._0x4b4bf2[_0x26d8df(0x79)]],_0x300d9c;}else{const _0x3b6bd2=_0x219faf=>require(_0x219faf);return _0x3b6bd2[_0x26d8df(0x6c)]=()=>[..._0x4b4bf2[_0x26d8df(0x79)]],_0x3b6bd2;}}exports[a9_0x59d522(0x72)]=globDir;
@@ -1 +1 @@
1
- 'use strict';function a9_0x17a0(_0x4269cc,_0xe9ee4f){const _0x3a5cf6=a9_0x3a5c();return a9_0x17a0=function(_0x17a0a6,_0x481d8e){_0x17a0a6=_0x17a0a6-0x1b7;let _0x570eb6=_0x3a5cf6[_0x17a0a6];return _0x570eb6;},a9_0x17a0(_0x4269cc,_0xe9ee4f);}const a9_0x2dadb9=a9_0x17a0;(function(_0x5e22cf,_0x3374b7){const _0x17d122=a9_0x17a0,_0x102580=_0x5e22cf();while(!![]){try{const _0x2083d5=-parseInt(_0x17d122(0x1c4))/0x1*(-parseInt(_0x17d122(0x1c1))/0x2)+parseInt(_0x17d122(0x1bc))/0x3+-parseInt(_0x17d122(0x1c0))/0x4+parseInt(_0x17d122(0x1ba))/0x5+parseInt(_0x17d122(0x1b8))/0x6+-parseInt(_0x17d122(0x1bd))/0x7+-parseInt(_0x17d122(0x1b9))/0x8;if(_0x2083d5===_0x3374b7)break;else _0x102580['push'](_0x102580['shift']());}catch(_0x5c8baf){_0x102580['push'](_0x102580['shift']());}}}(a9_0x3a5c,0xb1dde));function a9_0x3a5c(){const _0xf6ce31=['5776380ScQRea','defaultsDeep','2897613DHawVI','4287899FPVIAt','__esModule','jiti','5119248TfUBsf','109042FgMcZR','include','get','2KNDlHF','default','lodash','3752652GfhHZi','1877760LyPsGi'];a9_0x3a5c=function(){return _0xf6ce31;};return a9_0x3a5c();}Object['defineProperty'](exports,a9_0x2dadb9(0x1be),{'value':!![]}),exports[a9_0x2dadb9(0x1c2)]=void 0x0;const jiti=require(a9_0x2dadb9(0x1bf)),lodash_1=require(a9_0x2dadb9(0x1b7));function include(_0x8f5777){const _0x33b7ad=a9_0x2dadb9,_0x441a84={},_0x1eea18=jiti()(_0x8f5777);for(let _0x4f1be0 in _0x1eea18){_0x4f1be0!='default'&&(0x0,lodash_1[_0x33b7ad(0x1bb)])(_0x441a84,{[_0x4f1be0]:_0x1eea18[_0x4f1be0]});}return(0x0,lodash_1[_0x33b7ad(0x1bb)])(_0x441a84,(0x0,lodash_1[_0x33b7ad(0x1c3)])(_0x1eea18,_0x33b7ad(0x1c5),{}));}exports['include']=include;
1
+ 'use strict';const a10_0x5a7d9f=a10_0x3240;(function(_0xdec21a,_0x52bc81){const _0x547d74=a10_0x3240,_0x1e24a0=_0xdec21a();while(!![]){try{const _0x301e33=-parseInt(_0x547d74(0xcc))/0x1+parseInt(_0x547d74(0xd1))/0x2*(-parseInt(_0x547d74(0xc7))/0x3)+-parseInt(_0x547d74(0xca))/0x4*(-parseInt(_0x547d74(0xd2))/0x5)+parseInt(_0x547d74(0xd5))/0x6*(-parseInt(_0x547d74(0xcd))/0x7)+-parseInt(_0x547d74(0xd8))/0x8+parseInt(_0x547d74(0xc9))/0x9*(-parseInt(_0x547d74(0xd3))/0xa)+parseInt(_0x547d74(0xd0))/0xb;if(_0x301e33===_0x52bc81)break;else _0x1e24a0['push'](_0x1e24a0['shift']());}catch(_0x4daedd){_0x1e24a0['push'](_0x1e24a0['shift']());}}}(a10_0x4149,0xa1993));function a10_0x3240(_0x2dce20,_0x1a1010){const _0x414913=a10_0x4149();return a10_0x3240=function(_0x3240ca,_0x5e4bb2){_0x3240ca=_0x3240ca-0xc6;let _0x59ac47=_0x414913[_0x3240ca];return _0x59ac47;},a10_0x3240(_0x2dce20,_0x1a1010);}function a10_0x4149(){const _0x1a6866=['jiti','909405YxlhFG','2120027ajBTYg','include','get','53156664pXDCPC','10ECRMan','1460785LbegAX','14720DlGCVj','__esModule','12GUvMQM','defineProperty','lodash','6703768wcwpVM','default','485880sqWzJp','defaultsDeep','7947iMutES','4lLDFVn'];a10_0x4149=function(){return _0x1a6866;};return a10_0x4149();}Object[a10_0x5a7d9f(0xd6)](exports,a10_0x5a7d9f(0xd4),{'value':!![]}),exports[a10_0x5a7d9f(0xce)]=void 0x0;const jiti=require(a10_0x5a7d9f(0xcb)),lodash_1=require(a10_0x5a7d9f(0xd7));function include(_0x34f386){const _0x128980=a10_0x5a7d9f,_0x11ba95={},_0x49079c=jiti()(_0x34f386);for(let _0x3e8a04 in _0x49079c){_0x3e8a04!=_0x128980(0xc6)&&(0x0,lodash_1[_0x128980(0xc8)])(_0x11ba95,{[_0x3e8a04]:_0x49079c[_0x3e8a04]});}return(0x0,lodash_1['defaultsDeep'])(_0x11ba95,(0x0,lodash_1[_0x128980(0xcf)])(_0x49079c,_0x128980(0xc6),{}));}exports['include']=include;
@@ -1 +1 @@
1
- 'use strict';function a10_0x44fd(_0x232ead,_0x4cfb80){var _0x14666b=a10_0x1466();return a10_0x44fd=function(_0x44fd1f,_0x53ff62){_0x44fd1f=_0x44fd1f-0x179;var _0x3cedf7=_0x14666b[_0x44fd1f];return _0x3cedf7;},a10_0x44fd(_0x232ead,_0x4cfb80);}var a10_0x106382=a10_0x44fd;(function(_0x4c97dd,_0xd9691d){var _0x37344d=a10_0x44fd,_0x386705=_0x4c97dd();while(!![]){try{var _0x2d78cc=-parseInt(_0x37344d(0x179))/0x1*(parseInt(_0x37344d(0x17d))/0x2)+parseInt(_0x37344d(0x17b))/0x3+-parseInt(_0x37344d(0x17c))/0x4*(-parseInt(_0x37344d(0x180))/0x5)+parseInt(_0x37344d(0x182))/0x6+parseInt(_0x37344d(0x17a))/0x7+parseInt(_0x37344d(0x17f))/0x8*(-parseInt(_0x37344d(0x17e))/0x9)+parseInt(_0x37344d(0x181))/0xa;if(_0x2d78cc===_0xd9691d)break;else _0x386705['push'](_0x386705['shift']());}catch(_0x3ee1ff){_0x386705['push'](_0x386705['shift']());}}}(a10_0x1466,0x37001));Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a10_0x106382(0x183)]=void 0x0;function sleep(_0x59ec9d=0xc8){return new Promise(_0x5325d1=>setTimeout(_0x5325d1,_0x59ec9d));}exports[a10_0x106382(0x183)]=sleep;function a10_0x1466(){var _0x2df714=['451644ZbtJMd','20864MsTOwF','254wpIVMV','9MyfwxY','3239112HsiTyI','380nswBxF','1077130ncpCBO','363930SUtyPm','sleep','893tawEKb','197743TvJXDC'];a10_0x1466=function(){return _0x2df714;};return a10_0x1466();}
1
+ 'use strict';var a11_0x3dd348=a11_0x3aa8;(function(_0xe87c20,_0x39c4d8){var _0x3e39d3=a11_0x3aa8,_0xdefd2e=_0xe87c20();while(!![]){try{var _0x2a1d04=-parseInt(_0x3e39d3(0xdf))/0x1*(-parseInt(_0x3e39d3(0xde))/0x2)+-parseInt(_0x3e39d3(0xd7))/0x3+-parseInt(_0x3e39d3(0xe3))/0x4+parseInt(_0x3e39d3(0xdc))/0x5*(-parseInt(_0x3e39d3(0xda))/0x6)+parseInt(_0x3e39d3(0xdb))/0x7*(-parseInt(_0x3e39d3(0xe2))/0x8)+parseInt(_0x3e39d3(0xd6))/0x9*(-parseInt(_0x3e39d3(0xdd))/0xa)+parseInt(_0x3e39d3(0xd9))/0xb;if(_0x2a1d04===_0x39c4d8)break;else _0xdefd2e['push'](_0xdefd2e['shift']());}catch(_0x3d9916){_0xdefd2e['push'](_0xdefd2e['shift']());}}}(a11_0x1303,0x1a0cc));function a11_0x1303(){var _0x27bd10=['183316frEZQn','24925OeSxTp','90RbJABY','2EqQeUL','157097eOLZnB','defineProperty','__esModule','40DVKEjS','814856XJHeyw','126495NpFNwf','258333CVmZIz','sleep','6013843uqhwTf','60VJOprP'];a11_0x1303=function(){return _0x27bd10;};return a11_0x1303();}function a11_0x3aa8(_0x517875,_0x86dd0d){var _0x130306=a11_0x1303();return a11_0x3aa8=function(_0x3aa811,_0xd581d7){_0x3aa811=_0x3aa811-0xd6;var _0x161952=_0x130306[_0x3aa811];return _0x161952;},a11_0x3aa8(_0x517875,_0x86dd0d);}Object[a11_0x3dd348(0xe0)](exports,a11_0x3dd348(0xe1),{'value':!![]}),exports['sleep']=void 0x0;function sleep(_0xe7c310=0xc8){return new Promise(_0xdb6151=>setTimeout(_0xdb6151,_0xe7c310));}exports[a11_0x3dd348(0xd8)]=sleep;
package/dist/index.d.ts CHANGED
@@ -2,13 +2,15 @@ import * as dayjs from 'dayjs';
2
2
  import * as urllib from 'urllib';
3
3
  import * as mathjs from 'mathjs';
4
4
  import * as lodash from 'lodash';
5
+ import * as fsplus from 'fs-extra';
5
6
  import { collect } from 'collect.js';
6
7
  import { sleep } from './helper/sleep';
7
8
  import { include } from './helper/include';
8
9
  import { globDir } from './helper/globDir';
10
+ import { fileMd5 } from './helper/fileMd5';
9
11
  import { AnnError } from './exception/AnnError';
10
12
  import { AnnErrorRender } from './exception/AnnErrorRender';
11
13
  import { AnnErrorMsg, getAnnErrorMsg, getAnnErrorList } from './decorator/AnnErrorMsg';
12
14
  import { AnnEnumMsg, getAnnEnumMsg, getAnnEnumList, getAnnEnumArray } from './decorator/AnnEnumMsg';
13
15
  export { CustomConfiguration as Configuration } from './configuration';
14
- export { urllib, mathjs, lodash, dayjs, sleep, collect, include, globDir, AnnEnumMsg, getAnnEnumMsg, getAnnEnumList, getAnnEnumArray, AnnErrorMsg, getAnnErrorMsg, getAnnErrorList, AnnError, AnnErrorRender, };
16
+ export { urllib, fsplus, mathjs, lodash, dayjs, sleep, collect, include, globDir, fileMd5, AnnEnumMsg, getAnnEnumMsg, getAnnEnumList, getAnnEnumArray, AnnErrorMsg, getAnnErrorMsg, getAnnErrorList, AnnError, AnnErrorRender, };
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a11_0x53552d=a11_0x4797;(function(_0xa2c81c,_0x25d360){const _0x515b2e=a11_0x4797,_0x26eea9=_0xa2c81c();while(!![]){try{const _0xfbcec0=parseInt(_0x515b2e(0x1bf))/0x1*(parseInt(_0x515b2e(0x1b5))/0x2)+-parseInt(_0x515b2e(0x1b7))/0x3+parseInt(_0x515b2e(0x1bb))/0x4*(parseInt(_0x515b2e(0x1c2))/0x5)+parseInt(_0x515b2e(0x1b6))/0x6*(parseInt(_0x515b2e(0x1be))/0x7)+-parseInt(_0x515b2e(0x1b1))/0x8+-parseInt(_0x515b2e(0x1c6))/0x9+-parseInt(_0x515b2e(0x1bc))/0xa;if(_0xfbcec0===_0x25d360)break;else _0x26eea9['push'](_0x26eea9['shift']());}catch(_0x54a407){_0x26eea9['push'](_0x26eea9['shift']());}}}(a11_0x13d4,0x2747d));Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a11_0x53552d(0x1b9)]=exports[a11_0x53552d(0x1ba)]=exports['getAnnErrorList']=exports[a11_0x53552d(0x1cb)]=exports[a11_0x53552d(0x1c3)]=exports[a11_0x53552d(0x1c5)]=exports[a11_0x53552d(0x1b2)]=exports[a11_0x53552d(0x1ad)]=exports[a11_0x53552d(0x1aa)]=exports[a11_0x53552d(0x1b3)]=exports[a11_0x53552d(0x1ae)]=exports['collect']=exports[a11_0x53552d(0x1c9)]=exports['dayjs']=exports[a11_0x53552d(0x1bd)]=exports[a11_0x53552d(0x1c4)]=exports[a11_0x53552d(0x1cc)]=exports[a11_0x53552d(0x1af)]=void 0x0;const dayjs=require(a11_0x53552d(0x1b0));exports[a11_0x53552d(0x1b0)]=dayjs;const urllib=require(a11_0x53552d(0x1cc));exports[a11_0x53552d(0x1cc)]=urllib;function a11_0x4797(_0x3be4ee,_0x145307){const _0x13d4ea=a11_0x13d4();return a11_0x4797=function(_0x4797f7,_0x151248){_0x4797f7=_0x4797f7-0x1aa;let _0x5bf5d3=_0x13d4ea[_0x4797f7];return _0x5bf5d3;},a11_0x4797(_0x3be4ee,_0x145307);}const mathjs=require('mathjs');exports[a11_0x53552d(0x1c4)]=mathjs;function a11_0x13d4(){const _0x247fb6=['2123149fWvDtw','2603ZpXTLg','./decorator/AnnEnumMsg','./helper/include','5gOwoSp','AnnErrorMsg','mathjs','getAnnEnumArray','1748817YfNqTR','getAnnErrorList','collect.js','sleep','./decorator/AnnErrorMsg','getAnnErrorMsg','urllib','AnnEnumMsg','./exception/AnnErrorRender','collect','getAnnEnumMsg','include','Configuration','dayjs','32160FNjVPw','getAnnEnumList','globDir','./configuration','164UwDjsa','6gsefRo','928410wHubcB','defineProperty','AnnErrorRender','AnnError','828028auJBTU','550640mgMUVv','lodash'];a11_0x13d4=function(){return _0x247fb6;};return a11_0x13d4();}const lodash=require('lodash');exports[a11_0x53552d(0x1bd)]=lodash;const collect_js_1=require(a11_0x53552d(0x1c8));Object['defineProperty'](exports,a11_0x53552d(0x1ac),{'enumerable':!![],'get':function(){const _0x4f5bc5=a11_0x53552d;return collect_js_1[_0x4f5bc5(0x1ac)];}});const sleep_1=require('./helper/sleep');Object[a11_0x53552d(0x1b8)](exports,a11_0x53552d(0x1c9),{'enumerable':!![],'get':function(){return sleep_1['sleep'];}});const include_1=require(a11_0x53552d(0x1c1));Object[a11_0x53552d(0x1b8)](exports,a11_0x53552d(0x1ae),{'enumerable':!![],'get':function(){const _0x1b952a=a11_0x53552d;return include_1[_0x1b952a(0x1ae)];}});const globDir_1=require('./helper/globDir');Object[a11_0x53552d(0x1b8)](exports,a11_0x53552d(0x1b3),{'enumerable':!![],'get':function(){const _0x3185f3=a11_0x53552d;return globDir_1[_0x3185f3(0x1b3)];}});const AnnError_1=require('./exception/AnnError');Object['defineProperty'](exports,a11_0x53552d(0x1ba),{'enumerable':!![],'get':function(){return AnnError_1['AnnError'];}});const AnnErrorRender_1=require(a11_0x53552d(0x1ab));Object[a11_0x53552d(0x1b8)](exports,a11_0x53552d(0x1b9),{'enumerable':!![],'get':function(){const _0x36fbe3=a11_0x53552d;return AnnErrorRender_1[_0x36fbe3(0x1b9)];}});const AnnErrorMsg_1=require(a11_0x53552d(0x1ca));Object[a11_0x53552d(0x1b8)](exports,a11_0x53552d(0x1c3),{'enumerable':!![],'get':function(){const _0x1ac9b1=a11_0x53552d;return AnnErrorMsg_1[_0x1ac9b1(0x1c3)];}}),Object[a11_0x53552d(0x1b8)](exports,a11_0x53552d(0x1cb),{'enumerable':!![],'get':function(){const _0x53757c=a11_0x53552d;return AnnErrorMsg_1[_0x53757c(0x1cb)];}}),Object[a11_0x53552d(0x1b8)](exports,a11_0x53552d(0x1c7),{'enumerable':!![],'get':function(){const _0x4652af=a11_0x53552d;return AnnErrorMsg_1[_0x4652af(0x1c7)];}});const AnnEnumMsg_1=require(a11_0x53552d(0x1c0));Object[a11_0x53552d(0x1b8)](exports,a11_0x53552d(0x1aa),{'enumerable':!![],'get':function(){const _0x5c512a=a11_0x53552d;return AnnEnumMsg_1[_0x5c512a(0x1aa)];}}),Object[a11_0x53552d(0x1b8)](exports,a11_0x53552d(0x1ad),{'enumerable':!![],'get':function(){return AnnEnumMsg_1['getAnnEnumMsg'];}}),Object[a11_0x53552d(0x1b8)](exports,a11_0x53552d(0x1b2),{'enumerable':!![],'get':function(){return AnnEnumMsg_1['getAnnEnumList'];}}),Object[a11_0x53552d(0x1b8)](exports,a11_0x53552d(0x1c5),{'enumerable':!![],'get':function(){const _0x662dc0=a11_0x53552d;return AnnEnumMsg_1[_0x662dc0(0x1c5)];}});var configuration_1=require(a11_0x53552d(0x1b4));Object[a11_0x53552d(0x1b8)](exports,a11_0x53552d(0x1af),{'enumerable':!![],'get':function(){return configuration_1['CustomConfiguration'];}}),(global[a11_0x53552d(0x1cc)]=urllib,global['mathjs']=mathjs,global[a11_0x53552d(0x1bd)]=lodash),(global[a11_0x53552d(0x1b0)]=dayjs,global[a11_0x53552d(0x1c9)]=sleep_1[a11_0x53552d(0x1c9)],global[a11_0x53552d(0x1ac)]=collect_js_1['collect'],global[a11_0x53552d(0x1ae)]=include_1[a11_0x53552d(0x1ae)],global[a11_0x53552d(0x1b3)]=globDir_1[a11_0x53552d(0x1b3)]),(global['AnnEnumMsg']=AnnEnumMsg_1[a11_0x53552d(0x1aa)],global[a11_0x53552d(0x1ad)]=AnnEnumMsg_1[a11_0x53552d(0x1ad)],global[a11_0x53552d(0x1b2)]=AnnEnumMsg_1[a11_0x53552d(0x1b2)],global[a11_0x53552d(0x1c5)]=AnnEnumMsg_1[a11_0x53552d(0x1c5)]),(global[a11_0x53552d(0x1c3)]=AnnErrorMsg_1[a11_0x53552d(0x1c3)],global['getAnnErrorMsg']=AnnErrorMsg_1[a11_0x53552d(0x1cb)],global[a11_0x53552d(0x1c7)]=AnnErrorMsg_1[a11_0x53552d(0x1c7)],global[a11_0x53552d(0x1ba)]=AnnError_1[a11_0x53552d(0x1ba)],global[a11_0x53552d(0x1b9)]=AnnErrorRender_1['AnnErrorRender']);
1
+ 'use strict';const a12_0x54b0ca=a12_0x1983;(function(_0x3c5e8c,_0x1b9e98){const _0x1410b4=a12_0x1983,_0x2b516d=_0x3c5e8c();while(!![]){try{const _0x759b85=-parseInt(_0x1410b4(0xe2))/0x1+parseInt(_0x1410b4(0xca))/0x2*(parseInt(_0x1410b4(0xbb))/0x3)+-parseInt(_0x1410b4(0xde))/0x4*(parseInt(_0x1410b4(0xc5))/0x5)+parseInt(_0x1410b4(0xbc))/0x6*(parseInt(_0x1410b4(0xd7))/0x7)+-parseInt(_0x1410b4(0xbe))/0x8+parseInt(_0x1410b4(0xd4))/0x9+parseInt(_0x1410b4(0xc1))/0xa*(-parseInt(_0x1410b4(0xdd))/0xb);if(_0x759b85===_0x1b9e98)break;else _0x2b516d['push'](_0x2b516d['shift']());}catch(_0x48a727){_0x2b516d['push'](_0x2b516d['shift']());}}}(a12_0xe3f2,0x8a78b));Object[a12_0x54b0ca(0xd1)](exports,'__esModule',{'value':!![]}),exports[a12_0x54b0ca(0xcd)]=exports[a12_0x54b0ca(0xd6)]=exports[a12_0x54b0ca(0xcc)]=exports[a12_0x54b0ca(0xcb)]=exports[a12_0x54b0ca(0xd8)]=exports[a12_0x54b0ca(0xe0)]=exports['getAnnEnumList']=exports[a12_0x54b0ca(0xc7)]=exports[a12_0x54b0ca(0xda)]=exports[a12_0x54b0ca(0xc4)]=exports['globDir']=exports[a12_0x54b0ca(0xbf)]=exports['collect']=exports[a12_0x54b0ca(0xdf)]=exports['dayjs']=exports['lodash']=exports[a12_0x54b0ca(0xc6)]=exports[a12_0x54b0ca(0xdc)]=exports[a12_0x54b0ca(0xc8)]=exports[a12_0x54b0ca(0xd0)]=void 0x0;const dayjs=require(a12_0x54b0ca(0xe1));exports[a12_0x54b0ca(0xe1)]=dayjs;const urllib=require(a12_0x54b0ca(0xc8));exports['urllib']=urllib;const mathjs=require('mathjs');exports[a12_0x54b0ca(0xc6)]=mathjs;const lodash=require('lodash');exports[a12_0x54b0ca(0xd5)]=lodash;const fsplus=require(a12_0x54b0ca(0xd3));exports[a12_0x54b0ca(0xdc)]=fsplus;const collect_js_1=require(a12_0x54b0ca(0xd9));Object[a12_0x54b0ca(0xd1)](exports,a12_0x54b0ca(0xc9),{'enumerable':!![],'get':function(){const _0x396123=a12_0x54b0ca;return collect_js_1[_0x396123(0xc9)];}});const sleep_1=require('./helper/sleep');Object['defineProperty'](exports,a12_0x54b0ca(0xdf),{'enumerable':!![],'get':function(){const _0x354ded=a12_0x54b0ca;return sleep_1[_0x354ded(0xdf)];}});const include_1=require(a12_0x54b0ca(0xd2));Object[a12_0x54b0ca(0xd1)](exports,a12_0x54b0ca(0xbf),{'enumerable':!![],'get':function(){return include_1['include'];}});const globDir_1=require('./helper/globDir');Object[a12_0x54b0ca(0xd1)](exports,a12_0x54b0ca(0xc3),{'enumerable':!![],'get':function(){const _0x1e9ff8=a12_0x54b0ca;return globDir_1[_0x1e9ff8(0xc3)];}});const fileMd5_1=require(a12_0x54b0ca(0xc2));Object['defineProperty'](exports,a12_0x54b0ca(0xc4),{'enumerable':!![],'get':function(){return fileMd5_1['fileMd5'];}});const AnnError_1=require(a12_0x54b0ca(0xcf));Object[a12_0x54b0ca(0xd1)](exports,a12_0x54b0ca(0xd6),{'enumerable':!![],'get':function(){return AnnError_1['AnnError'];}});const AnnErrorRender_1=require(a12_0x54b0ca(0xdb));function a12_0x1983(_0x38c067,_0x38e89f){const _0xe3f243=a12_0xe3f2();return a12_0x1983=function(_0x198374,_0x31d3cd){_0x198374=_0x198374-0xbb;let _0xad774a=_0xe3f243[_0x198374];return _0xad774a;},a12_0x1983(_0x38c067,_0x38e89f);}Object[a12_0x54b0ca(0xd1)](exports,a12_0x54b0ca(0xcd),{'enumerable':!![],'get':function(){const _0x667a86=a12_0x54b0ca;return AnnErrorRender_1[_0x667a86(0xcd)];}});const AnnErrorMsg_1=require('./decorator/AnnErrorMsg');Object[a12_0x54b0ca(0xd1)](exports,a12_0x54b0ca(0xd8),{'enumerable':!![],'get':function(){const _0x359c43=a12_0x54b0ca;return AnnErrorMsg_1[_0x359c43(0xd8)];}}),Object[a12_0x54b0ca(0xd1)](exports,a12_0x54b0ca(0xcb),{'enumerable':!![],'get':function(){const _0x499c59=a12_0x54b0ca;return AnnErrorMsg_1[_0x499c59(0xcb)];}}),Object[a12_0x54b0ca(0xd1)](exports,a12_0x54b0ca(0xcc),{'enumerable':!![],'get':function(){const _0x7e146=a12_0x54b0ca;return AnnErrorMsg_1[_0x7e146(0xcc)];}});function a12_0xe3f2(){const _0x22d20d=['./exception/AnnError','Configuration','defineProperty','./helper/include','fs-extra','9311517votVmz','lodash','AnnError','4252773zjzJws','AnnErrorMsg','collect.js','AnnEnumMsg','./exception/AnnErrorRender','fsplus','169202iiBcbc','4TsDbEM','sleep','getAnnEnumArray','dayjs','337047SlLcjU','27rbJUAO','6gJrWbD','./configuration','2876960eQgJIA','include','./decorator/AnnEnumMsg','460jEsjjb','./helper/fileMd5','globDir','fileMd5','2700715YVvjCi','mathjs','getAnnEnumMsg','urllib','collect','193202OhCtED','getAnnErrorMsg','getAnnErrorList','AnnErrorRender','getAnnEnumList'];a12_0xe3f2=function(){return _0x22d20d;};return a12_0xe3f2();}const AnnEnumMsg_1=require(a12_0x54b0ca(0xc0));Object[a12_0x54b0ca(0xd1)](exports,a12_0x54b0ca(0xda),{'enumerable':!![],'get':function(){return AnnEnumMsg_1['AnnEnumMsg'];}}),Object['defineProperty'](exports,a12_0x54b0ca(0xc7),{'enumerable':!![],'get':function(){const _0x2bbedb=a12_0x54b0ca;return AnnEnumMsg_1[_0x2bbedb(0xc7)];}}),Object['defineProperty'](exports,a12_0x54b0ca(0xce),{'enumerable':!![],'get':function(){const _0x64db9f=a12_0x54b0ca;return AnnEnumMsg_1[_0x64db9f(0xce)];}}),Object[a12_0x54b0ca(0xd1)](exports,'getAnnEnumArray',{'enumerable':!![],'get':function(){const _0x2f9c71=a12_0x54b0ca;return AnnEnumMsg_1[_0x2f9c71(0xe0)];}});var configuration_1=require(a12_0x54b0ca(0xbd));Object[a12_0x54b0ca(0xd1)](exports,a12_0x54b0ca(0xd0),{'enumerable':!![],'get':function(){return configuration_1['CustomConfiguration'];}}),(global[a12_0x54b0ca(0xc8)]=urllib,global['fsplus']=fsplus,global[a12_0x54b0ca(0xc6)]=mathjs,global[a12_0x54b0ca(0xd5)]=lodash),(global[a12_0x54b0ca(0xe1)]=dayjs,global[a12_0x54b0ca(0xdf)]=sleep_1[a12_0x54b0ca(0xdf)],global['collect']=collect_js_1[a12_0x54b0ca(0xc9)],global[a12_0x54b0ca(0xbf)]=include_1['include'],global[a12_0x54b0ca(0xc3)]=globDir_1[a12_0x54b0ca(0xc3)],global['fileMd5']=fileMd5_1[a12_0x54b0ca(0xc4)]),(global[a12_0x54b0ca(0xda)]=AnnEnumMsg_1[a12_0x54b0ca(0xda)],global[a12_0x54b0ca(0xc7)]=AnnEnumMsg_1[a12_0x54b0ca(0xc7)],global[a12_0x54b0ca(0xce)]=AnnEnumMsg_1[a12_0x54b0ca(0xce)],global[a12_0x54b0ca(0xe0)]=AnnEnumMsg_1['getAnnEnumArray']),(global[a12_0x54b0ca(0xd8)]=AnnErrorMsg_1['AnnErrorMsg'],global['getAnnErrorMsg']=AnnErrorMsg_1['getAnnErrorMsg'],global[a12_0x54b0ca(0xcc)]=AnnErrorMsg_1[a12_0x54b0ca(0xcc)],global[a12_0x54b0ca(0xd6)]=AnnError_1['AnnError'],global[a12_0x54b0ca(0xcd)]=AnnErrorRender_1['AnnErrorRender']);
package/index.d.ts CHANGED
@@ -5,23 +5,26 @@ import * as dayjs from 'dayjs';
5
5
  import * as lodash from 'lodash';
6
6
  import * as urllib from 'urllib';
7
7
  import * as mathjs from 'mathjs';
8
+ import * as fsplus from 'fs-extra';
8
9
  import { collect } from 'collect.js';
9
10
 
10
11
  declare global { // 全局变量设置
11
12
  // @ts-ignore
12
13
  export { collect } from 'collect.js';
13
-
14
14
  // @ts-ignore
15
15
  export * as dayjs from 'dayjs';
16
16
  // @ts-ignore
17
17
  export * as urllib from 'urllib';
18
18
  // @ts-ignore
19
+ export * as fsplus from 'fs-extra';
20
+ // @ts-ignore
19
21
  export * as mathjs from 'mathjs';
20
22
  // @ts-ignore
21
23
  export * as lodash from 'lodash';
22
24
 
23
25
 
24
26
  export function sleep(time?: number): Promise<void>;
27
+ export function fileMd5(path: string): Promise<string>;
25
28
  export function include(path: string): {
26
29
  [key: string]: any;
27
30
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anncic-api/core",
3
- "version": "1.0.0",
3
+ "version": "1.0.8",
4
4
  "main": "./dist/index.js",
5
5
  "typings": "index.d.ts",
6
6
  "files": [
@@ -41,5 +41,5 @@
41
41
  "javascript-obfuscator": "2.19.0",
42
42
  "typescript": "^4.7.4"
43
43
  },
44
- "gitHead": "7ff678034cf770526c4bb8b6694e56ead6d7f6b2"
44
+ "gitHead": "252a82375c75725a7c95ab215f172521d1729ff5"
45
45
  }