@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.
- package/dist/config/config.default.d.ts +1 -1
- package/dist/config/config.default.js +1 -1
- package/dist/configuration.js +1 -1
- package/dist/decorator/AnnEnumMsg.d.ts +1 -1
- package/dist/decorator/AnnEnumMsg.js +1 -1
- package/dist/decorator/AnnErrorMsg.js +1 -1
- package/dist/exception/AnnError.d.ts +2 -2
- package/dist/exception/AnnError.js +1 -1
- package/dist/exception/AnnErrorRender.d.ts +1 -1
- package/dist/exception/AnnErrorRender.js +1 -1
- package/dist/exceptions/AnnError.js +1 -1
- package/dist/exceptions/AnnErrorRender.js +1 -1
- package/dist/helper/fileMd5.d.ts +1 -0
- package/dist/helper/fileMd5.js +1 -0
- package/dist/helper/globDir.js +1 -1
- package/dist/helper/include.js +1 -1
- package/dist/helper/sleep.js +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +1 -1
- package/index.d.ts +4 -1
- package/package.json +2 -2
|
@@ -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;
|
package/dist/helper/globDir.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
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;
|
package/dist/helper/include.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
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();}
|
package/dist/helper/sleep.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
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
|
|
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.
|
|
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": "
|
|
44
|
+
"gitHead": "e9a1936ecfabbe4832b34e7708e64ac3e0425924"
|
|
45
45
|
}
|