@anncic-api/core 1.0.7 → 1.0.11

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';function a8_0x166f(_0x2dd363,_0x567425){const _0x1faa85=a8_0x1faa();return a8_0x166f=function(_0x166f84,_0x2cc213){_0x166f84=_0x166f84-0x89;let _0x4d17e5=_0x1faa85[_0x166f84];return _0x4d17e5;},a8_0x166f(_0x2dd363,_0x567425);}const a8_0x3f242d=a8_0x166f;(function(_0x485bb6,_0x270669){const _0x124b5d=a8_0x166f,_0x4c32e9=_0x485bb6();while(!![]){try{const _0x3124ab=-parseInt(_0x124b5d(0x9b))/0x1+parseInt(_0x124b5d(0x99))/0x2*(parseInt(_0x124b5d(0x90))/0x3)+-parseInt(_0x124b5d(0x98))/0x4*(-parseInt(_0x124b5d(0x9f))/0x5)+parseInt(_0x124b5d(0x9d))/0x6+-parseInt(_0x124b5d(0x8d))/0x7*(parseInt(_0x124b5d(0x9a))/0x8)+-parseInt(_0x124b5d(0x8f))/0x9+parseInt(_0x124b5d(0x8a))/0xa*(parseInt(_0x124b5d(0x8b))/0xb);if(_0x3124ab===_0x270669)break;else _0x4c32e9['push'](_0x4c32e9['shift']());}catch(_0x3b388c){_0x4c32e9['push'](_0x4c32e9['shift']());}}}(a8_0x1faa,0x4cfaf));function a8_0x1faa(){const _0x531353=['createReadStream','fileMd5','error','update','8AwQdpb','148372kvYBEU','24oUGlww','366428pArUEi','data','3456240dpoird','stat','796540wLkPEO','end','110DDXYCm','311344uPQPQS','bind','1111117vRrsHA','crypto','3103308aDkGta','12tFXhkT','md5','\x20is\x20not\x20file','defineProperty'];a8_0x1faa=function(){return _0x531353;};return a8_0x1faa();}Object[a8_0x3f242d(0x93)](exports,'__esModule',{'value':!![]}),exports[a8_0x3f242d(0x95)]=void 0x0;const fs=require('fs'),crypto=require(a8_0x3f242d(0x8e));function fileMd5(_0xff2c16){return new Promise((_0x55906c,_0x543999)=>{const _0xcd9d75=a8_0x166f;fs[_0xcd9d75(0x9e)](_0xff2c16,(_0x4c0b7c,_0x4610c2)=>{const _0x55462a=_0xcd9d75;if(_0x4c0b7c)return _0x543999(_0x4c0b7c);if(!_0x4610c2['isFile']())return _0x543999(new Error(_0xff2c16+_0x55462a(0x92)));const _0x58593a=crypto['createHash'](_0x55462a(0x91)),_0x5b0f79=fs[_0x55462a(0x94)](_0xff2c16);_0x5b0f79['on'](_0x55462a(0x9c),_0x58593a[_0x55462a(0x97)][_0x55462a(0x8c)](_0x58593a)),_0x5b0f79['on'](_0x55462a(0x96),_0x1851bc=>_0x543999(_0x1851bc)),_0x5b0f79['on'](_0x55462a(0x89),()=>_0x55906c(_0x58593a['digest']('hex')));});});}exports[a8_0x3f242d(0x95)]=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_0x5be76d=a9_0x54f4;(function(_0x2664a0,_0x4d2a31){const _0x4a1dc4=a9_0x54f4,_0x3cdfb1=_0x2664a0();while(!![]){try{const _0x5a3401=parseInt(_0x4a1dc4(0x93))/0x1*(parseInt(_0x4a1dc4(0x82))/0x2)+-parseInt(_0x4a1dc4(0x9e))/0x3+parseInt(_0x4a1dc4(0x86))/0x4*(-parseInt(_0x4a1dc4(0x9c))/0x5)+parseInt(_0x4a1dc4(0xa3))/0x6+parseInt(_0x4a1dc4(0x99))/0x7+-parseInt(_0x4a1dc4(0x97))/0x8+-parseInt(_0x4a1dc4(0x91))/0x9*(-parseInt(_0x4a1dc4(0x9d))/0xa);if(_0x5a3401===_0x4d2a31)break;else _0x3cdfb1['push'](_0x3cdfb1['shift']());}catch(_0x5c80d6){_0x3cdfb1['push'](_0x3cdfb1['shift']());}}}(a9_0x2287,0xa152d));Object[a9_0x5be76d(0x8c)](exports,a9_0x5be76d(0x89),{'value':!![]}),exports[a9_0x5be76d(0xa1)]=void 0x0;function a9_0x54f4(_0x1bb0ad,_0x3d4686){const _0x2287ad=a9_0x2287();return a9_0x54f4=function(_0x54f4d8,_0x408b9c){_0x54f4d8=_0x54f4d8-0x82;let _0x4c17a4=_0x2287ad[_0x54f4d8];return _0x4c17a4;},a9_0x54f4(_0x1bb0ad,_0x3d4686);}const fs=require('fs'),path=require(a9_0x5be76d(0x9f));class RequireContext{constructor(_0x11fd54,_0x2e42f0,_0x5dbeea){const _0x17e4d1=a9_0x5be76d;this[_0x17e4d1(0x8f)]=[],this[_0x17e4d1(0x87)]=_0x5dbeea,this['useSubdirectories']=!!_0x2e42f0,this[_0x17e4d1(0x94)]=this[_0x17e4d1(0x92)](_0x11fd54),this[_0x17e4d1(0x83)](this[_0x17e4d1(0x94)]);}['__findDirectory'](_0x29aeba){const _0x370fdd=a9_0x5be76d;if(path[_0x370fdd(0x84)](_0x29aeba)||!module[_0x370fdd(0x9b)])return _0x29aeba;return path['normalize'](path[_0x370fdd(0x9a)](path[_0x370fdd(0x98)](module[_0x370fdd(0x9b)]['filename'])[_0x370fdd(0x8d)],_0x29aeba));}['__findModules'](_0xe51677){const _0x55f52f=a9_0x5be76d;if(fs[_0x55f52f(0x8e)](_0xe51677))fs[_0x55f52f(0x8b)](_0xe51677)[_0x55f52f(0x85)](_0x433261=>{const _0x4b0797=_0x55f52f,_0x3ae834=path['resolve'](_0xe51677,_0x433261);if(fs[_0x4b0797(0x96)](_0x3ae834)[_0x4b0797(0xa2)]()){if(this[_0x4b0797(0xa0)]){this['__findModules'](_0x3ae834);return;}}else{if(this[_0x4b0797(0x87)]&&!this[_0x4b0797(0x87)][_0x4b0797(0x8a)](_0x3ae834))return;this[_0x4b0797(0x8f)][_0x4b0797(0x95)](_0x3ae834);}});else throw new Error(_0x55f52f(0x90)+_0xe51677);}}function globDir(_0x3335b7='.',_0x7344e6=![],_0xe9707e=/(?:)/,_0x592a3e){const _0x1e579a=a9_0x5be76d,_0x428e28=new RequireContext(_0x3335b7,_0x7344e6,_0xe9707e);if(_0x592a3e){const _0x43ad32=_0x5e254c=>fs['readFileSync'](_0x5e254c,_0x592a3e);return _0x43ad32[_0x1e579a(0x88)]=()=>[..._0x428e28[_0x1e579a(0x8f)]],_0x43ad32;}else{const _0x700973=_0x2e1667=>require(_0x2e1667);return _0x700973[_0x1e579a(0x88)]=()=>[..._0x428e28[_0x1e579a(0x8f)]],_0x700973;}}exports[a9_0x5be76d(0xa1)]=globDir;function a9_0x2287(){const _0x58285e=['defineProperty','dir','existsSync','modules','Can\x27t\x20Found\x20Module\x20','252OzonkV','__findDirectory','11411MoDxUV','directory','push','statSync','7544072WQUraJ','parse','1826734MmfNCJ','join','parent','145icHWVG','362370wNiZuR','1704600jqApcm','path','useSubdirectories','globDir','isDirectory','5510952wntYkk','8uAajbw','__findModules','isAbsolute','forEach','9344DFtDmK','regExp','keys','__esModule','test','readdirSync'];a9_0x2287=function(){return _0x58285e;};return a9_0x2287();}
@@ -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_0xc1bfe1=a10_0x3770;function a10_0x1808(){const _0x333f23=['default','3043617weTWuO','40206fbJNzd','defaultsDeep','33902484ZDWtJS','55exABbx','4oQwVwG','get','28470mUUSPt','310cbiFUx','4154234oANZAM','17rhuHYt','376758cAXjZL','__esModule','defineProperty','3564848AfXrHS','include'];a10_0x1808=function(){return _0x333f23;};return a10_0x1808();}(function(_0x38792b,_0x3c30aa){const _0x48dbd0=a10_0x3770,_0xb857a8=_0x38792b();while(!![]){try{const _0x3039ec=parseInt(_0x48dbd0(0x1ca))/0x1*(parseInt(_0x48dbd0(0x1c7))/0x2)+-parseInt(_0x48dbd0(0x1d1))/0x3*(parseInt(_0x48dbd0(0x1c5))/0x4)+-parseInt(_0x48dbd0(0x1c4))/0x5*(parseInt(_0x48dbd0(0x1d2))/0x6)+-parseInt(_0x48dbd0(0x1c9))/0x7+parseInt(_0x48dbd0(0x1ce))/0x8+-parseInt(_0x48dbd0(0x1cb))/0x9*(parseInt(_0x48dbd0(0x1c8))/0xa)+parseInt(_0x48dbd0(0x1d4))/0xb;if(_0x3039ec===_0x3c30aa)break;else _0xb857a8['push'](_0xb857a8['shift']());}catch(_0xc9e49e){_0xb857a8['push'](_0xb857a8['shift']());}}}(a10_0x1808,0xc0ec3));Object[a10_0xc1bfe1(0x1cd)](exports,a10_0xc1bfe1(0x1cc),{'value':!![]}),exports[a10_0xc1bfe1(0x1cf)]=void 0x0;const jiti=require('jiti'),lodash_1=require('lodash');function include(_0x5b9322){const _0xf92844=a10_0xc1bfe1,_0x49640c={},_0x53f248=jiti()(_0x5b9322);for(let _0x1ee96d in _0x53f248){_0x1ee96d!=_0xf92844(0x1d0)&&(0x0,lodash_1[_0xf92844(0x1d3)])(_0x49640c,{[_0x1ee96d]:_0x53f248[_0x1ee96d]});}return(0x0,lodash_1[_0xf92844(0x1d3)])(_0x49640c,(0x0,lodash_1[_0xf92844(0x1c6)])(_0x53f248,_0xf92844(0x1d0),{}));}function a10_0x3770(_0xc82f7c,_0x43c1e6){const _0x18080c=a10_0x1808();return a10_0x3770=function(_0x37703d,_0x4fbb9d){_0x37703d=_0x37703d-0x1c4;let _0x2ceb30=_0x18080c[_0x37703d];return _0x2ceb30;},a10_0x3770(_0xc82f7c,_0x43c1e6);}exports[a10_0xc1bfe1(0x1cf)]=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_0xd9f85a=a11_0x5f48;function a11_0x2c5a(){var _0x163d66=['349371IxNtui','16795UEtazP','259077bDmifd','848OoxXmf','19167082NjFeyf','__esModule','5880cVoOpe','148085lBmFuW','2128916dSUSRP','sleep','1548vuBeLR','defineProperty','24XvvmYu','220RiKgvY'];a11_0x2c5a=function(){return _0x163d66;};return a11_0x2c5a();}(function(_0x145958,_0x151119){var _0x3ae148=a11_0x5f48,_0x27e61b=_0x145958();while(!![]){try{var _0x3a4bf4=parseInt(_0x3ae148(0x1d3))/0x1+-parseInt(_0x3ae148(0x1d4))/0x2+-parseInt(_0x3ae148(0x1d2))/0x3*(parseInt(_0x3ae148(0x1cf))/0x4)+parseInt(_0x3ae148(0x1cd))/0x5*(parseInt(_0x3ae148(0x1d6))/0x6)+parseInt(_0x3ae148(0x1ce))/0x7*(parseInt(_0x3ae148(0x1ca))/0x8)+-parseInt(_0x3ae148(0x1cc))/0x9*(parseInt(_0x3ae148(0x1cb))/0xa)+parseInt(_0x3ae148(0x1d0))/0xb;if(_0x3a4bf4===_0x151119)break;else _0x27e61b['push'](_0x27e61b['shift']());}catch(_0x3fc0bb){_0x27e61b['push'](_0x27e61b['shift']());}}}(a11_0x2c5a,0x826be));function a11_0x5f48(_0x3321bf,_0x34f770){var _0x2c5ac8=a11_0x2c5a();return a11_0x5f48=function(_0x5f4841,_0x553653){_0x5f4841=_0x5f4841-0x1ca;var _0x446cf8=_0x2c5ac8[_0x5f4841];return _0x446cf8;},a11_0x5f48(_0x3321bf,_0x34f770);}Object[a11_0xd9f85a(0x1d7)](exports,a11_0xd9f85a(0x1d1),{'value':!![]}),exports[a11_0xd9f85a(0x1d5)]=void 0x0;function sleep(_0x19ac80=0xc8){return new Promise(_0x4205d4=>setTimeout(_0x4205d4,_0x19ac80));}exports[a11_0xd9f85a(0x1d5)]=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';function a12_0x2a1a(_0x59125d,_0x377dae){const _0xc332a4=a12_0xc332();return a12_0x2a1a=function(_0x2a1a2e,_0x3a5783){_0x2a1a2e=_0x2a1a2e-0xf9;let _0x10b363=_0xc332a4[_0x2a1a2e];return _0x10b363;},a12_0x2a1a(_0x59125d,_0x377dae);}const a12_0x490364=a12_0x2a1a;(function(_0x54b1c6,_0x1f4d05){const _0x3c8878=a12_0x2a1a,_0x583a85=_0x54b1c6();while(!![]){try{const _0x30299e=-parseInt(_0x3c8878(0xf9))/0x1+parseInt(_0x3c8878(0x101))/0x2*(-parseInt(_0x3c8878(0xfb))/0x3)+-parseInt(_0x3c8878(0x116))/0x4*(parseInt(_0x3c8878(0x102))/0x5)+-parseInt(_0x3c8878(0x100))/0x6+-parseInt(_0x3c8878(0x117))/0x7+-parseInt(_0x3c8878(0x109))/0x8*(-parseInt(_0x3c8878(0x106))/0x9)+-parseInt(_0x3c8878(0x103))/0xa*(-parseInt(_0x3c8878(0x10b))/0xb);if(_0x30299e===_0x1f4d05)break;else _0x583a85['push'](_0x583a85['shift']());}catch(_0x155d15){_0x583a85['push'](_0x583a85['shift']());}}}(a12_0xc332,0x3f38e));Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a12_0x490364(0x10c)]=exports[a12_0x490364(0xfe)]=exports[a12_0x490364(0xfc)]=exports[a12_0x490364(0x108)]=exports[a12_0x490364(0x11e)]=exports[a12_0x490364(0xfd)]=exports[a12_0x490364(0xfa)]=exports[a12_0x490364(0x119)]=exports[a12_0x490364(0x11b)]=exports[a12_0x490364(0x104)]=exports[a12_0x490364(0xff)]=exports[a12_0x490364(0x114)]=exports[a12_0x490364(0x10f)]=exports['sleep']=exports['dayjs']=exports[a12_0x490364(0x11d)]=exports['mathjs']=exports[a12_0x490364(0x11a)]=exports[a12_0x490364(0x10a)]=exports[a12_0x490364(0x112)]=void 0x0;const dayjs=require(a12_0x490364(0x105));exports[a12_0x490364(0x105)]=dayjs;const urllib=require('urllib');exports[a12_0x490364(0x10a)]=urllib;const mathjs=require(a12_0x490364(0x10e));exports[a12_0x490364(0x10e)]=mathjs;const lodash=require('lodash');exports[a12_0x490364(0x11d)]=lodash;const fsplus=require('fs-extra');exports[a12_0x490364(0x11a)]=fsplus;const collect_js_1=require('collect.js');function a12_0xc332(){const _0x3340ee=['2423508vLtNHM','174574jVCZGW','2050XClyQN','4020aEEMan','fileMd5','dayjs','45vlLSPk','./decorator/AnnErrorMsg','getAnnErrorMsg','32632pTsDnh','urllib','47146dyGFxP','AnnErrorRender','sleep','mathjs','collect','./helper/include','./helper/sleep','Configuration','./helper/fileMd5','include','defineProperty','4040ecZNfN','1043119JjWAVL','./exception/AnnErrorRender','getAnnEnumMsg','fsplus','AnnEnumMsg','CustomConfiguration','lodash','AnnErrorMsg','255513mgvxgB','getAnnEnumList','9VVRAbH','getAnnErrorList','getAnnEnumArray','AnnError','globDir'];a12_0xc332=function(){return _0x3340ee;};return a12_0xc332();}Object['defineProperty'](exports,'collect',{'enumerable':!![],'get':function(){return collect_js_1['collect'];}});const sleep_1=require(a12_0x490364(0x111));Object[a12_0x490364(0x115)](exports,a12_0x490364(0x10d),{'enumerable':!![],'get':function(){return sleep_1['sleep'];}});const include_1=require(a12_0x490364(0x110));Object[a12_0x490364(0x115)](exports,a12_0x490364(0x114),{'enumerable':!![],'get':function(){const _0x5b2835=a12_0x490364;return include_1[_0x5b2835(0x114)];}});const globDir_1=require('./helper/globDir');Object[a12_0x490364(0x115)](exports,a12_0x490364(0xff),{'enumerable':!![],'get':function(){const _0x4e60d0=a12_0x490364;return globDir_1[_0x4e60d0(0xff)];}});const fileMd5_1=require(a12_0x490364(0x113));Object[a12_0x490364(0x115)](exports,'fileMd5',{'enumerable':!![],'get':function(){const _0x245ded=a12_0x490364;return fileMd5_1[_0x245ded(0x104)];}});const AnnError_1=require('./exception/AnnError');Object[a12_0x490364(0x115)](exports,a12_0x490364(0xfe),{'enumerable':!![],'get':function(){const _0x1fb9c2=a12_0x490364;return AnnError_1[_0x1fb9c2(0xfe)];}});const AnnErrorRender_1=require(a12_0x490364(0x118));Object[a12_0x490364(0x115)](exports,a12_0x490364(0x10c),{'enumerable':!![],'get':function(){return AnnErrorRender_1['AnnErrorRender'];}});const AnnErrorMsg_1=require(a12_0x490364(0x107));Object[a12_0x490364(0x115)](exports,a12_0x490364(0x11e),{'enumerable':!![],'get':function(){const _0x2513d7=a12_0x490364;return AnnErrorMsg_1[_0x2513d7(0x11e)];}}),Object[a12_0x490364(0x115)](exports,a12_0x490364(0x108),{'enumerable':!![],'get':function(){return AnnErrorMsg_1['getAnnErrorMsg'];}}),Object[a12_0x490364(0x115)](exports,'getAnnErrorList',{'enumerable':!![],'get':function(){const _0x28045c=a12_0x490364;return AnnErrorMsg_1[_0x28045c(0xfc)];}});const AnnEnumMsg_1=require('./decorator/AnnEnumMsg');Object[a12_0x490364(0x115)](exports,a12_0x490364(0x11b),{'enumerable':!![],'get':function(){return AnnEnumMsg_1['AnnEnumMsg'];}}),Object['defineProperty'](exports,a12_0x490364(0x119),{'enumerable':!![],'get':function(){return AnnEnumMsg_1['getAnnEnumMsg'];}}),Object[a12_0x490364(0x115)](exports,a12_0x490364(0xfa),{'enumerable':!![],'get':function(){const _0x3d7a5a=a12_0x490364;return AnnEnumMsg_1[_0x3d7a5a(0xfa)];}}),Object[a12_0x490364(0x115)](exports,a12_0x490364(0xfd),{'enumerable':!![],'get':function(){return AnnEnumMsg_1['getAnnEnumArray'];}});var configuration_1=require('./configuration');Object[a12_0x490364(0x115)](exports,'Configuration',{'enumerable':!![],'get':function(){const _0x4a2927=a12_0x490364;return configuration_1[_0x4a2927(0x11c)];}}),(global['urllib']=urllib,global[a12_0x490364(0x11a)]=fsplus,global[a12_0x490364(0x10e)]=mathjs,global[a12_0x490364(0x11d)]=lodash),(global[a12_0x490364(0x105)]=dayjs,global['sleep']=sleep_1['sleep'],global[a12_0x490364(0x10f)]=collect_js_1[a12_0x490364(0x10f)],global['include']=include_1[a12_0x490364(0x114)],global[a12_0x490364(0xff)]=globDir_1[a12_0x490364(0xff)],global[a12_0x490364(0x104)]=fileMd5_1[a12_0x490364(0x104)]),(global['AnnEnumMsg']=AnnEnumMsg_1[a12_0x490364(0x11b)],global[a12_0x490364(0x119)]=AnnEnumMsg_1[a12_0x490364(0x119)],global[a12_0x490364(0xfa)]=AnnEnumMsg_1[a12_0x490364(0xfa)],global[a12_0x490364(0xfd)]=AnnEnumMsg_1[a12_0x490364(0xfd)]),(global[a12_0x490364(0x11e)]=AnnErrorMsg_1[a12_0x490364(0x11e)],global[a12_0x490364(0x108)]=AnnErrorMsg_1[a12_0x490364(0x108)],global['getAnnErrorList']=AnnErrorMsg_1[a12_0x490364(0xfc)],global[a12_0x490364(0xfe)]=AnnError_1[a12_0x490364(0xfe)],global['AnnErrorRender']=AnnErrorRender_1[a12_0x490364(0x10c)]);
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
  };
@@ -31,12 +34,10 @@ declare global { // 全局变量设置
31
34
  keys(): any[];
32
35
  };
33
36
 
34
- export function AnnEnumMsg(message: string, type?: string): PropertyDecorator;
35
- export function getAnnEnumMsg(target: any, code: number, type?: string): string;
36
- export function getAnnEnumArray(target: any, filters?: number[], type?: string): number[];
37
- export function getAnnEnumList(target: any, type?: string): {
38
- [key: number]: string;
39
- };
37
+ export function AnnEnumMsg(field: string, message: string): PropertyDecorator;
38
+ export function getAnnEnumMsg(target: any, field: string, code: number | string): string;
39
+ export function getAnnEnumList(target: any, field: string): { [key: string]: string; [key: number]: string; };
40
+ export function getAnnEnumArray(target: any, field: string, filters?: Array<number | string>): (string | number)[];
40
41
 
41
42
  export function AnnErrorMsg(message: string): PropertyDecorator;
42
43
  export function getAnnErrorMsg(code: number): string;
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.11",
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": "17c114c579d7fe94caf96b0d4c89892c4813c11f"
45
45
  }