@anncic-api/core 1.3.3 → 1.3.5
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.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.js +1 -1
- package/dist/helper/common.js +1 -1
- package/dist/helper/fileMd5.js +1 -1
- package/dist/helper/globDir.js +1 -1
- package/dist/helper/include.js +1 -1
- package/dist/helper/sleep.js +1 -1
- package/dist/index.js +1 -1
- package/index.d.ts +2 -3
- package/package.json +9 -10
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a0_0xc332f4=a0_0x3655;(function(_0x282c2a,_0x2860d1){var _0x94fbbf=a0_0x3655,_0x53aa67=_0x282c2a();while(!![]){try{var _0x56b55e=-parseInt(_0x94fbbf(0x200))/0x1+-parseInt(_0x94fbbf(0x1fa))/0x2+-parseInt(_0x94fbbf(0x1f3))/0x3+-parseInt(_0x94fbbf(0x1fe))/0x4*(-parseInt(_0x94fbbf(0x1f4))/0x5)+parseInt(_0x94fbbf(0x1f7))/0x6+-parseInt(_0x94fbbf(0x1f9))/0x7*(-parseInt(_0x94fbbf(0x1ff))/0x8)+-parseInt(_0x94fbbf(0x1f5))/0x9*(-parseInt(_0x94fbbf(0x1f6))/0xa);if(_0x56b55e===_0x2860d1)break;else _0x53aa67['push'](_0x53aa67['shift']());}catch(_0x21f216){_0x53aa67['push'](_0x53aa67['shift']());}}}(a0_0x3739,0x943fa));function a0_0x3739(){var _0x2c7355=['/runtime','defineProperty','appDir','2200dVYMjK','27992rzPxWQ','776412pnAnMl','__esModule','569199YWfCQB','230UUwtmY','171CDJlIk','408550zpWHth','2443902XHnRkc','default','1652UcPmrt','922510IqieDf'];a0_0x3739=function(){return _0x2c7355;};return a0_0x3739();}function a0_0x3655(_0x372908,_0x4c174c){var _0x37395b=a0_0x3739();return a0_0x3655=function(_0x36551a,_0x15b171){_0x36551a=_0x36551a-0x1f2;var _0x2cd043=_0x37395b[_0x36551a];return _0x2cd043;},a0_0x3655(_0x372908,_0x4c174c);}Object[a0_0xc332f4(0x1fc)](exports,a0_0xc332f4(0x1f2),{'value':!![]}),exports[a0_0xc332f4(0x1f8)]=_0x140df7=>{var _0x3655a6=a0_0xc332f4;return{'midwayLogger':{'default':{'maxSize':'1m','dir':_0x140df7[_0x3655a6(0x1fd)]+_0x3655a6(0x1fb)}}};};
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const a1_0x29c379=a1_0x503e;(function(_0x22a310,_0x551383){const _0x288f9e=a1_0x503e,_0x4822be=_0x22a310();while(!![]){try{const _0x590699=parseInt(_0x288f9e(0x12e))/0x1+-parseInt(_0x288f9e(0x140))/0x2+-parseInt(_0x288f9e(0x14d))/0x3*(parseInt(_0x288f9e(0x13c))/0x4)+-parseInt(_0x288f9e(0x14c))/0x5+parseInt(_0x288f9e(0x130))/0x6+parseInt(_0x288f9e(0x12b))/0x7*(-parseInt(_0x288f9e(0x13f))/0x8)+parseInt(_0x288f9e(0x134))/0x9;if(_0x590699===_0x551383)break;else _0x4822be['push'](_0x4822be['shift']());}catch(_0x15de24){_0x4822be['push'](_0x4822be['shift']());}}}(a1_0x5050,0x3fc4a));var __decorate=this&&this[a1_0x29c379(0x131)]||function(_0x475cf6,_0x78cd8c,_0x2aa461,_0x3c5391){const _0x53ff28=a1_0x29c379;var _0x155552=arguments['length'],_0x233db0=_0x155552<0x3?_0x78cd8c:_0x3c5391===null?_0x3c5391=Object[_0x53ff28(0x149)](_0x78cd8c,_0x2aa461):_0x3c5391,_0x35927a;if(typeof Reflect===_0x53ff28(0x146)&&typeof Reflect['decorate']===_0x53ff28(0x135))_0x233db0=Reflect[_0x53ff28(0x13e)](_0x475cf6,_0x78cd8c,_0x2aa461,_0x3c5391);else{for(var _0x2b43ff=_0x475cf6['length']-0x1;_0x2b43ff>=0x0;_0x2b43ff--)if(_0x35927a=_0x475cf6[_0x2b43ff])_0x233db0=(_0x155552<0x3?_0x35927a(_0x233db0):_0x155552>0x3?_0x35927a(_0x78cd8c,_0x2aa461,_0x233db0):_0x35927a(_0x78cd8c,_0x2aa461))||_0x233db0;}return _0x155552>0x3&&_0x233db0&&Object[_0x53ff28(0x13d)](_0x78cd8c,_0x2aa461,_0x233db0),_0x233db0;},__metadata=this&&this[a1_0x29c379(0x14f)]||function(_0x501619,_0x4e8f03){const _0x10a2f1=a1_0x29c379;if(typeof Reflect===_0x10a2f1(0x146)&&typeof Reflect[_0x10a2f1(0x132)]===_0x10a2f1(0x135))return Reflect[_0x10a2f1(0x132)](_0x501619,_0x4e8f03);};Object[a1_0x29c379(0x13d)](exports,a1_0x29c379(0x14e),{'value':!![]}),exports['CustomConfiguration']=void 0x0;const core_1=require(a1_0x29c379(0x153)),core_2=require(a1_0x29c379(0x153)),AnnError_1=require(a1_0x29c379(0x156)),AnnErrorRender_1=require(a1_0x29c379(0x13b)),ConfigDefault=require('./config/config.default');function a1_0x503e(_0x44fd8d,_0x3b57a5){const _0x505085=a1_0x5050();return a1_0x503e=function(_0x503e32,_0x1b88fd){_0x503e32=_0x503e32-0x128;let _0x5bbe52=_0x505085[_0x503e32];return _0x5bbe52;},a1_0x503e(_0x44fd8d,_0x3b57a5);}function a1_0x5050(){const _0x17b000=['object','environment','split','getOwnPropertyDescriptor','matched','AnnError','1650155DuzbsC','225993dmwbIH','__esModule','__metadata','design:type','koa','prototype','@midwayjs/core','request','stack','./exception/AnnError','logger','anncic-api:core','message','UNKNOW','code','NotFoundError','MidwayEnvironmentService','onReady','网络异常,请联系管理员。','321209TDeusQ','isDevelopmentEnvironment','forEach','458847lkjNIQ','local','614094afcUyu','__decorate','metadata','body','8613108NRCbyS','function','Inject','render','application','error','getCurrentEnvironment','./exception/AnnErrorRender','12FewyCx','defineProperty','decorate','56FLONRl','759562Qeadry','useMiddleware','Configuration','express','AnnErrorRender','\x20at\x20'];a1_0x5050=function(){return _0x17b000;};return a1_0x5050();}let CustomConfiguration=class CustomConfiguration{async[a1_0x29c379(0x129)](){const _0x248acc=a1_0x29c379;this['application']['getApplications']([_0x248acc(0x151),'faas',_0x248acc(0x143),'egg'])[_0x248acc(0x12d)](_0x4c24ab=>{const _0x2d2d0c=_0x248acc;_0x4c24ab[_0x2d2d0c(0x141)](async(_0x59f74a,_0x27296f)=>{const _0x23fb8a=_0x2d2d0c;var _0x718585,_0xa1bb64,_0x7b050;try{await _0x27296f();}catch(_0x1eb8f6){if(_0x1eb8f6 instanceof AnnErrorRender_1[_0x23fb8a(0x144)])await _0x1eb8f6[_0x23fb8a(0x137)](_0x59f74a,_0x4c24ab);else{if(_0x1eb8f6 instanceof AnnError_1[_0x23fb8a(0x14b)]){const _0x5e6638=_0x1eb8f6['response']||{'code':_0x1eb8f6[_0x23fb8a(0x15b)]};!(_0x5e6638===null||_0x5e6638===void 0x0?void 0x0:_0x5e6638[_0x23fb8a(0x159)])&&(_0x1eb8f6===null||_0x1eb8f6===void 0x0?void 0x0:_0x1eb8f6[_0x23fb8a(0x159)])&&(_0x5e6638['message']=_0x1eb8f6[_0x23fb8a(0x159)]),this[_0x23fb8a(0x147)][_0x23fb8a(0x13a)]()==_0x23fb8a(0x12f)?(!_0x5e6638['error']&&(_0x5e6638[_0x23fb8a(0x139)]={}),!((_0x718585=_0x5e6638===null||_0x5e6638===void 0x0?void 0x0:_0x5e6638[_0x23fb8a(0x139)])===null||_0x718585===void 0x0?void 0x0:_0x718585['message'])&&(_0x1eb8f6===null||_0x1eb8f6===void 0x0?void 0x0:_0x1eb8f6[_0x23fb8a(0x159)])&&(_0x5e6638[_0x23fb8a(0x139)][_0x23fb8a(0x159)]=_0x1eb8f6[_0x23fb8a(0x159)]),!((_0xa1bb64=_0x5e6638===null||_0x5e6638===void 0x0?void 0x0:_0x5e6638[_0x23fb8a(0x139)])===null||_0xa1bb64===void 0x0?void 0x0:_0xa1bb64[_0x23fb8a(0x155)])&&(_0x1eb8f6===null||_0x1eb8f6===void 0x0?void 0x0:_0x1eb8f6['stack'])&&(_0x5e6638[_0x23fb8a(0x139)][_0x23fb8a(0x155)]=_0x1eb8f6[_0x23fb8a(0x155)][_0x23fb8a(0x148)](_0x23fb8a(0x145)))):delete _0x5e6638[_0x23fb8a(0x139)],_0x59f74a[_0x23fb8a(0x133)]=_0x5e6638;}else{if(_0x1eb8f6 instanceof core_2['httpError'][_0x23fb8a(0x15c)]){}else{if(_0x1eb8f6 instanceof Error){if(this['environment'][_0x23fb8a(0x12c)]())console['error'](_0x1eb8f6);else typeof((_0x7b050=_0x59f74a===null||_0x59f74a===void 0x0?void 0x0:_0x59f74a[_0x23fb8a(0x157)])===null||_0x7b050===void 0x0?void 0x0:_0x7b050['error'])=='function'&&(_0x1eb8f6[_0x23fb8a(0x14a)]=(_0x59f74a===null||_0x59f74a===void 0x0?void 0x0:_0x59f74a['_matchedRoute'])||'',_0x1eb8f6['request']=(_0x59f74a===null||_0x59f74a===void 0x0?void 0x0:_0x59f74a[_0x23fb8a(0x154)])||{},_0x59f74a[_0x23fb8a(0x157)]['error'](_0x1eb8f6));_0x59f74a[_0x23fb8a(0x133)]={'code':AnnError_1['AnnError'][_0x23fb8a(0x15a)],'message':_0x23fb8a(0x12a)};}}}}}});});}};__decorate([(0x0,core_1[a1_0x29c379(0x136)])(),__metadata(a1_0x29c379(0x150),core_2['MidwayApplicationManager'])],CustomConfiguration[a1_0x29c379(0x152)],a1_0x29c379(0x138),void 0x0),__decorate([(0x0,core_1[a1_0x29c379(0x136)])(),__metadata(a1_0x29c379(0x150),core_2[a1_0x29c379(0x128)])],CustomConfiguration[a1_0x29c379(0x152)],'environment',void 0x0),CustomConfiguration=__decorate([(0x0,core_1[a1_0x29c379(0x142)])({'namespace':a1_0x29c379(0x158),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration),exports['CustomConfiguration']=CustomConfiguration;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a2_0x1192f1=a2_0x2b81;function a2_0x4778(){const _0x35329d=['\x20is\x20not\x20duplicated','push','getAnnEnumMap','14hxtCAD','8haSPTa','835170zgBHiE','targetCode','357790QyblzD','32722ylwAZQ','getAnnEnumList','944715FuKvoV','defineProperty','3214145HcSHlx','2080435YtXXcx','saveClassMetadata','getAnnEnumArray','7437650vLuAmy','135PhEIFr','\x20Property(','AnnEnumMsg:\x20','__esModule','ann:enum','getAnnEnumMsg',')\x20is\x20duplicated,please\x20check\x20before\x20adding','4BELPFy','indexOf','@midwayjs/core','getClassMetadata','targetMsg','undefined','\x20=\x20number\x20|\x20string;'];a2_0x4778=function(){return _0x35329d;};return a2_0x4778();}(function(_0x188ac1,_0x31ef76){const _0x8e31f9=a2_0x2b81,_0x561c47=_0x188ac1();while(!![]){try{const _0xc868d6=-parseInt(_0x8e31f9(0x18b))/0x1*(parseInt(_0x8e31f9(0x190))/0x2)+-parseInt(_0x8e31f9(0x192))/0x3*(parseInt(_0x8e31f9(0x181))/0x4)+parseInt(_0x8e31f9(0x194))/0x5+parseInt(_0x8e31f9(0x18d))/0x6+parseInt(_0x8e31f9(0x195))/0x7*(parseInt(_0x8e31f9(0x18c))/0x8)+parseInt(_0x8e31f9(0x17a))/0x9*(parseInt(_0x8e31f9(0x18f))/0xa)+-parseInt(_0x8e31f9(0x179))/0xb;if(_0xc868d6===_0x31ef76)break;else _0x561c47['push'](_0x561c47['shift']());}catch(_0x165f7e){_0x561c47['push'](_0x561c47['shift']());}}}(a2_0x4778,0x60a1d));function a2_0x2b81(_0x20f05b,_0x2b42b0){const _0x4778b0=a2_0x4778();return a2_0x2b81=function(_0x2b8105,_0x3a3650){_0x2b8105=_0x2b8105-0x177;let _0xcc2a11=_0x4778b0[_0x2b8105];return _0xcc2a11;},a2_0x2b81(_0x20f05b,_0x2b42b0);}Object[a2_0x1192f1(0x193)](exports,a2_0x1192f1(0x17d),{'value':!![]}),exports[a2_0x1192f1(0x178)]=exports[a2_0x1192f1(0x191)]=exports[a2_0x1192f1(0x18a)]=exports[a2_0x1192f1(0x17f)]=exports['AnnEnumMsg']=void 0x0;const core_1=require(a2_0x1192f1(0x183)),ANN_ENUM=a2_0x1192f1(0x17e);function AnnEnumMsg(_0x5ae12a,_0x5dab79){return(_0x265721,_0x230e42)=>{const _0x4fe951=a2_0x2b81;var _0x26c261;const _0x27b71c=_0x265721===null||_0x265721===void 0x0?void 0x0:_0x265721[_0x230e42],_0x309743=(0x0,core_1[_0x4fe951(0x184)])(ANN_ENUM,_0x265721)||{};if(typeof _0x27b71c==_0x4fe951(0x186)||_0x27b71c===null)throw new Error(((_0x265721===null||_0x265721===void 0x0?void 0x0:_0x265721['name'])||_0x265721)+_0x4fe951(0x17b)+_0x230e42+')must\x20be\x20\x27static\x20readonly\x20'+_0x230e42+_0x4fe951(0x187));if(typeof((_0x26c261=_0x309743===null||_0x309743===void 0x0?void 0x0:_0x309743[_0x5ae12a])===null||_0x26c261===void 0x0?void 0x0:_0x26c261[_0x27b71c])!==_0x4fe951(0x186))throw new Error(_0x4fe951(0x17c)+_0x5dab79+'('+_0x5ae12a+':'+_0x27b71c+_0x4fe951(0x180));!(_0x309743===null||_0x309743===void 0x0?void 0x0:_0x309743[_0x5ae12a])&&(_0x309743[_0x5ae12a]={}),_0x309743[_0x5ae12a][_0x27b71c]={'targetKey':_0x230e42,'targetMsg':_0x5dab79,'targetCode':_0x27b71c},(0x0,core_1[_0x4fe951(0x177)])(ANN_ENUM,_0x309743,_0x265721);};}exports['AnnEnumMsg']=AnnEnumMsg;function getAnnEnumMsg(_0x468f0e,_0x2ab067,_0x3b4545){const _0x523575=a2_0x1192f1;var _0x541076,_0x4ddc31;const _0x1fe4c9=(0x0,core_1['getClassMetadata'])(ANN_ENUM,_0x468f0e)||{};if(typeof((_0x541076=_0x1fe4c9===null||_0x1fe4c9===void 0x0?void 0x0:_0x1fe4c9[_0x2ab067])===null||_0x541076===void 0x0?void 0x0:_0x541076[_0x3b4545])===_0x523575(0x186))throw new Error(_0x523575(0x17c)+_0x3b4545+_0x523575(0x188));return((_0x4ddc31=_0x1fe4c9[_0x2ab067][_0x3b4545])===null||_0x4ddc31===void 0x0?void 0x0:_0x4ddc31[_0x523575(0x185)])||undefined;}exports[a2_0x1192f1(0x17f)]=getAnnEnumMsg;function getAnnEnumMap(_0x52d2c1,_0x2b81af){const _0x37a03f=a2_0x1192f1;var _0x42e91d,_0x49c809,_0x334d3d,_0x10fc4d;const _0x3ba2b9={},_0x1d429c=(0x0,core_1[_0x37a03f(0x184)])(ANN_ENUM,_0x52d2c1)||{};if(_0x1d429c===null||_0x1d429c===void 0x0?void 0x0:_0x1d429c[_0x2b81af])for(const _0x422ac6 in _0x1d429c[_0x2b81af]){if(typeof((_0x49c809=(_0x42e91d=_0x1d429c[_0x2b81af])===null||_0x42e91d===void 0x0?void 0x0:_0x42e91d[_0x422ac6])===null||_0x49c809===void 0x0?void 0x0:_0x49c809[_0x37a03f(0x185)])===_0x37a03f(0x186))continue;if(typeof((_0x10fc4d=(_0x334d3d=_0x1d429c[_0x2b81af])===null||_0x334d3d===void 0x0?void 0x0:_0x334d3d[_0x422ac6])===null||_0x10fc4d===void 0x0?void 0x0:_0x10fc4d['targetCode'])===_0x37a03f(0x186))continue;_0x3ba2b9[_0x1d429c[_0x2b81af][_0x422ac6][_0x37a03f(0x185)]]=_0x1d429c[_0x2b81af][_0x422ac6][_0x37a03f(0x18e)];}return _0x3ba2b9;}exports[a2_0x1192f1(0x18a)]=getAnnEnumMap;function getAnnEnumList(_0x23d6b7,_0x5b861b){const _0x64ed2f=a2_0x1192f1;var _0x484234,_0x38e8d1,_0x4e9f99,_0xc232c7;const _0x20742d=[],_0x2f4f67=(0x0,core_1['getClassMetadata'])(ANN_ENUM,_0x23d6b7)||{};if(_0x2f4f67===null||_0x2f4f67===void 0x0?void 0x0:_0x2f4f67[_0x5b861b])for(const _0x1ec249 in _0x2f4f67[_0x5b861b]){if(typeof((_0x38e8d1=(_0x484234=_0x2f4f67[_0x5b861b])===null||_0x484234===void 0x0?void 0x0:_0x484234[_0x1ec249])===null||_0x38e8d1===void 0x0?void 0x0:_0x38e8d1[_0x64ed2f(0x185)])===_0x64ed2f(0x186))continue;if(typeof((_0xc232c7=(_0x4e9f99=_0x2f4f67[_0x5b861b])===null||_0x4e9f99===void 0x0?void 0x0:_0x4e9f99[_0x1ec249])===null||_0xc232c7===void 0x0?void 0x0:_0xc232c7[_0x64ed2f(0x18e)])===_0x64ed2f(0x186))continue;_0x20742d[_0x64ed2f(0x189)]({'label':_0x2f4f67[_0x5b861b][_0x1ec249][_0x64ed2f(0x185)],'value':_0x2f4f67[_0x5b861b][_0x1ec249]['targetCode']});}return _0x20742d;}exports[a2_0x1192f1(0x191)]=getAnnEnumList;function getAnnEnumArray(_0x1d9d82,_0x2fb6ab,_0x5f1fde=[]){const _0x3509ec=a2_0x1192f1;var _0x3617f0,_0xa899d3,_0x1c9b73,_0x58fe13;const _0x50943d=[],_0x2f7354=(0x0,core_1['getClassMetadata'])(ANN_ENUM,_0x1d9d82)||{};if(_0x2f7354===null||_0x2f7354===void 0x0?void 0x0:_0x2f7354[_0x2fb6ab])for(const _0x95a6ad in _0x2f7354[_0x2fb6ab]){if(typeof((_0xa899d3=(_0x3617f0=_0x2f7354[_0x2fb6ab])===null||_0x3617f0===void 0x0?void 0x0:_0x3617f0[_0x95a6ad])===null||_0xa899d3===void 0x0?void 0x0:_0xa899d3[_0x3509ec(0x185)])===_0x3509ec(0x186))continue;if(typeof((_0x58fe13=(_0x1c9b73=_0x2f7354[_0x2fb6ab])===null||_0x1c9b73===void 0x0?void 0x0:_0x1c9b73[_0x95a6ad])===null||_0x58fe13===void 0x0?void 0x0:_0x58fe13[_0x3509ec(0x18e)])===_0x3509ec(0x186))continue;_0x5f1fde[_0x3509ec(0x182)](_0x2f7354[_0x2fb6ab][_0x95a6ad]['targetCode'])==-0x1&&_0x50943d[_0x3509ec(0x189)](_0x2f7354[_0x2fb6ab][_0x95a6ad]['targetCode']);}return _0x50943d;}exports['getAnnEnumArray']=getAnnEnumArray;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';const a3_0x28c223=a3_0x4a2b;function a3_0x4a2b(_0x5635df,_0x2aadb7){const _0x27959a=a3_0x2795();return a3_0x4a2b=function(_0x4a2bb6,_0x10969e){_0x4a2bb6=_0x4a2bb6-0x1a4;let _0x2f9998=_0x27959a[_0x4a2bb6];return _0x2f9998;},a3_0x4a2b(_0x5635df,_0x2aadb7);}(function(_0x1b432c,_0x3933de){const _0xee613d=a3_0x4a2b,_0x40b3aa=_0x1b432c();while(!![]){try{const _0x1e2439=parseInt(_0xee613d(0x1b4))/0x1+parseInt(_0xee613d(0x1b0))/0x2+parseInt(_0xee613d(0x1ab))/0x3*(-parseInt(_0xee613d(0x1a5))/0x4)+-parseInt(_0xee613d(0x1a9))/0x5+parseInt(_0xee613d(0x1b9))/0x6*(-parseInt(_0xee613d(0x1b7))/0x7)+-parseInt(_0xee613d(0x1b8))/0x8+parseInt(_0xee613d(0x1b1))/0x9;if(_0x1e2439===_0x3933de)break;else _0x40b3aa['push'](_0x40b3aa['shift']());}catch(_0x317a42){_0x40b3aa['push'](_0x40b3aa['shift']());}}}(a3_0x2795,0x41f3f));Object[a3_0x28c223(0x1ba)](exports,a3_0x28c223(0x1b5),{'value':!![]}),exports[a3_0x28c223(0x1b6)]=exports['getAnnErrorList']=exports[a3_0x28c223(0x1a8)]=void 0x0;const AnnErrorObj={};function a3_0x2795(){const _0x14fc54=['\x20is\x20not\x20duplicated','getAnnErrorMsg','1157770deRiJt','undefined','81087zvGSLf','name','\x20=\x20number;','\x20Property(','getAnnErrorList','624048BlLhYW','5368599CNcwfA',')\x20is\x20duplicated,please\x20check\x20before\x20adding','AnnErrorMsg:\x20','248010Gyygtc','__esModule','AnnErrorMsg','441WkaetK','2711192qsyPrC','24942LUzxUp','defineProperty','message','8YtJHtk',')must\x20be\x20\x27static\x20readonly\x20'];a3_0x2795=function(){return _0x14fc54;};return a3_0x2795();}function getAnnErrorMsg(_0x416e82){const _0x395cf9=a3_0x28c223;var _0x378375,_0x44581f;if(typeof((_0x378375=AnnErrorObj===null||AnnErrorObj===void 0x0?void 0x0:AnnErrorObj[_0x416e82])===null||_0x378375===void 0x0?void 0x0:_0x378375['message'])===_0x395cf9(0x1aa))throw new Error(_0x395cf9(0x1b3)+_0x416e82+_0x395cf9(0x1a7));return((_0x44581f=AnnErrorObj[_0x416e82])===null||_0x44581f===void 0x0?void 0x0:_0x44581f[_0x395cf9(0x1a4)])||undefined;}exports[a3_0x28c223(0x1a8)]=getAnnErrorMsg;function getAnnErrorList(){return AnnErrorObj;}exports[a3_0x28c223(0x1af)]=getAnnErrorList;function AnnErrorMsg(_0x58d05d){return(_0x478db9,_0x5ab0ea)=>{const _0x25c281=a3_0x4a2b,_0x350f06=_0x478db9===null||_0x478db9===void 0x0?void 0x0:_0x478db9[_0x5ab0ea];if(typeof _0x350f06===_0x25c281(0x1aa)||_0x350f06===null)throw new Error(((_0x478db9===null||_0x478db9===void 0x0?void 0x0:_0x478db9[_0x25c281(0x1ac)])||_0x478db9)+_0x25c281(0x1ae)+_0x5ab0ea+_0x25c281(0x1a6)+_0x5ab0ea+_0x25c281(0x1ad));if(typeof(AnnErrorObj===null||AnnErrorObj===void 0x0?void 0x0:AnnErrorObj[_0x350f06])!==_0x25c281(0x1aa))throw new Error('AnnErrorMsg:\x20'+_0x58d05d+'('+_0x350f06+_0x25c281(0x1b2));AnnErrorObj[_0x350f06]={'code':_0x350f06,'message':_0x58d05d};};}exports['AnnErrorMsg']=AnnErrorMsg;
|
|
@@ -6,8 +6,8 @@ export declare class AnnError extends Error {
|
|
|
6
6
|
static readonly OK = 0;
|
|
7
7
|
static readonly UNKNOW = 5000000;
|
|
8
8
|
static readonly PARAMS = 4060000;
|
|
9
|
-
static readonly
|
|
10
|
-
static readonly
|
|
9
|
+
static readonly NOTFIND = 4040000;
|
|
10
|
+
static readonly NOTLOGIN = 4010000;
|
|
11
11
|
static readonly NOAUTH = 4030000;
|
|
12
12
|
constructor(code: number, response?: {
|
|
13
13
|
[key: string]: any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a4_0x3658e5=a4_0x4515;(function(_0x2f4c6e,_0x2d1ab2){var _0x3edb46=a4_0x4515,_0x264162=_0x2f4c6e();while(!![]){try{var _0x5830a7=-parseInt(_0x3edb46(0x1a1))/0x1+parseInt(_0x3edb46(0x19d))/0x2*(parseInt(_0x3edb46(0x1a4))/0x3)+-parseInt(_0x3edb46(0x187))/0x4*(parseInt(_0x3edb46(0x1a3))/0x5)+-parseInt(_0x3edb46(0x18c))/0x6+parseInt(_0x3edb46(0x18e))/0x7+parseInt(_0x3edb46(0x194))/0x8+parseInt(_0x3edb46(0x18a))/0x9;if(_0x5830a7===_0x2d1ab2)break;else _0x264162['push'](_0x264162['shift']());}catch(_0x210330){_0x264162['push'](_0x264162['shift']());}}}(a4_0x159e,0xcd41f));function a4_0x4515(_0x4d2f0c,_0x507c89){var _0x159e77=a4_0x159e();return a4_0x4515=function(_0x451549,_0x26b8b8){_0x451549=_0x451549-0x184;var _0x2d3802=_0x159e77[_0x451549];return _0x2d3802;},a4_0x4515(_0x4d2f0c,_0x507c89);}var __decorate=this&&this['__decorate']||function(_0x16fc0e,_0x358296,_0x35a930,_0x29c9fa){var _0x3ca4ba=a4_0x4515,_0x5908df=arguments['length'],_0x2fb117=_0x5908df<0x3?_0x358296:_0x29c9fa===null?_0x29c9fa=Object[_0x3ca4ba(0x196)](_0x358296,_0x35a930):_0x29c9fa,_0x4f7917;if(typeof Reflect==='object'&&typeof Reflect[_0x3ca4ba(0x18f)]===_0x3ca4ba(0x195))_0x2fb117=Reflect[_0x3ca4ba(0x18f)](_0x16fc0e,_0x358296,_0x35a930,_0x29c9fa);else{for(var _0x5d871d=_0x16fc0e[_0x3ca4ba(0x186)]-0x1;_0x5d871d>=0x0;_0x5d871d--)if(_0x4f7917=_0x16fc0e[_0x5d871d])_0x2fb117=(_0x5908df<0x3?_0x4f7917(_0x2fb117):_0x5908df>0x3?_0x4f7917(_0x358296,_0x35a930,_0x2fb117):_0x4f7917(_0x358296,_0x35a930))||_0x2fb117;}return _0x5908df>0x3&&_0x2fb117&&Object[_0x3ca4ba(0x1a6)](_0x358296,_0x35a930,_0x2fb117),_0x2fb117;},__metadata=this&&this[a4_0x3658e5(0x185)]||function(_0x19b4f2,_0x2e9bc1){var _0xa85ba=a4_0x3658e5;if(typeof Reflect===_0xa85ba(0x19e)&&typeof Reflect[_0xa85ba(0x18d)]==='function')return Reflect[_0xa85ba(0x18d)](_0x19b4f2,_0x2e9bc1);};Object[a4_0x3658e5(0x1a6)](exports,a4_0x3658e5(0x1a0),{'value':!![]}),exports['AnnError']=void 0x0;const AnnErrorMsg_1=require(a4_0x3658e5(0x19f));class AnnError extends Error{constructor(_0x31feca,_0x27d64f){var _0x3ae29d=a4_0x3658e5;super((0x0,AnnErrorMsg_1[_0x3ae29d(0x1a2)])(_0x31feca)),this[_0x3ae29d(0x188)]=this[_0x3ae29d(0x18b)]['name'],(this[_0x3ae29d(0x1a7)]=_0x31feca,this[_0x3ae29d(0x189)]={'code':this[_0x3ae29d(0x1a7)],..._0x27d64f||{}});}}AnnError['OK']=0x0,AnnError[a4_0x3658e5(0x19b)]=0x4c4b40,AnnError['PARAMS']=0x3df360,AnnError[a4_0x3658e5(0x19c)]=0x3da540,AnnError[a4_0x3658e5(0x190)]=0x3d3010,AnnError[a4_0x3658e5(0x19a)]=0x3d7e30,__decorate([(0x0,AnnErrorMsg_1[a4_0x3658e5(0x1a5)])('成功'),__metadata(a4_0x3658e5(0x192),Object)],AnnError,'OK',void 0x0),__decorate([(0x0,AnnErrorMsg_1[a4_0x3658e5(0x1a5)])(a4_0x3658e5(0x198)),__metadata('design:type',Object)],AnnError,a4_0x3658e5(0x19b),void 0x0),__decorate([(0x0,AnnErrorMsg_1[a4_0x3658e5(0x1a5)])(a4_0x3658e5(0x199)),__metadata(a4_0x3658e5(0x192),Object)],AnnError,a4_0x3658e5(0x193),void 0x0),__decorate([(0x0,AnnErrorMsg_1['AnnErrorMsg'])('不存在对应数据'),__metadata('design:type',Object)],AnnError,a4_0x3658e5(0x19c),void 0x0),__decorate([(0x0,AnnErrorMsg_1['AnnErrorMsg'])(a4_0x3658e5(0x184)),__metadata(a4_0x3658e5(0x192),Object)],AnnError,'NOTLOGIN',void 0x0),__decorate([(0x0,AnnErrorMsg_1[a4_0x3658e5(0x1a5)])(a4_0x3658e5(0x191)),__metadata('design:type',Object)],AnnError,a4_0x3658e5(0x19a),void 0x0),exports[a4_0x3658e5(0x197)]=AnnError;function a4_0x159e(){var _0x46474c=['getOwnPropertyDescriptor','AnnError','未知错误','参数错误','NOAUTH','UNKNOW','NOTFIND','14qKceTz','object','../decorator/AnnErrorMsg','__esModule','113032ciXtGm','getAnnErrorMsg','12470IARUOu','691167ONBnvy','AnnErrorMsg','defineProperty','code','请登录后重试','__metadata','length','2612nXgRfZ','name','response','19705176mORucH','constructor','9945660thSDMm','metadata','1898729sSgGCr','decorate','NOTLOGIN','没有权限执行该操作','design:type','PARAMS','1332200qOmZRJ','function'];a4_0x159e=function(){return _0x46474c;};return a4_0x159e();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a5_0x3c6091=a5_0x4597;function a5_0x1a16(){const _0x3310d5=['render','AnnError','name','498BdNfKX','176WQydfL','55231WRxRiW','defineProperty','76062EqYakO','1079iNzerr','1860cVWcsQ','2iDwdGs','2424996hUduux','40ijneWy','164061BSijKS','1588454xqlrXU','AnnErrorRender','185964ROMSST','./AnnError','360564ASdJTV'];a5_0x1a16=function(){return _0x3310d5;};return a5_0x1a16();}(function(_0x4c1342,_0x29249d){const _0x4c50bf=a5_0x4597,_0x138b53=_0x4c1342();while(!![]){try{const _0x481796=parseInt(_0x4c50bf(0xd4))/0x1+-parseInt(_0x4c50bf(0xd0))/0x2*(-parseInt(_0x4c50bf(0xd1))/0x3)+parseInt(_0x4c50bf(0xd6))/0x4*(-parseInt(_0x4c50bf(0xd2))/0x5)+-parseInt(_0x4c50bf(0xc9))/0x6*(-parseInt(_0x4c50bf(0xcd))/0x7)+parseInt(_0x4c50bf(0xca))/0x8*(-parseInt(_0x4c50bf(0xd3))/0x9)+-parseInt(_0x4c50bf(0xcf))/0xa*(-parseInt(_0x4c50bf(0xcb))/0xb)+parseInt(_0x4c50bf(0xd8))/0xc*(-parseInt(_0x4c50bf(0xce))/0xd);if(_0x481796===_0x29249d)break;else _0x138b53['push'](_0x138b53['shift']());}catch(_0x29646b){_0x138b53['push'](_0x138b53['shift']());}}}(a5_0x1a16,0xebc47));Object[a5_0x3c6091(0xcc)](exports,'__esModule',{'value':!![]}),exports[a5_0x3c6091(0xd5)]=void 0x0;function a5_0x4597(_0x5cf3d5,_0x5eeed1){const _0x1a16f9=a5_0x1a16();return a5_0x4597=function(_0x4597ad,_0x1c763c){_0x4597ad=_0x4597ad-0xc6;let _0x5915c0=_0x1a16f9[_0x4597ad];return _0x5915c0;},a5_0x4597(_0x5cf3d5,_0x5eeed1);}const AnnError_1=require(a5_0x3c6091(0xd7));class AnnErrorRender extends AnnError_1[a5_0x3c6091(0xc7)]{constructor(_0x5776b8,_0x58ff27){super(_0x5776b8,_0x58ff27);}async[a5_0x3c6091(0xc6)](_0x1d03f1,_0x217d7a){const _0x4c14e1=a5_0x3c6091;throw this[_0x4c14e1(0xc8)]+'\x20is\x20not\x20is\x20not\x20duplicated\x20function\x20render';}}exports['AnnErrorRender']=AnnErrorRender;
|
package/dist/helper/common.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a6_0x1fcf8f=a6_0x24e2;(function(_0x516e23,_0x46c455){const _0x143db9=a6_0x24e2,_0x41bd12=_0x516e23();while(!![]){try{const _0x311813=parseInt(_0x143db9(0x1e3))/0x1*(parseInt(_0x143db9(0x1d0))/0x2)+parseInt(_0x143db9(0x1d6))/0x3+-parseInt(_0x143db9(0x1e1))/0x4+parseInt(_0x143db9(0x1d4))/0x5+-parseInt(_0x143db9(0x1e4))/0x6+-parseInt(_0x143db9(0x1cc))/0x7*(parseInt(_0x143db9(0x1ca))/0x8)+-parseInt(_0x143db9(0x1dc))/0x9*(-parseInt(_0x143db9(0x1d2))/0xa);if(_0x311813===_0x46c455)break;else _0x41bd12['push'](_0x41bd12['shift']());}catch(_0x313cc9){_0x41bd12['push'](_0x41bd12['shift']());}}}(a6_0xf521,0xbe88c));Object[a6_0x1fcf8f(0x1cd)](exports,'__esModule',{'value':!![]}),exports['AES128_decode']=exports[a6_0x1fcf8f(0x1d3)]=exports['base64_decode']=exports['base64_encode']=exports[a6_0x1fcf8f(0x1e0)]=void 0x0;const cryptojs=require('crypto-js');function a6_0xf521(){const _0x128b61=['defineProperty','toString','AES128_decode','126562zQGzaE','encrypt','1930JFVAPF','AES128_encode','1844890EKqJvp','base64_encode','1138635fAyhzP','ECB','enc','AES','parse','Pkcs7','99549zmHHmy','stringify','mode','Base64','md5','2969032JDFsyf','pad','20TMEMIi','6483528iTluzK','Utf8','263088rlevEI','base64_decode','329apoSTf'];a6_0xf521=function(){return _0x128b61;};return a6_0xf521();}function md5(_0x1751cd,_0x17f819){const _0xa57e2c=a6_0x1fcf8f;return cryptojs['MD5'](_0x1751cd,_0x17f819)[_0xa57e2c(0x1ce)]();}exports[a6_0x1fcf8f(0x1e0)]=md5;function a6_0x24e2(_0xe82a92,_0x1de455){const _0xf52177=a6_0xf521();return a6_0x24e2=function(_0x24e28b,_0x5ad2e6){_0x24e28b=_0x24e28b-0x1c9;let _0xe07c8e=_0xf52177[_0x24e28b];return _0xe07c8e;},a6_0x24e2(_0xe82a92,_0x1de455);}function base64_encode(_0x23ae01){const _0x2384b8=a6_0x1fcf8f;return cryptojs[_0x2384b8(0x1d8)][_0x2384b8(0x1df)][_0x2384b8(0x1dd)](cryptojs[_0x2384b8(0x1d8)][_0x2384b8(0x1c9)]['parse'](_0x23ae01));}exports[a6_0x1fcf8f(0x1d5)]=base64_encode;function base64_decode(_0x316005){const _0x31bb06=a6_0x1fcf8f;return cryptojs[_0x31bb06(0x1d8)][_0x31bb06(0x1df)][_0x31bb06(0x1da)](_0x316005)['toString'](cryptojs[_0x31bb06(0x1d8)][_0x31bb06(0x1c9)]);}exports[a6_0x1fcf8f(0x1cb)]=base64_decode;function AES128_encode(_0x3aaa90,_0x30a2d0){const _0x2321d5=a6_0x1fcf8f;return cryptojs[_0x2321d5(0x1d9)][_0x2321d5(0x1d1)](cryptojs[_0x2321d5(0x1d8)][_0x2321d5(0x1c9)]['parse'](_0x30a2d0),cryptojs['enc']['Utf8'][_0x2321d5(0x1da)](_0x3aaa90),{'mode':cryptojs[_0x2321d5(0x1de)][_0x2321d5(0x1d7)],'padding':cryptojs['pad'][_0x2321d5(0x1db)]})[_0x2321d5(0x1ce)]();}exports['AES128_encode']=AES128_encode;function AES128_decode(_0x31978c,_0x27e259){const _0x1f71a1=a6_0x1fcf8f;return cryptojs[_0x1f71a1(0x1d8)][_0x1f71a1(0x1c9)][_0x1f71a1(0x1dd)](cryptojs['AES']['decrypt'](_0x27e259,cryptojs[_0x1f71a1(0x1d8)][_0x1f71a1(0x1c9)][_0x1f71a1(0x1da)](_0x31978c),{'mode':cryptojs['mode'][_0x1f71a1(0x1d7)],'padding':cryptojs[_0x1f71a1(0x1e2)]['Pkcs7']}))[_0x1f71a1(0x1ce)]();}exports[a6_0x1fcf8f(0x1cf)]=AES128_decode;
|
package/dist/helper/fileMd5.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function a7_0x4225(_0x1b211d,_0x53781d){const _0x18c0fc=a7_0x18c0();return a7_0x4225=function(_0x42254b,_0x4e1597){_0x42254b=_0x42254b-0x85;let _0x3d8c23=_0x18c0fc[_0x42254b];return _0x3d8c23;},a7_0x4225(_0x1b211d,_0x53781d);}const a7_0x9c2829=a7_0x4225;(function(_0x33ddfa,_0x5716db){const _0xaffb0b=a7_0x4225,_0x5d6a78=_0x33ddfa();while(!![]){try{const _0x43f08b=parseInt(_0xaffb0b(0x8e))/0x1+parseInt(_0xaffb0b(0x8a))/0x2*(parseInt(_0xaffb0b(0x89))/0x3)+-parseInt(_0xaffb0b(0x88))/0x4*(parseInt(_0xaffb0b(0x91))/0x5)+parseInt(_0xaffb0b(0x92))/0x6+parseInt(_0xaffb0b(0x93))/0x7+-parseInt(_0xaffb0b(0x86))/0x8*(-parseInt(_0xaffb0b(0x98))/0x9)+parseInt(_0xaffb0b(0x94))/0xa*(-parseInt(_0xaffb0b(0x95))/0xb);if(_0x43f08b===_0x5716db)break;else _0x5d6a78['push'](_0x5d6a78['shift']());}catch(_0x1940e8){_0x5d6a78['push'](_0x5d6a78['shift']());}}}(a7_0x18c0,0x99598));Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a7_0x9c2829(0x90)]=void 0x0;const fs=require('fs'),crypto=require('crypto');function fileMd5(_0x562773){return new Promise((_0x24bbaf,_0x3155b0)=>{fs['stat'](_0x562773,(_0x251bae,_0x464864)=>{const _0xfba40b=a7_0x4225;if(_0x251bae)return _0x3155b0(_0x251bae);if(!_0x464864[_0xfba40b(0x96)]())return _0x3155b0(new Error(_0x562773+_0xfba40b(0x8c)));const _0x17d05c=crypto['createHash'](_0xfba40b(0x8f)),_0x437045=fs[_0xfba40b(0x8d)](_0x562773);_0x437045['on'](_0xfba40b(0x8b),_0x17d05c[_0xfba40b(0x97)][_0xfba40b(0x99)](_0x17d05c)),_0x437045['on'](_0xfba40b(0x85),_0x2f5b88=>_0x3155b0(_0x2f5b88)),_0x437045['on'](_0xfba40b(0x87),()=>_0x24bbaf(_0x17d05c['digest']('hex')));});});}exports[a7_0x9c2829(0x90)]=fileMd5;function a7_0x18c0(){const _0x540791=['end','20nSBPev','12FeBWnJ','341930ElBuze','data','\x20is\x20not\x20file','createReadStream','1136657GVBdLf','md5','fileMd5','257820bOgMlA','280224tFdRsK','2691437zQfZWK','3471080CCgCuU','44drIyYX','isFile','update','1980xTRtGw','bind','error','824vzXpln'];a7_0x18c0=function(){return _0x540791;};return a7_0x18c0();}
|
package/dist/helper/globDir.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a8_0x12904f=a8_0x2eef;(function(_0xb32989,_0x50f509){const _0x574123=a8_0x2eef,_0x2f7d8f=_0xb32989();while(!![]){try{const _0x1046b1=parseInt(_0x574123(0x8f))/0x1*(-parseInt(_0x574123(0x87))/0x2)+-parseInt(_0x574123(0x92))/0x3*(-parseInt(_0x574123(0x95))/0x4)+parseInt(_0x574123(0xa1))/0x5+-parseInt(_0x574123(0xa0))/0x6+-parseInt(_0x574123(0x96))/0x7*(-parseInt(_0x574123(0x9f))/0x8)+parseInt(_0x574123(0x98))/0x9*(parseInt(_0x574123(0x85))/0xa)+-parseInt(_0x574123(0x84))/0xb;if(_0x1046b1===_0x50f509)break;else _0x2f7d8f['push'](_0x2f7d8f['shift']());}catch(_0x385d18){_0x2f7d8f['push'](_0x2f7d8f['shift']());}}}(a8_0x4d97,0x62062));Object['defineProperty'](exports,a8_0x12904f(0x9c),{'value':!![]}),exports['globDir']=void 0x0;const fs=require('fs'),path=require(a8_0x12904f(0x8b));function a8_0x2eef(_0x29cdbf,_0x1d9b31){const _0x4d971e=a8_0x4d97();return a8_0x2eef=function(_0x2eef10,_0x347a96){_0x2eef10=_0x2eef10-0x84;let _0xed0a8c=_0x4d971e[_0x2eef10];return _0xed0a8c;},a8_0x2eef(_0x29cdbf,_0x1d9b31);}function a8_0x4d97(){const _0x5ec817=['test','keys','directory','path','readdirSync','normalize','useSubdirectories','411909XNLGcB','filename','readFileSync','3IUugHp','modules','regExp','2832664iECjJg','588MhgsOo','isDirectory','4923MeTlBT','parse','__findModules','statSync','__esModule','parent','join','17640ocGKVu','965634gDAXdv','3260350ATFvjN','push','Can\x27t\x20Found\x20Module\x20','isAbsolute','existsSync','__findDirectory','dir','14567531rYXnlk','13770xUelui','resolve','2TdfjVo'];a8_0x4d97=function(){return _0x5ec817;};return a8_0x4d97();}class RequireContext{constructor(_0x4b4c94,_0xa3c5ff,_0x54d7d3){const _0x255cc0=a8_0x12904f;this[_0x255cc0(0x93)]=[],this[_0x255cc0(0x94)]=_0x54d7d3,this[_0x255cc0(0x8e)]=!!_0xa3c5ff,this[_0x255cc0(0x8a)]=this['__findDirectory'](_0x4b4c94),this[_0x255cc0(0x9a)](this[_0x255cc0(0x8a)]);}[a8_0x12904f(0xa6)](_0x395a77){const _0x53605b=a8_0x12904f;if(path[_0x53605b(0xa4)](_0x395a77)||!module[_0x53605b(0x9d)])return _0x395a77;return path[_0x53605b(0x8d)](path[_0x53605b(0x9e)](path[_0x53605b(0x99)](module[_0x53605b(0x9d)][_0x53605b(0x90)])[_0x53605b(0xa7)],_0x395a77));}['__findModules'](_0x20c385){const _0x301161=a8_0x12904f;if(fs[_0x301161(0xa5)](_0x20c385))fs[_0x301161(0x8c)](_0x20c385)['forEach'](_0x5524b7=>{const _0x1606cf=_0x301161,_0x2e9209=path[_0x1606cf(0x86)](_0x20c385,_0x5524b7);if(fs[_0x1606cf(0x9b)](_0x2e9209)[_0x1606cf(0x97)]()){if(this[_0x1606cf(0x8e)]){this['__findModules'](_0x2e9209);return;}}else{if(this['regExp']&&!this[_0x1606cf(0x94)][_0x1606cf(0x88)](_0x2e9209))return;this[_0x1606cf(0x93)][_0x1606cf(0xa2)](_0x2e9209);}});else throw new Error(_0x301161(0xa3)+_0x20c385);}}function globDir(_0x1495c0='.',_0x30c817=![],_0x515567=/(?:)/,_0x940823){const _0x5b482f=a8_0x12904f,_0x55444f=new RequireContext(_0x1495c0,_0x30c817,_0x515567);if(_0x940823){const _0x36806b=_0x5c0fb4=>fs[_0x5b482f(0x91)](_0x5c0fb4,_0x940823);return _0x36806b['keys']=()=>[..._0x55444f[_0x5b482f(0x93)]],_0x36806b;}else{const _0x2834cb=_0xa3b2bb=>require(_0xa3b2bb);return _0x2834cb[_0x5b482f(0x89)]=()=>[..._0x55444f['modules']],_0x2834cb;}}exports['globDir']=globDir;
|
package/dist/helper/include.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a9_0x2f786c=a9_0x588b;(function(_0x3150ec,_0xc8eb88){const _0x7b97a0=a9_0x588b,_0x288a64=_0x3150ec();while(!![]){try{const _0x36fe18=parseInt(_0x7b97a0(0x199))/0x1+-parseInt(_0x7b97a0(0x1a3))/0x2*(parseInt(_0x7b97a0(0x19b))/0x3)+parseInt(_0x7b97a0(0x198))/0x4+parseInt(_0x7b97a0(0x19f))/0x5*(-parseInt(_0x7b97a0(0x19a))/0x6)+parseInt(_0x7b97a0(0x19c))/0x7+-parseInt(_0x7b97a0(0x1a4))/0x8*(-parseInt(_0x7b97a0(0x19d))/0x9)+parseInt(_0x7b97a0(0x197))/0xa*(parseInt(_0x7b97a0(0x1a6))/0xb);if(_0x36fe18===_0xc8eb88)break;else _0x288a64['push'](_0x288a64['shift']());}catch(_0x5b70d4){_0x288a64['push'](_0x288a64['shift']());}}}(a9_0x4110,0x9e73f));function a9_0x4110(){const _0x2fdb7d=['5eysjVf','jiti','defineProperty','include','42142MoLRAO','347192RduQtz','default','11SxHMzH','get','2558410JCrVFI','1548720YSdvuz','1053922mWnnoZ','4941702hUfDAH','177porUsy','144963UkmgaX','207FAWwQM','defaultsDeep'];a9_0x4110=function(){return _0x2fdb7d;};return a9_0x4110();}function a9_0x588b(_0x425169,_0x397135){const _0x41107b=a9_0x4110();return a9_0x588b=function(_0x588b2e,_0x302f57){_0x588b2e=_0x588b2e-0x197;let _0x4848ae=_0x41107b[_0x588b2e];return _0x4848ae;},a9_0x588b(_0x425169,_0x397135);}Object[a9_0x2f786c(0x1a1)](exports,'__esModule',{'value':!![]}),exports[a9_0x2f786c(0x1a2)]=void 0x0;const jiti=require(a9_0x2f786c(0x1a0)),lodash_1=require('lodash');function include(_0x3c160f){const _0x2f31c3=a9_0x2f786c,_0xd9b9cd={},_0xb078a0=jiti()(_0x3c160f);for(let _0x45536d in _0xb078a0){_0x45536d!='default'&&(0x0,lodash_1[_0x2f31c3(0x19e)])(_0xd9b9cd,{[_0x45536d]:_0xb078a0[_0x45536d]});}return(0x0,lodash_1['defaultsDeep'])(_0xd9b9cd,(0x0,lodash_1[_0x2f31c3(0x1a7)])(_0xb078a0,_0x2f31c3(0x1a5),{}));}exports[a9_0x2f786c(0x1a2)]=include;
|
package/dist/helper/sleep.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a10_0x3a4889=a10_0x4814;(function(_0x4330dc,_0x1c1741){var _0x1e8c89=a10_0x4814,_0x6009fc=_0x4330dc();while(!![]){try{var _0x6c4764=-parseInt(_0x1e8c89(0x1c2))/0x1*(-parseInt(_0x1e8c89(0x1c4))/0x2)+parseInt(_0x1e8c89(0x1c3))/0x3*(-parseInt(_0x1e8c89(0x1c9))/0x4)+parseInt(_0x1e8c89(0x1cc))/0x5+parseInt(_0x1e8c89(0x1bf))/0x6*(-parseInt(_0x1e8c89(0x1c1))/0x7)+-parseInt(_0x1e8c89(0x1c8))/0x8+parseInt(_0x1e8c89(0x1c5))/0x9*(parseInt(_0x1e8c89(0x1c7))/0xa)+parseInt(_0x1e8c89(0x1c6))/0xb;if(_0x6c4764===_0x1c1741)break;else _0x6009fc['push'](_0x6009fc['shift']());}catch(_0x340d87){_0x6009fc['push'](_0x6009fc['shift']());}}}(a10_0x4704,0x63ae2));function a10_0x4814(_0x5ec768,_0x3ff52c){var _0x470431=a10_0x4704();return a10_0x4814=function(_0x48143f,_0x3f81b5){_0x48143f=_0x48143f-0x1bf;var _0x1eb768=_0x470431[_0x48143f];return _0x1eb768;},a10_0x4814(_0x5ec768,_0x3ff52c);}Object[a10_0x3a4889(0x1cb)](exports,a10_0x3a4889(0x1ca),{'value':!![]}),exports[a10_0x3a4889(0x1c0)]=void 0x0;function sleep(_0x18fda5=0xc8){return new Promise(_0x3d03ef=>setTimeout(_0x3d03ef,_0x18fda5));}function a10_0x4704(){var _0x103b48=['__esModule','defineProperty','2100580zJiojl','534XfQnvj','sleep','40327aXMXes','14549tQtgzc','75252FUdSKi','92YljXFM','35244oeGXMP','3642650jVlLtf','380BimuOz','3781768fcZsDt','28DPdruI'];a10_0x4704=function(){return _0x103b48;};return a10_0x4704();}exports[a10_0x3a4889(0x1c0)]=sleep;
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a11_0x343dc7=a11_0x592b;(function(_0xf7dfca,_0x43019f){const _0x5616da=a11_0x592b,_0x4c9f98=_0xf7dfca();while(!![]){try{const _0x3fab78=-parseInt(_0x5616da(0x118))/0x1+parseInt(_0x5616da(0x12a))/0x2+-parseInt(_0x5616da(0x116))/0x3*(-parseInt(_0x5616da(0x13f))/0x4)+parseInt(_0x5616da(0x143))/0x5+parseInt(_0x5616da(0x137))/0x6*(-parseInt(_0x5616da(0x140))/0x7)+-parseInt(_0x5616da(0x12b))/0x8+parseInt(_0x5616da(0x121))/0x9;if(_0x3fab78===_0x43019f)break;else _0x4c9f98['push'](_0x4c9f98['shift']());}catch(_0x271859){_0x4c9f98['push'](_0x4c9f98['shift']());}}}(a11_0x4f1f,0x359ff));Object[a11_0x343dc7(0x134)](exports,a11_0x343dc7(0x13b),{'value':!![]}),exports[a11_0x343dc7(0x13c)]=exports[a11_0x343dc7(0x122)]=exports['getAnnErrorList']=exports[a11_0x343dc7(0x132)]=exports['AnnErrorMsg']=exports['getAnnEnumArray']=exports[a11_0x343dc7(0x119)]=exports[a11_0x343dc7(0x131)]=exports['getAnnEnumMsg']=exports[a11_0x343dc7(0x13e)]=exports[a11_0x343dc7(0x127)]=exports[a11_0x343dc7(0x115)]=exports[a11_0x343dc7(0x11d)]=exports[a11_0x343dc7(0x124)]=exports[a11_0x343dc7(0x125)]=exports[a11_0x343dc7(0x130)]=exports[a11_0x343dc7(0x13d)]=exports[a11_0x343dc7(0x135)]=exports['sleep']=exports['dayjs']=exports[a11_0x343dc7(0x138)]=exports['lodash']=exports[a11_0x343dc7(0x133)]=exports[a11_0x343dc7(0x142)]=exports[a11_0x343dc7(0x11e)]=exports[a11_0x343dc7(0x123)]=exports[a11_0x343dc7(0x141)]=void 0x0;const axios_1=require(a11_0x343dc7(0x123));exports[a11_0x343dc7(0x123)]=axios_1[a11_0x343dc7(0x12d)];const dayjs=require('dayjs');exports[a11_0x343dc7(0x11f)]=dayjs;const urllib=require('urllib');exports[a11_0x343dc7(0x11e)]=urllib;const mathjs=require(a11_0x343dc7(0x133));exports[a11_0x343dc7(0x133)]=mathjs;const lodash=require(a11_0x343dc7(0x120));exports[a11_0x343dc7(0x120)]=lodash;const fsplus=require(a11_0x343dc7(0x128));exports[a11_0x343dc7(0x142)]=fsplus;const collect_js_1=require(a11_0x343dc7(0x13a));Object[a11_0x343dc7(0x134)](exports,a11_0x343dc7(0x135),{'enumerable':!![],'get':function(){const _0x3adc4a=a11_0x343dc7;return collect_js_1[_0x3adc4a(0x135)];}});const sleep_1=require('./helper/sleep');Object[a11_0x343dc7(0x134)](exports,a11_0x343dc7(0x126),{'enumerable':!![],'get':function(){const _0x1c5a13=a11_0x343dc7;return sleep_1[_0x1c5a13(0x126)];}});const include_1=require(a11_0x343dc7(0x11a));Object[a11_0x343dc7(0x134)](exports,a11_0x343dc7(0x13d),{'enumerable':!![],'get':function(){const _0x17621f=a11_0x343dc7;return include_1[_0x17621f(0x13d)];}});const globDir_1=require(a11_0x343dc7(0x117));Object[a11_0x343dc7(0x134)](exports,a11_0x343dc7(0x130),{'enumerable':!![],'get':function(){return globDir_1['globDir'];}});const fileMd5_1=require(a11_0x343dc7(0x11b));Object[a11_0x343dc7(0x134)](exports,a11_0x343dc7(0x125),{'enumerable':!![],'get':function(){return fileMd5_1['fileMd5'];}});const AnnError_1=require(a11_0x343dc7(0x11c));Object[a11_0x343dc7(0x134)](exports,'AnnError',{'enumerable':!![],'get':function(){const _0x5f34fd=a11_0x343dc7;return AnnError_1[_0x5f34fd(0x122)];}});const common_1=require(a11_0x343dc7(0x113));Object[a11_0x343dc7(0x134)](exports,a11_0x343dc7(0x138),{'enumerable':!![],'get':function(){const _0x302ef5=a11_0x343dc7;return common_1[_0x302ef5(0x138)];}}),Object[a11_0x343dc7(0x134)](exports,a11_0x343dc7(0x124),{'enumerable':!![],'get':function(){const _0x56dca6=a11_0x343dc7;return common_1[_0x56dca6(0x124)];}}),Object[a11_0x343dc7(0x134)](exports,'base64_decode',{'enumerable':!![],'get':function(){const _0x63329f=a11_0x343dc7;return common_1[_0x63329f(0x11d)];}}),Object[a11_0x343dc7(0x134)](exports,a11_0x343dc7(0x115),{'enumerable':!![],'get':function(){const _0x29592b=a11_0x343dc7;return common_1[_0x29592b(0x115)];}}),Object[a11_0x343dc7(0x134)](exports,a11_0x343dc7(0x127),{'enumerable':!![],'get':function(){const _0xf93529=a11_0x343dc7;return common_1[_0xf93529(0x127)];}});const AnnErrorRender_1=require(a11_0x343dc7(0x12c));Object[a11_0x343dc7(0x134)](exports,a11_0x343dc7(0x13c),{'enumerable':!![],'get':function(){const _0x4a67d6=a11_0x343dc7;return AnnErrorRender_1[_0x4a67d6(0x13c)];}});function a11_0x592b(_0x149bbc,_0x4e66d8){const _0x4f1ff4=a11_0x4f1f();return a11_0x592b=function(_0x592b27,_0x496529){_0x592b27=_0x592b27-0x112;let _0x195c0a=_0x4f1ff4[_0x592b27];return _0x195c0a;},a11_0x592b(_0x149bbc,_0x4e66d8);}const AnnErrorMsg_1=require(a11_0x343dc7(0x136));Object[a11_0x343dc7(0x134)](exports,a11_0x343dc7(0x129),{'enumerable':!![],'get':function(){const _0x2886f6=a11_0x343dc7;return AnnErrorMsg_1[_0x2886f6(0x129)];}}),Object[a11_0x343dc7(0x134)](exports,a11_0x343dc7(0x132),{'enumerable':!![],'get':function(){const _0x276838=a11_0x343dc7;return AnnErrorMsg_1[_0x276838(0x132)];}}),Object[a11_0x343dc7(0x134)](exports,a11_0x343dc7(0x12e),{'enumerable':!![],'get':function(){const _0x421fc5=a11_0x343dc7;return AnnErrorMsg_1[_0x421fc5(0x12e)];}});function a11_0x4f1f(){const _0x33eef5=['./exception/AnnErrorRender','default','getAnnErrorList','./decorator/AnnEnumMsg','globDir','getAnnEnumMap','getAnnErrorMsg','mathjs','defineProperty','collect','./decorator/AnnErrorMsg','544482IhgcpT','md5','getAnnEnumMsg','collect.js','__esModule','AnnErrorRender','include','AnnEnumMsg','68168LVXhwv','21JlJuoa','Configuration','fsplus','145430vOQNXF','getAnnEnumArray','./helper/common','./configuration','AES128_encode','57BJJeKq','./helper/globDir','321778VsrUNA','getAnnEnumList','./helper/include','./helper/fileMd5','./exception/AnnError','base64_decode','urllib','dayjs','lodash','5767821ameSXk','AnnError','axios','base64_encode','fileMd5','sleep','AES128_decode','fs-extra','AnnErrorMsg','176888fuATvF','2148248nYzrzY'];a11_0x4f1f=function(){return _0x33eef5;};return a11_0x4f1f();}const AnnEnumMsg_1=require(a11_0x343dc7(0x12f));Object['defineProperty'](exports,a11_0x343dc7(0x13e),{'enumerable':!![],'get':function(){const _0xd577e2=a11_0x343dc7;return AnnEnumMsg_1[_0xd577e2(0x13e)];}}),Object['defineProperty'](exports,'getAnnEnumMsg',{'enumerable':!![],'get':function(){return AnnEnumMsg_1['getAnnEnumMsg'];}}),Object[a11_0x343dc7(0x134)](exports,a11_0x343dc7(0x131),{'enumerable':!![],'get':function(){const _0x20e5b8=a11_0x343dc7;return AnnEnumMsg_1[_0x20e5b8(0x131)];}}),Object[a11_0x343dc7(0x134)](exports,'getAnnEnumList',{'enumerable':!![],'get':function(){return AnnEnumMsg_1['getAnnEnumList'];}}),Object[a11_0x343dc7(0x134)](exports,a11_0x343dc7(0x112),{'enumerable':!![],'get':function(){const _0x39f7a8=a11_0x343dc7;return AnnEnumMsg_1[_0x39f7a8(0x112)];}});var configuration_1=require(a11_0x343dc7(0x114));Object['defineProperty'](exports,'Configuration',{'enumerable':!![],'get':function(){return configuration_1['CustomConfiguration'];}}),(global[a11_0x343dc7(0x123)]=axios_1[a11_0x343dc7(0x12d)],global[a11_0x343dc7(0x11e)]=urllib),(global['fsplus']=fsplus,global[a11_0x343dc7(0x133)]=mathjs,global[a11_0x343dc7(0x120)]=lodash),(global['dayjs']=dayjs,global[a11_0x343dc7(0x126)]=sleep_1['sleep'],global[a11_0x343dc7(0x135)]=collect_js_1[a11_0x343dc7(0x135)],global[a11_0x343dc7(0x13d)]=include_1['include'],global[a11_0x343dc7(0x130)]=globDir_1[a11_0x343dc7(0x130)]),(global['md5']=common_1['md5'],global['fileMd5']=fileMd5_1[a11_0x343dc7(0x125)],global[a11_0x343dc7(0x124)]=common_1['base64_encode'],global[a11_0x343dc7(0x11d)]=common_1[a11_0x343dc7(0x11d)],global['AES128_encode']=common_1[a11_0x343dc7(0x115)],global[a11_0x343dc7(0x127)]=common_1['AES128_decode']),(global[a11_0x343dc7(0x13e)]=AnnEnumMsg_1[a11_0x343dc7(0x13e)],global['getAnnEnumMsg']=AnnEnumMsg_1[a11_0x343dc7(0x139)],global[a11_0x343dc7(0x131)]=AnnEnumMsg_1[a11_0x343dc7(0x131)],global[a11_0x343dc7(0x119)]=AnnEnumMsg_1[a11_0x343dc7(0x119)],global[a11_0x343dc7(0x112)]=AnnEnumMsg_1['getAnnEnumArray']),(global[a11_0x343dc7(0x129)]=AnnErrorMsg_1[a11_0x343dc7(0x129)],global['getAnnErrorMsg']=AnnErrorMsg_1[a11_0x343dc7(0x132)],global[a11_0x343dc7(0x12e)]=AnnErrorMsg_1[a11_0x343dc7(0x12e)],global[a11_0x343dc7(0x122)]=AnnError_1['AnnError'],global[a11_0x343dc7(0x13c)]=AnnErrorRender_1[a11_0x343dc7(0x13c)]);
|
package/index.d.ts
CHANGED
|
@@ -68,10 +68,9 @@ declare global { // 全局变量设置
|
|
|
68
68
|
static readonly OK = 0;
|
|
69
69
|
static readonly UNKNOW = 5000000;
|
|
70
70
|
static readonly PARAMS = 4060000;
|
|
71
|
-
static readonly NOFIND = 4040000;
|
|
72
71
|
static readonly NOAUTH = 4030000;
|
|
73
|
-
static readonly
|
|
74
|
-
|
|
72
|
+
static readonly NOTFIND = 4040000;
|
|
73
|
+
static readonly NOTLOGIN = 4010000;
|
|
75
74
|
|
|
76
75
|
constructor(code: number, result?: {
|
|
77
76
|
[key: string]: any;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anncic-api/core",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.5",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"typings": "index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -16,28 +16,27 @@
|
|
|
16
16
|
"build": "tsc && javascript-obfuscator ./dist --output ./dist --config obfuscator.json"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@midwayjs/bootstrap": "^3.7.
|
|
19
|
+
"@midwayjs/bootstrap": "^3.7.3",
|
|
20
20
|
"@midwayjs/core": "^3.7.0",
|
|
21
|
-
"@midwayjs/mock": "^3.7.1",
|
|
22
21
|
"@types/crypto-js": "^4.1.1",
|
|
23
22
|
"@types/fs-extra": "^9.0.13",
|
|
24
|
-
"@types/lodash": "^4.14.
|
|
25
|
-
"@types/node": "^18.8.4",
|
|
23
|
+
"@types/lodash": "^4.14.188",
|
|
26
24
|
"axios": "^1.1.3",
|
|
27
25
|
"collect.js": "^4.34.3",
|
|
28
26
|
"cross-env": "^7.0.3",
|
|
29
27
|
"crypto-js": "^4.1.1",
|
|
30
|
-
"dayjs": "^1.11.
|
|
28
|
+
"dayjs": "^1.11.6",
|
|
31
29
|
"fs-extra": "^10.1.0",
|
|
32
30
|
"jiti": "^1.16.0",
|
|
33
31
|
"lodash": "^4.17.21",
|
|
34
32
|
"mathjs": "^11.3.0",
|
|
35
33
|
"mwts": "^1.3.0",
|
|
36
|
-
"
|
|
37
|
-
"urllib": "^3.3.0"
|
|
34
|
+
"urllib": "^3.5.0"
|
|
38
35
|
},
|
|
39
36
|
"devDependencies": {
|
|
40
|
-
"
|
|
37
|
+
"@types/node": "^18.8.4",
|
|
38
|
+
"javascript-obfuscator": "2.19.0",
|
|
39
|
+
"typescript": "^4.8.4"
|
|
41
40
|
},
|
|
42
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "d8c71ca8c30793c3fa8b6e0f74fc5b6e123f1066"
|
|
43
42
|
}
|