@anncic-api/core 1.0.6 → 1.0.9

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_0x4ad2(){const _0x56e8d6=['8CxYoTr','stat','2912010eIswTi','defineProperty','fileMd5','hex','28MzKRZw','19134mUeTEh','424396zBQiNG','4000LzvIOy','bind','digest','md5','createReadStream','isFile','918972fZatKW','__esModule','29076VzKSmV','1044gMungw','createHash','183260fAfARI'];a8_0x4ad2=function(){return _0x56e8d6;};return a8_0x4ad2();}const a8_0x45e003=a8_0x477d;function a8_0x477d(_0xf8e4d8,_0x9d389d){const _0x4ad2cb=a8_0x4ad2();return a8_0x477d=function(_0x477d5a,_0x3e01a7){_0x477d5a=_0x477d5a-0x19d;let _0x1638d5=_0x4ad2cb[_0x477d5a];return _0x1638d5;},a8_0x477d(_0xf8e4d8,_0x9d389d);}(function(_0x4a8d6a,_0x32d738){const _0x170f95=a8_0x477d,_0xf8e983=_0x4a8d6a();while(!![]){try{const _0x2a17e5=-parseInt(_0x170f95(0x1b0))/0x1*(-parseInt(_0x170f95(0x1af))/0x2)+-parseInt(_0x170f95(0x1a5))/0x3*(parseInt(_0x170f95(0x1a9))/0x4)+parseInt(_0x170f95(0x1a8))/0x5+parseInt(_0x170f95(0x1a3))/0x6+parseInt(_0x170f95(0x1b1))/0x7+parseInt(_0x170f95(0x19d))/0x8*(-parseInt(_0x170f95(0x1a6))/0x9)+-parseInt(_0x170f95(0x1ab))/0xa;if(_0x2a17e5===_0x32d738)break;else _0xf8e983['push'](_0xf8e983['shift']());}catch(_0x410f9e){_0xf8e983['push'](_0xf8e983['shift']());}}}(a8_0x4ad2,0x248e5));Object[a8_0x45e003(0x1ac)](exports,a8_0x45e003(0x1a4),{'value':!![]}),exports[a8_0x45e003(0x1ad)]=void 0x0;const fs=require('fs'),crypto=require('crypto');function fileMd5(_0x5d2ac0){return new Promise((_0x3a575c,_0x17ccce)=>{const _0x18a83e=a8_0x477d;fs[_0x18a83e(0x1aa)](_0x5d2ac0,(_0x7d460e,_0xd8f431)=>{const _0xed37e8=_0x18a83e;if(_0x7d460e)return _0x17ccce(_0x7d460e);if(!_0xd8f431[_0xed37e8(0x1a2)]())return _0x17ccce(new Error(_0x5d2ac0+'\x20is\x20not\x20file'));const _0x76e8db=crypto[_0xed37e8(0x1a7)](_0xed37e8(0x1a0)),_0x3454ff=fs[_0xed37e8(0x1a1)](_0x5d2ac0);_0x3454ff['on']('data',_0x76e8db['update'][_0xed37e8(0x19e)](_0x76e8db)),_0x3454ff['on']('error',_0x59e52c=>_0x17ccce(_0x59e52c)),_0x3454ff['on']('end',()=>_0x3a575c(_0x76e8db[_0xed37e8(0x19f)](_0xed37e8(0x1ae))));});});}exports[a8_0x45e003(0x1ad)]=fileMd5;
@@ -1 +1 @@
1
- 'use strict';function a8_0x3e04(){const _0x132dad=['156pDUMqk','modules','normalize','isAbsolute','existsSync','1361246QsweMT','readFileSync','9702162eYzYCr','directory','10BQXJKU','Can\x27t\x20Found\x20Module\x20','readdirSync','1563693RBYOyK','path','__esModule','13313760sODPXj','1824472fyhoGp','filename','resolve','statSync','globDir','191715RaWoXH','regExp','test','469kUSsni','__findDirectory','keys','parse','51834lbbVDL','__findModules','join','defineProperty'];a8_0x3e04=function(){return _0x132dad;};return a8_0x3e04();}const a8_0xf84a6e=a8_0x1b18;(function(_0x522e7a,_0x41ce21){const _0x9442ba=a8_0x1b18,_0x3b8f75=_0x522e7a();while(!![]){try{const _0x384a27=-parseInt(_0x9442ba(0x1e9))/0x1+-parseInt(_0x9442ba(0x1f4))/0x2+-parseInt(_0x9442ba(0x1f0))/0x3+-parseInt(_0x9442ba(0x1e4))/0x4*(-parseInt(_0x9442ba(0x1d9))/0x5)+parseInt(_0x9442ba(0x1e0))/0x6*(-parseInt(_0x9442ba(0x1dc))/0x7)+parseInt(_0x9442ba(0x1f3))/0x8+parseInt(_0x9442ba(0x1eb))/0x9*(parseInt(_0x9442ba(0x1ed))/0xa);if(_0x384a27===_0x41ce21)break;else _0x3b8f75['push'](_0x3b8f75['shift']());}catch(_0x5440c9){_0x3b8f75['push'](_0x3b8f75['shift']());}}}(a8_0x3e04,0xd2f59));Object[a8_0xf84a6e(0x1e3)](exports,a8_0xf84a6e(0x1f2),{'value':!![]}),exports[a8_0xf84a6e(0x1d8)]=void 0x0;function a8_0x1b18(_0x207570,_0x2db1fc){const _0x3e047d=a8_0x3e04();return a8_0x1b18=function(_0x1b18e5,_0x118ce9){_0x1b18e5=_0x1b18e5-0x1d7;let _0x19d3f1=_0x3e047d[_0x1b18e5];return _0x19d3f1;},a8_0x1b18(_0x207570,_0x2db1fc);}const fs=require('fs'),path=require(a8_0xf84a6e(0x1f1));class RequireContext{constructor(_0x2cb99b,_0xf5bc54,_0x12e999){const _0xb57acc=a8_0xf84a6e;this['modules']=[],this[_0xb57acc(0x1da)]=_0x12e999,this['useSubdirectories']=!!_0xf5bc54,this[_0xb57acc(0x1ec)]=this[_0xb57acc(0x1dd)](_0x2cb99b),this[_0xb57acc(0x1e1)](this[_0xb57acc(0x1ec)]);}[a8_0xf84a6e(0x1dd)](_0x51e1b7){const _0x464da5=a8_0xf84a6e;if(path[_0x464da5(0x1e7)](_0x51e1b7)||!module['parent'])return _0x51e1b7;return path[_0x464da5(0x1e6)](path[_0x464da5(0x1e2)](path[_0x464da5(0x1df)](module['parent'][_0x464da5(0x1f5)])['dir'],_0x51e1b7));}[a8_0xf84a6e(0x1e1)](_0x3a53f2){const _0x19259d=a8_0xf84a6e;if(fs[_0x19259d(0x1e8)](_0x3a53f2))fs[_0x19259d(0x1ef)](_0x3a53f2)['forEach'](_0x2e33be=>{const _0x3a3494=_0x19259d,_0x395821=path[_0x3a3494(0x1f6)](_0x3a53f2,_0x2e33be);if(fs[_0x3a3494(0x1d7)](_0x395821)['isDirectory']()){if(this['useSubdirectories']){this[_0x3a3494(0x1e1)](_0x395821);return;}}else{if(this['regExp']&&!this[_0x3a3494(0x1da)][_0x3a3494(0x1db)](_0x395821))return;this[_0x3a3494(0x1e5)]['push'](_0x395821);}});else throw new Error(_0x19259d(0x1ee)+_0x3a53f2);}}function globDir(_0x112bfc='.',_0x332eb3=![],_0x22eae2=/(?:)/,_0x33c61e){const _0x2ff149=a8_0xf84a6e,_0x426123=new RequireContext(_0x112bfc,_0x332eb3,_0x22eae2);if(_0x33c61e){const _0x48cbff=_0x370051=>fs[_0x2ff149(0x1ea)](_0x370051,_0x33c61e);return _0x48cbff[_0x2ff149(0x1de)]=()=>[..._0x426123['modules']],_0x48cbff;}else{const _0x35d19f=_0x4c8ad1=>require(_0x4c8ad1);return _0x35d19f[_0x2ff149(0x1de)]=()=>[..._0x426123[_0x2ff149(0x1e5)]],_0x35d19f;}}exports['globDir']=globDir;
1
+ 'use strict';const a9_0x575f85=a9_0x9dfa;(function(_0x17d5f5,_0x2c02c9){const _0x2025b2=a9_0x9dfa,_0x1240db=_0x17d5f5();while(!![]){try{const _0x55bc2a=parseInt(_0x2025b2(0x13d))/0x1*(-parseInt(_0x2025b2(0x124))/0x2)+-parseInt(_0x2025b2(0x12b))/0x3*(parseInt(_0x2025b2(0x12d))/0x4)+-parseInt(_0x2025b2(0x12e))/0x5*(parseInt(_0x2025b2(0x127))/0x6)+parseInt(_0x2025b2(0x12c))/0x7+parseInt(_0x2025b2(0x125))/0x8*(-parseInt(_0x2025b2(0x13a))/0x9)+parseInt(_0x2025b2(0x129))/0xa+parseInt(_0x2025b2(0x139))/0xb;if(_0x55bc2a===_0x2c02c9)break;else _0x1240db['push'](_0x1240db['shift']());}catch(_0x58fa60){_0x1240db['push'](_0x1240db['shift']());}}}(a9_0x2990,0x386a9));Object['defineProperty'](exports,a9_0x575f85(0x11e),{'value':!![]}),exports['globDir']=void 0x0;function a9_0x9dfa(_0x1d470b,_0x2ce221){const _0x299008=a9_0x2990();return a9_0x9dfa=function(_0x9dfae3,_0x12b609){_0x9dfae3=_0x9dfae3-0x11d;let _0x28830d=_0x299008[_0x9dfae3];return _0x28830d;},a9_0x9dfa(_0x1d470b,_0x2ce221);}const fs=require('fs'),path=require(a9_0x575f85(0x135));class RequireContext{constructor(_0x291d4d,_0x389722,_0x174f88){const _0x3df9cb=a9_0x575f85;this['modules']=[],this[_0x3df9cb(0x13c)]=_0x174f88,this[_0x3df9cb(0x137)]=!!_0x389722,this[_0x3df9cb(0x11d)]=this['__findDirectory'](_0x291d4d),this[_0x3df9cb(0x132)](this[_0x3df9cb(0x11d)]);}[a9_0x575f85(0x123)](_0x512f29){const _0x2dea19=a9_0x575f85;if(path[_0x2dea19(0x133)](_0x512f29)||!module['parent'])return _0x512f29;return path[_0x2dea19(0x13f)](path[_0x2dea19(0x12f)](path['parse'](module[_0x2dea19(0x121)]['filename'])[_0x2dea19(0x122)],_0x512f29));}[a9_0x575f85(0x132)](_0x126d24){const _0x30035a=a9_0x575f85;if(fs[_0x30035a(0x12a)](_0x126d24))fs['readdirSync'](_0x126d24)[_0x30035a(0x138)](_0x5ce9cc=>{const _0xd43b0a=_0x30035a,_0x52d831=path[_0xd43b0a(0x134)](_0x126d24,_0x5ce9cc);if(fs[_0xd43b0a(0x13e)](_0x52d831)[_0xd43b0a(0x131)]()){if(this[_0xd43b0a(0x137)]){this[_0xd43b0a(0x132)](_0x52d831);return;}}else{if(this['regExp']&&!this[_0xd43b0a(0x13c)][_0xd43b0a(0x128)](_0x52d831))return;this['modules'][_0xd43b0a(0x126)](_0x52d831);}});else throw new Error(_0x30035a(0x120)+_0x126d24);}}function globDir(_0x199bc6='.',_0x3743bd=![],_0x50cd8c=/(?:)/,_0x24852){const _0x34538e=a9_0x575f85,_0x2affc8=new RequireContext(_0x199bc6,_0x3743bd,_0x50cd8c);if(_0x24852){const _0x4546fc=_0x55a8c6=>fs[_0x34538e(0x136)](_0x55a8c6,_0x24852);return _0x4546fc[_0x34538e(0x11f)]=()=>[..._0x2affc8[_0x34538e(0x130)]],_0x4546fc;}else{const _0x4c6a71=_0x2e205b=>require(_0x2e205b);return _0x4c6a71['keys']=()=>[..._0x2affc8[_0x34538e(0x130)]],_0x4c6a71;}}function a9_0x2990(){const _0x186938=['__findDirectory','12DwhBbO','8GVNpId','push','391584HdOwwb','test','2306250DyBGRR','existsSync','2763eVKuoi','2194696HuYEGI','1840SMSJFa','25WpwUar','join','modules','isDirectory','__findModules','isAbsolute','resolve','path','readFileSync','useSubdirectories','forEach','8287411ffEcAj','1425591eZRmNz','globDir','regExp','26349KwDVNS','statSync','normalize','directory','__esModule','keys','Can\x27t\x20Found\x20Module\x20','parent','dir'];a9_0x2990=function(){return _0x186938;};return a9_0x2990();}exports[a9_0x575f85(0x13b)]=globDir;
@@ -1 +1 @@
1
- 'use strict';const a9_0x304f19=a9_0x1dbf;(function(_0x468aa9,_0x4c1d14){const _0x45e1ef=a9_0x1dbf,_0x20fe79=_0x468aa9();while(!![]){try{const _0x3431e5=parseInt(_0x45e1ef(0x135))/0x1+parseInt(_0x45e1ef(0x132))/0x2+parseInt(_0x45e1ef(0x12e))/0x3*(parseInt(_0x45e1ef(0x12c))/0x4)+-parseInt(_0x45e1ef(0x131))/0x5+-parseInt(_0x45e1ef(0x137))/0x6+-parseInt(_0x45e1ef(0x12a))/0x7+parseInt(_0x45e1ef(0x12f))/0x8;if(_0x3431e5===_0x4c1d14)break;else _0x20fe79['push'](_0x20fe79['shift']());}catch(_0x1e7ddf){_0x20fe79['push'](_0x20fe79['shift']());}}}(a9_0x2a8c,0xa60d4));function a9_0x2a8c(){const _0x2dd5fb=['include','188QAwqje','default','72645kqhgcj','15977880nCnwPg','defaultsDeep','5834660AsVviz','1046456fvQmsW','defineProperty','get','266808UCoZqr','jiti','6764736OHSqFH','__esModule','6655880tpCRYC'];a9_0x2a8c=function(){return _0x2dd5fb;};return a9_0x2a8c();}Object[a9_0x304f19(0x133)](exports,a9_0x304f19(0x129),{'value':!![]}),exports[a9_0x304f19(0x12b)]=void 0x0;const jiti=require(a9_0x304f19(0x136)),lodash_1=require('lodash');function include(_0x3f525e){const _0x1667d3=a9_0x304f19,_0x5ee2f6={},_0x26d1d1=jiti()(_0x3f525e);for(let _0xce1b9b in _0x26d1d1){_0xce1b9b!=_0x1667d3(0x12d)&&(0x0,lodash_1[_0x1667d3(0x130)])(_0x5ee2f6,{[_0xce1b9b]:_0x26d1d1[_0xce1b9b]});}return(0x0,lodash_1[_0x1667d3(0x130)])(_0x5ee2f6,(0x0,lodash_1[_0x1667d3(0x134)])(_0x26d1d1,'default',{}));}function a9_0x1dbf(_0x77f4eb,_0x1a36d3){const _0x2a8cb6=a9_0x2a8c();return a9_0x1dbf=function(_0x1dbf40,_0x551fdd){_0x1dbf40=_0x1dbf40-0x129;let _0x1f9e67=_0x2a8cb6[_0x1dbf40];return _0x1f9e67;},a9_0x1dbf(_0x77f4eb,_0x1a36d3);}exports[a9_0x304f19(0x12b)]=include;
1
+ 'use strict';const a10_0x15a180=a10_0x33f8;(function(_0x8323ab,_0x2aef82){const _0x241b5d=a10_0x33f8,_0x44036d=_0x8323ab();while(!![]){try{const _0x2fe0f4=-parseInt(_0x241b5d(0x1b8))/0x1*(-parseInt(_0x241b5d(0x1b7))/0x2)+-parseInt(_0x241b5d(0x1bc))/0x3+-parseInt(_0x241b5d(0x1c2))/0x4*(-parseInt(_0x241b5d(0x1ba))/0x5)+parseInt(_0x241b5d(0x1b6))/0x6*(parseInt(_0x241b5d(0x1b4))/0x7)+-parseInt(_0x241b5d(0x1bd))/0x8+-parseInt(_0x241b5d(0x1c3))/0x9+-parseInt(_0x241b5d(0x1c0))/0xa;if(_0x2fe0f4===_0x2aef82)break;else _0x44036d['push'](_0x44036d['shift']());}catch(_0x189630){_0x44036d['push'](_0x44036d['shift']());}}}(a10_0x3730,0x854c5));function a10_0x33f8(_0x139aa1,_0x3001b9){const _0x37305c=a10_0x3730();return a10_0x33f8=function(_0x33f898,_0x40c992){_0x33f898=_0x33f898-0x1b4;let _0x548a3d=_0x37305c[_0x33f898];return _0x548a3d;},a10_0x33f8(_0x139aa1,_0x3001b9);}Object['defineProperty'](exports,a10_0x15a180(0x1b9),{'value':!![]}),exports[a10_0x15a180(0x1bb)]=void 0x0;const jiti=require(a10_0x15a180(0x1b5)),lodash_1=require(a10_0x15a180(0x1be));function include(_0xd5ec9b){const _0x591352=a10_0x15a180,_0x118149={},_0x4b85e0=jiti()(_0xd5ec9b);for(let _0x598eca in _0x4b85e0){_0x598eca!=_0x591352(0x1bf)&&(0x0,lodash_1[_0x591352(0x1c1)])(_0x118149,{[_0x598eca]:_0x4b85e0[_0x598eca]});}return(0x0,lodash_1[_0x591352(0x1c1)])(_0x118149,(0x0,lodash_1[_0x591352(0x1c4)])(_0x4b85e0,_0x591352(0x1bf),{}));}exports['include']=include;function a10_0x3730(){const _0x23be7d=['defaultsDeep','1962548ctCjOy','4198896leoiCc','get','161ooUsSd','jiti','151806yuAIHH','371744fmaaSA','2EMtRAY','__esModule','10xbxcbv','include','1092081uSXxFt','3854216btZHnM','lodash','default','766040WjHpzA'];a10_0x3730=function(){return _0x23be7d;};return a10_0x3730();}
@@ -1 +1 @@
1
- 'use strict';var a10_0x4f422d=a10_0x5317;function a10_0x5317(_0x481410,_0x96e27){var _0x171538=a10_0x1715();return a10_0x5317=function(_0x53173d,_0x232f36){_0x53173d=_0x53173d-0x9b;var _0x332349=_0x171538[_0x53173d];return _0x332349;},a10_0x5317(_0x481410,_0x96e27);}(function(_0x432033,_0xd8ac8a){var _0x475843=a10_0x5317,_0xff8b30=_0x432033();while(!![]){try{var _0x32c042=-parseInt(_0x475843(0x9c))/0x1+parseInt(_0x475843(0xa0))/0x2*(-parseInt(_0x475843(0xa3))/0x3)+parseInt(_0x475843(0x9b))/0x4*(-parseInt(_0x475843(0x9d))/0x5)+parseInt(_0x475843(0xa7))/0x6+parseInt(_0x475843(0x9f))/0x7*(-parseInt(_0x475843(0xa4))/0x8)+parseInt(_0x475843(0xa5))/0x9+parseInt(_0x475843(0xa6))/0xa*(parseInt(_0x475843(0xa1))/0xb);if(_0x32c042===_0xd8ac8a)break;else _0xff8b30['push'](_0xff8b30['shift']());}catch(_0x529d29){_0xff8b30['push'](_0xff8b30['shift']());}}}(a10_0x1715,0xebd93));Object[a10_0x4f422d(0xa8)](exports,a10_0x4f422d(0xa2),{'value':!![]}),exports[a10_0x4f422d(0x9e)]=void 0x0;function sleep(_0x586a8b=0xc8){return new Promise(_0x4936f0=>setTimeout(_0x4936f0,_0x586a8b));}exports[a10_0x4f422d(0x9e)]=sleep;function a10_0x1715(){var _0x1cd9f8=['__esModule','157977TNCFXT','2456upszLW','614277XijNlR','120LtHvRN','118968OzxHyr','defineProperty','5655316YaEeKq','1843857BgHaXd','5lZZHsl','sleep','28609HuQoTA','2EHhjfo','4989424XbgYwh'];a10_0x1715=function(){return _0x1cd9f8;};return a10_0x1715();}
1
+ 'use strict';var a11_0x3fed94=a11_0x50a6;function a11_0x50a6(_0x3c8e41,_0x33d200){var _0x51e3d1=a11_0x51e3();return a11_0x50a6=function(_0x50a6c5,_0x495b91){_0x50a6c5=_0x50a6c5-0x103;var _0x5acaba=_0x51e3d1[_0x50a6c5];return _0x5acaba;},a11_0x50a6(_0x3c8e41,_0x33d200);}(function(_0x4bae4f,_0x1f0ab2){var _0x3ca9f8=a11_0x50a6,_0x26f93e=_0x4bae4f();while(!![]){try{var _0x19eeff=parseInt(_0x3ca9f8(0x105))/0x1+parseInt(_0x3ca9f8(0x10e))/0x2+-parseInt(_0x3ca9f8(0x10c))/0x3*(parseInt(_0x3ca9f8(0x108))/0x4)+-parseInt(_0x3ca9f8(0x10d))/0x5+-parseInt(_0x3ca9f8(0x104))/0x6*(parseInt(_0x3ca9f8(0x103))/0x7)+parseInt(_0x3ca9f8(0x107))/0x8*(parseInt(_0x3ca9f8(0x10a))/0x9)+-parseInt(_0x3ca9f8(0x10f))/0xa;if(_0x19eeff===_0x1f0ab2)break;else _0x26f93e['push'](_0x26f93e['shift']());}catch(_0xbcf629){_0x26f93e['push'](_0x26f93e['shift']());}}}(a11_0x51e3,0x797e3));function a11_0x51e3(){var _0x141c41=['1854814OTvjNb','10538900AkioYH','106953RAuLzW','90ScABXK','713739GvIzFI','__esModule','84904INOSZn','84468ucNlHK','sleep','243LGumQm','defineProperty','6sCWvjo','523765OIJnRx'];a11_0x51e3=function(){return _0x141c41;};return a11_0x51e3();}Object[a11_0x3fed94(0x10b)](exports,a11_0x3fed94(0x106),{'value':!![]}),exports[a11_0x3fed94(0x109)]=void 0x0;function sleep(_0x2ae8d6=0xc8){return new Promise(_0x5a370f=>setTimeout(_0x5a370f,_0x2ae8d6));}exports['sleep']=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_0x1f0f2e=a11_0x13d0;(function(_0x124d64,_0x191209){const _0x55dd6b=a11_0x13d0,_0xb035d8=_0x124d64();while(!![]){try{const _0x59d6ca=-parseInt(_0x55dd6b(0xae))/0x1+-parseInt(_0x55dd6b(0xa6))/0x2*(-parseInt(_0x55dd6b(0x9c))/0x3)+-parseInt(_0x55dd6b(0x9b))/0x4+-parseInt(_0x55dd6b(0xb0))/0x5+-parseInt(_0x55dd6b(0xaa))/0x6+parseInt(_0x55dd6b(0xa3))/0x7*(parseInt(_0x55dd6b(0xbb))/0x8)+parseInt(_0x55dd6b(0x9e))/0x9;if(_0x59d6ca===_0x191209)break;else _0xb035d8['push'](_0xb035d8['shift']());}catch(_0xa0f626){_0xb035d8['push'](_0xb035d8['shift']());}}}(a11_0x36c4,0xe169d));Object['defineProperty'](exports,a11_0x1f0f2e(0xac),{'value':!![]}),exports[a11_0x1f0f2e(0xad)]=exports[a11_0x1f0f2e(0xb7)]=exports[a11_0x1f0f2e(0xab)]=exports['getAnnErrorMsg']=exports[a11_0x1f0f2e(0xba)]=exports[a11_0x1f0f2e(0xa8)]=exports[a11_0x1f0f2e(0xb8)]=exports[a11_0x1f0f2e(0x9a)]=exports[a11_0x1f0f2e(0xa2)]=exports['globDir']=exports[a11_0x1f0f2e(0x99)]=exports['collect']=exports[a11_0x1f0f2e(0xb4)]=exports[a11_0x1f0f2e(0xa1)]=exports['lodash']=exports[a11_0x1f0f2e(0xb5)]=exports[a11_0x1f0f2e(0xb6)]=exports[a11_0x1f0f2e(0xbc)]=void 0x0;const dayjs=require(a11_0x1f0f2e(0xa1));exports[a11_0x1f0f2e(0xa1)]=dayjs;function a11_0x13d0(_0x2398e1,_0x1f08cc){const _0x36c4fe=a11_0x36c4();return a11_0x13d0=function(_0x13d079,_0x3a87e4){_0x13d079=_0x13d079-0x99;let _0x420bfd=_0x36c4fe[_0x13d079];return _0x420bfd;},a11_0x13d0(_0x2398e1,_0x1f08cc);}const urllib=require(a11_0x1f0f2e(0xb6));exports[a11_0x1f0f2e(0xb6)]=urllib;const mathjs=require(a11_0x1f0f2e(0xb5));exports['mathjs']=mathjs;const lodash=require('lodash');exports['lodash']=lodash;const collect_js_1=require(a11_0x1f0f2e(0xa9));Object['defineProperty'](exports,a11_0x1f0f2e(0xa7),{'enumerable':!![],'get':function(){const _0x497a82=a11_0x1f0f2e;return collect_js_1[_0x497a82(0xa7)];}});const sleep_1=require(a11_0x1f0f2e(0x9d));Object['defineProperty'](exports,a11_0x1f0f2e(0xb4),{'enumerable':!![],'get':function(){const _0x4aa14a=a11_0x1f0f2e;return sleep_1[_0x4aa14a(0xb4)];}});const include_1=require('./helper/include');Object[a11_0x1f0f2e(0xb1)](exports,a11_0x1f0f2e(0x99),{'enumerable':!![],'get':function(){return include_1['include'];}});const globDir_1=require(a11_0x1f0f2e(0xa0));Object[a11_0x1f0f2e(0xb1)](exports,a11_0x1f0f2e(0xb2),{'enumerable':!![],'get':function(){const _0x361fc1=a11_0x1f0f2e;return globDir_1[_0x361fc1(0xb2)];}});const AnnError_1=require(a11_0x1f0f2e(0xb3));Object[a11_0x1f0f2e(0xb1)](exports,a11_0x1f0f2e(0xb7),{'enumerable':!![],'get':function(){const _0x40bd61=a11_0x1f0f2e;return AnnError_1[_0x40bd61(0xb7)];}});const AnnErrorRender_1=require('./exception/AnnErrorRender');Object['defineProperty'](exports,a11_0x1f0f2e(0xad),{'enumerable':!![],'get':function(){const _0x18d3ad=a11_0x1f0f2e;return AnnErrorRender_1[_0x18d3ad(0xad)];}});function a11_0x36c4(){const _0x5d0661=['./exception/AnnError','sleep','mathjs','urllib','AnnError','getAnnEnumList','lodash','AnnErrorMsg','440NtUqeE','Configuration','include','getAnnEnumMsg','673088POKPqC','141BeipqQ','./helper/sleep','24129369gZUpSZ','./configuration','./helper/globDir','dayjs','AnnEnumMsg','143696gxnPHt','getAnnErrorMsg','./decorator/AnnEnumMsg','59236ImXNtl','collect','getAnnEnumArray','collect.js','6644382bUxsPB','getAnnErrorList','__esModule','AnnErrorRender','1611837XIxHLs','./decorator/AnnErrorMsg','6956640NTQHhw','defineProperty','globDir'];a11_0x36c4=function(){return _0x5d0661;};return a11_0x36c4();}const AnnErrorMsg_1=require(a11_0x1f0f2e(0xaf));Object[a11_0x1f0f2e(0xb1)](exports,a11_0x1f0f2e(0xba),{'enumerable':!![],'get':function(){const _0x38bcb5=a11_0x1f0f2e;return AnnErrorMsg_1[_0x38bcb5(0xba)];}}),Object['defineProperty'](exports,a11_0x1f0f2e(0xa4),{'enumerable':!![],'get':function(){return AnnErrorMsg_1['getAnnErrorMsg'];}}),Object['defineProperty'](exports,a11_0x1f0f2e(0xab),{'enumerable':!![],'get':function(){return AnnErrorMsg_1['getAnnErrorList'];}});const AnnEnumMsg_1=require(a11_0x1f0f2e(0xa5));Object[a11_0x1f0f2e(0xb1)](exports,'AnnEnumMsg',{'enumerable':!![],'get':function(){const _0x56c2d9=a11_0x1f0f2e;return AnnEnumMsg_1[_0x56c2d9(0xa2)];}}),Object[a11_0x1f0f2e(0xb1)](exports,a11_0x1f0f2e(0x9a),{'enumerable':!![],'get':function(){return AnnEnumMsg_1['getAnnEnumMsg'];}}),Object[a11_0x1f0f2e(0xb1)](exports,a11_0x1f0f2e(0xb8),{'enumerable':!![],'get':function(){const _0x1fade6=a11_0x1f0f2e;return AnnEnumMsg_1[_0x1fade6(0xb8)];}}),Object['defineProperty'](exports,'getAnnEnumArray',{'enumerable':!![],'get':function(){const _0x274760=a11_0x1f0f2e;return AnnEnumMsg_1[_0x274760(0xa8)];}});var configuration_1=require(a11_0x1f0f2e(0x9f));Object['defineProperty'](exports,a11_0x1f0f2e(0xbc),{'enumerable':!![],'get':function(){return configuration_1['CustomConfiguration'];}}),(global[a11_0x1f0f2e(0xb6)]=urllib,global[a11_0x1f0f2e(0xb5)]=mathjs,global[a11_0x1f0f2e(0xb9)]=lodash),(global[a11_0x1f0f2e(0xa1)]=dayjs,global['sleep']=sleep_1[a11_0x1f0f2e(0xb4)],global['collect']=collect_js_1['collect'],global[a11_0x1f0f2e(0x99)]=include_1[a11_0x1f0f2e(0x99)],global[a11_0x1f0f2e(0xb2)]=globDir_1[a11_0x1f0f2e(0xb2)]),(global[a11_0x1f0f2e(0xa2)]=AnnEnumMsg_1['AnnEnumMsg'],global[a11_0x1f0f2e(0x9a)]=AnnEnumMsg_1[a11_0x1f0f2e(0x9a)],global[a11_0x1f0f2e(0xb8)]=AnnEnumMsg_1[a11_0x1f0f2e(0xb8)],global['getAnnEnumArray']=AnnEnumMsg_1[a11_0x1f0f2e(0xa8)]),(global[a11_0x1f0f2e(0xba)]=AnnErrorMsg_1['AnnErrorMsg'],global[a11_0x1f0f2e(0xa4)]=AnnErrorMsg_1['getAnnErrorMsg'],global[a11_0x1f0f2e(0xab)]=AnnErrorMsg_1[a11_0x1f0f2e(0xab)],global[a11_0x1f0f2e(0xb7)]=AnnError_1[a11_0x1f0f2e(0xb7)],global[a11_0x1f0f2e(0xad)]=AnnErrorRender_1[a11_0x1f0f2e(0xad)]);
1
+ 'use strict';const a12_0x30929d=a12_0x2933;(function(_0x47aa08,_0x5451c4){const _0x66ff4d=a12_0x2933,_0x3ecf82=_0x47aa08();while(!![]){try{const _0xce1264=parseInt(_0x66ff4d(0x152))/0x1*(-parseInt(_0x66ff4d(0x14c))/0x2)+-parseInt(_0x66ff4d(0x15c))/0x3+-parseInt(_0x66ff4d(0x138))/0x4*(-parseInt(_0x66ff4d(0x15f))/0x5)+-parseInt(_0x66ff4d(0x15e))/0x6*(parseInt(_0x66ff4d(0x156))/0x7)+parseInt(_0x66ff4d(0x157))/0x8+parseInt(_0x66ff4d(0x13d))/0x9+parseInt(_0x66ff4d(0x14e))/0xa;if(_0xce1264===_0x5451c4)break;else _0x3ecf82['push'](_0x3ecf82['shift']());}catch(_0x4fa537){_0x3ecf82['push'](_0x3ecf82['shift']());}}}(a12_0xafbe,0x898c8));Object[a12_0x30929d(0x148)](exports,a12_0x30929d(0x150),{'value':!![]}),exports['AnnErrorRender']=exports[a12_0x30929d(0x159)]=exports[a12_0x30929d(0x14a)]=exports[a12_0x30929d(0x147)]=exports['AnnErrorMsg']=exports[a12_0x30929d(0x143)]=exports[a12_0x30929d(0x14b)]=exports[a12_0x30929d(0x154)]=exports['AnnEnumMsg']=exports['fileMd5']=exports[a12_0x30929d(0x13f)]=exports[a12_0x30929d(0x151)]=exports['collect']=exports[a12_0x30929d(0x142)]=exports['dayjs']=exports[a12_0x30929d(0x158)]=exports['mathjs']=exports[a12_0x30929d(0x146)]=exports['urllib']=exports[a12_0x30929d(0x139)]=void 0x0;const dayjs=require(a12_0x30929d(0x13c));exports[a12_0x30929d(0x13c)]=dayjs;const urllib=require(a12_0x30929d(0x14d));exports[a12_0x30929d(0x14d)]=urllib;const mathjs=require(a12_0x30929d(0x144));exports[a12_0x30929d(0x144)]=mathjs;const lodash=require(a12_0x30929d(0x158));exports[a12_0x30929d(0x158)]=lodash;const fsplus=require(a12_0x30929d(0x155));exports[a12_0x30929d(0x146)]=fsplus;const collect_js_1=require(a12_0x30929d(0x160));Object[a12_0x30929d(0x148)](exports,a12_0x30929d(0x15b),{'enumerable':!![],'get':function(){const _0x483329=a12_0x30929d;return collect_js_1[_0x483329(0x15b)];}});function a12_0x2933(_0xb84e9f,_0x1b1dbb){const _0xafbe39=a12_0xafbe();return a12_0x2933=function(_0x293325,_0x57052f){_0x293325=_0x293325-0x138;let _0x155341=_0xafbe39[_0x293325];return _0x155341;},a12_0x2933(_0xb84e9f,_0x1b1dbb);}const sleep_1=require('./helper/sleep');Object['defineProperty'](exports,a12_0x30929d(0x142),{'enumerable':!![],'get':function(){const _0x180e93=a12_0x30929d;return sleep_1[_0x180e93(0x142)];}});const include_1=require(a12_0x30929d(0x15a));Object[a12_0x30929d(0x148)](exports,'include',{'enumerable':!![],'get':function(){return include_1['include'];}});const globDir_1=require('./helper/globDir');function a12_0xafbe(){const _0x36dd31=['5842501bvSkgo','4564104BkjYUf','lodash','AnnError','./helper/include','collect','814413pVtgrN','./helper/fileMd5','6SqRsQu','4448755JPSVhs','collect.js','4WSiWtK','Configuration','./exception/AnnErrorRender','./decorator/AnnEnumMsg','dayjs','297252yfaRVX','fileMd5','globDir','./configuration','CustomConfiguration','sleep','getAnnEnumArray','mathjs','./exception/AnnError','fsplus','getAnnErrorMsg','defineProperty','AnnEnumMsg','getAnnErrorList','getAnnEnumList','246490CKBBLq','urllib','10389370yjPVtx','AnnErrorMsg','__esModule','include','7WPbSIz','AnnErrorRender','getAnnEnumMsg','fs-extra'];a12_0xafbe=function(){return _0x36dd31;};return a12_0xafbe();}Object['defineProperty'](exports,a12_0x30929d(0x13f),{'enumerable':!![],'get':function(){const _0x21e378=a12_0x30929d;return globDir_1[_0x21e378(0x13f)];}});const fileMd5_1=require(a12_0x30929d(0x15d));Object['defineProperty'](exports,'fileMd5',{'enumerable':!![],'get':function(){const _0x1ee0f4=a12_0x30929d;return fileMd5_1[_0x1ee0f4(0x13e)];}});const AnnError_1=require(a12_0x30929d(0x145));Object[a12_0x30929d(0x148)](exports,'AnnError',{'enumerable':!![],'get':function(){const _0x2299cd=a12_0x30929d;return AnnError_1[_0x2299cd(0x159)];}});const AnnErrorRender_1=require(a12_0x30929d(0x13a));Object[a12_0x30929d(0x148)](exports,a12_0x30929d(0x153),{'enumerable':!![],'get':function(){const _0x3d9113=a12_0x30929d;return AnnErrorRender_1[_0x3d9113(0x153)];}});const AnnErrorMsg_1=require('./decorator/AnnErrorMsg');Object[a12_0x30929d(0x148)](exports,a12_0x30929d(0x14f),{'enumerable':!![],'get':function(){const _0x4b99ec=a12_0x30929d;return AnnErrorMsg_1[_0x4b99ec(0x14f)];}}),Object[a12_0x30929d(0x148)](exports,a12_0x30929d(0x147),{'enumerable':!![],'get':function(){const _0x18ea40=a12_0x30929d;return AnnErrorMsg_1[_0x18ea40(0x147)];}}),Object['defineProperty'](exports,a12_0x30929d(0x14a),{'enumerable':!![],'get':function(){return AnnErrorMsg_1['getAnnErrorList'];}});const AnnEnumMsg_1=require(a12_0x30929d(0x13b));Object['defineProperty'](exports,a12_0x30929d(0x149),{'enumerable':!![],'get':function(){return AnnEnumMsg_1['AnnEnumMsg'];}}),Object['defineProperty'](exports,a12_0x30929d(0x154),{'enumerable':!![],'get':function(){const _0x2579d6=a12_0x30929d;return AnnEnumMsg_1[_0x2579d6(0x154)];}}),Object[a12_0x30929d(0x148)](exports,a12_0x30929d(0x14b),{'enumerable':!![],'get':function(){const _0x1873a5=a12_0x30929d;return AnnEnumMsg_1[_0x1873a5(0x14b)];}}),Object['defineProperty'](exports,a12_0x30929d(0x143),{'enumerable':!![],'get':function(){const _0x142f93=a12_0x30929d;return AnnEnumMsg_1[_0x142f93(0x143)];}});var configuration_1=require(a12_0x30929d(0x140));Object['defineProperty'](exports,'Configuration',{'enumerable':!![],'get':function(){const _0xb667b0=a12_0x30929d;return configuration_1[_0xb667b0(0x141)];}}),(global[a12_0x30929d(0x14d)]=urllib,global['fsplus']=fsplus,global[a12_0x30929d(0x144)]=mathjs,global[a12_0x30929d(0x158)]=lodash),(global[a12_0x30929d(0x13c)]=dayjs,global[a12_0x30929d(0x142)]=sleep_1[a12_0x30929d(0x142)],global[a12_0x30929d(0x15b)]=collect_js_1['collect'],global[a12_0x30929d(0x151)]=include_1[a12_0x30929d(0x151)],global[a12_0x30929d(0x13f)]=globDir_1['globDir'],global[a12_0x30929d(0x13e)]=fileMd5_1[a12_0x30929d(0x13e)]),(global['AnnEnumMsg']=AnnEnumMsg_1[a12_0x30929d(0x149)],global[a12_0x30929d(0x154)]=AnnEnumMsg_1['getAnnEnumMsg'],global[a12_0x30929d(0x14b)]=AnnEnumMsg_1[a12_0x30929d(0x14b)],global[a12_0x30929d(0x143)]=AnnEnumMsg_1[a12_0x30929d(0x143)]),(global[a12_0x30929d(0x14f)]=AnnErrorMsg_1['AnnErrorMsg'],global[a12_0x30929d(0x147)]=AnnErrorMsg_1['getAnnErrorMsg'],global[a12_0x30929d(0x14a)]=AnnErrorMsg_1['getAnnErrorList'],global[a12_0x30929d(0x159)]=AnnError_1[a12_0x30929d(0x159)],global[a12_0x30929d(0x153)]=AnnErrorRender_1[a12_0x30929d(0x153)]);
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.6",
3
+ "version": "1.0.9",
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": "b2bf6b02308760d755572ae1f38f864ce90bddb5"
44
+ "gitHead": "e9a1936ecfabbe4832b34e7708e64ac3e0425924"
45
45
  }