@anncic-api/core 1.0.0 → 1.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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.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';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;
|
package/dist/helper/globDir.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
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;
|
package/dist/helper/include.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
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;
|
package/dist/helper/sleep.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
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
|
|
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.
|
|
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": "
|
|
44
|
+
"gitHead": "252a82375c75725a7c95ab215f172521d1729ff5"
|
|
45
45
|
}
|