@anncic-api/core 1.3.17 → 1.3.19
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.d.ts +2 -2
- 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 +8 -8
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';var a0_0xa4a370=a0_0x9812;function a0_0x9812(_0x28500a,_0x5aab3d){var _0x7b590a=a0_0x7b59();return a0_0x9812=function(_0x98120d,_0x396c9a){_0x98120d=_0x98120d-0x76;var _0x4007af=_0x7b590a[_0x98120d];return _0x4007af;},a0_0x9812(_0x28500a,_0x5aab3d);}(function(_0x5939e2,_0x186237){var _0x42e4e7=a0_0x9812,_0xc3c20e=_0x5939e2();while(!![]){try{var _0x1727a7=-parseInt(_0x42e4e7(0x76))/0x1*(-parseInt(_0x42e4e7(0x84))/0x2)+parseInt(_0x42e4e7(0x80))/0x3*(parseInt(_0x42e4e7(0x82))/0x4)+-parseInt(_0x42e4e7(0x79))/0x5+-parseInt(_0x42e4e7(0x7d))/0x6*(parseInt(_0x42e4e7(0x81))/0x7)+parseInt(_0x42e4e7(0x7f))/0x8+parseInt(_0x42e4e7(0x77))/0x9*(parseInt(_0x42e4e7(0x7c))/0xa)+-parseInt(_0x42e4e7(0x7a))/0xb*(parseInt(_0x42e4e7(0x83))/0xc);if(_0x1727a7===_0x186237)break;else _0xc3c20e['push'](_0xc3c20e['shift']());}catch(_0x2c75c3){_0xc3c20e['push'](_0xc3c20e['shift']());}}}(a0_0x7b59,0xc1518));function a0_0x7b59(){var _0x3c9e22=['9ulEIQz','defineProperty','3886520UnxZPC','887447mMCYxF','default','13918460JgPEaZ','6WCmDBD','__esModule','10223176fVGsXJ','333273UNcWUC','5591887BrZnAI','44jGzstH','228JNGvIN','3032NHHbbY','appDir','6UuFaEk'];a0_0x7b59=function(){return _0x3c9e22;};return a0_0x7b59();}Object[a0_0xa4a370(0x78)](exports,a0_0xa4a370(0x7e),{'value':!![]}),exports[a0_0xa4a370(0x7b)]=_0x3bad7e=>{var _0x1aae8f=a0_0xa4a370;return{'midwayLogger':{'default':{'maxSize':'1m','dir':_0x3bad7e[_0x1aae8f(0x85)]+'/runtime'}}};};
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';function a1_0xde3e(_0x582878,_0x26ca3d){const _0x3bd00e=a1_0x3bd0();return a1_0xde3e=function(_0xde3e0e,_0x57a6fc){_0xde3e0e=_0xde3e0e-0x1d1;let _0x2980c9=_0x3bd00e[_0xde3e0e];return _0x2980c9;},a1_0xde3e(_0x582878,_0x26ca3d);}const a1_0x2902fd=a1_0xde3e;(function(_0x4b000b,_0x5dfc3f){const _0x1e73f7=a1_0xde3e,_0x49099a=_0x4b000b();while(!![]){try{const _0x3bdff1=parseInt(_0x1e73f7(0x1e0))/0x1+-parseInt(_0x1e73f7(0x1f1))/0x2*(parseInt(_0x1e73f7(0x1e5))/0x3)+-parseInt(_0x1e73f7(0x1e8))/0x4+-parseInt(_0x1e73f7(0x1de))/0x5*(parseInt(_0x1e73f7(0x1e4))/0x6)+parseInt(_0x1e73f7(0x1f2))/0x7+parseInt(_0x1e73f7(0x1f6))/0x8+parseInt(_0x1e73f7(0x200))/0x9*(parseInt(_0x1e73f7(0x1f8))/0xa);if(_0x3bdff1===_0x5dfc3f)break;else _0x49099a['push'](_0x49099a['shift']());}catch(_0x177e9f){_0x49099a['push'](_0x49099a['shift']());}}}(a1_0x3bd0,0x89cb3));var __decorate=this&&this[a1_0x2902fd(0x1f4)]||function(_0x80ad9,_0x4b7a4f,_0x5c0930,_0x24e753){const _0x438c59=a1_0x2902fd;var _0x3f6f28=arguments['length'],_0xf42263=_0x3f6f28<0x3?_0x4b7a4f:_0x24e753===null?_0x24e753=Object[_0x438c59(0x1d3)](_0x4b7a4f,_0x5c0930):_0x24e753,_0x2206be;if(typeof Reflect===_0x438c59(0x1e7)&&typeof Reflect[_0x438c59(0x1d6)]===_0x438c59(0x204))_0xf42263=Reflect[_0x438c59(0x1d6)](_0x80ad9,_0x4b7a4f,_0x5c0930,_0x24e753);else{for(var _0x401295=_0x80ad9[_0x438c59(0x1ef)]-0x1;_0x401295>=0x0;_0x401295--)if(_0x2206be=_0x80ad9[_0x401295])_0xf42263=(_0x3f6f28<0x3?_0x2206be(_0xf42263):_0x3f6f28>0x3?_0x2206be(_0x4b7a4f,_0x5c0930,_0xf42263):_0x2206be(_0x4b7a4f,_0x5c0930))||_0xf42263;}return _0x3f6f28>0x3&&_0xf42263&&Object[_0x438c59(0x1ea)](_0x4b7a4f,_0x5c0930,_0xf42263),_0xf42263;},__metadata=this&&this['__metadata']||function(_0x3d874f,_0x3f4ffb){const _0x27586e=a1_0x2902fd;if(typeof Reflect===_0x27586e(0x1e7)&&typeof Reflect[_0x27586e(0x205)]==='function')return Reflect['metadata'](_0x3d874f,_0x3f4ffb);};Object[a1_0x2902fd(0x1ea)](exports,a1_0x2902fd(0x1fb),{'value':!![]}),exports[a1_0x2902fd(0x1fe)]=void 0x0;const core_1=require(a1_0x2902fd(0x202)),core_2=require('@midwayjs/core'),AnnError_1=require(a1_0x2902fd(0x1f5)),AnnErrorRender_1=require(a1_0x2902fd(0x1f7)),ConfigDefault=require(a1_0x2902fd(0x1ee));function a1_0x3bd0(){const _0x3c5604=['831204tHuSgR','56250cbyAwG','MidwayEnvironmentService','object','2588220JasFNK','design:type','defineProperty','prototype','environment','request','./config/config.default','length','logger','34RZbynQ','1871408binDqG','httpError','__decorate','./exception/AnnError','4744336yTXcWL','./exception/AnnErrorRender','5155430yiwzof','useMiddleware','AnnErrorRender','__esModule','response','faas','CustomConfiguration','koa','9UIgYbJ','NotFoundError','@midwayjs/core','getCurrentEnvironment','function','metadata','forEach','application','getOwnPropertyDescriptor','AnnError','body','decorate','Configuration','anncic-api:core','stack','render','error','isDevelopmentEnvironment','getApplications','15vRtiFA','\x20at\x20','569881GHYXmF','local','express','message'];a1_0x3bd0=function(){return _0x3c5604;};return a1_0x3bd0();}let CustomConfiguration=class CustomConfiguration{async['onReady'](){const _0x1be7ab=a1_0x2902fd;this['application'][_0x1be7ab(0x1dd)]([_0x1be7ab(0x1ff),_0x1be7ab(0x1fd),_0x1be7ab(0x1e2),'egg'])[_0x1be7ab(0x1d1)](_0x2be0a6=>{const _0x1efafe=_0x1be7ab;_0x2be0a6[_0x1efafe(0x1f9)](async(_0x5eb275,_0x357d34)=>{const _0x5cae66=_0x1efafe;var _0x421208,_0x2dae7e,_0x18169b;try{await _0x357d34();}catch(_0x3c10d2){if(_0x3c10d2 instanceof AnnErrorRender_1[_0x5cae66(0x1fa)])await _0x3c10d2[_0x5cae66(0x1da)](_0x5eb275,_0x2be0a6);else{if(_0x3c10d2 instanceof AnnError_1[_0x5cae66(0x1d4)]){const _0x244047=_0x3c10d2[_0x5cae66(0x1fc)]||{'code':_0x3c10d2['code']};!(_0x244047===null||_0x244047===void 0x0?void 0x0:_0x244047[_0x5cae66(0x1e3)])&&(_0x3c10d2===null||_0x3c10d2===void 0x0?void 0x0:_0x3c10d2['message'])&&(_0x244047[_0x5cae66(0x1e3)]=_0x3c10d2[_0x5cae66(0x1e3)]),this[_0x5cae66(0x1ec)][_0x5cae66(0x203)]()==_0x5cae66(0x1e1)?(!_0x244047[_0x5cae66(0x1db)]&&(_0x244047[_0x5cae66(0x1db)]={}),!((_0x421208=_0x244047===null||_0x244047===void 0x0?void 0x0:_0x244047['error'])===null||_0x421208===void 0x0?void 0x0:_0x421208[_0x5cae66(0x1e3)])&&(_0x3c10d2===null||_0x3c10d2===void 0x0?void 0x0:_0x3c10d2['message'])&&(_0x244047[_0x5cae66(0x1db)]['message']=_0x3c10d2[_0x5cae66(0x1e3)]),!((_0x2dae7e=_0x244047===null||_0x244047===void 0x0?void 0x0:_0x244047[_0x5cae66(0x1db)])===null||_0x2dae7e===void 0x0?void 0x0:_0x2dae7e[_0x5cae66(0x1d9)])&&(_0x3c10d2===null||_0x3c10d2===void 0x0?void 0x0:_0x3c10d2['stack'])&&(_0x244047['error'][_0x5cae66(0x1d9)]=_0x3c10d2[_0x5cae66(0x1d9)]['split'](_0x5cae66(0x1df)))):delete _0x244047[_0x5cae66(0x1db)],_0x5eb275[_0x5cae66(0x1d5)]=_0x244047;}else{if(_0x3c10d2 instanceof core_2[_0x5cae66(0x1f3)][_0x5cae66(0x201)]){}else{if(_0x3c10d2 instanceof Error){if(this[_0x5cae66(0x1ec)][_0x5cae66(0x1dc)]())console[_0x5cae66(0x1db)](_0x3c10d2);else typeof((_0x18169b=_0x5eb275===null||_0x5eb275===void 0x0?void 0x0:_0x5eb275['logger'])===null||_0x18169b===void 0x0?void 0x0:_0x18169b[_0x5cae66(0x1db)])==_0x5cae66(0x204)&&(_0x3c10d2['matched']=(_0x5eb275===null||_0x5eb275===void 0x0?void 0x0:_0x5eb275['_matchedRoute'])||'',_0x3c10d2[_0x5cae66(0x1ed)]=(_0x5eb275===null||_0x5eb275===void 0x0?void 0x0:_0x5eb275[_0x5cae66(0x1ed)])||{},_0x5eb275[_0x5cae66(0x1f0)][_0x5cae66(0x1db)](_0x3c10d2));_0x5eb275[_0x5cae66(0x1d5)]={'code':AnnError_1['AnnError']['UNKNOW'],'message':'网络异常,请联系管理员。'};}}}}}});});}};__decorate([(0x0,core_1['Inject'])(),__metadata(a1_0x2902fd(0x1e9),core_2['MidwayApplicationManager'])],CustomConfiguration[a1_0x2902fd(0x1eb)],a1_0x2902fd(0x1d2),void 0x0),__decorate([(0x0,core_1['Inject'])(),__metadata('design:type',core_2[a1_0x2902fd(0x1e6)])],CustomConfiguration['prototype'],a1_0x2902fd(0x1ec),void 0x0),CustomConfiguration=__decorate([(0x0,core_1[a1_0x2902fd(0x1d7)])({'namespace':a1_0x2902fd(0x1d8),'conflictCheck':![],'importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration),exports[a1_0x2902fd(0x1fe)]=CustomConfiguration;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a2_0x4a9a21=a2_0xa816;(function(_0x1e4b05,_0x5c16c1){const _0x3db53c=a2_0xa816,_0x56619c=_0x1e4b05();while(!![]){try{const _0x1b0049=parseInt(_0x3db53c(0x10a))/0x1*(-parseInt(_0x3db53c(0xfe))/0x2)+parseInt(_0x3db53c(0x107))/0x3+parseInt(_0x3db53c(0x106))/0x4*(parseInt(_0x3db53c(0xf3))/0x5)+parseInt(_0x3db53c(0x109))/0x6*(-parseInt(_0x3db53c(0x101))/0x7)+-parseInt(_0x3db53c(0x110))/0x8*(parseInt(_0x3db53c(0x100))/0x9)+-parseInt(_0x3db53c(0xfc))/0xa*(parseInt(_0x3db53c(0x102))/0xb)+-parseInt(_0x3db53c(0xff))/0xc*(-parseInt(_0x3db53c(0x10f))/0xd);if(_0x1b0049===_0x5c16c1)break;else _0x56619c['push'](_0x56619c['shift']());}catch(_0x1c92f9){_0x56619c['push'](_0x56619c['shift']());}}}(a2_0x26b2,0xe58df));function a2_0x26b2(){const _0x17a20f=['\x20is\x20not\x20duplicated','undefined','getAnnEnumList','60929583WjuxDp','16SEpHac','indexOf','@midwayjs/core','AnnEnumMsg:\x20','getClassMetadata','55tJMCeo','\x20Property(','name','targetCode','getAnnEnumMap','getAnnEnumArray','__esModule','getAnnEnumMsg','defineProperty','5661870YzRscT','saveClassMetadata','878UxrHSt','12xyjLBs','6128523QcwLDz','5042723DiJcvB','22APQYlV','push','\x20=\x20number\x20|\x20string;','AnnEnumMsg','183068hrnGvA','1097586CjZowE','targetMsg','12rUMwZL','1551Ruqcba','ann:enum'];a2_0x26b2=function(){return _0x17a20f;};return a2_0x26b2();}Object[a2_0x4a9a21(0xfb)](exports,a2_0x4a9a21(0xf9),{'value':!![]}),exports[a2_0x4a9a21(0xf8)]=exports[a2_0x4a9a21(0x10e)]=exports[a2_0x4a9a21(0xf7)]=exports[a2_0x4a9a21(0xfa)]=exports[a2_0x4a9a21(0x105)]=void 0x0;const core_1=require(a2_0x4a9a21(0xf0)),ANN_ENUM=a2_0x4a9a21(0x10b);function AnnEnumMsg(_0x300ef9,_0x168eff){return(_0x44172b,_0x404598)=>{const _0x414924=a2_0xa816;var _0x396651;const _0x515da8=_0x44172b===null||_0x44172b===void 0x0?void 0x0:_0x44172b[_0x404598],_0x3a58f9=(0x0,core_1[_0x414924(0xf2)])(ANN_ENUM,_0x44172b)||{};if(typeof _0x515da8==_0x414924(0x10d)||_0x515da8===null)throw new Error(((_0x44172b===null||_0x44172b===void 0x0?void 0x0:_0x44172b[_0x414924(0xf5)])||_0x44172b)+_0x414924(0xf4)+_0x404598+')must\x20be\x20\x27static\x20readonly\x20'+_0x404598+_0x414924(0x104));if(typeof((_0x396651=_0x3a58f9===null||_0x3a58f9===void 0x0?void 0x0:_0x3a58f9[_0x300ef9])===null||_0x396651===void 0x0?void 0x0:_0x396651[_0x515da8])!==_0x414924(0x10d))throw new Error(_0x414924(0xf1)+_0x168eff+'('+_0x300ef9+':'+_0x515da8+')\x20is\x20duplicated,please\x20check\x20before\x20adding');!(_0x3a58f9===null||_0x3a58f9===void 0x0?void 0x0:_0x3a58f9[_0x300ef9])&&(_0x3a58f9[_0x300ef9]={}),_0x3a58f9[_0x300ef9][_0x515da8]={'targetKey':_0x404598,'targetMsg':_0x168eff,'targetCode':_0x515da8},(0x0,core_1[_0x414924(0xfd)])(ANN_ENUM,_0x3a58f9,_0x44172b);};}exports[a2_0x4a9a21(0x105)]=AnnEnumMsg;function getAnnEnumMsg(_0x30550e,_0x5d270d,_0x36401c){const _0x55fd98=a2_0x4a9a21;var _0x3c42b8,_0x1af05f;const _0x146d14=(0x0,core_1[_0x55fd98(0xf2)])(ANN_ENUM,_0x30550e)||{};if(typeof((_0x3c42b8=_0x146d14===null||_0x146d14===void 0x0?void 0x0:_0x146d14[_0x5d270d])===null||_0x3c42b8===void 0x0?void 0x0:_0x3c42b8[_0x36401c])===_0x55fd98(0x10d))throw new Error(_0x55fd98(0xf1)+_0x36401c+_0x55fd98(0x10c));return((_0x1af05f=_0x146d14[_0x5d270d][_0x36401c])===null||_0x1af05f===void 0x0?void 0x0:_0x1af05f[_0x55fd98(0x108)])||undefined;}exports[a2_0x4a9a21(0xfa)]=getAnnEnumMsg;function getAnnEnumMap(_0x41a790,_0x453012){const _0x99537b=a2_0x4a9a21;var _0x1505da,_0xd39721,_0x43e4a8,_0x849835;const _0x15baf2={},_0x3b90d8=(0x0,core_1['getClassMetadata'])(ANN_ENUM,_0x41a790)||{};if(_0x3b90d8===null||_0x3b90d8===void 0x0?void 0x0:_0x3b90d8[_0x453012])for(const _0x5c5b30 in _0x3b90d8[_0x453012]){if(typeof((_0xd39721=(_0x1505da=_0x3b90d8[_0x453012])===null||_0x1505da===void 0x0?void 0x0:_0x1505da[_0x5c5b30])===null||_0xd39721===void 0x0?void 0x0:_0xd39721[_0x99537b(0x108)])==='undefined')continue;if(typeof((_0x849835=(_0x43e4a8=_0x3b90d8[_0x453012])===null||_0x43e4a8===void 0x0?void 0x0:_0x43e4a8[_0x5c5b30])===null||_0x849835===void 0x0?void 0x0:_0x849835[_0x99537b(0xf6)])==='undefined')continue;_0x15baf2[_0x3b90d8[_0x453012][_0x5c5b30][_0x99537b(0x108)]]=_0x3b90d8[_0x453012][_0x5c5b30][_0x99537b(0xf6)];}return _0x15baf2;}exports['getAnnEnumMap']=getAnnEnumMap;function getAnnEnumList(_0x1e0e2f,_0x5a1962){const _0x2c2141=a2_0x4a9a21;var _0x7a92a2,_0x52bf3f,_0x1206fa,_0x453c9d;const _0x102c56=[],_0x599fa9=(0x0,core_1[_0x2c2141(0xf2)])(ANN_ENUM,_0x1e0e2f)||{};if(_0x599fa9===null||_0x599fa9===void 0x0?void 0x0:_0x599fa9[_0x5a1962])for(const _0x59a8c9 in _0x599fa9[_0x5a1962]){if(typeof((_0x52bf3f=(_0x7a92a2=_0x599fa9[_0x5a1962])===null||_0x7a92a2===void 0x0?void 0x0:_0x7a92a2[_0x59a8c9])===null||_0x52bf3f===void 0x0?void 0x0:_0x52bf3f['targetMsg'])===_0x2c2141(0x10d))continue;if(typeof((_0x453c9d=(_0x1206fa=_0x599fa9[_0x5a1962])===null||_0x1206fa===void 0x0?void 0x0:_0x1206fa[_0x59a8c9])===null||_0x453c9d===void 0x0?void 0x0:_0x453c9d[_0x2c2141(0xf6)])===_0x2c2141(0x10d))continue;_0x102c56['push']({'label':_0x599fa9[_0x5a1962][_0x59a8c9][_0x2c2141(0x108)],'value':_0x599fa9[_0x5a1962][_0x59a8c9][_0x2c2141(0xf6)]});}return _0x102c56;}exports['getAnnEnumList']=getAnnEnumList;function getAnnEnumArray(_0x3ab8b9,_0x56d6af,_0x2f72f2=[]){const _0x597f80=a2_0x4a9a21;var _0x114ace,_0x5602af,_0x480527,_0x33384f;const _0x3e7197=[],_0x1f952b=(0x0,core_1[_0x597f80(0xf2)])(ANN_ENUM,_0x3ab8b9)||{};if(_0x1f952b===null||_0x1f952b===void 0x0?void 0x0:_0x1f952b[_0x56d6af])for(const _0x28375d in _0x1f952b[_0x56d6af]){if(typeof((_0x5602af=(_0x114ace=_0x1f952b[_0x56d6af])===null||_0x114ace===void 0x0?void 0x0:_0x114ace[_0x28375d])===null||_0x5602af===void 0x0?void 0x0:_0x5602af[_0x597f80(0x108)])===_0x597f80(0x10d))continue;if(typeof((_0x33384f=(_0x480527=_0x1f952b[_0x56d6af])===null||_0x480527===void 0x0?void 0x0:_0x480527[_0x28375d])===null||_0x33384f===void 0x0?void 0x0:_0x33384f[_0x597f80(0xf6)])===_0x597f80(0x10d))continue;_0x2f72f2[_0x597f80(0x111)](_0x1f952b[_0x56d6af][_0x28375d]['targetCode'])==-0x1&&_0x3e7197[_0x597f80(0x103)](_0x1f952b[_0x56d6af][_0x28375d][_0x597f80(0xf6)]);}return _0x3e7197;}function a2_0xa816(_0x4293ff,_0x53d195){const _0x26b256=a2_0x26b2();return a2_0xa816=function(_0xa816dc,_0x1a90e7){_0xa816dc=_0xa816dc-0xf0;let _0x1e651f=_0x26b256[_0xa816dc];return _0x1e651f;},a2_0xa816(_0x4293ff,_0x53d195);}exports['getAnnEnumArray']=getAnnEnumArray;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a3_0x47159c=a3_0x53e2;(function(_0x214eae,_0x543f75){const _0xf4fce4=a3_0x53e2,_0x2b82bc=_0x214eae();while(!![]){try{const _0x46d112=-parseInt(_0xf4fce4(0xcf))/0x1+parseInt(_0xf4fce4(0xc3))/0x2+parseInt(_0xf4fce4(0xd3))/0x3+-parseInt(_0xf4fce4(0xc2))/0x4+-parseInt(_0xf4fce4(0xd4))/0x5+-parseInt(_0xf4fce4(0xc9))/0x6*(parseInt(_0xf4fce4(0xd0))/0x7)+-parseInt(_0xf4fce4(0xca))/0x8*(-parseInt(_0xf4fce4(0xc5))/0x9);if(_0x46d112===_0x543f75)break;else _0x2b82bc['push'](_0x2b82bc['shift']());}catch(_0x50c951){_0x2b82bc['push'](_0x2b82bc['shift']());}}}(a3_0x5f31,0x58966));Object[a3_0x47159c(0xc7)](exports,a3_0x47159c(0xc8),{'value':!![]}),exports[a3_0x47159c(0xcb)]=exports[a3_0x47159c(0xcc)]=exports[a3_0x47159c(0xc6)]=void 0x0;const AnnErrorObj={};function getAnnErrorMsg(_0x508994){const _0xfac5f0=a3_0x47159c;var _0x34e3c0,_0x5c8765;if(typeof((_0x34e3c0=AnnErrorObj===null||AnnErrorObj===void 0x0?void 0x0:AnnErrorObj[_0x508994])===null||_0x34e3c0===void 0x0?void 0x0:_0x34e3c0['message'])===_0xfac5f0(0xc4))throw new Error(_0xfac5f0(0xd1)+_0x508994+_0xfac5f0(0xd2));return((_0x5c8765=AnnErrorObj[_0x508994])===null||_0x5c8765===void 0x0?void 0x0:_0x5c8765[_0xfac5f0(0xcd)])||undefined;}exports['getAnnErrorMsg']=getAnnErrorMsg;function getAnnErrorList(){return AnnErrorObj;}exports[a3_0x47159c(0xcc)]=getAnnErrorList;function a3_0x53e2(_0x3a996f,_0x209753){const _0x5f31a4=a3_0x5f31();return a3_0x53e2=function(_0x53e2ab,_0x3661f9){_0x53e2ab=_0x53e2ab-0xc0;let _0x2712ca=_0x5f31a4[_0x53e2ab];return _0x2712ca;},a3_0x53e2(_0x3a996f,_0x209753);}function AnnErrorMsg(_0x4408de){return(_0x12486c,_0x38a901)=>{const _0x513e11=a3_0x53e2,_0x15092e=_0x12486c===null||_0x12486c===void 0x0?void 0x0:_0x12486c[_0x38a901];if(typeof _0x15092e===_0x513e11(0xc4)||_0x15092e===null)throw new Error(((_0x12486c===null||_0x12486c===void 0x0?void 0x0:_0x12486c['name'])||_0x12486c)+_0x513e11(0xc1)+_0x38a901+_0x513e11(0xc0)+_0x38a901+_0x513e11(0xce));if(typeof(AnnErrorObj===null||AnnErrorObj===void 0x0?void 0x0:AnnErrorObj[_0x15092e])!==_0x513e11(0xc4))throw new Error(_0x513e11(0xd1)+_0x4408de+'('+_0x15092e+')\x20is\x20duplicated,please\x20check\x20before\x20adding');AnnErrorObj[_0x15092e]={'code':_0x15092e,'message':_0x4408de};};}function a3_0x5f31(){const _0x3d1caa=['AnnErrorMsg','getAnnErrorList','message','\x20=\x20number;','237901DQIFhV','171199CfEVAN','AnnErrorMsg:\x20','\x20is\x20not\x20duplicated','876951lqxzWq','1911795XQEzTz',')must\x20be\x20\x27static\x20readonly\x20','\x20Property(','2131152jaAkfD','536186uhXHHe','undefined','27729jZPvJu','getAnnErrorMsg','defineProperty','__esModule','12bXeilW','2608OszIWP'];a3_0x5f31=function(){return _0x3d1caa;};return a3_0x5f31();}exports[a3_0x47159c(0xcb)]=AnnErrorMsg;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a4_0x63d43b=a4_0x2124;(function(_0x368cb9,_0x1da9d0){var _0x383032=a4_0x2124,_0x47aacf=_0x368cb9();while(!![]){try{var _0x27f4d8=-parseInt(_0x383032(0x19f))/0x1+-parseInt(_0x383032(0x1a1))/0x2*(-parseInt(_0x383032(0x19e))/0x3)+parseInt(_0x383032(0x19a))/0x4+-parseInt(_0x383032(0x1a9))/0x5+parseInt(_0x383032(0x19d))/0x6*(-parseInt(_0x383032(0x190))/0x7)+parseInt(_0x383032(0x193))/0x8*(parseInt(_0x383032(0x194))/0x9)+parseInt(_0x383032(0x1a4))/0xa;if(_0x27f4d8===_0x1da9d0)break;else _0x47aacf['push'](_0x47aacf['shift']());}catch(_0x136de){_0x47aacf['push'](_0x47aacf['shift']());}}}(a4_0x4193,0xca35f));var __decorate=this&&this[a4_0x63d43b(0x18a)]||function(_0x28b2b0,_0x3e10a3,_0x168aa5,_0x4fc30e){var _0x3d8990=a4_0x63d43b,_0x18818e=arguments[_0x3d8990(0x18e)],_0x4c4b93=_0x18818e<0x3?_0x3e10a3:_0x4fc30e===null?_0x4fc30e=Object[_0x3d8990(0x1a7)](_0x3e10a3,_0x168aa5):_0x4fc30e,_0x3b00ad;if(typeof Reflect===_0x3d8990(0x195)&&typeof Reflect['decorate']===_0x3d8990(0x199))_0x4c4b93=Reflect[_0x3d8990(0x1a3)](_0x28b2b0,_0x3e10a3,_0x168aa5,_0x4fc30e);else{for(var _0x5eff60=_0x28b2b0[_0x3d8990(0x18e)]-0x1;_0x5eff60>=0x0;_0x5eff60--)if(_0x3b00ad=_0x28b2b0[_0x5eff60])_0x4c4b93=(_0x18818e<0x3?_0x3b00ad(_0x4c4b93):_0x18818e>0x3?_0x3b00ad(_0x3e10a3,_0x168aa5,_0x4c4b93):_0x3b00ad(_0x3e10a3,_0x168aa5))||_0x4c4b93;}return _0x18818e>0x3&&_0x4c4b93&&Object[_0x3d8990(0x191)](_0x3e10a3,_0x168aa5,_0x4c4b93),_0x4c4b93;},__metadata=this&&this[a4_0x63d43b(0x1a6)]||function(_0x4db4d8,_0x5bed04){var _0x278d06=a4_0x63d43b;if(typeof Reflect==='object'&&typeof Reflect[_0x278d06(0x1a2)]===_0x278d06(0x199))return Reflect[_0x278d06(0x1a2)](_0x4db4d8,_0x5bed04);};Object[a4_0x63d43b(0x191)](exports,a4_0x63d43b(0x1aa),{'value':!![]}),exports[a4_0x63d43b(0x18c)]=void 0x0;function a4_0x2124(_0x1887d0,_0x5a024d){var _0x41930a=a4_0x4193();return a4_0x2124=function(_0x21245a,_0x2ec4ca){_0x21245a=_0x21245a-0x18a;var _0x512467=_0x41930a[_0x21245a];return _0x512467;},a4_0x2124(_0x1887d0,_0x5a024d);}function a4_0x4193(){var _0x5692f1=['__esModule','AnnErrorMsg','PARAMS','__decorate','code','AnnError','NOTFIND','length','NOAUTH','77VzAevO','defineProperty','未知错误','24YZtUYy','2130543VYWvdn','object','NOTLOGIN','name','参数错误','function','5728192RqlrXy','design:type','../decorator/AnnErrorMsg','142650nUlZyV','3039xQndUo','1614303RGqadh','response','1716kejugz','metadata','decorate','7496400FcLmiC','UNKNOW','__metadata','getOwnPropertyDescriptor','请登录后重试','5284700CDLEjQ'];a4_0x4193=function(){return _0x5692f1;};return a4_0x4193();}const AnnErrorMsg_1=require(a4_0x63d43b(0x19c));class AnnError extends Error{constructor(_0x31574e,_0x10abe){var _0x36011c=a4_0x63d43b;super((0x0,AnnErrorMsg_1['getAnnErrorMsg'])(_0x31574e)),this[_0x36011c(0x197)]=this['constructor'][_0x36011c(0x197)],(this['code']=_0x31574e,this[_0x36011c(0x1a0)]={'code':this[_0x36011c(0x18b)],..._0x10abe||{}});}}AnnError['OK']=0x0,AnnError[a4_0x63d43b(0x1a5)]=0x4c4b40,AnnError[a4_0x63d43b(0x1ac)]=0x3df360,AnnError[a4_0x63d43b(0x18d)]=0x3da540,AnnError['NOTLOGIN']=0x3d3010,AnnError['NOAUTH']=0x3d7e30,__decorate([(0x0,AnnErrorMsg_1[a4_0x63d43b(0x1ab)])('成功'),__metadata(a4_0x63d43b(0x19b),Object)],AnnError,'OK',void 0x0),__decorate([(0x0,AnnErrorMsg_1[a4_0x63d43b(0x1ab)])(a4_0x63d43b(0x192)),__metadata(a4_0x63d43b(0x19b),Object)],AnnError,a4_0x63d43b(0x1a5),void 0x0),__decorate([(0x0,AnnErrorMsg_1[a4_0x63d43b(0x1ab)])(a4_0x63d43b(0x198)),__metadata(a4_0x63d43b(0x19b),Object)],AnnError,'PARAMS',void 0x0),__decorate([(0x0,AnnErrorMsg_1[a4_0x63d43b(0x1ab)])('不存在对应数据'),__metadata(a4_0x63d43b(0x19b),Object)],AnnError,a4_0x63d43b(0x18d),void 0x0),__decorate([(0x0,AnnErrorMsg_1['AnnErrorMsg'])(a4_0x63d43b(0x1a8)),__metadata('design:type',Object)],AnnError,a4_0x63d43b(0x196),void 0x0),__decorate([(0x0,AnnErrorMsg_1['AnnErrorMsg'])('没有权限执行该操作'),__metadata(a4_0x63d43b(0x19b),Object)],AnnError,a4_0x63d43b(0x18f),void 0x0),exports['AnnError']=AnnError;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AnnError } from './AnnError';
|
|
2
|
-
export declare class AnnErrorRender extends AnnError {
|
|
2
|
+
export declare abstract class AnnErrorRender extends AnnError {
|
|
3
3
|
constructor(code: number, response?: {
|
|
4
4
|
[key: string]: any;
|
|
5
5
|
});
|
|
6
|
-
render(ctx: any, app: any): Promise<void>;
|
|
6
|
+
abstract render(ctx: any, app: any): Promise<void>;
|
|
7
7
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';const a5_0x40bdda=a5_0x4cf4;function a5_0x4cf4(_0x593b65,_0x368430){const _0x5d3890=a5_0x5d38();return a5_0x4cf4=function(_0x4cf4a5,_0x1b6b20){_0x4cf4a5=_0x4cf4a5-0x1e3;let _0x3b7c41=_0x5d3890[_0x4cf4a5];return _0x3b7c41;},a5_0x4cf4(_0x593b65,_0x368430);}(function(_0x4698ca,_0x1b1027){const _0x46abd5=a5_0x4cf4,_0x4e76f7=_0x4698ca();while(!![]){try{const _0x167047=-parseInt(_0x46abd5(0x1f0))/0x1*(parseInt(_0x46abd5(0x1ea))/0x2)+-parseInt(_0x46abd5(0x1e6))/0x3*(parseInt(_0x46abd5(0x1ef))/0x4)+-parseInt(_0x46abd5(0x1e4))/0x5+-parseInt(_0x46abd5(0x1e5))/0x6*(parseInt(_0x46abd5(0x1e7))/0x7)+parseInt(_0x46abd5(0x1ec))/0x8*(parseInt(_0x46abd5(0x1e9))/0x9)+parseInt(_0x46abd5(0x1ed))/0xa*(parseInt(_0x46abd5(0x1f2))/0xb)+parseInt(_0x46abd5(0x1e3))/0xc;if(_0x167047===_0x1b1027)break;else _0x4e76f7['push'](_0x4e76f7['shift']());}catch(_0x403007){_0x4e76f7['push'](_0x4e76f7['shift']());}}}(a5_0x5d38,0xd0296));function a5_0x5d38(){const _0x46c069=['2623160EpoSbB','738gJEUzb','648474cWSFhM','25739wcJkWD','./AnnError','326637aYNeAk','34STzDsP','AnnError','152cFnkvf','410nCbKpM','AnnErrorRender','24gGzvMb','2809BcGHqM','__esModule','106227SbhkYj','25064760DscaAB'];a5_0x5d38=function(){return _0x46c069;};return a5_0x5d38();}Object['defineProperty'](exports,a5_0x40bdda(0x1f1),{'value':!![]}),exports[a5_0x40bdda(0x1ee)]=void 0x0;const AnnError_1=require(a5_0x40bdda(0x1e8));class AnnErrorRender extends AnnError_1[a5_0x40bdda(0x1eb)]{constructor(_0x1b8c2b,_0x19a9b2){super(_0x1b8c2b,_0x19a9b2);}}exports[a5_0x40bdda(0x1ee)]=AnnErrorRender;
|
package/dist/helper/common.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function a6_0x5092(){const _0x448123=['AES128_decode','65434dNZIZf','143439xQktUt','crypto-js','pad','482116eJdKMz','18ILnbPv','base64_encode','AES','defineProperty','389310ywdNPz','MD5','mode','AES128_encode','ECB','md5','toString','stringify','Pkcs7','743504TJHFOJ','encrypt','656424JPGYfS','519645JDcsQz','Base64','Utf8','base64_decode','parse','enc','3AWFRTI'];a6_0x5092=function(){return _0x448123;};return a6_0x5092();}const a6_0x53761d=a6_0x34ef;(function(_0x381035,_0xd01133){const _0x386fab=a6_0x34ef,_0x27bd1a=_0x381035();while(!![]){try{const _0x49185f=-parseInt(_0x386fab(0x158))/0x1*(-parseInt(_0x386fab(0x15a))/0x2)+parseInt(_0x386fab(0x15b))/0x3+-parseInt(_0x386fab(0x141))/0x4+parseInt(_0x386fab(0x146))/0x5+parseInt(_0x386fab(0x151))/0x6+parseInt(_0x386fab(0x152))/0x7+parseInt(_0x386fab(0x14f))/0x8*(-parseInt(_0x386fab(0x142))/0x9);if(_0x49185f===_0xd01133)break;else _0x27bd1a['push'](_0x27bd1a['shift']());}catch(_0x4f2eb1){_0x27bd1a['push'](_0x27bd1a['shift']());}}}(a6_0x5092,0x18ac4));Object[a6_0x53761d(0x145)](exports,'__esModule',{'value':!![]}),exports[a6_0x53761d(0x159)]=exports[a6_0x53761d(0x149)]=exports[a6_0x53761d(0x155)]=exports[a6_0x53761d(0x143)]=exports[a6_0x53761d(0x14b)]=void 0x0;const cryptojs=require(a6_0x53761d(0x15c));function md5(_0x4f52f6,_0x49524f){const _0x45248e=a6_0x53761d;return cryptojs[_0x45248e(0x147)](_0x4f52f6,_0x49524f)['toString']();}exports[a6_0x53761d(0x14b)]=md5;function base64_encode(_0x8f26c6){const _0x190c68=a6_0x53761d;return cryptojs[_0x190c68(0x157)]['Base64'][_0x190c68(0x14d)](cryptojs[_0x190c68(0x157)][_0x190c68(0x154)][_0x190c68(0x156)](_0x8f26c6));}exports[a6_0x53761d(0x143)]=base64_encode;function base64_decode(_0x337737){const _0x404ab6=a6_0x53761d;return cryptojs[_0x404ab6(0x157)][_0x404ab6(0x153)][_0x404ab6(0x156)](_0x337737)['toString'](cryptojs['enc'][_0x404ab6(0x154)]);}exports['base64_decode']=base64_decode;function a6_0x34ef(_0x512d50,_0x9abb0c){const _0x5092ed=a6_0x5092();return a6_0x34ef=function(_0x34efaa,_0x5d0f48){_0x34efaa=_0x34efaa-0x141;let _0x35737e=_0x5092ed[_0x34efaa];return _0x35737e;},a6_0x34ef(_0x512d50,_0x9abb0c);}function AES128_encode(_0x30297e,_0x141a88){const _0x58c3cd=a6_0x53761d;return cryptojs[_0x58c3cd(0x144)][_0x58c3cd(0x150)](cryptojs[_0x58c3cd(0x157)][_0x58c3cd(0x154)][_0x58c3cd(0x156)](_0x141a88),cryptojs[_0x58c3cd(0x157)][_0x58c3cd(0x154)][_0x58c3cd(0x156)](_0x30297e),{'mode':cryptojs[_0x58c3cd(0x148)][_0x58c3cd(0x14a)],'padding':cryptojs[_0x58c3cd(0x15d)][_0x58c3cd(0x14e)]})[_0x58c3cd(0x14c)]();}exports[a6_0x53761d(0x149)]=AES128_encode;function AES128_decode(_0x399ab9,_0x2e3345){const _0x7f06de=a6_0x53761d;return cryptojs['enc'][_0x7f06de(0x154)]['stringify'](cryptojs[_0x7f06de(0x144)]['decrypt'](_0x2e3345,cryptojs[_0x7f06de(0x157)][_0x7f06de(0x154)]['parse'](_0x399ab9),{'mode':cryptojs['mode']['ECB'],'padding':cryptojs['pad'][_0x7f06de(0x14e)]}))[_0x7f06de(0x14c)]();}exports['AES128_decode']=AES128_decode;
|
package/dist/helper/fileMd5.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a7_0x36224d=a7_0x34e0;(function(_0x4e5d45,_0x58f9fd){const _0x4e36f9=a7_0x34e0,_0x5894e8=_0x4e5d45();while(!![]){try{const _0x4dfa5b=parseInt(_0x4e36f9(0x9b))/0x1+parseInt(_0x4e36f9(0xb1))/0x2*(-parseInt(_0x4e36f9(0x9e))/0x3)+parseInt(_0x4e36f9(0x99))/0x4*(-parseInt(_0x4e36f9(0xa9))/0x5)+-parseInt(_0x4e36f9(0xa5))/0x6*(parseInt(_0x4e36f9(0x9f))/0x7)+-parseInt(_0x4e36f9(0xae))/0x8*(parseInt(_0x4e36f9(0xa6))/0x9)+parseInt(_0x4e36f9(0xaa))/0xa+parseInt(_0x4e36f9(0xa1))/0xb;if(_0x4dfa5b===_0x58f9fd)break;else _0x5894e8['push'](_0x5894e8['shift']());}catch(_0x11bdab){_0x5894e8['push'](_0x5894e8['shift']());}}}(a7_0x470b,0x5bc52));function a7_0x470b(){const _0x31458e=['4231560rAzbfm','data','end','fileMd5','473896CDepzx','\x20is\x20not\x20file','createReadStream','4ORyzuv','4lrFbkX','stat','291093XkRdYf','bind','digest','412089IAYZJS','3262QwRFKp','createHash','6864473lyEyjW','update','hex','isFile','186gCpTrE','99KbylYQ','__esModule','defineProperty','108115aaxKUt'];a7_0x470b=function(){return _0x31458e;};return a7_0x470b();}Object[a7_0x36224d(0xa8)](exports,a7_0x36224d(0xa7),{'value':!![]}),exports[a7_0x36224d(0xad)]=void 0x0;function a7_0x34e0(_0x47f725,_0x2a647f){const _0x470b8c=a7_0x470b();return a7_0x34e0=function(_0x34e07c,_0x176ead){_0x34e07c=_0x34e07c-0x99;let _0x27d546=_0x470b8c[_0x34e07c];return _0x27d546;},a7_0x34e0(_0x47f725,_0x2a647f);}const fs=require('fs'),crypto=require('crypto');function fileMd5(_0x2de734){return new Promise((_0x35daf4,_0x246ea)=>{const _0x561289=a7_0x34e0;fs[_0x561289(0x9a)](_0x2de734,(_0x3a4f46,_0x597731)=>{const _0x3c9a60=_0x561289;if(_0x3a4f46)return _0x246ea(_0x3a4f46);if(!_0x597731[_0x3c9a60(0xa4)]())return _0x246ea(new Error(_0x2de734+_0x3c9a60(0xaf)));const _0x16fb8f=crypto[_0x3c9a60(0xa0)]('md5'),_0x14f7ae=fs[_0x3c9a60(0xb0)](_0x2de734);_0x14f7ae['on'](_0x3c9a60(0xab),_0x16fb8f[_0x3c9a60(0xa2)][_0x3c9a60(0x9c)](_0x16fb8f)),_0x14f7ae['on']('error',_0x394439=>_0x246ea(_0x394439)),_0x14f7ae['on'](_0x3c9a60(0xac),()=>_0x35daf4(_0x16fb8f[_0x3c9a60(0x9d)](_0x3c9a60(0xa3))));});});}exports[a7_0x36224d(0xad)]=fileMd5;
|
package/dist/helper/globDir.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a8_0x11a32c=a8_0x12dd;(function(_0xe52a89,_0x481782){const _0xbe2b5d=a8_0x12dd,_0x296a2=_0xe52a89();while(!![]){try{const _0x509dd8=parseInt(_0xbe2b5d(0xa9))/0x1*(-parseInt(_0xbe2b5d(0xa8))/0x2)+parseInt(_0xbe2b5d(0xb2))/0x3+parseInt(_0xbe2b5d(0xb6))/0x4+parseInt(_0xbe2b5d(0xab))/0x5*(-parseInt(_0xbe2b5d(0xb5))/0x6)+parseInt(_0xbe2b5d(0xb0))/0x7*(-parseInt(_0xbe2b5d(0xad))/0x8)+-parseInt(_0xbe2b5d(0xa5))/0x9*(parseInt(_0xbe2b5d(0xbc))/0xa)+-parseInt(_0xbe2b5d(0xb7))/0xb*(-parseInt(_0xbe2b5d(0xaa))/0xc);if(_0x509dd8===_0x481782)break;else _0x296a2['push'](_0x296a2['shift']());}catch(_0x583b99){_0x296a2['push'](_0x296a2['shift']());}}}(a8_0xfe85,0x1a45f));Object[a8_0x11a32c(0xbe)](exports,'__esModule',{'value':!![]}),exports[a8_0x11a32c(0xa2)]=void 0x0;const fs=require('fs'),path=require('path');function a8_0x12dd(_0x46af64,_0x47c981){const _0xfe85c4=a8_0xfe85();return a8_0x12dd=function(_0x12dd1f,_0x65d3b9){_0x12dd1f=_0x12dd1f-0x9d;let _0x2b3fab=_0xfe85c4[_0x12dd1f];return _0x2b3fab;},a8_0x12dd(_0x46af64,_0x47c981);}class RequireContext{constructor(_0x337396,_0x48af6a,_0x3cdf03){const _0x1a2597=a8_0x11a32c;this['modules']=[],this[_0x1a2597(0xa0)]=_0x3cdf03,this[_0x1a2597(0x9f)]=!!_0x48af6a,this[_0x1a2597(0xa6)]=this[_0x1a2597(0xb1)](_0x337396),this[_0x1a2597(0x9d)](this[_0x1a2597(0xa6)]);}[a8_0x11a32c(0xb1)](_0x278b53){const _0x1ae2a5=a8_0x11a32c;if(path[_0x1ae2a5(0xb9)](_0x278b53)||!module['parent'])return _0x278b53;return path[_0x1ae2a5(0xae)](path[_0x1ae2a5(0xa1)](path[_0x1ae2a5(0xb3)](module[_0x1ae2a5(0xbd)][_0x1ae2a5(0xa7)])['dir'],_0x278b53));}[a8_0x11a32c(0x9d)](_0x499ade){const _0x477203=a8_0x11a32c;if(fs[_0x477203(0xb8)](_0x499ade))fs[_0x477203(0xa4)](_0x499ade)['forEach'](_0x1999de=>{const _0x3be464=_0x477203,_0x4416e2=path[_0x3be464(0xa3)](_0x499ade,_0x1999de);if(fs[_0x3be464(0xaf)](_0x4416e2)['isDirectory']()){if(this['useSubdirectories']){this[_0x3be464(0x9d)](_0x4416e2);return;}}else{if(this[_0x3be464(0xa0)]&&!this[_0x3be464(0xa0)][_0x3be464(0xb4)](_0x4416e2))return;this[_0x3be464(0xba)][_0x3be464(0xbb)](_0x4416e2);}});else throw new Error('Can\x27t\x20Found\x20Module\x20'+_0x499ade);}}function globDir(_0x54c07f='.',_0x3b0100=![],_0x2f1b4e=/(?:)/,_0x16ff25){const _0x37ec2a=a8_0x11a32c,_0x2223e1=new RequireContext(_0x54c07f,_0x3b0100,_0x2f1b4e);if(_0x16ff25){const _0x21c6e2=_0x47f4d6=>fs[_0x37ec2a(0x9e)](_0x47f4d6,_0x16ff25);return _0x21c6e2[_0x37ec2a(0xac)]=()=>[..._0x2223e1[_0x37ec2a(0xba)]],_0x21c6e2;}else{const _0x499730=_0x28b684=>require(_0x28b684);return _0x499730[_0x37ec2a(0xac)]=()=>[..._0x2223e1[_0x37ec2a(0xba)]],_0x499730;}}function a8_0xfe85(){const _0x43b530=['filename','2knOypN','113597oADPMQ','12bOYBfP','190uMDCAk','keys','384snTwmG','normalize','statSync','10724rSdbxH','__findDirectory','456591fdygLw','parse','test','32748fqMdpW','710696shVgZv','3546499LMgCkQ','existsSync','isAbsolute','modules','push','8530Xazhkk','parent','defineProperty','__findModules','readFileSync','useSubdirectories','regExp','join','globDir','resolve','readdirSync','1584mfGlyn','directory'];a8_0xfe85=function(){return _0x43b530;};return a8_0xfe85();}exports[a8_0x11a32c(0xa2)]=globDir;
|
package/dist/helper/include.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const a9_0x486ea5=a9_0x3aaa;function a9_0x1163(){const _0x4e6e7d=['jiti','6081852PEjDDZ','lodash','257325dZiqjv','defineProperty','__esModule','314084uafJDv','default','24YjjWSN','defaultsDeep','3DsqVEo','3421228XKxAko','17149MJUPbS','include','18730PEZHZJ','3420090mQbzPI','6lcdEQp','4223136jgXbEc'];a9_0x1163=function(){return _0x4e6e7d;};return a9_0x1163();}(function(_0x5b701d,_0x477123){const _0x4bbb80=a9_0x3aaa,_0x3bd328=_0x5b701d();while(!![]){try{const _0x2e7cbc=parseInt(_0x4bbb80(0xcf))/0x1*(-parseInt(_0x4bbb80(0xd9))/0x2)+parseInt(_0x4bbb80(0xd3))/0x3*(-parseInt(_0x4bbb80(0xd4))/0x4)+parseInt(_0x4bbb80(0xde))/0x5+-parseInt(_0x4bbb80(0xda))/0x6+-parseInt(_0x4bbb80(0xdc))/0x7+parseInt(_0x4bbb80(0xd1))/0x8*(parseInt(_0x4bbb80(0xd8))/0x9)+-parseInt(_0x4bbb80(0xd7))/0xa*(-parseInt(_0x4bbb80(0xd5))/0xb);if(_0x2e7cbc===_0x477123)break;else _0x3bd328['push'](_0x3bd328['shift']());}catch(_0x4dee5a){_0x3bd328['push'](_0x3bd328['shift']());}}}(a9_0x1163,0xb4f83));Object[a9_0x486ea5(0xcd)](exports,a9_0x486ea5(0xce),{'value':!![]}),exports[a9_0x486ea5(0xd6)]=void 0x0;const jiti=require(a9_0x486ea5(0xdb)),lodash_1=require(a9_0x486ea5(0xdd));function a9_0x3aaa(_0x361f5b,_0x1927ad){const _0x116321=a9_0x1163();return a9_0x3aaa=function(_0x3aaa77,_0x471f2d){_0x3aaa77=_0x3aaa77-0xcd;let _0x282fa3=_0x116321[_0x3aaa77];return _0x282fa3;},a9_0x3aaa(_0x361f5b,_0x1927ad);}function include(_0x168a67){const _0x569306=a9_0x486ea5,_0x292edf={},_0x3d40eb=jiti()(_0x168a67);for(let _0x26a137 in _0x3d40eb){_0x26a137!=_0x569306(0xd0)&&(0x0,lodash_1[_0x569306(0xd2)])(_0x292edf,{[_0x26a137]:_0x3d40eb[_0x26a137]});}return(0x0,lodash_1[_0x569306(0xd2)])(_0x292edf,(0x0,lodash_1['get'])(_0x3d40eb,_0x569306(0xd0),{}));}exports[a9_0x486ea5(0xd6)]=include;
|
package/dist/helper/sleep.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';function a10_0xfcac(_0x33019c,_0x27d54e){var _0xf65b33=a10_0xf65b();return a10_0xfcac=function(_0xfcacdb,_0x14cd49){_0xfcacdb=_0xfcacdb-0x161;var _0x57829a=_0xf65b33[_0xfcacdb];return _0x57829a;},a10_0xfcac(_0x33019c,_0x27d54e);}var a10_0x4e73b4=a10_0xfcac;(function(_0x1e72b7,_0x37005d){var _0x2108d7=a10_0xfcac,_0x34ceb0=_0x1e72b7();while(!![]){try{var _0x95dff4=-parseInt(_0x2108d7(0x168))/0x1*(parseInt(_0x2108d7(0x16a))/0x2)+parseInt(_0x2108d7(0x165))/0x3*(-parseInt(_0x2108d7(0x167))/0x4)+parseInt(_0x2108d7(0x16b))/0x5*(-parseInt(_0x2108d7(0x166))/0x6)+-parseInt(_0x2108d7(0x161))/0x7+-parseInt(_0x2108d7(0x162))/0x8+parseInt(_0x2108d7(0x164))/0x9+-parseInt(_0x2108d7(0x169))/0xa*(-parseInt(_0x2108d7(0x16c))/0xb);if(_0x95dff4===_0x37005d)break;else _0x34ceb0['push'](_0x34ceb0['shift']());}catch(_0x433148){_0x34ceb0['push'](_0x34ceb0['shift']());}}}(a10_0xf65b,0x461dc));function a10_0xf65b(){var _0x17a379=['2736713SpcMun','4433912goiDvh','sleep','3104415WjkoYS','323079puLoqo','889908griCxW','20cHFlpA','7qqluOP','7197470CRoDTR','124766tzKflm','10ssXQFe','33sgqZcb'];a10_0xf65b=function(){return _0x17a379;};return a10_0xf65b();}Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['sleep']=void 0x0;function sleep(_0xabea56=0xc8){return new Promise(_0x12bddc=>setTimeout(_0x12bddc,_0xabea56));}exports[a10_0x4e73b4(0x163)]=sleep;
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function a11_0x59c3(){const _0x41c3b3=['78DKkmph','AnnError','getAnnErrorMsg','lodash','738630BgPcto','5TvDhbx','1908558jltZgl','default','base64_decode','Configuration','mathjs','fileMd5','./helper/include','fsplus','./helper/sleep','getAnnEnumMap','getAnnEnumArray','1174145gFsOpB','AES128_encode','getAnnEnumList','AnnEnumMsg','defineProperty','AnnErrorMsg','include','fs-extra','978740JSNeZK','CustomConfiguration','6015QDNuAs','./decorator/AnnEnumMsg','113712KbKcTO','__esModule','getAnnEnumMsg','./helper/globDir','md5','AES128_decode','urllib','AnnErrorRender','./helper/fileMd5','collect','dayjs','sleep','base64_encode','globDir','8900361itZvmb','getAnnErrorList','axios'];a11_0x59c3=function(){return _0x41c3b3;};return a11_0x59c3();}const a11_0x24fa49=a11_0x4827;(function(_0x5e3c38,_0x49c87b){const _0x533661=a11_0x4827,_0x44af4a=_0x5e3c38();while(!![]){try{const _0x40c930=-parseInt(_0x533661(0x1bf))/0x1*(-parseInt(_0x533661(0x1d2))/0x2)+parseInt(_0x533661(0x1d6))/0x3+parseInt(_0x533661(0x1bd))/0x4+-parseInt(_0x533661(0x1d7))/0x5*(-parseInt(_0x533661(0x1d8))/0x6)+parseInt(_0x533661(0x1b5))/0x7+parseInt(_0x533661(0x1c1))/0x8+-parseInt(_0x533661(0x1cf))/0x9;if(_0x40c930===_0x49c87b)break;else _0x44af4a['push'](_0x44af4a['shift']());}catch(_0x50eb11){_0x44af4a['push'](_0x44af4a['shift']());}}}(a11_0x59c3,0x39c31));Object['defineProperty'](exports,a11_0x24fa49(0x1c2),{'value':!![]}),exports[a11_0x24fa49(0x1c8)]=exports[a11_0x24fa49(0x1d3)]=exports[a11_0x24fa49(0x1d0)]=exports['getAnnErrorMsg']=exports[a11_0x24fa49(0x1ba)]=exports[a11_0x24fa49(0x1b4)]=exports[a11_0x24fa49(0x1b7)]=exports[a11_0x24fa49(0x1b3)]=exports[a11_0x24fa49(0x1c3)]=exports[a11_0x24fa49(0x1b8)]=exports['AES128_decode']=exports[a11_0x24fa49(0x1b6)]=exports[a11_0x24fa49(0x1da)]=exports['base64_encode']=exports['fileMd5']=exports['globDir']=exports[a11_0x24fa49(0x1bb)]=exports['collect']=exports['sleep']=exports[a11_0x24fa49(0x1cb)]=exports['md5']=exports[a11_0x24fa49(0x1d5)]=exports[a11_0x24fa49(0x1dc)]=exports[a11_0x24fa49(0x1df)]=exports[a11_0x24fa49(0x1c7)]=exports[a11_0x24fa49(0x1d1)]=exports[a11_0x24fa49(0x1db)]=void 0x0;const axios_1=require(a11_0x24fa49(0x1d1));exports[a11_0x24fa49(0x1d1)]=axios_1['default'];const dayjs=require('dayjs');exports[a11_0x24fa49(0x1cb)]=dayjs;const urllib=require(a11_0x24fa49(0x1c7));exports[a11_0x24fa49(0x1c7)]=urllib;const mathjs=require('mathjs');exports['mathjs']=mathjs;const lodash=require('lodash');exports[a11_0x24fa49(0x1d5)]=lodash;const fsplus=require(a11_0x24fa49(0x1bc));exports['fsplus']=fsplus;const collect_js_1=require('collect.js');Object[a11_0x24fa49(0x1b9)](exports,a11_0x24fa49(0x1ca),{'enumerable':!![],'get':function(){const _0x52357d=a11_0x24fa49;return collect_js_1[_0x52357d(0x1ca)];}});const sleep_1=require(a11_0x24fa49(0x1b2));Object[a11_0x24fa49(0x1b9)](exports,'sleep',{'enumerable':!![],'get':function(){const _0x3aa1d9=a11_0x24fa49;return sleep_1[_0x3aa1d9(0x1cc)];}});const include_1=require(a11_0x24fa49(0x1de));Object[a11_0x24fa49(0x1b9)](exports,a11_0x24fa49(0x1bb),{'enumerable':!![],'get':function(){return include_1['include'];}});function a11_0x4827(_0x291bcd,_0x156a44){const _0x59c3fe=a11_0x59c3();return a11_0x4827=function(_0x482718,_0x3260d2){_0x482718=_0x482718-0x1b2;let _0x298761=_0x59c3fe[_0x482718];return _0x298761;},a11_0x4827(_0x291bcd,_0x156a44);}const globDir_1=require(a11_0x24fa49(0x1c4));Object['defineProperty'](exports,a11_0x24fa49(0x1ce),{'enumerable':!![],'get':function(){const _0x33e4da=a11_0x24fa49;return globDir_1[_0x33e4da(0x1ce)];}});const fileMd5_1=require(a11_0x24fa49(0x1c9));Object[a11_0x24fa49(0x1b9)](exports,'fileMd5',{'enumerable':!![],'get':function(){const _0x28d3c6=a11_0x24fa49;return fileMd5_1[_0x28d3c6(0x1dd)];}});const AnnError_1=require('./exception/AnnError');Object[a11_0x24fa49(0x1b9)](exports,a11_0x24fa49(0x1d3),{'enumerable':!![],'get':function(){return AnnError_1['AnnError'];}});const common_1=require('./helper/common');Object[a11_0x24fa49(0x1b9)](exports,a11_0x24fa49(0x1c5),{'enumerable':!![],'get':function(){const _0x4d86d7=a11_0x24fa49;return common_1[_0x4d86d7(0x1c5)];}}),Object[a11_0x24fa49(0x1b9)](exports,a11_0x24fa49(0x1cd),{'enumerable':!![],'get':function(){return common_1['base64_encode'];}}),Object['defineProperty'](exports,a11_0x24fa49(0x1da),{'enumerable':!![],'get':function(){return common_1['base64_decode'];}}),Object['defineProperty'](exports,a11_0x24fa49(0x1b6),{'enumerable':!![],'get':function(){const _0x58e280=a11_0x24fa49;return common_1[_0x58e280(0x1b6)];}}),Object['defineProperty'](exports,'AES128_decode',{'enumerable':!![],'get':function(){const _0x491148=a11_0x24fa49;return common_1[_0x491148(0x1c6)];}});const AnnErrorRender_1=require('./exception/AnnErrorRender');Object[a11_0x24fa49(0x1b9)](exports,a11_0x24fa49(0x1c8),{'enumerable':!![],'get':function(){const _0x34180c=a11_0x24fa49;return AnnErrorRender_1[_0x34180c(0x1c8)];}});const AnnErrorMsg_1=require('./decorator/AnnErrorMsg');Object[a11_0x24fa49(0x1b9)](exports,a11_0x24fa49(0x1ba),{'enumerable':!![],'get':function(){const _0x52a508=a11_0x24fa49;return AnnErrorMsg_1[_0x52a508(0x1ba)];}}),Object[a11_0x24fa49(0x1b9)](exports,a11_0x24fa49(0x1d4),{'enumerable':!![],'get':function(){const _0x42bd98=a11_0x24fa49;return AnnErrorMsg_1[_0x42bd98(0x1d4)];}}),Object[a11_0x24fa49(0x1b9)](exports,a11_0x24fa49(0x1d0),{'enumerable':!![],'get':function(){const _0x4b0cc8=a11_0x24fa49;return AnnErrorMsg_1[_0x4b0cc8(0x1d0)];}});const AnnEnumMsg_1=require(a11_0x24fa49(0x1c0));Object['defineProperty'](exports,a11_0x24fa49(0x1b8),{'enumerable':!![],'get':function(){const _0x35a78e=a11_0x24fa49;return AnnEnumMsg_1[_0x35a78e(0x1b8)];}}),Object['defineProperty'](exports,a11_0x24fa49(0x1c3),{'enumerable':!![],'get':function(){return AnnEnumMsg_1['getAnnEnumMsg'];}}),Object[a11_0x24fa49(0x1b9)](exports,a11_0x24fa49(0x1b3),{'enumerable':!![],'get':function(){return AnnEnumMsg_1['getAnnEnumMap'];}}),Object[a11_0x24fa49(0x1b9)](exports,'getAnnEnumList',{'enumerable':!![],'get':function(){const _0x3f7033=a11_0x24fa49;return AnnEnumMsg_1[_0x3f7033(0x1b7)];}}),Object[a11_0x24fa49(0x1b9)](exports,a11_0x24fa49(0x1b4),{'enumerable':!![],'get':function(){const _0x17c6df=a11_0x24fa49;return AnnEnumMsg_1[_0x17c6df(0x1b4)];}});var configuration_1=require('./configuration');Object['defineProperty'](exports,a11_0x24fa49(0x1db),{'enumerable':!![],'get':function(){const _0x43a27e=a11_0x24fa49;return configuration_1[_0x43a27e(0x1be)];}}),(global[a11_0x24fa49(0x1d1)]=axios_1[a11_0x24fa49(0x1d9)],global[a11_0x24fa49(0x1c7)]=urllib),(global[a11_0x24fa49(0x1df)]=fsplus,global[a11_0x24fa49(0x1dc)]=mathjs,global[a11_0x24fa49(0x1d5)]=lodash),(global['dayjs']=dayjs,global['sleep']=sleep_1[a11_0x24fa49(0x1cc)],global['collect']=collect_js_1[a11_0x24fa49(0x1ca)],global[a11_0x24fa49(0x1bb)]=include_1['include'],global[a11_0x24fa49(0x1ce)]=globDir_1[a11_0x24fa49(0x1ce)]),(global[a11_0x24fa49(0x1c5)]=common_1[a11_0x24fa49(0x1c5)],global[a11_0x24fa49(0x1dd)]=fileMd5_1['fileMd5'],global['base64_encode']=common_1[a11_0x24fa49(0x1cd)],global[a11_0x24fa49(0x1da)]=common_1[a11_0x24fa49(0x1da)],global[a11_0x24fa49(0x1b6)]=common_1['AES128_encode'],global[a11_0x24fa49(0x1c6)]=common_1[a11_0x24fa49(0x1c6)]),(global[a11_0x24fa49(0x1b8)]=AnnEnumMsg_1[a11_0x24fa49(0x1b8)],global[a11_0x24fa49(0x1c3)]=AnnEnumMsg_1['getAnnEnumMsg'],global[a11_0x24fa49(0x1b3)]=AnnEnumMsg_1['getAnnEnumMap'],global[a11_0x24fa49(0x1b7)]=AnnEnumMsg_1[a11_0x24fa49(0x1b7)],global[a11_0x24fa49(0x1b4)]=AnnEnumMsg_1['getAnnEnumArray']),(global[a11_0x24fa49(0x1ba)]=AnnErrorMsg_1['AnnErrorMsg'],global[a11_0x24fa49(0x1d4)]=AnnErrorMsg_1[a11_0x24fa49(0x1d4)],global['getAnnErrorList']=AnnErrorMsg_1[a11_0x24fa49(0x1d0)],global[a11_0x24fa49(0x1d3)]=AnnError_1[a11_0x24fa49(0x1d3)],global[a11_0x24fa49(0x1c8)]=AnnErrorRender_1[a11_0x24fa49(0x1c8)]);
|
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
|
-
export class AnnErrorRender extends AnnError {
|
|
81
|
-
constructor(code: number,
|
|
79
|
+
export abstract class AnnErrorRender extends AnnError {
|
|
80
|
+
constructor(code: number, response?: {
|
|
82
81
|
[key: string]: any;
|
|
83
82
|
});
|
|
84
|
-
render(ctx: any, app: any): Promise<void>;
|
|
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.19",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"typings": "index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -42,5 +42,5 @@
|
|
|
42
42
|
"javascript-obfuscator": "2.19.0",
|
|
43
43
|
"typescript": "^4.8.4"
|
|
44
44
|
},
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "6626f1fea1b3099e8725707af1269cac57691ce6"
|
|
46
46
|
}
|