@anncic-api/core 1.3.3 → 1.3.4
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 +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a0_0x52f2e1=a0_0x1397;(function(_0x17ff04,_0x4f43a9){var _0x1fbb34=a0_0x1397,_0x442b7e=_0x17ff04();while(!![]){try{var _0x4f5189=-parseInt(_0x1fbb34(0xeb))/0x1+parseInt(_0x1fbb34(0xea))/0x2*(-parseInt(_0x1fbb34(0xf3))/0x3)+parseInt(_0x1fbb34(0xef))/0x4*(parseInt(_0x1fbb34(0xee))/0x5)+-parseInt(_0x1fbb34(0xf4))/0x6*(parseInt(_0x1fbb34(0xe7))/0x7)+parseInt(_0x1fbb34(0xe9))/0x8*(-parseInt(_0x1fbb34(0xf2))/0x9)+parseInt(_0x1fbb34(0xec))/0xa+-parseInt(_0x1fbb34(0xf1))/0xb*(-parseInt(_0x1fbb34(0xf0))/0xc);if(_0x4f5189===_0x4f43a9)break;else _0x442b7e['push'](_0x442b7e['shift']());}catch(_0xc3155a){_0x442b7e['push'](_0x442b7e['shift']());}}}(a0_0x83a2,0xbe7c8));function a0_0x1397(_0x585afa,_0x1f58d4){var _0x83a287=a0_0x83a2();return a0_0x1397=function(_0x1397ea,_0x32b847){_0x1397ea=_0x1397ea-0xe7;var _0x10eec3=_0x83a287[_0x1397ea];return _0x10eec3;},a0_0x1397(_0x585afa,_0x1f58d4);}function a0_0x83a2(){var _0x546c14=['12OQyAhG','28473973qqnKbO','6963147atWYZZ','3088161kZvcKf','33378Llyrow','644JEdSoM','/runtime','16hCPxJd','2ielvzO','727355GMYuNY','7282160piOAJZ','__esModule','6396885NkOwwe','4gnxusQ'];a0_0x83a2=function(){return _0x546c14;};return a0_0x83a2();}Object['defineProperty'](exports,a0_0x52f2e1(0xed),{'value':!![]}),exports['default']=_0x4c1556=>{var _0x218dd4=a0_0x52f2e1;return{'midwayLogger':{'default':{'maxSize':'1m','dir':_0x4c1556['appDir']+_0x218dd4(0xe8)}}};};
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';const a1_0x537cff=a1_0x8a51;(function(_0x6674c4,_0x351768){const _0x468951=a1_0x8a51,_0x28cb73=_0x6674c4();while(!![]){try{const _0x356346=parseInt(_0x468951(0xc8))/0x1*(-parseInt(_0x468951(0xc5))/0x2)+parseInt(_0x468951(0xce))/0x3+-parseInt(_0x468951(0xeb))/0x4+-parseInt(_0x468951(0xe5))/0x5+parseInt(_0x468951(0xcd))/0x6*(parseInt(_0x468951(0xc0))/0x7)+parseInt(_0x468951(0xf0))/0x8+parseInt(_0x468951(0xd2))/0x9*(parseInt(_0x468951(0xe9))/0xa);if(_0x356346===_0x351768)break;else _0x28cb73['push'](_0x28cb73['shift']());}catch(_0x3c03d8){_0x28cb73['push'](_0x28cb73['shift']());}}}(a1_0x445e,0xbabad));function a1_0x445e(){const _0x404903=['__esModule','design:type','MidwayApplicationManager','useMiddleware','12XnvKrZ','2306928jqJOCR','onReady','message','metadata','1989171QWrDCd','getCurrentEnvironment','request','render','isDevelopmentEnvironment','AnnError','koa','@midwayjs/core','logger','length','\x20at\x20','./exception/AnnError','environment','getOwnPropertyDescriptor','prototype','./exception/AnnErrorRender','NotFoundError','response','Configuration','7233505CEjkhq','function','defineProperty','forEach','20OwDlkJ','./config/config.default','222648ryyUAG','error','body','AnnErrorRender','CustomConfiguration','1570152dSqRKz','stack','decorate','code','anncic-api:core','_matchedRoute','__metadata','MidwayEnvironmentService','5258113ToixPd','express','application','getApplications','Inject','1284786iYNrCG','object','__decorate','1UmpSZs'];a1_0x445e=function(){return _0x404903;};return a1_0x445e();}var __decorate=this&&this[a1_0x537cff(0xc7)]||function(_0x7174ae,_0xe91041,_0x2078fb,_0x3c3d91){const _0x4be643=a1_0x537cff;var _0x17f80d=arguments[_0x4be643(0xdb)],_0x124192=_0x17f80d<0x3?_0xe91041:_0x3c3d91===null?_0x3c3d91=Object[_0x4be643(0xdf)](_0xe91041,_0x2078fb):_0x3c3d91,_0x41e4bb;if(typeof Reflect===_0x4be643(0xc6)&&typeof Reflect[_0x4be643(0xf2)]==='function')_0x124192=Reflect[_0x4be643(0xf2)](_0x7174ae,_0xe91041,_0x2078fb,_0x3c3d91);else{for(var _0x41d9c4=_0x7174ae['length']-0x1;_0x41d9c4>=0x0;_0x41d9c4--)if(_0x41e4bb=_0x7174ae[_0x41d9c4])_0x124192=(_0x17f80d<0x3?_0x41e4bb(_0x124192):_0x17f80d>0x3?_0x41e4bb(_0xe91041,_0x2078fb,_0x124192):_0x41e4bb(_0xe91041,_0x2078fb))||_0x124192;}return _0x17f80d>0x3&&_0x124192&&Object[_0x4be643(0xe7)](_0xe91041,_0x2078fb,_0x124192),_0x124192;},__metadata=this&&this[a1_0x537cff(0xbe)]||function(_0x4da0f9,_0x32692a){const _0xedf1ed=a1_0x537cff;if(typeof Reflect==='object'&&typeof Reflect['metadata']==='function')return Reflect[_0xedf1ed(0xd1)](_0x4da0f9,_0x32692a);};function a1_0x8a51(_0x15b193,_0x503568){const _0x445ef5=a1_0x445e();return a1_0x8a51=function(_0x8a5103,_0x384cd7){_0x8a5103=_0x8a5103-0xbc;let _0x45fe0d=_0x445ef5[_0x8a5103];return _0x45fe0d;},a1_0x8a51(_0x15b193,_0x503568);}Object[a1_0x537cff(0xe7)](exports,a1_0x537cff(0xc9),{'value':!![]}),exports['CustomConfiguration']=void 0x0;const core_1=require(a1_0x537cff(0xd9)),core_2=require(a1_0x537cff(0xd9)),AnnError_1=require(a1_0x537cff(0xdd)),AnnErrorRender_1=require(a1_0x537cff(0xe1)),ConfigDefault=require(a1_0x537cff(0xea));let CustomConfiguration=class CustomConfiguration{async[a1_0x537cff(0xcf)](){const _0x45801c=a1_0x537cff;this['application'][_0x45801c(0xc3)]([_0x45801c(0xd8),'faas',_0x45801c(0xc1),'egg'])[_0x45801c(0xe8)](_0x419cc1=>{const _0x58c7ec=_0x45801c;_0x419cc1[_0x58c7ec(0xcc)](async(_0x33c6a5,_0x2eacac)=>{const _0x5f84a=_0x58c7ec;var _0x796e8c,_0x4324da,_0x6d641b;try{await _0x2eacac();}catch(_0x56baef){if(_0x56baef instanceof AnnErrorRender_1[_0x5f84a(0xee)])await _0x56baef[_0x5f84a(0xd5)](_0x33c6a5,_0x419cc1);else{if(_0x56baef instanceof AnnError_1[_0x5f84a(0xd7)]){const _0x217164=_0x56baef[_0x5f84a(0xe3)]||{'code':_0x56baef[_0x5f84a(0xf3)]};!(_0x217164===null||_0x217164===void 0x0?void 0x0:_0x217164[_0x5f84a(0xd0)])&&(_0x56baef===null||_0x56baef===void 0x0?void 0x0:_0x56baef[_0x5f84a(0xd0)])&&(_0x217164[_0x5f84a(0xd0)]=_0x56baef['message']),this['environment'][_0x5f84a(0xd3)]()=='local'?(!_0x217164[_0x5f84a(0xec)]&&(_0x217164[_0x5f84a(0xec)]={}),!((_0x796e8c=_0x217164===null||_0x217164===void 0x0?void 0x0:_0x217164['error'])===null||_0x796e8c===void 0x0?void 0x0:_0x796e8c['message'])&&(_0x56baef===null||_0x56baef===void 0x0?void 0x0:_0x56baef[_0x5f84a(0xd0)])&&(_0x217164[_0x5f84a(0xec)][_0x5f84a(0xd0)]=_0x56baef[_0x5f84a(0xd0)]),!((_0x4324da=_0x217164===null||_0x217164===void 0x0?void 0x0:_0x217164[_0x5f84a(0xec)])===null||_0x4324da===void 0x0?void 0x0:_0x4324da[_0x5f84a(0xf1)])&&(_0x56baef===null||_0x56baef===void 0x0?void 0x0:_0x56baef[_0x5f84a(0xf1)])&&(_0x217164['error'][_0x5f84a(0xf1)]=_0x56baef[_0x5f84a(0xf1)]['split'](_0x5f84a(0xdc)))):delete _0x217164['error'],_0x33c6a5[_0x5f84a(0xed)]=_0x217164;}else{if(_0x56baef instanceof core_2['httpError'][_0x5f84a(0xe2)]){}else{if(_0x56baef instanceof Error){if(this['environment'][_0x5f84a(0xd6)]())console['error'](_0x56baef);else typeof((_0x6d641b=_0x33c6a5===null||_0x33c6a5===void 0x0?void 0x0:_0x33c6a5[_0x5f84a(0xda)])===null||_0x6d641b===void 0x0?void 0x0:_0x6d641b[_0x5f84a(0xec)])==_0x5f84a(0xe6)&&(_0x56baef['matched']=(_0x33c6a5===null||_0x33c6a5===void 0x0?void 0x0:_0x33c6a5[_0x5f84a(0xbd)])||'',_0x56baef[_0x5f84a(0xd4)]=(_0x33c6a5===null||_0x33c6a5===void 0x0?void 0x0:_0x33c6a5[_0x5f84a(0xd4)])||{},_0x33c6a5['logger']['error'](_0x56baef));_0x33c6a5[_0x5f84a(0xed)]={'code':AnnError_1['AnnError']['UNKNOW'],'message':'网络异常,请联系管理员。'};}}}}}});});}};__decorate([(0x0,core_1[a1_0x537cff(0xc4)])(),__metadata(a1_0x537cff(0xca),core_2[a1_0x537cff(0xcb)])],CustomConfiguration['prototype'],a1_0x537cff(0xc2),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata(a1_0x537cff(0xca),core_2[a1_0x537cff(0xbf)])],CustomConfiguration[a1_0x537cff(0xe0)],a1_0x537cff(0xde),void 0x0),CustomConfiguration=__decorate([(0x0,core_1[a1_0x537cff(0xe4)])({'namespace':a1_0x537cff(0xbc),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration),exports[a1_0x537cff(0xef)]=CustomConfiguration;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function a2_0x1a40(_0x3d4db4,_0x4669f8){const _0x521520=a2_0x5215();return a2_0x1a40=function(_0x1a4098,_0x458e9b){_0x1a4098=_0x1a4098-0x6f;let _0x23a1b6=_0x521520[_0x1a4098];return _0x23a1b6;},a2_0x1a40(_0x3d4db4,_0x4669f8);}const a2_0x1fc9b0=a2_0x1a40;function a2_0x5215(){const _0x37c0a3=['366490BewdWJ','114InQhfV','9TiHqEW','14wyUSZU','getClassMetadata','push','name','659419WjSKXS','\x20is\x20not\x20duplicated','getAnnEnumList','18695770qfUBVx','528OSkHKs','defineProperty','AnnEnumMsg:\x20','targetMsg','getAnnEnumMap','4834824gpDmOt','getAnnEnumArray','saveClassMetadata','__esModule','ann:enum','464cbnfiE','getAnnEnumMsg','indexOf','36223XQgnxk','6797200IrVrcf','\x20=\x20number\x20|\x20string;','@midwayjs/core','undefined','AnnEnumMsg','targetCode',')must\x20be\x20\x27static\x20readonly\x20','18297wvecYd'];a2_0x5215=function(){return _0x37c0a3;};return a2_0x5215();}(function(_0x31cacd,_0x5b0d3a){const _0x17f473=a2_0x1a40,_0x39e1a4=_0x31cacd();while(!![]){try{const _0x290283=parseInt(_0x17f473(0x75))/0x1+-parseInt(_0x17f473(0x83))/0x2*(-parseInt(_0x17f473(0x8e))/0x3)+parseInt(_0x17f473(0x7e))/0x4+-parseInt(_0x17f473(0x8f))/0x5*(-parseInt(_0x17f473(0x6f))/0x6)+-parseInt(_0x17f473(0x71))/0x7*(parseInt(_0x17f473(0x87))/0x8)+-parseInt(_0x17f473(0x70))/0x9*(parseInt(_0x17f473(0x78))/0xa)+-parseInt(_0x17f473(0x86))/0xb*(parseInt(_0x17f473(0x79))/0xc);if(_0x290283===_0x5b0d3a)break;else _0x39e1a4['push'](_0x39e1a4['shift']());}catch(_0x1378d5){_0x39e1a4['push'](_0x39e1a4['shift']());}}}(a2_0x5215,0xeadc2));Object[a2_0x1fc9b0(0x7a)](exports,a2_0x1fc9b0(0x81),{'value':!![]}),exports[a2_0x1fc9b0(0x7f)]=exports[a2_0x1fc9b0(0x77)]=exports['getAnnEnumMap']=exports[a2_0x1fc9b0(0x84)]=exports[a2_0x1fc9b0(0x8b)]=void 0x0;const core_1=require(a2_0x1fc9b0(0x89)),ANN_ENUM=a2_0x1fc9b0(0x82);function AnnEnumMsg(_0x378a63,_0x1e5b12){return(_0x14840a,_0x53cbef)=>{const _0x3865d4=a2_0x1a40;var _0x2e3c4f;const _0x4d981c=_0x14840a===null||_0x14840a===void 0x0?void 0x0:_0x14840a[_0x53cbef],_0x374f7d=(0x0,core_1[_0x3865d4(0x72)])(ANN_ENUM,_0x14840a)||{};if(typeof _0x4d981c=='undefined'||_0x4d981c===null)throw new Error(((_0x14840a===null||_0x14840a===void 0x0?void 0x0:_0x14840a[_0x3865d4(0x74)])||_0x14840a)+'\x20Property('+_0x53cbef+_0x3865d4(0x8d)+_0x53cbef+_0x3865d4(0x88));if(typeof((_0x2e3c4f=_0x374f7d===null||_0x374f7d===void 0x0?void 0x0:_0x374f7d[_0x378a63])===null||_0x2e3c4f===void 0x0?void 0x0:_0x2e3c4f[_0x4d981c])!==_0x3865d4(0x8a))throw new Error(_0x3865d4(0x7b)+_0x1e5b12+'('+_0x378a63+':'+_0x4d981c+')\x20is\x20duplicated,please\x20check\x20before\x20adding');!(_0x374f7d===null||_0x374f7d===void 0x0?void 0x0:_0x374f7d[_0x378a63])&&(_0x374f7d[_0x378a63]={}),_0x374f7d[_0x378a63][_0x4d981c]={'targetKey':_0x53cbef,'targetMsg':_0x1e5b12,'targetCode':_0x4d981c},(0x0,core_1[_0x3865d4(0x80)])(ANN_ENUM,_0x374f7d,_0x14840a);};}exports[a2_0x1fc9b0(0x8b)]=AnnEnumMsg;function getAnnEnumMsg(_0xda9b67,_0x38e72b,_0x61d64c){const _0x593d14=a2_0x1fc9b0;var _0x45850a,_0x59ab64;const _0x39946f=(0x0,core_1[_0x593d14(0x72)])(ANN_ENUM,_0xda9b67)||{};if(typeof((_0x45850a=_0x39946f===null||_0x39946f===void 0x0?void 0x0:_0x39946f[_0x38e72b])===null||_0x45850a===void 0x0?void 0x0:_0x45850a[_0x61d64c])===_0x593d14(0x8a))throw new Error(_0x593d14(0x7b)+_0x61d64c+_0x593d14(0x76));return((_0x59ab64=_0x39946f[_0x38e72b][_0x61d64c])===null||_0x59ab64===void 0x0?void 0x0:_0x59ab64[_0x593d14(0x7c)])||undefined;}exports[a2_0x1fc9b0(0x84)]=getAnnEnumMsg;function getAnnEnumMap(_0x3384f8,_0x5d779e){const _0x4d9e70=a2_0x1fc9b0;var _0x11ec3c,_0x169d1e,_0x522488,_0x2a8016;const _0x5658a9={},_0x11c7c1=(0x0,core_1[_0x4d9e70(0x72)])(ANN_ENUM,_0x3384f8)||{};if(_0x11c7c1===null||_0x11c7c1===void 0x0?void 0x0:_0x11c7c1[_0x5d779e])for(const _0x15b53b in _0x11c7c1[_0x5d779e]){if(typeof((_0x169d1e=(_0x11ec3c=_0x11c7c1[_0x5d779e])===null||_0x11ec3c===void 0x0?void 0x0:_0x11ec3c[_0x15b53b])===null||_0x169d1e===void 0x0?void 0x0:_0x169d1e[_0x4d9e70(0x7c)])===_0x4d9e70(0x8a))continue;if(typeof((_0x2a8016=(_0x522488=_0x11c7c1[_0x5d779e])===null||_0x522488===void 0x0?void 0x0:_0x522488[_0x15b53b])===null||_0x2a8016===void 0x0?void 0x0:_0x2a8016[_0x4d9e70(0x8c)])==='undefined')continue;_0x5658a9[_0x11c7c1[_0x5d779e][_0x15b53b][_0x4d9e70(0x7c)]]=_0x11c7c1[_0x5d779e][_0x15b53b][_0x4d9e70(0x8c)];}return _0x5658a9;}exports[a2_0x1fc9b0(0x7d)]=getAnnEnumMap;function getAnnEnumList(_0x1c80ab,_0x4a690d){const _0x7dbd1b=a2_0x1fc9b0;var _0x57e413,_0x461095,_0x3e0e71,_0x341dcd;const _0x4270eb=[],_0x2538c5=(0x0,core_1[_0x7dbd1b(0x72)])(ANN_ENUM,_0x1c80ab)||{};if(_0x2538c5===null||_0x2538c5===void 0x0?void 0x0:_0x2538c5[_0x4a690d])for(const _0x2335cb in _0x2538c5[_0x4a690d]){if(typeof((_0x461095=(_0x57e413=_0x2538c5[_0x4a690d])===null||_0x57e413===void 0x0?void 0x0:_0x57e413[_0x2335cb])===null||_0x461095===void 0x0?void 0x0:_0x461095[_0x7dbd1b(0x7c)])===_0x7dbd1b(0x8a))continue;if(typeof((_0x341dcd=(_0x3e0e71=_0x2538c5[_0x4a690d])===null||_0x3e0e71===void 0x0?void 0x0:_0x3e0e71[_0x2335cb])===null||_0x341dcd===void 0x0?void 0x0:_0x341dcd[_0x7dbd1b(0x8c)])===_0x7dbd1b(0x8a))continue;_0x4270eb[_0x7dbd1b(0x73)]({'label':_0x2538c5[_0x4a690d][_0x2335cb][_0x7dbd1b(0x7c)],'value':_0x2538c5[_0x4a690d][_0x2335cb]['targetCode']});}return _0x4270eb;}exports[a2_0x1fc9b0(0x77)]=getAnnEnumList;function getAnnEnumArray(_0x17ae48,_0x5f0f46,_0x2299b=[]){const _0x47d03b=a2_0x1fc9b0;var _0x3cf0ce,_0x2e47f0,_0x323c20,_0x1e11b6;const _0x4eb9d3=[],_0xcdf12e=(0x0,core_1[_0x47d03b(0x72)])(ANN_ENUM,_0x17ae48)||{};if(_0xcdf12e===null||_0xcdf12e===void 0x0?void 0x0:_0xcdf12e[_0x5f0f46])for(const _0x4363ed in _0xcdf12e[_0x5f0f46]){if(typeof((_0x2e47f0=(_0x3cf0ce=_0xcdf12e[_0x5f0f46])===null||_0x3cf0ce===void 0x0?void 0x0:_0x3cf0ce[_0x4363ed])===null||_0x2e47f0===void 0x0?void 0x0:_0x2e47f0[_0x47d03b(0x7c)])===_0x47d03b(0x8a))continue;if(typeof((_0x1e11b6=(_0x323c20=_0xcdf12e[_0x5f0f46])===null||_0x323c20===void 0x0?void 0x0:_0x323c20[_0x4363ed])===null||_0x1e11b6===void 0x0?void 0x0:_0x1e11b6[_0x47d03b(0x8c)])===_0x47d03b(0x8a))continue;_0x2299b[_0x47d03b(0x85)](_0xcdf12e[_0x5f0f46][_0x4363ed][_0x47d03b(0x8c)])==-0x1&&_0x4eb9d3[_0x47d03b(0x73)](_0xcdf12e[_0x5f0f46][_0x4363ed]['targetCode']);}return _0x4eb9d3;}exports[a2_0x1fc9b0(0x7f)]=getAnnEnumArray;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const a3_0x2e68e3=a3_0x2307;(function(_0x2e1325,_0x466cf9){const _0x16343e=a3_0x2307,_0x3410ca=_0x2e1325();while(!![]){try{const _0x342ffd=parseInt(_0x16343e(0xca))/0x1+-parseInt(_0x16343e(0xd8))/0x2+parseInt(_0x16343e(0xd0))/0x3+parseInt(_0x16343e(0xd7))/0x4*(parseInt(_0x16343e(0xd1))/0x5)+parseInt(_0x16343e(0xcc))/0x6*(parseInt(_0x16343e(0xcb))/0x7)+parseInt(_0x16343e(0xd5))/0x8+parseInt(_0x16343e(0xcd))/0x9*(-parseInt(_0x16343e(0xcf))/0xa);if(_0x342ffd===_0x466cf9)break;else _0x3410ca['push'](_0x3410ca['shift']());}catch(_0x2891e0){_0x3410ca['push'](_0x3410ca['shift']());}}}(a3_0x3f82,0xd07d8));function a3_0x3f82(){const _0x12c4ee=['1438349edREIj','7FxuVwh','4239966UaueWt','3177wOvnOx','__esModule','93950RFuCGA','2520138QEmWyo','5jBvObh','getAnnErrorMsg','AnnErrorMsg',')must\x20be\x20\x27static\x20readonly\x20','3624360eluHaQ','undefined','6155212dRfiGJ','1612986GEcZhH','message','\x20Property(','AnnErrorMsg:\x20','defineProperty'];a3_0x3f82=function(){return _0x12c4ee;};return a3_0x3f82();}function a3_0x2307(_0x42e5d5,_0x1a0e95){const _0x3f8292=a3_0x3f82();return a3_0x2307=function(_0x230743,_0x4f2b50){_0x230743=_0x230743-0xc7;let _0x5f285e=_0x3f8292[_0x230743];return _0x5f285e;},a3_0x2307(_0x42e5d5,_0x1a0e95);}Object[a3_0x2e68e3(0xc9)](exports,a3_0x2e68e3(0xce),{'value':!![]}),exports[a3_0x2e68e3(0xd3)]=exports['getAnnErrorList']=exports[a3_0x2e68e3(0xd2)]=void 0x0;const AnnErrorObj={};function getAnnErrorMsg(_0x54aae9){const _0x864eb8=a3_0x2e68e3;var _0x138c98,_0x4d8cac;if(typeof((_0x138c98=AnnErrorObj===null||AnnErrorObj===void 0x0?void 0x0:AnnErrorObj[_0x54aae9])===null||_0x138c98===void 0x0?void 0x0:_0x138c98[_0x864eb8(0xd9)])===_0x864eb8(0xd6))throw new Error(_0x864eb8(0xc8)+_0x54aae9+'\x20is\x20not\x20duplicated');return((_0x4d8cac=AnnErrorObj[_0x54aae9])===null||_0x4d8cac===void 0x0?void 0x0:_0x4d8cac['message'])||undefined;}exports['getAnnErrorMsg']=getAnnErrorMsg;function getAnnErrorList(){return AnnErrorObj;}exports['getAnnErrorList']=getAnnErrorList;function AnnErrorMsg(_0x182efe){return(_0xd277b,_0xadfcc9)=>{const _0x325219=a3_0x2307,_0x5094b0=_0xd277b===null||_0xd277b===void 0x0?void 0x0:_0xd277b[_0xadfcc9];if(typeof _0x5094b0===_0x325219(0xd6)||_0x5094b0===null)throw new Error(((_0xd277b===null||_0xd277b===void 0x0?void 0x0:_0xd277b['name'])||_0xd277b)+_0x325219(0xc7)+_0xadfcc9+_0x325219(0xd4)+_0xadfcc9+'\x20=\x20number;');if(typeof(AnnErrorObj===null||AnnErrorObj===void 0x0?void 0x0:AnnErrorObj[_0x5094b0])!==_0x325219(0xd6))throw new Error('AnnErrorMsg:\x20'+_0x182efe+'('+_0x5094b0+')\x20is\x20duplicated,please\x20check\x20before\x20adding');AnnErrorObj[_0x5094b0]={'code':_0x5094b0,'message':_0x182efe};};}exports[a3_0x2e68e3(0xd3)]=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_0xa6fe66=a4_0x305a;function a4_0x3733(){var _0x4fbe13=['length','decorate','6842580NIsSjt','374950tBKAmE','object','NOTLOGIN','12519647keaOqM','code','AnnErrorMsg','../decorator/AnnErrorMsg','未知错误','getOwnPropertyDescriptor','131148fcYcpA','AnnError','2543262emZZsW','341KmibXA','不存在对应数据','21748oreAvk','324328Wlzgti','metadata','function','243txvqWy','UNKNOW','defineProperty','response','__esModule','__metadata','NOAUTH','NOTFIND','163FoARBo','design:type','245FjRJOq','getAnnErrorMsg','PARAMS'];a4_0x3733=function(){return _0x4fbe13;};return a4_0x3733();}(function(_0x33999c,_0x1c43b4){var _0x43b5c5=a4_0x305a,_0x1cd764=_0x33999c();while(!![]){try{var _0x5323e8=-parseInt(_0x43b5c5(0xdd))/0x1*(-parseInt(_0x43b5c5(0xd1))/0x2)+-parseInt(_0x43b5c5(0xce))/0x3+-parseInt(_0x43b5c5(0xcc))/0x4*(parseInt(_0x43b5c5(0xdf))/0x5)+parseInt(_0x43b5c5(0xc2))/0x6+-parseInt(_0x43b5c5(0xc6))/0x7+parseInt(_0x43b5c5(0xd2))/0x8*(parseInt(_0x43b5c5(0xd5))/0x9)+-parseInt(_0x43b5c5(0xc3))/0xa*(-parseInt(_0x43b5c5(0xcf))/0xb);if(_0x5323e8===_0x1c43b4)break;else _0x1cd764['push'](_0x1cd764['shift']());}catch(_0x49f9c6){_0x1cd764['push'](_0x1cd764['shift']());}}}(a4_0x3733,0xe251e));var __decorate=this&&this['__decorate']||function(_0x65a29e,_0x207186,_0x37a457,_0x5d23a1){var _0x2edead=a4_0x305a,_0x1ad251=arguments['length'],_0x505d20=_0x1ad251<0x3?_0x207186:_0x5d23a1===null?_0x5d23a1=Object[_0x2edead(0xcb)](_0x207186,_0x37a457):_0x5d23a1,_0x5aaada;if(typeof Reflect===_0x2edead(0xc4)&&typeof Reflect[_0x2edead(0xe3)]===_0x2edead(0xd4))_0x505d20=Reflect['decorate'](_0x65a29e,_0x207186,_0x37a457,_0x5d23a1);else{for(var _0x2201bc=_0x65a29e[_0x2edead(0xe2)]-0x1;_0x2201bc>=0x0;_0x2201bc--)if(_0x5aaada=_0x65a29e[_0x2201bc])_0x505d20=(_0x1ad251<0x3?_0x5aaada(_0x505d20):_0x1ad251>0x3?_0x5aaada(_0x207186,_0x37a457,_0x505d20):_0x5aaada(_0x207186,_0x37a457))||_0x505d20;}return _0x1ad251>0x3&&_0x505d20&&Object[_0x2edead(0xd7)](_0x207186,_0x37a457,_0x505d20),_0x505d20;},__metadata=this&&this[a4_0xa6fe66(0xda)]||function(_0x250709,_0x4a5e04){var _0x5a2a6e=a4_0xa6fe66;if(typeof Reflect===_0x5a2a6e(0xc4)&&typeof Reflect[_0x5a2a6e(0xd3)]===_0x5a2a6e(0xd4))return Reflect[_0x5a2a6e(0xd3)](_0x250709,_0x4a5e04);};Object['defineProperty'](exports,a4_0xa6fe66(0xd9),{'value':!![]}),exports[a4_0xa6fe66(0xcd)]=void 0x0;function a4_0x305a(_0x4e1b74,_0x59ef98){var _0x37333f=a4_0x3733();return a4_0x305a=function(_0x305aca,_0x4a9232){_0x305aca=_0x305aca-0xc2;var _0x55f145=_0x37333f[_0x305aca];return _0x55f145;},a4_0x305a(_0x4e1b74,_0x59ef98);}const AnnErrorMsg_1=require(a4_0xa6fe66(0xc9));class AnnError extends Error{constructor(_0x32a241,_0x39895e){var _0x1375ac=a4_0xa6fe66;super((0x0,AnnErrorMsg_1[_0x1375ac(0xe0)])(_0x32a241)),this['name']=this['constructor']['name'],(this[_0x1375ac(0xc7)]=_0x32a241,this[_0x1375ac(0xd8)]={'code':this[_0x1375ac(0xc7)],..._0x39895e||{}});}}AnnError['OK']=0x0,AnnError[a4_0xa6fe66(0xd6)]=0x4c4b40,AnnError[a4_0xa6fe66(0xe1)]=0x3df360,AnnError['NOTFIND']=0x3da540,AnnError[a4_0xa6fe66(0xc5)]=0x3d3010,AnnError['NOAUTH']=0x3d7e30,__decorate([(0x0,AnnErrorMsg_1['AnnErrorMsg'])('成功'),__metadata(a4_0xa6fe66(0xde),Object)],AnnError,'OK',void 0x0),__decorate([(0x0,AnnErrorMsg_1['AnnErrorMsg'])(a4_0xa6fe66(0xca)),__metadata(a4_0xa6fe66(0xde),Object)],AnnError,a4_0xa6fe66(0xd6),void 0x0),__decorate([(0x0,AnnErrorMsg_1[a4_0xa6fe66(0xc8)])('参数错误'),__metadata(a4_0xa6fe66(0xde),Object)],AnnError,'PARAMS',void 0x0),__decorate([(0x0,AnnErrorMsg_1[a4_0xa6fe66(0xc8)])(a4_0xa6fe66(0xd0)),__metadata(a4_0xa6fe66(0xde),Object)],AnnError,a4_0xa6fe66(0xdc),void 0x0),__decorate([(0x0,AnnErrorMsg_1[a4_0xa6fe66(0xc8)])('请登录后重试'),__metadata(a4_0xa6fe66(0xde),Object)],AnnError,a4_0xa6fe66(0xc5),void 0x0),__decorate([(0x0,AnnErrorMsg_1[a4_0xa6fe66(0xc8)])('没有权限执行该操作'),__metadata(a4_0xa6fe66(0xde),Object)],AnnError,a4_0xa6fe66(0xdb),void 0x0),exports[a4_0xa6fe66(0xcd)]=AnnError;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a5_0x4c875c=a5_0xe6e7;function a5_0xe6e7(_0x5c008d,_0x12a781){const _0x4d25a5=a5_0x4d25();return a5_0xe6e7=function(_0xe6e76a,_0x32930b){_0xe6e76a=_0xe6e76a-0x68;let _0x3e8c16=_0x4d25a5[_0xe6e76a];return _0x3e8c16;},a5_0xe6e7(_0x5c008d,_0x12a781);}(function(_0x1569c6,_0x48ebe9){const _0x2dff3f=a5_0xe6e7,_0x47a48a=_0x1569c6();while(!![]){try{const _0xd31f22=-parseInt(_0x2dff3f(0x78))/0x1+parseInt(_0x2dff3f(0x6c))/0x2*(parseInt(_0x2dff3f(0x76))/0x3)+parseInt(_0x2dff3f(0x74))/0x4+parseInt(_0x2dff3f(0x6a))/0x5*(-parseInt(_0x2dff3f(0x75))/0x6)+-parseInt(_0x2dff3f(0x6e))/0x7+-parseInt(_0x2dff3f(0x69))/0x8+parseInt(_0x2dff3f(0x70))/0x9;if(_0xd31f22===_0x48ebe9)break;else _0x47a48a['push'](_0x47a48a['shift']());}catch(_0x337b3e){_0x47a48a['push'](_0x47a48a['shift']());}}}(a5_0x4d25,0xca75b));Object[a5_0x4c875c(0x72)](exports,a5_0x4c875c(0x6d),{'value':!![]}),exports[a5_0x4c875c(0x6f)]=void 0x0;const AnnError_1=require(a5_0x4c875c(0x6b));class AnnErrorRender extends AnnError_1[a5_0x4c875c(0x73)]{constructor(_0x254af1,_0x198858){super(_0x254af1,_0x198858);}async[a5_0x4c875c(0x77)](_0x53fc37,_0x211f00){const _0x553bc7=a5_0x4c875c;throw this[_0x553bc7(0x68)]+_0x553bc7(0x71);}}exports[a5_0x4c875c(0x6f)]=AnnErrorRender;function a5_0x4d25(){const _0x421b1c=['AnnError','3605512CguMJt','60qtYoVE','2233533mEFPKM','render','1237299PSlGXb','name','5212896FYcGEN','432935pdqEuH','./AnnError','2XatFZp','__esModule','4350185SpBsEo','AnnErrorRender','23036598silMnM','\x20is\x20not\x20is\x20not\x20duplicated\x20function\x20render','defineProperty'];a5_0x4d25=function(){return _0x421b1c;};return a5_0x4d25();}
|
package/dist/helper/common.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a6_0x303add=a6_0x2aee;(function(_0x29bcd8,_0x4beaa9){const _0xfc97d7=a6_0x2aee,_0x5a8546=_0x29bcd8();while(!![]){try{const _0x5c3f4b=parseInt(_0xfc97d7(0xbe))/0x1*(parseInt(_0xfc97d7(0xab))/0x2)+parseInt(_0xfc97d7(0xc4))/0x3*(-parseInt(_0xfc97d7(0xb8))/0x4)+-parseInt(_0xfc97d7(0xb0))/0x5+-parseInt(_0xfc97d7(0xc3))/0x6+parseInt(_0xfc97d7(0xc6))/0x7+parseInt(_0xfc97d7(0xc0))/0x8+parseInt(_0xfc97d7(0xb6))/0x9*(parseInt(_0xfc97d7(0xad))/0xa);if(_0x5c3f4b===_0x4beaa9)break;else _0x5a8546['push'](_0x5a8546['shift']());}catch(_0x2910ea){_0x5a8546['push'](_0x5a8546['shift']());}}}(a6_0x1d0e,0xc81d2));Object[a6_0x303add(0xac)](exports,a6_0x303add(0xc8),{'value':!![]}),exports[a6_0x303add(0xb5)]=exports['AES128_encode']=exports[a6_0x303add(0xbf)]=exports[a6_0x303add(0xc5)]=exports[a6_0x303add(0xc2)]=void 0x0;const cryptojs=require(a6_0x303add(0xaf));function md5(_0x30f00e,_0x23a82e){const _0x3b7eb3=a6_0x303add;return cryptojs['MD5'](_0x30f00e,_0x23a82e)[_0x3b7eb3(0xb3)]();}exports[a6_0x303add(0xc2)]=md5;function a6_0x1d0e(){const _0x31336a=['Utf8','mode','1257YaUpiF','base64_decode','1131368MFKZmN','ECB','md5','5504406JadyMT','388548cpibkx','base64_encode','179676ySPcnH','Pkcs7','__esModule','138tBAgpR','defineProperty','640630ImybLV','encrypt','crypto-js','6977100xyBsnh','Base64','parse','toString','enc','AES128_decode','459kasqOC','stringify','12JVohjo','pad','AES','AES128_encode'];a6_0x1d0e=function(){return _0x31336a;};return a6_0x1d0e();}function base64_encode(_0x2ccb08){const _0x311c12=a6_0x303add;return cryptojs[_0x311c12(0xb4)][_0x311c12(0xb1)][_0x311c12(0xb7)](cryptojs[_0x311c12(0xb4)][_0x311c12(0xbc)][_0x311c12(0xb2)](_0x2ccb08));}exports[a6_0x303add(0xc5)]=base64_encode;function base64_decode(_0x275ad1){const _0x1bfea3=a6_0x303add;return cryptojs['enc'][_0x1bfea3(0xb1)][_0x1bfea3(0xb2)](_0x275ad1)[_0x1bfea3(0xb3)](cryptojs[_0x1bfea3(0xb4)][_0x1bfea3(0xbc)]);}exports[a6_0x303add(0xbf)]=base64_decode;function AES128_encode(_0x2e1d88,_0x5d0fe6){const _0x1d730c=a6_0x303add;return cryptojs['AES'][_0x1d730c(0xae)](cryptojs[_0x1d730c(0xb4)][_0x1d730c(0xbc)][_0x1d730c(0xb2)](_0x5d0fe6),cryptojs[_0x1d730c(0xb4)][_0x1d730c(0xbc)][_0x1d730c(0xb2)](_0x2e1d88),{'mode':cryptojs[_0x1d730c(0xbd)][_0x1d730c(0xc1)],'padding':cryptojs[_0x1d730c(0xb9)]['Pkcs7']})['toString']();}exports[a6_0x303add(0xbb)]=AES128_encode;function a6_0x2aee(_0x1eb2fe,_0x442042){const _0x1d0ee5=a6_0x1d0e();return a6_0x2aee=function(_0x2aeef9,_0x185885){_0x2aeef9=_0x2aeef9-0xab;let _0x3ddbd9=_0x1d0ee5[_0x2aeef9];return _0x3ddbd9;},a6_0x2aee(_0x1eb2fe,_0x442042);}function AES128_decode(_0x556200,_0x37259e){const _0xd30406=a6_0x303add;return cryptojs[_0xd30406(0xb4)]['Utf8'][_0xd30406(0xb7)](cryptojs[_0xd30406(0xba)]['decrypt'](_0x37259e,cryptojs[_0xd30406(0xb4)][_0xd30406(0xbc)][_0xd30406(0xb2)](_0x556200),{'mode':cryptojs[_0xd30406(0xbd)][_0xd30406(0xc1)],'padding':cryptojs[_0xd30406(0xb9)][_0xd30406(0xc7)]}))[_0xd30406(0xb3)]();}exports[a6_0x303add(0xb5)]=AES128_decode;
|
package/dist/helper/fileMd5.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const a7_0x595a37=a7_0x3d50;(function(_0x172fbf,_0xfdf1bc){const _0x110411=a7_0x3d50,_0x25ed36=_0x172fbf();while(!![]){try{const _0x97340f=parseInt(_0x110411(0xf5))/0x1*(-parseInt(_0x110411(0xf7))/0x2)+-parseInt(_0x110411(0xfc))/0x3*(-parseInt(_0x110411(0xf4))/0x4)+-parseInt(_0x110411(0x105))/0x5*(parseInt(_0x110411(0xf3))/0x6)+parseInt(_0x110411(0xf9))/0x7*(-parseInt(_0x110411(0xfa))/0x8)+-parseInt(_0x110411(0xed))/0x9+parseInt(_0x110411(0xfd))/0xa*(parseInt(_0x110411(0x106))/0xb)+parseInt(_0x110411(0x103))/0xc*(parseInt(_0x110411(0xf8))/0xd);if(_0x97340f===_0xfdf1bc)break;else _0x25ed36['push'](_0x25ed36['shift']());}catch(_0x278119){_0x25ed36['push'](_0x25ed36['shift']());}}}(a7_0x1980,0x70b33));function a7_0x3d50(_0x2a9103,_0x3cf77e){const _0x198051=a7_0x1980();return a7_0x3d50=function(_0x3d506d,_0x344230){_0x3d506d=_0x3d506d-0xec;let _0x4a141e=_0x198051[_0x3d506d];return _0x4a141e;},a7_0x3d50(_0x2a9103,_0x3cf77e);}Object[a7_0x595a37(0xff)](exports,a7_0x595a37(0xf1),{'value':!![]}),exports[a7_0x595a37(0x100)]=void 0x0;const fs=require('fs'),crypto=require(a7_0x595a37(0xf2));function a7_0x1980(){const _0x31ffd1=['createReadStream','42fIVbvq','1379963wzuHjt','3784333FwBzhE','8TVOIkR','\x20is\x20not\x20file','27uSvuGl','798890Cbkuig','stat','defineProperty','fileMd5','createHash','bind','156BZxcaO','hex','3845ijYkmz','110JoUDmD','isFile','end','893232TODQAo','error','update','md5','__esModule','crypto','5514HbDULc','132932tKqNGE','31893hULLoM'];a7_0x1980=function(){return _0x31ffd1;};return a7_0x1980();}function fileMd5(_0x3c47e7){return new Promise((_0x274c86,_0x4ed16f)=>{const _0x24780a=a7_0x3d50;fs[_0x24780a(0xfe)](_0x3c47e7,(_0x179053,_0xf25110)=>{const _0x3cd7ea=_0x24780a;if(_0x179053)return _0x4ed16f(_0x179053);if(!_0xf25110[_0x3cd7ea(0x107)]())return _0x4ed16f(new Error(_0x3c47e7+_0x3cd7ea(0xfb)));const _0x406bda=crypto[_0x3cd7ea(0x101)](_0x3cd7ea(0xf0)),_0x124cc5=fs[_0x3cd7ea(0xf6)](_0x3c47e7);_0x124cc5['on']('data',_0x406bda[_0x3cd7ea(0xef)][_0x3cd7ea(0x102)](_0x406bda)),_0x124cc5['on'](_0x3cd7ea(0xee),_0x3575ea=>_0x4ed16f(_0x3575ea)),_0x124cc5['on'](_0x3cd7ea(0xec),()=>_0x274c86(_0x406bda['digest'](_0x3cd7ea(0x104))));});});}exports[a7_0x595a37(0x100)]=fileMd5;
|
package/dist/helper/globDir.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a8_0x2215be=a8_0x2c67;(function(_0x5918b5,_0x434922){const _0x14d147=a8_0x2c67,_0xb9d208=_0x5918b5();while(!![]){try{const _0x19be4d=-parseInt(_0x14d147(0x1c5))/0x1*(-parseInt(_0x14d147(0x1c6))/0x2)+parseInt(_0x14d147(0x1cc))/0x3*(parseInt(_0x14d147(0x1d9))/0x4)+-parseInt(_0x14d147(0x1cd))/0x5+parseInt(_0x14d147(0x1ce))/0x6*(-parseInt(_0x14d147(0x1d1))/0x7)+parseInt(_0x14d147(0x1dd))/0x8*(parseInt(_0x14d147(0x1c3))/0x9)+-parseInt(_0x14d147(0x1d5))/0xa+-parseInt(_0x14d147(0x1d7))/0xb;if(_0x19be4d===_0x434922)break;else _0xb9d208['push'](_0xb9d208['shift']());}catch(_0x3ea104){_0xb9d208['push'](_0xb9d208['shift']());}}}(a8_0xfebe,0xe4172));Object[a8_0x2215be(0x1c4)](exports,'__esModule',{'value':!![]}),exports[a8_0x2215be(0x1dc)]=void 0x0;function a8_0x2c67(_0x59a3f2,_0x4f6424){const _0xfebe8c=a8_0xfebe();return a8_0x2c67=function(_0x2c67c,_0x3b8dbd){_0x2c67c=_0x2c67c-0x1c0;let _0x463818=_0xfebe8c[_0x2c67c];return _0x463818;},a8_0x2c67(_0x59a3f2,_0x4f6424);}const fs=require('fs'),path=require(a8_0x2215be(0x1c9));function a8_0xfebe(){const _0x22998a=['normalize','keys','4204983aGXCIb','1320485ZKrjdZ','894XEpQRt','push','directory','854crHRAl','parent','resolve','useSubdirectories','7824690FwChnY','statSync','6417224hvzDXs','test','4BUMpyz','forEach','modules','globDir','56wGWwFM','regExp','isAbsolute','__findModules','existsSync','135882RcZRHr','defineProperty','59MCanBk','36442DlbCAi','isDirectory','__findDirectory','path'];a8_0xfebe=function(){return _0x22998a;};return a8_0xfebe();}class RequireContext{constructor(_0x313bb4,_0xb7a518,_0x1a522c){const _0x3eeff0=a8_0x2215be;this[_0x3eeff0(0x1db)]=[],this[_0x3eeff0(0x1de)]=_0x1a522c,this[_0x3eeff0(0x1d4)]=!!_0xb7a518,this[_0x3eeff0(0x1d0)]=this[_0x3eeff0(0x1c8)](_0x313bb4),this[_0x3eeff0(0x1c1)](this[_0x3eeff0(0x1d0)]);}[a8_0x2215be(0x1c8)](_0x4f1f84){const _0x474bf4=a8_0x2215be;if(path[_0x474bf4(0x1c0)](_0x4f1f84)||!module['parent'])return _0x4f1f84;return path[_0x474bf4(0x1ca)](path['join'](path['parse'](module[_0x474bf4(0x1d2)]['filename'])['dir'],_0x4f1f84));}[a8_0x2215be(0x1c1)](_0x10e4d1){const _0x4508fd=a8_0x2215be;if(fs[_0x4508fd(0x1c2)](_0x10e4d1))fs['readdirSync'](_0x10e4d1)[_0x4508fd(0x1da)](_0x3ea5e6=>{const _0x242797=_0x4508fd,_0xe5994b=path[_0x242797(0x1d3)](_0x10e4d1,_0x3ea5e6);if(fs[_0x242797(0x1d6)](_0xe5994b)[_0x242797(0x1c7)]()){if(this[_0x242797(0x1d4)]){this[_0x242797(0x1c1)](_0xe5994b);return;}}else{if(this[_0x242797(0x1de)]&&!this[_0x242797(0x1de)][_0x242797(0x1d8)](_0xe5994b))return;this[_0x242797(0x1db)][_0x242797(0x1cf)](_0xe5994b);}});else throw new Error('Can\x27t\x20Found\x20Module\x20'+_0x10e4d1);}}function globDir(_0x4671dc='.',_0x4b5808=![],_0x300f92=/(?:)/,_0x227791){const _0x190a24=a8_0x2215be,_0xa762c2=new RequireContext(_0x4671dc,_0x4b5808,_0x300f92);if(_0x227791){const _0x3412c8=_0x122f32=>fs['readFileSync'](_0x122f32,_0x227791);return _0x3412c8[_0x190a24(0x1cb)]=()=>[..._0xa762c2[_0x190a24(0x1db)]],_0x3412c8;}else{const _0x183987=_0x48a8c4=>require(_0x48a8c4);return _0x183987['keys']=()=>[..._0xa762c2[_0x190a24(0x1db)]],_0x183987;}}exports[a8_0x2215be(0x1dc)]=globDir;
|
package/dist/helper/include.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a9_0x178428=a9_0x1c20;(function(_0x585f63,_0x261796){const _0x2c4e97=a9_0x1c20,_0x145885=_0x585f63();while(!![]){try{const _0x40746f=parseInt(_0x2c4e97(0x117))/0x1*(parseInt(_0x2c4e97(0x116))/0x2)+parseInt(_0x2c4e97(0x114))/0x3+parseInt(_0x2c4e97(0x115))/0x4+-parseInt(_0x2c4e97(0x10c))/0x5+-parseInt(_0x2c4e97(0x111))/0x6*(-parseInt(_0x2c4e97(0x113))/0x7)+-parseInt(_0x2c4e97(0x10f))/0x8+-parseInt(_0x2c4e97(0x118))/0x9;if(_0x40746f===_0x261796)break;else _0x145885['push'](_0x145885['shift']());}catch(_0x13c8d7){_0x145885['push'](_0x145885['shift']());}}}(a9_0x4886,0x92624));function a9_0x4886(){const _0x4e40f4=['7RjLTkJ','1783917aIqaFi','982320FGlazc','34772lioQBd','31YjSQQE','8560737IjZOnX','jiti','lodash','defaultsDeep','426490ULlUvp','get','default','2378456jFakcZ','__esModule','3325206yDaKUY','include'];a9_0x4886=function(){return _0x4e40f4;};return a9_0x4886();}Object['defineProperty'](exports,a9_0x178428(0x110),{'value':!![]}),exports[a9_0x178428(0x112)]=void 0x0;const jiti=require(a9_0x178428(0x119)),lodash_1=require(a9_0x178428(0x10a));function a9_0x1c20(_0x376f7b,_0x2fb5e3){const _0x4886e5=a9_0x4886();return a9_0x1c20=function(_0x1c205b,_0xddc98e){_0x1c205b=_0x1c205b-0x10a;let _0x4e004f=_0x4886e5[_0x1c205b];return _0x4e004f;},a9_0x1c20(_0x376f7b,_0x2fb5e3);}function include(_0x12d245){const _0x4f0a67=a9_0x178428,_0x1fe86c={},_0x1a9d2a=jiti()(_0x12d245);for(let _0x1547ce in _0x1a9d2a){_0x1547ce!='default'&&(0x0,lodash_1[_0x4f0a67(0x10b)])(_0x1fe86c,{[_0x1547ce]:_0x1a9d2a[_0x1547ce]});}return(0x0,lodash_1[_0x4f0a67(0x10b)])(_0x1fe86c,(0x0,lodash_1[_0x4f0a67(0x10d)])(_0x1a9d2a,_0x4f0a67(0x10e),{}));}exports[a9_0x178428(0x112)]=include;
|
package/dist/helper/sleep.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';function a10_0x4842(_0xf20481,_0x4a54a7){var _0x55d844=a10_0x55d8();return a10_0x4842=function(_0x484208,_0x2c0397){_0x484208=_0x484208-0x181;var _0x2668ee=_0x55d844[_0x484208];return _0x2668ee;},a10_0x4842(_0xf20481,_0x4a54a7);}var a10_0x45d543=a10_0x4842;(function(_0x19d116,_0x471da3){var _0x53abee=a10_0x4842,_0x279415=_0x19d116();while(!![]){try{var _0x37fb43=parseInt(_0x53abee(0x186))/0x1+-parseInt(_0x53abee(0x18b))/0x2*(parseInt(_0x53abee(0x184))/0x3)+parseInt(_0x53abee(0x183))/0x4+-parseInt(_0x53abee(0x18c))/0x5*(-parseInt(_0x53abee(0x182))/0x6)+parseInt(_0x53abee(0x188))/0x7+parseInt(_0x53abee(0x18d))/0x8*(-parseInt(_0x53abee(0x187))/0x9)+parseInt(_0x53abee(0x181))/0xa*(parseInt(_0x53abee(0x185))/0xb);if(_0x37fb43===_0x471da3)break;else _0x279415['push'](_0x279415['shift']());}catch(_0x51e54c){_0x279415['push'](_0x279415['shift']());}}}(a10_0x55d8,0x1b159));Object[a10_0x45d543(0x189)](exports,'__esModule',{'value':!![]}),exports[a10_0x45d543(0x18a)]=void 0x0;function sleep(_0x5421c4=0xc8){return new Promise(_0x326a09=>setTimeout(_0x326a09,_0x5421c4));}function a10_0x55d8(){var _0x3da492=['sleep','13666PLiTnz','98675QicQUm','8ifTpOe','10SjVPNe','36QrjzDc','440016oaEemz','87BeKIHv','624305wmHCOy','77751jFxNyV','1221669ItdXry','573405oyBwPS','defineProperty'];a10_0x55d8=function(){return _0x3da492;};return a10_0x55d8();}exports[a10_0x45d543(0x18a)]=sleep;
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a11_0x39e538=a11_0x2a4c;(function(_0x556750,_0x252787){const _0x31924d=a11_0x2a4c,_0x4bfb1e=_0x556750();while(!![]){try{const _0xfa2322=-parseInt(_0x31924d(0x149))/0x1+parseInt(_0x31924d(0x14e))/0x2*(parseInt(_0x31924d(0x127))/0x3)+parseInt(_0x31924d(0x13a))/0x4*(-parseInt(_0x31924d(0x151))/0x5)+-parseInt(_0x31924d(0x147))/0x6+parseInt(_0x31924d(0x152))/0x7+parseInt(_0x31924d(0x150))/0x8+-parseInt(_0x31924d(0x131))/0x9*(-parseInt(_0x31924d(0x14b))/0xa);if(_0xfa2322===_0x252787)break;else _0x4bfb1e['push'](_0x4bfb1e['shift']());}catch(_0x312777){_0x4bfb1e['push'](_0x4bfb1e['shift']());}}}(a11_0xe388,0x425d9));Object[a11_0x39e538(0x141)](exports,a11_0x39e538(0x12e),{'value':!![]}),exports[a11_0x39e538(0x14d)]=exports[a11_0x39e538(0x134)]=exports['getAnnErrorList']=exports['getAnnErrorMsg']=exports[a11_0x39e538(0x136)]=exports[a11_0x39e538(0x12f)]=exports[a11_0x39e538(0x12c)]=exports[a11_0x39e538(0x13f)]=exports[a11_0x39e538(0x14a)]=exports['AnnEnumMsg']=exports[a11_0x39e538(0x140)]=exports[a11_0x39e538(0x13e)]=exports[a11_0x39e538(0x13b)]=exports[a11_0x39e538(0x135)]=exports[a11_0x39e538(0x153)]=exports[a11_0x39e538(0x138)]=exports[a11_0x39e538(0x129)]=exports['collect']=exports[a11_0x39e538(0x144)]=exports['dayjs']=exports[a11_0x39e538(0x13c)]=exports['lodash']=exports[a11_0x39e538(0x145)]=exports['fsplus']=exports['urllib']=exports[a11_0x39e538(0x12d)]=exports[a11_0x39e538(0x139)]=void 0x0;const axios_1=require(a11_0x39e538(0x12d));exports[a11_0x39e538(0x12d)]=axios_1[a11_0x39e538(0x143)];const dayjs=require(a11_0x39e538(0x133));exports['dayjs']=dayjs;const urllib=require(a11_0x39e538(0x137));exports[a11_0x39e538(0x137)]=urllib;const mathjs=require('mathjs');exports[a11_0x39e538(0x145)]=mathjs;const lodash=require(a11_0x39e538(0x14c));exports[a11_0x39e538(0x14c)]=lodash;const fsplus=require('fs-extra');exports[a11_0x39e538(0x14f)]=fsplus;function a11_0xe388(){const _0x46c2ae=['dayjs','AnnError','base64_encode','AnnErrorMsg','urllib','globDir','Configuration','272036gVmsQI','base64_decode','md5','AnnEnumMsg','AES128_encode','getAnnEnumMap','AES128_decode','defineProperty','getAnnErrorList','default','sleep','mathjs','collect.js','2143332aqqXKU','./exception/AnnError','421756rBDJho','getAnnEnumMsg','610LjUIGk','lodash','AnnErrorRender','12772vUuefS','fsplus','995584bIRQoL','10yltLct','1808156NBDUHY','fileMd5','255tIplnf','./configuration','include','collect','./helper/include','getAnnEnumList','axios','__esModule','getAnnEnumArray','getAnnErrorMsg','38547PuGPEX','./helper/fileMd5'];a11_0xe388=function(){return _0x46c2ae;};return a11_0xe388();}const collect_js_1=require(a11_0x39e538(0x146));Object[a11_0x39e538(0x141)](exports,a11_0x39e538(0x12a),{'enumerable':!![],'get':function(){return collect_js_1['collect'];}});const sleep_1=require('./helper/sleep');Object[a11_0x39e538(0x141)](exports,a11_0x39e538(0x144),{'enumerable':!![],'get':function(){const _0xb8b59=a11_0x39e538;return sleep_1[_0xb8b59(0x144)];}});const include_1=require(a11_0x39e538(0x12b));Object[a11_0x39e538(0x141)](exports,'include',{'enumerable':!![],'get':function(){const _0x2464e2=a11_0x39e538;return include_1[_0x2464e2(0x129)];}});const globDir_1=require('./helper/globDir');Object[a11_0x39e538(0x141)](exports,a11_0x39e538(0x138),{'enumerable':!![],'get':function(){const _0x2357b4=a11_0x39e538;return globDir_1[_0x2357b4(0x138)];}});const fileMd5_1=require(a11_0x39e538(0x132));Object[a11_0x39e538(0x141)](exports,'fileMd5',{'enumerable':!![],'get':function(){const _0x25837d=a11_0x39e538;return fileMd5_1[_0x25837d(0x153)];}});const AnnError_1=require(a11_0x39e538(0x148));Object[a11_0x39e538(0x141)](exports,'AnnError',{'enumerable':!![],'get':function(){const _0x27f75d=a11_0x39e538;return AnnError_1[_0x27f75d(0x134)];}});const common_1=require('./helper/common');function a11_0x2a4c(_0x51abf9,_0x12cedc){const _0xe388fe=a11_0xe388();return a11_0x2a4c=function(_0x2a4c63,_0x1e856){_0x2a4c63=_0x2a4c63-0x127;let _0x2302d8=_0xe388fe[_0x2a4c63];return _0x2302d8;},a11_0x2a4c(_0x51abf9,_0x12cedc);}Object[a11_0x39e538(0x141)](exports,a11_0x39e538(0x13c),{'enumerable':!![],'get':function(){return common_1['md5'];}}),Object[a11_0x39e538(0x141)](exports,a11_0x39e538(0x135),{'enumerable':!![],'get':function(){const _0x4c3007=a11_0x39e538;return common_1[_0x4c3007(0x135)];}}),Object['defineProperty'](exports,a11_0x39e538(0x13b),{'enumerable':!![],'get':function(){return common_1['base64_decode'];}}),Object[a11_0x39e538(0x141)](exports,a11_0x39e538(0x13e),{'enumerable':!![],'get':function(){return common_1['AES128_encode'];}}),Object[a11_0x39e538(0x141)](exports,a11_0x39e538(0x140),{'enumerable':!![],'get':function(){return common_1['AES128_decode'];}});const AnnErrorRender_1=require('./exception/AnnErrorRender');Object[a11_0x39e538(0x141)](exports,a11_0x39e538(0x14d),{'enumerable':!![],'get':function(){const _0x5af7c6=a11_0x39e538;return AnnErrorRender_1[_0x5af7c6(0x14d)];}});const AnnErrorMsg_1=require('./decorator/AnnErrorMsg');Object[a11_0x39e538(0x141)](exports,a11_0x39e538(0x136),{'enumerable':!![],'get':function(){const _0x4ab32c=a11_0x39e538;return AnnErrorMsg_1[_0x4ab32c(0x136)];}}),Object[a11_0x39e538(0x141)](exports,a11_0x39e538(0x130),{'enumerable':!![],'get':function(){return AnnErrorMsg_1['getAnnErrorMsg'];}}),Object[a11_0x39e538(0x141)](exports,a11_0x39e538(0x142),{'enumerable':!![],'get':function(){return AnnErrorMsg_1['getAnnErrorList'];}});const AnnEnumMsg_1=require('./decorator/AnnEnumMsg');Object[a11_0x39e538(0x141)](exports,a11_0x39e538(0x13d),{'enumerable':!![],'get':function(){const _0x46e11e=a11_0x39e538;return AnnEnumMsg_1[_0x46e11e(0x13d)];}}),Object[a11_0x39e538(0x141)](exports,'getAnnEnumMsg',{'enumerable':!![],'get':function(){return AnnEnumMsg_1['getAnnEnumMsg'];}}),Object[a11_0x39e538(0x141)](exports,a11_0x39e538(0x13f),{'enumerable':!![],'get':function(){const _0x346446=a11_0x39e538;return AnnEnumMsg_1[_0x346446(0x13f)];}}),Object['defineProperty'](exports,a11_0x39e538(0x12c),{'enumerable':!![],'get':function(){const _0x2c27e6=a11_0x39e538;return AnnEnumMsg_1[_0x2c27e6(0x12c)];}}),Object[a11_0x39e538(0x141)](exports,'getAnnEnumArray',{'enumerable':!![],'get':function(){const _0x5422b0=a11_0x39e538;return AnnEnumMsg_1[_0x5422b0(0x12f)];}});var configuration_1=require(a11_0x39e538(0x128));Object['defineProperty'](exports,a11_0x39e538(0x139),{'enumerable':!![],'get':function(){return configuration_1['CustomConfiguration'];}}),(global[a11_0x39e538(0x12d)]=axios_1['default'],global[a11_0x39e538(0x137)]=urllib),(global['fsplus']=fsplus,global[a11_0x39e538(0x145)]=mathjs,global[a11_0x39e538(0x14c)]=lodash),(global[a11_0x39e538(0x133)]=dayjs,global['sleep']=sleep_1[a11_0x39e538(0x144)],global[a11_0x39e538(0x12a)]=collect_js_1['collect'],global[a11_0x39e538(0x129)]=include_1[a11_0x39e538(0x129)],global['globDir']=globDir_1[a11_0x39e538(0x138)]),(global[a11_0x39e538(0x13c)]=common_1[a11_0x39e538(0x13c)],global[a11_0x39e538(0x153)]=fileMd5_1[a11_0x39e538(0x153)],global[a11_0x39e538(0x135)]=common_1[a11_0x39e538(0x135)],global[a11_0x39e538(0x13b)]=common_1[a11_0x39e538(0x13b)],global[a11_0x39e538(0x13e)]=common_1[a11_0x39e538(0x13e)],global[a11_0x39e538(0x140)]=common_1[a11_0x39e538(0x140)]),(global[a11_0x39e538(0x13d)]=AnnEnumMsg_1[a11_0x39e538(0x13d)],global['getAnnEnumMsg']=AnnEnumMsg_1[a11_0x39e538(0x14a)],global[a11_0x39e538(0x13f)]=AnnEnumMsg_1[a11_0x39e538(0x13f)],global[a11_0x39e538(0x12c)]=AnnEnumMsg_1[a11_0x39e538(0x12c)],global[a11_0x39e538(0x12f)]=AnnEnumMsg_1['getAnnEnumArray']),(global['AnnErrorMsg']=AnnErrorMsg_1[a11_0x39e538(0x136)],global[a11_0x39e538(0x130)]=AnnErrorMsg_1[a11_0x39e538(0x130)],global[a11_0x39e538(0x142)]=AnnErrorMsg_1[a11_0x39e538(0x142)],global['AnnError']=AnnError_1[a11_0x39e538(0x134)],global[a11_0x39e538(0x14d)]=AnnErrorRender_1['AnnErrorRender']);
|
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.4",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"typings": "index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"javascript-obfuscator": "2.19.0"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "612827d5d03f34f9a9339a6e8646070d74ad3c22"
|
|
43
43
|
}
|