@anncic-api/core 1.3.18 → 1.3.20
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.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 +6 -6
- package/package.json +5 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a0_0x5ef0fb=a0_0x4cd7;(function(_0x15bf14,_0x3ce4b3){var _0x291b23=a0_0x4cd7,_0x5d7dba=_0x15bf14();while(!![]){try{var _0x2b68bb=parseInt(_0x291b23(0x1db))/0x1+parseInt(_0x291b23(0x1e2))/0x2+-parseInt(_0x291b23(0x1e0))/0x3+-parseInt(_0x291b23(0x1e1))/0x4+-parseInt(_0x291b23(0x1e3))/0x5+parseInt(_0x291b23(0x1de))/0x6*(parseInt(_0x291b23(0x1dd))/0x7)+-parseInt(_0x291b23(0x1dc))/0x8;if(_0x2b68bb===_0x3ce4b3)break;else _0x5d7dba['push'](_0x5d7dba['shift']());}catch(_0x47a256){_0x5d7dba['push'](_0x5d7dba['shift']());}}}(a0_0x20cd,0xdfb2f));function a0_0x4cd7(_0x4b48f0,_0x44d96e){var _0x20cddb=a0_0x20cd();return a0_0x4cd7=function(_0x4cd715,_0x26e8d6){_0x4cd715=_0x4cd715-0x1db;var _0x11ffa2=_0x20cddb[_0x4cd715];return _0x11ffa2;},a0_0x4cd7(_0x4b48f0,_0x44d96e);}function a0_0x20cd(){var _0x513a5f=['577791OHvcIn','2060188GFaVBy','803264qnBBxf','2637655kBHlLE','__esModule','appDir','557213ahGUXg','362920jNmzNr','12362eDuXhM','4206EsfEWb','/runtime'];a0_0x20cd=function(){return _0x513a5f;};return a0_0x20cd();}Object['defineProperty'](exports,a0_0x5ef0fb(0x1e4),{'value':!![]}),exports['default']=_0x3dadc8=>{var _0x121e89=a0_0x5ef0fb;return{'midwayLogger':{'default':{'maxSize':'1m','dir':_0x3dadc8[_0x121e89(0x1e5)]+_0x121e89(0x1df)}}};};
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const a1_0x5947f9=a1_0x503b;(function(_0x1082be,_0x3778ec){const _0xa0e256=a1_0x503b,_0x591ab2=_0x1082be();while(!![]){try{const _0x5a9333=parseInt(_0xa0e256(0xa9))/0x1*(-parseInt(_0xa0e256(0xb7))/0x2)+-parseInt(_0xa0e256(0xad))/0x3*(-parseInt(_0xa0e256(0xb5))/0x4)+-parseInt(_0xa0e256(0xde))/0x5+-parseInt(_0xa0e256(0xd0))/0x6*(-parseInt(_0xa0e256(0xb6))/0x7)+-parseInt(_0xa0e256(0xcf))/0x8*(-parseInt(_0xa0e256(0xaf))/0x9)+parseInt(_0xa0e256(0xdf))/0xa*(-parseInt(_0xa0e256(0xc1))/0xb)+-parseInt(_0xa0e256(0xd5))/0xc*(-parseInt(_0xa0e256(0xb8))/0xd);if(_0x5a9333===_0x3778ec)break;else _0x591ab2['push'](_0x591ab2['shift']());}catch(_0x483343){_0x591ab2['push'](_0x591ab2['shift']());}}}(a1_0xf8e5,0x2ce0c));function a1_0x503b(_0x28bca7,_0x236a70){const _0xf8e591=a1_0xf8e5();return a1_0x503b=function(_0x503b2c,_0x37ac85){_0x503b2c=_0x503b2c-0xa9;let _0x2f77a5=_0xf8e591[_0x503b2c];return _0x2f77a5;},a1_0x503b(_0x28bca7,_0x236a70);}var __decorate=this&&this['__decorate']||function(_0x59bcf1,_0x21a76e,_0xa2fce8,_0x39bf2e){const _0x120301=a1_0x503b;var _0xd677d1=arguments[_0x120301(0xc8)],_0x2602d0=_0xd677d1<0x3?_0x21a76e:_0x39bf2e===null?_0x39bf2e=Object[_0x120301(0xcb)](_0x21a76e,_0xa2fce8):_0x39bf2e,_0x536029;if(typeof Reflect===_0x120301(0xba)&&typeof Reflect[_0x120301(0xbe)]===_0x120301(0xda))_0x2602d0=Reflect[_0x120301(0xbe)](_0x59bcf1,_0x21a76e,_0xa2fce8,_0x39bf2e);else{for(var _0x2072c3=_0x59bcf1['length']-0x1;_0x2072c3>=0x0;_0x2072c3--)if(_0x536029=_0x59bcf1[_0x2072c3])_0x2602d0=(_0xd677d1<0x3?_0x536029(_0x2602d0):_0xd677d1>0x3?_0x536029(_0x21a76e,_0xa2fce8,_0x2602d0):_0x536029(_0x21a76e,_0xa2fce8))||_0x2602d0;}return _0xd677d1>0x3&&_0x2602d0&&Object[_0x120301(0xac)](_0x21a76e,_0xa2fce8,_0x2602d0),_0x2602d0;},__metadata=this&&this['__metadata']||function(_0x47100d,_0x5a6866){const _0x54c9e7=a1_0x503b;if(typeof Reflect===_0x54c9e7(0xba)&&typeof Reflect[_0x54c9e7(0xd4)]===_0x54c9e7(0xda))return Reflect[_0x54c9e7(0xd4)](_0x47100d,_0x5a6866);};function a1_0xf8e5(){const _0x41fd5a=['egg','./config/config.default','design:type','getApplications','function','onReady','AnnError','application','67520EFLCQS','5220OGWmJH','stack','koa','forEach','7LYyENh','MidwayApplicationManager','isDevelopmentEnvironment','defineProperty','36051lYLEou','split','9QjhjCw','AnnErrorRender','@midwayjs/core','express','body','local','20zXcpJq','28FSFWHx','88422hPdEJf','13hQBSiO','_matchedRoute','object','logger','Inject','MidwayEnvironmentService','decorate','request','prototype','5841jBzAIK','anncic-api:core','Configuration','网络异常,请联系管理员。','httpError','NotFoundError','./exception/AnnError','length','CustomConfiguration','message','getOwnPropertyDescriptor','code','__esModule','useMiddleware','2376312KfgHqy','543408nvavRP','environment','error','matched','metadata','775044TolKll'];a1_0xf8e5=function(){return _0x41fd5a;};return a1_0xf8e5();}Object[a1_0x5947f9(0xac)](exports,a1_0x5947f9(0xcd),{'value':!![]}),exports['CustomConfiguration']=void 0x0;const core_1=require(a1_0x5947f9(0xb1)),core_2=require(a1_0x5947f9(0xb1)),AnnError_1=require(a1_0x5947f9(0xc7)),AnnErrorRender_1=require('./exception/AnnErrorRender'),ConfigDefault=require(a1_0x5947f9(0xd7));let CustomConfiguration=class CustomConfiguration{async[a1_0x5947f9(0xdb)](){const _0x2a4025=a1_0x5947f9;this[_0x2a4025(0xdd)][_0x2a4025(0xd9)]([_0x2a4025(0xe1),'faas',_0x2a4025(0xb2),_0x2a4025(0xd6)])[_0x2a4025(0xe2)](_0x14d5ae=>{const _0x7b9607=_0x2a4025;_0x14d5ae[_0x7b9607(0xce)](async(_0x5c1f96,_0x4772d9)=>{const _0x5e643f=_0x7b9607;var _0x5248b0,_0x389065,_0x2ed9f3;try{await _0x4772d9();}catch(_0x4e95fe){if(_0x4e95fe instanceof AnnErrorRender_1[_0x5e643f(0xb0)])await _0x4e95fe['render'](_0x5c1f96,_0x14d5ae);else{if(_0x4e95fe instanceof AnnError_1[_0x5e643f(0xdc)]){const _0x14908b=_0x4e95fe['response']||{'code':_0x4e95fe[_0x5e643f(0xcc)]};!(_0x14908b===null||_0x14908b===void 0x0?void 0x0:_0x14908b['message'])&&(_0x4e95fe===null||_0x4e95fe===void 0x0?void 0x0:_0x4e95fe[_0x5e643f(0xca)])&&(_0x14908b[_0x5e643f(0xca)]=_0x4e95fe[_0x5e643f(0xca)]),this['environment']['getCurrentEnvironment']()==_0x5e643f(0xb4)?(!_0x14908b[_0x5e643f(0xd2)]&&(_0x14908b['error']={}),!((_0x5248b0=_0x14908b===null||_0x14908b===void 0x0?void 0x0:_0x14908b[_0x5e643f(0xd2)])===null||_0x5248b0===void 0x0?void 0x0:_0x5248b0[_0x5e643f(0xca)])&&(_0x4e95fe===null||_0x4e95fe===void 0x0?void 0x0:_0x4e95fe[_0x5e643f(0xca)])&&(_0x14908b['error']['message']=_0x4e95fe[_0x5e643f(0xca)]),!((_0x389065=_0x14908b===null||_0x14908b===void 0x0?void 0x0:_0x14908b[_0x5e643f(0xd2)])===null||_0x389065===void 0x0?void 0x0:_0x389065[_0x5e643f(0xe0)])&&(_0x4e95fe===null||_0x4e95fe===void 0x0?void 0x0:_0x4e95fe[_0x5e643f(0xe0)])&&(_0x14908b[_0x5e643f(0xd2)][_0x5e643f(0xe0)]=_0x4e95fe[_0x5e643f(0xe0)][_0x5e643f(0xae)]('\x20at\x20'))):delete _0x14908b[_0x5e643f(0xd2)],_0x5c1f96[_0x5e643f(0xb3)]=_0x14908b;}else{if(_0x4e95fe instanceof core_2[_0x5e643f(0xc5)][_0x5e643f(0xc6)]){}else{if(_0x4e95fe instanceof Error){if(this[_0x5e643f(0xd1)][_0x5e643f(0xab)]())console[_0x5e643f(0xd2)](_0x4e95fe);else typeof((_0x2ed9f3=_0x5c1f96===null||_0x5c1f96===void 0x0?void 0x0:_0x5c1f96[_0x5e643f(0xbb)])===null||_0x2ed9f3===void 0x0?void 0x0:_0x2ed9f3['error'])==_0x5e643f(0xda)&&(_0x4e95fe[_0x5e643f(0xd3)]=(_0x5c1f96===null||_0x5c1f96===void 0x0?void 0x0:_0x5c1f96[_0x5e643f(0xb9)])||'',_0x4e95fe[_0x5e643f(0xbf)]=(_0x5c1f96===null||_0x5c1f96===void 0x0?void 0x0:_0x5c1f96['request'])||{},_0x5c1f96[_0x5e643f(0xbb)]['error'](_0x4e95fe));_0x5c1f96[_0x5e643f(0xb3)]={'code':AnnError_1[_0x5e643f(0xdc)]['UNKNOW'],'message':_0x5e643f(0xc4)};}}}}}});});}};__decorate([(0x0,core_1[a1_0x5947f9(0xbc)])(),__metadata(a1_0x5947f9(0xd8),core_2[a1_0x5947f9(0xaa)])],CustomConfiguration['prototype'],'application',void 0x0),__decorate([(0x0,core_1[a1_0x5947f9(0xbc)])(),__metadata(a1_0x5947f9(0xd8),core_2[a1_0x5947f9(0xbd)])],CustomConfiguration[a1_0x5947f9(0xc0)],a1_0x5947f9(0xd1),void 0x0),CustomConfiguration=__decorate([(0x0,core_1[a1_0x5947f9(0xc3)])({'namespace':a1_0x5947f9(0xc2),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration),exports[a1_0x5947f9(0xc9)]=CustomConfiguration;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a2_0x49e12c=a2_0x352f;(function(_0x35e886,_0x3141b6){const _0x5e34db=a2_0x352f,_0x3fc3cd=_0x35e886();while(!![]){try{const _0x25b80f=-parseInt(_0x5e34db(0xd4))/0x1*(-parseInt(_0x5e34db(0xc8))/0x2)+-parseInt(_0x5e34db(0xd8))/0x3*(parseInt(_0x5e34db(0xc5))/0x4)+parseInt(_0x5e34db(0xda))/0x5+parseInt(_0x5e34db(0xc2))/0x6*(parseInt(_0x5e34db(0xd9))/0x7)+parseInt(_0x5e34db(0xd2))/0x8*(parseInt(_0x5e34db(0xc1))/0x9)+-parseInt(_0x5e34db(0xd5))/0xa+-parseInt(_0x5e34db(0xc7))/0xb;if(_0x25b80f===_0x3141b6)break;else _0x3fc3cd['push'](_0x3fc3cd['shift']());}catch(_0xbaa0fb){_0x3fc3cd['push'](_0x3fc3cd['shift']());}}}(a2_0x19a1,0x8dbbc));function a2_0x19a1(){const _0x15b34a=['119OLHEgt','5401450kIhiNa','getAnnEnumArray','undefined','\x20is\x20not\x20duplicated','AnnEnumMsg',')must\x20be\x20\x27static\x20readonly\x20','\x20Property(','738OmDlVu','284664XYSSEE','getAnnEnumMsg','push','1460XzfPiY','indexOf','24734776gehHLO','100tvInkb','targetMsg','targetCode','@midwayjs/core',')\x20is\x20duplicated,please\x20check\x20before\x20adding','getAnnEnumMap','defineProperty','saveClassMetadata','__esModule','\x20=\x20number\x20|\x20string;','50632KmZKuE','getClassMetadata','22050xmPvcE','4232950gkDPTa','getAnnEnumList','ann:enum','2103JrbvuV'];a2_0x19a1=function(){return _0x15b34a;};return a2_0x19a1();}Object[a2_0x49e12c(0xce)](exports,a2_0x49e12c(0xd0),{'value':!![]}),exports[a2_0x49e12c(0xdb)]=exports['getAnnEnumList']=exports['getAnnEnumMap']=exports[a2_0x49e12c(0xc3)]=exports['AnnEnumMsg']=void 0x0;const core_1=require(a2_0x49e12c(0xcb)),ANN_ENUM=a2_0x49e12c(0xd7);function AnnEnumMsg(_0x4505de,_0x4977c8){return(_0x4ab9fa,_0xfad999)=>{const _0x366335=a2_0x352f;var _0x3c1662;const _0x3f1861=_0x4ab9fa===null||_0x4ab9fa===void 0x0?void 0x0:_0x4ab9fa[_0xfad999],_0x48e8dd=(0x0,core_1[_0x366335(0xd3)])(ANN_ENUM,_0x4ab9fa)||{};if(typeof _0x3f1861==_0x366335(0xbc)||_0x3f1861===null)throw new Error(((_0x4ab9fa===null||_0x4ab9fa===void 0x0?void 0x0:_0x4ab9fa['name'])||_0x4ab9fa)+_0x366335(0xc0)+_0xfad999+_0x366335(0xbf)+_0xfad999+_0x366335(0xd1));if(typeof((_0x3c1662=_0x48e8dd===null||_0x48e8dd===void 0x0?void 0x0:_0x48e8dd[_0x4505de])===null||_0x3c1662===void 0x0?void 0x0:_0x3c1662[_0x3f1861])!==_0x366335(0xbc))throw new Error('AnnEnumMsg:\x20'+_0x4977c8+'('+_0x4505de+':'+_0x3f1861+_0x366335(0xcc));!(_0x48e8dd===null||_0x48e8dd===void 0x0?void 0x0:_0x48e8dd[_0x4505de])&&(_0x48e8dd[_0x4505de]={}),_0x48e8dd[_0x4505de][_0x3f1861]={'targetKey':_0xfad999,'targetMsg':_0x4977c8,'targetCode':_0x3f1861},(0x0,core_1[_0x366335(0xcf)])(ANN_ENUM,_0x48e8dd,_0x4ab9fa);};}function a2_0x352f(_0x28265b,_0x4fe926){const _0x19a1a1=a2_0x19a1();return a2_0x352f=function(_0x352fe3,_0x4552bf){_0x352fe3=_0x352fe3-0xbc;let _0x57a941=_0x19a1a1[_0x352fe3];return _0x57a941;},a2_0x352f(_0x28265b,_0x4fe926);}exports[a2_0x49e12c(0xbe)]=AnnEnumMsg;function getAnnEnumMsg(_0x2ea04d,_0x3eff97,_0x3cd07a){const _0x409122=a2_0x49e12c;var _0x1be140,_0x2afe5f;const _0x23bc9d=(0x0,core_1['getClassMetadata'])(ANN_ENUM,_0x2ea04d)||{};if(typeof((_0x1be140=_0x23bc9d===null||_0x23bc9d===void 0x0?void 0x0:_0x23bc9d[_0x3eff97])===null||_0x1be140===void 0x0?void 0x0:_0x1be140[_0x3cd07a])===_0x409122(0xbc))throw new Error('AnnEnumMsg:\x20'+_0x3cd07a+_0x409122(0xbd));return((_0x2afe5f=_0x23bc9d[_0x3eff97][_0x3cd07a])===null||_0x2afe5f===void 0x0?void 0x0:_0x2afe5f[_0x409122(0xc9)])||undefined;}exports['getAnnEnumMsg']=getAnnEnumMsg;function getAnnEnumMap(_0x26b724,_0x6a39c5){const _0xf63f16=a2_0x49e12c;var _0xd94c65,_0x29994e,_0x5888b9,_0x128c5f;const _0x12c7a3={},_0x171956=(0x0,core_1['getClassMetadata'])(ANN_ENUM,_0x26b724)||{};if(_0x171956===null||_0x171956===void 0x0?void 0x0:_0x171956[_0x6a39c5])for(const _0x27894d in _0x171956[_0x6a39c5]){if(typeof((_0x29994e=(_0xd94c65=_0x171956[_0x6a39c5])===null||_0xd94c65===void 0x0?void 0x0:_0xd94c65[_0x27894d])===null||_0x29994e===void 0x0?void 0x0:_0x29994e[_0xf63f16(0xc9)])===_0xf63f16(0xbc))continue;if(typeof((_0x128c5f=(_0x5888b9=_0x171956[_0x6a39c5])===null||_0x5888b9===void 0x0?void 0x0:_0x5888b9[_0x27894d])===null||_0x128c5f===void 0x0?void 0x0:_0x128c5f[_0xf63f16(0xca)])==='undefined')continue;_0x12c7a3[_0x171956[_0x6a39c5][_0x27894d][_0xf63f16(0xc9)]]=_0x171956[_0x6a39c5][_0x27894d][_0xf63f16(0xca)];}return _0x12c7a3;}exports[a2_0x49e12c(0xcd)]=getAnnEnumMap;function getAnnEnumList(_0x495878,_0x1aefb7){const _0x5edac3=a2_0x49e12c;var _0x1f22b4,_0x4520f3,_0x4023b3,_0x86c8b2;const _0x43b9aa=[],_0x4ebfa1=(0x0,core_1[_0x5edac3(0xd3)])(ANN_ENUM,_0x495878)||{};if(_0x4ebfa1===null||_0x4ebfa1===void 0x0?void 0x0:_0x4ebfa1[_0x1aefb7])for(const _0x27ba03 in _0x4ebfa1[_0x1aefb7]){if(typeof((_0x4520f3=(_0x1f22b4=_0x4ebfa1[_0x1aefb7])===null||_0x1f22b4===void 0x0?void 0x0:_0x1f22b4[_0x27ba03])===null||_0x4520f3===void 0x0?void 0x0:_0x4520f3[_0x5edac3(0xc9)])==='undefined')continue;if(typeof((_0x86c8b2=(_0x4023b3=_0x4ebfa1[_0x1aefb7])===null||_0x4023b3===void 0x0?void 0x0:_0x4023b3[_0x27ba03])===null||_0x86c8b2===void 0x0?void 0x0:_0x86c8b2['targetCode'])===_0x5edac3(0xbc))continue;_0x43b9aa[_0x5edac3(0xc4)]({'label':_0x4ebfa1[_0x1aefb7][_0x27ba03]['targetMsg'],'value':_0x4ebfa1[_0x1aefb7][_0x27ba03]['targetCode']});}return _0x43b9aa;}exports[a2_0x49e12c(0xd6)]=getAnnEnumList;function getAnnEnumArray(_0x340adc,_0x12e57c,_0x276c73=[]){const _0x2889b5=a2_0x49e12c;var _0x62c51d,_0x369e7c,_0x509449,_0x27d4eb;const _0x5e89c2=[],_0x2c16d9=(0x0,core_1[_0x2889b5(0xd3)])(ANN_ENUM,_0x340adc)||{};if(_0x2c16d9===null||_0x2c16d9===void 0x0?void 0x0:_0x2c16d9[_0x12e57c])for(const _0x5ebb99 in _0x2c16d9[_0x12e57c]){if(typeof((_0x369e7c=(_0x62c51d=_0x2c16d9[_0x12e57c])===null||_0x62c51d===void 0x0?void 0x0:_0x62c51d[_0x5ebb99])===null||_0x369e7c===void 0x0?void 0x0:_0x369e7c[_0x2889b5(0xc9)])===_0x2889b5(0xbc))continue;if(typeof((_0x27d4eb=(_0x509449=_0x2c16d9[_0x12e57c])===null||_0x509449===void 0x0?void 0x0:_0x509449[_0x5ebb99])===null||_0x27d4eb===void 0x0?void 0x0:_0x27d4eb['targetCode'])===_0x2889b5(0xbc))continue;_0x276c73[_0x2889b5(0xc6)](_0x2c16d9[_0x12e57c][_0x5ebb99]['targetCode'])==-0x1&&_0x5e89c2[_0x2889b5(0xc4)](_0x2c16d9[_0x12e57c][_0x5ebb99]['targetCode']);}return _0x5e89c2;}exports[a2_0x49e12c(0xdb)]=getAnnEnumArray;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a3_0x46da4b=a3_0x27a7;(function(_0x5932c9,_0x4555fd){const _0x71b39=a3_0x27a7,_0x5192f9=_0x5932c9();while(!![]){try{const _0xa8eafc=parseInt(_0x71b39(0x88))/0x1*(parseInt(_0x71b39(0x92))/0x2)+parseInt(_0x71b39(0x94))/0x3+parseInt(_0x71b39(0x8c))/0x4+parseInt(_0x71b39(0x93))/0x5+parseInt(_0x71b39(0x98))/0x6*(parseInt(_0x71b39(0x8b))/0x7)+parseInt(_0x71b39(0x8a))/0x8+-parseInt(_0x71b39(0x89))/0x9;if(_0xa8eafc===_0x4555fd)break;else _0x5192f9['push'](_0x5192f9['shift']());}catch(_0x3b12a4){_0x5192f9['push'](_0x5192f9['shift']());}}}(a3_0x893f,0xc161d));Object[a3_0x46da4b(0x87)](exports,'__esModule',{'value':!![]}),exports[a3_0x46da4b(0x8f)]=exports[a3_0x46da4b(0x97)]=exports[a3_0x46da4b(0x90)]=void 0x0;const AnnErrorObj={};function a3_0x27a7(_0x43d9b8,_0x32dfcc){const _0x893fc5=a3_0x893f();return a3_0x27a7=function(_0x27a7ae,_0x7cfc91){_0x27a7ae=_0x27a7ae-0x86;let _0x2d88f0=_0x893fc5[_0x27a7ae];return _0x2d88f0;},a3_0x27a7(_0x43d9b8,_0x32dfcc);}function a3_0x893f(){const _0x382032=['1896636xTqGNM','1571970LDuHpo','3106440LYFPOi','\x20=\x20number;','name','getAnnErrorList','6kOXXGu','message','AnnErrorMsg:\x20','\x20Property(','defineProperty','1MqHHYM','32380515GrNjXm','11925992BiwKdi','1601593VKWsMc','1488752DEjlQR','undefined',')must\x20be\x20\x27static\x20readonly\x20','AnnErrorMsg','getAnnErrorMsg','\x20is\x20not\x20duplicated'];a3_0x893f=function(){return _0x382032;};return a3_0x893f();}function getAnnErrorMsg(_0x4ea8cc){const _0x4b7541=a3_0x46da4b;var _0x476ac5,_0x1db30e;if(typeof((_0x476ac5=AnnErrorObj===null||AnnErrorObj===void 0x0?void 0x0:AnnErrorObj[_0x4ea8cc])===null||_0x476ac5===void 0x0?void 0x0:_0x476ac5[_0x4b7541(0x99)])===_0x4b7541(0x8d))throw new Error(_0x4b7541(0x9a)+_0x4ea8cc+_0x4b7541(0x91));return((_0x1db30e=AnnErrorObj[_0x4ea8cc])===null||_0x1db30e===void 0x0?void 0x0:_0x1db30e[_0x4b7541(0x99)])||undefined;}exports[a3_0x46da4b(0x90)]=getAnnErrorMsg;function getAnnErrorList(){return AnnErrorObj;}exports['getAnnErrorList']=getAnnErrorList;function AnnErrorMsg(_0x327ff3){return(_0x3faf99,_0x3395cd)=>{const _0x1829e3=a3_0x27a7,_0x479667=_0x3faf99===null||_0x3faf99===void 0x0?void 0x0:_0x3faf99[_0x3395cd];if(typeof _0x479667===_0x1829e3(0x8d)||_0x479667===null)throw new Error(((_0x3faf99===null||_0x3faf99===void 0x0?void 0x0:_0x3faf99[_0x1829e3(0x96)])||_0x3faf99)+_0x1829e3(0x86)+_0x3395cd+_0x1829e3(0x8e)+_0x3395cd+_0x1829e3(0x95));if(typeof(AnnErrorObj===null||AnnErrorObj===void 0x0?void 0x0:AnnErrorObj[_0x479667])!==_0x1829e3(0x8d))throw new Error('AnnErrorMsg:\x20'+_0x327ff3+'('+_0x479667+')\x20is\x20duplicated,please\x20check\x20before\x20adding');AnnErrorObj[_0x479667]={'code':_0x479667,'message':_0x327ff3};};}exports[a3_0x46da4b(0x8f)]=AnnErrorMsg;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a4_0x666ed5=a4_0x23f1;function a4_0x23f1(_0x442312,_0x4294a4){var _0x32e240=a4_0x32e2();return a4_0x23f1=function(_0x23f111,_0x438e09){_0x23f111=_0x23f111-0xe3;var _0x3cc0a6=_0x32e240[_0x23f111];return _0x3cc0a6;},a4_0x23f1(_0x442312,_0x4294a4);}(function(_0x2da6d8,_0x264692){var _0x3ff5cb=a4_0x23f1,_0x4bdd36=_0x2da6d8();while(!![]){try{var _0x24ce8f=-parseInt(_0x3ff5cb(0xf6))/0x1+-parseInt(_0x3ff5cb(0xeb))/0x2+-parseInt(_0x3ff5cb(0xf5))/0x3*(-parseInt(_0x3ff5cb(0xef))/0x4)+-parseInt(_0x3ff5cb(0xfb))/0x5*(parseInt(_0x3ff5cb(0xed))/0x6)+-parseInt(_0x3ff5cb(0x104))/0x7*(parseInt(_0x3ff5cb(0xf4))/0x8)+parseInt(_0x3ff5cb(0xf2))/0x9*(-parseInt(_0x3ff5cb(0x100))/0xa)+parseInt(_0x3ff5cb(0x108))/0xb*(parseInt(_0x3ff5cb(0x103))/0xc);if(_0x24ce8f===_0x264692)break;else _0x4bdd36['push'](_0x4bdd36['shift']());}catch(_0x4a60db){_0x4bdd36['push'](_0x4bdd36['shift']());}}}(a4_0x32e2,0xa414d));var __decorate=this&&this[a4_0x666ed5(0xe9)]||function(_0x50fdbc,_0x18dca0,_0x368021,_0x171d6f){var _0x2bf92a=a4_0x666ed5,_0x541e2f=arguments[_0x2bf92a(0xfa)],_0x4de0b2=_0x541e2f<0x3?_0x18dca0:_0x171d6f===null?_0x171d6f=Object['getOwnPropertyDescriptor'](_0x18dca0,_0x368021):_0x171d6f,_0xf7b16f;if(typeof Reflect==='object'&&typeof Reflect[_0x2bf92a(0xe7)]===_0x2bf92a(0x106))_0x4de0b2=Reflect[_0x2bf92a(0xe7)](_0x50fdbc,_0x18dca0,_0x368021,_0x171d6f);else{for(var _0x224967=_0x50fdbc[_0x2bf92a(0xfa)]-0x1;_0x224967>=0x0;_0x224967--)if(_0xf7b16f=_0x50fdbc[_0x224967])_0x4de0b2=(_0x541e2f<0x3?_0xf7b16f(_0x4de0b2):_0x541e2f>0x3?_0xf7b16f(_0x18dca0,_0x368021,_0x4de0b2):_0xf7b16f(_0x18dca0,_0x368021))||_0x4de0b2;}return _0x541e2f>0x3&&_0x4de0b2&&Object[_0x2bf92a(0xf3)](_0x18dca0,_0x368021,_0x4de0b2),_0x4de0b2;},__metadata=this&&this[a4_0x666ed5(0xf7)]||function(_0x128310,_0x2c502b){var _0x4b24bb=a4_0x666ed5;if(typeof Reflect===_0x4b24bb(0xfe)&&typeof Reflect['metadata']===_0x4b24bb(0x106))return Reflect[_0x4b24bb(0xea)](_0x128310,_0x2c502b);};Object[a4_0x666ed5(0xf3)](exports,a4_0x666ed5(0x105),{'value':!![]}),exports['AnnError']=void 0x0;function a4_0x32e2(){var _0x4ad4f7=['PARAMS','参数错误','AnnError','decorate','NOAUTH','__decorate','metadata','1747978fJiyzZ','name','245730VVWGWi','response','8SXbLPt','UNKNOW','未知错误','261fHIYiI','defineProperty','205624vgxwAx','468291bUpjBN','907232MFqcIU','__metadata','没有权限执行该操作','AnnErrorMsg','length','160LhPRJZ','code','design:type','object','getAnnErrorMsg','96790JcaQWO','NOTFIND','不存在对应数据','11076RdBQdr','308LSIyiH','__esModule','function','请登录后重试','57959CNsqdt','../decorator/AnnErrorMsg'];a4_0x32e2=function(){return _0x4ad4f7;};return a4_0x32e2();}const AnnErrorMsg_1=require(a4_0x666ed5(0xe3));class AnnError extends Error{constructor(_0x2d624f,_0xc03787){var _0x4bf386=a4_0x666ed5;super((0x0,AnnErrorMsg_1[_0x4bf386(0xff)])(_0x2d624f)),this[_0x4bf386(0xec)]=this['constructor'][_0x4bf386(0xec)],(this['code']=_0x2d624f,this[_0x4bf386(0xee)]={'code':this[_0x4bf386(0xfc)],..._0xc03787||{}});}}AnnError['OK']=0x0,AnnError[a4_0x666ed5(0xf0)]=0x4c4b40,AnnError[a4_0x666ed5(0xe4)]=0x3df360,AnnError[a4_0x666ed5(0x101)]=0x3da540,AnnError['NOTLOGIN']=0x3d3010,AnnError[a4_0x666ed5(0xe8)]=0x3d7e30,__decorate([(0x0,AnnErrorMsg_1[a4_0x666ed5(0xf9)])('成功'),__metadata(a4_0x666ed5(0xfd),Object)],AnnError,'OK',void 0x0),__decorate([(0x0,AnnErrorMsg_1[a4_0x666ed5(0xf9)])(a4_0x666ed5(0xf1)),__metadata(a4_0x666ed5(0xfd),Object)],AnnError,'UNKNOW',void 0x0),__decorate([(0x0,AnnErrorMsg_1[a4_0x666ed5(0xf9)])(a4_0x666ed5(0xe5)),__metadata(a4_0x666ed5(0xfd),Object)],AnnError,a4_0x666ed5(0xe4),void 0x0),__decorate([(0x0,AnnErrorMsg_1[a4_0x666ed5(0xf9)])(a4_0x666ed5(0x102)),__metadata(a4_0x666ed5(0xfd),Object)],AnnError,a4_0x666ed5(0x101),void 0x0),__decorate([(0x0,AnnErrorMsg_1[a4_0x666ed5(0xf9)])(a4_0x666ed5(0x107)),__metadata(a4_0x666ed5(0xfd),Object)],AnnError,'NOTLOGIN',void 0x0),__decorate([(0x0,AnnErrorMsg_1[a4_0x666ed5(0xf9)])(a4_0x666ed5(0xf8)),__metadata('design:type',Object)],AnnError,a4_0x666ed5(0xe8),void 0x0),exports[a4_0x666ed5(0xe6)]=AnnError;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a5_0x531d8f=a5_0x441e;(function(_0x369072,_0x276cfd){const _0x57035d=a5_0x441e,_0x45a8ea=_0x369072();while(!![]){try{const _0xba809d=-parseInt(_0x57035d(0x99))/0x1+-parseInt(_0x57035d(0xa0))/0x2*(parseInt(_0x57035d(0x94))/0x3)+-parseInt(_0x57035d(0x9c))/0x4+-parseInt(_0x57035d(0x9f))/0x5*(parseInt(_0x57035d(0x96))/0x6)+-parseInt(_0x57035d(0x9e))/0x7*(parseInt(_0x57035d(0xa1))/0x8)+-parseInt(_0x57035d(0x93))/0x9+parseInt(_0x57035d(0x9a))/0xa*(parseInt(_0x57035d(0x95))/0xb);if(_0xba809d===_0x276cfd)break;else _0x45a8ea['push'](_0x45a8ea['shift']());}catch(_0x3a6075){_0x45a8ea['push'](_0x45a8ea['shift']());}}}(a5_0x3e92,0x6e3d5));Object[a5_0x531d8f(0x97)](exports,a5_0x531d8f(0x98),{'value':!![]}),exports[a5_0x531d8f(0x9d)]=void 0x0;function a5_0x441e(_0x283c79,_0x427a50){const _0x3e9297=a5_0x3e92();return a5_0x441e=function(_0x441e46,_0x7f197b){_0x441e46=_0x441e46-0x93;let _0x1166df=_0x3e9297[_0x441e46];return _0x1166df;},a5_0x441e(_0x283c79,_0x427a50);}function a5_0x3e92(){const _0x5b0e1d=['119IyagNh','519490FiGlyh','2bGUGdt','179704lfSHoz','2259477jgOYLK','1343379arpfyY','55pbmLTP','6emJqDG','defineProperty','__esModule','862621JNsFzl','6705430ZGxcMW','AnnError','3415752VKJcVe','AnnErrorRender'];a5_0x3e92=function(){return _0x5b0e1d;};return a5_0x3e92();}const AnnError_1=require('./AnnError');class AnnErrorRender extends AnnError_1[a5_0x531d8f(0x9b)]{constructor(_0x327749,_0x44242d){super(_0x327749,_0x44242d);}}exports['AnnErrorRender']=AnnErrorRender;
|
package/dist/helper/common.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';const a6_0x3430ff=a6_0x2a1e;function a6_0x587b(){const _0x367525=['Utf8','base64_encode','mode','enc','1461425eYFChq','pad','27joIijg','AES128_decode','crypto-js','ECB','753186gGmRZw','Pkcs7','10LlyaYe','AES','154fFFhtX','toString','Base64','defineProperty','decrypt','342740zifFvh','126300pdhATE','64146JTZHdx','parse','1438616vQZCOb','base64_decode','__esModule','4tYCzIo','AES128_encode','14890hujgOL','encrypt','MD5'];a6_0x587b=function(){return _0x367525;};return a6_0x587b();}(function(_0x3a0222,_0x37f6c8){const _0x3e4926=a6_0x2a1e,_0xb46f0e=_0x3a0222();while(!![]){try{const _0x78d460=-parseInt(_0x3e4926(0x13c))/0x1*(-parseInt(_0x3e4926(0x12d))/0x2)+-parseInt(_0x3e4926(0x126))/0x3*(parseInt(_0x3e4926(0x12b))/0x4)+parseInt(_0x3e4926(0x134))/0x5+parseInt(_0x3e4926(0x125))/0x6+-parseInt(_0x3e4926(0x13a))/0x7+parseInt(_0x3e4926(0x128))/0x8*(parseInt(_0x3e4926(0x136))/0x9)+-parseInt(_0x3e4926(0x124))/0xa*(parseInt(_0x3e4926(0x13e))/0xb);if(_0x78d460===_0x37f6c8)break;else _0xb46f0e['push'](_0xb46f0e['shift']());}catch(_0x575da6){_0xb46f0e['push'](_0xb46f0e['shift']());}}}(a6_0x587b,0x4dbf2));Object[a6_0x3430ff(0x122)](exports,a6_0x3430ff(0x12a),{'value':!![]}),exports[a6_0x3430ff(0x137)]=exports['AES128_encode']=exports[a6_0x3430ff(0x129)]=exports[a6_0x3430ff(0x131)]=exports['md5']=void 0x0;const cryptojs=require(a6_0x3430ff(0x138));function md5(_0x4740ec,_0x24a21d){const _0x273dc9=a6_0x3430ff;return cryptojs[_0x273dc9(0x12f)](_0x4740ec,_0x24a21d)[_0x273dc9(0x120)]();}exports['md5']=md5;function base64_encode(_0xb52e48){const _0x4762f3=a6_0x3430ff;return cryptojs[_0x4762f3(0x133)][_0x4762f3(0x121)]['stringify'](cryptojs[_0x4762f3(0x133)][_0x4762f3(0x130)][_0x4762f3(0x127)](_0xb52e48));}exports[a6_0x3430ff(0x131)]=base64_encode;function base64_decode(_0x427da8){const _0x57c218=a6_0x3430ff;return cryptojs[_0x57c218(0x133)][_0x57c218(0x121)][_0x57c218(0x127)](_0x427da8)[_0x57c218(0x120)](cryptojs[_0x57c218(0x133)][_0x57c218(0x130)]);}exports[a6_0x3430ff(0x129)]=base64_decode;function AES128_encode(_0x4f6188,_0xf4701f){const _0x560a35=a6_0x3430ff;return cryptojs['AES'][_0x560a35(0x12e)](cryptojs[_0x560a35(0x133)][_0x560a35(0x130)]['parse'](_0xf4701f),cryptojs[_0x560a35(0x133)][_0x560a35(0x130)][_0x560a35(0x127)](_0x4f6188),{'mode':cryptojs[_0x560a35(0x132)][_0x560a35(0x139)],'padding':cryptojs[_0x560a35(0x135)][_0x560a35(0x13b)]})[_0x560a35(0x120)]();}exports[a6_0x3430ff(0x12c)]=AES128_encode;function a6_0x2a1e(_0x3a7235,_0x444db4){const _0x587b3a=a6_0x587b();return a6_0x2a1e=function(_0x2a1e2f,_0x4fc1f3){_0x2a1e2f=_0x2a1e2f-0x120;let _0x3154f4=_0x587b3a[_0x2a1e2f];return _0x3154f4;},a6_0x2a1e(_0x3a7235,_0x444db4);}function AES128_decode(_0x430651,_0x1a7db8){const _0x5e642e=a6_0x3430ff;return cryptojs[_0x5e642e(0x133)][_0x5e642e(0x130)]['stringify'](cryptojs[_0x5e642e(0x13d)][_0x5e642e(0x123)](_0x1a7db8,cryptojs['enc'][_0x5e642e(0x130)][_0x5e642e(0x127)](_0x430651),{'mode':cryptojs[_0x5e642e(0x132)][_0x5e642e(0x139)],'padding':cryptojs[_0x5e642e(0x135)][_0x5e642e(0x13b)]}))[_0x5e642e(0x120)]();}exports[a6_0x3430ff(0x137)]=AES128_decode;
|
package/dist/helper/fileMd5.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function a7_0x5e6f(){const _0x8182a2=['crypto','1vuWNVn','data','end','8DJGOVc','2262008ZYwtmK','2585946ZkbKVf','1373216nwixvR','5120199vHGmFh','stat','update','bind','755894ITABZv','270819ELRGxY','defineProperty','hex','fileMd5','__esModule','\x20is\x20not\x20file','createReadStream','2283405BOyjwK'];a7_0x5e6f=function(){return _0x8182a2;};return a7_0x5e6f();}const a7_0x477e7f=a7_0xdfa4;(function(_0x15a1ca,_0x46bb38){const _0x1e4255=a7_0xdfa4,_0x47a1c2=_0x15a1ca();while(!![]){try{const _0x54c466=-parseInt(_0x1e4255(0x13e))/0x1*(-parseInt(_0x1e4255(0x149))/0x2)+-parseInt(_0x1e4255(0x14a))/0x3+parseInt(_0x1e4255(0x144))/0x4+-parseInt(_0x1e4255(0x13c))/0x5+parseInt(_0x1e4255(0x143))/0x6+parseInt(_0x1e4255(0x142))/0x7*(parseInt(_0x1e4255(0x141))/0x8)+-parseInt(_0x1e4255(0x145))/0x9;if(_0x54c466===_0x46bb38)break;else _0x47a1c2['push'](_0x47a1c2['shift']());}catch(_0x4933e6){_0x47a1c2['push'](_0x47a1c2['shift']());}}}(a7_0x5e6f,0x57c61));Object[a7_0x477e7f(0x14b)](exports,a7_0x477e7f(0x14e),{'value':!![]}),exports[a7_0x477e7f(0x14d)]=void 0x0;const fs=require('fs'),crypto=require(a7_0x477e7f(0x13d));function a7_0xdfa4(_0x21a3fc,_0x55f419){const _0x5e6fc4=a7_0x5e6f();return a7_0xdfa4=function(_0xdfa4bf,_0x148b72){_0xdfa4bf=_0xdfa4bf-0x13b;let _0x22de6f=_0x5e6fc4[_0xdfa4bf];return _0x22de6f;},a7_0xdfa4(_0x21a3fc,_0x55f419);}function fileMd5(_0x96b243){return new Promise((_0x3642c1,_0xc88533)=>{const _0x58a61e=a7_0xdfa4;fs[_0x58a61e(0x146)](_0x96b243,(_0x13049b,_0x2e236d)=>{const _0x455b10=_0x58a61e;if(_0x13049b)return _0xc88533(_0x13049b);if(!_0x2e236d['isFile']())return _0xc88533(new Error(_0x96b243+_0x455b10(0x14f)));const _0xa16927=crypto['createHash']('md5'),_0x537f6f=fs[_0x455b10(0x13b)](_0x96b243);_0x537f6f['on'](_0x455b10(0x13f),_0xa16927[_0x455b10(0x147)][_0x455b10(0x148)](_0xa16927)),_0x537f6f['on']('error',_0x25b8fc=>_0xc88533(_0x25b8fc)),_0x537f6f['on'](_0x455b10(0x140),()=>_0x3642c1(_0xa16927['digest'](_0x455b10(0x14c))));});});}exports[a7_0x477e7f(0x14d)]=fileMd5;
|
package/dist/helper/globDir.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a8_0x3bd59c=a8_0x29dc;(function(_0x5d2b34,_0x1021e2){const _0x502b7c=a8_0x29dc,_0x291ccd=_0x5d2b34();while(!![]){try{const _0xb74a4=parseInt(_0x502b7c(0x10d))/0x1*(-parseInt(_0x502b7c(0x123))/0x2)+parseInt(_0x502b7c(0x11f))/0x3*(parseInt(_0x502b7c(0x128))/0x4)+parseInt(_0x502b7c(0x117))/0x5*(-parseInt(_0x502b7c(0x11e))/0x6)+parseInt(_0x502b7c(0x113))/0x7*(-parseInt(_0x502b7c(0x118))/0x8)+parseInt(_0x502b7c(0x122))/0x9*(-parseInt(_0x502b7c(0x115))/0xa)+-parseInt(_0x502b7c(0x120))/0xb+parseInt(_0x502b7c(0x12a))/0xc;if(_0xb74a4===_0x1021e2)break;else _0x291ccd['push'](_0x291ccd['shift']());}catch(_0x49ed61){_0x291ccd['push'](_0x291ccd['shift']());}}}(a8_0x239c,0xd011c));Object[a8_0x3bd59c(0x112)](exports,a8_0x3bd59c(0x127),{'value':!![]}),exports['globDir']=void 0x0;const fs=require('fs'),path=require(a8_0x3bd59c(0x110));class RequireContext{constructor(_0x4cbfae,_0xe631b7,_0x5f4e19){const _0x4a7886=a8_0x3bd59c;this[_0x4a7886(0x12c)]=[],this[_0x4a7886(0x129)]=_0x5f4e19,this['useSubdirectories']=!!_0xe631b7,this[_0x4a7886(0x10e)]=this[_0x4a7886(0x11b)](_0x4cbfae),this['__findModules'](this[_0x4a7886(0x10e)]);}[a8_0x3bd59c(0x11b)](_0xf6f82d){const _0x359ac8=a8_0x3bd59c;if(path['isAbsolute'](_0xf6f82d)||!module['parent'])return _0xf6f82d;return path[_0x359ac8(0x126)](path[_0x359ac8(0x111)](path[_0x359ac8(0x116)](module['parent'][_0x359ac8(0x11d)])['dir'],_0xf6f82d));}[a8_0x3bd59c(0x10f)](_0x6611c6){const _0x5151aa=a8_0x3bd59c;if(fs[_0x5151aa(0x119)](_0x6611c6))fs[_0x5151aa(0x11c)](_0x6611c6)['forEach'](_0x265390=>{const _0x207a9a=_0x5151aa,_0x454150=path['resolve'](_0x6611c6,_0x265390);if(fs[_0x207a9a(0x12d)](_0x454150)[_0x207a9a(0x125)]()){if(this[_0x207a9a(0x124)]){this[_0x207a9a(0x10f)](_0x454150);return;}}else{if(this[_0x207a9a(0x129)]&&!this['regExp'][_0x207a9a(0x12b)](_0x454150))return;this[_0x207a9a(0x12c)][_0x207a9a(0x114)](_0x454150);}});else throw new Error('Can\x27t\x20Found\x20Module\x20'+_0x6611c6);}}function a8_0x239c(){const _0x1a870a=['parse','5mmjZrF','688664WSPhNh','existsSync','keys','__findDirectory','readdirSync','filename','7563684TWgGiv','3vWwvAz','16443625odzDtW','globDir','116505bStrHm','12NfvyNF','useSubdirectories','isDirectory','normalize','__esModule','5391096jbRkOq','regExp','66632028SXxOcS','test','modules','statSync','282443ptNuos','directory','__findModules','path','join','defineProperty','91xvlXIP','push','370TItqaP'];a8_0x239c=function(){return _0x1a870a;};return a8_0x239c();}function a8_0x29dc(_0x1d4739,_0x25fc66){const _0x239c1c=a8_0x239c();return a8_0x29dc=function(_0x29dcc0,_0x366325){_0x29dcc0=_0x29dcc0-0x10d;let _0x189ec2=_0x239c1c[_0x29dcc0];return _0x189ec2;},a8_0x29dc(_0x1d4739,_0x25fc66);}function globDir(_0x322a53='.',_0x3578b2=![],_0x358e2c=/(?:)/,_0x128798){const _0xad86f7=a8_0x3bd59c,_0x532da2=new RequireContext(_0x322a53,_0x3578b2,_0x358e2c);if(_0x128798){const _0x5b4240=_0xbc502d=>fs['readFileSync'](_0xbc502d,_0x128798);return _0x5b4240[_0xad86f7(0x11a)]=()=>[..._0x532da2[_0xad86f7(0x12c)]],_0x5b4240;}else{const _0x4ed8f1=_0x5522e7=>require(_0x5522e7);return _0x4ed8f1[_0xad86f7(0x11a)]=()=>[..._0x532da2[_0xad86f7(0x12c)]],_0x4ed8f1;}}exports[a8_0x3bd59c(0x121)]=globDir;
|
package/dist/helper/include.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a9_0xc64b2d=a9_0x9663;function a9_0x9663(_0x5c4a7e,_0x25377d){const _0x554f75=a9_0x554f();return a9_0x9663=function(_0x966343,_0x3f2fcb){_0x966343=_0x966343-0x1d7;let _0x235017=_0x554f75[_0x966343];return _0x235017;},a9_0x9663(_0x5c4a7e,_0x25377d);}(function(_0xb5c103,_0x1c56e7){const _0x444d58=a9_0x9663,_0x3af8b0=_0xb5c103();while(!![]){try{const _0x3c93b8=parseInt(_0x444d58(0x1df))/0x1+-parseInt(_0x444d58(0x1da))/0x2+parseInt(_0x444d58(0x1d9))/0x3+-parseInt(_0x444d58(0x1e4))/0x4*(parseInt(_0x444d58(0x1de))/0x5)+parseInt(_0x444d58(0x1dc))/0x6+-parseInt(_0x444d58(0x1db))/0x7+parseInt(_0x444d58(0x1d7))/0x8;if(_0x3c93b8===_0x1c56e7)break;else _0x3af8b0['push'](_0x3af8b0['shift']());}catch(_0x33fd46){_0x3af8b0['push'](_0x3af8b0['shift']());}}}(a9_0x554f,0x7094d));Object[a9_0xc64b2d(0x1d8)](exports,a9_0xc64b2d(0x1e3),{'value':!![]}),exports[a9_0xc64b2d(0x1e2)]=void 0x0;const jiti=require('jiti'),lodash_1=require('lodash');function include(_0x2990b3){const _0x2750f8=a9_0xc64b2d,_0x54094e={},_0x1eac4b=jiti()(_0x2990b3);for(let _0x4f6273 in _0x1eac4b){_0x4f6273!=_0x2750f8(0x1e1)&&(0x0,lodash_1[_0x2750f8(0x1dd)])(_0x54094e,{[_0x4f6273]:_0x1eac4b[_0x4f6273]});}return(0x0,lodash_1[_0x2750f8(0x1dd)])(_0x54094e,(0x0,lodash_1[_0x2750f8(0x1e0)])(_0x1eac4b,'default',{}));}exports[a9_0xc64b2d(0x1e2)]=include;function a9_0x554f(){const _0x343c56=['include','__esModule','8qcPina','5538256aURzxh','defineProperty','2385843ZJQijl','912992mwlEcj','897932yOcZLF','645660yoflbb','defaultsDeep','1783235IODqKh','164026blQvjI','get','default'];a9_0x554f=function(){return _0x343c56;};return a9_0x554f();}
|
package/dist/helper/sleep.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';var a10_0x8cfde=a10_0x1ce8;(function(_0x5b5300,_0x512a2f){var _0x310487=a10_0x1ce8,_0x172633=_0x5b5300();while(!![]){try{var _0x510d88=parseInt(_0x310487(0x1cb))/0x1+-parseInt(_0x310487(0x1d4))/0x2*(parseInt(_0x310487(0x1d1))/0x3)+parseInt(_0x310487(0x1d0))/0x4+parseInt(_0x310487(0x1ce))/0x5+-parseInt(_0x310487(0x1d3))/0x6+parseInt(_0x310487(0x1cf))/0x7*(parseInt(_0x310487(0x1d2))/0x8)+-parseInt(_0x310487(0x1cd))/0x9;if(_0x510d88===_0x512a2f)break;else _0x172633['push'](_0x172633['shift']());}catch(_0x5194bc){_0x172633['push'](_0x172633['shift']());}}}(a10_0x3227,0x6bf4e));function a10_0x3227(){var _0xb3b52d=['sleep','579218oVBYIN','__esModule','3058803UnmZGZ','302825yLPShv','30541ipHDFD','2446052DweAEK','1551LzbDon','424GgSqBj','2803866DWpZrv','902dNkfOQ'];a10_0x3227=function(){return _0xb3b52d;};return a10_0x3227();}function a10_0x1ce8(_0x595253,_0x27c26f){var _0x32271f=a10_0x3227();return a10_0x1ce8=function(_0x1ce8c6,_0x9e3db8){_0x1ce8c6=_0x1ce8c6-0x1cb;var _0x365d73=_0x32271f[_0x1ce8c6];return _0x365d73;},a10_0x1ce8(_0x595253,_0x27c26f);}Object['defineProperty'](exports,a10_0x8cfde(0x1cc),{'value':!![]}),exports['sleep']=void 0x0;function sleep(_0x4a08aa=0xc8){return new Promise(_0xbf3abe=>setTimeout(_0xbf3abe,_0x4a08aa));}exports[a10_0x8cfde(0x1d5)]=sleep;
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const a11_0x455fce=a11_0x457f;(function(_0x2b7412,_0x71564){const _0x26122e=a11_0x457f,_0x4c13ab=_0x2b7412();while(!![]){try{const _0x3721b2=-parseInt(_0x26122e(0x155))/0x1*(-parseInt(_0x26122e(0x142))/0x2)+parseInt(_0x26122e(0x149))/0x3+parseInt(_0x26122e(0x157))/0x4*(parseInt(_0x26122e(0x145))/0x5)+-parseInt(_0x26122e(0x16a))/0x6+-parseInt(_0x26122e(0x15c))/0x7*(parseInt(_0x26122e(0x154))/0x8)+-parseInt(_0x26122e(0x16f))/0x9+-parseInt(_0x26122e(0x173))/0xa*(-parseInt(_0x26122e(0x167))/0xb);if(_0x3721b2===_0x71564)break;else _0x4c13ab['push'](_0x4c13ab['shift']());}catch(_0x49993e){_0x4c13ab['push'](_0x4c13ab['shift']());}}}(a11_0x50d8,0x90cae));Object[a11_0x455fce(0x168)](exports,a11_0x455fce(0x163),{'value':!![]}),exports[a11_0x455fce(0x169)]=exports[a11_0x455fce(0x165)]=exports[a11_0x455fce(0x16b)]=exports[a11_0x455fce(0x15d)]=exports[a11_0x455fce(0x16c)]=exports[a11_0x455fce(0x174)]=exports['getAnnEnumList']=exports['getAnnEnumMap']=exports['getAnnEnumMsg']=exports[a11_0x455fce(0x15a)]=exports[a11_0x455fce(0x171)]=exports[a11_0x455fce(0x16e)]=exports['base64_decode']=exports[a11_0x455fce(0x158)]=exports[a11_0x455fce(0x148)]=exports[a11_0x455fce(0x15e)]=exports[a11_0x455fce(0x161)]=exports[a11_0x455fce(0x144)]=exports['sleep']=exports['dayjs']=exports['md5']=exports['lodash']=exports[a11_0x455fce(0x14e)]=exports[a11_0x455fce(0x15b)]=exports[a11_0x455fce(0x151)]=exports[a11_0x455fce(0x147)]=exports[a11_0x455fce(0x152)]=void 0x0;const axios_1=require(a11_0x455fce(0x147));exports[a11_0x455fce(0x147)]=axios_1['default'];const dayjs=require('dayjs');exports[a11_0x455fce(0x14b)]=dayjs;const urllib=require(a11_0x455fce(0x151));exports[a11_0x455fce(0x151)]=urllib;const mathjs=require(a11_0x455fce(0x14e));exports[a11_0x455fce(0x14e)]=mathjs;const lodash=require(a11_0x455fce(0x170));exports[a11_0x455fce(0x170)]=lodash;const fsplus=require(a11_0x455fce(0x16d));exports[a11_0x455fce(0x15b)]=fsplus;const collect_js_1=require(a11_0x455fce(0x159));Object[a11_0x455fce(0x168)](exports,a11_0x455fce(0x144),{'enumerable':!![],'get':function(){const _0x2c2f39=a11_0x455fce;return collect_js_1[_0x2c2f39(0x144)];}});const sleep_1=require('./helper/sleep');Object[a11_0x455fce(0x168)](exports,a11_0x455fce(0x150),{'enumerable':!![],'get':function(){const _0x38d567=a11_0x455fce;return sleep_1[_0x38d567(0x150)];}});const include_1=require('./helper/include');Object[a11_0x455fce(0x168)](exports,a11_0x455fce(0x161),{'enumerable':!![],'get':function(){const _0x197a9f=a11_0x455fce;return include_1[_0x197a9f(0x161)];}});const globDir_1=require(a11_0x455fce(0x14a));Object[a11_0x455fce(0x168)](exports,'globDir',{'enumerable':!![],'get':function(){const _0xeefadc=a11_0x455fce;return globDir_1[_0xeefadc(0x15e)];}});const fileMd5_1=require(a11_0x455fce(0x164));Object[a11_0x455fce(0x168)](exports,a11_0x455fce(0x148),{'enumerable':!![],'get':function(){const _0x1b606a=a11_0x455fce;return fileMd5_1[_0x1b606a(0x148)];}});const AnnError_1=require(a11_0x455fce(0x14d));Object[a11_0x455fce(0x168)](exports,a11_0x455fce(0x165),{'enumerable':!![],'get':function(){const _0x1a8b1a=a11_0x455fce;return AnnError_1[_0x1a8b1a(0x165)];}});const common_1=require(a11_0x455fce(0x162));Object['defineProperty'](exports,a11_0x455fce(0x146),{'enumerable':!![],'get':function(){const _0x2304cc=a11_0x455fce;return common_1[_0x2304cc(0x146)];}}),Object[a11_0x455fce(0x168)](exports,a11_0x455fce(0x158),{'enumerable':!![],'get':function(){const _0x23950f=a11_0x455fce;return common_1[_0x23950f(0x158)];}}),Object[a11_0x455fce(0x168)](exports,a11_0x455fce(0x15f),{'enumerable':!![],'get':function(){const _0x298240=a11_0x455fce;return common_1[_0x298240(0x15f)];}}),Object[a11_0x455fce(0x168)](exports,'AES128_encode',{'enumerable':!![],'get':function(){const _0x581e90=a11_0x455fce;return common_1[_0x581e90(0x16e)];}}),Object['defineProperty'](exports,a11_0x455fce(0x171),{'enumerable':!![],'get':function(){const _0x1cc914=a11_0x455fce;return common_1[_0x1cc914(0x171)];}});const AnnErrorRender_1=require(a11_0x455fce(0x160));Object[a11_0x455fce(0x168)](exports,'AnnErrorRender',{'enumerable':!![],'get':function(){const _0x14058f=a11_0x455fce;return AnnErrorRender_1[_0x14058f(0x169)];}});function a11_0x457f(_0x539cfd,_0x1b7a97){const _0x50d86a=a11_0x50d8();return a11_0x457f=function(_0x457f23,_0x2ade20){_0x457f23=_0x457f23-0x142;let _0x4e4a66=_0x50d86a[_0x457f23];return _0x4e4a66;},a11_0x457f(_0x539cfd,_0x1b7a97);}const AnnErrorMsg_1=require(a11_0x455fce(0x166));Object[a11_0x455fce(0x168)](exports,a11_0x455fce(0x16c),{'enumerable':!![],'get':function(){const _0x1748da=a11_0x455fce;return AnnErrorMsg_1[_0x1748da(0x16c)];}}),Object[a11_0x455fce(0x168)](exports,a11_0x455fce(0x15d),{'enumerable':!![],'get':function(){const _0x18e405=a11_0x455fce;return AnnErrorMsg_1[_0x18e405(0x15d)];}}),Object['defineProperty'](exports,a11_0x455fce(0x16b),{'enumerable':!![],'get':function(){const _0x242afb=a11_0x455fce;return AnnErrorMsg_1[_0x242afb(0x16b)];}});const AnnEnumMsg_1=require(a11_0x455fce(0x143));function a11_0x50d8(){const _0xa0b5e5=['axios','fileMd5','726309lTNeXg','./helper/globDir','dayjs','getAnnEnumMsg','./exception/AnnError','mathjs','default','sleep','urllib','Configuration','./configuration','150488xoNzfc','51WmUhua','getAnnEnumList','11164OpWWIY','base64_encode','collect.js','AnnEnumMsg','fsplus','154TcPIBU','getAnnErrorMsg','globDir','base64_decode','./exception/AnnErrorRender','include','./helper/common','__esModule','./helper/fileMd5','AnnError','./decorator/AnnErrorMsg','5114923vQjegb','defineProperty','AnnErrorRender','6449046ACSswg','getAnnErrorList','AnnErrorMsg','fs-extra','AES128_encode','3464361fekhqP','lodash','AES128_decode','getAnnEnumMap','30alptgM','getAnnEnumArray','CustomConfiguration','12066ynKmaD','./decorator/AnnEnumMsg','collect','935HtcCAN','md5'];a11_0x50d8=function(){return _0xa0b5e5;};return a11_0x50d8();}Object['defineProperty'](exports,a11_0x455fce(0x15a),{'enumerable':!![],'get':function(){const _0x17c701=a11_0x455fce;return AnnEnumMsg_1[_0x17c701(0x15a)];}}),Object['defineProperty'](exports,a11_0x455fce(0x14c),{'enumerable':!![],'get':function(){const _0x4878ff=a11_0x455fce;return AnnEnumMsg_1[_0x4878ff(0x14c)];}}),Object[a11_0x455fce(0x168)](exports,a11_0x455fce(0x172),{'enumerable':!![],'get':function(){const _0x478e49=a11_0x455fce;return AnnEnumMsg_1[_0x478e49(0x172)];}}),Object[a11_0x455fce(0x168)](exports,a11_0x455fce(0x156),{'enumerable':!![],'get':function(){const _0x2b476d=a11_0x455fce;return AnnEnumMsg_1[_0x2b476d(0x156)];}}),Object[a11_0x455fce(0x168)](exports,a11_0x455fce(0x174),{'enumerable':!![],'get':function(){const _0x5b5087=a11_0x455fce;return AnnEnumMsg_1[_0x5b5087(0x174)];}});var configuration_1=require(a11_0x455fce(0x153));Object[a11_0x455fce(0x168)](exports,a11_0x455fce(0x152),{'enumerable':!![],'get':function(){const _0x3df020=a11_0x455fce;return configuration_1[_0x3df020(0x175)];}}),(global[a11_0x455fce(0x147)]=axios_1[a11_0x455fce(0x14f)],global[a11_0x455fce(0x151)]=urllib),(global['fsplus']=fsplus,global[a11_0x455fce(0x14e)]=mathjs,global[a11_0x455fce(0x170)]=lodash),(global[a11_0x455fce(0x14b)]=dayjs,global[a11_0x455fce(0x150)]=sleep_1[a11_0x455fce(0x150)],global[a11_0x455fce(0x144)]=collect_js_1['collect'],global[a11_0x455fce(0x161)]=include_1[a11_0x455fce(0x161)],global[a11_0x455fce(0x15e)]=globDir_1[a11_0x455fce(0x15e)]),(global[a11_0x455fce(0x146)]=common_1[a11_0x455fce(0x146)],global[a11_0x455fce(0x148)]=fileMd5_1[a11_0x455fce(0x148)],global[a11_0x455fce(0x158)]=common_1[a11_0x455fce(0x158)],global[a11_0x455fce(0x15f)]=common_1[a11_0x455fce(0x15f)],global['AES128_encode']=common_1[a11_0x455fce(0x16e)],global['AES128_decode']=common_1['AES128_decode']),(global['AnnEnumMsg']=AnnEnumMsg_1[a11_0x455fce(0x15a)],global[a11_0x455fce(0x14c)]=AnnEnumMsg_1['getAnnEnumMsg'],global['getAnnEnumMap']=AnnEnumMsg_1[a11_0x455fce(0x172)],global[a11_0x455fce(0x156)]=AnnEnumMsg_1[a11_0x455fce(0x156)],global['getAnnEnumArray']=AnnEnumMsg_1[a11_0x455fce(0x174)]),(global[a11_0x455fce(0x16c)]=AnnErrorMsg_1[a11_0x455fce(0x16c)],global[a11_0x455fce(0x15d)]=AnnErrorMsg_1[a11_0x455fce(0x15d)],global[a11_0x455fce(0x16b)]=AnnErrorMsg_1['getAnnErrorList'],global[a11_0x455fce(0x165)]=AnnError_1[a11_0x455fce(0x165)],global['AnnErrorRender']=AnnErrorRender_1[a11_0x455fce(0x169)]);
|
package/index.d.ts
CHANGED
|
@@ -63,24 +63,24 @@ declare global { // 全局变量设置
|
|
|
63
63
|
|
|
64
64
|
export class AnnError extends Error {
|
|
65
65
|
readonly code: number;
|
|
66
|
-
readonly
|
|
67
|
-
|
|
66
|
+
readonly response: { [key: string]: any; };
|
|
67
|
+
|
|
68
68
|
static readonly OK = 0;
|
|
69
69
|
static readonly UNKNOW = 5000000;
|
|
70
70
|
static readonly PARAMS = 4060000;
|
|
71
|
-
static readonly NOAUTH = 4030000;
|
|
72
71
|
static readonly NOTFIND = 4040000;
|
|
73
72
|
static readonly NOTLOGIN = 4010000;
|
|
74
|
-
|
|
75
|
-
constructor(code: number,
|
|
73
|
+
static readonly NOAUTH = 4030000;
|
|
74
|
+
constructor(code: number, response?: {
|
|
76
75
|
[key: string]: any;
|
|
77
76
|
});
|
|
78
77
|
}
|
|
79
78
|
|
|
80
79
|
export abstract class AnnErrorRender extends AnnError {
|
|
81
|
-
constructor(code: number,
|
|
80
|
+
constructor(code: number, response?: {
|
|
82
81
|
[key: string]: any;
|
|
83
82
|
});
|
|
84
83
|
abstract render(ctx: any, app: any): Promise<void>;
|
|
85
84
|
}
|
|
85
|
+
|
|
86
86
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anncic-api/core",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.20",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"typings": "index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
"build": "tsc && javascript-obfuscator ./dist --output ./dist --config obfuscator.json"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@midwayjs/bootstrap": "^3.
|
|
20
|
-
"@midwayjs/core": "^3.
|
|
19
|
+
"@midwayjs/bootstrap": "^3.8.0",
|
|
20
|
+
"@midwayjs/core": "^3.8.0",
|
|
21
21
|
"@types/crypto-js": "^4.1.1",
|
|
22
22
|
"@types/fs-extra": "^9.0.13",
|
|
23
23
|
"@types/lodash": "^4.14.188",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"lodash": "^4.17.21",
|
|
31
31
|
"mathjs": "^11.3.0",
|
|
32
32
|
"mwts": "^1.3.0",
|
|
33
|
-
"urllib": "^
|
|
33
|
+
"urllib": "^2.38.1"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@types/node": "^18.8.4",
|
|
@@ -42,5 +42,5 @@
|
|
|
42
42
|
"javascript-obfuscator": "2.19.0",
|
|
43
43
|
"typescript": "^4.8.4"
|
|
44
44
|
},
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "f5b71b5dcb7e468728b96a7a6a821afae99abf97"
|
|
46
46
|
}
|