@anncic-api/core 1.0.7 → 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_0x59680d=a8_0x41a0;(function(_0x5ef30e,_0x56db4e){const _0x2d2181=a8_0x41a0,_0x2eb8dc=_0x5ef30e();while(!![]){try{const _0xb3dd37=-parseInt(_0x2d2181(0x88))/0x1*(-parseInt(_0x2d2181(0x7b))/0x2)+parseInt(_0x2d2181(0x91))/0x3+-parseInt(_0x2d2181(0x84))/0x4*(-parseInt(_0x2d2181(0x79))/0x5)+-parseInt(_0x2d2181(0x7e))/0x6+-parseInt(_0x2d2181(0x8a))/0x7+parseInt(_0x2d2181(0x86))/0x8*(-parseInt(_0x2d2181(0x7a))/0x9)+parseInt(_0x2d2181(0x89))/0xa;if(_0xb3dd37===_0x56db4e)break;else _0x2eb8dc['push'](_0x2eb8dc['shift']());}catch(_0xcd98da){_0x2eb8dc['push'](_0x2eb8dc['shift']());}}}(a8_0x1f9c,0x4d492));function a8_0x41a0(_0x43e751,_0x369104){const _0x1f9c2c=a8_0x1f9c();return a8_0x41a0=function(_0x41a090,_0x5baaee){_0x41a090=_0x41a090-0x73;let _0x4ceba3=_0x1f9c2c[_0x41a090];return _0x4ceba3;},a8_0x41a0(_0x43e751,_0x369104);}Object[a8_0x59680d(0x7f)](exports,a8_0x59680d(0x93),{'value':!![]}),exports[a8_0x59680d(0x83)]=void 0x0;const fs=require('fs'),path=require(a8_0x59680d(0x73));class RequireContext{constructor(_0x181dfd,_0x4ed8bf,_0x7266a4){const _0x20159d=a8_0x59680d;this[_0x20159d(0x7c)]=[],this['regExp']=_0x7266a4,this[_0x20159d(0x87)]=!!_0x4ed8bf,this[_0x20159d(0x81)]=this['__findDirectory'](_0x181dfd),this[_0x20159d(0x76)](this[_0x20159d(0x81)]);}['__findDirectory'](_0xee8917){const _0x436505=a8_0x59680d;if(path[_0x436505(0x77)](_0xee8917)||!module['parent'])return _0xee8917;return path[_0x436505(0x92)](path['join'](path[_0x436505(0x74)](module[_0x436505(0x78)][_0x436505(0x8b)])[_0x436505(0x7d)],_0xee8917));}['__findModules'](_0x12aee3){const _0x3d0dc5=a8_0x59680d;if(fs[_0x3d0dc5(0x82)](_0x12aee3))fs[_0x3d0dc5(0x80)](_0x12aee3)[_0x3d0dc5(0x8d)](_0x44b5d9=>{const _0x521739=_0x3d0dc5,_0x57209d=path[_0x521739(0x8c)](_0x12aee3,_0x44b5d9);if(fs[_0x521739(0x85)](_0x57209d)['isDirectory']()){if(this['useSubdirectories']){this[_0x521739(0x76)](_0x57209d);return;}}else{if(this[_0x521739(0x8f)]&&!this[_0x521739(0x8f)][_0x521739(0x90)](_0x57209d))return;this['modules']['push'](_0x57209d);}});else throw new Error(_0x3d0dc5(0x75)+_0x12aee3);}}function a8_0x1f9c(){const _0x285f6c=['test','131406LwqqWh','normalize','__esModule','path','parse','Can\x27t\x20Found\x20Module\x20','__findModules','isAbsolute','parent','5BJItkG','25911BcmrUz','2TgwulI','modules','dir','2822232pEebxo','defineProperty','readdirSync','directory','existsSync','globDir','470604xdazXW','statSync','752wxTByh','useSubdirectories','364574PGyBPr','6895690LfycED','1106252SVGAYd','filename','resolve','forEach','readFileSync','regExp'];a8_0x1f9c=function(){return _0x285f6c;};return a8_0x1f9c();}function globDir(_0x929ef4='.',_0x58de5e=![],_0x2ad1d5=/(?:)/,_0x3d14cc){const _0x3162cb=a8_0x59680d,_0x503269=new RequireContext(_0x929ef4,_0x58de5e,_0x2ad1d5);if(_0x3d14cc){const _0x200a94=_0x15645d=>fs[_0x3162cb(0x8e)](_0x15645d,_0x3d14cc);return _0x200a94['keys']=()=>[..._0x503269[_0x3162cb(0x7c)]],_0x200a94;}else{const _0x1be8e1=_0x384fab=>require(_0x384fab);return _0x1be8e1['keys']=()=>[..._0x503269[_0x3162cb(0x7c)]],_0x1be8e1;}}exports[a8_0x59680d(0x83)]=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';const a9_0x1f1f5c=a9_0xa20a;function a9_0xa20a(_0x2fb6b2,_0x5b481d){const _0x14e8ac=a9_0x14e8();return a9_0xa20a=function(_0xa20a4d,_0x4ef05d){_0xa20a4d=_0xa20a4d-0x9a;let _0x2e1c59=_0x14e8ac[_0xa20a4d];return _0x2e1c59;},a9_0xa20a(_0x2fb6b2,_0x5b481d);}(function(_0x21b9b1,_0x4d816d){const _0x2de8bd=a9_0xa20a,_0x5e7179=_0x21b9b1();while(!![]){try{const _0x44caf4=-parseInt(_0x2de8bd(0xa0))/0x1+parseInt(_0x2de8bd(0xa3))/0x2*(-parseInt(_0x2de8bd(0xa6))/0x3)+parseInt(_0x2de8bd(0x9b))/0x4+-parseInt(_0x2de8bd(0xaa))/0x5*(parseInt(_0x2de8bd(0x9d))/0x6)+parseInt(_0x2de8bd(0x9c))/0x7*(-parseInt(_0x2de8bd(0x9a))/0x8)+-parseInt(_0x2de8bd(0x9f))/0x9+parseInt(_0x2de8bd(0x9e))/0xa;if(_0x44caf4===_0x4d816d)break;else _0x5e7179['push'](_0x5e7179['shift']());}catch(_0x1301f2){_0x5e7179['push'](_0x5e7179['shift']());}}}(a9_0x14e8,0xad80e));Object[a9_0x1f1f5c(0xa7)](exports,'__esModule',{'value':!![]}),exports[a9_0x1f1f5c(0xa1)]=void 0x0;const jiti=require(a9_0x1f1f5c(0xa5)),lodash_1=require(a9_0x1f1f5c(0xa4));function a9_0x14e8(){const _0x228a07=['459823XXAQqQ','include','get','188AurpUD','lodash','jiti','8637wNQBEN','defineProperty','defaultsDeep','default','151470EIJWFY','5391064PpsOdS','280208nlzZgL','14dXtLXx','66MPWCmj','44085730aNQXdh','12208554LXjNDJ'];a9_0x14e8=function(){return _0x228a07;};return a9_0x14e8();}function include(_0x3f5e0a){const _0x2771e0=a9_0x1f1f5c,_0x7db4cf={},_0x3f6542=jiti()(_0x3f5e0a);for(let _0x5506fe in _0x3f6542){_0x5506fe!=_0x2771e0(0xa9)&&(0x0,lodash_1[_0x2771e0(0xa8)])(_0x7db4cf,{[_0x5506fe]:_0x3f6542[_0x5506fe]});}return(0x0,lodash_1[_0x2771e0(0xa8)])(_0x7db4cf,(0x0,lodash_1[_0x2771e0(0xa2)])(_0x3f6542,'default',{}));}exports[a9_0x1f1f5c(0xa1)]=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_0x5c77(_0x4989a6,_0x2928a4){var _0x3e50ae=a10_0x3e50();return a10_0x5c77=function(_0x5c7726,_0x5b73b5){_0x5c7726=_0x5c7726-0x76;var _0xfb5263=_0x3e50ae[_0x5c7726];return _0xfb5263;},a10_0x5c77(_0x4989a6,_0x2928a4);}var a10_0x3eba58=a10_0x5c77;function a10_0x3e50(){var _0x3d4642=['40qlhlJU','28455ErtbQY','defineProperty','sleep','624974gtzVNq','1131044ApkNEG','30qqbFvX','1426654KUhYaO','__esModule','12ndIBzS','39037400ULRhGd','2356820nlXOTy','983673qNaSIB'];a10_0x3e50=function(){return _0x3d4642;};return a10_0x3e50();}(function(_0x340211,_0x5634c6){var _0x38f7e9=a10_0x5c77,_0x41f56f=_0x340211();while(!![]){try{var _0x2fa927=-parseInt(_0x38f7e9(0x7d))/0x1+parseInt(_0x38f7e9(0x7c))/0x2*(parseInt(_0x38f7e9(0x77))/0x3)+-parseInt(_0x38f7e9(0x7b))/0x4+-parseInt(_0x38f7e9(0x81))/0x5*(parseInt(_0x38f7e9(0x7f))/0x6)+-parseInt(_0x38f7e9(0x7a))/0x7+-parseInt(_0x38f7e9(0x76))/0x8*(parseInt(_0x38f7e9(0x82))/0x9)+parseInt(_0x38f7e9(0x80))/0xa;if(_0x2fa927===_0x5634c6)break;else _0x41f56f['push'](_0x41f56f['shift']());}catch(_0x5b803b){_0x41f56f['push'](_0x41f56f['shift']());}}}(a10_0x3e50,0xb9159));Object[a10_0x3eba58(0x78)](exports,a10_0x3eba58(0x7e),{'value':!![]}),exports[a10_0x3eba58(0x79)]=void 0x0;function sleep(_0x4970b9=0xc8){return new Promise(_0x142985=>setTimeout(_0x142985,_0x4970b9));}exports[a10_0x3eba58(0x79)]=sleep;
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_0x266863=a11_0x5f0f;(function(_0x5c17e4,_0x830d76){const _0x5a25a9=a11_0x5f0f,_0x21447b=_0x5c17e4();while(!![]){try{const _0x5862a4=parseInt(_0x5a25a9(0xb4))/0x1*(-parseInt(_0x5a25a9(0xcd))/0x2)+parseInt(_0x5a25a9(0xbe))/0x3+parseInt(_0x5a25a9(0xad))/0x4*(parseInt(_0x5a25a9(0xba))/0x5)+-parseInt(_0x5a25a9(0xc6))/0x6+-parseInt(_0x5a25a9(0xae))/0x7*(-parseInt(_0x5a25a9(0xb6))/0x8)+parseInt(_0x5a25a9(0xb2))/0x9*(-parseInt(_0x5a25a9(0xc3))/0xa)+-parseInt(_0x5a25a9(0xbc))/0xb*(-parseInt(_0x5a25a9(0xc0))/0xc);if(_0x5862a4===_0x830d76)break;else _0x21447b['push'](_0x21447b['shift']());}catch(_0x448bb7){_0x21447b['push'](_0x21447b['shift']());}}}(a11_0x472e,0xb8c84));Object[a11_0x266863(0xaa)](exports,a11_0x266863(0xc2),{'value':!![]}),exports['AnnErrorRender']=exports[a11_0x266863(0xbf)]=exports[a11_0x266863(0xc1)]=exports['getAnnErrorMsg']=exports[a11_0x266863(0xb7)]=exports[a11_0x266863(0xbd)]=exports[a11_0x266863(0xa9)]=exports[a11_0x266863(0xc8)]=exports[a11_0x266863(0xbb)]=exports[a11_0x266863(0xb0)]=exports['include']=exports[a11_0x266863(0xc5)]=exports[a11_0x266863(0xcc)]=exports[a11_0x266863(0xca)]=exports['lodash']=exports['mathjs']=exports['urllib']=exports[a11_0x266863(0xb1)]=void 0x0;const dayjs=require(a11_0x266863(0xca));exports[a11_0x266863(0xca)]=dayjs;const urllib=require(a11_0x266863(0xaf));exports['urllib']=urllib;const mathjs=require(a11_0x266863(0xc9));exports['mathjs']=mathjs;const lodash=require(a11_0x266863(0xb3));exports[a11_0x266863(0xb3)]=lodash;const collect_js_1=require('collect.js');Object[a11_0x266863(0xaa)](exports,a11_0x266863(0xc5),{'enumerable':!![],'get':function(){const _0x513953=a11_0x266863;return collect_js_1[_0x513953(0xc5)];}});function a11_0x5f0f(_0x289be3,_0x178f31){const _0x472e6b=a11_0x472e();return a11_0x5f0f=function(_0x5f0f29,_0x45f5e8){_0x5f0f29=_0x5f0f29-0xa8;let _0x3e67ea=_0x472e6b[_0x5f0f29];return _0x3e67ea;},a11_0x5f0f(_0x289be3,_0x178f31);}const sleep_1=require(a11_0x266863(0xcb));Object[a11_0x266863(0xaa)](exports,a11_0x266863(0xcc),{'enumerable':!![],'get':function(){return sleep_1['sleep'];}});const include_1=require('./helper/include');Object[a11_0x266863(0xaa)](exports,'include',{'enumerable':!![],'get':function(){return include_1['include'];}});const globDir_1=require(a11_0x266863(0xc4));Object[a11_0x266863(0xaa)](exports,a11_0x266863(0xb0),{'enumerable':!![],'get':function(){const _0x113525=a11_0x266863;return globDir_1[_0x113525(0xb0)];}});const AnnError_1=require(a11_0x266863(0xb8));Object[a11_0x266863(0xaa)](exports,a11_0x266863(0xbf),{'enumerable':!![],'get':function(){const _0x20165e=a11_0x266863;return AnnError_1[_0x20165e(0xbf)];}});const AnnErrorRender_1=require('./exception/AnnErrorRender');Object[a11_0x266863(0xaa)](exports,a11_0x266863(0xb5),{'enumerable':!![],'get':function(){const _0x3e1d96=a11_0x266863;return AnnErrorRender_1[_0x3e1d96(0xb5)];}});function a11_0x472e(){const _0x4e5c5a=['globDir','Configuration','8648595JhXtwj','lodash','41813buhxrv','AnnErrorRender','985432KPgRie','AnnErrorMsg','./exception/AnnError','./decorator/AnnErrorMsg','1645tWjhzr','AnnEnumMsg','5240653qKxUtK','getAnnEnumArray','1569177ZZykRZ','AnnError','12OrjaCr','getAnnErrorList','__esModule','10JjLdSS','./helper/globDir','collect','1803060IIMuek','getAnnErrorMsg','getAnnEnumMsg','mathjs','dayjs','./helper/sleep','sleep','62ssPlEm','include','getAnnEnumList','defineProperty','CustomConfiguration','./decorator/AnnEnumMsg','14668BEwsxD','63SYyQmZ','urllib'];a11_0x472e=function(){return _0x4e5c5a;};return a11_0x472e();}const AnnErrorMsg_1=require(a11_0x266863(0xb9));Object[a11_0x266863(0xaa)](exports,'AnnErrorMsg',{'enumerable':!![],'get':function(){return AnnErrorMsg_1['AnnErrorMsg'];}}),Object[a11_0x266863(0xaa)](exports,a11_0x266863(0xc7),{'enumerable':!![],'get':function(){return AnnErrorMsg_1['getAnnErrorMsg'];}}),Object[a11_0x266863(0xaa)](exports,'getAnnErrorList',{'enumerable':!![],'get':function(){return AnnErrorMsg_1['getAnnErrorList'];}});const AnnEnumMsg_1=require(a11_0x266863(0xac));Object[a11_0x266863(0xaa)](exports,a11_0x266863(0xbb),{'enumerable':!![],'get':function(){const _0x5e96cb=a11_0x266863;return AnnEnumMsg_1[_0x5e96cb(0xbb)];}}),Object[a11_0x266863(0xaa)](exports,a11_0x266863(0xc8),{'enumerable':!![],'get':function(){const _0x163225=a11_0x266863;return AnnEnumMsg_1[_0x163225(0xc8)];}}),Object['defineProperty'](exports,'getAnnEnumList',{'enumerable':!![],'get':function(){const _0x491896=a11_0x266863;return AnnEnumMsg_1[_0x491896(0xa9)];}}),Object[a11_0x266863(0xaa)](exports,a11_0x266863(0xbd),{'enumerable':!![],'get':function(){return AnnEnumMsg_1['getAnnEnumArray'];}});var configuration_1=require('./configuration');Object[a11_0x266863(0xaa)](exports,a11_0x266863(0xb1),{'enumerable':!![],'get':function(){const _0x3a96a9=a11_0x266863;return configuration_1[_0x3a96a9(0xab)];}}),(global['urllib']=urllib,global[a11_0x266863(0xc9)]=mathjs,global[a11_0x266863(0xb3)]=lodash),(global[a11_0x266863(0xca)]=dayjs,global['sleep']=sleep_1[a11_0x266863(0xcc)],global['collect']=collect_js_1[a11_0x266863(0xc5)],global[a11_0x266863(0xa8)]=include_1[a11_0x266863(0xa8)],global['globDir']=globDir_1[a11_0x266863(0xb0)]),(global['AnnEnumMsg']=AnnEnumMsg_1[a11_0x266863(0xbb)],global[a11_0x266863(0xc8)]=AnnEnumMsg_1[a11_0x266863(0xc8)],global['getAnnEnumList']=AnnEnumMsg_1['getAnnEnumList'],global[a11_0x266863(0xbd)]=AnnEnumMsg_1[a11_0x266863(0xbd)]),(global[a11_0x266863(0xb7)]=AnnErrorMsg_1[a11_0x266863(0xb7)],global[a11_0x266863(0xc7)]=AnnErrorMsg_1['getAnnErrorMsg'],global[a11_0x266863(0xc1)]=AnnErrorMsg_1[a11_0x266863(0xc1)],global['AnnError']=AnnError_1[a11_0x266863(0xbf)],global[a11_0x266863(0xb5)]=AnnErrorRender_1[a11_0x266863(0xb5)]);
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.7",
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": "94067d15fe6fb78a90ab5fcdaf30d73802ca757d"
44
+ "gitHead": "252a82375c75725a7c95ab215f172521d1729ff5"
45
45
  }