@anveroapi/core 0.0.0-stage → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/config/config.default.d.ts +2 -0
- package/dist/config/config.default.js +1 -0
- package/dist/configuration.d.ts +7 -0
- package/dist/configuration.js +1 -0
- package/dist/decorator/AnnEnumMsg.d.ts +16 -0
- package/dist/decorator/AnnEnumMsg.js +1 -0
- package/dist/decorator/AnnErrorMsg.d.ts +8 -0
- package/dist/decorator/AnnErrorMsg.js +1 -0
- package/dist/decorator/AroundMiddle.d.ts +9 -0
- package/dist/decorator/AroundMiddle.js +1 -0
- package/dist/exception/AnnError.d.ts +15 -0
- package/dist/exception/AnnError.js +1 -0
- package/dist/exception/AnnErrorRender.d.ts +5 -0
- package/dist/exception/AnnErrorRender.js +1 -0
- package/dist/helper/aesFun.d.ts +15 -0
- package/dist/helper/aesFun.js +1 -0
- package/dist/helper/base64Fun.d.ts +2 -0
- package/dist/helper/base64Fun.js +1 -0
- package/dist/helper/common.d.ts +4 -0
- package/dist/helper/common.js +1 -0
- package/dist/helper/desFun.d.ts +6 -0
- package/dist/helper/desFun.js +1 -0
- package/dist/helper/fileMd5.d.ts +6 -0
- package/dist/helper/fileMd5.js +1 -0
- package/dist/helper/globDir.d.ts +7 -0
- package/dist/helper/globDir.js +1 -0
- package/dist/helper/hideSensitive.d.ts +8 -0
- package/dist/helper/hideSensitive.js +1 -0
- package/dist/helper/include.d.ts +3 -0
- package/dist/helper/include.js +1 -0
- package/dist/helper/jsonFun.d.ts +2 -0
- package/dist/helper/jsonFun.js +1 -0
- package/dist/helper/mathFun.d.ts +1 -0
- package/dist/helper/mathFun.js +1 -0
- package/dist/helper/sleep.d.ts +1 -0
- package/dist/helper/sleep.js +1 -0
- package/dist/helper/xmlFun.d.ts +7 -0
- package/dist/helper/xmlFun.js +1 -0
- package/dist/index.d.ts +32 -0
- package/dist/index.js +1 -0
- package/index.d.ts +138 -0
- package/package.json +47 -6
- package/README.md +0 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var a0_0x5d3b6c=a0_0x439b;(function(_0x118435,_0x5cbbc1){var _0x573272=a0_0x439b,_0x1fc977=_0x118435();while(!![]){try{var _0x1a4f79=parseInt(_0x573272(0x148))/0x1*(parseInt(_0x573272(0x146))/0x2)+-parseInt(_0x573272(0x145))/0x3+parseInt(_0x573272(0x13b))/0x4*(-parseInt(_0x573272(0x143))/0x5)+parseInt(_0x573272(0x147))/0x6*(-parseInt(_0x573272(0x149))/0x7)+parseInt(_0x573272(0x14a))/0x8*(parseInt(_0x573272(0x144))/0x9)+parseInt(_0x573272(0x140))/0xa*(-parseInt(_0x573272(0x14d))/0xb)+-parseInt(_0x573272(0x13e))/0xc*(-parseInt(_0x573272(0x141))/0xd);if(_0x1a4f79===_0x5cbbc1)break;else _0x1fc977['push'](_0x1fc977['shift']());}catch(_0x86da0a){_0x1fc977['push'](_0x1fc977['shift']());}}}(a0_0x50b0,0x775e1));function a0_0x50b0(){var _0x5c09a6=['constructor','24325356YJJyUf','apply','3370XHbGeR','13alPYsU','default','55wdsmvg','300852rPPgii','2252961vKKUjC','4WuRXPG','309762fZGIGn','122029yhkKcY','91ekzjyg','168yRAhTG','(((.+)+)+)+$','search','28017pXSzMt','toString','defineProperty','74092LmNARL','__esModule'];a0_0x50b0=function(){return _0x5c09a6;};return a0_0x50b0();}var a0_0x59f69d=(function(){var _0x24709c=!![];return function(_0x5a9fed,_0x2b8e92){var _0x1c92ce=_0x24709c?function(){var _0x3fcb77=a0_0x439b;if(_0x2b8e92){var _0xcd0563=_0x2b8e92[_0x3fcb77(0x13f)](_0x5a9fed,arguments);return _0x2b8e92=null,_0xcd0563;}}:function(){};return _0x24709c=![],_0x1c92ce;};}()),a0_0xbf3ec0=a0_0x59f69d(this,function(){var _0x137f92=a0_0x439b;return a0_0xbf3ec0['toString']()[_0x137f92(0x14c)](_0x137f92(0x14b))[_0x137f92(0x14e)]()[_0x137f92(0x13d)](a0_0xbf3ec0)['search']('(((.+)+)+)+$');});a0_0xbf3ec0();'use strict';function a0_0x439b(_0x33053b,_0x445854){_0x33053b=_0x33053b-0x13b;var _0x50f5fe=a0_0x50b0();var _0xbf3ec0=_0x50f5fe[_0x33053b];return _0xbf3ec0;}Object[a0_0x5d3b6c(0x14f)](exports,a0_0x5d3b6c(0x13c),{'value':!![]}),exports[a0_0x5d3b6c(0x142)]=_0x29135a=>{return{};};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { IMidwayContainer } from '@midwayjs/core';
|
|
2
|
+
import { MidwayApplicationManager, MidwayEnvironmentService } from '@midwayjs/core';
|
|
3
|
+
export declare class CustomConfiguration {
|
|
4
|
+
application: MidwayApplicationManager;
|
|
5
|
+
environment: MidwayEnvironmentService;
|
|
6
|
+
onReady(container: IMidwayContainer): Promise<void>;
|
|
7
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const a1_0x2b5d4f=a1_0x2708;(function(_0xfa3ce,_0x43eb58){const _0x2a4705=a1_0x2708,_0x388215=_0xfa3ce();while(!![]){try{const _0x1cfe32=parseInt(_0x2a4705(0x102))/0x1*(-parseInt(_0x2a4705(0x11c))/0x2)+-parseInt(_0x2a4705(0xfe))/0x3+-parseInt(_0x2a4705(0x12a))/0x4+-parseInt(_0x2a4705(0x100))/0x5+parseInt(_0x2a4705(0x116))/0x6+-parseInt(_0x2a4705(0x115))/0x7+parseInt(_0x2a4705(0x113))/0x8;if(_0x1cfe32===_0x43eb58)break;else _0x388215['push'](_0x388215['shift']());}catch(_0x4a1a32){_0x388215['push'](_0x388215['shift']());}}}(a1_0x16eb,0x51ef6));const a1_0x3402b7=(function(){let _0x25b0e4=!![];return function(_0x572ee4,_0x3eef12){const _0x45cab0=_0x25b0e4?function(){if(_0x3eef12){const _0x3f8a1f=_0x3eef12['apply'](_0x572ee4,arguments);return _0x3eef12=null,_0x3f8a1f;}}:function(){};return _0x25b0e4=![],_0x45cab0;};}()),a1_0x589b62=a1_0x3402b7(this,function(){const _0x3d0a37=a1_0x2708;return a1_0x589b62[_0x3d0a37(0x128)]()[_0x3d0a37(0x11d)]('(((.+)+)+)+$')['toString']()[_0x3d0a37(0x10b)](a1_0x589b62)[_0x3d0a37(0x11d)](_0x3d0a37(0xf0));});a1_0x589b62();'use strict';function a1_0x2708(_0x3de64e,_0x1ed55b){_0x3de64e=_0x3de64e-0xe1;const _0x299b24=a1_0x16eb();let _0x589b62=_0x299b24[_0x3de64e];return _0x589b62;}var __decorate=this&&this['__decorate']||function(_0x171b27,_0x4b8a0b,_0x548d28,_0x16bfde){const _0x635171=a1_0x2708;var _0x557809=arguments['length'],_0x58dfbe=_0x557809<0x3?_0x4b8a0b:_0x16bfde===null?_0x16bfde=Object[_0x635171(0xf4)](_0x4b8a0b,_0x548d28):_0x16bfde,_0x4b933b;if(typeof Reflect==='object'&&typeof Reflect[_0x635171(0x104)]===_0x635171(0x127))_0x58dfbe=Reflect[_0x635171(0x104)](_0x171b27,_0x4b8a0b,_0x548d28,_0x16bfde);else{for(var _0x52167f=_0x171b27[_0x635171(0x106)]-0x1;_0x52167f>=0x0;_0x52167f--)if(_0x4b933b=_0x171b27[_0x52167f])_0x58dfbe=(_0x557809<0x3?_0x4b933b(_0x58dfbe):_0x557809>0x3?_0x4b933b(_0x4b8a0b,_0x548d28,_0x58dfbe):_0x4b933b(_0x4b8a0b,_0x548d28))||_0x58dfbe;}return _0x557809>0x3&&_0x58dfbe&&Object[_0x635171(0xf3)](_0x4b8a0b,_0x548d28,_0x58dfbe),_0x58dfbe;},__metadata=this&&this[a1_0x2b5d4f(0xf2)]||function(_0x4ccd19,_0x56ac0b){const _0x41c8a8=a1_0x2b5d4f;if(typeof Reflect===_0x41c8a8(0xed)&&typeof Reflect[_0x41c8a8(0xe8)]===_0x41c8a8(0x127))return Reflect[_0x41c8a8(0xe8)](_0x4ccd19,_0x56ac0b);};Object[a1_0x2b5d4f(0xf3)](exports,a1_0x2b5d4f(0xf8),{'value':!![]}),exports[a1_0x2b5d4f(0x101)]=void 0x0;const core_1=require(a1_0x2b5d4f(0x103)),core_2=require('@midwayjs/core'),core_3=require(a1_0x2b5d4f(0x103)),i18n=require(a1_0x2b5d4f(0xfa)),ConfigDefault=require(a1_0x2b5d4f(0xef)),AnnError_1=require(a1_0x2b5d4f(0x105)),AnnErrorRender_1=require(a1_0x2b5d4f(0x11f)),AroundMiddle_1=require('./decorator/AroundMiddle');let CustomConfiguration=class CustomConfiguration{async[a1_0x2b5d4f(0x121)](_0x885fda){const _0xb2ee5c=a1_0x2b5d4f,_0x1ad309=((0x0,core_2[_0xb2ee5c(0x11a)])(AroundMiddle_1[_0xb2ee5c(0xe5)],AroundMiddle_1[_0xb2ee5c(0x109)])||[])[_0xb2ee5c(0xf9)](_0x14b594=>core_1[_0xb2ee5c(0xec)][_0xb2ee5c(0xe7)](_0x14b594));this[_0xb2ee5c(0x129)]['getApplications']([_0xb2ee5c(0x11e),_0xb2ee5c(0x11b),_0xb2ee5c(0x112),_0xb2ee5c(0x107)])[_0xb2ee5c(0xe1)](_0x5568bc=>{const _0x2533d8=_0xb2ee5c;_0x5568bc[_0x2533d8(0x111)](async(_0x31cbbf,_0x5385f2)=>{const _0x510d44=_0x2533d8;var _0x39c0ac,_0x25cafb,_0x190e8e,_0x2ec292;const _0x1a7d06=[];for(const _0x3efee5 of _0x1ad309||[]){const _0x3d59c4=await _0x31cbbf[_0x510d44(0x108)][_0x510d44(0xeb)](_0x3efee5);if(typeof(_0x3d59c4===null||_0x3d59c4===void 0x0?void 0x0:_0x3d59c4[_0x510d44(0xe6)])==_0x510d44(0xe4))_0x1a7d06[_0x510d44(0xe3)](_0x3d59c4);else typeof(_0x3d59c4===null||_0x3d59c4===void 0x0?void 0x0:_0x3d59c4['match'])=='function'&&await _0x3d59c4[_0x510d44(0xe6)](_0x31cbbf)&&_0x1a7d06[_0x510d44(0xe3)](_0x3d59c4);}try{await Promise[_0x510d44(0xf5)](_0x1a7d06[_0x510d44(0x126)](async _0x190f39=>{const _0x373dd3=_0x510d44;typeof(_0x190f39===null||_0x190f39===void 0x0?void 0x0:_0x190f39[_0x373dd3(0x124)])==_0x373dd3(0x127)&&(typeof(_0x190f39===null||_0x190f39===void 0x0?void 0x0:_0x190f39[_0x373dd3(0xe6)])=='undefined'||await _0x190f39[_0x373dd3(0xe6)](_0x31cbbf))&&await _0x190f39[_0x373dd3(0x124)](_0x31cbbf);})),await _0x5385f2(),await Promise[_0x510d44(0xf5)](_0x1a7d06[_0x510d44(0x126)](async _0x2a9bb1=>{const _0x2fa5c6=_0x510d44;typeof(_0x2a9bb1===null||_0x2a9bb1===void 0x0?void 0x0:_0x2a9bb1['resolveAfter'])==_0x2fa5c6(0x127)&&(typeof(_0x2a9bb1===null||_0x2a9bb1===void 0x0?void 0x0:_0x2a9bb1[_0x2fa5c6(0xe6)])==_0x2fa5c6(0xe4)||await _0x2a9bb1[_0x2fa5c6(0xe6)](_0x31cbbf))&&await _0x2a9bb1[_0x2fa5c6(0xff)](_0x31cbbf)[_0x2fa5c6(0x10e)](_0x483e55=>{const _0x4c638f=_0x2fa5c6;var _0x597177;(_0x597177=_0x31cbbf===null||_0x31cbbf===void 0x0?void 0x0:_0x31cbbf['logger'])===null||_0x597177===void 0x0?void 0x0:_0x597177[_0x4c638f(0x110)](_0x483e55);});})),(_0x1a7d06===null||_0x1a7d06===void 0x0?void 0x0:_0x1a7d06['length'])>0x0&&_0x1a7d06['splice'](0x0,_0x1a7d06[_0x510d44(0x106)]);}catch(_0x449955){if(_0x449955 instanceof AnnErrorRender_1[_0x510d44(0x122)])await _0x449955[_0x510d44(0x12c)](_0x31cbbf,_0x885fda,_0x5568bc);else{if(_0x449955 instanceof AnnError_1[_0x510d44(0xe2)]){const _0x345803=_0x449955['response']||{'code':_0x449955['code']};!(_0x345803===null||_0x345803===void 0x0?void 0x0:_0x345803[_0x510d44(0x120)])&&typeof(_0x449955===null||_0x449955===void 0x0?void 0x0:_0x449955[_0x510d44(0x120)])!=_0x510d44(0xe4)&&(_0x345803[_0x510d44(0x120)]=_0x449955[_0x510d44(0x120)]),!(_0x345803===null||_0x345803===void 0x0?void 0x0:_0x345803[_0x510d44(0xfd)])&&typeof(_0x449955===null||_0x449955===void 0x0?void 0x0:_0x449955[_0x510d44(0xfd)])!=_0x510d44(0xe4)&&(_0x345803[_0x510d44(0xfd)]=_0x449955[_0x510d44(0xfd)]),this[_0x510d44(0x12e)][_0x510d44(0x123)]()==_0x510d44(0x10d)?(!_0x345803[_0x510d44(0x110)]&&(_0x345803[_0x510d44(0x110)]={}),!((_0x39c0ac=_0x345803===null||_0x345803===void 0x0?void 0x0:_0x345803['error'])===null||_0x39c0ac===void 0x0?void 0x0:_0x39c0ac[_0x510d44(0xfd)])&&(_0x449955===null||_0x449955===void 0x0?void 0x0:_0x449955[_0x510d44(0xfd)])&&(_0x345803['error']['message']=_0x449955[_0x510d44(0xfd)]),!((_0x25cafb=_0x345803===null||_0x345803===void 0x0?void 0x0:_0x345803[_0x510d44(0x110)])===null||_0x25cafb===void 0x0?void 0x0:_0x25cafb[_0x510d44(0x10f)])&&(_0x449955===null||_0x449955===void 0x0?void 0x0:_0x449955[_0x510d44(0x10f)])&&(_0x345803[_0x510d44(0x110)][_0x510d44(0x10f)]=_0x449955[_0x510d44(0x10f)][_0x510d44(0xfb)]('\x20at\x20'))):delete _0x345803[_0x510d44(0x110)],_0x31cbbf[_0x510d44(0xf7)]=_0x345803;}else{if(_0x449955 instanceof core_3[_0x510d44(0x114)]['NotFoundError']){}else{if(_0x449955 instanceof Error){_0x31cbbf[_0x510d44(0xf7)]={'code':AnnError_1['AnnError'][_0x510d44(0x118)],'message':_0x510d44(0xf6)};_0x449955 instanceof core_3[_0x510d44(0xea)]&&(_0x31cbbf[_0x510d44(0xf7)]={'code':AnnError_1[_0x510d44(0xe2)]['_UNKNOW_'],'message':'当前环境不支持此操作'});if(this[_0x510d44(0x12e)][_0x510d44(0x12d)]())console[_0x510d44(0x110)](_0x449955);else typeof((_0x190e8e=_0x31cbbf===null||_0x31cbbf===void 0x0?void 0x0:_0x31cbbf['logger'])===null||_0x190e8e===void 0x0?void 0x0:_0x190e8e['error'])=='function'&&(_0x449955[_0x510d44(0x10a)]=(_0x31cbbf===null||_0x31cbbf===void 0x0?void 0x0:_0x31cbbf[_0x510d44(0x10c)])||'',_0x449955[_0x510d44(0x119)]=(_0x31cbbf===null||_0x31cbbf===void 0x0?void 0x0:_0x31cbbf[_0x510d44(0x119)])||{},(_0x2ec292=_0x31cbbf===null||_0x31cbbf===void 0x0?void 0x0:_0x31cbbf[_0x510d44(0xee)])===null||_0x2ec292===void 0x0?void 0x0:_0x2ec292[_0x510d44(0x110)](_0x449955));}}}}return await Promise[_0x510d44(0xf5)](_0x1a7d06[_0x510d44(0x126)](async _0x47cd8a=>{const _0x4e104f=_0x510d44;typeof(_0x47cd8a===null||_0x47cd8a===void 0x0?void 0x0:_0x47cd8a[_0x4e104f(0xff)])=='function'&&(typeof(_0x47cd8a===null||_0x47cd8a===void 0x0?void 0x0:_0x47cd8a[_0x4e104f(0xe6)])==_0x4e104f(0xe4)||await _0x47cd8a['match'](_0x31cbbf))&&await _0x47cd8a[_0x4e104f(0xff)](_0x31cbbf)[_0x4e104f(0x10e)](_0x4f0842=>{const _0x5c596e=_0x4e104f;var _0xebaef3;(_0xebaef3=_0x31cbbf===null||_0x31cbbf===void 0x0?void 0x0:_0x31cbbf[_0x5c596e(0xee)])===null||_0xebaef3===void 0x0?void 0x0:_0xebaef3['error'](_0x4f0842);});})),(_0x1a7d06===null||_0x1a7d06===void 0x0?void 0x0:_0x1a7d06[_0x510d44(0x106)])>0x0&&_0x1a7d06['splice'](0x0,_0x1a7d06['length']),_0x31cbbf[_0x510d44(0xf7)];}});});}};function a1_0x16eb(){const _0x481bce=['defineProperty','getOwnPropertyDescriptor','all','服务器异常','body','__esModule','filter','@midwayjs/i18n','split','Configuration','message','1383504IMHjOF','resolveAfter','624560ZYjaFl','CustomConfiguration','4297DqBALU','@midwayjs/core','decorate','./exception/AnnError','length','egg','requestContext','AroundMiddleTargetTmp','matched','constructor','_matchedRoute','local','catch','stack','error','useMiddleware','express','17988048KMPUEF','httpError','2921212ePtrzb','1131798hXJCww','anvero-api:core','_UNKNOW_','request','getClassMetadata','faas','258yKkslF','search','koa','./exception/AnnErrorRender','code','onReady','AnnErrorRender','getCurrentEnvironment','resolveBefor','Inject','map','function','toString','application','2175296yyEBpR','MidwayEnvironmentService','render','isDevelopmentEnvironment','environment','forEach','AnnError','push','undefined','AROUNDMIDDLE_KEY','match','isClass','metadata','design:type','MidwayDefinitionNotFoundError','getAsync','Types','object','logger','./config/config.default','(((.+)+)+)+$','prototype','__metadata'];a1_0x16eb=function(){return _0x481bce;};return a1_0x16eb();}exports[a1_0x2b5d4f(0x101)]=CustomConfiguration,__decorate([(0x0,core_1[a1_0x2b5d4f(0x125)])(),__metadata('design:type',core_3['MidwayApplicationManager'])],CustomConfiguration[a1_0x2b5d4f(0xf1)],a1_0x2b5d4f(0x129),void 0x0),__decorate([(0x0,core_1[a1_0x2b5d4f(0x125)])(),__metadata(a1_0x2b5d4f(0xe9),core_3[a1_0x2b5d4f(0x12b)])],CustomConfiguration[a1_0x2b5d4f(0xf1)],a1_0x2b5d4f(0x12e),void 0x0),exports[a1_0x2b5d4f(0x101)]=CustomConfiguration=__decorate([(0x0,core_1[a1_0x2b5d4f(0xfc)])({'namespace':a1_0x2b5d4f(0x117),'conflictCheck':![],'imports':[i18n],'importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration);
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare function AnnEnumMsg(field: string, message: string, meta?: {
|
|
2
|
+
[key: string]: any;
|
|
3
|
+
}): PropertyDecorator;
|
|
4
|
+
export declare function getAnnEnumMsg(target: any, field: string, code: number | string): string;
|
|
5
|
+
export declare function getAnnEnumMeta(target: any, field: string, code: number | string, path?: string): any;
|
|
6
|
+
export declare function getAnnEnumMap(target: any, field: string): {
|
|
7
|
+
[key: string]: string | number;
|
|
8
|
+
};
|
|
9
|
+
export declare function getAnnEnumList(target: any, field: string, hasMeta?: boolean): {
|
|
10
|
+
label: string;
|
|
11
|
+
value: number | string;
|
|
12
|
+
meta?: {
|
|
13
|
+
[key: string]: any;
|
|
14
|
+
};
|
|
15
|
+
}[];
|
|
16
|
+
export declare function getAnnEnumArray(target: any, field: string, filters?: Array<number | string>): (string | number)[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const a2_0x655c67=a2_0x13c1;(function(_0x37f1b9,_0x238bae){const _0x29af97=a2_0x13c1,_0x1076a5=_0x37f1b9();while(!![]){try{const _0x516ff9=parseInt(_0x29af97(0xda))/0x1*(-parseInt(_0x29af97(0xef))/0x2)+-parseInt(_0x29af97(0xe4))/0x3*(-parseInt(_0x29af97(0xed))/0x4)+parseInt(_0x29af97(0xd3))/0x5+parseInt(_0x29af97(0xe3))/0x6+-parseInt(_0x29af97(0xe1))/0x7*(parseInt(_0x29af97(0xce))/0x8)+parseInt(_0x29af97(0xee))/0x9*(parseInt(_0x29af97(0xd6))/0xa)+-parseInt(_0x29af97(0xde))/0xb;if(_0x516ff9===_0x238bae)break;else _0x1076a5['push'](_0x1076a5['shift']());}catch(_0x38f398){_0x1076a5['push'](_0x1076a5['shift']());}}}(a2_0x4d2d,0x2fc5e));const a2_0x7f242d=(function(){let _0x10fc4b=!![];return function(_0x340d4f,_0x544d3a){const _0x565baa=_0x10fc4b?function(){const _0xa4886d=a2_0x13c1;if(_0x544d3a){const _0x56976c=_0x544d3a[_0xa4886d(0xea)](_0x340d4f,arguments);return _0x544d3a=null,_0x56976c;}}:function(){};return _0x10fc4b=![],_0x565baa;};}()),a2_0x58513a=a2_0x7f242d(this,function(){const _0x2ebf8d=a2_0x13c1;return a2_0x58513a['toString']()[_0x2ebf8d(0xe2)](_0x2ebf8d(0xdc))['toString']()[_0x2ebf8d(0xec)](a2_0x58513a)[_0x2ebf8d(0xe2)](_0x2ebf8d(0xdc));});a2_0x58513a();function a2_0x4d2d(){const _0xac6a9d=['targetCode','__esModule','apply','getAnnEnumMeta','constructor','24MIjwGm','9ywLGai','18586HsaLNh','AnnEnumMsg:\x20','312bMVDul',')must\x20be\x20\x27static\x20readonly\x20','indexOf','targetMsg','\x20Property(','963120pvyyjx','push','saveClassMetadata','912760mgqHSO','undefined','\x20=\x20number\x20|\x20string;','getAnnEnumMap','20BQtqJt','targetMeta','(((.+)+)+)+$','name','2369202JNnytw','defineProperty','getAnnEnumArray','24430XDczyY','search','588024IEjept','175563dnUfwo','@midwayjs/core','getAnnEnumList','getClassMetadata'];a2_0x4d2d=function(){return _0xac6a9d;};return a2_0x4d2d();}'use strict';Object[a2_0x655c67(0xdf)](exports,a2_0x655c67(0xe9),{'value':!![]}),exports['AnnEnumMsg']=AnnEnumMsg,exports['getAnnEnumMsg']=getAnnEnumMsg,exports[a2_0x655c67(0xeb)]=getAnnEnumMeta,exports[a2_0x655c67(0xd9)]=getAnnEnumMap,exports[a2_0x655c67(0xe6)]=getAnnEnumList,exports[a2_0x655c67(0xe0)]=getAnnEnumArray;const lodash=require('lodash'),core_1=require(a2_0x655c67(0xe5)),ANN_ENUM='ann:enum';function AnnEnumMsg(_0x1777c4,_0x4e7014,_0x360a66){return(_0x5bb1ba,_0x17a20e)=>{const _0x1e02a0=a2_0x13c1;var _0xa504bb;const _0x51face=_0x5bb1ba===null||_0x5bb1ba===void 0x0?void 0x0:_0x5bb1ba[_0x17a20e],_0x58844f=(0x0,core_1[_0x1e02a0(0xe7)])(ANN_ENUM,_0x5bb1ba)||{};if(typeof _0x51face=='undefined'||_0x51face===null)throw new Error(((_0x5bb1ba===null||_0x5bb1ba===void 0x0?void 0x0:_0x5bb1ba[_0x1e02a0(0xdd)])||_0x5bb1ba)+_0x1e02a0(0xd2)+_0x17a20e+_0x1e02a0(0xcf)+_0x17a20e+_0x1e02a0(0xd8));if(typeof((_0xa504bb=_0x58844f===null||_0x58844f===void 0x0?void 0x0:_0x58844f[_0x1777c4])===null||_0xa504bb===void 0x0?void 0x0:_0xa504bb[_0x51face])!==_0x1e02a0(0xd7))throw new Error(_0x1e02a0(0xcd)+_0x4e7014+'('+_0x1777c4+':'+_0x51face+')\x20is\x20duplicated,please\x20check\x20before\x20adding');!(_0x58844f===null||_0x58844f===void 0x0?void 0x0:_0x58844f[_0x1777c4])&&(_0x58844f[_0x1777c4]={}),_0x58844f[_0x1777c4][_0x51face]={'targetKey':_0x17a20e,'targetMsg':_0x4e7014,'targetCode':_0x51face,'targetMeta':_0x360a66||{}},(0x0,core_1[_0x1e02a0(0xd5)])(ANN_ENUM,_0x58844f,_0x5bb1ba);};}function a2_0x13c1(_0x3284fc,_0x243e7d){_0x3284fc=_0x3284fc-0xcd;const _0x418c38=a2_0x4d2d();let _0x58513a=_0x418c38[_0x3284fc];return _0x58513a;}function getAnnEnumMsg(_0x4d6ebd,_0x591c62,_0x50a41c){const _0xc260b9=a2_0x655c67;var _0x44a2cf;const _0x18babe=(0x0,core_1[_0xc260b9(0xe7)])(ANN_ENUM,_0x4d6ebd)||{};if(typeof _0x50a41c=='undefined'||_0x50a41c===null)return'';return((_0x44a2cf=_0x18babe[_0x591c62][_0x50a41c])===null||_0x44a2cf===void 0x0?void 0x0:_0x44a2cf[_0xc260b9(0xd1)])||'';}function getAnnEnumMeta(_0x457dce,_0x19ddc5,_0x14ec05,_0x2cc1b9){const _0x3c16da=a2_0x655c67;var _0x5d9aef,_0x58a70e;const _0x4bdb0f=(0x0,core_1[_0x3c16da(0xe7)])(ANN_ENUM,_0x457dce)||{};if(typeof _0x14ec05==_0x3c16da(0xd7)||_0x14ec05===null)return'';if(_0x2cc1b9)return lodash['get'](((_0x5d9aef=_0x4bdb0f[_0x19ddc5][_0x14ec05])===null||_0x5d9aef===void 0x0?void 0x0:_0x5d9aef[_0x3c16da(0xdb)])||{},_0x2cc1b9,'');return((_0x58a70e=_0x4bdb0f[_0x19ddc5][_0x14ec05])===null||_0x58a70e===void 0x0?void 0x0:_0x58a70e[_0x3c16da(0xdb)])||{};}function getAnnEnumMap(_0x5e80f3,_0x1cb9c8){const _0x581870=a2_0x655c67;var _0x2260cb,_0x2a94f4,_0x58cf4b,_0x909871;const _0x486cc0={},_0x3c519f=(0x0,core_1[_0x581870(0xe7)])(ANN_ENUM,_0x5e80f3)||{};if(_0x3c519f===null||_0x3c519f===void 0x0?void 0x0:_0x3c519f[_0x1cb9c8])for(const _0x422168 in _0x3c519f[_0x1cb9c8]){if(typeof((_0x2a94f4=(_0x2260cb=_0x3c519f[_0x1cb9c8])===null||_0x2260cb===void 0x0?void 0x0:_0x2260cb[_0x422168])===null||_0x2a94f4===void 0x0?void 0x0:_0x2a94f4[_0x581870(0xd1)])===_0x581870(0xd7))continue;if(typeof((_0x909871=(_0x58cf4b=_0x3c519f[_0x1cb9c8])===null||_0x58cf4b===void 0x0?void 0x0:_0x58cf4b[_0x422168])===null||_0x909871===void 0x0?void 0x0:_0x909871[_0x581870(0xe8)])===_0x581870(0xd7))continue;_0x486cc0[_0x3c519f[_0x1cb9c8][_0x422168][_0x581870(0xd1)]]=_0x3c519f[_0x1cb9c8][_0x422168][_0x581870(0xe8)];}return _0x486cc0;}function getAnnEnumList(_0x37be46,_0x18a5b5,_0x303015){const _0x360271=a2_0x655c67;var _0x3a0854,_0x3c4a8b,_0x1d0eee,_0xa50d90;const _0xbd8828=[],_0x40ba51=(0x0,core_1[_0x360271(0xe7)])(ANN_ENUM,_0x37be46)||{};if(_0x40ba51===null||_0x40ba51===void 0x0?void 0x0:_0x40ba51[_0x18a5b5])for(const _0x2c7b3d in _0x40ba51[_0x18a5b5]){if(typeof((_0x3c4a8b=(_0x3a0854=_0x40ba51[_0x18a5b5])===null||_0x3a0854===void 0x0?void 0x0:_0x3a0854[_0x2c7b3d])===null||_0x3c4a8b===void 0x0?void 0x0:_0x3c4a8b[_0x360271(0xd1)])===_0x360271(0xd7))continue;if(typeof((_0xa50d90=(_0x1d0eee=_0x40ba51[_0x18a5b5])===null||_0x1d0eee===void 0x0?void 0x0:_0x1d0eee[_0x2c7b3d])===null||_0xa50d90===void 0x0?void 0x0:_0xa50d90[_0x360271(0xe8)])===_0x360271(0xd7))continue;_0x303015?_0xbd8828[_0x360271(0xd4)]({'label':_0x40ba51[_0x18a5b5][_0x2c7b3d][_0x360271(0xd1)],'value':_0x40ba51[_0x18a5b5][_0x2c7b3d][_0x360271(0xe8)],'meta':_0x40ba51[_0x18a5b5][_0x2c7b3d][_0x360271(0xdb)]||{}}):_0xbd8828[_0x360271(0xd4)]({'label':_0x40ba51[_0x18a5b5][_0x2c7b3d][_0x360271(0xd1)],'value':_0x40ba51[_0x18a5b5][_0x2c7b3d][_0x360271(0xe8)]});}return _0xbd8828;}function getAnnEnumArray(_0x21ba28,_0x5ee243,_0x7a1d27=[]){const _0x226bfb=a2_0x655c67;var _0x9d6cff,_0x49b467,_0x3ff8bb,_0x1ad651;const _0x8d8e8f=[],_0x13bb37=(0x0,core_1[_0x226bfb(0xe7)])(ANN_ENUM,_0x21ba28)||{};if(_0x13bb37===null||_0x13bb37===void 0x0?void 0x0:_0x13bb37[_0x5ee243])for(const _0x139e91 in _0x13bb37[_0x5ee243]){if(typeof((_0x49b467=(_0x9d6cff=_0x13bb37[_0x5ee243])===null||_0x9d6cff===void 0x0?void 0x0:_0x9d6cff[_0x139e91])===null||_0x49b467===void 0x0?void 0x0:_0x49b467['targetMsg'])===_0x226bfb(0xd7))continue;if(typeof((_0x1ad651=(_0x3ff8bb=_0x13bb37[_0x5ee243])===null||_0x3ff8bb===void 0x0?void 0x0:_0x3ff8bb[_0x139e91])===null||_0x1ad651===void 0x0?void 0x0:_0x1ad651[_0x226bfb(0xe8)])==='undefined')continue;_0x7a1d27[_0x226bfb(0xd0)](_0x13bb37[_0x5ee243][_0x139e91][_0x226bfb(0xe8)])==-0x1&&_0x8d8e8f['push'](_0x13bb37[_0x5ee243][_0x139e91]['targetCode']);}return _0x8d8e8f;}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const a3_0x429e05=a3_0x28bb;(function(_0x13e226,_0x4f751f){const _0x117117=a3_0x28bb,_0x194a1c=_0x13e226();while(!![]){try{const _0x49b155=-parseInt(_0x117117(0x201))/0x1*(parseInt(_0x117117(0x208))/0x2)+-parseInt(_0x117117(0x200))/0x3+-parseInt(_0x117117(0x1f6))/0x4+-parseInt(_0x117117(0x205))/0x5*(parseInt(_0x117117(0x1f1))/0x6)+parseInt(_0x117117(0x1f3))/0x7+parseInt(_0x117117(0x1f4))/0x8+parseInt(_0x117117(0x1fb))/0x9;if(_0x49b155===_0x4f751f)break;else _0x194a1c['push'](_0x194a1c['shift']());}catch(_0x21758d){_0x194a1c['push'](_0x194a1c['shift']());}}}(a3_0x4b38,0xdd05b));const a3_0x3b61bd=(function(){let _0x439098=!![];return function(_0x3eae86,_0x58d3f2){const _0xe190bc=_0x439098?function(){if(_0x58d3f2){const _0x3ba98b=_0x58d3f2['apply'](_0x3eae86,arguments);return _0x58d3f2=null,_0x3ba98b;}}:function(){};return _0x439098=![],_0xe190bc;};}()),a3_0x1c7188=a3_0x3b61bd(this,function(){const _0x241fca=a3_0x28bb;return a3_0x1c7188[_0x241fca(0x1f9)]()[_0x241fca(0x203)](_0x241fca(0x202))[_0x241fca(0x1f9)]()[_0x241fca(0x1fc)](a3_0x1c7188)['search'](_0x241fca(0x202));});a3_0x1c7188();'use strict';Object[a3_0x429e05(0x1f8)](exports,a3_0x429e05(0x1fe),{'value':!![]}),exports[a3_0x429e05(0x1fd)]=getAnnErrorMsg,exports[a3_0x429e05(0x1f7)]=getAnnErrorList,exports[a3_0x429e05(0x1f0)]=AnnErrorMsg;const AnnErrorObj={};function a3_0x28bb(_0x5f9d7c,_0x2f118d){_0x5f9d7c=_0x5f9d7c-0x1ef;const _0x14b97b=a3_0x4b38();let _0x1c7188=_0x14b97b[_0x5f9d7c];return _0x1c7188;}function getAnnErrorMsg(_0x1cce21){const _0x38f4ce=a3_0x429e05;var _0x1f4c0c,_0x2a52b5;if(typeof _0x1cce21=='undefined'||_0x1cce21===null)return undefined;if(typeof((_0x1f4c0c=AnnErrorObj===null||AnnErrorObj===void 0x0?void 0x0:AnnErrorObj[_0x1cce21])===null||_0x1f4c0c===void 0x0?void 0x0:_0x1f4c0c[_0x38f4ce(0x1ef)])===_0x38f4ce(0x204))throw new Error(_0x38f4ce(0x1f5)+_0x1cce21+_0x38f4ce(0x1f2));return((_0x2a52b5=AnnErrorObj[_0x1cce21])===null||_0x2a52b5===void 0x0?void 0x0:_0x2a52b5[_0x38f4ce(0x1ef)])||undefined;}function getAnnErrorList(){return AnnErrorObj;}function AnnErrorMsg(_0x4d441d){return(_0x52ad66,_0x58d522)=>{const _0x1ff65c=a3_0x28bb,_0x2bc9cc=_0x52ad66===null||_0x52ad66===void 0x0?void 0x0:_0x52ad66[_0x58d522];if(typeof _0x2bc9cc===_0x1ff65c(0x204)||_0x2bc9cc===null)throw new Error(((_0x52ad66===null||_0x52ad66===void 0x0?void 0x0:_0x52ad66[_0x1ff65c(0x206)])||_0x52ad66)+'\x20Property('+_0x58d522+_0x1ff65c(0x207)+_0x58d522+_0x1ff65c(0x1fa));if(typeof(AnnErrorObj===null||AnnErrorObj===void 0x0?void 0x0:AnnErrorObj[_0x2bc9cc])!=='undefined')throw new Error(_0x1ff65c(0x1f5)+_0x4d441d+'('+_0x2bc9cc+_0x1ff65c(0x1ff));AnnErrorObj[_0x2bc9cc]={'code':_0x2bc9cc,'message':_0x4d441d};};}function a3_0x4b38(){const _0x339bd1=['1185455CCuqNt','name',')must\x20be\x20\x27static\x20readonly\x20','2hCLxGp','message','AnnErrorMsg','6GhFMhw','\x20is\x20not\x20duplicated','11024853CbMxRo','11929600fKrsFy','AnnErrorMsg:\x20','1930052loWYMI','getAnnErrorList','defineProperty','toString','\x20=\x20number;','3422781tpVrvV','constructor','getAnnErrorMsg','__esModule',')\x20is\x20duplicated,please\x20check\x20before\x20adding','3263388JBtqwj','733781EIJvaR','(((.+)+)+)+$','search','undefined'];a3_0x4b38=function(){return _0x339bd1;};return a3_0x4b38();}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const AROUNDMIDDLE_KEY = "anvero:around-middleware";
|
|
2
|
+
export declare function AroundMiddle(): ClassDecorator;
|
|
3
|
+
export declare class IAroundMiddle {
|
|
4
|
+
match?: (ctx: any) => Promise<boolean>;
|
|
5
|
+
resolveAfter?: (ctx: any) => Promise<void | boolean>;
|
|
6
|
+
resolveBefor?: (ctx: any) => Promise<void | boolean>;
|
|
7
|
+
}
|
|
8
|
+
export declare class AroundMiddleTargetTmp {
|
|
9
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const a4_0x106de4=a4_0x191d;(function(_0x48a71a,_0x248345){const _0x4b4a31=a4_0x191d,_0x27196f=_0x48a71a();while(!![]){try{const _0x275a35=-parseInt(_0x4b4a31(0xfd))/0x1*(-parseInt(_0x4b4a31(0x10b))/0x2)+-parseInt(_0x4b4a31(0x10c))/0x3+-parseInt(_0x4b4a31(0x107))/0x4*(-parseInt(_0x4b4a31(0x106))/0x5)+parseInt(_0x4b4a31(0x102))/0x6*(parseInt(_0x4b4a31(0x109))/0x7)+parseInt(_0x4b4a31(0x112))/0x8*(-parseInt(_0x4b4a31(0x113))/0x9)+-parseInt(_0x4b4a31(0x101))/0xa*(parseInt(_0x4b4a31(0x114))/0xb)+parseInt(_0x4b4a31(0x104))/0xc;if(_0x275a35===_0x248345)break;else _0x27196f['push'](_0x27196f['shift']());}catch(_0x256479){_0x27196f['push'](_0x27196f['shift']());}}}(a4_0x213c,0xb748b));const a4_0x4c4e37=(function(){let _0x4b77b3=!![];return function(_0x115bf2,_0x40e1a7){const _0x834000=_0x4b77b3?function(){if(_0x40e1a7){const _0x507520=_0x40e1a7['apply'](_0x115bf2,arguments);return _0x40e1a7=null,_0x507520;}}:function(){};return _0x4b77b3=![],_0x834000;};}()),a4_0x14b22a=a4_0x4c4e37(this,function(){const _0xbd8d73=a4_0x191d;return a4_0x14b22a[_0xbd8d73(0xff)]()['search'](_0xbd8d73(0x116))[_0xbd8d73(0xff)]()[_0xbd8d73(0x100)](a4_0x14b22a)[_0xbd8d73(0x103)](_0xbd8d73(0x116));});a4_0x14b22a();'use strict';function a4_0x213c(){const _0x895ec0=['@midwayjs/core','toString','constructor','10bBeHxF','4665798qiwbFn','search','26398704tedaXj','AROUNDMIDDLE_KEY','10mFdneC','1616232cMfABb','defineProperty','7VKepJv','includes','1756HJCEuk','2940618tOTdGS','IAroundMiddle','AroundMiddleTargetTmp','Request','saveClassMetadata','AroundMiddle','6063496qqsudj','9CDheRY','14351359HYXECr','Scope','(((.+)+)+)+$','getClassMetadata','9JipweC'];a4_0x213c=function(){return _0x895ec0;};return a4_0x213c();}Object[a4_0x106de4(0x108)](exports,'__esModule',{'value':!![]}),exports[a4_0x106de4(0x10e)]=exports[a4_0x106de4(0x10d)]=exports[a4_0x106de4(0x105)]=void 0x0,exports[a4_0x106de4(0x111)]=AroundMiddle;const core_1=require(a4_0x106de4(0xfe));exports[a4_0x106de4(0x105)]='anvero:around-middleware';function AroundMiddle(){return _0xa57af8=>{const _0x233ec7=a4_0x191d,_0x1ca8e4=(0x0,core_1[_0x233ec7(0xfc)])(exports[_0x233ec7(0x105)],AroundMiddleTargetTmp)||[];!_0x1ca8e4[_0x233ec7(0x10a)](_0xa57af8)&&_0x1ca8e4['push'](_0xa57af8),(0x0,core_1['Provide'])()(_0xa57af8),(0x0,core_1[_0x233ec7(0x115)])(core_1['ScopeEnum'][_0x233ec7(0x10f)])(_0xa57af8),(0x0,core_1[_0x233ec7(0x110)])(exports[_0x233ec7(0x105)],_0x1ca8e4,AroundMiddleTargetTmp);};}class IAroundMiddle{}exports[a4_0x106de4(0x10d)]=IAroundMiddle;function a4_0x191d(_0x50b8c9,_0x550305){_0x50b8c9=_0x50b8c9-0xfc;const _0x400136=a4_0x213c();let _0x14b22a=_0x400136[_0x50b8c9];return _0x14b22a;}class AroundMiddleTargetTmp{}exports[a4_0x106de4(0x10e)]=AroundMiddleTargetTmp;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare class AnnError extends Error {
|
|
2
|
+
readonly code: number | string;
|
|
3
|
+
readonly response: {
|
|
4
|
+
[key: string]: any;
|
|
5
|
+
};
|
|
6
|
+
static readonly OK: number | string;
|
|
7
|
+
static readonly _UNKNOW_: number | string;
|
|
8
|
+
static readonly _PARAMS_: number | string;
|
|
9
|
+
static readonly _NOTFIND_: number | string;
|
|
10
|
+
static readonly _NOLOGIN_: number | string;
|
|
11
|
+
static readonly _NOAUTH_: number | string;
|
|
12
|
+
constructor(code: number | string, response?: {
|
|
13
|
+
[key: string]: any;
|
|
14
|
+
}, messageKey?: string);
|
|
15
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var a5_0x5c0a3d=a5_0x2305;(function(_0x244004,_0xd2047a){var _0x209a0c=a5_0x2305,_0x33deea=_0x244004();while(!![]){try{var _0x14c0e1=-parseInt(_0x209a0c(0x21f))/0x1*(-parseInt(_0x209a0c(0x206))/0x2)+parseInt(_0x209a0c(0x202))/0x3*(-parseInt(_0x209a0c(0x207))/0x4)+-parseInt(_0x209a0c(0x213))/0x5*(parseInt(_0x209a0c(0x20f))/0x6)+-parseInt(_0x209a0c(0x20b))/0x7*(-parseInt(_0x209a0c(0x20c))/0x8)+parseInt(_0x209a0c(0x201))/0x9*(-parseInt(_0x209a0c(0x1f9))/0xa)+parseInt(_0x209a0c(0x211))/0xb+parseInt(_0x209a0c(0x215))/0xc;if(_0x14c0e1===_0xd2047a)break;else _0x33deea['push'](_0x33deea['shift']());}catch(_0xfc196c){_0x33deea['push'](_0x33deea['shift']());}}}(a5_0x4444,0x339b9));var a5_0x53a9ba=(function(){var _0x2a5e34=!![];return function(_0x43d015,_0x439b8f){var _0x19d332=_0x2a5e34?function(){var _0x3b003f=a5_0x2305;if(_0x439b8f){var _0x1e8544=_0x439b8f[_0x3b003f(0x212)](_0x43d015,arguments);return _0x439b8f=null,_0x1e8544;}}:function(){};return _0x2a5e34=![],_0x19d332;};}()),a5_0x199ad5=a5_0x53a9ba(this,function(){var _0x56c7a6=a5_0x2305;return a5_0x199ad5[_0x56c7a6(0x214)]()[_0x56c7a6(0x1fa)](_0x56c7a6(0x1fb))[_0x56c7a6(0x214)]()[_0x56c7a6(0x217)](a5_0x199ad5)[_0x56c7a6(0x1fa)](_0x56c7a6(0x1fb));});function a5_0x4444(){var _0x342b4b=['metadata','27afjKaT','521106YuMaPS','design:type','_NOLOGIN_','string','420508AUNrBN','4rYZeHF','__decorate','AnnError','message','12124jjuxzp','400mHMJgj','不存在对应数据','请登录后重试','30djvCsA','defineProperty','2862354upMnal','apply','147210QlTVOj','toString','2021184gPKdSc','__metadata','constructor','function','length','__esModule','参数错误','name','../decorator/AnnErrorMsg','没有权限执行该操作','1bMmSTY','getAnnErrorMsg','_NOAUTH_','getOwnPropertyDescriptor','_UNKNOW_','_PARAMS_','decorate','object','644010vwfYkq','search','(((.+)+)+)+$','未知错误','AnnErrorMsg','response','_NOTFIND_'];a5_0x4444=function(){return _0x342b4b;};return a5_0x4444();}a5_0x199ad5();'use strict';var __decorate=this&&this[a5_0x5c0a3d(0x208)]||function(_0x15e27e,_0x1992f2,_0x23ec06,_0x2c1b13){var _0x244393=a5_0x5c0a3d,_0x3b729a=arguments[_0x244393(0x219)],_0x381266=_0x3b729a<0x3?_0x1992f2:_0x2c1b13===null?_0x2c1b13=Object[_0x244393(0x1f4)](_0x1992f2,_0x23ec06):_0x2c1b13,_0x296535;if(typeof Reflect===_0x244393(0x1f8)&&typeof Reflect[_0x244393(0x1f7)]===_0x244393(0x218))_0x381266=Reflect['decorate'](_0x15e27e,_0x1992f2,_0x23ec06,_0x2c1b13);else{for(var _0x2be836=_0x15e27e[_0x244393(0x219)]-0x1;_0x2be836>=0x0;_0x2be836--)if(_0x296535=_0x15e27e[_0x2be836])_0x381266=(_0x3b729a<0x3?_0x296535(_0x381266):_0x3b729a>0x3?_0x296535(_0x1992f2,_0x23ec06,_0x381266):_0x296535(_0x1992f2,_0x23ec06))||_0x381266;}return _0x3b729a>0x3&&_0x381266&&Object['defineProperty'](_0x1992f2,_0x23ec06,_0x381266),_0x381266;},__metadata=this&&this[a5_0x5c0a3d(0x216)]||function(_0x24ef4e,_0x467d6c){var _0x5195b4=a5_0x5c0a3d;if(typeof Reflect===_0x5195b4(0x1f8)&&typeof Reflect['metadata']===_0x5195b4(0x218))return Reflect[_0x5195b4(0x200)](_0x24ef4e,_0x467d6c);};function a5_0x2305(_0x3f04dc,_0x444f10){_0x3f04dc=_0x3f04dc-0x1f2;var _0x91982e=a5_0x4444();var _0x199ad5=_0x91982e[_0x3f04dc];return _0x199ad5;}Object[a5_0x5c0a3d(0x210)](exports,a5_0x5c0a3d(0x21a),{'value':!![]}),exports[a5_0x5c0a3d(0x209)]=void 0x0;const AnnErrorMsg_1=require(a5_0x5c0a3d(0x21d));class AnnError extends Error{constructor(_0x170778,_0x1d837f,_0x699402=a5_0x5c0a3d(0x20a)){var _0x119135=a5_0x5c0a3d;super((0x0,AnnErrorMsg_1[_0x119135(0x1f2)])(_0x170778)),this[_0x119135(0x21c)]=this[_0x119135(0x217)][_0x119135(0x21c)],(this['code']=_0x170778,this[_0x119135(0x1fe)]={..._0x1d837f||{}}),typeof(_0x1d837f===null||_0x1d837f===void 0x0?void 0x0:_0x1d837f[_0x699402])==_0x119135(0x205)&&(this[_0x119135(0x20a)]=_0x1d837f[_0x699402]);}}exports[a5_0x5c0a3d(0x209)]=AnnError,AnnError['OK']=0x0,AnnError[a5_0x5c0a3d(0x1f5)]=0x18894,AnnError[a5_0x5c0a3d(0x1f6)]=0x18836,AnnError[a5_0x5c0a3d(0x1ff)]=0x18834,AnnError['_NOLOGIN_']=0x18831,AnnError[a5_0x5c0a3d(0x1f3)]=0x18833,__decorate([(0x0,AnnErrorMsg_1[a5_0x5c0a3d(0x1fd)])('成功'),__metadata(a5_0x5c0a3d(0x203),Object)],AnnError,'OK',void 0x0),__decorate([(0x0,AnnErrorMsg_1[a5_0x5c0a3d(0x1fd)])(a5_0x5c0a3d(0x1fc)),__metadata('design:type',Object)],AnnError,a5_0x5c0a3d(0x1f5),void 0x0),__decorate([(0x0,AnnErrorMsg_1[a5_0x5c0a3d(0x1fd)])(a5_0x5c0a3d(0x21b)),__metadata('design:type',Object)],AnnError,'_PARAMS_',void 0x0),__decorate([(0x0,AnnErrorMsg_1[a5_0x5c0a3d(0x1fd)])(a5_0x5c0a3d(0x20d)),__metadata(a5_0x5c0a3d(0x203),Object)],AnnError,a5_0x5c0a3d(0x1ff),void 0x0),__decorate([(0x0,AnnErrorMsg_1[a5_0x5c0a3d(0x1fd)])(a5_0x5c0a3d(0x20e)),__metadata(a5_0x5c0a3d(0x203),Object)],AnnError,a5_0x5c0a3d(0x204),void 0x0),__decorate([(0x0,AnnErrorMsg_1['AnnErrorMsg'])(a5_0x5c0a3d(0x21e)),__metadata(a5_0x5c0a3d(0x203),Object)],AnnError,a5_0x5c0a3d(0x1f3),void 0x0);
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { AnnError } from './AnnError';
|
|
2
|
+
import { IMidwayContainer, IMidwayApplication } from '@midwayjs/core';
|
|
3
|
+
export declare abstract class AnnErrorRender extends AnnError {
|
|
4
|
+
abstract render(ctx: any, container: IMidwayContainer, app: IMidwayApplication): Promise<void>;
|
|
5
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const a6_0x30bcbb=a6_0x2b30;(function(_0x6cc826,_0xd166b2){const _0x125169=a6_0x2b30,_0x3a9818=_0x6cc826();while(!![]){try{const _0x3f76bf=parseInt(_0x125169(0x6e))/0x1*(parseInt(_0x125169(0x6b))/0x2)+parseInt(_0x125169(0x69))/0x3*(parseInt(_0x125169(0x6c))/0x4)+parseInt(_0x125169(0x6f))/0x5+-parseInt(_0x125169(0x75))/0x6*(parseInt(_0x125169(0x68))/0x7)+parseInt(_0x125169(0x72))/0x8*(parseInt(_0x125169(0x6a))/0x9)+-parseInt(_0x125169(0x73))/0xa*(parseInt(_0x125169(0x65))/0xb)+-parseInt(_0x125169(0x67))/0xc;if(_0x3f76bf===_0xd166b2)break;else _0x3a9818['push'](_0x3a9818['shift']());}catch(_0x292e8f){_0x3a9818['push'](_0x3a9818['shift']());}}}(a6_0x182a,0x63711));const a6_0xbd666c=(function(){let _0x5a3712=!![];return function(_0x22b97f,_0x48f547){const _0x45ece1=_0x5a3712?function(){if(_0x48f547){const _0x548068=_0x48f547['apply'](_0x22b97f,arguments);return _0x48f547=null,_0x548068;}}:function(){};return _0x5a3712=![],_0x45ece1;};}()),a6_0x6270dc=a6_0xbd666c(this,function(){const _0x36974b=a6_0x2b30;return a6_0x6270dc['toString']()[_0x36974b(0x6d)](_0x36974b(0x74))[_0x36974b(0x70)]()['constructor'](a6_0x6270dc)[_0x36974b(0x6d)](_0x36974b(0x74));});a6_0x6270dc();'use strict';function a6_0x2b30(_0x15c90c,_0xc900f2){_0x15c90c=_0x15c90c-0x64;const _0x4a3863=a6_0x182a();let _0x6270dc=_0x4a3863[_0x15c90c];return _0x6270dc;}function a6_0x182a(){const _0x3873b5=['744BvNEkS','100eTSueC','(((.+)+)+)+$','12jnlFVu','AnnErrorRender','589039CNBEEx','__esModule','1776372EDneRO','983689BfKmhV','3JMcevD','2952BRKtiL','2uixBQM','1298252coyFJr','search','449731HyojYy','2835450eGmAnJ','toString','AnnError'];a6_0x182a=function(){return _0x3873b5;};return a6_0x182a();}Object['defineProperty'](exports,a6_0x30bcbb(0x66),{'value':!![]}),exports[a6_0x30bcbb(0x64)]=void 0x0;const AnnError_1=require('./AnnError');class AnnErrorRender extends AnnError_1[a6_0x30bcbb(0x71)]{}exports[a6_0x30bcbb(0x64)]=AnnErrorRender;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare function aes_key(secret: string, secretLen?: 16 | 24 | 32): string;
|
|
2
|
+
export declare function aes_encode(secret: string, content: string, cfg?: {
|
|
3
|
+
[key: string]: any;
|
|
4
|
+
}): string;
|
|
5
|
+
export declare function aes_decode(secret: string, encryptStr: string, cfg?: {
|
|
6
|
+
[key: string]: any;
|
|
7
|
+
}): string;
|
|
8
|
+
export declare function aes_ecb_encode(secret: string, content: string, cfg?: {
|
|
9
|
+
padding?: boolean;
|
|
10
|
+
Encoding?: BufferEncoding;
|
|
11
|
+
}): string | undefined;
|
|
12
|
+
export declare function aes_ecb_decode(secret: string, content: string, cfg?: {
|
|
13
|
+
padding?: boolean;
|
|
14
|
+
Encoding?: BufferEncoding;
|
|
15
|
+
}): string | undefined;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const a7_0x3bfec9=a7_0x2512;function a7_0x225d(){const _0x5e85bf=['update','alloc','from','crypto-js','search','AES','aes-128-ecb','29659ODNUXl','setAutoPadding','string','Invalid\x20key\x20length','includes','31165560SelEtt','utf8','parse','5475879OtBOXH','5747rhilkG','244OoEMBy','714DcWdTq','aes-192-ecb','encrypt','toString','crypto','53005duOrEV','Pkcs7','(((.+)+)+)+$','mode','2696TeXGDK','base64','aes_ecb_decode','Utf8','aes_key','apply','Encoding','constructor','__esModule','564285HiIted','3214884aDDUzD','replace','aes_decode','final','enc','padding','length','pad','aes-256-ecb'];a7_0x225d=function(){return _0x5e85bf;};return a7_0x225d();}(function(_0x32fc2c,_0x58499b){const _0xbb1d1c=a7_0x2512,_0x1cbb24=_0x32fc2c();while(!![]){try{const _0x162e8f=-parseInt(_0xbb1d1c(0x146))/0x1*(parseInt(_0xbb1d1c(0x147))/0x2)+-parseInt(_0xbb1d1c(0x15a))/0x3+-parseInt(_0xbb1d1c(0x15b))/0x4+-parseInt(_0xbb1d1c(0x14d))/0x5*(parseInt(_0xbb1d1c(0x148))/0x6)+parseInt(_0xbb1d1c(0x13d))/0x7*(parseInt(_0xbb1d1c(0x151))/0x8)+-parseInt(_0xbb1d1c(0x145))/0x9+parseInt(_0xbb1d1c(0x142))/0xa;if(_0x162e8f===_0x58499b)break;else _0x1cbb24['push'](_0x1cbb24['shift']());}catch(_0xbb1322){_0x1cbb24['push'](_0x1cbb24['shift']());}}}(a7_0x225d,0xefa15));const a7_0x302778=(function(){let _0x3d01bc=!![];return function(_0x5bf7bd,_0x57bfaf){const _0x444222=_0x3d01bc?function(){const _0xa222ba=a7_0x2512;if(_0x57bfaf){const _0x13900c=_0x57bfaf[_0xa222ba(0x156)](_0x5bf7bd,arguments);return _0x57bfaf=null,_0x13900c;}}:function(){};return _0x3d01bc=![],_0x444222;};}()),a7_0x39173e=a7_0x302778(this,function(){const _0x16bb5e=a7_0x2512;return a7_0x39173e[_0x16bb5e(0x14b)]()[_0x16bb5e(0x13a)](_0x16bb5e(0x14f))[_0x16bb5e(0x14b)]()[_0x16bb5e(0x158)](a7_0x39173e)[_0x16bb5e(0x13a)](_0x16bb5e(0x14f));});a7_0x39173e();'use strict';Object['defineProperty'](exports,a7_0x3bfec9(0x159),{'value':!![]}),exports[a7_0x3bfec9(0x155)]=aes_key,exports['aes_encode']=aes_encode,exports[a7_0x3bfec9(0x12f)]=aes_decode,exports['aes_ecb_encode']=aes_ecb_encode,exports[a7_0x3bfec9(0x153)]=aes_ecb_decode;const crypto=require(a7_0x3bfec9(0x14c)),cryptojs=require(a7_0x3bfec9(0x139));function aes_key(_0x5e51ad,_0x1d2e09){const _0x551264=a7_0x3bfec9;let _0x2c3f5f=Buffer[_0x551264(0x138)](_0x5e51ad,_0x551264(0x143));if(!_0x1d2e09){if(_0x2c3f5f[_0x551264(0x133)]<=0x10)_0x1d2e09=0x10;else _0x2c3f5f[_0x551264(0x133)]<=0x18?_0x1d2e09=0x18:_0x1d2e09=0x20;}if(_0x2c3f5f['length']>_0x1d2e09)_0x2c3f5f=_0x2c3f5f['subarray'](0x0,_0x1d2e09);else{const _0x10381c=Buffer[_0x551264(0x137)](_0x1d2e09);for(let _0x3f6a4a=0x0;_0x3f6a4a<_0x2c3f5f['length'];_0x3f6a4a++){_0x10381c[_0x3f6a4a]=_0x2c3f5f[_0x3f6a4a];}_0x2c3f5f=_0x10381c;}return _0x2c3f5f[_0x551264(0x14b)](_0x551264(0x143));}function aes_encode(_0x1cdadc,_0x5e4476,_0x244caa={}){const _0x4b54fa=a7_0x3bfec9;try{return typeof(_0x244caa===null||_0x244caa===void 0x0?void 0x0:_0x244caa['iv'])=='string'&&(_0x244caa['iv']=cryptojs[_0x4b54fa(0x131)]['Utf8'][_0x4b54fa(0x144)](_0x244caa['iv'])),cryptojs[_0x4b54fa(0x13b)][_0x4b54fa(0x14a)](cryptojs[_0x4b54fa(0x131)][_0x4b54fa(0x154)][_0x4b54fa(0x144)](_0x5e4476===null||_0x5e4476===void 0x0?void 0x0:_0x5e4476[_0x4b54fa(0x15c)](/[\n]/g,'')),cryptojs[_0x4b54fa(0x131)][_0x4b54fa(0x154)][_0x4b54fa(0x144)](_0x1cdadc),{..._0x244caa,'mode':(_0x244caa===null||_0x244caa===void 0x0?void 0x0:_0x244caa[_0x4b54fa(0x150)])||cryptojs['mode']['ECB'],'padding':(_0x244caa===null||_0x244caa===void 0x0?void 0x0:_0x244caa[_0x4b54fa(0x132)])||cryptojs[_0x4b54fa(0x134)]['Pkcs7']})['toString']();}catch(_0x3a2d4d){return undefined;}}function a7_0x2512(_0x410b96,_0x134cce){_0x410b96=_0x410b96-0x12f;const _0xa61350=a7_0x225d();let _0x39173e=_0xa61350[_0x410b96];return _0x39173e;}function aes_decode(_0x46e041,_0x199bb9,_0x2a5d13={}){const _0x5d728f=a7_0x3bfec9;try{return typeof(_0x2a5d13===null||_0x2a5d13===void 0x0?void 0x0:_0x2a5d13['iv'])==_0x5d728f(0x13f)&&(_0x2a5d13['iv']=cryptojs['enc']['Utf8'][_0x5d728f(0x144)](_0x2a5d13['iv'])),cryptojs['enc'][_0x5d728f(0x154)]['stringify'](cryptojs['AES']['decrypt'](_0x199bb9===null||_0x199bb9===void 0x0?void 0x0:_0x199bb9['replace'](/[\n]/g,''),cryptojs[_0x5d728f(0x131)][_0x5d728f(0x154)][_0x5d728f(0x144)](_0x46e041),{..._0x2a5d13,'mode':(_0x2a5d13===null||_0x2a5d13===void 0x0?void 0x0:_0x2a5d13[_0x5d728f(0x150)])||cryptojs[_0x5d728f(0x150)]['ECB'],'padding':(_0x2a5d13===null||_0x2a5d13===void 0x0?void 0x0:_0x2a5d13['padding'])||cryptojs[_0x5d728f(0x134)][_0x5d728f(0x14e)]}))[_0x5d728f(0x14b)]();}catch(_0x162f4c){return undefined;}}function aes_ecb_encode(_0x48f87,_0xb9825c,_0x28d81f={}){const _0xbc788a=a7_0x3bfec9;try{![0x10,0x18,0x20][_0xbc788a(0x141)](Buffer[_0xbc788a(0x138)](_0x48f87,_0xbc788a(0x143))['length'])&&(_0x48f87=aes_key(_0x48f87));let _0x12f254=_0xbc788a(0x13c);switch(Buffer['from'](_0x48f87,_0xbc788a(0x143))[_0xbc788a(0x133)]){case 0x10:_0x12f254='aes-128-ecb';break;case 0x18:_0x12f254=_0xbc788a(0x149);break;case 0x20:_0x12f254=_0xbc788a(0x135);break;default:throw new Error(_0xbc788a(0x140));}const _0x3af1b0=crypto['createCipheriv'](_0x12f254,_0x48f87,null);_0x3af1b0['setAutoPadding']((_0x28d81f===null||_0x28d81f===void 0x0?void 0x0:_0x28d81f[_0xbc788a(0x132)])!==undefined?_0x28d81f[_0xbc788a(0x132)]:!![]);let _0x4e0190=_0x3af1b0[_0xbc788a(0x136)](_0xb9825c===null||_0xb9825c===void 0x0?void 0x0:_0xb9825c[_0xbc788a(0x15c)](/[\n]/g,''),_0xbc788a(0x143),(_0x28d81f===null||_0x28d81f===void 0x0?void 0x0:_0x28d81f[_0xbc788a(0x157)])||_0xbc788a(0x152));return _0x4e0190+=_0x3af1b0[_0xbc788a(0x130)]((_0x28d81f===null||_0x28d81f===void 0x0?void 0x0:_0x28d81f[_0xbc788a(0x157)])||_0xbc788a(0x152)),_0x4e0190;}catch(_0x15ba6e){return undefined;}}function aes_ecb_decode(_0x4892a1,_0x23335d,_0x3fe427={}){const _0x2dcad9=a7_0x3bfec9;try{![0x10,0x18,0x20][_0x2dcad9(0x141)](Buffer['from'](_0x4892a1,_0x2dcad9(0x143))[_0x2dcad9(0x133)])&&(_0x4892a1=aes_key(_0x4892a1));let _0x49d05d=_0x2dcad9(0x13c);switch(Buffer[_0x2dcad9(0x138)](_0x4892a1,_0x2dcad9(0x143))[_0x2dcad9(0x133)]){case 0x10:_0x49d05d=_0x2dcad9(0x13c);break;case 0x18:_0x49d05d='aes-192-ecb';break;case 0x20:_0x49d05d=_0x2dcad9(0x135);break;default:throw new Error('Invalid\x20key\x20length');}const _0x3415c7=crypto['createDecipheriv'](_0x49d05d,_0x4892a1,null);_0x3415c7[_0x2dcad9(0x13e)]((_0x3fe427===null||_0x3fe427===void 0x0?void 0x0:_0x3fe427[_0x2dcad9(0x132)])!==undefined?_0x3fe427['padding']:!![]);let _0x5d7e2f=_0x3415c7[_0x2dcad9(0x136)](_0x23335d===null||_0x23335d===void 0x0?void 0x0:_0x23335d[_0x2dcad9(0x15c)](/[\n]/g,''),'utf8',(_0x3fe427===null||_0x3fe427===void 0x0?void 0x0:_0x3fe427[_0x2dcad9(0x157)])||'base64');return _0x5d7e2f+=_0x3415c7['final']((_0x3fe427===null||_0x3fe427===void 0x0?void 0x0:_0x3fe427[_0x2dcad9(0x157)])||_0x2dcad9(0x152)),_0x5d7e2f;}catch(_0x59380d){return undefined;}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const a8_0x4cc09b=a8_0x5eb3;function a8_0x5eb3(_0x2305f1,_0x59a48e){_0x2305f1=_0x2305f1-0x1c3;const _0x430ae2=a8_0x24f9();let _0x1e09dc=_0x430ae2[_0x2305f1];return _0x1e09dc;}(function(_0x787ca0,_0x3a86ae){const _0x315666=a8_0x5eb3,_0x4954a4=_0x787ca0();while(!![]){try{const _0x33138a=-parseInt(_0x315666(0x1cf))/0x1+-parseInt(_0x315666(0x1cb))/0x2*(parseInt(_0x315666(0x1cc))/0x3)+-parseInt(_0x315666(0x1ce))/0x4+parseInt(_0x315666(0x1cd))/0x5+-parseInt(_0x315666(0x1c4))/0x6+-parseInt(_0x315666(0x1d3))/0x7*(parseInt(_0x315666(0x1d2))/0x8)+-parseInt(_0x315666(0x1d1))/0x9*(-parseInt(_0x315666(0x1c6))/0xa);if(_0x33138a===_0x3a86ae)break;else _0x4954a4['push'](_0x4954a4['shift']());}catch(_0x3bbf7c){_0x4954a4['push'](_0x4954a4['shift']());}}}(a8_0x24f9,0x6c36f));const a8_0x33de49=(function(){let _0x48d864=!![];return function(_0x3b7e62,_0x4a702d){const _0x215d76=_0x48d864?function(){if(_0x4a702d){const _0x368265=_0x4a702d['apply'](_0x3b7e62,arguments);return _0x4a702d=null,_0x368265;}}:function(){};return _0x48d864=![],_0x215d76;};}()),a8_0x1e09dc=a8_0x33de49(this,function(){const _0x50f9bf=a8_0x5eb3;return a8_0x1e09dc[_0x50f9bf(0x1d0)]()['search']('(((.+)+)+)+$')[_0x50f9bf(0x1d0)]()['constructor'](a8_0x1e09dc)['search']('(((.+)+)+)+$');});a8_0x1e09dc();'use strict';function a8_0x24f9(){const _0x461d0d=['Utf8','parse','crypto-js','stringify','8266cZQoid','84WgqHDf','4049485OnyweQ','2596088gCFLcr','693444vkAqtD','toString','36eOkHzN','16tSuxPQ','1512686zceJhn','Base64','__esModule','4395768sbcLsr','enc','5640910uOmWuN'];a8_0x24f9=function(){return _0x461d0d;};return a8_0x24f9();}Object['defineProperty'](exports,a8_0x4cc09b(0x1c3),{'value':!![]}),exports['base64_encode']=base64_encode,exports['base64_decode']=base64_decode;const cryptojs=require(a8_0x4cc09b(0x1c9));function base64_encode(_0x55d1d8){const _0x4e348b=a8_0x4cc09b;try{return cryptojs[_0x4e348b(0x1c5)][_0x4e348b(0x1d4)][_0x4e348b(0x1ca)](cryptojs['enc'][_0x4e348b(0x1c7)]['parse'](_0x55d1d8));}catch(_0x3524fd){return undefined;}}function base64_decode(_0x31b9f5){const _0x8f26da=a8_0x4cc09b;try{return cryptojs[_0x8f26da(0x1c5)][_0x8f26da(0x1d4)][_0x8f26da(0x1c8)](_0x31b9f5)[_0x8f26da(0x1d0)](cryptojs[_0x8f26da(0x1c5)]['Utf8']);}catch(_0x396799){return undefined;}}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import * as cryptojs from "crypto-js";
|
|
2
|
+
export declare function md5(message: string | cryptojs.lib.WordArray, cfg?: object): string;
|
|
3
|
+
export declare function random(prefix?: string, length?: number, randomStrs?: string[]): string;
|
|
4
|
+
export declare function getType(type: any): string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const a9_0x179ebb=a9_0x5518;(function(_0xef76af,_0xc8d5d){const _0x34131f=a9_0x5518,_0x1ee8a3=_0xef76af();while(!![]){try{const _0x1de5ff=-parseInt(_0x34131f(0x110))/0x1+-parseInt(_0x34131f(0x10b))/0x2*(parseInt(_0x34131f(0xf7))/0x3)+parseInt(_0x34131f(0xfb))/0x4+-parseInt(_0x34131f(0x101))/0x5+-parseInt(_0x34131f(0xfa))/0x6+-parseInt(_0x34131f(0xf8))/0x7+-parseInt(_0x34131f(0xfd))/0x8*(-parseInt(_0x34131f(0x106))/0x9);if(_0x1de5ff===_0xc8d5d)break;else _0x1ee8a3['push'](_0x1ee8a3['shift']());}catch(_0x370f87){_0x1ee8a3['push'](_0x1ee8a3['shift']());}}}(a9_0x2276,0x5a93b));const a9_0x5a6a70=(function(){let _0x353ed9=!![];return function(_0x558170,_0xe7f185){const _0x3e2de3=_0x353ed9?function(){const _0xc9189d=a9_0x5518;if(_0xe7f185){const _0xbe2eee=_0xe7f185[_0xc9189d(0x107)](_0x558170,arguments);return _0xe7f185=null,_0xbe2eee;}}:function(){};return _0x353ed9=![],_0x3e2de3;};}()),a9_0xb3ebc7=a9_0x5a6a70(this,function(){const _0xfedf04=a9_0x5518;return a9_0xb3ebc7['toString']()[_0xfedf04(0x105)](_0xfedf04(0x111))[_0xfedf04(0xf9)]()[_0xfedf04(0x10e)](a9_0xb3ebc7)[_0xfedf04(0x105)](_0xfedf04(0x111));});function a9_0x5518(_0x4775b1,_0x4692bf){_0x4775b1=_0x4775b1-0xf7;const _0x1bc5d4=a9_0x2276();let _0xb3ebc7=_0x1bc5d4[_0x4775b1];return _0xb3ebc7;}a9_0xb3ebc7();function a9_0x2276(){const _0x3a1e41=['toString','1490232ebfFWM','2293620XVOqRq','MD5','17528MULUJM','getType','crypto-js','__esModule','986180FIKDbE','floor','substring','join','search','7983JjvHRz','apply','md5','call','length','1357144NhmKZT','random','charAt','constructor','ABCDEFGHIJKLMNOPQRSTUVWXYZ','650100kVADPW','(((.+)+)+)+$','3pXDKFT','2600773PRmFRo'];a9_0x2276=function(){return _0x3a1e41;};return a9_0x2276();}'use strict';Object['defineProperty'](exports,a9_0x179ebb(0x100),{'value':!![]}),exports[a9_0x179ebb(0x108)]=md5,exports[a9_0x179ebb(0x10c)]=random,exports[a9_0x179ebb(0xfe)]=getType;const cryptojs=require(a9_0x179ebb(0xff));function md5(_0x5a86de,_0xa07c1f){const _0x32e620=a9_0x179ebb;return cryptojs[_0x32e620(0xfc)](_0x5a86de,_0xa07c1f)['toString']();}function random(_0x29cadb='',_0x39794c=0xa,_0x57f60d){const _0x161dfe=a9_0x179ebb,_0x39fd5e=((_0x57f60d===null||_0x57f60d===void 0x0?void 0x0:_0x57f60d[_0x161dfe(0x10a)])>0x0?_0x57f60d:[_0x161dfe(0x10f),'abcdefghijklmnopqrstuvwxyz','123456789'])[_0x161dfe(0x104)]('');let _0x5d8ee8='',_0x334214=_0x39fd5e['length'];for(let _0x370e05=0x0;_0x370e05<_0x39794c;_0x370e05++){_0x5d8ee8+=_0x39fd5e[_0x161dfe(0x10d)](Math[_0x161dfe(0x102)](Math[_0x161dfe(0x10c)]()*_0x334214));}return''+_0x29cadb+_0x5d8ee8;}function getType(_0x5a717f){const _0x5d86e2=a9_0x179ebb,_0x19b38a=Object['prototype'][_0x5d86e2(0xf9)][_0x5d86e2(0x109)](_0x5a717f);return _0x19b38a[_0x5d86e2(0x103)](0x8,_0x19b38a[_0x5d86e2(0x10a)]-0x1);}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const a10_0x2bfeac=a10_0x1432;(function(_0x446357,_0x47ea23){const _0x1ba31f=a10_0x1432,_0x178de9=_0x446357();while(!![]){try{const _0x1e479c=-parseInt(_0x1ba31f(0xb0))/0x1+parseInt(_0x1ba31f(0xa6))/0x2+-parseInt(_0x1ba31f(0xb5))/0x3*(-parseInt(_0x1ba31f(0xbe))/0x4)+-parseInt(_0x1ba31f(0xae))/0x5*(-parseInt(_0x1ba31f(0xaa))/0x6)+parseInt(_0x1ba31f(0xb2))/0x7+-parseInt(_0x1ba31f(0xbd))/0x8*(parseInt(_0x1ba31f(0xc0))/0x9)+parseInt(_0x1ba31f(0xab))/0xa;if(_0x1e479c===_0x47ea23)break;else _0x178de9['push'](_0x178de9['shift']());}catch(_0x33b397){_0x178de9['push'](_0x178de9['shift']());}}}(a10_0x122d,0xa26cb));const a10_0x11e32b=(function(){let _0xc5c190=!![];return function(_0x219147,_0xbfb109){const _0x420407=_0xc5c190?function(){const _0xc13309=a10_0x1432;if(_0xbfb109){const _0x2543d1=_0xbfb109[_0xc13309(0xbf)](_0x219147,arguments);return _0xbfb109=null,_0x2543d1;}}:function(){};return _0xc5c190=![],_0x420407;};}()),a10_0x24d050=a10_0x11e32b(this,function(){const _0x830c8b=a10_0x1432;return a10_0x24d050[_0x830c8b(0xc1)]()[_0x830c8b(0xaf)]('(((.+)+)+)+$')[_0x830c8b(0xc1)]()[_0x830c8b(0xa5)](a10_0x24d050)[_0x830c8b(0xaf)](_0x830c8b(0xa8));});function a10_0x1432(_0x317074,_0xa4a391){_0x317074=_0x317074-0xa5;const _0x3b0120=a10_0x122d();let _0x24d050=_0x3b0120[_0x317074];return _0x24d050;}a10_0x24d050();'use strict';Object['defineProperty'](exports,a10_0x2bfeac(0xbb),{'value':!![]}),exports[a10_0x2bfeac(0xb3)]=des_encode,exports[a10_0x2bfeac(0xb7)]=des_decode;const cryptojs=require(a10_0x2bfeac(0xa7));function a10_0x122d(){const _0x1babe5=['22002owejNg','14125610ZkBkgg','Pkcs7','enc','65fQuoFK','search','1267223suDgcX','DES','573363BpRnmA','des_encode','parse','6jwrFks','Utf8','des_decode','pad','mode','decrypt','__esModule','padding','2936XRJVZn','545684kJQWjt','apply','4293tqIxmT','toString','encrypt','constructor','585180ukOEoT','crypto-js','(((.+)+)+)+$','ECB'];a10_0x122d=function(){return _0x1babe5;};return a10_0x122d();}function des_encode(_0x4ff19e,_0x46d89d,_0x1f0a88={}){const _0x3eb487=a10_0x2bfeac;try{return cryptojs[_0x3eb487(0xb1)][_0x3eb487(0xc2)](cryptojs[_0x3eb487(0xad)][_0x3eb487(0xb6)][_0x3eb487(0xb4)](_0x46d89d),cryptojs['enc'][_0x3eb487(0xb6)]['parse'](_0x4ff19e),{..._0x1f0a88,'mode':(_0x1f0a88===null||_0x1f0a88===void 0x0?void 0x0:_0x1f0a88[_0x3eb487(0xb9)])||cryptojs[_0x3eb487(0xb9)][_0x3eb487(0xa9)],'padding':(_0x1f0a88===null||_0x1f0a88===void 0x0?void 0x0:_0x1f0a88[_0x3eb487(0xbc)])||cryptojs[_0x3eb487(0xb8)][_0x3eb487(0xac)]})['toString']();}catch(_0x179a97){return undefined;}}function des_decode(_0x52860b,_0x2c73c0,_0xeea68f={}){const _0x5cdf88=a10_0x2bfeac;try{return cryptojs[_0x5cdf88(0xad)]['Utf8']['stringify'](cryptojs[_0x5cdf88(0xb1)][_0x5cdf88(0xba)](_0x2c73c0,cryptojs[_0x5cdf88(0xad)][_0x5cdf88(0xb6)][_0x5cdf88(0xb4)](_0x52860b),{..._0xeea68f,'mode':(_0xeea68f===null||_0xeea68f===void 0x0?void 0x0:_0xeea68f['mode'])||cryptojs['mode'][_0x5cdf88(0xa9)],'padding':(_0xeea68f===null||_0xeea68f===void 0x0?void 0x0:_0xeea68f['padding'])||cryptojs[_0x5cdf88(0xb8)][_0x5cdf88(0xac)]}))[_0x5cdf88(0xc1)]();}catch(_0x26b4e6){return undefined;}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const a11_0x2bcbaa=a11_0x1aaa;(function(_0x1ef2d6,_0x5440b4){const _0x5a85b5=a11_0x1aaa,_0x5f1dac=_0x1ef2d6();while(!![]){try{const _0x1bbbcd=-parseInt(_0x5a85b5(0x1a7))/0x1*(parseInt(_0x5a85b5(0x19c))/0x2)+-parseInt(_0x5a85b5(0x1a6))/0x3+parseInt(_0x5a85b5(0x189))/0x4*(-parseInt(_0x5a85b5(0x18a))/0x5)+parseInt(_0x5a85b5(0x18c))/0x6*(-parseInt(_0x5a85b5(0x1a8))/0x7)+parseInt(_0x5a85b5(0x1a9))/0x8*(parseInt(_0x5a85b5(0x18e))/0x9)+parseInt(_0x5a85b5(0x19e))/0xa+parseInt(_0x5a85b5(0x18f))/0xb;if(_0x1bbbcd===_0x5440b4)break;else _0x5f1dac['push'](_0x5f1dac['shift']());}catch(_0x233951){_0x5f1dac['push'](_0x5f1dac['shift']());}}}(a11_0x4df8,0x1f08c));const a11_0x8ea844=(function(){let _0x2bfb16=!![];return function(_0x33a37e,_0x11dbc7){const _0x344d35=_0x2bfb16?function(){const _0x3dedff=a11_0x1aaa;if(_0x11dbc7){const _0x439924=_0x11dbc7[_0x3dedff(0x19a)](_0x33a37e,arguments);return _0x11dbc7=null,_0x439924;}}:function(){};return _0x2bfb16=![],_0x344d35;};}()),a11_0x5e18a1=a11_0x8ea844(this,function(){const _0x117eeb=a11_0x1aaa;return a11_0x5e18a1['toString']()['search']('(((.+)+)+)+$')[_0x117eeb(0x191)]()[_0x117eeb(0x195)](a11_0x5e18a1)[_0x117eeb(0x1a3)](_0x117eeb(0x188));});a11_0x5e18a1();'use strict';Object[a11_0x2bcbaa(0x183)](exports,a11_0x2bcbaa(0x194),{'value':!![]}),exports[a11_0x2bcbaa(0x19b)]=fileMd5,exports[a11_0x2bcbaa(0x184)]=fileSize;function a11_0x4df8(){const _0x13e695=['end','decimals','search','isFile','format','285285knYJRi','140101OWRjaN','675017diWtLg','16dvoDHL','stat','createHash','defineProperty','fileSize','error','0\x20Bytes','crypto','(((.+)+)+)+$','63476ZQFCsx','55xIxyzq','createReadStream','12BXQCmp','文件不存在','915615DjESEi','4100459sYVgEf','log','toString','data','hex','__esModule','constructor','existsSync','md5','undefined','digest','apply','fileMd5','2PLDCgc','size','1534940upLqsS','pow','statSync'];a11_0x4df8=function(){return _0x13e695;};return a11_0x4df8();}const fs=require('fs'),crypto=require(a11_0x2bcbaa(0x187));async function fileMd5(_0x3671ee){return new Promise((_0x1deba9,_0x442509)=>{const _0x22bbb0=a11_0x1aaa;fs[_0x22bbb0(0x181)](_0x3671ee,(_0xaf75ca,_0x47f919)=>{const _0x24e90d=_0x22bbb0;if(_0xaf75ca)return _0x442509(_0xaf75ca);if(!_0x47f919[_0x24e90d(0x1a4)]())return _0x442509(new Error(_0x3671ee+'\x20is\x20not\x20file'));const _0x4d36fa=crypto[_0x24e90d(0x182)](_0x24e90d(0x197)),_0x5bf173=fs[_0x24e90d(0x18b)](_0x3671ee);_0x5bf173['on'](_0x24e90d(0x192),_0x4d36fa['update']['bind'](_0x4d36fa)),_0x5bf173['on'](_0x24e90d(0x185),_0x181444=>_0x442509(_0x181444)),_0x5bf173['on'](_0x24e90d(0x1a1),()=>_0x1deba9(_0x4d36fa[_0x24e90d(0x199)](_0x24e90d(0x193))));});});}function a11_0x1aaa(_0x89d06b,_0x424093){_0x89d06b=_0x89d06b-0x181;const _0x261d66=a11_0x4df8();let _0x5e18a1=_0x261d66[_0x89d06b];return _0x5e18a1;}async function fileSize(_0x47d323,_0x4b1149={'format':![],'decimals':0x2}){const _0x4c6511=a11_0x2bcbaa;if(!fs[_0x4c6511(0x196)](_0x47d323))throw new Error(_0x4c6511(0x18d));const _0x3bb362=fs[_0x4c6511(0x1a0)](_0x47d323)[_0x4c6511(0x19d)];if(_0x4b1149===null||_0x4b1149===void 0x0?void 0x0:_0x4b1149[_0x4c6511(0x1a5)]){if(_0x3bb362==0x0)return _0x4c6511(0x186);typeof _0x4b1149['decimals']==_0x4c6511(0x198)&&(_0x4b1149[_0x4c6511(0x1a2)]=0x2);const _0x218b2b=0x400,_0x225e5b=_0x4b1149[_0x4c6511(0x1a2)]<0x0?0x0:_0x4b1149[_0x4c6511(0x1a2)],_0x373184=['Bytes','KB','MB','GB','TB','PB','EB','ZB','YB'],_0x443618=Math['floor'](Math['log'](_0x3bb362)/Math[_0x4c6511(0x190)](_0x218b2b));return parseFloat((_0x3bb362/Math[_0x4c6511(0x19f)](_0x218b2b,_0x443618))['toFixed'](_0x225e5b))+'\x20'+_0x373184[_0x443618];}return _0x3bb362;}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const a12_0x16f9e1=a12_0x3fd5;function a12_0x3fd5(_0x2e0f1e,_0x395ec5){_0x2e0f1e=_0x2e0f1e-0x1a1;const _0xb6b9ed=a12_0x539e();let _0x5ba092=_0xb6b9ed[_0x2e0f1e];return _0x5ba092;}(function(_0x4ebdf1,_0x101108){const _0x817b36=a12_0x3fd5,_0x4e9daf=_0x4ebdf1();while(!![]){try{const _0x49ac6e=-parseInt(_0x817b36(0x1a4))/0x1+parseInt(_0x817b36(0x1b0))/0x2*(parseInt(_0x817b36(0x1b9))/0x3)+-parseInt(_0x817b36(0x1aa))/0x4+parseInt(_0x817b36(0x1b6))/0x5+parseInt(_0x817b36(0x1c2))/0x6*(parseInt(_0x817b36(0x1ab))/0x7)+parseInt(_0x817b36(0x1b7))/0x8*(parseInt(_0x817b36(0x1c4))/0x9)+parseInt(_0x817b36(0x1a1))/0xa*(-parseInt(_0x817b36(0x1c1))/0xb);if(_0x49ac6e===_0x101108)break;else _0x4e9daf['push'](_0x4e9daf['shift']());}catch(_0x2d938b){_0x4e9daf['push'](_0x4e9daf['shift']());}}}(a12_0x539e,0x2b2d6));const a12_0x3c68b8=(function(){let _0x4d7a36=!![];return function(_0x2e6459,_0x1a4411){const _0x5e565e=_0x4d7a36?function(){const _0x2ace24=a12_0x3fd5;if(_0x1a4411){const _0x370f8b=_0x1a4411[_0x2ace24(0x1b3)](_0x2e6459,arguments);return _0x1a4411=null,_0x370f8b;}}:function(){};return _0x4d7a36=![],_0x5e565e;};}()),a12_0x5ba092=a12_0x3c68b8(this,function(){const _0x4efd2c=a12_0x3fd5;return a12_0x5ba092[_0x4efd2c(0x1ae)]()[_0x4efd2c(0x1b5)](_0x4efd2c(0x1bb))[_0x4efd2c(0x1ae)]()[_0x4efd2c(0x1af)](a12_0x5ba092)['search'](_0x4efd2c(0x1bb));});a12_0x5ba092();'use strict';Object[a12_0x16f9e1(0x1ac)](exports,a12_0x16f9e1(0x1c8),{'value':!![]}),exports[a12_0x16f9e1(0x1bd)]=globDir;const fs=require('fs'),path=require(a12_0x16f9e1(0x1be));function globDir(_0x5321f7='.',_0x49e5bc=![],_0x18c78d=/(?:)/,_0x527106){const _0x2ccbb5=a12_0x16f9e1,_0x18a168=new RequireContext(_0x5321f7,_0x49e5bc,_0x18c78d);if(_0x527106){const _0x2562bb=_0x5f0598=>fs[_0x2ccbb5(0x1b2)](_0x5f0598,_0x527106);return _0x2562bb[_0x2ccbb5(0x1a5)]=()=>[..._0x18a168[_0x2ccbb5(0x1c7)]],_0x2562bb;}else{const _0x2e98d0=_0xa101b2=>require(_0xa101b2);return _0x2e98d0[_0x2ccbb5(0x1a5)]=()=>[..._0x18a168[_0x2ccbb5(0x1c7)]],_0x2e98d0;}}class RequireContext{constructor(_0x6e8c1a,_0x4819cd,_0x2214e7){const _0x17a32e=a12_0x16f9e1;this[_0x17a32e(0x1c7)]=[],this[_0x17a32e(0x1c5)]=_0x2214e7,this[_0x17a32e(0x1b1)]=!!_0x4819cd,this[_0x17a32e(0x1b4)]=this[_0x17a32e(0x1ad)](_0x6e8c1a),this['__findModules'](this[_0x17a32e(0x1b4)]);}['__findDirectory'](_0x36e07e){const _0x46513f=a12_0x16f9e1;if(path[_0x46513f(0x1a7)](_0x36e07e)||!module[_0x46513f(0x1c3)])return _0x36e07e;return path[_0x46513f(0x1ba)](path[_0x46513f(0x1c6)](path[_0x46513f(0x1a3)](module[_0x46513f(0x1c3)][_0x46513f(0x1a9)])['dir'],_0x36e07e));}[a12_0x16f9e1(0x1c9)](_0x524e26){const _0x33287e=a12_0x16f9e1;if(fs[_0x33287e(0x1a2)](_0x524e26))fs[_0x33287e(0x1b8)](_0x524e26)['forEach'](_0x27947a=>{const _0x3914ca=_0x33287e,_0x1cdd8b=path[_0x3914ca(0x1bc)](_0x524e26,_0x27947a);if(fs[_0x3914ca(0x1a6)](_0x1cdd8b)[_0x3914ca(0x1a8)]()){if(this[_0x3914ca(0x1b1)]){this['__findModules'](_0x1cdd8b);return;}}else{if(this[_0x3914ca(0x1c5)]&&!this[_0x3914ca(0x1c5)][_0x3914ca(0x1c0)](_0x1cdd8b))return;this[_0x3914ca(0x1c7)][_0x3914ca(0x1ca)](_0x1cdd8b);}});else throw new Error(_0x33287e(0x1bf)+_0x524e26);}}function a12_0x539e(){const _0x5d9cd1=['__esModule','__findModules','push','261700VzXbOy','existsSync','parse','73570GVEbNM','keys','statSync','isAbsolute','isDirectory','filename','1059200auuPZn','7sJSJrx','defineProperty','__findDirectory','toString','constructor','431842WERqZx','useSubdirectories','readFileSync','apply','directory','search','853030JpRDiP','136HLzaHc','readdirSync','3xYJdtO','normalize','(((.+)+)+)+$','resolve','globDir','path','Can\x27t\x20Found\x20Module\x20','test','11ItRCFz','220404vpKjUW','parent','62541KFgAZy','regExp','join','modules'];a12_0x539e=function(){return _0x5d9cd1;};return a12_0x539e();}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare function hideSensitiveStr(sensitive: string, trim?: number, options?: {
|
|
2
|
+
trim: 'start' | 'end' | 'trim';
|
|
3
|
+
replace: string;
|
|
4
|
+
}): string;
|
|
5
|
+
export declare function hideSensitiveObj<TObject extends object, TKey extends keyof TObject>(sensitiveObj: TObject, keys: TKey | TKey[] | string | string[], trim?: number, options?: {
|
|
6
|
+
trim: 'start' | 'end' | 'trim';
|
|
7
|
+
replace: string;
|
|
8
|
+
}): TObject;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const a13_0x5c0935=a13_0x11f3;(function(_0x4f5903,_0xb1a085){const _0x2db47f=a13_0x11f3,_0x29255a=_0x4f5903();while(!![]){try{const _0xd174c8=-parseInt(_0x2db47f(0x179))/0x1*(-parseInt(_0x2db47f(0x17f))/0x2)+parseInt(_0x2db47f(0x177))/0x3+-parseInt(_0x2db47f(0x185))/0x4*(parseInt(_0x2db47f(0x188))/0x5)+-parseInt(_0x2db47f(0x181))/0x6+-parseInt(_0x2db47f(0x17c))/0x7*(-parseInt(_0x2db47f(0x184))/0x8)+parseInt(_0x2db47f(0x186))/0x9*(parseInt(_0x2db47f(0x170))/0xa)+-parseInt(_0x2db47f(0x174))/0xb;if(_0xd174c8===_0xb1a085)break;else _0x29255a['push'](_0x29255a['shift']());}catch(_0x364937){_0x29255a['push'](_0x29255a['shift']());}}}(a13_0x5f11,0x3a229));const a13_0x5c17bf=(function(){let _0x26fee5=!![];return function(_0x392107,_0x5356fc){const _0x4184d2=_0x26fee5?function(){const _0x5de6af=a13_0x11f3;if(_0x5356fc){const _0x13ff4f=_0x5356fc[_0x5de6af(0x187)](_0x392107,arguments);return _0x5356fc=null,_0x13ff4f;}}:function(){};return _0x26fee5=![],_0x4184d2;};}()),a13_0x1a5f08=a13_0x5c17bf(this,function(){const _0x3d3acf=a13_0x11f3;return a13_0x1a5f08[_0x3d3acf(0x17e)]()[_0x3d3acf(0x172)](_0x3d3acf(0x183))[_0x3d3acf(0x17e)]()['constructor'](a13_0x1a5f08)[_0x3d3acf(0x172)](_0x3d3acf(0x183));});a13_0x1a5f08();'use strict';Object[a13_0x5c0935(0x17a)](exports,a13_0x5c0935(0x171),{'value':!![]}),exports[a13_0x5c0935(0x17d)]=hideSensitiveStr,exports['hideSensitiveObj']=hideSensitiveObj;function a13_0x11f3(_0x3dfa1b,_0x1cff15){_0x3dfa1b=_0x3dfa1b-0x16f;const _0x100517=a13_0x5f11();let _0x1a5f08=_0x100517[_0x3dfa1b];return _0x1a5f08;}function a13_0x5f11(){const _0xccf170=['(((.+)+)+)+$','53728ntFVBW','8FbmjHC','5391ooMRNR','apply','940970hxSZuP','get','6430imtIHB','__esModule','search','length','8066146IeVKoN','substring','string','917301jJWtkt','start','6ChZAqc','defineProperty','repeat','462iTCTvk','hideSensitiveStr','toString','106980IYpuYw','trim','643950YzgYeh','end'];a13_0x5f11=function(){return _0xccf170;};return a13_0x5f11();}const lodash=require('lodash');function hideSensitiveStr(_0x533c46,_0x5399fc=0x1,_0x5272a0={'trim':'trim','replace':'*'}){const _0x2c37c5=a13_0x5c0935,_0x4a11f7=(_0x5272a0===null||_0x5272a0===void 0x0?void 0x0:_0x5272a0['trim'])||_0x2c37c5(0x180),_0xa08ae3=(_0x5272a0===null||_0x5272a0===void 0x0?void 0x0:_0x5272a0['replace'])||'*';if(_0x4a11f7==_0x2c37c5(0x178)){if(_0x533c46[_0x2c37c5(0x173)]<=0x2)return''+_0x533c46[_0x2c37c5(0x175)](0x0,0x1)+_0xa08ae3;else{const _0x1e223b=_0x533c46[_0x2c37c5(0x173)]-_0x5399fc;return _0x1e223b>0x0?''+_0x533c46[_0x2c37c5(0x175)](0x0,_0x5399fc)+_0xa08ae3['repeat'](_0x1e223b):_0x533c46;}}else{if(_0x4a11f7==_0x2c37c5(0x182)){if(_0x533c46[_0x2c37c5(0x173)]<=0x2)return''+_0xa08ae3+(_0x533c46['substring'](0x0,0x1)||'');else{const _0x611b7f=_0x533c46[_0x2c37c5(0x173)]-_0x5399fc;return _0x611b7f>0x0?''+_0xa08ae3[_0x2c37c5(0x17b)](_0x611b7f)+_0x533c46['substring'](_0x611b7f):_0x533c46;}}else{if(_0x4a11f7==_0x2c37c5(0x180)){if(_0x533c46[_0x2c37c5(0x173)]<=0x2)return''+_0x533c46['substring'](0x0,0x1)+_0xa08ae3;else{const _0x15f942=_0x533c46[_0x2c37c5(0x173)]-0x2*_0x5399fc;return _0x15f942>0x0?''+_0x533c46[_0x2c37c5(0x175)](0x0,_0x5399fc)+_0xa08ae3[_0x2c37c5(0x17b)](_0x15f942)+_0x533c46['substring'](_0x533c46[_0x2c37c5(0x173)]-_0x5399fc):_0x533c46;}}}}}function hideSensitiveObj(_0x560e92,_0x40ea63,_0x20f28c=0x1,_0x20bebc={'trim':'trim','replace':'*'}){const _0x9bb11d=a13_0x5c0935;for(let _0x5bc6d4 of Array['isArray'](_0x40ea63)?_0x40ea63:[_0x40ea63]){const _0x51a906=lodash[_0x9bb11d(0x16f)](_0x560e92,_0x5bc6d4);_0x51a906&&typeof _0x51a906==_0x9bb11d(0x176)&&lodash['set'](_0x560e92,_0x5bc6d4,hideSensitiveStr(_0x51a906,_0x20f28c,_0x20bebc));}return _0x560e92;}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const a14_0x318071=a14_0x54d8;function a14_0x54d8(_0x5363cd,_0x58fc3f){_0x5363cd=_0x5363cd-0xe4;const _0x146707=a14_0x45f1();let _0x15fb62=_0x146707[_0x5363cd];return _0x15fb62;}(function(_0x311a77,_0x4e776b){const _0xbec724=a14_0x54d8,_0x51b896=_0x311a77();while(!![]){try{const _0x45f729=parseInt(_0xbec724(0xe4))/0x1*(parseInt(_0xbec724(0xf8))/0x2)+-parseInt(_0xbec724(0xea))/0x3+parseInt(_0xbec724(0xe5))/0x4+-parseInt(_0xbec724(0xe9))/0x5*(parseInt(_0xbec724(0xf3))/0x6)+parseInt(_0xbec724(0xeb))/0x7+-parseInt(_0xbec724(0xf0))/0x8+-parseInt(_0xbec724(0xee))/0x9;if(_0x45f729===_0x4e776b)break;else _0x51b896['push'](_0x51b896['shift']());}catch(_0x5d2425){_0x51b896['push'](_0x51b896['shift']());}}}(a14_0x45f1,0xd20fa));const a14_0x40b13d=(function(){let _0x3e9b33=!![];return function(_0xe00744,_0x4b8310){const _0x47338b=_0x3e9b33?function(){const _0x41ac31=a14_0x54d8;if(_0x4b8310){const _0x2bf1d4=_0x4b8310[_0x41ac31(0xf7)](_0xe00744,arguments);return _0x4b8310=null,_0x2bf1d4;}}:function(){};return _0x3e9b33=![],_0x47338b;};}()),a14_0x15fb62=a14_0x40b13d(this,function(){const _0x37d164=a14_0x54d8;return a14_0x15fb62[_0x37d164(0xf9)]()[_0x37d164(0xed)](_0x37d164(0xe7))[_0x37d164(0xf9)]()[_0x37d164(0xe8)](a14_0x15fb62)[_0x37d164(0xed)](_0x37d164(0xe7));});function a14_0x45f1(){const _0x299725=['3011MEpNaD','2147624PfLHIj','__esModule','(((.+)+)+)+$','constructor','815905hsqpgH','147780nJnaaf','11948965sRGMWx','default','search','13282326rnwQAk','defineProperty','2279048ojoUrF','jiti','defaultsDeep','42KrbFkZ','lodash','get','include','apply','1042WFJaXs','toString'];a14_0x45f1=function(){return _0x299725;};return a14_0x45f1();}a14_0x15fb62();'use strict';Object[a14_0x318071(0xef)](exports,a14_0x318071(0xe6),{'value':!![]}),exports[a14_0x318071(0xf6)]=include;const jiti=require(a14_0x318071(0xf1)),lodash_1=require(a14_0x318071(0xf4));function include(_0x1f1de5){const _0x1fbc1f=a14_0x318071,_0x5cbefe={},_0xb97949=jiti()(_0x1f1de5);for(let _0x344f5a in _0xb97949){_0x344f5a!=_0x1fbc1f(0xec)&&(0x0,lodash_1['defaultsDeep'])(_0x5cbefe,{[_0x344f5a]:_0xb97949[_0x344f5a]});}return(0x0,lodash_1[_0x1fbc1f(0xf2)])(_0x5cbefe,(0x0,lodash_1[_0x1fbc1f(0xf5)])(_0xb97949,_0x1fbc1f(0xec),{}));}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var a15_0x5971c3=a15_0x42e4;(function(_0x495eca,_0x129531){var _0x10f6c0=a15_0x42e4,_0x327796=_0x495eca();while(!![]){try{var _0xd2c27d=parseInt(_0x10f6c0(0x1ab))/0x1*(-parseInt(_0x10f6c0(0x1a2))/0x2)+-parseInt(_0x10f6c0(0x1a8))/0x3+-parseInt(_0x10f6c0(0x1a7))/0x4*(parseInt(_0x10f6c0(0x1aa))/0x5)+parseInt(_0x10f6c0(0x19f))/0x6*(parseInt(_0x10f6c0(0x19b))/0x7)+-parseInt(_0x10f6c0(0x1a6))/0x8*(-parseInt(_0x10f6c0(0x198))/0x9)+parseInt(_0x10f6c0(0x19c))/0xa+parseInt(_0x10f6c0(0x19e))/0xb;if(_0xd2c27d===_0x129531)break;else _0x327796['push'](_0x327796['shift']());}catch(_0x388cb0){_0x327796['push'](_0x327796['shift']());}}}(a15_0x2fab,0xa24aa));function a15_0x2fab(){var _0x349ec1=['16658807kZwxba','372lCxTav','json_encode','search','58uwlhJX','toString','json_decode','__esModule','1450544aTcKFx','390436Ksodhg','1407438ItZnCK','constructor','50HiOgvm','27461XotVUh','27ScKAcW','(((.+)+)+)+$','defineProperty','94850xBrQeS','78600JWavAK','stringify'];a15_0x2fab=function(){return _0x349ec1;};return a15_0x2fab();}var a15_0x132ad0=(function(){var _0x12a079=!![];return function(_0x4addf3,_0x6d5f07){var _0x253fc1=_0x12a079?function(){if(_0x6d5f07){var _0x41649c=_0x6d5f07['apply'](_0x4addf3,arguments);return _0x6d5f07=null,_0x41649c;}}:function(){};return _0x12a079=![],_0x253fc1;};}()),a15_0x54e97b=a15_0x132ad0(this,function(){var _0x15dc6b=a15_0x42e4;return a15_0x54e97b[_0x15dc6b(0x1a3)]()[_0x15dc6b(0x1a1)](_0x15dc6b(0x199))[_0x15dc6b(0x1a3)]()[_0x15dc6b(0x1a9)](a15_0x54e97b)['search'](_0x15dc6b(0x199));});a15_0x54e97b();'use strict';function a15_0x42e4(_0x28db23,_0x3be508){_0x28db23=_0x28db23-0x198;var _0xe0e7e0=a15_0x2fab();var _0x54e97b=_0xe0e7e0[_0x28db23];return _0x54e97b;}Object[a15_0x5971c3(0x19a)](exports,a15_0x5971c3(0x1a5),{'value':!![]}),exports[a15_0x5971c3(0x1a0)]=json_encode,exports[a15_0x5971c3(0x1a4)]=json_decode;function json_encode(_0x462604){var _0xd19d65=a15_0x5971c3;try{return JSON[_0xd19d65(0x19d)](_0x462604);}catch(_0x4d7edd){return undefined;}}function json_decode(_0x4da07a){try{return JSON['parse'](_0x4da07a);}catch(_0x5cadd8){return undefined;}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function toFixed(value: number | string, decimal?: number, process?: 'ceil' | 'floor' | 'round'): number;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const a16_0x351b3b=a16_0x5f3c;(function(_0x3c4862,_0x235395){const _0x202ef9=a16_0x5f3c,_0x1e0afd=_0x3c4862();while(!![]){try{const _0x32b661=parseInt(_0x202ef9(0xff))/0x1*(-parseInt(_0x202ef9(0xfe))/0x2)+-parseInt(_0x202ef9(0x10e))/0x3*(parseInt(_0x202ef9(0x101))/0x4)+parseInt(_0x202ef9(0x10a))/0x5*(parseInt(_0x202ef9(0x112))/0x6)+parseInt(_0x202ef9(0x10f))/0x7*(-parseInt(_0x202ef9(0xfc))/0x8)+parseInt(_0x202ef9(0x111))/0x9+-parseInt(_0x202ef9(0x10b))/0xa+parseInt(_0x202ef9(0x109))/0xb*(parseInt(_0x202ef9(0x105))/0xc);if(_0x32b661===_0x235395)break;else _0x1e0afd['push'](_0x1e0afd['shift']());}catch(_0x5c6b65){_0x1e0afd['push'](_0x1e0afd['shift']());}}}(a16_0x259f,0xaa3da));function a16_0x259f(){const _0x1fc344=['join','408WoaAGQ','apply','length','padEnd','915277ymjYxw','65jtbPuD','9563560QwkjRY','toFixed','toString','1417443XbpzUk','14tzvFWK','round','6850017LCGztN','85326lyytwX','(((.+)+)+)+$','__esModule','floor','substring','3786904jDgDwt','constructor','634Gauauq','2215hQdxdP','split','4WadHme','search','ceil'];a16_0x259f=function(){return _0x1fc344;};return a16_0x259f();}const a16_0x3428db=(function(){let _0x11e527=!![];return function(_0x338114,_0x4c09cc){const _0x2fb5d3=_0x11e527?function(){const _0x2978f3=a16_0x5f3c;if(_0x4c09cc){const _0x191e99=_0x4c09cc[_0x2978f3(0x106)](_0x338114,arguments);return _0x4c09cc=null,_0x191e99;}}:function(){};return _0x11e527=![],_0x2fb5d3;};}()),a16_0x1b24c4=a16_0x3428db(this,function(){const _0x5126b9=a16_0x5f3c;return a16_0x1b24c4[_0x5126b9(0x10d)]()[_0x5126b9(0x102)](_0x5126b9(0x113))[_0x5126b9(0x10d)]()[_0x5126b9(0xfd)](a16_0x1b24c4)['search']('(((.+)+)+)+$');});function a16_0x5f3c(_0x2021ac,_0x5dc618){_0x2021ac=_0x2021ac-0xfc;const _0x265b0a=a16_0x259f();let _0x1b24c4=_0x265b0a[_0x2021ac];return _0x1b24c4;}a16_0x1b24c4();'use strict';Object['defineProperty'](exports,a16_0x351b3b(0x114),{'value':!![]}),exports[a16_0x351b3b(0x10c)]=toFixed;function toFixed(_0x4c32c5,_0x3c967a=0x2,_0x3ffd8a=a16_0x351b3b(0x110)){const _0x430a92=a16_0x351b3b;_0x3c967a=parseInt(''+_0x3c967a);_0x3c967a<=0x0&&(_0x3c967a=0x0);const _0x48f9a3=_0x3c967a+0x1,_0x37a14a=parseFloat(''+_0x4c32c5)[_0x430a92(0x10c)](_0x48f9a3)[_0x430a92(0x100)]('.');!_0x37a14a[0x1]&&(_0x37a14a[0x1]=_0x37a14a[0x1][_0x430a92(0x108)](_0x48f9a3+0x1,'0'));_0x37a14a[0x1][_0x430a92(0x107)]<_0x48f9a3&&(_0x37a14a[0x1]=_0x37a14a[0x1]['padEnd'](_0x48f9a3+0x1,'0'));_0x37a14a[0x1][_0x430a92(0x107)]>_0x48f9a3&&(_0x37a14a[0x1]=_0x37a14a[0x1][_0x430a92(0x116)](0x0,_0x48f9a3));if(_0x3ffd8a==_0x430a92(0x103)){const _0x183bbd=Math['ceil'](parseFloat(''+_0x37a14a['join']('.'))*parseInt('1'[_0x430a92(0x108)](_0x3c967a+0x1,'0')));return parseFloat(''+_0x183bbd/parseInt('1'['padEnd'](_0x3c967a+0x1,'0')));}else{if(_0x3ffd8a==_0x430a92(0x115))return parseFloat(((_0x37a14a===null||_0x37a14a===void 0x0?void 0x0:_0x37a14a[0x0])||'0')+'.'+_0x37a14a[0x1][_0x430a92(0x116)](0x0,_0x3c967a));else{if(_0x3ffd8a=='round'){const _0x52bc91=Math['round'](parseFloat(''+_0x37a14a[_0x430a92(0x104)]('.'))*parseInt('1'[_0x430a92(0x108)](_0x3c967a+0x1,'0')));return parseFloat(''+_0x52bc91/parseInt('1'[_0x430a92(0x108)](_0x3c967a+0x1,'0')));}else return 0x0;}}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function sleep(time?: number): Promise<void>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var a17_0x50fc6e=a17_0x5d14;(function(_0x55a8ab,_0x434f82){var _0x45f815=a17_0x5d14,_0x4e917d=_0x55a8ab();while(!![]){try{var _0x2466fb=-parseInt(_0x45f815(0x125))/0x1*(-parseInt(_0x45f815(0x123))/0x2)+-parseInt(_0x45f815(0x115))/0x3*(parseInt(_0x45f815(0x120))/0x4)+parseInt(_0x45f815(0x122))/0x5*(parseInt(_0x45f815(0x124))/0x6)+parseInt(_0x45f815(0x117))/0x7*(-parseInt(_0x45f815(0x11d))/0x8)+-parseInt(_0x45f815(0x121))/0x9+-parseInt(_0x45f815(0x11e))/0xa+parseInt(_0x45f815(0x11b))/0xb*(parseInt(_0x45f815(0x11c))/0xc);if(_0x2466fb===_0x434f82)break;else _0x4e917d['push'](_0x4e917d['shift']());}catch(_0x3531e7){_0x4e917d['push'](_0x4e917d['shift']());}}}(a17_0x18e7,0xf1cd9));function a17_0x5d14(_0x52eb7c,_0xf8bd04){_0x52eb7c=_0x52eb7c-0x115;var _0x558798=a17_0x18e7();var _0x4efc4a=_0x558798[_0x52eb7c];return _0x4efc4a;}var a17_0x17b867=(function(){var _0x5dc632=!![];return function(_0x2ea54b,_0x17331a){var _0x8619b=_0x5dc632?function(){if(_0x17331a){var _0x1ec6b2=_0x17331a['apply'](_0x2ea54b,arguments);return _0x17331a=null,_0x1ec6b2;}}:function(){};return _0x5dc632=![],_0x8619b;};}()),a17_0x4efc4a=a17_0x17b867(this,function(){var _0x5a73d8=a17_0x5d14;return a17_0x4efc4a[_0x5a73d8(0x118)]()[_0x5a73d8(0x11a)](_0x5a73d8(0x116))[_0x5a73d8(0x118)]()[_0x5a73d8(0x11f)](a17_0x4efc4a)[_0x5a73d8(0x11a)](_0x5a73d8(0x116));});a17_0x4efc4a();'use strict';Object['defineProperty'](exports,a17_0x50fc6e(0x119),{'value':!![]}),exports['sleep']=sleep;function sleep(_0x4c5256=0xc8){return new Promise(_0x3afac0=>setTimeout(_0x3afac0,_0x4c5256));}function a17_0x18e7(){var _0x29dd12=['__esModule','search','638693LmkPVm','276bfDgBN','43192IrqMhN','6561000fCUXlh','constructor','902308OSCohP','1700046kdzWLj','35QBlJSO','58484LIlmhm','1394154cBEyfd','3VttYXM','15WdaIJg','(((.+)+)+)+$','112QXkJZM','toString'];a17_0x18e7=function(){return _0x29dd12;};return a17_0x18e7();}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as xml2js from 'xml2js';
|
|
2
|
+
export declare function xml_decode(xmlStr: string, option?: xml2js.ParserOptions): Promise<{
|
|
3
|
+
[key: string]: any;
|
|
4
|
+
}>;
|
|
5
|
+
export declare function xml_encode(xmlData: {
|
|
6
|
+
[key: string]: any;
|
|
7
|
+
}, option?: xml2js.BuilderOptions): string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const a18_0x40fd56=a18_0x5add;(function(_0x41991f,_0x2de9da){const _0x42149f=a18_0x5add,_0x193449=_0x41991f();while(!![]){try{const _0xd258f3=-parseInt(_0x42149f(0x1eb))/0x1*(parseInt(_0x42149f(0x1e7))/0x2)+-parseInt(_0x42149f(0x1f0))/0x3*(parseInt(_0x42149f(0x1ef))/0x4)+parseInt(_0x42149f(0x1e9))/0x5+-parseInt(_0x42149f(0x1e8))/0x6+-parseInt(_0x42149f(0x1ec))/0x7*(parseInt(_0x42149f(0x1ed))/0x8)+-parseInt(_0x42149f(0x1ea))/0x9+parseInt(_0x42149f(0x1f5))/0xa;if(_0xd258f3===_0x2de9da)break;else _0x193449['push'](_0x193449['shift']());}catch(_0x2cf132){_0x193449['push'](_0x193449['shift']());}}}(a18_0x557d,0xda780));const a18_0x580f7e=(function(){let _0x38464e=!![];return function(_0xc0b15,_0x4aa575){const _0x5884d6=_0x38464e?function(){const _0x93fc98=a18_0x5add;if(_0x4aa575){const _0x23cdac=_0x4aa575[_0x93fc98(0x1e4)](_0xc0b15,arguments);return _0x4aa575=null,_0x23cdac;}}:function(){};return _0x38464e=![],_0x5884d6;};}()),a18_0x82a4a9=a18_0x580f7e(this,function(){const _0x54240a=a18_0x5add;return a18_0x82a4a9[_0x54240a(0x1e3)]()[_0x54240a(0x1f3)](_0x54240a(0x1e6))[_0x54240a(0x1e3)]()[_0x54240a(0x1f1)](a18_0x82a4a9)[_0x54240a(0x1f3)](_0x54240a(0x1e6));});a18_0x82a4a9();'use strict';function a18_0x5add(_0x414108,_0x39b904){_0x414108=_0x414108-0x1e3;const _0x4ca5c1=a18_0x557d();let _0x82a4a9=_0x4ca5c1[_0x414108];return _0x82a4a9;}function a18_0x557d(){const _0x46d140=['1026084CWkfVI','105uJCHBj','18952wIQwjM','xml2js','915548HXvtQV','21RUydsL','constructor','__esModule','search','Parser','27780880xZiVaS','xml_encode','toString','apply','buildObject','(((.+)+)+)+$','2BhcyTA','4784856BOhqTI','8844640QKFMNx','1717776wpIwPU'];a18_0x557d=function(){return _0x46d140;};return a18_0x557d();}Object['defineProperty'](exports,a18_0x40fd56(0x1f2),{'value':!![]}),exports['xml_decode']=xml_decode,exports[a18_0x40fd56(0x1f6)]=xml_encode;const xml2js=require(a18_0x40fd56(0x1ee));async function xml_decode(_0x23915d,_0x3aa7f3={'trim':!![],'explicitArray':![],'explicitRoot':![]}){const _0x39ca05=a18_0x40fd56;return await new Promise(_0x18aba4=>new xml2js[(_0x39ca05(0x1f4))](_0x3aa7f3)['parseString'](_0x23915d,(_0x290b0d,_0x167738)=>_0x290b0d?_0x18aba4(undefined):_0x18aba4(_0x167738)));}function xml_encode(_0x3904e6,_0x590912){const _0x225849=a18_0x40fd56;try{return new xml2js['Builder'](_0x590912)[_0x225849(0x1e5)](_0x3904e6);}catch(_0xf13654){return undefined;}}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import * as _mathjs from 'mathjs';
|
|
2
|
+
import * as path from "path";
|
|
3
|
+
import * as jimp from "jimp";
|
|
4
|
+
import * as dayjs from 'dayjs';
|
|
5
|
+
import * as qrcode from 'qrcode';
|
|
6
|
+
import * as lodash from 'lodash';
|
|
7
|
+
import * as fsplus from 'fs-extra';
|
|
8
|
+
import * as cryptojs from "crypto-js";
|
|
9
|
+
import * as compressing from 'compressing';
|
|
10
|
+
import { collect } from 'collect.js';
|
|
11
|
+
import { imageSize } from 'image-size';
|
|
12
|
+
import { sleep } from './helper/sleep';
|
|
13
|
+
import { include } from './helper/include';
|
|
14
|
+
import { globDir } from './helper/globDir';
|
|
15
|
+
import { AnnError } from './exception/AnnError';
|
|
16
|
+
import { fileMd5, fileSize } from './helper/fileMd5';
|
|
17
|
+
import { hideSensitiveStr, hideSensitiveObj } from './helper/hideSensitive';
|
|
18
|
+
import { AnnErrorRender } from './exception/AnnErrorRender';
|
|
19
|
+
import { AroundMiddle, IAroundMiddle } from './decorator/AroundMiddle';
|
|
20
|
+
import { AnnErrorMsg, getAnnErrorMsg, getAnnErrorList } from './decorator/AnnErrorMsg';
|
|
21
|
+
import { AnnEnumMsg, getAnnEnumMsg, getAnnEnumMeta, getAnnEnumMap, getAnnEnumList, getAnnEnumArray } from './decorator/AnnEnumMsg';
|
|
22
|
+
import { md5, random, getType } from './helper/common';
|
|
23
|
+
import { xml_decode, xml_encode } from './helper/xmlFun';
|
|
24
|
+
import { des_encode, des_decode } from './helper/desFun';
|
|
25
|
+
import { aes_key, aes_encode, aes_decode, aes_ecb_encode, aes_ecb_decode } from './helper/aesFun';
|
|
26
|
+
import { json_encode, json_decode } from './helper/jsonFun';
|
|
27
|
+
import { base64_encode, base64_decode } from './helper/base64Fun';
|
|
28
|
+
import { toFixed } from './helper/mathFun';
|
|
29
|
+
declare const mathjs: _mathjs.MathJsStatic;
|
|
30
|
+
export { CustomConfiguration as Configuration } from './configuration';
|
|
31
|
+
export { default as axios, AxiosInstance, CreateAxiosDefaults as AxiosCreateDefaults } from 'axios';
|
|
32
|
+
export { path, jimp, fsplus, qrcode, mathjs, lodash, cryptojs, compressing, md5, dayjs, sleep, random, toFixed, getType, collect, include, globDir, fileMd5, fileSize, imageSize, xml_decode, xml_encode, aes_key, aes_encode, aes_decode, aes_ecb_encode, aes_ecb_decode, des_encode, des_decode, json_encode, json_decode, base64_encode, base64_decode, hideSensitiveStr, hideSensitiveObj, AnnEnumMsg, AroundMiddle, getAnnEnumMsg, getAnnEnumMeta, getAnnEnumMap, getAnnEnumList, getAnnEnumArray, AnnErrorMsg, getAnnErrorMsg, getAnnErrorList, AnnError, IAroundMiddle, AnnErrorRender, };
|
package/dist/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const a19_0x24ce88=a19_0x40d8;(function(_0x3c1526,_0x1c835c){const _0x591662=a19_0x40d8,_0x43b6a1=_0x3c1526();while(!![]){try{const _0x3abb1d=-parseInt(_0x591662(0xa6))/0x1*(-parseInt(_0x591662(0x8a))/0x2)+-parseInt(_0x591662(0x9c))/0x3+-parseInt(_0x591662(0xaf))/0x4+-parseInt(_0x591662(0x8d))/0x5*(parseInt(_0x591662(0xba))/0x6)+-parseInt(_0x591662(0xb7))/0x7*(-parseInt(_0x591662(0xad))/0x8)+parseInt(_0x591662(0x90))/0x9+parseInt(_0x591662(0xc6))/0xa;if(_0x3abb1d===_0x1c835c)break;else _0x43b6a1['push'](_0x43b6a1['shift']());}catch(_0xfaf2cc){_0x43b6a1['push'](_0x43b6a1['shift']());}}}(a19_0x5af4,0xb5f8a));const a19_0x2d1c99=(function(){let _0x4ac908=!![];return function(_0x362e57,_0x253354){const _0x1e4a75=_0x4ac908?function(){const _0xc01bcd=a19_0x40d8;if(_0x253354){const _0x31666b=_0x253354[_0xc01bcd(0x85)](_0x362e57,arguments);return _0x253354=null,_0x31666b;}}:function(){};return _0x4ac908=![],_0x1e4a75;};}()),a19_0x12b6ea=a19_0x2d1c99(this,function(){const _0x5034e5=a19_0x40d8;return a19_0x12b6ea[_0x5034e5(0xc8)]()[_0x5034e5(0x76)](_0x5034e5(0xb8))['toString']()[_0x5034e5(0x86)](a19_0x12b6ea)['search'](_0x5034e5(0xb8));});a19_0x12b6ea();'use strict';Object[a19_0x24ce88(0xc2)](exports,a19_0x24ce88(0x8f),{'value':!![]}),exports['AnnErrorRender']=exports[a19_0x24ce88(0xbb)]=exports['AnnError']=exports[a19_0x24ce88(0xbe)]=exports['getAnnErrorMsg']=exports[a19_0x24ce88(0x7f)]=exports[a19_0x24ce88(0xa0)]=exports[a19_0x24ce88(0x7e)]=exports[a19_0x24ce88(0x9e)]=exports[a19_0x24ce88(0x93)]=exports[a19_0x24ce88(0xa7)]=exports[a19_0x24ce88(0x7a)]=exports[a19_0x24ce88(0x75)]=exports['hideSensitiveObj']=exports[a19_0x24ce88(0xa3)]=exports['base64_decode']=exports['base64_encode']=exports['json_decode']=exports['json_encode']=exports[a19_0x24ce88(0xbc)]=exports['des_encode']=exports[a19_0x24ce88(0xa1)]=exports[a19_0x24ce88(0xbd)]=exports['aes_decode']=exports[a19_0x24ce88(0x74)]=exports[a19_0x24ce88(0x79)]=exports[a19_0x24ce88(0x9a)]=exports['xml_decode']=exports[a19_0x24ce88(0x96)]=exports['fileSize']=exports[a19_0x24ce88(0x92)]=exports[a19_0x24ce88(0xa8)]=exports[a19_0x24ce88(0x9b)]=exports[a19_0x24ce88(0xc5)]=exports[a19_0x24ce88(0xc3)]=exports[a19_0x24ce88(0x81)]=exports['random']=exports[a19_0x24ce88(0xbf)]=exports[a19_0x24ce88(0xcc)]=exports[a19_0x24ce88(0xc1)]=exports[a19_0x24ce88(0x88)]=exports[a19_0x24ce88(0xb5)]=exports[a19_0x24ce88(0xb9)]=exports[a19_0x24ce88(0x91)]=exports[a19_0x24ce88(0xa4)]=exports[a19_0x24ce88(0xa2)]=exports[a19_0x24ce88(0x84)]=exports[a19_0x24ce88(0xc9)]=exports['axios']=exports['Configuration']=void 0x0;const axios_1=require(a19_0x24ce88(0x8b)),_mathjs=require(a19_0x24ce88(0x91)),path=require('path');exports[a19_0x24ce88(0xc9)]=path;const jimp=require(a19_0x24ce88(0x84));exports[a19_0x24ce88(0x84)]=jimp;const dayjs=require('dayjs');exports[a19_0x24ce88(0xcc)]=dayjs;const qrcode=require(a19_0x24ce88(0xa4));exports['qrcode']=qrcode;const lodash=require(a19_0x24ce88(0xb9));exports[a19_0x24ce88(0xb9)]=lodash;const fsplus=require(a19_0x24ce88(0xb4));exports[a19_0x24ce88(0xa2)]=fsplus;const cryptojs=require('crypto-js');exports[a19_0x24ce88(0xb5)]=cryptojs;const compressing=require('compressing');function a19_0x40d8(_0x7dd1c,_0x1c55e7){_0x7dd1c=_0x7dd1c-0x74;const _0x1217cc=a19_0x5af4();let _0x12b6ea=_0x1217cc[_0x7dd1c];return _0x12b6ea;}exports[a19_0x24ce88(0x88)]=compressing;const collect_js_1=require(a19_0x24ce88(0x9d));Object[a19_0x24ce88(0xc2)](exports,a19_0x24ce88(0xc5),{'enumerable':!![],'get':function(){const _0x3ae3e3=a19_0x24ce88;return collect_js_1[_0x3ae3e3(0xc5)];}});const image_size_1=require(a19_0x24ce88(0xb1));Object[a19_0x24ce88(0xc2)](exports,a19_0x24ce88(0x96),{'enumerable':!![],'get':function(){const _0x1149e6=a19_0x24ce88;return image_size_1[_0x1149e6(0x96)];}});const sleep_1=require(a19_0x24ce88(0x77));Object[a19_0x24ce88(0xc2)](exports,a19_0x24ce88(0xbf),{'enumerable':!![],'get':function(){const _0x45c255=a19_0x24ce88;return sleep_1[_0x45c255(0xbf)];}});const include_1=require(a19_0x24ce88(0xc7));Object[a19_0x24ce88(0xc2)](exports,a19_0x24ce88(0x9b),{'enumerable':!![],'get':function(){return include_1['include'];}});const globDir_1=require(a19_0x24ce88(0xcb));Object[a19_0x24ce88(0xc2)](exports,a19_0x24ce88(0xa8),{'enumerable':!![],'get':function(){const _0x4c0a42=a19_0x24ce88;return globDir_1[_0x4c0a42(0xa8)];}});const AnnError_1=require(a19_0x24ce88(0x80));Object[a19_0x24ce88(0xc2)](exports,a19_0x24ce88(0x7b),{'enumerable':!![],'get':function(){const _0x2a6026=a19_0x24ce88;return AnnError_1[_0x2a6026(0x7b)];}});const fileMd5_1=require(a19_0x24ce88(0xb3));Object[a19_0x24ce88(0xc2)](exports,'fileMd5',{'enumerable':!![],'get':function(){return fileMd5_1['fileMd5'];}}),Object[a19_0x24ce88(0xc2)](exports,a19_0x24ce88(0x7c),{'enumerable':!![],'get':function(){const _0x57e8f7=a19_0x24ce88;return fileMd5_1[_0x57e8f7(0x7c)];}});const hideSensitive_1=require(a19_0x24ce88(0xc0));Object['defineProperty'](exports,'hideSensitiveStr',{'enumerable':!![],'get':function(){const _0x17ff63=a19_0x24ce88;return hideSensitive_1[_0x17ff63(0xa3)];}}),Object[a19_0x24ce88(0xc2)](exports,a19_0x24ce88(0xc4),{'enumerable':!![],'get':function(){const _0x164645=a19_0x24ce88;return hideSensitive_1[_0x164645(0xc4)];}});const AnnErrorRender_1=require(a19_0x24ce88(0x87));Object[a19_0x24ce88(0xc2)](exports,'AnnErrorRender',{'enumerable':!![],'get':function(){const _0x31dc0c=a19_0x24ce88;return AnnErrorRender_1[_0x31dc0c(0x97)];}});function a19_0x5af4(){const _0x2b8b97=['./helper/include','toString','path','BigNumber','./helper/globDir','dayjs','aes_encode','AnnEnumMsg','search','./helper/sleep','random','aes_key','AroundMiddle','AnnError','fileSize','./helper/base64Fun','getAnnEnumList','AnnErrorMsg','./exception/AnnError','toFixed','aes_decode','des_encode','jimp','apply','constructor','./exception/AnnErrorRender','compressing','Configuration','4uqWPnj','axios','create','5hQtVQH','./decorator/AnnErrorMsg','__esModule','1330776MmUCQK','mathjs','fileMd5','getAnnEnumMeta','getAnnErrorMsg','./helper/xmlFun','imageSize','AnnErrorRender','json_encode','base64_encode','xml_encode','include','1778193uXixGb','collect.js','getAnnEnumMap','xml_decode','getAnnEnumArray','aes_ecb_decode','fsplus','hideSensitiveStr','qrcode','all','134095TmmhpU','getAnnEnumMsg','globDir','CustomConfiguration','./helper/mathFun','json_decode','./helper/aesFun','1096392liceeM','./decorator/AroundMiddle','4101752RfutVK','./helper/jsonFun','image-size','./decorator/AnnEnumMsg','./helper/fileMd5','fs-extra','cryptojs','base64_decode','28pLTVBE','(((.+)+)+)+$','lodash','5325402IQFOOm','IAroundMiddle','des_decode','aes_ecb_encode','getAnnErrorList','sleep','./helper/hideSensitive','md5','defineProperty','getType','hideSensitiveObj','collect','22868400tpmrjW'];a19_0x5af4=function(){return _0x2b8b97;};return a19_0x5af4();}const AroundMiddle_1=require(a19_0x24ce88(0xae));Object[a19_0x24ce88(0xc2)](exports,a19_0x24ce88(0x7a),{'enumerable':!![],'get':function(){const _0x488dce=a19_0x24ce88;return AroundMiddle_1[_0x488dce(0x7a)];}}),Object[a19_0x24ce88(0xc2)](exports,a19_0x24ce88(0xbb),{'enumerable':!![],'get':function(){const _0x5737a5=a19_0x24ce88;return AroundMiddle_1[_0x5737a5(0xbb)];}});const AnnErrorMsg_1=require(a19_0x24ce88(0x8e));Object[a19_0x24ce88(0xc2)](exports,a19_0x24ce88(0x7f),{'enumerable':!![],'get':function(){const _0xfe583e=a19_0x24ce88;return AnnErrorMsg_1[_0xfe583e(0x7f)];}}),Object[a19_0x24ce88(0xc2)](exports,a19_0x24ce88(0x94),{'enumerable':!![],'get':function(){const _0x3b3c30=a19_0x24ce88;return AnnErrorMsg_1[_0x3b3c30(0x94)];}}),Object['defineProperty'](exports,a19_0x24ce88(0xbe),{'enumerable':!![],'get':function(){const _0x47029c=a19_0x24ce88;return AnnErrorMsg_1[_0x47029c(0xbe)];}});const AnnEnumMsg_1=require(a19_0x24ce88(0xb2));Object[a19_0x24ce88(0xc2)](exports,a19_0x24ce88(0x75),{'enumerable':!![],'get':function(){return AnnEnumMsg_1['AnnEnumMsg'];}}),Object[a19_0x24ce88(0xc2)](exports,'getAnnEnumMsg',{'enumerable':!![],'get':function(){const _0x501354=a19_0x24ce88;return AnnEnumMsg_1[_0x501354(0xa7)];}}),Object['defineProperty'](exports,a19_0x24ce88(0x93),{'enumerable':!![],'get':function(){const _0x540f63=a19_0x24ce88;return AnnEnumMsg_1[_0x540f63(0x93)];}}),Object['defineProperty'](exports,'getAnnEnumMap',{'enumerable':!![],'get':function(){const _0x456c4f=a19_0x24ce88;return AnnEnumMsg_1[_0x456c4f(0x9e)];}}),Object[a19_0x24ce88(0xc2)](exports,'getAnnEnumList',{'enumerable':!![],'get':function(){const _0x34d288=a19_0x24ce88;return AnnEnumMsg_1[_0x34d288(0x7e)];}}),Object['defineProperty'](exports,'getAnnEnumArray',{'enumerable':!![],'get':function(){const _0x24a532=a19_0x24ce88;return AnnEnumMsg_1[_0x24a532(0xa0)];}});const common_1=require('./helper/common');Object['defineProperty'](exports,a19_0x24ce88(0xc1),{'enumerable':!![],'get':function(){const _0x43e51c=a19_0x24ce88;return common_1[_0x43e51c(0xc1)];}}),Object[a19_0x24ce88(0xc2)](exports,'random',{'enumerable':!![],'get':function(){const _0x3d224a=a19_0x24ce88;return common_1[_0x3d224a(0x78)];}}),Object[a19_0x24ce88(0xc2)](exports,a19_0x24ce88(0xc3),{'enumerable':!![],'get':function(){const _0x4dfa58=a19_0x24ce88;return common_1[_0x4dfa58(0xc3)];}});const xmlFun_1=require(a19_0x24ce88(0x95));Object[a19_0x24ce88(0xc2)](exports,a19_0x24ce88(0x9f),{'enumerable':!![],'get':function(){const _0x43c05e=a19_0x24ce88;return xmlFun_1[_0x43c05e(0x9f)];}}),Object[a19_0x24ce88(0xc2)](exports,a19_0x24ce88(0x9a),{'enumerable':!![],'get':function(){const _0x14cf02=a19_0x24ce88;return xmlFun_1[_0x14cf02(0x9a)];}});const desFun_1=require('./helper/desFun');Object[a19_0x24ce88(0xc2)](exports,a19_0x24ce88(0x83),{'enumerable':!![],'get':function(){const _0xc2cce6=a19_0x24ce88;return desFun_1[_0xc2cce6(0x83)];}}),Object[a19_0x24ce88(0xc2)](exports,a19_0x24ce88(0xbc),{'enumerable':!![],'get':function(){const _0x3f14b4=a19_0x24ce88;return desFun_1[_0x3f14b4(0xbc)];}});const aesFun_1=require(a19_0x24ce88(0xac));Object[a19_0x24ce88(0xc2)](exports,a19_0x24ce88(0x79),{'enumerable':!![],'get':function(){const _0x1d6949=a19_0x24ce88;return aesFun_1[_0x1d6949(0x79)];}}),Object[a19_0x24ce88(0xc2)](exports,a19_0x24ce88(0x74),{'enumerable':!![],'get':function(){const _0x9ee98b=a19_0x24ce88;return aesFun_1[_0x9ee98b(0x74)];}}),Object[a19_0x24ce88(0xc2)](exports,a19_0x24ce88(0x82),{'enumerable':!![],'get':function(){const _0x47b851=a19_0x24ce88;return aesFun_1[_0x47b851(0x82)];}}),Object[a19_0x24ce88(0xc2)](exports,a19_0x24ce88(0xbd),{'enumerable':!![],'get':function(){const _0x5e5b47=a19_0x24ce88;return aesFun_1[_0x5e5b47(0xbd)];}}),Object[a19_0x24ce88(0xc2)](exports,'aes_ecb_decode',{'enumerable':!![],'get':function(){return aesFun_1['aes_ecb_decode'];}});const jsonFun_1=require(a19_0x24ce88(0xb0));Object['defineProperty'](exports,a19_0x24ce88(0x98),{'enumerable':!![],'get':function(){const _0x46d5cf=a19_0x24ce88;return jsonFun_1[_0x46d5cf(0x98)];}}),Object[a19_0x24ce88(0xc2)](exports,a19_0x24ce88(0xab),{'enumerable':!![],'get':function(){const _0x319ed5=a19_0x24ce88;return jsonFun_1[_0x319ed5(0xab)];}});const base64Fun_1=require(a19_0x24ce88(0x7d));Object['defineProperty'](exports,a19_0x24ce88(0x99),{'enumerable':!![],'get':function(){return base64Fun_1['base64_encode'];}}),Object[a19_0x24ce88(0xc2)](exports,a19_0x24ce88(0xb6),{'enumerable':!![],'get':function(){const _0x446b98=a19_0x24ce88;return base64Fun_1[_0x446b98(0xb6)];}});const mathFun_1=require(a19_0x24ce88(0xaa));Object[a19_0x24ce88(0xc2)](exports,a19_0x24ce88(0x81),{'enumerable':!![],'get':function(){return mathFun_1['toFixed'];}});const mathjs=_mathjs[a19_0x24ce88(0x8c)](_mathjs[a19_0x24ce88(0xa5)],{'number':a19_0x24ce88(0xca),'precision':0x40});exports[a19_0x24ce88(0x91)]=mathjs;var configuration_1=require('./configuration');Object['defineProperty'](exports,a19_0x24ce88(0x89),{'enumerable':!![],'get':function(){const _0x4dc090=a19_0x24ce88;return configuration_1[_0x4dc090(0xa9)];}});var axios_2=require('axios');Object[a19_0x24ce88(0xc2)](exports,a19_0x24ce88(0x8b),{'enumerable':!![],'get':function(){return axios_2['default'];}}),(global[a19_0x24ce88(0x84)]=jimp,global[a19_0x24ce88(0x8b)]=axios_1['default'],global['qrcode']=qrcode,global[a19_0x24ce88(0xc9)]=path),(global['fsplus']=fsplus,global[a19_0x24ce88(0x91)]=mathjs,global['lodash']=lodash,global[a19_0x24ce88(0xb5)]=global,global['compressing']=compressing),(global['hideSensitiveStr']=hideSensitive_1[a19_0x24ce88(0xa3)],global[a19_0x24ce88(0xc4)]=hideSensitive_1[a19_0x24ce88(0xc4)]),(global[a19_0x24ce88(0xcc)]=dayjs,global[a19_0x24ce88(0xbf)]=sleep_1[a19_0x24ce88(0xbf)],global[a19_0x24ce88(0x78)]=common_1[a19_0x24ce88(0x78)],global[a19_0x24ce88(0xc5)]=collect_js_1[a19_0x24ce88(0xc5)],global[a19_0x24ce88(0x9b)]=include_1['include'],global[a19_0x24ce88(0xa8)]=globDir_1[a19_0x24ce88(0xa8)],global[a19_0x24ce88(0x96)]=image_size_1['imageSize']),(global[a19_0x24ce88(0xc1)]=common_1[a19_0x24ce88(0xc1)],global[a19_0x24ce88(0xc3)]=common_1[a19_0x24ce88(0xc3)],global[a19_0x24ce88(0x81)]=mathFun_1[a19_0x24ce88(0x81)],global[a19_0x24ce88(0x92)]=fileMd5_1[a19_0x24ce88(0x92)],global[a19_0x24ce88(0x7c)]=fileMd5_1[a19_0x24ce88(0x7c)],global['xml_encode']=xmlFun_1['xml_encode'],global[a19_0x24ce88(0x9f)]=xmlFun_1[a19_0x24ce88(0x9f)],global[a19_0x24ce88(0x98)]=jsonFun_1['json_encode'],global[a19_0x24ce88(0xab)]=jsonFun_1['json_decode'],global[a19_0x24ce88(0x99)]=base64Fun_1[a19_0x24ce88(0x99)],global[a19_0x24ce88(0xb6)]=base64Fun_1[a19_0x24ce88(0xb6)],global[a19_0x24ce88(0x74)]=aesFun_1[a19_0x24ce88(0x74)],global['aes_decode']=aesFun_1[a19_0x24ce88(0x82)],global[a19_0x24ce88(0x79)]=aesFun_1['aes_key'],global[a19_0x24ce88(0xbd)]=aesFun_1[a19_0x24ce88(0xbd)],global[a19_0x24ce88(0xa1)]=aesFun_1[a19_0x24ce88(0xa1)]),(global[a19_0x24ce88(0x75)]=AnnEnumMsg_1[a19_0x24ce88(0x75)],global[a19_0x24ce88(0xa7)]=AnnEnumMsg_1['getAnnEnumMsg'],global[a19_0x24ce88(0x93)]=AnnEnumMsg_1[a19_0x24ce88(0x93)],global[a19_0x24ce88(0x9e)]=AnnEnumMsg_1['getAnnEnumMap'],global[a19_0x24ce88(0x7e)]=AnnEnumMsg_1[a19_0x24ce88(0x7e)],global[a19_0x24ce88(0xa0)]=AnnEnumMsg_1['getAnnEnumArray']),(global[a19_0x24ce88(0x7a)]=AroundMiddle_1[a19_0x24ce88(0x7a)],global['IAroundMiddle']=AroundMiddle_1[a19_0x24ce88(0xbb)]),(global[a19_0x24ce88(0x7f)]=AnnErrorMsg_1['AnnErrorMsg'],global[a19_0x24ce88(0x94)]=AnnErrorMsg_1[a19_0x24ce88(0x94)],global[a19_0x24ce88(0xbe)]=AnnErrorMsg_1[a19_0x24ce88(0xbe)],global[a19_0x24ce88(0x7b)]=AnnError_1[a19_0x24ce88(0x7b)],global[a19_0x24ce88(0x97)]=AnnErrorRender_1['AnnErrorRender']);
|
package/index.d.ts
ADDED
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
import axios from 'axios';
|
|
5
|
+
import * as fs from "fs";
|
|
6
|
+
import * as jimp from "jimp";
|
|
7
|
+
import * as dayjs from 'dayjs';
|
|
8
|
+
import * as xml2js from "xml2js";
|
|
9
|
+
import * as lodash from 'lodash';
|
|
10
|
+
import * as mathjs from 'mathjs';
|
|
11
|
+
import * as qrcode from 'qrcode';
|
|
12
|
+
import * as fsplus from 'fs-extra';
|
|
13
|
+
import * as cryptojs from "crypto-js";
|
|
14
|
+
import * as compressing from 'compressing';
|
|
15
|
+
import { collect } from 'collect.js';
|
|
16
|
+
import { imageSize } from 'image-size';
|
|
17
|
+
import { IMidwayContainer, IMidwayApplication } from '@midwayjs/core';
|
|
18
|
+
|
|
19
|
+
export * from './dist/index';
|
|
20
|
+
|
|
21
|
+
declare global { // 全局变量设置
|
|
22
|
+
|
|
23
|
+
// @ts-ignore
|
|
24
|
+
export { collect } from 'collect.js';
|
|
25
|
+
|
|
26
|
+
// @ts-ignore
|
|
27
|
+
export { imageSize } from 'image-size';
|
|
28
|
+
|
|
29
|
+
// @ts-ignore
|
|
30
|
+
export { default as axios } from 'axios';
|
|
31
|
+
|
|
32
|
+
// @ts-ignore
|
|
33
|
+
export * as path from 'path';
|
|
34
|
+
|
|
35
|
+
// @ts-ignore
|
|
36
|
+
export * as jimp from 'jimp';
|
|
37
|
+
|
|
38
|
+
// @ts-ignore
|
|
39
|
+
export * as dayjs from 'dayjs';
|
|
40
|
+
|
|
41
|
+
// @ts-ignore
|
|
42
|
+
export * as qrcode from 'qrcode';
|
|
43
|
+
// @ts-ignore
|
|
44
|
+
export * as fsplus from 'fs-extra';
|
|
45
|
+
// @ts-ignore
|
|
46
|
+
export * as mathjs from 'mathjs';
|
|
47
|
+
// @ts-ignore
|
|
48
|
+
export * as lodash from 'lodash';
|
|
49
|
+
// @ts-ignore
|
|
50
|
+
export * as cryptojs from 'crypto-js';
|
|
51
|
+
// @ts-ignore
|
|
52
|
+
export * as compressing from 'compressing';
|
|
53
|
+
|
|
54
|
+
export function sleep(time?: number): Promise<void>;
|
|
55
|
+
export function fileMd5(path: string): Promise<string>;
|
|
56
|
+
export function fileSize(path: fs.PathLike, params?: { format: boolean; decimals: number; }): Promise<string | number>;
|
|
57
|
+
export function include(path: string): {
|
|
58
|
+
[key: string]: any;
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
export function getType(type: any): string;
|
|
62
|
+
export function md5(message: string | cryptojs.lib.WordArray, cfg?: object): string;
|
|
63
|
+
export function random(prefix?: string, length?: number, randomStrs?: string[]): string;
|
|
64
|
+
export function json_encode(value: any): string;
|
|
65
|
+
export function json_decode(value: string): any;
|
|
66
|
+
export function xml_decode(xmlStr: string, option?: xml2js.ParserOptions): Promise<{ [key: string]: any; }>;
|
|
67
|
+
export function xml_encode(xmlData: { [key: string]: any; }, option?: xml2js.BuilderOptions): string;
|
|
68
|
+
|
|
69
|
+
export function aes_key(secret: string, secretLen?: 16 | 24 | 32): string;
|
|
70
|
+
export function aes_encode(secret: string, content: string, cfg?: { [key: string]: any }): string;
|
|
71
|
+
export function aes_decode(secret: string, encryptStr: string, cfg?: { [key: string]: any }): string;
|
|
72
|
+
export function aes_ecb_encode(secret: string, content: string, cfg?: { padding?: boolean; Encoding?: BufferEncoding; }): string | undefined;
|
|
73
|
+
export function aes_ecb_decode(secret: string, content: string, cfg?: { padding?: boolean; Encoding?: BufferEncoding; }): string | undefined;
|
|
74
|
+
|
|
75
|
+
export function des_encode(secret: string, content: string, cfg?: { [key: string]: any }): string;
|
|
76
|
+
export function des_decode(secret: string, encryptStr: string, cfg?: { [key: string]: any }): string;
|
|
77
|
+
export function toFixed(value: number | string, decimal?: number, process?: 'ceil' | 'floor' | 'round'): number;
|
|
78
|
+
export function base64_encode(encodestr: string): string;
|
|
79
|
+
export function base64_decode(decodestr: string): string;
|
|
80
|
+
|
|
81
|
+
export function hideSensitiveStr(sensitive: string, trim?: number, options?: {
|
|
82
|
+
trim: 'start' | 'end' | 'trim';
|
|
83
|
+
replace: string;
|
|
84
|
+
}): string;
|
|
85
|
+
|
|
86
|
+
export function hideSensitiveObj<TObject extends object, TKey extends keyof TObject>(sensitiveObj: TObject, keys: TKey | TKey[] | string | string[], trim?: number, options?: {
|
|
87
|
+
trim: 'start' | 'end' | 'trim';
|
|
88
|
+
replace: string;
|
|
89
|
+
}): TObject;
|
|
90
|
+
|
|
91
|
+
export function globDir(directory?: string, useSubdirectories?: boolean, regExp?: RegExp, readFile?: { encoding: BufferEncoding; flag?: string | undefined; } | BufferEncoding): {
|
|
92
|
+
(moduleId: any): any;
|
|
93
|
+
keys(): any[];
|
|
94
|
+
};
|
|
95
|
+
|
|
96
|
+
export function AnnEnumMsg(field: string, message: string, meta?: object): PropertyDecorator;
|
|
97
|
+
export function getAnnEnumMsg(target: any, field: string, code: number | string): string;
|
|
98
|
+
export function getAnnEnumMeta(target: any, field: string, code: number | string, path?: string): any;
|
|
99
|
+
export function getAnnEnumMap(target: any, field: string): { [key: string]: string | number };
|
|
100
|
+
export function getAnnEnumList(target: any, field: string, hasMeta?: boolean): { label: string; value: number | string; meta?: object; }[];
|
|
101
|
+
export function getAnnEnumArray(target: any, field: string, filters?: Array<number | string>): (string | number)[];
|
|
102
|
+
|
|
103
|
+
export function AnnErrorMsg(message: string): PropertyDecorator;
|
|
104
|
+
export function getAnnErrorMsg(code: number): string;
|
|
105
|
+
export function getAnnErrorList(): {
|
|
106
|
+
[key: number]: {
|
|
107
|
+
code: string | number;
|
|
108
|
+
message: string;
|
|
109
|
+
};
|
|
110
|
+
};
|
|
111
|
+
|
|
112
|
+
export class AnnError extends Error {
|
|
113
|
+
readonly code: number | string;
|
|
114
|
+
readonly response: { [key: string]: any; };
|
|
115
|
+
|
|
116
|
+
static readonly OK: number | string;
|
|
117
|
+
static readonly _UNKNOW_: number | string;
|
|
118
|
+
static readonly _PARAMS_: number | string;
|
|
119
|
+
static readonly _NOTFIND_: number | string;
|
|
120
|
+
static readonly _NOLOGIN_: number | string;
|
|
121
|
+
static readonly _NOAUTH_: number | string;
|
|
122
|
+
|
|
123
|
+
constructor(code: number | string, response?: {
|
|
124
|
+
[key: string]: any;
|
|
125
|
+
});
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
export abstract class AnnErrorRender extends AnnError {
|
|
129
|
+
abstract render(ctx: any, container: IMidwayContainer, app: IMidwayApplication): Promise<void>;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
export function AroundMiddle(): ClassDecorator;
|
|
133
|
+
export class IAroundMiddle {
|
|
134
|
+
match?: (ctx: any) => Promise<boolean>
|
|
135
|
+
resolveAfter?: (ctx: any) => Promise<void>
|
|
136
|
+
resolveBefor?: (ctx: any) => Promise<void>
|
|
137
|
+
}
|
|
138
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,47 @@
|
|
|
1
|
-
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "@anveroapi/core",
|
|
3
|
+
"version": "4.0.0",
|
|
4
|
+
"main": "./dist/index.js",
|
|
5
|
+
"typings": "index.d.ts",
|
|
6
|
+
"files": [
|
|
7
|
+
"dist",
|
|
8
|
+
"index.d.ts"
|
|
9
|
+
],
|
|
10
|
+
"license": "MIT",
|
|
11
|
+
"publishConfig": {
|
|
12
|
+
"access": "public",
|
|
13
|
+
"registry": "https://registry.npmjs.org/"
|
|
14
|
+
},
|
|
15
|
+
"scripts": {
|
|
16
|
+
"build2": "tsc",
|
|
17
|
+
"build": "tsc && javascript-obfuscator ./dist --output ./dist --config obfuscator.json"
|
|
18
|
+
},
|
|
19
|
+
"dependencies": {
|
|
20
|
+
"axios": "^1.6.0",
|
|
21
|
+
"jiti": "~1.21.0",
|
|
22
|
+
"mathjs": "~11.0.0",
|
|
23
|
+
"dayjs": "~1.11.10",
|
|
24
|
+
"jimp": "~0.22.10",
|
|
25
|
+
"qrcode": "~1.5.3",
|
|
26
|
+
"@types/qrcode": "~1.5.4",
|
|
27
|
+
"crypto-js": "~4.2.0",
|
|
28
|
+
"@types/crypto-js": "~4.1.3",
|
|
29
|
+
"lodash": "~4.17.21",
|
|
30
|
+
"@types/lodash": "~4.14.200",
|
|
31
|
+
"xml2js": "~0.6.2",
|
|
32
|
+
"@types/xml2js": "~0.4.12",
|
|
33
|
+
"fs-extra": "~11.1.1",
|
|
34
|
+
"@types/fs-extra": "~11.0.3",
|
|
35
|
+
"collect.js": "^4.36.1",
|
|
36
|
+
"image-size": "~1.0.2",
|
|
37
|
+
"compressing": "~1.10.0",
|
|
38
|
+
"@midwayjs/core": "^4.2.6",
|
|
39
|
+
"@midwayjs/i18n": "^4.2.6"
|
|
40
|
+
},
|
|
41
|
+
"devDependencies": {
|
|
42
|
+
"typescript": "~5.9.3",
|
|
43
|
+
"@types/node": "20.10.0",
|
|
44
|
+
"javascript-obfuscator": "^4.0.2"
|
|
45
|
+
},
|
|
46
|
+
"gitHead": "f7d4644d5e0591c4b383021edab6db20d1714880"
|
|
47
|
+
}
|
package/README.md
DELETED